OpenWalnut  1.5.0dev
Public Member Functions | Public Attributes | List of all members
WMSurfaceParameterAnimator::SafeUpdateCallback Class Reference

Node callback to change the color of the shapes inside the root node. More...

+ Inheritance diagram for WMSurfaceParameterAnimator::SafeUpdateCallback:
+ Collaboration diagram for WMSurfaceParameterAnimator::SafeUpdateCallback:

Public Member Functions

 SafeUpdateCallback (WMSurfaceParameterAnimator *module)
 Constructor. More...
 
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 operator () - called during the update traversal. More...
 

Public Attributes

WMSurfaceParameterAnimatorm_module
 Pointer used to access members of the module to modify the node. More...
 
bool m_initialUpdate
 Denotes whether the update callback is called the first time. More...
 

Detailed Description

Node callback to change the color of the shapes inside the root node.

For more details on this class, refer to the documentation in moduleMain().

Definition at line 222 of file WMSurfaceParameterAnimator.h.

Constructor & Destructor Documentation

◆ SafeUpdateCallback()

WMSurfaceParameterAnimator::SafeUpdateCallback::SafeUpdateCallback ( WMSurfaceParameterAnimator module)
inlineexplicit

Constructor.

Parameters
modulejust set the creating module as pointer for later reference.

Definition at line 230 of file WMSurfaceParameterAnimator.h.

Member Function Documentation

◆ operator()()

void WMSurfaceParameterAnimator::SafeUpdateCallback::operator() ( osg::Node *  node,
osg::NodeVisitor *  nv 
)
virtual

operator () - called during the update traversal.

Parameters
nodethe osg node
nvthe node visitor

Definition at line 286 of file WMSurfaceParameterAnimator.cpp.

References m_initialUpdate, WMSurfaceParameterAnimator::m_isoColor, and m_module.

Member Data Documentation

◆ m_initialUpdate

bool WMSurfaceParameterAnimator::SafeUpdateCallback::m_initialUpdate

Denotes whether the update callback is called the first time.

Definition at line 250 of file WMSurfaceParameterAnimator.h.

Referenced by operator()().

◆ m_module

WMSurfaceParameterAnimator* WMSurfaceParameterAnimator::SafeUpdateCallback::m_module

Pointer used to access members of the module to modify the node.

Definition at line 245 of file WMSurfaceParameterAnimator.h.

Referenced by operator()().


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