class CODDeleteVertexCommand: public CODCommand
Deletes a vertex from components.
Defined in: OdDeleteVertexCmd.h
VIEWS_API CODDeleteVertexCommand(CODModel* pModel)
Constructor.
VIEWS_API virtual ~CODDeleteVertexCommand()
Destructor.
int m_nVertexIndex
The index of the vertex to delete.
CMap<CODComponent*,CODComponent*,CPoint,CPoint> m_mapOldVertices
A map of components to the values of the points that were deleted. This information is saved for undo purposes.
VIEWS_API int GetVertexIndex() const
Gets the index of the vertex to be deleted.
VIEWS_API void SetVertexIndex(const int nVertexIndex)
Sets the index of the vertex to be deleted.
VIEWS_API void ClearOldVertices()
Removes all entries from the map of old vertices.
VIEWS_API BOOL GetOldVertex(CODComponent* pComp, CPoint& ptVertex) const
Gets the value of the old, deleted vertex of a particular
VIEWS_API void SetOldVertex(CODComponent* pComp, CPoint ptVertex)
Saves the value of the deleted vertex for a component.
VIEWS_API virtual BOOL Execute()
Deletes the vertex from the components.
VIEWS_API virtual BOOL Unexecute()
Perform the opposite action of what the command represents.
VIEWS_API virtual sfl::MvcCommand* Dup() const
Make a copy of this delete vertex command.
VIEWS_API virtual void Sprint(CString& strCmd)
Print information on the command for logging purposes.