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

OSG Node Callback to update the MatrixTransform Nodes of one channel used for the y-scaling. More...

#include <WScaleTransformCallback.h>

+ Inheritance diagram for WScaleTransformCallback:
+ Collaboration diagram for WScaleTransformCallback:

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...
 

Detailed Description

OSG Node Callback to update the MatrixTransform Nodes of one channel used for the y-scaling.

Definition at line 41 of file WScaleTransformCallback.h.

Constructor & Destructor Documentation

◆ WScaleTransformCallback()

WScaleTransformCallback::WScaleTransformCallback ( std::size_t  channelID,
WPropDouble  ySpacing,
WPropDouble  ySensitivity 
)

Constructor.

Parameters
channelIDthe number of the channel
ySpacingthe distance between two curves of the graph in pixel as property
ySensitivitythe sensitivity of the graph in microvolt per pixel as property

Definition at line 37 of file WScaleTransformCallback.cpp.

Member Function Documentation

◆ operator()()

void WScaleTransformCallback::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 48 of file WScaleTransformCallback.cpp.

References m_channelID, m_currentYSensitivity, m_currentYSpacing, m_ySensitivity, and m_ySpacing.

Member Data Documentation

◆ m_channelID

const std::size_t WScaleTransformCallback::m_channelID
private

the number of the channel

Definition at line 71 of file WScaleTransformCallback.h.

Referenced by operator()().

◆ m_currentYSensitivity

double WScaleTransformCallback::m_currentYSensitivity
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()().

◆ m_currentYSpacing

double WScaleTransformCallback::m_currentYSpacing
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()().

◆ m_ySensitivity

WPropDouble WScaleTransformCallback::m_ySensitivity
private

the sensitivity of the graph in microvolt per pixel as property

Definition at line 93 of file WScaleTransformCallback.h.

Referenced by operator()().

◆ m_ySpacing

WPropDouble WScaleTransformCallback::m_ySpacing
private

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

Definition at line 88 of file WScaleTransformCallback.h.

Referenced by operator()().


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