![]() |
anatomist
5.1.2
3D neuroimaging data viewer
|
Transformation observer. More...
#include <anatomist/reference/transformobserver.h>
Public Member Functions | |
TransformationObserver (const std::set< const Referential * > &) | |
virtual | ~TransformationObserver () |
bool | involves (const Referential *r) const |
bool | involves (const Transformation *t) const |
void | addObserver (Observer *observer) |
void | deleteObserver (Observer *observer) |
const std::set< const Referential * > & | referentials () const |
![]() | |
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... | |
![]() | |
SharedObject () | |
SharedObject (const SharedObject &x) | |
virtual | ~SharedObject () |
SharedObject & | operator= (const SharedObject &) |
bool | testDeletable () |
bool | tryDelete () |
![]() | |
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 () |
![]() | |
RCObject () | |
RCObject (const RCObject &) | |
RCObject & | operator= (const RCObject &) |
virtual | ~RCObject () |
Additional Inherited Members | |
![]() | |
typedef int | RefCounterType |
![]() | |
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... | |
![]() | |
void | disableRefCount () |
![]() | |
WeakObject () | |
WeakObject (const WeakObject &) | |
WeakObject & | operator= (const WeakObject &) |
Transformation observer.
This class emits a signal to its observers when a transformation involving a set of referentials changes.
This class is not a real observer: it's a proxy and an Observable, but it acts as if it was an observer for transformations.
NEVER use this class directly, it is part of an internal system only handled by ATransformSet. Always use ATransformSet functions instead.
Definition at line 57 of file transformobserver.h.
anatomist::TransformationObserver::TransformationObserver | ( | const std::set< const Referential * > & | ) |
|
virtual |
void anatomist::TransformationObserver::addObserver | ( | Observer * | observer | ) |
void anatomist::TransformationObserver::deleteObserver | ( | Observer * | observer | ) |
bool anatomist::TransformationObserver::involves | ( | const Referential * | r | ) | const |
bool anatomist::TransformationObserver::involves | ( | const Transformation * | t | ) | const |
const std::set<const Referential *>& anatomist::TransformationObserver::referentials | ( | ) | const |