CODMoveVertexCommand Class

class CODMoveVertexCommand: public CODCommand

Moves a vertex in a components.

Defined in: OdMoveVertexCmd.h

Class Members

 CODMoveVertexCommand(CODModel* pModel)

Constructor.

virtual  ~CODMoveVertexCommand()

Destructor.

int m_nVertexIndex

Index of the vertex to be moved.

int m_nOffsetX

Horizontal offset to move the vertex by.

int m_nOffsetY

Vertical offset to move the vertex by.

int  GetVertexIndex() const

Gets the index of the vertex to be moved.

void  SetVertexIndex(const int nVertexIndex)

Sets the index of the vertex to be moved.

void  GetMovement(int& nOffsetX, int& nOffsetY)

Gets the offsets to move the vertex by.

void  SetMovement(int nOffsetX, int nOffsetY)

Sets the offsets to move the vertex by.

virtual BOOL  Execute()

Move the vertex in the components.

virtual sfl::MvcCommand*  Inverse() const

Create a command to perform the inverse of this move-vertex command.

virtual sfl::MvcCommand*  Dup() const

Make a copy of this move vertex command.

virtual void  Sprint(CString& strCmd)

Print information on the command for logging purposes.