CODMoveCommand Class

class CODMoveCommand: public CODCommand

Moves components by an offset.

Defined in: OdMoveCmd.h

Class Members

VIEWS_API CODMoveCommand(CODModel* pModel)

Constructor.

VIEWS_API virtual ~CODMoveCommand()

Destructor.

int m_nOffsetX

The horizontal offset to move the components.

int m_nOffsetY

The vertical offset to move the components.

VIEWS_API void GetMovement(int& nOffsetX, int& nOffsetY) const

Gets the movement offset values.

VIEWS_API void SetMovement(const int nOffsetX, const int nOffsetY)

Sets the movement offset values.

VIEWS_API virtual BOOL Execute()

Move the components, updating the position of the any affected links.

VIEWS_API virtual sfl::MvcCommand* Inverse() const

Create a command which performs the inverse of this command.

VIEWS_API virtual sfl::MvcCommand* Dup() const

Make a copy of this move 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 the command for logging purposes.