CODMoveCommand Class

class CODMoveCommand: public CODCommand

Moves components by an offset.

Defined in: OdMoveCmd.h

Class Members

 CODMoveCommand(CODModel* pModel)

Constructor.

virtual  ~CODMoveCommand()

Destructor.

int m_nOffsetX

The horizontal offset to move the components.

int m_nOffsetY

The vertical offset to move the components.

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

Gets the movement offset values.

void  SetMovement(const int nOffsetX, const int nOffsetY)

Sets the movement offset values.

virtual BOOL  Execute()

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

virtual sfl::MvcCommand*  Inverse() const

Create a command which performs the inverse of this command.

virtual sfl::MvcCommand*  Dup() const

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