OpenWalnut
1.5.0dev
|
A visitor that ignores specific nodes that are irrelevant for the trackball. More...
#include <WGEZoomTrackballNodeVisitor.h>
Public Member Functions | |
WGEZoomTrackballNodeVisitor (TraversalMode traversalMode=TRAVERSE_ACTIVE_CHILDREN) | |
Creates a new node visitor. More... | |
virtual void | reset () |
Resets this visitor. More... | |
void | apply (osg::Camera &node) |
Handles camera nodes. More... | |
void | apply (osg::Projection &node) |
Handles projection nodes. More... | |
void | apply (osg::Drawable &node) |
Handles drawable nodes. More... | |
void | apply (osg::MatrixTransform &node) |
Handles matrixtransform nodes. More... | |
osg::BoundingBox & | getBoundingBox () |
Gets the bounding box. More... | |
Private Attributes | |
osg::BoundingBox | m_bb |
The bounding box that is generated. More... | |
std::vector< osg::Matrix > | m_matrixStack |
The stack for the matrices. More... | |
A visitor that ignores specific nodes that are irrelevant for the trackball.
Definition at line 37 of file WGEZoomTrackballNodeVisitor.h.
|
explicit |
Creates a new node visitor.
traversalMode | The traversal mode. |
Definition at line 36 of file WGEZoomTrackballNodeVisitor.cpp.
void WGEZoomTrackballNodeVisitor::apply | ( | osg::Camera & | node | ) |
Handles camera nodes.
node | The camera node. |
Definition at line 46 of file WGEZoomTrackballNodeVisitor.cpp.
void WGEZoomTrackballNodeVisitor::apply | ( | osg::Drawable & | node | ) |
Handles drawable nodes.
node | The drawable node. |
Definition at line 68 of file WGEZoomTrackballNodeVisitor.cpp.
References m_bb, and m_matrixStack.
void WGEZoomTrackballNodeVisitor::apply | ( | osg::MatrixTransform & | node | ) |
Handles matrixtransform nodes.
node | The matrixtransform node. |
Definition at line 92 of file WGEZoomTrackballNodeVisitor.cpp.
References m_matrixStack.
void WGEZoomTrackballNodeVisitor::apply | ( | osg::Projection & | node | ) |
Handles projection nodes.
node | The projection node. |
Definition at line 57 of file WGEZoomTrackballNodeVisitor.cpp.
osg::BoundingBox & WGEZoomTrackballNodeVisitor::getBoundingBox | ( | ) |
Gets the bounding box.
Definition at line 106 of file WGEZoomTrackballNodeVisitor.cpp.
References m_bb.
Referenced by WGEZoomTrackballManipulator::computeHomePosition().
|
virtual |
Resets this visitor.
Definition at line 40 of file WGEZoomTrackballNodeVisitor.cpp.
References m_bb, and m_matrixStack.
|
private |
The bounding box that is generated.
Definition at line 82 of file WGEZoomTrackballNodeVisitor.h.
Referenced by apply(), getBoundingBox(), and reset().
|
private |
The stack for the matrices.
Definition at line 83 of file WGEZoomTrackballNodeVisitor.h.