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

Command to add an attribute to a scene item. More...

#include <attributesCommands.h>

Inheritance diagram for Ufe::AttributeUndoableCommand:
Collaboration diagram for Ufe::AttributeUndoableCommand:

Public Types

typedef std::shared_ptr< AttributeUndoableCommandPtr
 
- Public Types inherited from Ufe::UndoableCommand
typedef std::shared_ptr< UndoableCommandPtr
 

Public Member Functions

 AttributeUndoableCommand ()=default
 Default constructor. More...
 
 ~AttributeUndoableCommand () override=default
 Destructor. More...
 
std::string commandString () const override
 Get a user friendly string representation of the command. More...
 
virtual Attribute::Ptr attribute () const =0
 Pure virtual method to retrieve the new attribute. 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
 

Additional Inherited Members

- Protected Member Functions inherited from Ufe::UndoableCommand
 UndoableCommand ()
 Constructor. More...
 
 UndoableCommand (const UndoableCommand &)=delete
 Deleting copy constructor. More...
 

Detailed Description

Command to add an attribute to a scene item.

This class provides the interface to retrieve the new attribute, which is created on command execution.

Definition at line 27 of file attributesCommands.h.

Member Typedef Documentation

◆ Ptr

Definition at line 30 of file attributesCommands.h.

Constructor & Destructor Documentation

◆ AttributeUndoableCommand()

Ufe::AttributeUndoableCommand::AttributeUndoableCommand ( )
default

Default constructor.

◆ ~AttributeUndoableCommand()

Ufe::AttributeUndoableCommand::~AttributeUndoableCommand ( )
overridedefault

Destructor.

Member Function Documentation

◆ attribute()

virtual Attribute::Ptr Ufe::AttributeUndoableCommand::attribute ( ) const
pure virtual

Pure virtual method to retrieve the new attribute.

◆ commandString()

std::string Ufe::AttributeUndoableCommand::commandString ( ) const
inlineoverridevirtual

Get a user friendly string representation of the command.

Note
For example, an application can print out the executed command to give an hint to the user of what was sucessfully done.

Reimplemented from Ufe::UndoableCommand.

Definition at line 37 of file attributesCommands.h.


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