CODDeleteVertexCommand Class
class CODDeleteVertexCommand: public CODCommand
Deletes a vertex from components.Defined in: OdDeleteVertexCmd.h
Class Members
CODDeleteVertexCommand(CODModel* pModel)
Constructor.
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.
int GetVertexIndex() const
Gets the index of the vertex to be deleted.
void SetVertexIndex(const int nVertexIndex)
Sets the index of the vertex to be deleted.
void ClearOldVertices()
Removes all entries from the map of old vertices.
BOOL GetOldVertex(CODComponent* pComp, CPoint& ptVertex) const
Gets the value of the old, deleted vertex of a particular
void SetOldVertex(CODComponent* pComp, CPoint ptVertex)
Saves the value of the deleted vertex for a component.
virtual BOOL Execute()
Deletes the vertex from the components.
virtual BOOL Unexecute()
Perform the opposite action of what the command represents.
virtual sfl::MvcCommand* Dup() const
Make a copy of this delete vertex command.
virtual void Sprint(CString& strCmd)
Print information on the command for logging purposes.