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::ScaleUndoableCommand Class Referenceabstract

Abstract class for undoable scale command. More...

#include <transform3dUndoableCommands.h>

Inheritance diagram for Ufe::ScaleUndoableCommand:
Collaboration diagram for Ufe::ScaleUndoableCommand:

Public Types

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

Public Member Functions

 ScaleUndoableCommand (const SceneItem::Ptr &item)
 Constructor. More...
 
 ScaleUndoableCommand (const ScaleUndoableCommand &)=default
 Default copy constructor. More...
 
virtual ~ScaleUndoableCommand ()
 Destructor. More...
 
virtual bool scale (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 scale command.

Definition at line 85 of file transform3dUndoableCommands.h.

Member Typedef Documentation

◆ Ptr

Definition at line 88 of file transform3dUndoableCommands.h.

Constructor & Destructor Documentation

◆ ScaleUndoableCommand() [1/2]

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

Constructor.

◆ ScaleUndoableCommand() [2/2]

Ufe::ScaleUndoableCommand::ScaleUndoableCommand ( const ScaleUndoableCommand )
default

Default copy constructor.

◆ ~ScaleUndoableCommand()

virtual Ufe::ScaleUndoableCommand::~ScaleUndoableCommand ( )
virtual

Destructor.

Member Function Documentation

◆ scale()

virtual bool Ufe::ScaleUndoableCommand::scale ( double  x,
double  y,
double  z 
)
pure virtual

Scale the object by the given x, y, z values. The semantics of the scale, whether absolute or relative, and the coordinate system in which it is done (object local, parent, world) is up to the concrete derived class. !

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

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