OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
WGEZoomTrackballNodeVisitor Class Reference

A visitor that ignores specific nodes that are irrelevant for the trackball. More...

#include <WGEZoomTrackballNodeVisitor.h>

+ Inheritance diagram for WGEZoomTrackballNodeVisitor:
+ Collaboration diagram for WGEZoomTrackballNodeVisitor:

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...
 

Detailed Description

A visitor that ignores specific nodes that are irrelevant for the trackball.

Definition at line 37 of file WGEZoomTrackballNodeVisitor.h.

Constructor & Destructor Documentation

◆ WGEZoomTrackballNodeVisitor()

WGEZoomTrackballNodeVisitor::WGEZoomTrackballNodeVisitor ( TraversalMode  traversalMode = TRAVERSE_ACTIVE_CHILDREN)
explicit

Creates a new node visitor.

Parameters
traversalModeThe traversal mode.

Definition at line 36 of file WGEZoomTrackballNodeVisitor.cpp.

Member Function Documentation

◆ apply() [1/4]

void WGEZoomTrackballNodeVisitor::apply ( osg::Camera &  node)

Handles camera nodes.

Parameters
nodeThe camera node.

Definition at line 46 of file WGEZoomTrackballNodeVisitor.cpp.

◆ apply() [2/4]

void WGEZoomTrackballNodeVisitor::apply ( osg::Drawable &  node)

Handles drawable nodes.

Parameters
nodeThe drawable node.

Definition at line 68 of file WGEZoomTrackballNodeVisitor.cpp.

References m_bb, and m_matrixStack.

◆ apply() [3/4]

void WGEZoomTrackballNodeVisitor::apply ( osg::MatrixTransform &  node)

Handles matrixtransform nodes.

Parameters
nodeThe matrixtransform node.

Definition at line 92 of file WGEZoomTrackballNodeVisitor.cpp.

References m_matrixStack.

◆ apply() [4/4]

void WGEZoomTrackballNodeVisitor::apply ( osg::Projection &  node)

Handles projection nodes.

Parameters
nodeThe projection node.

Definition at line 57 of file WGEZoomTrackballNodeVisitor.cpp.

◆ getBoundingBox()

osg::BoundingBox & WGEZoomTrackballNodeVisitor::getBoundingBox ( )

Gets the bounding box.

Returns
osg::BoundingBox& The bounding box.

Definition at line 106 of file WGEZoomTrackballNodeVisitor.cpp.

References m_bb.

Referenced by WGEZoomTrackballManipulator::computeHomePosition().

+ Here is the caller graph for this function:

◆ reset()

void WGEZoomTrackballNodeVisitor::reset ( )
virtual

Resets this visitor.

Definition at line 40 of file WGEZoomTrackballNodeVisitor.cpp.

References m_bb, and m_matrixStack.

Member Data Documentation

◆ m_bb

osg::BoundingBox WGEZoomTrackballNodeVisitor::m_bb
private

The bounding box that is generated.

Definition at line 82 of file WGEZoomTrackballNodeVisitor.h.

Referenced by apply(), getBoundingBox(), and reset().

◆ m_matrixStack

std::vector< osg::Matrix > WGEZoomTrackballNodeVisitor::m_matrixStack
private

The stack for the matrices.

Definition at line 83 of file WGEZoomTrackballNodeVisitor.h.

Referenced by apply(), and reset().


The documentation for this class was generated from the following files: