CFx SDK Documentation  2023 SP0
Public Member Functions | List of all members
OdGeSegmentChain2d Class Reference

#include <GeSegmentChain2d.h>

Inheritance diagram for OdGeSegmentChain2d:
OdGeSplineEnt2d OdGeCurve2d OdGeEntity2d

Public Member Functions

 OdGeSegmentChain2d ()
 
 OdGeSegmentChain2d (const OdGeSegmentChain2d &source)
 
 OdGeSegmentChain2d (const OdGePoint2dArray &fitpoints)
 
 OdGeSegmentChain2d (const OdGeKnotVector &knots, const OdGePoint2dArray &points)
 
 OdGeSegmentChain2d (const OdGeCurve2d &crv, double approxEps)
 
OdGeSegmentChain2d & operator= (const OdGeSegmentChain2d &pline)
 
OdGeSegmentChain2d & setClosed (bool flag)
 
OdGeDoubleArray & bulges ()
 
const OdGeDoubleArray & getBulges () const
 
OdGePoint2dArray & vertices ()
 
const OdGePoint2dArray & getVertices () const
 
bool hasBulges () const
 
- Public Member Functions inherited from OdGeSplineEnt2d
bool isRational () const
 
int degree () const
 
int order () const
 
int numKnots () const
 
const OdGeKnotVector & knots () const
 
int numControlPoints () const
 
int continuityAtKnot (int knotIndex, const OdGeTol &tol=OdGeContext::gTol) const
 
double startParam () const
 
double endParam () const
 
OdGePoint2d startPoint () const
 
OdGePoint2d endPoint () const
 
bool hasFitData () const
 
double knotAt (int knotIndex) const
 
OdGeSplineEnt2d & setKnotAt (int knotIndex, double val)
 
OdGePoint2d controlPointAt (int controlPointIndex) const
 
OdGeSplineEnt2d & setControlPointAt (int controlPointIndex, const OdGePoint2d &point)
 
OdGeSplineEnt2d & operator= (const OdGeSplineEnt2d &spline)
 
- Public Member Functions inherited from OdGeCurve2d
void getInterval (OdGeInterval &interval) const
 
void getInterval (OdGeInterval &interval, OdGePoint2d &start, OdGePoint2d &end) const
 
OdGeCurve2d & reverseParam ()
 
OdGeCurve2d & setInterval ()
 
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
 
OdGeCurve2d & operator= (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
 
OdGeCurve3d * convertTo3d () const
 
OdGeExtents2d getGeomExtents (const OdGeInterval &range=OdGeInterval(), const OdGeMatrix2d *coordSystem=NULL) const
 
void evaluate (double param, int numDeriv, OdGeVector2d *values) const
 
- Public Member Functions inherited from OdGeEntity2d
 ODRX_HEAP_OPERATORS ()
 
bool isKindOf (OdGe::EntityId entType) const
 
OdGe::EntityId type () const
 
OdGeEntity2d * copy () const
 
OdGeEntity2d & operator= (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
 
OdGeEntity2d & transformBy (const OdGeMatrix2d &xfm)
 
OdGeEntity2d & translateBy (const OdGeVector2d &translateVec)
 
OdGeEntity2d & rotateBy (double angle, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin)
 
OdGeEntity2d & mirror (const OdGeLine2d &line)
 
OdGeEntity2d & scaleBy (double scaleFactor, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin)
 
bool isOn (const OdGePoint2d &point, const OdGeTol &tol=OdGeContext::gTol) const
 
 ~OdGeEntity2d ()
 

Additional Inherited Members

- Static Public Member Functions inherited from OdGeCurve2d
static OdGeCurve2d * restoreUvCurve (const OdGeCurve3d *curve, const OdGeSurface *surface, const OdGeTol &tol=OdGeContext::gTol)
 
- Protected Member Functions inherited from OdGeSplineEnt2d
 OdGeSplineEnt2d ()
 
 OdGeSplineEnt2d (const OdGeSplineEnt2d &spline)
 
- 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 piecewise linear splines in 2D space.

Corresponding C++ library: TD_Ge

<group OdGe_Classes>

Definition at line 39 of file GeSegmentChain2d.h.

Constructor & Destructor Documentation

◆ OdGeSegmentChain2d() [1/5]

OdGeSegmentChain2d::OdGeSegmentChain2d ( )

◆ OdGeSegmentChain2d() [2/5]

OdGeSegmentChain2d::OdGeSegmentChain2d ( const OdGeSegmentChain2d &  source)
Parameters
source[in] Object to be cloned.

◆ OdGeSegmentChain2d() [3/5]

OdGeSegmentChain2d::OdGeSegmentChain2d ( const OdGePoint2dArray &  fitpoints)
Parameters
points[in] Array of fit points.
knots[in] Knot vector.
crv[in] A 2D curve to be approximated as a polyline.
approxEps[in] Approximate geometric tolerance.

◆ OdGeSegmentChain2d() [4/5]

OdGeSegmentChain2d::OdGeSegmentChain2d ( const OdGeKnotVector &  knots,
const OdGePoint2dArray &  points 
)

◆ OdGeSegmentChain2d() [5/5]

OdGeSegmentChain2d::OdGeSegmentChain2d ( const OdGeCurve2d &  crv,
double  approxEps 
)

Member Function Documentation

◆ bulges()

OdGeDoubleArray& OdGeSegmentChain2d::bulges ( )

Returns a reference to the bulge vector for this polyline.

Remarks
The bulge is the tangent of 1/4 the included angle of the arc, measured counterclockwise.

◆ getBulges()

const OdGeDoubleArray& OdGeSegmentChain2d::getBulges ( ) const

Returns the bulge vector for this polyline.

Remarks
The bulge is the tangent of 1/4 the included angle of the arc, measured counterclockwise.

◆ getVertices()

const OdGePoint2dArray& OdGeSegmentChain2d::getVertices ( ) const

Returns the vertices for this polyline.

◆ hasBulges()

bool OdGeSegmentChain2d::hasBulges ( ) const

Returns true in and only if this polyline has at least one non-zero bulge.

◆ operator=()

OdGeSegmentChain2d& OdGeSegmentChain2d::operator= ( const OdGeSegmentChain2d &  pline)

◆ setClosed()

OdGeSegmentChain2d& OdGeSegmentChain2d::setClosed ( bool  flag)

Closes or opens this polyline.

Parameters
flag[in] Boolean indicating if this polyline is to be closed.

◆ vertices()

OdGePoint2dArray& OdGeSegmentChain2d::vertices ( )

Returns a reference to the vertices for this polyline.


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