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

osg::LightSource Class Reference

Leaf Node for defining a light in the scene. More...

Inheritance diagram for osg::LightSource:

Inheritance graph
[legend]
List of all members.

Public Methods

 LightSource ()
 LightSource (const LightSource &ls, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 META_Node (osg, LightSource)
void setLight (StateAttribute *light)
 Set the attached light.

StateAttributegetLight ()
 Get the attached light.

const StateAttributegetLight () const
 Get the const attached light.

void setStateSetModes (StateSet &, const StateAttribute::GLModeValue) const
 Set the GLModes on StateSet associated with the LightSource.

void setLocalStateSetModes (const StateAttribute::GLModeValue=StateAttribute::ON)
 Set up the local StateSet.


Protected Methods

virtual ~LightSource ()
virtual const bool computeBound () const
 Compute the bounding sphere around Node's geometry or children.


Protected Attributes

StateAttribute::GLModeValue _value
ref_ptr< StateAttribute_light

Detailed Description

Leaf Node for defining a light in the scene.


Constructor & Destructor Documentation

osg::LightSource::LightSource  
 

osg::LightSource::LightSource const LightSource &    ls,
const CopyOp   copyop = CopyOp::SHALLOW_COPY
[inline]
 

virtual osg::LightSource::~LightSource   [protected, virtual]
 


Member Function Documentation

virtual const bool osg::LightSource::computeBound   const [protected, virtual]
 

Compute the bounding sphere around Node's geometry or children.

This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound().

Reimplemented from osg::Group.

const StateAttribute* osg::LightSource::getLight   const [inline]
 

Get the const attached light.

StateAttribute* osg::LightSource::getLight   [inline]
 

Get the attached light.

osg::LightSource::META_Node osg   ,
LightSource   
 

void osg::LightSource::setLight StateAttribute   light
 

Set the attached light.

void osg::LightSource::setLocalStateSetModes const StateAttribute::GLModeValue    = StateAttribute::ON
 

Set up the local StateSet.

void osg::LightSource::setStateSetModes StateSet  ,
const StateAttribute::GLModeValue   
const
 

Set the GLModes on StateSet associated with the LightSource.


Member Data Documentation

ref_ptr<StateAttribute> osg::LightSource::_light [protected]
 

StateAttribute::GLModeValue osg::LightSource::_value [protected]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:32 2002 for the Open Scene Graph by doxygen 1.2.16.