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

OSG Node Callback to update the MatrixTransform Node of the labels used for panning and zooming. More...

#include <WLabelsTransformCallback.h>

+ Inheritance diagram for WLabelsTransformCallback:
+ Collaboration diagram for WLabelsTransformCallback:

Public Member Functions

 WLabelsTransformCallback (WPropDouble yPos, WPropDouble ySpacing)
 Constructor. More...
 
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 Callback method called by the NodeVisitor when visiting a node. More...
 

Private Attributes

double m_currentYPos
 the y position in pixel at the lower edge which is currently used More...
 
double m_currentYSpacing
 the distance between two curves of the graph in pixel which is currently used More...
 
WPropDouble m_yPos
 the y position in pixel at the lower edge as property More...
 
WPropDouble m_ySpacing
 the distance between two curves of the graph in pixel as property More...
 

Detailed Description

OSG Node Callback to update the MatrixTransform Node of the labels used for panning and zooming.

Definition at line 39 of file WLabelsTransformCallback.h.

Constructor & Destructor Documentation

◆ WLabelsTransformCallback()

WLabelsTransformCallback::WLabelsTransformCallback ( WPropDouble  yPos,
WPropDouble  ySpacing 
)

Constructor.

Parameters
yPosthe y position in pixel at the lower edge as property
ySpacingthe distance between two curves of the graph in pixel as property

Definition at line 35 of file WLabelsTransformCallback.cpp.

Member Function Documentation

◆ operator()()

void WLabelsTransformCallback::operator() ( osg::Node *  node,
osg::NodeVisitor *  nv 
)
virtual

Callback method called by the NodeVisitor when visiting a node.

Change the matrix according to the properties.

Parameters
nodeThe node this callback is connected to. Should be a MatrixTransform node.
nvThe node visitor which performs the traversal. Should be an update visitor.

Definition at line 43 of file WLabelsTransformCallback.cpp.

References m_currentYPos, m_currentYSpacing, m_yPos, and m_ySpacing.

Member Data Documentation

◆ m_currentYPos

double WLabelsTransformCallback::m_currentYPos
private

the y position in pixel at the lower edge which is currently used

Definition at line 67 of file WLabelsTransformCallback.h.

Referenced by operator()().

◆ m_currentYSpacing

double WLabelsTransformCallback::m_currentYSpacing
private

the distance between two curves of the graph in pixel which is currently used

Definition at line 73 of file WLabelsTransformCallback.h.

Referenced by operator()().

◆ m_yPos

WPropDouble WLabelsTransformCallback::m_yPos
private

the y position in pixel at the lower edge as property

Definition at line 78 of file WLabelsTransformCallback.h.

Referenced by operator()().

◆ m_ySpacing

WPropDouble WLabelsTransformCallback::m_ySpacing
private

the distance between two curves of the graph in pixel as property

Definition at line 83 of file WLabelsTransformCallback.h.

Referenced by operator()().


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