CFx SDK Documentation
2022 SP0
|
#include <GeCurve2d.h>
Protected Member Functions | |
OdGeCurve2d () | |
OdGeCurve2d (const OdGeCurve2d &source) | |
Protected Member Functions inherited from OdGeEntity2d | |
OdGeEntity2d () | |
OdGeEntity2d (const OdGeEntity2d &) | |
void | connectTo (OdGeEntity2dImpl *) |
This class is the base class for all OdGe 2D curves.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 52 of file GeCurve2d.h.
|
protected |
source | [in] Object to be cloned. |
|
protected |
void OdGeCurve2d::appendSamplePoints | ( | double | fromParam, |
double | toParam, | ||
double | approxEps, | ||
OdGePoint2dArray & | pointArray, | ||
OdGeDoubleArray * | pParamArray = NULL |
||
) | const |
Appends sample points along this curve and their parameter values to the specified arrays.
fromParam | [in] Starting parameter value. |
toParam | [in] Ending parameter value. |
approxEps | [in] Approximate spacing along a curve. |
pointArray | [out] Receives an array of sample points. |
pParamArray | [in] Pointer to an array to receive the parameters at each point. |
void OdGeCurve2d::appendSamplePoints | ( | int | numSample, |
OdGePoint2dArray & | pointArray | ||
) | const |
Appends sample points along this curve and their parameter values to the specified arrays.
numSample | [in] Number of samples. |
pointArray | [out] Receives an array of sample points. |
bool OdGeCurve2d::area | ( | double | startParam, |
double | endParam, | ||
double & | value, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns the area of the interval of the curve defined by startParam and endParam.
OdGeBoundBlock2d OdGeCurve2d::boundBlock | ( | ) | const |
Oriented bounding box of curve.
OdGeBoundBlock2d OdGeCurve2d::boundBlock | ( | const OdGeInterval & | range | ) | const |
Oriented bounding box of curve.
OdGePoint2d OdGeCurve2d::closestPointTo | ( | const OdGeCurve2d & | curve2d, |
OdGePoint2d & | pntOnOtherCrv, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Finds the closest points between this curve and the input curve.
OdGePoint2d OdGeCurve2d::closestPointTo | ( | const OdGePoint2d & | point, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Finds the closest point on this curve to the input point.
double OdGeCurve2d::distanceTo | ( | const OdGeCurve2d & | otherCur, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns the distance between the closest points between this curve and the input curve.
double OdGeCurve2d::distanceTo | ( | const OdGePoint2d & | point, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns the distance between the input point and the closest point on this curve.
OdGePoint2d OdGeCurve2d::evalPoint | ( | double | param | ) | const |
Returns the point on the curve corresponding to the specified parameter value.
param | [in] Parameter to be evaluated. |
OdGePoint2d OdGeCurve2d::evalPoint | ( | double | param, |
int | numDeriv, | ||
OdGeVector2dArray & | derivatives | ||
) | const |
Returns the point on the curve corresponding to the specified parameter value, and the derviatives at that point.
param | [in] Parameter to be evaluated. |
numDeriv | [in] The number of derivatives to be computed (should not be set larger than 2). |
derivatives | [out] Receives an array of derivatives at the point corresponding to param. |
bool OdGeCurve2d::explode | ( | OdGeCurve2dPtrArray & | explodedCurves, |
OdGeIntArray & | newExplodedCurve, | ||
const OdGeInterval * | interval = NULL |
||
) | const |
Explode curve into its component sub-curves.
void OdGeCurve2d::getClosestPointTo | ( | const OdGeCurve2d & | curve2d, |
OdGePointOnCurve2d & | pntOnThisCrv, | ||
OdGePointOnCurve2d & | pntOnOtherCrv, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Finds the closest points between this curve and the input curve.
void OdGeCurve2d::getClosestPointTo | ( | const OdGePoint2d & | point, |
OdGePointOnCurve2d & | pntOnCrv, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Finds the closest point on this curve to the input point.
void OdGeCurve2d::getInterval | ( | OdGeInterval & | interval | ) | const |
Returns the parametric interval of the curve.
interval | [out] Receives the parametric interval of the curve. |
void OdGeCurve2d::getInterval | ( | OdGeInterval & | interval, |
OdGePoint2d & | start, | ||
OdGePoint2d & | end | ||
) | const |
Returns the parametric interval of the curve.
interval | [out] Receives the parametric interval of the curve. |
start | [out] Receives the start point of interval. |
end | [out] Receives the end point of interval. |
void OdGeCurve2d::getLocalClosestPoints | ( | const OdGeCurve2d & | otherCurve, |
OdGePointOnCurve2d & | approxPntOnThisCrv, | ||
OdGePointOnCurve2d & | approxPntOnOtherCrv, | ||
const OdGeInterval * | nbhd1 = NULL , |
||
const OdGeInterval * | nbhd2 = NULL , |
||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Local closest points.
void OdGeCurve2d::getLocalClosestPoints | ( | const OdGePoint2d & | point, |
OdGePointOnCurve2d & | approxPnt, | ||
const OdGeInterval * | nbhd = NULL , |
||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Local closest points.
bool OdGeCurve2d::getNormalPoint | ( | const OdGePoint2d & | point, |
OdGePointOnCurve2d & | pntOnCrv, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Finds the point on the input curve whose normal passes through the input point.
void OdGeCurve2d::getSamplePoints | ( | double | fromParam, |
double | toParam, | ||
double | approxEps, | ||
OdGePoint2dArray & | pointArray, | ||
OdGeDoubleArray & | paramArray | ||
) | const |
Returns sample points along this curve and their parameter values in the specified arrays.
fromParam | [in] Starting parameter value. |
toParam | [in] Ending parameter value. |
approxEps | [in] Approximate spacing along a curve. |
pointArray | [out] Returns an array of sample points. |
paramArray | [out] Returns an array of parameters at each point. |
void OdGeCurve2d::getSamplePoints | ( | double | fromParam, |
double | toParam, | ||
double | approxEps, | ||
OdGePoint2dArray & | pointArray, | ||
OdGeDoubleArray * | pParamArray = NULL |
||
) | const |
void OdGeCurve2d::getSamplePoints | ( | int | numSample, |
OdGePoint2dArray & | pointArray | ||
) | const |
Returns sample points along this curve and their parameter values in the specified arrays.
fromParam | [in] Starting parameter value. |
toParam | [in] Ending parameter value. |
approxEps | [in] Approximate spacing along a curve. pointArray Returns an array of sample points. paramArray Returns an array of parameters at each point. |
void OdGeCurve2d::getSplitCurves | ( | double | param, |
OdGeCurve2d *& | piece1, | ||
OdGeCurve2d *& | piece2 | ||
) | const |
Returns two segments that are obtained by splitting the curve at the input parameter value. If the specified parameter value does not lie within the parametric interval of the curve or if it corresponds to the start or endpoint of the curve, then piece1 and piece2 are set to null.
void OdGeCurve2d::getTrimmedOffset | ( | double | distance, |
OdGeCurve2dPtrArray & | offsetCurveList, | ||
OdGe::OffsetCrvExtType | extensionType = OdGe::kFillet , |
||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Return the offset of the curve.
bool OdGeCurve2d::hasEndPoint | ( | OdGePoint2d & | endPoint | ) | const |
Returns true, and the end point, if and only if the parametric interval of the curve has an upper bound.
endPoint | [out] Receives the end point of the interval. |
bool OdGeCurve2d::hasStartPoint | ( | OdGePoint2d & | startPoint | ) | const |
Returns true, and the start point, if and only if the parametric interval of the curve has a lower bound.
startPoint | [out] Receives the start point of the interval. |
bool OdGeCurve2d::isClosed | ( | const OdGeTol & | tol = OdGeContext::gTol | ) | const |
Returns true if and only if the curve is closed within the specified tolerance.
tol | [in] Geometric tolerance. |
bool OdGeCurve2d::isDegenerate | ( | OdGe::EntityId & | degenerateType, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Determines if the curve is degenerate and if so returns type of entity that the curve degenerates.
bool OdGeCurve2d::isDegenerate | ( | OdGeEntity2d *& | pConvertedEntity, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Determines if the curve is degenerate and if so returns the entity that the curve degenerates into.
bool OdGeCurve2d::isLinear | ( | OdGeLine2d & | line, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns true, and a linear entity coincident with this curve, if and only if this curve is linear.
line | [out] Receives the line coincident with this curve. |
tol | [in] Geometric tolerance. |
bool OdGeCurve2d::isOn | ( | const OdGePoint2d & | point, |
double & | param, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Determines if pnt lies on curve. The param parameter is only set to a meaningful value if this function returns true.
bool OdGeCurve2d::isOn | ( | double | param, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Determines if input parameter value is within valid parametric range of curve.
bool OdGeCurve2d::isPeriodic | ( | double & | period | ) | const |
Determines if the curve is periodic. The curve is periodic if and only if it is closed and the two points evalPoint(t) and evalPoint(t+period) are always the same point for all values of t.
double OdGeCurve2d::length | ( | double | fromParam, |
double | toParam, | ||
double | tol = OdGeContext::gTol.equalPoint() |
||
) | const |
Returns the arc length of the curve between the two parameter values.
double OdGeCurve2d::length | ( | double | tol = OdGeContext::gTol.equalPoint() | ) | const |
Returns the arc length of the curve between the two parameter values.
OdGeCurve2d& OdGeCurve2d::operator= | ( | const OdGeCurve2d & | curve | ) |
OdGeBoundBlock2d OdGeCurve2d::orthoBoundBlock | ( | ) | const |
Bounding box whose sides are parallel to coordinate axes.
OdGeBoundBlock2d OdGeCurve2d::orthoBoundBlock | ( | const OdGeInterval & | range | ) | const |
Bounding box whose sides are parallel to coordinate axes.
double OdGeCurve2d::paramAtLength | ( | double | datumParam, |
double | length, | ||
bool | posParamDir = true , |
||
double | tol = OdGeContext::gTol.equalPoint() |
||
) | const |
Returns the parameter value of the point whose arc length distance.
double OdGeCurve2d::paramOf | ( | const OdGePoint2d & | point, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns the parameter value of a point.
point | [in] Input point on the curve. |
tol | [in] Geometric tolerance. |
OdGeCurve2d& OdGeCurve2d::reverseParam | ( | ) |
Reverses the parameter direction this curve.
OdGeCurve2d& OdGeCurve2d::setInterval | ( | ) |
Sets to natural domain of the curve
bool OdGeCurve2d::setInterval | ( | const OdGeInterval & | interval | ) |
Sets the parametric interval of this curve.
interval | [in] Parametric interval of this curve |
OdGeCurve2d::TD_USING | ( | OdGeEntity2d::isOn | ) |