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

#include <anatomist/action/roimanagementaction.h>

Inheritance diagram for anatomist::RoiManagementActionSharedData:
Collaboration diagram for anatomist::RoiManagementActionSharedData:

Public Member Functions

virtual ~RoiManagementActionSharedData ()
 
AObjectgetObjectByName (int objType, const std::string &name="") const
 
std::string currentImage () const
 
std::string currentGraph () const
 
AGraphObjectgetGraphObjectByName (const std::string &graphName, const std::string &roiName) const
 
void refresh ()
 
virtual void update (const Observable *, void *)
 This method is called whenever the observed object is changed. More...
 
- 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 ()
 
- Public Member Functions inherited from anatomist::Observer
virtual ~Observer ()
 

Static Public Member Functions

static RoiManagementActionSharedDatainstance ()
 

Protected Member Functions

virtual void unregisterObservable (Observable *)
 Called when an observable is destroyed, only called by Observable: don't use this function directly. More...
 
- 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 &)
 
- Protected Member Functions inherited from anatomist::Observer
virtual void cleanupObserver ()
 call this function from inherited classes destructors. More...
 
virtual void registerObservable (Observable *)
 only called by Observable: don't use this function directly More...
 
const std::set< Observable * > & observed () const
 

Friends

class RoiManagementAction
 

Additional Inherited Members

- Public Types inherited from carto::RCObject
typedef int RefCounterType
 

Detailed Description

Definition at line 185 of file roimanagementaction.h.

Constructor & Destructor Documentation

◆ ~RoiManagementActionSharedData()

virtual anatomist::RoiManagementActionSharedData::~RoiManagementActionSharedData ( )
virtual

Member Function Documentation

◆ currentGraph()

std::string anatomist::RoiManagementActionSharedData::currentGraph ( ) const
inline

Definition at line 193 of file roimanagementaction.h.

◆ currentImage()

std::string anatomist::RoiManagementActionSharedData::currentImage ( ) const
inline

Definition at line 192 of file roimanagementaction.h.

◆ getGraphObjectByName()

AGraphObject* anatomist::RoiManagementActionSharedData::getGraphObjectByName ( const std::string &  graphName,
const std::string &  roiName 
) const

◆ getObjectByName()

AObject* anatomist::RoiManagementActionSharedData::getObjectByName ( int  objType,
const std::string &  name = "" 
) const

◆ instance()

static RoiManagementActionSharedData* anatomist::RoiManagementActionSharedData::instance ( )
static

◆ refresh()

void anatomist::RoiManagementActionSharedData::refresh ( )

◆ unregisterObservable()

virtual void anatomist::RoiManagementActionSharedData::unregisterObservable ( Observable )
protectedvirtual

Called when an observable is destroyed, only called by Observable: don't use this function directly.

Reimplemented from anatomist::Observer.

◆ update()

virtual void anatomist::RoiManagementActionSharedData::update ( const Observable observable,
void *  arg 
)
virtual

This method is called whenever the observed object is changed.

The programmer calls an observable object's notifyObservers method to have all the object's observers notified of the change.

Parameters
observablethe observable object

Implements anatomist::Observer.

Friends And Related Function Documentation

◆ RoiManagementAction

friend class RoiManagementAction
friend

Definition at line 205 of file roimanagementaction.h.


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