29 #include "WPickHandler.h"
45 m_name =
m_properties->addProperty(
"Name",
"The name of this ROI.", std::string(
"ROI" ) );
47 m_show =
m_properties->addProperty(
"Show",
"Toggles visibility of the ROI but does not disable it.",
true,
136 setNodeMask( 0xFFFFFFFF );
141 for( std::list< boost::shared_ptr< boost::function<
void() > > >::iterator iter =
m_changeNotifiers.begin();
150 boost::unique_lock< boost::shared_mutex > lock;
158 boost::unique_lock< boost::shared_mutex > lock;
160 std::list< boost::shared_ptr< boost::function< void() > > >::iterator it;
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.
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
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
void properties()
initializes properties
WPropString m_name
name of the ROI.
WPropBool m_dirty
dirty flag, indicating the graphics needs updating, it is no longer used for bitfield updating since ...
Class to manage properties of an object and to provide convenience methods for easy access and manipu...
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
void hide()
hides the roi in the scene
bool dirty()
Getter for modified flag.