CODScaleCommand Class

class CODScaleCommand: public CODCommand

Scales components to a percentage of their size.

Defined in: OdScaleCmd.h

Class Members

 CODScaleCommand(CODModel* pModel)

Constructor.

virtual  ~CODScaleCommand()

Destructor.

float m_fScaleX

The horizontal scaling factor.

float m_fScaleY

The vertical scaling factor.

OD_CONTROL_POINT m_nControlPoint

The control point of the component to use as the origin for the scaling operation.

void  GetScaling(float& fScaleX, float& fScaleY, OD_CONTROL_POINT& nControlPoint) const

Gets the scaling factors and the control point.

void  SetScaling(const float fScaleX, const float fScaleY, const OD_CONTROL_POINT nControlPoint = OD_CENTER)

Sets the scaling factor and the control point.

virtual BOOL  Execute()

Scales the components.

virtual sfl::MvcCommand*  Inverse() const

Creates a command which performs the inverse of this command.

virtual sfl::MvcCommand*  Dup() const

Make a copy of this scale command.

virtual void  GetUpdateSet(CODComponentSet& setUpdate) const

Returns a list of components that are affected by this command.

virtual void  Sprint(CString& strCmd)

Print information on this command for logging purposes.