IODVertices Class

class IODVertices

Interface to a set of vertices.

Defined in: OdPoints.h

See Also

IODPoints, CODPointComponent

Class Members

virtual CPoint GetVertex(const int nIndex) const

Gets one of the vertices of the component.

virtual CPoint SetVertex(const int nIndex, const CPoint& ptVertex)

Sets the value of a vertex.

virtual void AddVertex(const CPoint& ptVertex)

Adds a vertex to the component.

virtual void InsertVertex(const int nIndex, const CPoint& ptVertex)

Inserts a vertex into the component.

virtual CPoint DeleteVertex(const int nIndex)

Removes a vertex from the component.

virtual OD_MOVEVERTEX_RC MoveVertex(int nIndex, int nOffsetX, int nOffsetY)

Moves one of the component's vertices.

virtual OD_MOVEVERTEX_RC CalculateMovedVertices(int nIndex, int nOffsetX, int nOffsetY)

Calculates the new position of a vertex given an offset.