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

OSG Node Callback to update the MatrixTransform Node used for the panning. More...

#include <WPanTransformCallback.h>

+ Inheritance diagram for WPanTransformCallback:
+ Collaboration diagram for WPanTransformCallback:

Public Member Functions

 WPanTransformCallback (WPropInt labelsWidth, WPropDouble timePos, WPropDouble timeRange, WPropInt graphWidth, WPropDouble yPos)
 Constructor. More...
 
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 Callback method called by the NodeVisitor when visiting a node. More...
 

Private Attributes

int m_currentLabelsWidth
 the width of the label display in pixel which is currently used More...
 
double m_currentTimePos
 the time position in seconds where to start the graph at the left edge which is currently used More...
 
double m_currentTimeRange
 the width of the graph in seconds which is currently used More...
 
int m_currentGraphWidth
 the width of the graph in pixel which is currently used More...
 
double m_currentYPos
 the y position in pixel at the lower edge which is currently used More...
 
WPropInt m_labelsWidth
 the width of the label display in pixel as property More...
 
WPropDouble m_timePos
 the time position in seconds where to start the graph at the left edge as property More...
 
WPropDouble m_timeRange
 the width of the graph in seconds as property More...
 
WPropInt m_graphWidth
 the width of the graph in pixel as property More...
 
WPropDouble m_yPos
 the y position in pixel at the lower edge as property More...
 

Detailed Description

OSG Node Callback to update the MatrixTransform Node used for the panning.

Definition at line 38 of file WPanTransformCallback.h.

Constructor & Destructor Documentation

◆ WPanTransformCallback()

WPanTransformCallback::WPanTransformCallback ( WPropInt  labelsWidth,
WPropDouble  timePos,
WPropDouble  timeRange,
WPropInt  graphWidth,
WPropDouble  yPos 
)

Constructor.

Parameters
labelsWidththe width of the label display in pixel as property
timePosthe time position in seconds where to start the graph at the left edge as property
timeRangethe width of the graph in seconds as property
graphWidththe width of the graph in pixel as property
yPosthe y position in pixel at the lower edge as property

Definition at line 35 of file WPanTransformCallback.cpp.

Member Function Documentation

◆ operator()()

void WPanTransformCallback::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 53 of file WPanTransformCallback.cpp.

References m_currentGraphWidth, m_currentLabelsWidth, m_currentTimePos, m_currentTimeRange, m_currentYPos, m_graphWidth, m_labelsWidth, m_timePos, m_timeRange, and m_yPos.

Member Data Documentation

◆ m_currentGraphWidth

int WPanTransformCallback::m_currentGraphWidth
private

the width of the graph in pixel which is currently used

Definition at line 89 of file WPanTransformCallback.h.

Referenced by operator()().

◆ m_currentLabelsWidth

int WPanTransformCallback::m_currentLabelsWidth
private

the width of the label display in pixel which is currently used

Definition at line 73 of file WPanTransformCallback.h.

Referenced by operator()().

◆ m_currentTimePos

double WPanTransformCallback::m_currentTimePos
private

the time position in seconds where to start the graph at the left edge which is currently used

Definition at line 79 of file WPanTransformCallback.h.

Referenced by operator()().

◆ m_currentTimeRange

double WPanTransformCallback::m_currentTimeRange
private

the width of the graph in seconds which is currently used

Definition at line 84 of file WPanTransformCallback.h.

Referenced by operator()().

◆ m_currentYPos

double WPanTransformCallback::m_currentYPos
private

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

Definition at line 94 of file WPanTransformCallback.h.

Referenced by operator()().

◆ m_graphWidth

WPropInt WPanTransformCallback::m_graphWidth
private

the width of the graph in pixel as property

Definition at line 115 of file WPanTransformCallback.h.

Referenced by operator()().

◆ m_labelsWidth

WPropInt WPanTransformCallback::m_labelsWidth
private

the width of the label display in pixel as property

Definition at line 99 of file WPanTransformCallback.h.

Referenced by operator()().

◆ m_timePos

WPropDouble WPanTransformCallback::m_timePos
private

the time position in seconds where to start the graph at the left edge as property

Definition at line 105 of file WPanTransformCallback.h.

Referenced by operator()().

◆ m_timeRange

WPropDouble WPanTransformCallback::m_timeRange
private

the width of the graph in seconds as property

Definition at line 110 of file WPanTransformCallback.h.

Referenced by operator()().

◆ m_yPos

WPropDouble WPanTransformCallback::m_yPos
private

the y position in pixel at the lower edge as property

Definition at line 120 of file WPanTransformCallback.h.

Referenced by operator()().


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