Open CASCADE Technology  7.3.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() [1/2]

Vrml_DirectionalLight::Vrml_DirectionalLight ( )

◆ Vrml_DirectionalLight() [2/2]

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

Member Function Documentation

◆ Color()

Quantity_Color Vrml_DirectionalLight::Color ( ) const

◆ Direction()

gp_Vec Vrml_DirectionalLight::Direction ( ) const

◆ Intensity()

Standard_Real Vrml_DirectionalLight::Intensity ( ) const

◆ OnOff()

Standard_Boolean Vrml_DirectionalLight::OnOff ( ) const

◆ Print()

Standard_OStream& Vrml_DirectionalLight::Print ( Standard_OStream anOStream) const

◆ SetColor()

void Vrml_DirectionalLight::SetColor ( const Quantity_Color aColor)

◆ SetDirection()

void Vrml_DirectionalLight::SetDirection ( const gp_Vec aDirection)

◆ SetIntensity()

void Vrml_DirectionalLight::SetIntensity ( const Standard_Real  aIntensity)

◆ SetOnOff()

void Vrml_DirectionalLight::SetOnOff ( const Standard_Boolean  aOnOff)

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