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

#include <GeLinearEnt2d.h>

Inheritance diagram for OdGeLinearEnt2d:
OdGeCurve2d OdGeEntity2d OdGeLine2d OdGeLineSeg2d OdGeRay2d

Public Member Functions

bool intersectWith (const OdGeLinearEnt2d &line, OdGePoint2d &intPnt, const OdGeTol &tol=OdGeContext::gTol) const
 
bool overlap (const OdGeLinearEnt2d &line, OdGeLinearEnt2d *&overlap, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isParallelTo (const OdGeLinearEnt2d &line, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isPerpendicularTo (const OdGeLinearEnt2d &line, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isColinearTo (const OdGeLinearEnt2d &line, const OdGeTol &tol=OdGeContext::gTol) const
 
void getPerpLine (const OdGePoint2d &point, OdGeLine2d &perpLine) const
 
OdGePoint2d pointOnLine () const
 
OdGeVector2d direction () const
 
void getLine (OdGeLine2d &line) const
 
OdGeLinearEnt2doperator= (const OdGeLinearEnt2d &line)
 
- 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 ()
 

Protected Member Functions

 OdGeLinearEnt2d ()
 
 OdGeLinearEnt2d (const OdGeLinearEnt2d &source)
 
- 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 is the base class for OdGe 2D linear entities.

Corresponding C++ library: TD_Ge

<group OdGe_Classes>

Definition at line 42 of file GeLinearEnt2d.h.

Constructor & Destructor Documentation

◆ OdGeLinearEnt2d() [1/2]

OdGeLinearEnt2d::OdGeLinearEnt2d ( )
protected
Parameters
source[in] Object to be cloned.

◆ OdGeLinearEnt2d() [2/2]

OdGeLinearEnt2d::OdGeLinearEnt2d ( const OdGeLinearEnt2d source)
protected

Member Function Documentation

◆ direction()

OdGeVector2d OdGeLinearEnt2d::direction ( ) const

Returns a unit vector parallel to this linear entity, and pointing in the direction of increasing parametric value.

◆ getLine()

void OdGeLinearEnt2d::getLine ( OdGeLine2d line) const

Returns a reference to an infinite line colinear with this linear entity.

Parameters
line[out] Receives the infinite line.
Remarks
It is up to the caller to delete the returned line.

◆ getPerpLine()

void OdGeLinearEnt2d::getPerpLine ( const OdGePoint2d point,
OdGeLine2d perpLine 
) const

Returns a reference to a 2D line perpendicular to this one, and passing through the specified point.

Parameters
point[in] Any 2D point.
perpLine[out] Receives a reference to the perpendicular line.
Remarks
It is up to the caller to delete the returned line.

◆ intersectWith()

bool OdGeLinearEnt2d::intersectWith ( const OdGeLinearEnt2d line,
OdGePoint2d intPnt,
const OdGeTol tol = OdGeContext::gTol 
) const

Returns true and the intersection point, if and only if the specified linear entity intersects with this one.

Parameters
line[in] Any 2D linear entity.
intPnt[out] Receives the intesection point.
tol[in] Geometric tolerance.

◆ isColinearTo()

bool OdGeLinearEnt2d::isColinearTo ( const OdGeLinearEnt2d line,
const OdGeTol tol = OdGeContext::gTol 
) const

Returns true if and only if the specified linear entity is colinear to this one.

Parameters
line[in] Any 2D linear entity.
tol[in] Geometric tolerance.

◆ isParallelTo()

bool OdGeLinearEnt2d::isParallelTo ( const OdGeLinearEnt2d line,
const OdGeTol tol = OdGeContext::gTol 
) const

Returns true if and only if the specified linear entity is parallel to this one.

Parameters
line[in] Any 2D linear entity.
tol[in] Geometric tolerance.

◆ isPerpendicularTo()

bool OdGeLinearEnt2d::isPerpendicularTo ( const OdGeLinearEnt2d line,
const OdGeTol tol = OdGeContext::gTol 
) const

Returns true if and only if the specified linear entity is perpendicular to this one.

Parameters
line[in] Any 2D linear entity.
tol[in] Geometric tolerance.

◆ operator=()

OdGeLinearEnt2d& OdGeLinearEnt2d::operator= ( const OdGeLinearEnt2d line)

◆ overlap()

bool OdGeLinearEnt2d::overlap ( const OdGeLinearEnt2d line,
OdGeLinearEnt2d *&  overlap,
const OdGeTol tol = OdGeContext::gTol 
) const

Determines if two lines overlap and if so returns the line that coincides with their region of overlap.

Parameters
line[in] Any 2D linear entity.
overlap[out] Output linear entity that is coincident with region of overlap
tol[in] Input tolerance.

◆ pointOnLine()

OdGePoint2d OdGeLinearEnt2d::pointOnLine ( ) const

Returns an arbitrary point on this linear entity.


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