version 3.3

VRS::DistantLight Class Reference

Attribute for adding a directional light source to the scene. More...

#include <vrs/distantlight.h>

Inheritance diagram for VRS::DistantLight:

VRS::Light VRS::PolyAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 DistantLight (const Vector &direction=Vector(0, 0,-1), const Color &color=Color(1.0, 1.0, 1.0), double intensity=0.5, double ambientIntensity=0.1)
 Constructs directional lightsource by its direction, color, intensity and ambient intensity.
bool operator== (const DistantLight &other) const
void setDirection (const Vector &)
 Sets the direction from which the light comes, it goes to the opposite direction.
Vector getDirection () const
 Returns the direction from which the light comes, it goes to the opposite direction.
 VRS_TYPEINFO (DistantLight, Light)
 VRS_SERIALIZABLE (DistantLight)


Detailed Description

Attribute for adding a directional light source to the scene.

Constructor & Destructor Documentation

VRS::DistantLight::DistantLight ( const Vector direction = Vector(0, 0,-1),
const Color color = Color(1.0, 1.0, 1.0),
double  intensity = 0.5,
double  ambientIntensity = 0.1 
)

Constructs directional lightsource by its direction, color, intensity and ambient intensity.

Direction is the vector from where the light comes. It goes to the opposite direction.


Member Function Documentation

bool VRS::DistantLight::operator== ( const DistantLight other  )  const

void VRS::DistantLight::setDirection ( const Vector  ) 

Sets the direction from which the light comes, it goes to the opposite direction.

Vector VRS::DistantLight::getDirection (  )  const [inline]

Returns the direction from which the light comes, it goes to the opposite direction.

VRS::DistantLight::VRS_TYPEINFO ( DistantLight  ,
Light   
)

VRS::DistantLight::VRS_SERIALIZABLE ( DistantLight   ) 


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

Generated on Sat May 18 06:00:23 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact