ufe 5.5
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
Ufe::SelectionClear Class Reference

Clear the argument selection. More...

#include <selectionUndoableCommands.h>

Inheritance diagram for Ufe::SelectionClear:
Collaboration diagram for Ufe::SelectionClear:

Public Member Functions

 SelectionClear (const GlobalSelection::Ptr &sn)
 Constructor. More...
 
void undo () override
 Undo the clear. More...
 
void redo () override
 Redo the clear. More...
 
- Public Member Functions inherited from Ufe::UndoableCommand
virtual ~UndoableCommand ()
 Destructor. More...
 
virtual std::string commandString () const
 Get a user friendly string representation of the command. More...
 
virtual void execute ()
 
virtual void undo ()=0
 
virtual void redo ()=0
 

Static Public Member Functions

static Ptr createAndExecute (const GlobalSelection::Ptr &sn)
 

Private Attributes

const GlobalSelection::Ptr fSn
 
const std::list< PathfPaths
 

Additional Inherited Members

- Public Types inherited from Ufe::UndoableCommand
typedef std::shared_ptr< UndoableCommandPtr
 
- Protected Member Functions inherited from Ufe::UndoableCommand
 UndoableCommand ()
 Constructor. More...
 
 UndoableCommand (const UndoableCommand &)=delete
 Deleting copy constructor. More...
 

Detailed Description

Clear the argument selection.

Clear the argument selection on execution, and restore it on undo.

Definition at line 99 of file selectionUndoableCommands.h.

Constructor & Destructor Documentation

◆ SelectionClear()

Ufe::SelectionClear::SelectionClear ( const GlobalSelection::Ptr sn)

Constructor.

Member Function Documentation

◆ createAndExecute()

static Ptr Ufe::SelectionClear::createAndExecute ( const GlobalSelection::Ptr sn)
static

Convenience method to create the undoable command and execute it.

Returns
Pointer to the undoable command.

◆ redo()

void Ufe::SelectionClear::redo ( )
overridevirtual

Redo the clear.

Implements Ufe::UndoableCommand.

◆ undo()

void Ufe::SelectionClear::undo ( )
overridevirtual

Undo the clear.

Implements Ufe::UndoableCommand.

Member Data Documentation

◆ fPaths

const std::list<Path> Ufe::SelectionClear::fPaths
private

Definition at line 121 of file selectionUndoableCommands.h.

◆ fSn

const GlobalSelection::Ptr Ufe::SelectionClear::fSn
private

Definition at line 117 of file selectionUndoableCommands.h.


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