DtLightPointVisitor walks the scene graph and collects pointers to the LightPoint nodes.
More...
DtLightPointVisitor walks the scene graph and collects pointers to the LightPoint nodes.
It also aggregates transforms and provides hash values for switches and dofs.
| makVrv::DtLightPointVisitor::DtLightPointVisitor |
( |
| ) |
|
| virtual makVrv::DtLightPointVisitor::~DtLightPointVisitor |
( |
| ) |
|
|
virtual |
| virtual void makVrv::DtLightPointVisitor::apply |
( |
osg::Node & |
node | ) |
|
|
virtual |
The visitor apply method used to traverse the scene-graph.
- Parameters
-
| [in] | node | is the osg::Node being visited. |
- Note
- Called during scene-graph traversal, do not directly call this function.
| virtual void makVrv::DtLightPointVisitor::apply |
( |
osgSim::LightPointNode & |
node | ) |
|
|
virtual |
used to collect the light point nodes
used to collect the light point nodes
Gather the switch node information.
| virtual void makVrv::DtLightPointVisitor::apply |
( |
osg::Switch & |
node | ) |
|
|
virtual |
Gather the switch node information.
| virtual void makVrv::DtLightPointVisitor::apply |
( |
osgSim::MultiSwitch & |
node | ) |
|
|
virtual |
Gather the switch node information.
| virtual void makVrv::DtLightPointVisitor::apply |
( |
osg::LOD & |
node | ) |
|
|
virtual |
Gather the Lod information.
| virtual void makVrv::DtLightPointVisitor::apply |
( |
osg::Sequence & |
node | ) |
|
|
virtual |
Gather the sequence information.
| virtual void makVrv::DtLightPointVisitor::apply |
( |
osg::MatrixTransform & |
matTrans | ) |
|
|
virtual |
used to gather the matrix transforms so we get the geometry and lods in the correct position.
| virtual void makVrv::DtLightPointVisitor::apply |
( |
osgSim::DOFTransform & |
node | ) |
|
|
virtual |
used to gather DOFTransforms
Returns the list of light points for a terrain.
Track Common point to add light points to our set of them.
template<typename T >
| void makVrv::DtLightPointVisitor::addToNodeStack |
( |
DtNodePointerStack & |
nodeStack, |
|
|
const T & |
nodeInfoStack |
|
) |
| |
|
protected |
Add node pointers from given stack into a dedicated pointer stack used for light point aggregation division points.
TODO: when C++11 is available, this could use move semantics.
| std::stack<osg::Matrix> makVrv::DtLightPointVisitor::myMatrixStack |
|
protected |
| int makVrv::DtLightPointVisitor::myCurrentParentId |
|
protected |
| int makVrv::DtLightPointVisitor::myMaxDofId |
|
protected |
The documentation for this class was generated from the following file: