class CODMoveVertexCommand: public CODCommand
Moves a vertex in a components.
Defined in: OdMoveVertexCmd.h
VIEWS_API CODMoveVertexCommand(CODModel* pModel)
Constructor.
VIEWS_API 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.
VIEWS_API int GetVertexIndex() const
Gets the index of the vertex to be moved.
VIEWS_API void SetVertexIndex(const int nVertexIndex)
Sets the index of the vertex to be moved.
VIEWS_API void GetMovement(int& nOffsetX, int& nOffsetY)
Gets the offsets to move the vertex by.
VIEWS_API void SetMovement(int nOffsetX, int nOffsetY)
Sets the offsets to move the vertex by.
VIEWS_API virtual BOOL Execute()
Move the vertex in the components.
VIEWS_API virtual sfl::MvcCommand* Inverse() const
Create a command to perform the inverse of this move-vertex command.
VIEWS_API virtual sfl::MvcCommand* Dup() const
Make a copy of this move vertex command.
VIEWS_API virtual void Sprint(CString& strCmd)
Print information on the command for logging purposes.