CODScaleCommand Class

class CODScaleCommand: public CODCommand

Scales components to a percentage of their size.

Defined in: OdScaleCmd.h

Class Members

VIEWS_API CODScaleCommand(CODModel* pModel)

Constructor.

VIEWS_API 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.

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

Gets the scaling factors and the control point.

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

Sets the scaling factor and the control point.

VIEWS_API virtual BOOL Execute()

Scales the components.

VIEWS_API virtual sfl::MvcCommand* Inverse() const

Creates a command which performs the inverse of this command.

VIEWS_API virtual sfl::MvcCommand* Dup() const

Make a copy of this scale command.

VIEWS_API virtual void GetUpdateSet(CODComponentSet& setUpdate) const

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

VIEWS_API virtual void Sprint(CString& strCmd)

Print information on this command for logging purposes.