![]() |
scg3
0.6
|
A light position node to define the position of an associated light within the scene graph (leaf node). More...
#include "LightPosition.h"
Public Member Functions | |
| LightPosition (LightSP light) | |
| virtual | ~LightPosition () |
| LightSP | getLight () |
| LightPosition * | setLight (LightSP light) |
| void | accept (Traverser *traverser) |
Public Member Functions inherited from scg::Leaf | |
| Leaf () | |
| virtual | ~Leaf ()=0 |
| virtual void | traverse (Traverser *traverser) |
Public Member Functions inherited from scg::Node | |
| Node () | |
| virtual | ~Node ()=0 |
| virtual void | clear () |
| virtual void | destroy () |
| int | getNCores () const |
| const std::string & | getMetaInfo (const std::string &key) const |
| void | setMetaInfo (const std::string &key, const std::string &value) |
| bool | isVisible () const |
| void | setVisible (bool isVisible=true) |
| virtual void | render (RenderState *renderState) |
Static Public Member Functions | |
| static LightPositionSP | create (LightSP light) |
Protected Attributes | |
| LightSP | light_ |
Protected Attributes inherited from scg::Node | |
| NodeSP | rightSibling_ |
| Composite * | parent_ |
| std::vector< CoreSP > | cores_ |
| bool | isVisible_ |
| std::unordered_map< std::string, std::string > | metaInfo_ |
Additional Inherited Members | |
Protected Member Functions inherited from scg::Node | |
| void | addSibling_ (NodeSP sibling) |
| void | removeSibling_ (Node *node, bool &result) |
| void | processCores_ (RenderState *renderState) |
| void | postProcessCores_ (RenderState *renderState) |
A light position node to define the position of an associated light within the scene graph (leaf node).
Light defines the logical position of a light source (i.e., which sub-tree of the scene graph the light is applied to), while LightPosition defines its physical position within the transformation hierarchy.
Definition at line 44 of file LightPosition.h.
|
virtual |
Destructor.
|
virtual |
Accept traverser (visitor pattern).
Reimplemented from scg::Node.
|
static |
Create shared pointer.
| LightPosition* scg::LightPosition::setLight | ( | LightSP | light | ) |
Set associated Light.
|
protected |
Definition at line 81 of file LightPosition.h.