CODCurveComponent Class

class CODCurveComponent: public CODPointComponent

Curve component.

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

OD_PROP_LINE

Defined in: OdCurveComp.h

See Also

Component Property Identifiers

Class Members

 CODCurveComponent()

Constructor.

 CODCurveComponent(const CODCurveComponent& src)

Copy constructor.

virtual  ~CODCurveComponent()

Destructor.

BOOL  Create(CODPointArray* pPointArray)

Creates the Curve component from a set of control points

BOOL  Create(LPPOINT lpPoints, int nCount)

Creates the Curve component from a set of control points

CODCurveComponent&  operator=(const CODCurveComponent& 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  CanDeleteVertex()

Returns Non-zero if a vertex can be deleted from the component.

virtual BOOL  CanInsertVertex()

Returns Non-zero if a vertex can be inserted into the component.

virtual void  OnDraw(CDC* pDC)

Draw the Curve.

virtual CODRgn  GetEdgeRgn()

Returns a region surrounding the edges of the component. In the case of a curve component, it is the same as the normal region.

virtual void  CalculateRgn(CODRgn* pRgn)

Calculate the region occupied by the component.

virtual void  Serialize(CArchive& ar)

Serialize the Curve component.

int  GetNumSplines() const

Get the number of splines in the curve

int  CalcSplineCount(const int nPts)

Calculate the number of splines in a curve based on the number of points.