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::SelectionCompositeNotification Class Reference

Selection composite notification. More...

#include <selectionNotification.h>

Inheritance diagram for Ufe::SelectionCompositeNotification:
Collaboration diagram for Ufe::SelectionCompositeNotification:

Classes

struct  Op
 

Public Types

typedef std::list< OpOps
 
- Public Types inherited from Ufe::SelectionChanged
enum  OpType {
  Append , Remove , Insert , Clear ,
  ReplaceWith , SelectionCompositeNotification
}
 

Public Member Functions

 SelectionCompositeNotification ()
 Constructor. More...
 
 SelectionCompositeNotification (const SelectionCompositeNotification &)=default
 Default copy constructor. More...
 
 ~SelectionCompositeNotification () override
 Destructor. More...
 
void appendAppendOp (const SceneItem::Ptr &item)
 Append an append operation to the list of operations. More...
 
void appendRemoveOp (const SceneItem::Ptr &item)
 Append a remove operation to the list of operations. More...
 
void appendInsertOp (const SceneItem::Ptr &position, const SceneItem::Ptr &item)
 Append an insert operation to the list of operations. More...
 
void appendClearOp ()
 Append a clear operation to the list of operations. More...
 
void appendReplaceWithOp ()
 
std::size_t size () const
 
bool empty () const
 
Ops::const_iterator cbegin () const
 Iteration interface on operations. More...
 
Ops::const_iterator begin () const
 
Ops::const_iterator cend () const
 
Ops::const_iterator end () const
 
Ops::iterator begin ()
 
Ops::iterator end ()
 
- Public Member Functions inherited from Ufe::SelectionChanged
 SelectionChanged (OpType opType)
 Constructor. More...
 
 SelectionChanged (const SelectionChanged &)=default
 Default copy constructor. More...
 
 ~SelectionChanged () override
 Destructor. More...
 
OpType opType () const
 
- Public Member Functions inherited from Ufe::Notification
 Notification ()
 Constructor. More...
 
 Notification (const Notification &)=default
 Default copy constructor. More...
 
virtual ~Notification ()
 Destructor. More...
 
template<typename T >
const T & staticCast () const
 

Private Attributes

Ops fOps
 

Detailed Description

Selection composite notification.

This class collects multiple selection change operations inside a single notification. The selection change operations are stored as a list, in the same order as they were performed.

Definition at line 200 of file selectionNotification.h.

Member Typedef Documentation

◆ Ops

Definition at line 220 of file selectionNotification.h.

Constructor & Destructor Documentation

◆ SelectionCompositeNotification() [1/2]

Ufe::SelectionCompositeNotification::SelectionCompositeNotification ( )

Constructor.

◆ SelectionCompositeNotification() [2/2]

Ufe::SelectionCompositeNotification::SelectionCompositeNotification ( const SelectionCompositeNotification )
default

Default copy constructor.

◆ ~SelectionCompositeNotification()

Ufe::SelectionCompositeNotification::~SelectionCompositeNotification ( )
override

Destructor.

Member Function Documentation

◆ appendAppendOp()

void Ufe::SelectionCompositeNotification::appendAppendOp ( const SceneItem::Ptr item)

Append an append operation to the list of operations.

◆ appendClearOp()

void Ufe::SelectionCompositeNotification::appendClearOp ( )

Append a clear operation to the list of operations.

◆ appendInsertOp()

void Ufe::SelectionCompositeNotification::appendInsertOp ( const SceneItem::Ptr position,
const SceneItem::Ptr item 
)

Append an insert operation to the list of operations.

◆ appendRemoveOp()

void Ufe::SelectionCompositeNotification::appendRemoveOp ( const SceneItem::Ptr item)

Append a remove operation to the list of operations.

◆ appendReplaceWithOp()

void Ufe::SelectionCompositeNotification::appendReplaceWithOp ( )

Append a replace with operation to the list of operations. Because the selection is completely replaced, it is assumed clients of this notification will simply consider the final state of the selection and ignore operations after a replace with operation.

◆ begin() [1/2]

Ops::iterator Ufe::SelectionCompositeNotification::begin ( )

◆ begin() [2/2]

Ops::const_iterator Ufe::SelectionCompositeNotification::begin ( ) const

◆ cbegin()

Ops::const_iterator Ufe::SelectionCompositeNotification::cbegin ( ) const

Iteration interface on operations.

◆ cend()

Ops::const_iterator Ufe::SelectionCompositeNotification::cend ( ) const

◆ empty()

bool Ufe::SelectionCompositeNotification::empty ( ) const
Returns
True if size() == 0.

◆ end() [1/2]

Ops::iterator Ufe::SelectionCompositeNotification::end ( )

◆ end() [2/2]

Ops::const_iterator Ufe::SelectionCompositeNotification::end ( ) const

◆ size()

std::size_t Ufe::SelectionCompositeNotification::size ( ) const
Returns
Size of operations in the composite notification

Member Data Documentation

◆ fOps

Ops Ufe::SelectionCompositeNotification::fOps
private

Definition at line 270 of file selectionNotification.h.


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