CODPolygonComponent Class

class CODPolygonComponent: public CODFilledComponent

Polygon component.

The following properties are added to the component by this class:

OD_PROP_LINE, OD_PROP_FILL

Defined in: OdPolygonComp.h

See Also

Component Property Identifiers

Class Members

 CODPolygonComponent()

Constructor.

 CODPolygonComponent(const CODPolygonComponent& src)

Copy constructor.

virtual  ~CODPolygonComponent()

Destructor.

BOOL  Create(CODPointArray* pPointArray)

Creates the polygon from an array of CPoints.

BOOL  Create(LPPOINT lpPoints, int nCount)

Creates the polygon from an array of points.

CODPolygonComponent&  operator=(const CODPolygonComponent& src)

Assignment operator: sets the component's attributes equal to that of the r-value component.

virtual CODComponent*  Dup() const

Creates a copy of this component.

virtual BOOL  CanInsertVertex()

Determines whether a vertex may be deleted from the component (this override always returns TRUE as there is no preset limit on the number of vertices in a polygon component).

virtual BOOL  CanDeleteVertex()

Determines if a vertex may be removed from the component (thisoverride returns non-zero if the number of vertices is greater than three).

virtual void  OnDraw(CDC* pDC)

Draws the polygon.

virtual void  Serialize(CArchive& ar)

Serializes the polygon component.