CFx SDK Documentation  2020SP3
Public Member Functions | List of all members
FacetModeler::CachedContour2DImpl Class Reference

#include <FMImpCachedContour2D.h>

Inheritance diagram for FacetModeler::CachedContour2DImpl:
FacetModeler::TContour2DImpl< CachedContour2DImplData > FacetModeler::IContour2D FacetModeler::CachedContour2DImplData

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from FacetModeler::TContour2DImpl< CachedContour2DImplData >
typedef TContourData::ImplSeg2D TImplSeg2D
 
typedef TContourData::VertexData TVertexData
 
- Static Public Member Functions inherited from FacetModeler::IContour2D
static IContour2Dcreate (ContourImplClass eClass, const IContour2D *pSrcContour=0)
 
- Protected Types inherited from FacetModeler::CachedContour2DImplData
enum  CacheStates {
  ecsNotValid = 0, ecsLengthsValid = 0x01, ecsAreaValid = 0x02, ecsExtentsValid = 0x04,
  ecsConvexValid = 0x08
}
 
- Protected Member Functions inherited from FacetModeler::TContour2DImpl< CachedContour2DImplData >
Result _param2IdxParam (double dParam, OdUInt32 &iIndex, double &dSegParam) const
 
Result _dist2IdxParam (double dDist, OdUInt32 &iIndex, double &dSegParam) const
 
Result _param2dist (double dParam, double &dDist) const
 
Result _normalizeParam (double &dParam) const
 
Result _createVerticesAt (OdUInt32 uCount, const double *pdParams, const OdGeTol &gTol)
 
Result _getSubSegment (OdUInt32 iIndex, double dStartOffs, double dEndOffs, IBulgeSeg2D &rDestSeg) const
 
Result _paramRange2IdxParams (const double dParamA, const double dParamB, OdUInt32 &uIdxA, double &dSegParamA, OdUInt32 &uIdxB, double &dSegParamB, OdUInt32 &iNumPeriodsAB, const double dParamTol=DBL_EPSILON) const
 
Result _appendSubContourTo (double dStartParam, double dEndParam, IContour2D &rSubContour, const OdGeTol &gTol) const
 
bool _isEqualToThis (const IContour2D &rC) const
 
- Protected Member Functions inherited from FacetModeler::CachedContour2DImplData
 CachedContour2DImplData ()
 
virtual ~CachedContour2DImplData ()
 
double _updateCacheLengths () const
 
void _resetCache (OdUInt32 iFirstVertex=0, OdUInt32 iNumVerts=OdUInt32(-1), bool bStepBack=true)
 
ContourImplClass _implClass () const
 
bool _closed () const
 
bool _empty () const
 
OdUInt32 _numVerts () const
 
OdUInt32 _numSegments () const
 
Result _getSegment (OdUInt32 iIndex, ImplSeg2D &rSeg) const
 
Result _normalizeIndex (OdUInt32 &iVertIndex) const
 
const VertexData_vertex (OdUInt32 iIndex) const
 
VertexData_vertex (OdUInt32 iIndex)
 
void _reset (OdUInt32 iVertexCount=0, bool bClosed=false)
 
void _resize (OdUInt32 iNewVertNum)
 
void _reserveVertices (OdUInt32 iReservedSize)
 
void _setClosed (bool bClosed)
 
void _setModifiedAll ()
 
void _setModifiedSegs (OdUInt32 iFirst, OdUInt32 iCount=1)
 
void _setModifiedVerts (OdUInt32 iFirst, OdUInt32 iCount=1)
 
Result _insertVerticesAt (OdUInt32 iIndex, OdUInt32 iCount, const OdGePoint2d *paPoints, const double *paBulges=0, const Attributes2D *pAttrs=0)
 
Result _removeVertices (OdUInt32 iIndex, OdUInt32 iCount=1)
 
- Protected Attributes inherited from FacetModeler::CachedContour2DImplData
OdUInt32 m_eCacheState
 
double m_dLength
 
double m_dSignedArea
 
OdGeExtents2d m_Extents
 
bool m_bConvex
 

Detailed Description

Definition at line 334 of file FMImpCachedContour2D.h.

Constructor & Destructor Documentation

◆ CachedContour2DImpl()

FacetModeler::CachedContour2DImpl::CachedContour2DImpl ( )
inline

Definition at line 337 of file FMImpCachedContour2D.h.

Member Function Documentation

◆ addExtents()

virtual Result FacetModeler::CachedContour2DImpl::addExtents ( OdGeExtents2d geExtents) const
virtual

◆ clone()

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

◆ contains()

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

◆ getDistAtParam()

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

◆ getParamAtDist()

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

◆ isConvex()

virtual bool FacetModeler::CachedContour2DImpl::isConvex ( ) const
virtual

◆ length()

virtual double FacetModeler::CachedContour2DImpl::length ( ) const
virtual

◆ signedArea()

virtual double FacetModeler::CachedContour2DImpl::signedArea ( ) const
virtual

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