25 #ifndef WHEADSURFACECALLBACK_H
26 #define WHEADSURFACECALLBACK_H
32 #include <osg/Drawable>
34 #include "WEEGEvent.h"
35 #include "core/common/WFlag.h"
36 #include "core/common/WPropertyTypes.h"
57 WPropDouble colorSensitivity,
58 std::shared_ptr<
WFlag< std::shared_ptr< WEEGEvent > > > event );
67 virtual void update( osg::NodeVisitor* , osg::Drawable* drawable );
97 std::shared_ptr< WFlag< std::shared_ptr< WEEGEvent > > >
m_event;
Class to have a simple notification/condition system for simple flags.
OSG Update Callback to change the color of a head surface by changing its 1D texture coordinates when...
virtual void update(osg::NodeVisitor *, osg::Drawable *drawable)
Callback method called by the NodeVisitor.
WHeadSurfaceCallback(const std::vector< std::size_t > &channelIDs, WPropDouble colorSensitivity, std::shared_ptr< WFlag< std::shared_ptr< WEEGEvent > > > event)
Constructor.
const std::vector< std::size_t > m_channelIDs
the mapping from vertex indices to channel IDs
WPropDouble m_colorSensitivity
The sensitivity of the color map as property.
std::shared_ptr< WFlag< std::shared_ptr< WEEGEvent > > > m_event
event marking a special time position as WFlag
double m_currentColorSensitivity
the sensitivity of the color map which is currently used
double m_currentTime
The time position which is currently used.