OpenWalnut
1.5.0dev
|
OSG Node Callback to update the MatrixTransform Nodes of one channel used for the y-scaling. More...
#include <WScaleTransformCallback.h>
Public Member Functions | |
WScaleTransformCallback (std::size_t channelID, WPropDouble ySpacing, WPropDouble ySensitivity) | |
Constructor. More... | |
virtual void | operator() (osg::Node *node, osg::NodeVisitor *nv) |
Callback method called by the NodeVisitor when visiting a node. More... | |
Private Attributes | |
const std::size_t | m_channelID |
the number of the channel More... | |
double | m_currentYSpacing |
the distance between two curves of the graph in pixel which is currently used More... | |
double | m_currentYSensitivity |
the sensitivity of the graph in microvolt per pixel which is currently used More... | |
WPropDouble | m_ySpacing |
the distance between two curves of the graph in pixel as property More... | |
WPropDouble | m_ySensitivity |
the sensitivity of the graph in microvolt per pixel as property More... | |
OSG Node Callback to update the MatrixTransform Nodes of one channel used for the y-scaling.
Definition at line 41 of file WScaleTransformCallback.h.
WScaleTransformCallback::WScaleTransformCallback | ( | std::size_t | channelID, |
WPropDouble | ySpacing, | ||
WPropDouble | ySensitivity | ||
) |
Constructor.
channelID | the number of the channel |
ySpacing | the distance between two curves of the graph in pixel as property |
ySensitivity | the sensitivity of the graph in microvolt per pixel as property |
Definition at line 37 of file WScaleTransformCallback.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 48 of file WScaleTransformCallback.cpp.
References m_channelID, m_currentYSensitivity, m_currentYSpacing, m_ySensitivity, and m_ySpacing.
|
private |
the number of the channel
Definition at line 71 of file WScaleTransformCallback.h.
Referenced by operator()().
|
private |
the sensitivity of the graph in microvolt per pixel which is currently used
Definition at line 83 of file WScaleTransformCallback.h.
Referenced by operator()().
|
private |
the distance between two curves of the graph in pixel which is currently used
Definition at line 77 of file WScaleTransformCallback.h.
Referenced by operator()().
|
private |
the sensitivity of the graph in microvolt per pixel as property
Definition at line 93 of file WScaleTransformCallback.h.
Referenced by operator()().
|
private |
the distance between two curves of the graph in pixel as property
Definition at line 88 of file WScaleTransformCallback.h.
Referenced by operator()().