![]() |
OpenWalnut
1.5.0dev
|
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... | |
OSG Node Callback to update the MatrixTransform Node used for the panning.
Definition at line 38 of file WPanTransformCallback.h.
| WPanTransformCallback::WPanTransformCallback | ( | WPropInt | labelsWidth, |
| WPropDouble | timePos, | ||
| WPropDouble | timeRange, | ||
| WPropInt | graphWidth, | ||
| WPropDouble | yPos | ||
| ) |
Constructor.
| labelsWidth | the width of the label display in pixel as property |
| timePos | the time position in seconds where to start the graph at the left edge as property |
| timeRange | the width of the graph in seconds as property |
| graphWidth | the width of the graph in pixel as property |
| yPos | the y position in pixel at the lower edge as property |
Definition at line 35 of file WPanTransformCallback.cpp.
|
virtual |
Callback method called by the NodeVisitor when visiting a node.
Change the matrix according to the properties.
| node | The node this callback is connected to. Should be a MatrixTransform node. |
| nv | The 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.
|
private |
the width of the graph in pixel which is currently used
Definition at line 89 of file WPanTransformCallback.h.
Referenced by operator()().
|
private |
the width of the label display in pixel which is currently used
Definition at line 73 of file WPanTransformCallback.h.
Referenced by operator()().
|
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()().
|
private |
the width of the graph in seconds which is currently used
Definition at line 84 of file WPanTransformCallback.h.
Referenced by operator()().
|
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()().
|
private |
the width of the graph in pixel as property
Definition at line 115 of file WPanTransformCallback.h.
Referenced by operator()().
|
private |
the width of the label display in pixel as property
Definition at line 99 of file WPanTransformCallback.h.
Referenced by operator()().
|
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()().
|
private |
the width of the graph in seconds as property
Definition at line 110 of file WPanTransformCallback.h.
Referenced by operator()().
|
private |
the y position in pixel at the lower edge as property
Definition at line 120 of file WPanTransformCallback.h.
Referenced by operator()().