|
CFx SDK Documentation
2020SP3
|
#include <FMSegment2D.h>
Public Member Functions | |
| Segment2D () | |
| Segment2D (SegmentImplClass eImplClass) | |
| Segment2D (const OdGePoint2d &ptA, const OdGePoint2d &ptB, double dBulge=0.0, OdIntPtr uMetaData=0, OdUInt32 uRawFlags=0) | |
| Segment2D (const OdGePoint2d &ptA, const OdGePoint2d &ptB, const OdGePoint2d &ptIntermediate) | |
| Segment2D (const Segment2D &rSeg, SegmentImplClass eImplClass=esicBulgeSeg2D) | |
| Segment2D (const IBulgeSeg2D &rSeg, SegmentImplClass eImplClass=esicBulgeSeg2D) | |
| ~Segment2D () | |
| Segment2D & | operator= (const Segment2D &rSeg) |
| Segment2D & | operator= (const IBulgeSeg2D &rSeg) |
| SegmentImplClass | implClass () const |
| const OdGePoint2d & | startPt () const |
| const OdGePoint2d & | endPt () const |
| double | bulge () const |
| SegmentType | type () const |
| double | deviation () const |
| void | getDir (OdGeVector2d &vDir) const |
| double | dirLength () const |
| double | length () const |
| Result | getLineSeg (OdGeLineSeg2d &rLine) const |
| Result | getArcSeg (OdGeCircArc2d &rArc) const |
| Result | getPoint (double dParam, OdGePoint2d &ptPoint) const |
| Result | getTangent (double dParam, OdGeVector2d &vTangent) const |
| void | addExtents (OdGeExtents2d &extExtents, double dTol=0.0) const |
| bool | isOn (const OdGePoint2d &ptTest, double *pParam=0, const OdGeTol &gTol=FMGeGbl::gTol) const |
| double | nearestParam (const OdGePoint2d &ptTest, OdGePoint2d *ptNearest=0) const |
| double | integrate (const OdGePoint2d &ptOrigin=OdGePoint2d::kOrigin) const |
| Result | getSubSegment (double dStartParam, double dEndParam, IBulgeSeg2D &rSubSeg) const |
| Result | getParallelSegment (double dNormalOffset, IBulgeSeg2D &rParSeg) const |
| OdUInt32 | intersectXRay (const OdGePoint2d &ptTest, bool *pOnSegment=0, const OdGeTol &gTol=FMGeGbl::gTol) const |
| OdUInt32 | intersect (const IBulgeSeg2D &rSegB, OdGePoint2d *pPt1, OdGePoint2d *pPt2=0, const OdGeTol &gTol=FMGeGbl::gTol) const |
| OdUInt32 | intersect (const IBulgeSeg2D &rSegB, Intersection *pInt1=0, Intersection *pInt2=0, const OdGeTol &gTol=FMGeGbl::gTol) const |
| OdUInt32 | intersectLine (const OdGeLine2d &rGeLine, Intersection *pInt1=0, Intersection *pInt2=0, const OdGeTol &gTol=FMGeGbl::gTol) const |
| OdGePoint2d | arcCenter () const |
| double | arcRadius () const |
| Result | getCircleData (OdGePoint2d &ptCenter, double &dRadius) const |
| double | arcAngle () const |
| double | arcStartAngle () const |
| Result | getArcData (OdGePoint2d &ptCenter, double &dRadius, double &dStartAngle, double &dInclAngle) const |
| Result | transformBy (const OdGeMatrix2d &mTrans) |
| Result | reverse () |
| Result | set (const OdGePoint2d &ptA, const OdGePoint2d &ptB, double dBulge=0.0, OdIntPtr iMetaData=0, OdUInt32 iRawFlags=0) |
| Result | set (const OdGePoint2d &ptA, const OdGePoint2d &ptB, const OdGePoint2d &ptIntermediate) |
| Result | set (const OdGeLineSeg2d &geLine) |
| Result | set (const OdGeCircArc2d &geArc) |
| Result | set (const IBulgeSeg2D &rSeg) |
| Result | shift (const double dAngle, const double dShiftDist) |
| OdIntPtr | metadata () const |
| Result | setMetadata (OdIntPtr iNewData) |
| bool | isHidden () const |
| Result | setHidden (bool bHidden=true) |
| FaceOrientation | orientation () const |
| Result | setOrientation (FaceOrientation eOrientation) |
| bool | isExplodedArc () const |
| Result | setExplodedArc (bool bExplodedArc=true) |
| OdUInt32 | rawFlags () const |
| Result | setRawFlags (OdUInt32 iRawFlags) |
| operator const IBulgeSeg2D & () const | |
| DOM. More... | |
| operator IBulgeSeg2D & () | |
| DOM. More... | |
| const IBulgeSeg2D & | impl () const |
| DOM. More... | |
| IBulgeSeg2D & | impl () |
| DOM. More... | |
2D Segment.
Definition at line 54 of file FMSegment2D.h.
| FacetModeler::Segment2D::Segment2D | ( | ) |
Constructor.
|
explicit |
Constructor.
| FacetModeler::Segment2D::Segment2D | ( | const OdGePoint2d & | ptA, |
| const OdGePoint2d & | ptB, | ||
| double | dBulge = 0.0, |
||
| OdIntPtr | uMetaData = 0, |
||
| OdUInt32 | uRawFlags = 0 |
||
| ) |
Constructor.
| FacetModeler::Segment2D::Segment2D | ( | const OdGePoint2d & | ptA, |
| const OdGePoint2d & | ptB, | ||
| const OdGePoint2d & | ptIntermediate | ||
| ) |
Constructor.
| FacetModeler::Segment2D::Segment2D | ( | const Segment2D & | rSeg, |
| SegmentImplClass | eImplClass = esicBulgeSeg2D |
||
| ) |
Constructor.
|
explicit |
Constructor.
| FacetModeler::Segment2D::~Segment2D | ( | ) |
Destructor.
| void FacetModeler::Segment2D::addExtents | ( | OdGeExtents2d & | extExtents, |
| double | dTol = 0.0 |
||
| ) | const |
Adds extents of this segment (extended by dTol) to the given extents.
| double FacetModeler::Segment2D::arcAngle | ( | ) | const |
Returns signed included angle of the arc segment.
| OdGePoint2d FacetModeler::Segment2D::arcCenter | ( | ) | const |
Returns arc center.
| double FacetModeler::Segment2D::arcRadius | ( | ) | const |
Returns arc radius.
| double FacetModeler::Segment2D::arcStartAngle | ( | ) | const |
Returns starting angle of the arc (direction from center to startPt).
| double FacetModeler::Segment2D::bulge | ( | ) | const |
Returns bulge value.
| double FacetModeler::Segment2D::deviation | ( | ) | const |
Returns signed deviation from the line.
| double FacetModeler::Segment2D::dirLength | ( | ) | const |
Return the distance between start and end point.
| const OdGePoint2d& FacetModeler::Segment2D::endPt | ( | ) | const |
Returns end point.
| Result FacetModeler::Segment2D::getArcData | ( | OdGePoint2d & | ptCenter, |
| double & | dRadius, | ||
| double & | dStartAngle, | ||
| double & | dInclAngle | ||
| ) | const |
Returns arc center point, radius and angles.
| Result FacetModeler::Segment2D::getArcSeg | ( | OdGeCircArc2d & | rArc | ) | const |
Returns arc segment corresponding to this segment.
| Result FacetModeler::Segment2D::getCircleData | ( | OdGePoint2d & | ptCenter, |
| double & | dRadius | ||
| ) | const |
Returns arc radius and center point.
| void FacetModeler::Segment2D::getDir | ( | OdGeVector2d & | vDir | ) | const |
Returns direction from end point to start point.
| Result FacetModeler::Segment2D::getLineSeg | ( | OdGeLineSeg2d & | rLine | ) | const |
Returns line segment corresponding to this segment.
| Result FacetModeler::Segment2D::getParallelSegment | ( | double | dNormalOffset, |
| IBulgeSeg2D & | rParSeg | ||
| ) | const |
Returns parallel segment.
| dNormalOffset | [in] Signed offset along normal vector at each point of original segment. |
| rParSeg | [out] Result. |
| Result FacetModeler::Segment2D::getPoint | ( | double | dParam, |
| OdGePoint2d & | ptPoint | ||
| ) | const |
Returns point at parameter in range [ 0, 1 ].
| Result FacetModeler::Segment2D::getSubSegment | ( | double | dStartParam, |
| double | dEndParam, | ||
| IBulgeSeg2D & | rSubSeg | ||
| ) | const |
Returns subsegment given by 2 parameters.
| Result FacetModeler::Segment2D::getTangent | ( | double | dParam, |
| OdGeVector2d & | vTangent | ||
| ) | const |
Returns tangent at parameter in range [ 0, 1 ].
|
inline |
DOM.
Definition at line 404 of file FMSegment2D.h.
|
inline |
DOM.
Definition at line 401 of file FMSegment2D.h.
| SegmentImplClass FacetModeler::Segment2D::implClass | ( | ) | const |
Implementation type.
| double FacetModeler::Segment2D::integrate | ( | const OdGePoint2d & | ptOrigin = OdGePoint2d::kOrigin | ) | const |
Returns 2 * signed area of a contour bounded by this segment and 2 lines, connecting the ptOrigin and ends of this segment.
| OdUInt32 FacetModeler::Segment2D::intersect | ( | const IBulgeSeg2D & | rSegB, |
| Intersection * | pInt1 = 0, |
||
| Intersection * | pInt2 = 0, |
||
| const OdGeTol & | gTol = FMGeGbl::gTol |
||
| ) | const |
Returns number of intersections (0, 1 or something) and Intersection objects.
| OdUInt32 FacetModeler::Segment2D::intersect | ( | const IBulgeSeg2D & | rSegB, |
| OdGePoint2d * | pPt1, | ||
| OdGePoint2d * | pPt2 = 0, |
||
| const OdGeTol & | gTol = FMGeGbl::gTol |
||
| ) | const |
Returns number of intersections (0, 1 or something) and intersection points.
| OdUInt32 FacetModeler::Segment2D::intersectLine | ( | const OdGeLine2d & | rGeLine, |
| Intersection * | pInt1 = 0, |
||
| Intersection * | pInt2 = 0, |
||
| const OdGeTol & | gTol = FMGeGbl::gTol |
||
| ) | const |
Intersects this segment with an infinite line.
| OdUInt32 FacetModeler::Segment2D::intersectXRay | ( | const OdGePoint2d & | ptTest, |
| bool * | pOnSegment = 0, |
||
| const OdGeTol & | gTol = FMGeGbl::gTol |
||
| ) | const |
The method returns number of different intersection points of the segment (including end with minimal Y) with a ray, starting at ptTest and going in the X direction.
| bool FacetModeler::Segment2D::isExplodedArc | ( | ) | const |
Returns ecfExplodedArc flag value.
| bool FacetModeler::Segment2D::isHidden | ( | ) | const |
Returns ecfHidden flag value.
| bool FacetModeler::Segment2D::isOn | ( | const OdGePoint2d & | ptTest, |
| double * | pParam = 0, |
||
| const OdGeTol & | gTol = FMGeGbl::gTol |
||
| ) | const |
Returns whether the point lies on the segment.
| ptTest | [in] Point to test. |
| pParam | [out] Resulting parameter. |
| gTol | [in] Tolerance. |
| double FacetModeler::Segment2D::length | ( | ) | const |
Returns segment length.
| OdIntPtr FacetModeler::Segment2D::metadata | ( | ) | const |
Returns metadata.
| double FacetModeler::Segment2D::nearestParam | ( | const OdGePoint2d & | ptTest, |
| OdGePoint2d * | ptNearest = 0 |
||
| ) | const |
Returns nearest parameter to the specified point.
| ptTest | [in] Point to test. |
| ptNearest | [out] Nearest point. |
|
inline |
DOM.
Definition at line 395 of file FMSegment2D.h.
|
inline |
DOM.
Definition at line 398 of file FMSegment2D.h.
| Segment2D& FacetModeler::Segment2D::operator= | ( | const IBulgeSeg2D & | rSeg | ) |
Copy operator.
| FaceOrientation FacetModeler::Segment2D::orientation | ( | ) | const |
Returns orientation.
| OdUInt32 FacetModeler::Segment2D::rawFlags | ( | ) | const |
Returns internal flags ( orientation, visibility etc.).
| Result FacetModeler::Segment2D::reverse | ( | ) |
Inverts the segment (makes it going in opposite direction).
| Result FacetModeler::Segment2D::set | ( | const IBulgeSeg2D & | rSeg | ) |
Copy from another segment
| Result FacetModeler::Segment2D::set | ( | const OdGeCircArc2d & | geArc | ) |
Copy from GeCircArc2d and reset metadata.
| Result FacetModeler::Segment2D::set | ( | const OdGeLineSeg2d & | geLine | ) |
Copy from GeLineSeg2d and reset metadata.
| Result FacetModeler::Segment2D::set | ( | const OdGePoint2d & | ptA, |
| const OdGePoint2d & | ptB, | ||
| const OdGePoint2d & | ptIntermediate | ||
| ) |
Update ends and calculate bulge using the intermediate point.
| Result FacetModeler::Segment2D::set | ( | const OdGePoint2d & | ptA, |
| const OdGePoint2d & | ptB, | ||
| double | dBulge = 0.0, |
||
| OdIntPtr | iMetaData = 0, |
||
| OdUInt32 | iRawFlags = 0 |
||
| ) |
Update ends and bulge.
Sets or clears ecfExplodedArc flag.
| Result FacetModeler::Segment2D::setOrientation | ( | FaceOrientation | eOrientation | ) |
Sets orientation.
Sets internal flags ( orientation, visibility etc.).
| Result FacetModeler::Segment2D::shift | ( | const double | dAngle, |
| const double | dShiftDist | ||
| ) |
| const OdGePoint2d& FacetModeler::Segment2D::startPt | ( | ) | const |
Returns start point.
| Result FacetModeler::Segment2D::transformBy | ( | const OdGeMatrix2d & | mTrans | ) |
Transforms segment with specified matrix.
| SegmentType FacetModeler::Segment2D::type | ( | ) | const |
Returns segment type.