CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
23 #ifndef __FMIMP_CACHED_CONTOUR2D_H__
24 #define __FMIMP_CACHED_CONTOUR2D_H__
80 mutable double m_dStartLength;
86 : m_dBulge(0), m_dStartLength(0) { }
89 : m_ptStart(rPt), m_dBulge(dBulge), m_dStartLength(0) { }
92 : m_ptStart(rPt), m_dBulge(dBulge), m_dStartLength(0), m_Attr(rAttr) { }
97 inline const double &
bulge()
const {
return m_dBulge; };
98 inline double &
bulge() {
return m_dBulge; };
118 : m_pVertex(&rVData), m_pEndPt( &rPt ) { };
121 { m_pVertex = &rVData; m_pEndPt = &rPt; };
213 double & dStartAngle,
double & dInclAngle )
const;
280 inline bool _closed()
const {
return m_bClosed; };
296 return m_vecVertices[iIndex];
305 return m_vecVertices[iIndex];
365 double _updateCacheArea()
const;
367 bool _updateCacheConvex()
const;
374 #endif //__FMIMP_CACHED_CONTOUR2D_H__
Attributes2D & attributes() const
static FMGEOMETRY_API_STATIC OdGeTol gTol
Result _getSegment(OdUInt32 iIndex, ImplSeg2D &rSeg) const
double & startLength() const
void _UpdateCache() const
virtual const OdGePoint2d & endPt() const
virtual double signedArea() const
Result _removeVertices(OdUInt32 iIndex, OdUInt32 iCount=1)
Attributes2D & _attr() const
const OdGePoint2d & _startPt() const
virtual Result getParamAtDist(double dDist, double &dParam) const
virtual double dirLength() const
SegmentType _type() const
const VertexData & _vertex(OdUInt32 iIndex) const
virtual Attributes2D & attributes4U()
OdUInt32 _numVerts() const
void _resize(OdUInt32 iNewVertNum)
OdGePoint2d m_ptArcCenter
ImplSeg2D(const VertexData &rVData, const OdGePoint2d &rPt)
SegmentCacheData & cache() const
void _setClosed(bool bClosed)
CachedContour2DImplData()
ContourImplClass _implClass() const
double _startLength() const
virtual SegmentImplClass implClass() const
void _reset(OdUInt32 iVertexCount=0, bool bClosed=false)
VertexData(const OdGePoint2d &rPt, double dBulge, const Attributes2D &rAttr)
virtual double arcAngle() const
virtual double deviation() const
double _arcStartAngle() const
void set(const VertexData &rVData, const OdGePoint2d &rPt)
void _resetCache(OdUInt32 iFirstVertex=0, OdUInt32 iNumVerts=OdUInt32(-1), bool bStepBack=true)
virtual IContour2D * clone() const
virtual SegmentType type() const
const OdGePoint2d & point() const
virtual ~CachedContour2DImplData()
const OdGePoint2d & _endPt() const
virtual OdGePoint2d arcCenter() const
virtual double bulge() const
void _reserveVertices(OdUInt32 iReservedSize)
virtual double arcRadius() const
Result _insertVerticesAt(OdUInt32 iIndex, OdUInt32 iCount, const OdGePoint2d *paPoints, const double *paBulges=0, const Attributes2D *pAttrs=0)
virtual Result addExtents(OdGeExtents2d &geExtents) const
virtual double length() const
double _updateCacheLengths() const
virtual bool isConvex() const
virtual Result getDistAtParam(double dParam, double &dDist) const
double _arcRadius() const
virtual void getDir(OdGeVector2d &vDir) const
Result _normalizeIndex(OdUInt32 &iVertIndex) const
void _setModifiedSegs(OdUInt32 iFirst, OdUInt32 iCount=1)
virtual double arcStartAngle() const
virtual const Attributes2D & attributes() const
virtual Result set(const OdGePoint2d &ptA, const OdGePoint2d &ptB, double dBulge, const Attributes2D &rAttr)
void _setModifiedVerts(OdUInt32 iFirst, OdUInt32 iCount=1)
virtual const OdGePoint2d & startPt() const
OdUInt32 _numSegments() const
VertexData(const OdGePoint2d &rPt, double dBulge=0.0)
const double & bulge() const
virtual Result getArcData(OdGePoint2d &ptCenter, double &dRadius, double &dStartAngle, double &dInclAngle) const
VertexData & _vertex(OdUInt32 iIndex)
SegmentCacheData & _cache() const
virtual double length() const
virtual Result getCircleData(OdGePoint2d &ptCenter, double &dRadius) const
const OdGePoint2d & _arcCenter() const
virtual bool contains(const OdGePoint2d &rPoint, bool *pbOnBorder=0, const OdGeTol &gTol=FMGeGbl::gTol) const