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

Abstract class for undoable rotate command. More...

#include <transform3dUndoableCommands.h>

Inheritance diagram for Ufe::RotateUndoableCommand:
Collaboration diagram for Ufe::RotateUndoableCommand:

Public Types

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

Public Member Functions

 RotateUndoableCommand (const SceneItem::Ptr &item)
 Constructor. More...
 
 RotateUndoableCommand (const RotateUndoableCommand &)=default
 Default copy constructor. More...
 
virtual ~RotateUndoableCommand ()
 Destructor. More...
 
virtual bool rotate (double x, double y, double z)=0
 
- Public Member Functions inherited from Ufe::BaseTransformUndoableCommand
 BaseTransformUndoableCommand (const SceneItem::Ptr &item)
 
virtual ~BaseTransformUndoableCommand ()
 
SceneItem::Ptr sceneItem () const
 
- Public Member Functions inherited from Ufe::UndoableCommand
virtual ~UndoableCommand ()
 Destructor. 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

Abstract class for undoable rotate command.

Definition at line 59 of file transform3dUndoableCommands.h.

Member Typedef Documentation

◆ Ptr

Definition at line 62 of file transform3dUndoableCommands.h.

Constructor & Destructor Documentation

◆ RotateUndoableCommand() [1/2]

Ufe::RotateUndoableCommand::RotateUndoableCommand ( const SceneItem::Ptr item)

Constructor.

◆ RotateUndoableCommand() [2/2]

Ufe::RotateUndoableCommand::RotateUndoableCommand ( const RotateUndoableCommand )
default

Default copy constructor.

◆ ~RotateUndoableCommand()

virtual Ufe::RotateUndoableCommand::~RotateUndoableCommand ( )
virtual

Destructor.

Member Function Documentation

◆ rotate()

virtual bool Ufe::RotateUndoableCommand::rotate ( double  x,
double  y,
double  z 
)
pure virtual

Rotate the object by the given x, y, z values. The semantics of the rotation, whether absolute or relative, and the coordinate system in which it is done (object local, parent, world) is up to the rotator (Usually the DCC). !

Parameters
xvalue to rotate on the X-axis. !
yvalue to rotate on the Y-axis. !
zvalue to rotate on the Z-axis.

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