Open CASCADE Technology  7.0.0
Public Member Functions
Vrml_DirectionalLight Class Reference

defines a directional light node of VRML specifying properties of lights. This node defines a directional light source that illuminates along rays parallel to a given 3-dimentional vector Color is written as an RGB triple. Light intensity must be in the range 0.0 to 1.0, inclusive. More...

#include <Vrml_DirectionalLight.hxx>

Public Member Functions

 Vrml_DirectionalLight ()
 
 Vrml_DirectionalLight (const Standard_Boolean aOnOff, const Standard_Real aIntensity, const Quantity_Color &aColor, const gp_Vec &aDirection)
 
void SetOnOff (const Standard_Boolean aOnOff)
 
Standard_Boolean OnOff () const
 
void SetIntensity (const Standard_Real aIntensity)
 
Standard_Real Intensity () const
 
void SetColor (const Quantity_Color &aColor)
 
Quantity_Color Color () const
 
void SetDirection (const gp_Vec &aDirection)
 
gp_Vec Direction () const
 
Standard_OStreamPrint (Standard_OStream &anOStream) const
 

Detailed Description

defines a directional light node of VRML specifying properties of lights. This node defines a directional light source that illuminates along rays parallel to a given 3-dimentional vector Color is written as an RGB triple. Light intensity must be in the range 0.0 to 1.0, inclusive.

Constructor & Destructor Documentation

Vrml_DirectionalLight::Vrml_DirectionalLight ( )
Vrml_DirectionalLight::Vrml_DirectionalLight ( const Standard_Boolean  aOnOff,
const Standard_Real  aIntensity,
const Quantity_Color aColor,
const gp_Vec aDirection 
)

Member Function Documentation

Quantity_Color Vrml_DirectionalLight::Color ( ) const
gp_Vec Vrml_DirectionalLight::Direction ( ) const
Standard_Real Vrml_DirectionalLight::Intensity ( ) const
Standard_Boolean Vrml_DirectionalLight::OnOff ( ) const
Standard_OStream& Vrml_DirectionalLight::Print ( Standard_OStream anOStream) const
void Vrml_DirectionalLight::SetColor ( const Quantity_Color aColor)
void Vrml_DirectionalLight::SetDirection ( const gp_Vec aDirection)
void Vrml_DirectionalLight::SetIntensity ( const Standard_Real  aIntensity)
void Vrml_DirectionalLight::SetOnOff ( const Standard_Boolean  aOnOff)

The documentation for this class was generated from the following file: