class SG_EXPORT osg::LightSource

Leaf Node for defining a light in the scene

Inheritance:


Public Methods

[more] LightSource()
[more] META_Node(LightSource)
[more]inline void setLight(Light* light)
Set the attached light
[more]inline Light* getLight()
Get the attached light
[more]inline const Light* getLight() const
Get the const attached light

Protected Fields

[more]ref_ptr<Light> _light

Protected Methods

[more]virtual ~LightSource()
[more]virtual const bool computeBound() const


Inherited from Node:

Public Methods

ovirtual Object* clone() const
ovirtual bool isSameKindAs(const Object* obj) const
ovirtual const char* className() const
ovirtual void accept(NodeVisitor& nv)
ovirtual void ascend(NodeVisitor& nv)
ovirtual void traverse(NodeVisitor& )
oinline void setName( const std::string& name )
oinline void setName( const char* name )
oinline const std::string& getName() const
oinline const ParentList& getParents() const
oinline Group* getParent(const int i)
oinline const Group* getParent(const int i) const
oinline const int getNumParents() const
ovoid setAppCallback(NodeCallback* nc)
oinline NodeCallback* getAppCallback()
oinline const NodeCallback* getAppCallback() const
oinline const int getNumChildrenRequiringAppTraversal() const
oinline void setUserData(void* data, MemoryAdapter* ma=0L)
oinline void* getUserData()
oinline const void* getUserData() const
oinline MemoryAdapter* getMemoryAdapter()
oinline const MemoryAdapter* getMemoryAdapter() const
oinline void setNodeMask(const NodeMask nm)
oinline const NodeMask getNodeMask() const
oinline const DescriptionList& getDescriptions() const
oinline DescriptionList& getDescriptions()
oinline const std::string& getDescription(const int i) const
oinline std::string& getDescription(const int i)
oinline const int getNumDescriptions() const
ovoid addDescription(const std::string& desc)
oinline void setStateSet(osg::StateSet* dstate)
oinline osg::StateSet* getStateSet()
oinline const osg::StateSet* getStateSet() const
oinline const BoundingSphere& getBound() const
ovoid dirtyBound()

Public Members

otypedef std::vector<Group*> ParentList
otypedef std::vector<std::string> DescriptionList

Protected Fields

omutable BoundingSphere _bsphere
omutable bool _bsphere_computed
ostd::string _name
oParentList _parents
oref_ptr<NodeCallback> _appCallback
oint _numChildrenRequiringAppTraversal
ovoid* _userData
oref_ptr<MemoryAdapter> _memoryAdapter
oNodeMask _nodeMask
oDescriptionList _descriptions
oref_ptr<StateSet> _dstate

Protected Methods

ovoid setNumChildrenRequiringAppTraversal(const int num)


Inherited from Object:


Inherited from Referenced:

Public Methods

oinline Referenced& operator = (Referenced&)
oinline void ref() const
oinline void unref() const
oinline const int referenceCount() const

Protected Fields

omutable int _refCount


Documentation

Leaf Node for defining a light in the scene
o LightSource()

o META_Node(LightSource)

oinline void setLight(Light* light)
Set the attached light

oinline Light* getLight()
Get the attached light

oinline const Light* getLight() const
Get the const attached light

ovirtual ~LightSource()

ovirtual const bool computeBound() const

oref_ptr<Light> _light


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.