25 #ifndef WGENODEMASKCALLBACK_H
26 #define WGENODEMASKCALLBACK_H
28 #include <boost/signals2.hpp>
33 #include "../../common/WFlag.h"
63 virtual void operator()( osg::Node* node, osg::NodeVisitor* nv );
70 boost::shared_ptr< WBoolFlag >
m_flag;
98 #endif // WGENODEMASKCALLBACK_H
boost::signals2::connection m_reactivateConnection
This connection gets established during the deactivation in operator() to ensure re-activation.
ReactivateSignal m_reactivateSignal
The reactivation signal.
WGENodeMaskCallback(boost::shared_ptr< WBoolFlag > flag)
Creates new instance.
virtual ~WGENodeMaskCallback()
Destructor.
boost::signals2::connection m_connection
The subscription to the change signal of m_flag.
virtual void activate()
Gets called if m_flag changes.
boost::signals2::signal< void() > ReactivateSignal
The type of signal used to reactivate the signal.
virtual void operator()(osg::Node *node, osg::NodeVisitor *nv)
This operator gets called by OSG every update cycle.
boost::shared_ptr< WBoolFlag > m_flag
The flag controlling the node mask.
This callback is useful to en-/disable nodes using the node mask based on properties.