CFx SDK Documentation  2020SP3
Public Member Functions | List of all members
OdGeCompositeCurve2d Class Reference

#include <GeCompositeCurve2d.h>

Inheritance diagram for OdGeCompositeCurve2d:
OdGeCurve2d OdGeEntity2d

Public Member Functions

 OdGeCompositeCurve2d ()
 
 OdGeCompositeCurve2d (const OdGeCompositeCurve2d &source)
 
 OdGeCompositeCurve2d (const OdGeCurve2dPtrArray &curveList)
 
void getCurveList (OdGeCurve2dPtrArray &curveList) const
 
OdGeCompositeCurve2dsetCurveList (const OdGeCurve2dPtrArray &curveList)
 
double globalToLocalParam (double param, int &crvNum) const
 
double localToGlobalParam (double param, int crvNum) const
 
OdGeCompositeCurve2doperator= (const OdGeCompositeCurve2d &compCurve)
 
- Public Member Functions inherited from OdGeCurve2d
void getInterval (OdGeInterval &interval) const
 
void getInterval (OdGeInterval &interval, OdGePoint2d &start, OdGePoint2d &end) const
 
OdGeCurve2dreverseParam ()
 
OdGeCurve2dsetInterval ()
 
bool setInterval (const OdGeInterval &interval)
 
double distanceTo (const OdGePoint2d &point, const OdGeTol &tol=OdGeContext::gTol) const
 
double distanceTo (const OdGeCurve2d &otherCur, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGePoint2d closestPointTo (const OdGePoint2d &point, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGePoint2d closestPointTo (const OdGeCurve2d &curve2d, OdGePoint2d &pntOnOtherCrv, const OdGeTol &tol=OdGeContext::gTol) const
 
void getClosestPointTo (const OdGePoint2d &point, OdGePointOnCurve2d &pntOnCrv, const OdGeTol &tol=OdGeContext::gTol) const
 
void getClosestPointTo (const OdGeCurve2d &curve2d, OdGePointOnCurve2d &pntOnThisCrv, OdGePointOnCurve2d &pntOnOtherCrv, const OdGeTol &tol=OdGeContext::gTol) const
 
bool getNormalPoint (const OdGePoint2d &point, OdGePointOnCurve2d &pntOnCrv, const OdGeTol &tol=OdGeContext::gTol) const
 
 TD_USING (OdGeEntity2d::isOn)
 
bool isOn (const OdGePoint2d &point, double &param, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isOn (double param, const OdGeTol &tol=OdGeContext::gTol) const
 
double paramOf (const OdGePoint2d &point, const OdGeTol &tol=OdGeContext::gTol) const
 
void getTrimmedOffset (double distance, OdGeCurve2dPtrArray &offsetCurveList, OdGe::OffsetCrvExtType extensionType=OdGe::kFillet, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isClosed (const OdGeTol &tol=OdGeContext::gTol) const
 
bool isPeriodic (double &period) const
 
bool isLinear (OdGeLine2d &line, const OdGeTol &tol=OdGeContext::gTol) const
 
double length (double fromParam, double toParam, double tol=OdGeContext::gTol.equalPoint()) const
 
double length (double tol=OdGeContext::gTol.equalPoint()) const
 
double paramAtLength (double datumParam, double length, bool posParamDir=true, double tol=OdGeContext::gTol.equalPoint()) const
 
bool area (double startParam, double endParam, double &value, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isDegenerate (OdGe::EntityId &degenerateType, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isDegenerate (OdGeEntity2d *&pConvertedEntity, const OdGeTol &tol=OdGeContext::gTol) const
 
void getSplitCurves (double param, OdGeCurve2d *&piece1, OdGeCurve2d *&piece2) const
 
bool explode (OdGeCurve2dPtrArray &explodedCurves, OdGeIntArray &newExplodedCurve, const OdGeInterval *interval=NULL) const
 
void getLocalClosestPoints (const OdGePoint2d &point, OdGePointOnCurve2d &approxPnt, const OdGeInterval *nbhd=NULL, const OdGeTol &tol=OdGeContext::gTol) const
 
void getLocalClosestPoints (const OdGeCurve2d &otherCurve, OdGePointOnCurve2d &approxPntOnThisCrv, OdGePointOnCurve2d &approxPntOnOtherCrv, const OdGeInterval *nbhd1=NULL, const OdGeInterval *nbhd2=NULL, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGeBoundBlock2d boundBlock () const
 
OdGeBoundBlock2d boundBlock (const OdGeInterval &range) const
 
OdGeBoundBlock2d orthoBoundBlock () const
 
OdGeBoundBlock2d orthoBoundBlock (const OdGeInterval &range) const
 
bool hasStartPoint (OdGePoint2d &startPoint) const
 
bool hasEndPoint (OdGePoint2d &endPoint) const
 
OdGePoint2d evalPoint (double param) const
 
OdGePoint2d evalPoint (double param, int numDeriv, OdGeVector2dArray &derivatives) const
 
void getSamplePoints (double fromParam, double toParam, double approxEps, OdGePoint2dArray &pointArray, OdGeDoubleArray &paramArray) const
 
void getSamplePoints (int numSample, OdGePoint2dArray &pointArray) const
 
OdGeCurve2doperator= (const OdGeCurve2d &curve)
 
void getSamplePoints (double fromParam, double toParam, double approxEps, OdGePoint2dArray &pointArray, OdGeDoubleArray *pParamArray=NULL) const
 
void appendSamplePoints (double fromParam, double toParam, double approxEps, OdGePoint2dArray &pointArray, OdGeDoubleArray *pParamArray=NULL) const
 
void appendSamplePoints (int numSample, OdGePoint2dArray &pointArray) const
 
- Public Member Functions inherited from OdGeEntity2d
 ODRX_HEAP_OPERATORS ()
 
bool isKindOf (OdGe::EntityId entType) const
 
OdGe::EntityId type () const
 
OdGeEntity2dcopy () const
 
OdGeEntity2doperator= (const OdGeEntity2d &entity)
 
bool operator== (const OdGeEntity2d &entity) const
 
bool operator!= (const OdGeEntity2d &entity) const
 
bool isEqualTo (const OdGeEntity2d &other, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGeEntity2dtransformBy (const OdGeMatrix2d &xfm)
 
OdGeEntity2dtranslateBy (const OdGeVector2d &translateVec)
 
OdGeEntity2drotateBy (double angle, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin)
 
OdGeEntity2dmirror (const OdGeLine2d &line)
 
OdGeEntity2dscaleBy (double scaleFactor, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin)
 
bool isOn (const OdGePoint2d &point, const OdGeTol &tol=OdGeContext::gTol) const
 
 ~OdGeEntity2d ()
 

Additional Inherited Members

- Protected Member Functions inherited from OdGeCurve2d
 OdGeCurve2d ()
 
 OdGeCurve2d (const OdGeCurve2d &source)
 
- Protected Member Functions inherited from OdGeEntity2d
 OdGeEntity2d ()
 
 OdGeEntity2d (const OdGeEntity2d &)
 
void connectTo (OdGeEntity2dImpl *)
 

Detailed Description

This class represents composite curves in 2D space.

Remarks
Composite curves consists of pointers to any number of subcurves that are joined end to end. Each subcurve must be bounded.

The parameter at the start of the composite curve is 0.0. The parameter at any point along the composite curve is the approximate length of the composite curve up to that point.

Corresponding C++ library: TD_Ge

<group OdGe_Classes>

See also
<link ge_OdGeCompositeCurve3d.html, Working with Composite Curves>

Definition at line 52 of file GeCompositeCurve2d.h.

Constructor & Destructor Documentation

◆ OdGeCompositeCurve2d() [1/3]

OdGeCompositeCurve2d::OdGeCompositeCurve2d ( )
Parameters
curveList[in] Array of pointers to subcurves comprising the composite curve.
source[in] Object to be cloned.
Remarks
The default constructor creates a composite curve that consists of a single subcurve: a line segment from (0,0) to (1,0).

◆ OdGeCompositeCurve2d() [2/3]

OdGeCompositeCurve2d::OdGeCompositeCurve2d ( const OdGeCompositeCurve2d source)

◆ OdGeCompositeCurve2d() [3/3]

OdGeCompositeCurve2d::OdGeCompositeCurve2d ( const OdGeCurve2dPtrArray curveList)

Member Function Documentation

◆ getCurveList()

void OdGeCompositeCurve2d::getCurveList ( OdGeCurve2dPtrArray curveList) const

Returns an array of pointers to subcurves comprising the composite curve.

Parameters
curvelist[out] Receives an array of pointers to subcurves comprising the composite curve.

◆ globalToLocalParam()

double OdGeCompositeCurve2d::globalToLocalParam ( double  param,
int &  crvNum 
) const

Returns the parameter on a subcurve, and the index of that subcurve, corresponding to the specified parameter on the composite curve.

Parameters
param[in] Parameter value on composite curve.
crvNum[out] Receives the curve number of the subcurve.

◆ localToGlobalParam()

double OdGeCompositeCurve2d::localToGlobalParam ( double  param,
int  crvNum 
) const

Returns the parameter on the composite curve, corresponding to the specified parameter on the specifed subcurve curve.

Parameters
param[in] Parameter value on the subcurve.
crvNum[in] Curve number of the subcurve.

◆ operator=()

OdGeCompositeCurve2d& OdGeCompositeCurve2d::operator= ( const OdGeCompositeCurve2d compCurve)
Remarks
All of the subcurves of the input curve are copied.

◆ setCurveList()

OdGeCompositeCurve2d& OdGeCompositeCurve2d::setCurveList ( const OdGeCurve2dPtrArray curveList)

Sets the curve list of the composite curve.

Parameters
curvelist[in] Array of pointers to subcurves comprising the composite curve.

The documentation for this class was generated from the following file: