anatomist  5.1.2
3D neuroimaging data viewer
anatomist::RoiChangeProcessor Class Reference

#include <anatomist/action/roichangeprocessor.h>

Inheritance diagram for anatomist::RoiChangeProcessor:
Collaboration diagram for anatomist::RoiChangeProcessor:

Public Member Functions

 ~RoiChangeProcessor ()
 
void applyChange (std::list< std::pair< Point3d, ChangesItem > > *change)
 
void undo ()
 
void redo ()
 
void setUndoable (bool undoable)
 
bool undoable ()
 
void setRedoable (bool redoable)
 
bool redoable ()
 
void noMoreUndoable ()
 
BucketgetCurrentRegion (AWindow *)
 
anatomist::AGraphgetGraph (AWindow *)
 
anatomist::AGraphObjectgetGraphObject (AWindow *)
 
- Public Member Functions inherited from anatomist::Observable
 Observable ()
 Construct an Observable with zero observers. More...
 
virtual ~Observable ()
 does nothing More...
 
void addObserver (Observer *observer)
 Adds an observer to the set of observers for this object. More...
 
void deleteObserver (Observer *observer)
 Deletes an observer from the set of observers of this object. More...
 
void deleteObservers ()
 Clears the observer list so that this object no longer has any observers (doesn't call any observer method - see notifyUnregisterObservers() for this ) More...
 
int countObservers () const
 Returns the number of observers of this object. More...
 
virtual void notifyObservers (void *arg=0)
 If this object has changed, as indicated by the hasChanged method, then notify all of its observers. More...
 
virtual void notifyUnregisterObservers ()
 Notifies observable destruction to all observers and unregisters them. More...
 
bool hasChanged () const
 Tests if this object has changed. More...
 
bool obsHasChanged (int) const
 only valid during an Observer::update() More...
 
bool obsHasChanged (const std::string &) const
 only valid during an Observer::update() More...
 
void setChanged () const
 Indicates that this object has changed. More...
 
- Public Member Functions inherited from carto::SharedObject
 SharedObject ()
 
 SharedObject (const SharedObject &x)
 
virtual ~SharedObject ()
 
SharedObjectoperator= (const SharedObject &)
 
bool testDeletable ()
 
bool tryDelete ()
 
- Public Member Functions inherited from carto::WeakObject
void attachWeakPtr (weak_ptr< T > &) const
 
void detachWeakPtr (weak_ptr< T > &) const
 
void attachWeakPtr (weak_shared_ptr< T > &) const
 
void detachWeakPtr (weak_shared_ptr< T > &) const
 
virtual ~WeakObject ()
 
- Public Member Functions inherited from carto::RCObject
 RCObject ()
 
 RCObject (const RCObject &)
 
RCObjectoperator= (const RCObject &)
 
virtual ~RCObject ()
 

Static Public Member Functions

static RoiChangeProcessorinstance ()
 

Additional Inherited Members

- Public Types inherited from carto::RCObject
typedef int RefCounterType
 
- Protected Member Functions inherited from anatomist::Observable
void clearChanged () const
 Indicates that this object has no longer changed, or that it has already notified all of its observers of its most recent change. More...
 
void obsSetChanged (int, bool=true) const
 int-based change flags (use enums to address them) More...
 
void obsSetChanged (const std::string &, bool=true) const
 string-based change flags More...
 
- Protected Member Functions inherited from carto::SharedObject
void disableRefCount ()
 
- Protected Member Functions inherited from carto::WeakObject
 WeakObject ()
 
 WeakObject (const WeakObject &)
 
WeakObjectoperator= (const WeakObject &)
 

Detailed Description

Definition at line 58 of file roichangeprocessor.h.

Constructor & Destructor Documentation

◆ ~RoiChangeProcessor()

anatomist::RoiChangeProcessor::~RoiChangeProcessor ( )

Member Function Documentation

◆ applyChange()

void anatomist::RoiChangeProcessor::applyChange ( std::list< std::pair< Point3d, ChangesItem > > *  change)

◆ getCurrentRegion()

Bucket* anatomist::RoiChangeProcessor::getCurrentRegion ( AWindow )

◆ getGraph()

anatomist::AGraph* anatomist::RoiChangeProcessor::getGraph ( AWindow )

Referenced by redoable(), and undoable().

◆ getGraphObject()

anatomist::AGraphObject* anatomist::RoiChangeProcessor::getGraphObject ( AWindow )

◆ instance()

static RoiChangeProcessor* anatomist::RoiChangeProcessor::instance ( )
static

◆ noMoreUndoable()

void anatomist::RoiChangeProcessor::noMoreUndoable ( )

◆ redo()

void anatomist::RoiChangeProcessor::redo ( )

◆ redoable()

bool anatomist::RoiChangeProcessor::redoable ( )
inline

Definition at line 78 of file roichangeprocessor.h.

References getGraph().

Referenced by anatomist::PaintAction::redoable().

◆ setRedoable()

void anatomist::RoiChangeProcessor::setRedoable ( bool  redoable)

◆ setUndoable()

void anatomist::RoiChangeProcessor::setUndoable ( bool  undoable)

◆ undo()

void anatomist::RoiChangeProcessor::undo ( )

◆ undoable()

bool anatomist::RoiChangeProcessor::undoable ( )
inline

Definition at line 68 of file roichangeprocessor.h.

References getGraph().

Referenced by anatomist::PaintAction::undoable().


The documentation for this class was generated from the following file: