CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OdGeCubicSplineCurve2d Class Reference

#include <GeCubicSplineCurve2d.h>

Inheritance diagram for OdGeCubicSplineCurve2d:
OdGeSplineEnt2d OdGeCurve2d OdGeEntity2d

Public Member Functions

 OdGeCubicSplineCurve2d ()
 
 OdGeCubicSplineCurve2d (const OdGeCubicSplineCurve2d &source)
 
 OdGeCubicSplineCurve2d (const OdGePoint2dArray &fitPnts, const OdGeTol &tol=OdGeContext::gTol)
 
 OdGeCubicSplineCurve2d (const OdGePoint2dArray &fitPnts, const OdGeVector2d &startDeriv, const OdGeVector2d &endDeriv, const OdGeTol &tol=OdGeContext::gTol)
 
 OdGeCubicSplineCurve2d (const OdGeCurve2d &curve, double tol=OdGeContext::gTol.equalPoint())
 
 OdGeCubicSplineCurve2d (const OdGeKnotVector &knots, const OdGePoint2dArray &fitPnts, const OdGeVector2dArray &firstDerivs, bool isPeriodic=false)
 
int numFitPoints () const
 
OdGePoint2d fitPointAt (int fitPointIndex) const
 
OdGeCubicSplineCurve2dsetFitPointAt (int fitPointIndex, const OdGePoint2d &point)
 
OdGeVector2d firstDerivAt (int fitPointIndex) const
 
OdGeCubicSplineCurve2dsetFirstDerivAt (int fitPointIndex, const OdGeVector2d &deriv)
 
OdGeCubicSplineCurve2doperator= (const OdGeCubicSplineCurve2d &spline)
 
- Public Member Functions inherited from OdGeSplineEnt2d
bool isRational () const
 
int degree () const
 
int order () const
 
int numKnots () const
 
const OdGeKnotVectorknots () 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
 
OdGeSplineEnt2dsetKnotAt (int knotIndex, double val)
 
OdGePoint2d controlPointAt (int controlPointIndex) const
 
OdGeSplineEnt2dsetControlPointAt (int controlPointIndex, const OdGePoint2d &point)
 
OdGeSplineEnt2doperator= (const OdGeSplineEnt2d &spline)
 
- Public Member Functions inherited from OdGeCurve2d
OdGeCurve3dconvertTo3d () const
 
void convertTo3d (OdGeCurve3d &curve3d) const
 
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 OdGePoint2d &point, double &param, const OdGeInterval *range, 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
 
double paramOf (const OdGePoint2d &point, const OdGeInterval *range, const OdGeTol &tol) 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
 
OdGeExtents2d getGeomExtents (const OdGeInterval &range=OdGeInterval(), const OdGeMatrix2d *coordSystem=NULL) const
 
bool hasStartPoint (OdGePoint2d &startPoint) const
 
bool hasEndPoint (OdGePoint2d &endPoint) const
 
bool hasMidPoint (OdGePoint2d &point, double coef=0.5) const
 
OdGePoint2d midPoint (double coef=0.5) 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 ()
 
 ~OdGeEntity2d ()
 
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
 

Additional Inherited Members

- Static Public Member Functions inherited from OdGeCurve2d
static OdGeCurve2drestoreUvCurve (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 file contains the class OdGeCubicSplineCurve2d - A mathematic entity used to represent a 2d interpolation cubic-spline curve.

This class represents 2D interpolation cubic spline curves. Currently not implemented.

Corresponding C++ library: TD_Ge

<group OdGe_Classes>

Definition at line 48 of file GeCubicSplineCurve2d.h.

Constructor & Destructor Documentation

◆ OdGeCubicSplineCurve2d() [1/6]

OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d ( )

Default constructor for the OdGeCubicSplineCurve2d class. Constructs an empty cubic spline curve.

◆ OdGeCubicSplineCurve2d() [2/6]

OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d ( const OdGeCubicSplineCurve2d source)

Copy constructor for the OdGeCubicSplineCurve2d class. Copies the specified cubic spline curve. Currently not implemented.

Parameters
source[in] Object to copy.

◆ OdGeCubicSplineCurve2d() [3/6]

OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d ( const OdGePoint2dArray fitPnts,
const OdGeTol tol = OdGeContext::gTol 
)

Constructor for the OdGeCubicSplineCurve2d class. Constructs a periodic (closed) cubic spline curve. The last fit point must equal the first. Currently not implemented.

Parameters
fitPnts[in] An array of 2D fit points.
tol[in] Geometric tolerance.

◆ OdGeCubicSplineCurve2d() [4/6]

OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d ( const OdGePoint2dArray fitPnts,
const OdGeVector2d startDeriv,
const OdGeVector2d endDeriv,
const OdGeTol tol = OdGeContext::gTol 
)

Constructor for the OdGeCubicSplineCurve2d class. Constructs a periodic (closed) cubic spline curve. The last fit point must equal the first. Currently not implemented.

Parameters
fitPnts[in] An array of 2D fit points.
startDeriv[in] Starting derivative of the cubic spline curve.
endDeriv[in] Ending derivative of this cubic spline curve.
tol[in] Geometric tolerance.

◆ OdGeCubicSplineCurve2d() [5/6]

OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d ( const OdGeCurve2d curve,
double  tol = OdGeContext::gTol.equalPoint() 
)

Constructor for the OdGeCubicSplineCurve2d class. Constructs a cubic spline curve from the input curve that is approximated according to the specified tolerance. Currently not implemented.

Parameters
curve[in] A curve to be approximated by this cubic spline curve.
tol[in] Geometric tolerance.

◆ OdGeCubicSplineCurve2d() [6/6]

OdGeCubicSplineCurve2d::OdGeCubicSplineCurve2d ( const OdGeKnotVector knots,
const OdGePoint2dArray fitPnts,
const OdGeVector2dArray firstDerivs,
bool  isPeriodic = false 
)

Constructor for the OdGeCubicSplineCurve2d class. Constructs a cubic spline curve from the passed fit points, knots vector, array of first derivatives at the fit points and option that cubic spline curve should be closed. Currently not implemented.

Parameters
knots[in] Knot vector.
fitPnts[in] An array of 2D fit points.
firstDerivs[in] Array of first derivatives at the fit points.
isPeriodic[in] True if the cubic spline curve should be periodic (closed).

Member Function Documentation

◆ firstDerivAt()

OdGeVector2d OdGeCubicSplineCurve2d::firstDerivAt ( int  fitPointIndex) const

Returns the first derivative at the specified index.

Parameters
fitPointIndex[in] Fit point index.
Remarks
Currently not implemented.

◆ fitPointAt()

OdGePoint2d OdGeCubicSplineCurve2d::fitPointAt ( int  fitPointIndex) const

Returns the fit point at the specified index.

Parameters
fitPointIndex[in] Fit point index.
Remarks
Currently not implemented.

◆ numFitPoints()

int OdGeCubicSplineCurve2d::numFitPoints ( ) const

Returns the number of fit points.

Remarks
Currently not implemented.

◆ operator=()

OdGeCubicSplineCurve2d & OdGeCubicSplineCurve2d::operator= ( const OdGeCubicSplineCurve2d spline)

Assignment operator for the OdGeCubicSplineCurve2d class. Assigns properties of the specified cubic spline curve. Currently not implemented.

Parameters
spline[in] Cubic spline curve to assign.

◆ setFirstDerivAt()

OdGeCubicSplineCurve2d & OdGeCubicSplineCurve2d::setFirstDerivAt ( int  fitPointIndex,
const OdGeVector2d deriv 
)

Sets the first derivative at the specified index, and returns a reference to this curve.

Parameters
fitPointIndex[in] Fit point index.
deriv[in] The first derivative at the fit point.
Remarks
Currently not implemented.

◆ setFitPointAt()

OdGeCubicSplineCurve2d & OdGeCubicSplineCurve2d::setFitPointAt ( int  fitPointIndex,
const OdGePoint2d point 
)

Sets the fit point at the specified index, and returns a reference to this curve.

Parameters
fitPointIndex[in] Fit point index.
point[in] Any 2D point.
Remarks
Currently not implemented.

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