CFx SDK Documentation  2022 SP0
Public Member Functions | List of all members
OdGeExternalCurve2d Class Reference

#include <GeExternalCurve2d.h>

Inheritance diagram for OdGeExternalCurve2d:
OdGeCurve2d OdGeEntity2d

Public Member Functions

 OdGeExternalCurve2d ()
 
 OdGeExternalCurve2d (const OdGeExternalCurve2d &source)
 
 OdGeExternalCurve2d (void *pCurveDef, OdGe::ExternalEntityKind curveKind, bool makeCopy=true)
 
bool isNurbCurve () const
 
bool isNurbCurve (OdGeNurbCurve2d &nurbCurve) const
 
bool isDefined () const
 
void getExternalCurve (void *&pCurveDef) const
 
OdGe::ExternalEntityKind externalCurveKind () const
 
OdGeExternalCurve2dset (void *pCurveDef, OdGe::ExternalEntityKind curveKind, bool makeCopy=true)
 
bool isOwnerOfCurve () const
 
OdGeExternalCurve2dsetToOwnCurve ()
 
OdGeExternalCurve2doperator= (const OdGeExternalCurve2d &extCurve)
 
- 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, as OdGeCurve2d curves, 2D curves whose definitions are external to the OdGe library.

Remarks
OdGeExternalCurve2d curve instances can be treated as any other OdCurve2d.

You can access the OdGeExternalCurve2d as a corresponding native OdGeCurve2d curve, if such a corresponding curve exists, or you may (more efficiently) access the external data in its native form.

One example of using OdGeOdGeExternalCurve2d is to represent an ACIS curve.

Corresponding C++ library: TD_Ge

<group OdGe_Classes>

Definition at line 47 of file GeExternalCurve2d.h.

Constructor & Destructor Documentation

◆ OdGeExternalCurve2d() [1/3]

OdGeExternalCurve2d::OdGeExternalCurve2d ( )
Parameters
pCurveDef[in] Pointer to the curve definition.
curveKind[in] Information about system that created the curve.
makeCopy[in] Makes a copy of the curve definition.
source[in] Object to be cloned.
Remarks
Without arguments, the constructor creates an empty instance.

Possible values for curveKind:

@untitled table kAcisEntity kExternalEntityUndefined

◆ OdGeExternalCurve2d() [2/3]

OdGeExternalCurve2d::OdGeExternalCurve2d ( const OdGeExternalCurve2d source)

◆ OdGeExternalCurve2d() [3/3]

OdGeExternalCurve2d::OdGeExternalCurve2d ( void pCurveDef,
OdGe::ExternalEntityKind  curveKind,
bool  makeCopy = true 
)

Member Function Documentation

◆ externalCurveKind()

OdGe::ExternalEntityKind OdGeExternalCurve2d::externalCurveKind ( ) const

Returns information about the system that created the curve.

Remarks
Possible values for curveKind:

@untitled table kAcisEntity kExternalEntityUndefined

◆ getExternalCurve()

void OdGeExternalCurve2d::getExternalCurve ( void *&  pCurveDef) const

Returns a copy of the raw curve definition.

Parameters
pCurveDef[out] Receives a pointer to a copy of the raw curve definition.
Remarks
It is up to the caller to delete the memory allocated.

◆ isDefined()

bool OdGeExternalCurve2d::isDefined ( ) const

Returns true if and only if the curve is defined (not an empty instance).

◆ isNurbCurve() [1/2]

bool OdGeExternalCurve2d::isNurbCurve ( ) const

Returns true if and only if the curve can be represented as an OdGeNurbCurve2d curve.

◆ isNurbCurve() [2/2]

bool OdGeExternalCurve2d::isNurbCurve ( OdGeNurbCurve2d nurbCurve) const

Returns true, and an OdGeNurbCurve2d curve, if and only if the curve can be represented as an OdGeNurbCurve2d curve.

Parameters
nurbCurve[out] Receives an OdGeNurbCurve2d internal representation of the external curve.
Remarks
nurbCurve is created with the new method, and must be deleted by the caller.

◆ isOwnerOfCurve()

bool OdGeExternalCurve2d::isOwnerOfCurve ( ) const

Returns true if and only if if the external curve owns the data.

Remarks
If the external curve owns the data, it will be destroyed when the curve is destroyed.

◆ operator=()

OdGeExternalCurve2d& OdGeExternalCurve2d::operator= ( const OdGeExternalCurve2d extCurve)

◆ set()

OdGeExternalCurve2d& OdGeExternalCurve2d::set ( void pCurveDef,
OdGe::ExternalEntityKind  curveKind,
bool  makeCopy = true 
)

Sets the parameters for this external curve according to the arguments, and returns a reference to this external curve.

Parameters
pCurveDef[in] Pointer to the curve definition.
curveKind[in] Information about system that created the curve.
makeCopy[in] If true, makes a copy of of the curve definition.

◆ setToOwnCurve()

OdGeExternalCurve2d& OdGeExternalCurve2d::setToOwnCurve ( )

Forces this external curve to own the data, and returns a pointer to this curve.

Remarks
If the external curve owns the data, it will be destroyed when the curve is destroyed.

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