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
VIEWS_API CODPolygonComponent()
Constructor.
VIEWS_API CODPolygonComponent(const CODPolygonComponent& src)
Copy constructor.
VIEWS_API virtual ~CODPolygonComponent()
Destructor.
VIEWS_API BOOL Create(CODPointArray* pPointArray)
Creates the polygon from an array of CPoints.
VIEWS_API BOOL Create(LPPOINT lpPoints, int nCount)
Creates the polygon from an array of points.
VIEWS_API CODPolygonComponent& operator=(const CODPolygonComponent& src)
Assignment operator: sets the component's attributes equal to that of the r-value component.
VIEWS_API virtual CODComponent* Dup() const
Creates a copy of this component.
VIEWS_API 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).
VIEWS_API 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).
VIEWS_API virtual void OnDraw(CDC* pDC)
Draws the polygon.
VIEWS_API virtual void Serialize(CArchive& ar)
Serializes the polygon component.