31 #include <boost/signals2/signal.hpp>
32 #include <boost/signals2/connection.hpp>
36 #include "../common/WProperties.h"
43 class WROI :
public osg::Geode
WPropBool showProperty()
The property for toggling ROI visibility.
void setDirty()
sets the dirty flag
WPropString nameProperty()
The name property.
boost::shared_ptr< WProperties > getProperties()
Getter.
WPropDouble m_threshold
threshold for an arbitrary roi
osg::ref_ptr< WPickHandler > m_pickHandler
A pointer to the pick handler used to get gui events for moving the box.
boost::shared_mutex m_associatedNotifiersLock
Lock for associated notifiers set.
WPropBool invertProperty()
Invert property.
WPropBool m_show
indicates if the roi is visible in the scene
void setActive(bool active)
setter
void removeROIChangeNotifier(boost::shared_ptr< boost::function< void() > > notifier)
Remove a specified notifier from the list of default notifiers which get connected to each roi...
WPropBool m_active
indicates if the roi is active
void propertyChanged()
callback when a property gets changed
WPropColor m_color
A color for painting the roi in the scene.
Superclass for different ROI (region of interest) types.
void signalRoiChange()
signals a roi change to all subscribers
bool isNot()
getter for NOT flag
void properties()
initializes the roi's properties
boost::shared_ptr< WProperties > m_properties
the property object for the module
WPropString m_name
name of the ROI.
Class to handle events with a pick.
WPropBool m_dirty
dirty flag, indicating the graphics needs updating, it is no longer used for bitfield updating since ...
virtual void updateGFX()=0
updates the graphics
std::list< boost::shared_ptr< boost::function< void() > > > m_changeNotifiers
The notifiers connected to added rois by default.
WPropBool m_not
indicates if the roi is negated
void unhide()
unhides the roi in the scene
void addROIChangeNotifier(boost::shared_ptr< boost::function< void() > > notifier)
Add a specified notifier to the list of default notifiers which get connected to each roi...
virtual ~WROI()
Need virtual destructor because of virtual function.
WPropBool activeProperty()
The active property.
void setNot(bool isNot=true)
sets the NOT flag
osg::ref_ptr< WROI > RefPtr
Ref Pointer type.
void hide()
hides the roi in the scene
bool dirty()
Getter for modified flag.