25 #ifndef WELECTRODEPOSITIONCALLBACK_H
26 #define WELECTRODEPOSITIONCALLBACK_H
31 #include <osg/Drawable>
32 #include <osg/ref_ptr>
33 #include <osgSim/ScalarsToColors>
35 #include "WEEGEvent.h"
36 #include "core/common/WFlag.h"
37 #include "core/common/WPropertyTypes.h"
60 WPropDouble colorSensitivity,
61 std::shared_ptr<
WFlag< std::shared_ptr< WEEGEvent > > > event,
62 osg::ref_ptr< const osgSim::ScalarsToColors > colorMap );
71 virtual void update( osg::NodeVisitor* , osg::Drawable* drawable );
101 std::shared_ptr< WFlag< std::shared_ptr< WEEGEvent > > >
m_event;
107 const osg::ref_ptr< const osgSim::ScalarsToColors >
m_colorMap;
OSG Update Callback to change the color of an electrode position when the event position changed.
double m_currentTime
The time position which is currently used.
std::shared_ptr< WFlag< std::shared_ptr< WEEGEvent > > > m_event
event marking a special time position as WFlag
virtual void update(osg::NodeVisitor *, osg::Drawable *drawable)
Callback method called by the NodeVisitor.
WElectrodePositionCallback(std::size_t channelID, WPropDouble colorSensitivity, std::shared_ptr< WFlag< std::shared_ptr< WEEGEvent > > > event, osg::ref_ptr< const osgSim::ScalarsToColors > colorMap)
Constructor.
const osg::ref_ptr< const osgSim::ScalarsToColors > m_colorMap
the ScalarsToColors object mapping the potentials at the electrodes to colors
double m_currentColorSensitivity
the sensitivity of the color map which is currently used
const std::size_t m_channelID
the number of the channel
WPropDouble m_colorSensitivity
The sensitivity of the color map as property.
Class to have a simple notification/condition system for simple flags.