Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

PointLight Class Reference

PointLight node instances. More...

Inheritance diagram for PointLight:

AbstractLight AbstractChild AbstractBase ChildNode Node Node List of all members.

Public Methods

 PointLight (const NodeType &nodeType, const ScopePtr &scope)
 Constructor.

virtual ~PointLight () throw ()
 Destructor.

virtual PointLight * toPointLight () const
virtual void renderScoped (Viewer *)

Private Methods

virtual void initializeImpl (double timestamp) throw ()
 Initialize.

void processSet_attenuation (const FieldValue &sfvec3f, double timestamp) throw (std::bad_cast)
 set_attenuation eventIn handler.

void processSet_location (const FieldValue &sfvec3f, double timestamp) throw (std::bad_cast)
 set_location eventIn handler.

void processSet_radius (const FieldValue &sffloat, double timestamp) throw (std::bad_cast)
 set_radius eventIn handler.


Private Attributes

SFVec3f attenuation
SFVec3f location
SFFloat radius

Friends

class PointLightClass

Detailed Description

PointLight node instances.


Constructor & Destructor Documentation

PointLight const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

Parameters:
nodeType the NodeType associated with the node instance.
scope the Scope to which the node belongs.

~PointLight   throw () [virtual]
 

Destructor.


Member Function Documentation

void initializeImpl double    timestamp throw () [private, virtual]
 

Initialize.

Parameters:
timestamp the current time.

Reimplemented from Node.

void processSet_attenuation const FieldValue   sfvec3f,
double    timestamp
throw (std::bad_cast) [private]
 

set_attenuation eventIn handler.

Parameters:
sfvec3f an SFVec3f.
timestamp the current time.
Exceptions:
std::bad_cast if sfvec3f is not an SFVec3f.

void processSet_location const FieldValue   sfvec3f,
double    timestamp
throw (std::bad_cast) [private]
 

set_location eventIn handler.

Parameters:
sfvec3f an SFVec3f.
timestamp the current time.
Exceptions:
std::bad_cast if sfvec3f is not an SFVec3f.

void processSet_radius const FieldValue   sffloat,
double    timestamp
throw (std::bad_cast) [private]
 

set_radius eventIn handler.

Parameters:
sffloat an SFFloat.
timestamp the current time.
Exceptions:
std::bad_cast if sffloat is not an SFFloat.