![]() |
OpenWalnut
1.5.0dev
|
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... | |
OSG Node Callback to update the MatrixTransform Node of the labels used for panning and zooming.
Definition at line 39 of file WLabelsTransformCallback.h.
| WLabelsTransformCallback::WLabelsTransformCallback | ( | WPropDouble | yPos, |
| WPropDouble | ySpacing | ||
| ) |
Constructor.
| yPos | the y position in pixel at the lower edge as property |
| ySpacing | the distance between two curves of the graph in pixel as property |
Definition at line 35 of file WLabelsTransformCallback.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 43 of file WLabelsTransformCallback.cpp.
References m_currentYPos, m_currentYSpacing, m_yPos, and m_ySpacing.
|
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()().
|
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()().
|
private |
the y position in pixel at the lower edge as property
Definition at line 78 of file WLabelsTransformCallback.h.
Referenced by operator()().
|
private |
the distance between two curves of the graph in pixel as property
Definition at line 83 of file WLabelsTransformCallback.h.
Referenced by operator()().