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
Ufe::Transform3dPathSubject Class Reference

Helper to observe transform3d changes on a path. More...

#include <transform3dPathSubject.h>

Inheritance diagram for Ufe::Transform3dPathSubject:
Collaboration diagram for Ufe::Transform3dPathSubject:

Public Types

typedef std::shared_ptr< Transform3dPathSubjectPtr
 
- Public Types inherited from Ufe::PathSubject
typedef std::shared_ptr< PathSubjectPtr
 
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)
 
- Public Member Functions inherited from Ufe::PathSubject
 ~PathSubject () override
 Destructor. More...
 
 PathSubject (const Path &path, AddObserverFcn addObserverFcn, RemoveObserverFcn removeObserverFcn)
 
bool addObserver (const Observer::Ptr &obs)
 
bool removeObserver (const Observer::Ptr &obs)
 
- Public Member Functions inherited from Ufe::Subject
 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...
 
Subjectoperator= (const Subject &)
 Assignment operator. Does nothing, as observers are not copied. More...
 
Subjectoperator= (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 &notification)
 
virtual bool inCompositeNotification () const
 

Additional Inherited Members

- Protected Member Functions inherited from Ufe::Subject
virtual void beginNotificationGuard ()
 Notification guard interface. Implementation in this class is a no-op. More...
 
virtual void endNotificationGuard ()
 

Detailed Description

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.

Member Typedef Documentation

◆ Ptr

Definition at line 29 of file transform3dPathSubject.h.

Constructor & Destructor Documentation

◆ ~Transform3dPathSubject()

Ufe::Transform3dPathSubject::~Transform3dPathSubject ( )
override

Destructor.

◆ Transform3dPathSubject()

Ufe::Transform3dPathSubject::Transform3dPathSubject ( const Path path)

Constructor

Parameters
pathPath to make observable

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