![]() |
ufe 6.2
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
|
Helper to observe transform3d changes on a path. More...
#include <transform3dPathSubject.h>
Public Types | |
typedef std::shared_ptr< Transform3dPathSubject > | Ptr |
![]() | |
typedef std::shared_ptr< PathSubject > | Ptr |
using | AddObserverFcn = std::function< bool(const SceneItem::Ptr &item, const Observer::Ptr &obs)> |
Callable function to add an observer to a SceneItem. More... | |
using | RemoveObserverFcn = std::function< bool(const Path &Path, const Observer::Ptr &obs)> |
Callable function to remove an observer from a Path. More... | |
Public Member Functions | |
~Transform3dPathSubject () override | |
Destructor. More... | |
Transform3dPathSubject (const Path &path) | |
![]() | |
~PathSubject () override | |
Destructor. More... | |
PathSubject (const Path &path, AddObserverFcn addObserverFcn, RemoveObserverFcn removeObserverFcn) | |
bool | addObserver (const Observer::Ptr &obs) |
bool | removeObserver (const Observer::Ptr &obs) |
![]() | |
Subject () | |
Constructor. More... | |
Subject (const Subject &) | |
Copy constructor. Observers are not copied. More... | |
Subject (Subject &&) | |
Move constructor. Observers are not moved. More... | |
virtual | ~Subject () |
Destructor. More... | |
Subject & | operator= (const Subject &) |
Assignment operator. Does nothing, as observers are not copied. More... | |
Subject & | operator= (Subject &&) |
Move assignment operator. Does nothing, as observers are not moved. More... | |
bool | addObserver (const Observer::Ptr &obs) |
bool | removeObserver (const Observer::Ptr &obs) |
bool | hasObserver (const Observer::Ptr &obs) const |
std::size_t | nbObservers () const |
virtual void | notify (const Notification ¬ification) |
virtual bool | inCompositeNotification () const |
Additional Inherited Members | |
![]() | |
virtual void | beginNotificationGuard () |
Notification guard interface. Implementation in this class is a no-op. More... | |
virtual void | endNotificationGuard () |
Helper to observe transform3d changes on a path.
Transform3dPathSubject observes all SceneItems in its path and forwards all transform3d notifications to the observers of Transform3dPathSubject.
As the observed path changes (through reparent operations) the set of observed SceneItem subjects is automatically updated to reflect the new path.
Definition at line 26 of file transform3dPathSubject.h.
typedef std::shared_ptr<Transform3dPathSubject> Ufe::Transform3dPathSubject::Ptr |
Definition at line 29 of file transform3dPathSubject.h.
|
override |
Destructor.
Ufe::Transform3dPathSubject::Transform3dPathSubject | ( | const Path & | path | ) |
Constructor
path | Path to make observable |