CFx SDK Documentation  2020SP3
Public Member Functions | Static Public Member Functions | List of all members
FacetModeler::IContour2D Class Referenceabstract

#include <FM_IContour2D.h>

Inheritance diagram for FacetModeler::IContour2D:
FacetModeler::TContour2DImpl< TContourData > FacetModeler::TContour2DImpl< CachedContour2DImplData > FacetModeler::TContour2DImpl< SimpleContour2DImplData > FacetModeler::CachedContour2DImpl FacetModeler::SimpleContour2DImpl

Public Member Functions

virtual ~IContour2D ()
 
virtual void set (const IContour2D &rSrcCont)=0
 
virtual IContour2Dclone () const =0
 
virtual ContourImplClass implClass () const =0
 
virtual bool isClosed () const =0
 
virtual void setClosed (bool bClosed=true)=0
 
virtual bool setClosedIfEndsAreEqual (const OdGeTol &gTol=FMGeGbl::gTol)=0
 
virtual bool isEmpty () const =0
 
virtual OdUInt32 numVerts () const =0
 
virtual OdUInt32 numSegments () const =0
 
virtual bool hasArcs () const =0
 
virtual SegmentType segmentType (OdUInt32 iIndex) const =0
 
virtual Result getSegmentAt (OdUInt32 iIndex, IBulgeSeg2D &rSegment) const =0
 
virtual Result getSegmentAt (OdUInt32 iIndex, OdGePoint2d &ptStart, OdGePoint2d &ptEnd, double &dBulge) const =0
 
virtual Result getLineSegAt (OdUInt32 iIndex, OdGeLineSeg2d &geLine) const =0
 
virtual Result getArcSegAt (OdUInt32 iIndex, OdGeCircArc2d &geArc) const =0
 
virtual Result getPointAt (OdUInt32 iIndex, OdGePoint2d &ptPoint) const =0
 
virtual Result getBulgeAt (OdUInt32 iIndex, double &dBulge) const =0
 
virtual Result getVertexAt (OdUInt32 iIndex, OdGePoint2d *pptPoint, double *pdBulge=0, Attributes2D *pAttr=0) const =0
 
virtual Result getInternalAngleAt (OdUInt32 iIndex, double &dAngle) const =0
 
virtual Result setPointAt (OdUInt32 iIndex, const OdGePoint2d &ptPoint)=0
 
virtual Result setBulgeAt (OdUInt32 iIndex, double dBulge)=0
 
virtual Result setVertexAt (OdUInt32 iIndex, const OdGePoint2d &ptPoint, double dBulge)=0
 
virtual void reset ()=0
 
virtual void reserveVertices (OdUInt32 iReservedSize)=0
 
virtual const Attributes2DattributesAt (OdUInt32 iIndex) const =0
 
virtual Attributes2Dattributes4UAt (OdUInt32 iIndex)=0
 
virtual Result setAttributesAt (OdUInt32 iIndex, const Attributes2D &rAttr)=0
 
virtual OdIntPtr metadataAt (OdUInt32 iIndex) const =0
 
virtual Result setMetadataAt (OdUInt32 iIndex, OdIntPtr uNewData)=0
 
virtual Result addVertexAt (OdUInt32 iIndex, const OdGePoint2d &ptStart, double dBulge=0.0, const Attributes2D &rAttr=Attributes2D::kNull)=0
 
virtual Result appendVertex (const OdGePoint2d &ptStart, double dBulge=0.0, const Attributes2D &rAttr=Attributes2D::kNull)=0
 
virtual Result appendVertices (const OdGePoint2dArray &vecSource)=0
 
virtual Result appendSegment (const IBulgeSeg2D &rSeg, bool bShiftToHit=false, const OdGeTol &gTol=FMGeGbl::gTol)=0
 
virtual Result appendSegment (double dBulge, const OdGePoint2d &ptNewEnd, const Attributes2D &rAttr=Attributes2D::kNull)=0
 
virtual Result appendContour (const IContour2D &rCont, bool bCloseGap=false, double dMaxGap=1e99)=0
 
virtual Result removeVertexAt (OdUInt32 iIndex)=0
 
double startParam () const
 
double endParam () const
 
virtual Result getStartPoint (OdGePoint2d &ptPoint) const =0
 
virtual Result getEndPoint (OdGePoint2d &ptPoint) const =0
 
virtual double length () const =0
 
virtual Result getTangent (double dParam, OdGeVector2d &vTangent) const =0
 
virtual Result getPoint (double dParam, OdGePoint2d &ptPoint) const =0
 
virtual Result getPointAtDist (double dDist, OdGePoint2d &ptPoint) const =0
 
virtual Result getDistAtParam (double dParam, double &dDist) const =0
 
virtual Result getParamAtDist (double dDist, double &dParam) const =0
 
virtual Result getNormalizedParam (double &dParam) const =0
 
virtual Result getNormalizedDist (double &dDist) const =0
 
virtual bool areEqualParams (double dParam1, double dParam2, const double dParamTol=1e-10) const =0
 
virtual bool areEqualDists (double dDist1, double dDist2, const double dTol=FMGeGbl::gTol.equalPoint()) const =0
 
virtual double signedMinDist (double dDist1, double dDist2) const =0
 
virtual double signedMinDistByParams (double dParam1, double dParam2) const =0
 
virtual Result addExtents (OdGeExtents2d &geExtents) const =0
 
virtual double signedArea () const =0
 
virtual bool isConvex () const =0
 
double area () const
 
bool isCCW () const
 
virtual Result getInternalPoint (OdGePoint2d &rPoint, const OdGeTol &gTol=FMGeGbl::gTol) const =0
 
virtual bool isOn (const OdGePoint2d &ptTest, double *pdParam=0, const OdGeTol &gTol=FMGeGbl::gTol) const =0
 
virtual double nearestParam (const OdGePoint2d &ptTest, OdGePoint2d *ptNearest=0) const =0
 
virtual bool contains (const OdGePoint2d &rPoint, bool *pbOnBorder=0, const OdGeTol &gTol=FMGeGbl::gTol) const =0
 
virtual bool isSelfIntersecting (const OdGeTol &gTol=FMGeGbl::gTol, bool bExcludeTouch=false) const =0
 
virtual bool isValidRegion (const OdGeTol &gTol=FMGeGbl::gTol) const =0
 
virtual bool isInsideContour (const IContour2D &c2dOuter, bool fAllowBordersTouch=false, const OdGeTol &gTol=FMGeGbl::gTol) const =0
 
virtual OdUInt32 intersect (const IBulgeSeg2D &rSegB, std::vector< Intersection > &vecPoints, const OdGeTol &gTol=FMGeGbl::gTol) const =0
 
virtual OdUInt32 intersect (const IContour2D &rContB, std::vector< Intersection > &vecPoints, const OdGeTol &gTol=FMGeGbl::gTol) const =0
 
virtual OdUInt32 intersectLine (const OdGePoint2d &ptLineOrigin, const OdGeVector2d &vLineDir, std::vector< Intersection > &vecPoints, const OdGeTol &gTol=FMGeGbl::gTol) const =0
 
virtual Result transformBy (const OdGeMatrix2d &geMatrix, const DeviationParams &devDeviation=FMGeGbl::gDefDev)=0
 
virtual void reverse ()=0
 
virtual void deleteCoincident (const OdGeTol &gTol=FMGeGbl::gTol)=0
 
virtual void mergeSegments (int iMergeFlags=0, const OdGeTol &gTol=FMGeGbl::gTol)=0
 
virtual Result explodeTo (IContour2D &rDestCont, const DeviationParams &devDeviation, OdIntPtr uArcMetadata=0) const =0
 
virtual OdUInt32 createVertexAt (double dParam, const OdGeTol &gTol=FMGeGbl::gTol)=0
 
virtual Result createVerticesAt (const std::vector< double > &vecParams, const OdGeTol &gTol=FMGeGbl::gTol)=0
 
virtual Result getSubContour (double dStartParam, double dEndParam, IContour2D &rSubContour, const OdGeTol &gTol=FMGeGbl::gTol) const =0
 
virtual Result appendSubContourTo (double dStartParam, double dEndParam, IContour2D &rSubContour, const OdGeTol &gTol=FMGeGbl::gTol) const =0
 
virtual Result replaceSubContourTo (IContour2D &rDest, const IContour2D &rSubContour, const OdGeTol &gTol=FMGeGbl::gTol) const =0
 

Static Public Member Functions

static IContour2Dcreate (ContourImplClass eClass, const IContour2D *pSrcContour=0)
 

Detailed Description

Definition at line 37 of file FM_IContour2D.h.

Constructor & Destructor Documentation

◆ ~IContour2D()

virtual FacetModeler::IContour2D::~IContour2D ( )
inlinevirtual

Definition at line 41 of file FM_IContour2D.h.

Member Function Documentation

◆ addExtents()

virtual Result FacetModeler::IContour2D::addExtents ( OdGeExtents2d geExtents) const
pure virtual

◆ addVertexAt()

virtual Result FacetModeler::IContour2D::addVertexAt ( OdUInt32  iIndex,
const OdGePoint2d ptStart,
double  dBulge = 0.0,
const Attributes2D rAttr = Attributes2D::kNull 
)
pure virtual

◆ appendContour()

virtual Result FacetModeler::IContour2D::appendContour ( const IContour2D rCont,
bool  bCloseGap = false,
double  dMaxGap = 1e99 
)
pure virtual

◆ appendSegment() [1/2]

virtual Result FacetModeler::IContour2D::appendSegment ( const IBulgeSeg2D rSeg,
bool  bShiftToHit = false,
const OdGeTol gTol = FMGeGbl::gTol 
)
pure virtual

◆ appendSegment() [2/2]

virtual Result FacetModeler::IContour2D::appendSegment ( double  dBulge,
const OdGePoint2d ptNewEnd,
const Attributes2D rAttr = Attributes2D::kNull 
)
pure virtual

◆ appendSubContourTo()

virtual Result FacetModeler::IContour2D::appendSubContourTo ( double  dStartParam,
double  dEndParam,
IContour2D rSubContour,
const OdGeTol gTol = FMGeGbl::gTol 
) const
pure virtual

◆ appendVertex()

virtual Result FacetModeler::IContour2D::appendVertex ( const OdGePoint2d ptStart,
double  dBulge = 0.0,
const Attributes2D rAttr = Attributes2D::kNull 
)
pure virtual

◆ appendVertices()

virtual Result FacetModeler::IContour2D::appendVertices ( const OdGePoint2dArray vecSource)
pure virtual

◆ area()

double FacetModeler::IContour2D::area ( ) const
inline

Definition at line 302 of file FM_IContour2D.h.

◆ areEqualDists()

virtual bool FacetModeler::IContour2D::areEqualDists ( double  dDist1,
double  dDist2,
const double  dTol = FMGeGbl::gTol.equalPoint() 
) const
pure virtual

◆ areEqualParams()

virtual bool FacetModeler::IContour2D::areEqualParams ( double  dParam1,
double  dParam2,
const double  dParamTol = 1e-10 
) const
pure virtual

◆ attributes4UAt()

virtual Attributes2D& FacetModeler::IContour2D::attributes4UAt ( OdUInt32  iIndex)
pure virtual

◆ attributesAt()

virtual const Attributes2D& FacetModeler::IContour2D::attributesAt ( OdUInt32  iIndex) const
pure virtual

◆ clone()

virtual IContour2D* FacetModeler::IContour2D::clone ( ) const
pure virtual

◆ contains()

virtual bool FacetModeler::IContour2D::contains ( const OdGePoint2d rPoint,
bool *  pbOnBorder = 0,
const OdGeTol gTol = FMGeGbl::gTol 
) const
pure virtual

◆ create()

static IContour2D* FacetModeler::IContour2D::create ( ContourImplClass  eClass,
const IContour2D pSrcContour = 0 
)
static

◆ createVertexAt()

virtual OdUInt32 FacetModeler::IContour2D::createVertexAt ( double  dParam,
const OdGeTol gTol = FMGeGbl::gTol 
)
pure virtual

◆ createVerticesAt()

virtual Result FacetModeler::IContour2D::createVerticesAt ( const std::vector< double > &  vecParams,
const OdGeTol gTol = FMGeGbl::gTol 
)
pure virtual

◆ deleteCoincident()

virtual void FacetModeler::IContour2D::deleteCoincident ( const OdGeTol gTol = FMGeGbl::gTol)
pure virtual

◆ endParam()

double FacetModeler::IContour2D::endParam ( ) const
inline

Definition at line 220 of file FM_IContour2D.h.

◆ explodeTo()

virtual Result FacetModeler::IContour2D::explodeTo ( IContour2D rDestCont,
const DeviationParams devDeviation,
OdIntPtr  uArcMetadata = 0 
) const
pure virtual

◆ getArcSegAt()

virtual Result FacetModeler::IContour2D::getArcSegAt ( OdUInt32  iIndex,
OdGeCircArc2d geArc 
) const
pure virtual

◆ getBulgeAt()

virtual Result FacetModeler::IContour2D::getBulgeAt ( OdUInt32  iIndex,
double &  dBulge 
) const
pure virtual

◆ getDistAtParam()

virtual Result FacetModeler::IContour2D::getDistAtParam ( double  dParam,
double &  dDist 
) const
pure virtual

◆ getEndPoint()

virtual Result FacetModeler::IContour2D::getEndPoint ( OdGePoint2d ptPoint) const
pure virtual

◆ getInternalAngleAt()

virtual Result FacetModeler::IContour2D::getInternalAngleAt ( OdUInt32  iIndex,
double &  dAngle 
) const
pure virtual

◆ getInternalPoint()

virtual Result FacetModeler::IContour2D::getInternalPoint ( OdGePoint2d rPoint,
const OdGeTol gTol = FMGeGbl::gTol 
) const
pure virtual

◆ getLineSegAt()

virtual Result FacetModeler::IContour2D::getLineSegAt ( OdUInt32  iIndex,
OdGeLineSeg2d geLine 
) const
pure virtual

◆ getNormalizedDist()

virtual Result FacetModeler::IContour2D::getNormalizedDist ( double &  dDist) const
pure virtual

◆ getNormalizedParam()

virtual Result FacetModeler::IContour2D::getNormalizedParam ( double &  dParam) const
pure virtual

◆ getParamAtDist()

virtual Result FacetModeler::IContour2D::getParamAtDist ( double  dDist,
double &  dParam 
) const
pure virtual

◆ getPoint()

virtual Result FacetModeler::IContour2D::getPoint ( double  dParam,
OdGePoint2d ptPoint 
) const
pure virtual

◆ getPointAt()

virtual Result FacetModeler::IContour2D::getPointAt ( OdUInt32  iIndex,
OdGePoint2d ptPoint 
) const
pure virtual

◆ getPointAtDist()

virtual Result FacetModeler::IContour2D::getPointAtDist ( double  dDist,
OdGePoint2d ptPoint 
) const
pure virtual

◆ getSegmentAt() [1/2]

virtual Result FacetModeler::IContour2D::getSegmentAt ( OdUInt32  iIndex,
IBulgeSeg2D rSegment 
) const
pure virtual

◆ getSegmentAt() [2/2]

virtual Result FacetModeler::IContour2D::getSegmentAt ( OdUInt32  iIndex,
OdGePoint2d ptStart,
OdGePoint2d ptEnd,
double &  dBulge 
) const
pure virtual

◆ getStartPoint()

virtual Result FacetModeler::IContour2D::getStartPoint ( OdGePoint2d ptPoint) const
pure virtual

◆ getSubContour()

virtual Result FacetModeler::IContour2D::getSubContour ( double  dStartParam,
double  dEndParam,
IContour2D rSubContour,
const OdGeTol gTol = FMGeGbl::gTol 
) const
pure virtual

◆ getTangent()

virtual Result FacetModeler::IContour2D::getTangent ( double  dParam,
OdGeVector2d vTangent 
) const
pure virtual

◆ getVertexAt()

virtual Result FacetModeler::IContour2D::getVertexAt ( OdUInt32  iIndex,
OdGePoint2d pptPoint,
double *  pdBulge = 0,
Attributes2D pAttr = 0 
) const
pure virtual

◆ hasArcs()

virtual bool FacetModeler::IContour2D::hasArcs ( ) const
pure virtual

◆ implClass()

virtual ContourImplClass FacetModeler::IContour2D::implClass ( ) const
pure virtual

◆ intersect() [1/2]

virtual OdUInt32 FacetModeler::IContour2D::intersect ( const IBulgeSeg2D rSegB,
std::vector< Intersection > &  vecPoints,
const OdGeTol gTol = FMGeGbl::gTol 
) const
pure virtual

◆ intersect() [2/2]

virtual OdUInt32 FacetModeler::IContour2D::intersect ( const IContour2D rContB,
std::vector< Intersection > &  vecPoints,
const OdGeTol gTol = FMGeGbl::gTol 
) const
pure virtual

◆ intersectLine()

virtual OdUInt32 FacetModeler::IContour2D::intersectLine ( const OdGePoint2d ptLineOrigin,
const OdGeVector2d vLineDir,
std::vector< Intersection > &  vecPoints,
const OdGeTol gTol = FMGeGbl::gTol 
) const
pure virtual

◆ isCCW()

bool FacetModeler::IContour2D::isCCW ( ) const
inline

Definition at line 304 of file FM_IContour2D.h.

◆ isClosed()

virtual bool FacetModeler::IContour2D::isClosed ( ) const
pure virtual

◆ isConvex()

virtual bool FacetModeler::IContour2D::isConvex ( ) const
pure virtual

◆ isEmpty()

virtual bool FacetModeler::IContour2D::isEmpty ( ) const
pure virtual

◆ isInsideContour()

virtual bool FacetModeler::IContour2D::isInsideContour ( const IContour2D c2dOuter,
bool  fAllowBordersTouch = false,
const OdGeTol gTol = FMGeGbl::gTol 
) const
pure virtual

◆ isOn()

virtual bool FacetModeler::IContour2D::isOn ( const OdGePoint2d ptTest,
double *  pdParam = 0,
const OdGeTol gTol = FMGeGbl::gTol 
) const
pure virtual

◆ isSelfIntersecting()

virtual bool FacetModeler::IContour2D::isSelfIntersecting ( const OdGeTol gTol = FMGeGbl::gTol,
bool  bExcludeTouch = false 
) const
pure virtual

◆ isValidRegion()

virtual bool FacetModeler::IContour2D::isValidRegion ( const OdGeTol gTol = FMGeGbl::gTol) const
pure virtual

◆ length()

virtual double FacetModeler::IContour2D::length ( ) const
pure virtual

◆ mergeSegments()

virtual void FacetModeler::IContour2D::mergeSegments ( int  iMergeFlags = 0,
const OdGeTol gTol = FMGeGbl::gTol 
)
pure virtual

◆ metadataAt()

virtual OdIntPtr FacetModeler::IContour2D::metadataAt ( OdUInt32  iIndex) const
pure virtual

◆ nearestParam()

virtual double FacetModeler::IContour2D::nearestParam ( const OdGePoint2d ptTest,
OdGePoint2d ptNearest = 0 
) const
pure virtual

◆ numSegments()

virtual OdUInt32 FacetModeler::IContour2D::numSegments ( ) const
pure virtual

◆ numVerts()

virtual OdUInt32 FacetModeler::IContour2D::numVerts ( ) const
pure virtual

◆ removeVertexAt()

virtual Result FacetModeler::IContour2D::removeVertexAt ( OdUInt32  iIndex)
pure virtual

◆ replaceSubContourTo()

virtual Result FacetModeler::IContour2D::replaceSubContourTo ( IContour2D rDest,
const IContour2D rSubContour,
const OdGeTol gTol = FMGeGbl::gTol 
) const
pure virtual

◆ reserveVertices()

virtual void FacetModeler::IContour2D::reserveVertices ( OdUInt32  iReservedSize)
pure virtual

◆ reset()

virtual void FacetModeler::IContour2D::reset ( )
pure virtual

◆ reverse()

virtual void FacetModeler::IContour2D::reverse ( )
pure virtual

◆ segmentType()

virtual SegmentType FacetModeler::IContour2D::segmentType ( OdUInt32  iIndex) const
pure virtual

◆ set()

virtual void FacetModeler::IContour2D::set ( const IContour2D rSrcCont)
pure virtual

◆ setAttributesAt()

virtual Result FacetModeler::IContour2D::setAttributesAt ( OdUInt32  iIndex,
const Attributes2D rAttr 
)
pure virtual

◆ setBulgeAt()

virtual Result FacetModeler::IContour2D::setBulgeAt ( OdUInt32  iIndex,
double  dBulge 
)
pure virtual

◆ setClosed()

virtual void FacetModeler::IContour2D::setClosed ( bool  bClosed = true)
pure virtual

◆ setClosedIfEndsAreEqual()

virtual bool FacetModeler::IContour2D::setClosedIfEndsAreEqual ( const OdGeTol gTol = FMGeGbl::gTol)
pure virtual

◆ setMetadataAt()

virtual Result FacetModeler::IContour2D::setMetadataAt ( OdUInt32  iIndex,
OdIntPtr  uNewData 
)
pure virtual

◆ setPointAt()

virtual Result FacetModeler::IContour2D::setPointAt ( OdUInt32  iIndex,
const OdGePoint2d ptPoint 
)
pure virtual

◆ setVertexAt()

virtual Result FacetModeler::IContour2D::setVertexAt ( OdUInt32  iIndex,
const OdGePoint2d ptPoint,
double  dBulge 
)
pure virtual

◆ signedArea()

virtual double FacetModeler::IContour2D::signedArea ( ) const
pure virtual

◆ signedMinDist()

virtual double FacetModeler::IContour2D::signedMinDist ( double  dDist1,
double  dDist2 
) const
pure virtual

◆ signedMinDistByParams()

virtual double FacetModeler::IContour2D::signedMinDistByParams ( double  dParam1,
double  dParam2 
) const
pure virtual

◆ startParam()

double FacetModeler::IContour2D::startParam ( ) const
inline

Definition at line 218 of file FM_IContour2D.h.

◆ transformBy()

virtual Result FacetModeler::IContour2D::transformBy ( const OdGeMatrix2d geMatrix,
const DeviationParams devDeviation = FMGeGbl::gDefDev 
)
pure virtual

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