CODInsertVertexCommand Class

class CODInsertVertexCommand: public CODCommand

Inserts a vertex into components.

Defined in: OdInsertVertexCmd.h

Class Members

VIEWS_API CODInsertVertexCommand(CODModel* pModel)

Constructor.

VIEWS_API virtual ~CODInsertVertexCommand()

Destructor.

int m_nVertexIndex

The index of the inserted vertex.

CPoint m_ptVertex

The position value of the inserted vertex.

VIEWS_API int GetVertexIndex() const

Gets the index to insert the vertex at.

VIEWS_API void SetVertexIndex(const int nVertexIndex)

Sets the index to insert the vertex at.

VIEWS_API CPoint GetVertexPoint() const

Gets the value of the vertex to insert.

VIEWS_API void SetVertexPoint(CPoint ptVertex)

Sets the value of the vertex to insert.

VIEWS_API virtual BOOL Execute()

Inserts the vertex.

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 command

VIEWS_API virtual void Sprint(CString& strCmd)

Print information on this command for logging purposes.