CFx SDK Documentation  2023 SP0
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
AECGeCompCurve2d Class Reference

#include <AECGeCompCurve2d.h>

Inheritance diagram for AECGeCompCurve2d:
AECImpObj OdRxObjectImpl< OdRxObject, AECImpObj > OdRxObject AECGePolyline2d AECGeRing AECGeSlabLoop

Classes

struct  SCompCurve2dVertex
 DOM. More...
 

Public Member Functions

bool IsClosed () const
 
void SetClosed (bool bClosed)
 
OdUInt32 GetVertexCount () const
 
OdUInt32 GetSegmentCount () const
 
virtual bool GetVertexByIndex (OdUInt32 iIndex, OdGePoint2d &ptVertex, double &dBulge) const
 
virtual bool GetSegmentByIndex (OdUInt32 iIndex, OdGePoint2d &ptVertex1, OdGePoint2d &ptVertex2, double &dBulge) const
 
AECGeSegment2dPtr GetSegmentByIndex (OdUInt32 iIndex) const
 
AECImpArrayPtr GetSegments ()
 
void Init (const OdGeSegmentChain2d &rPolyline, const OdRxClass *pSegmentType=0)
 
void Init (const FacetModeler::Contour2D &rContour, const OdRxClass *pSegmentType=0)
 
void SetDefaultSegmentType (const OdRxClass *pSegmentType)
 
void GetRawContour (FacetModeler::Contour2D &rContour) const
 
AECAttributeSubPtr GetAttribute () const
 
void SetAttribute (AECAttribute *pAttr)
 
void Translate (const OdGeVector2d &v)
 
- Public Member Functions inherited from AECImpObj
const OdStringGetDescription () const
 
void SetDescription (const OdString &strDescription)
 
virtual void onObjectLoaded ()
 
virtual void SubClose ()
 DOM. More...
 
OdRxObjectGetOwner () const
 
OdRxObjectGetOwner (OdRxClass *pClass) const
 
void addRefSubPtr ()
 
void releaseSubPtr ()
 
void assertReadEnabled () const
 
void assertWriteEnabled (bool autoUndo=true, bool recordModified=true)
 
bool isReadEnabled () const
 
bool isWriteEnabled () const
 
OdDbDatabasedatabase () const
 
void copyFrom (const OdRxObject *pOther)
 
virtual OdUInt16 minSupportedVersion () const
 
void SetOwner (OdDbObject *pOwner)
 DOM. More...
 
void SetOwner (AECImpObj *pOwner)
 DOM. More...
 
class AECSIBase * GetImpl () const
 DOM. More...
 
virtual OdResult dwgInFieldsEx20 (AECDbDwgFiler *pFiler)
 DOM. More...
 
virtual OdResult dwgInFieldsEx1 (AECDbDwgFiler *pFiler)
 DOM. More...
 
- Public Member Functions inherited from OdRxObjectImpl< OdRxObject, AECImpObj >
 OdRxObjectImpl ()
 
void addRef ()
 
void release ()
 
long numRefs () const
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Static Public Member Functions

static AECGeCompCurve2dPtr Create (const OdGeSegmentChain2d &rPolyline, const OdRxClass *pSegmentType=0)
 
static AECGeCompCurve2dPtr Create (const FacetModeler::Contour2D &rContour, const OdRxClass *pSegmentType=0)
 
- Static Public Member Functions inherited from OdRxObjectImpl< OdRxObject, AECImpObj >
static OdSmartPtr< AECImpObjcreateObject ()
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Protected Member Functions

void regenDwgData ()
 DOM. More...
 
void regenDxfData ()
 DOM. More...
 
virtual void InitSegmentsImpl (const FacetModeler::Contour2D &rContour, const AECGeInitSegments &rSegSource, const OdRxClass *pSegmentType=0)
 DOM. More...
 
virtual OdUInt32 GetRawContourImpl (FacetModeler::Contour2D &rContour, OdUInt32 uSegmentKey=0) const
 DOM. More...
 
virtual void CopyDataFrom (const AECGeCompCurve2d *pSource)
 DOM. More...
 
bool IsCacheInvalid () const
 
void SetCacheInvalid (bool bInvalid)
 
- Protected Member Functions inherited from OdRxObjectImpl< OdRxObject, AECImpObj >
 ODRX_HEAP_OPERATORS ()
 

Protected Attributes

AECImpArray m_aSegments
 
OdUInt16 m_nFlags
 
bool m_bClosed
 
std::vector< SCompCurve2dVertexm_aVertices
 
double m_dLastVertexX
 
double m_dLastVertexY
 
AECAttributePtr m_pAttribute
 
const OdRxClassm_pDefaultSegmentType
 
- Protected Attributes inherited from AECImpObj
class AECSIBase * m_pImp
 DOM. More...
 
OdUInt16 m_iMinSupportedVersion
 

Friends

class AECGeProfile
 

Detailed Description

AEC 2D Curve.

Remarks
Contains linear or circular segments only.

<group TA_API_Subobjects_Ge>

Definition at line 52 of file AECGeCompCurve2d.h.

Member Function Documentation

◆ CopyDataFrom()

virtual void AECGeCompCurve2d::CopyDataFrom ( const AECGeCompCurve2d pSource)
protectedvirtual

DOM.

Reimplemented in AECGeSlabLoop.

◆ Create() [1/2]

static AECGeCompCurve2dPtr AECGeCompCurve2d::Create ( const FacetModeler::Contour2D rContour,
const OdRxClass pSegmentType = 0 
)
static

Creates AEC Complex Curve.

◆ Create() [2/2]

static AECGeCompCurve2dPtr AECGeCompCurve2d::Create ( const OdGeSegmentChain2d rPolyline,
const OdRxClass pSegmentType = 0 
)
static

Creates AEC Complex Curve.

Parameters
cPolyline2d[in] - geometry representation of the curve.
pSegmentType[in] - segment type.
Remarks
This method always create either the instance of AECGeCompCurve2d or AECGeRing sub-object. If you want to create inherited sub-object you should create it and then call Init method.

◆ GetAttribute()

AECAttributeSubPtr AECGeCompCurve2d::GetAttribute ( ) const

Returns attached attribute.

◆ GetRawContour()

void AECGeCompCurve2d::GetRawContour ( FacetModeler::Contour2D rContour) const

Returns raw contour.

◆ GetRawContourImpl()

virtual OdUInt32 AECGeCompCurve2d::GetRawContourImpl ( FacetModeler::Contour2D rContour,
OdUInt32  uSegmentKey = 0 
) const
protectedvirtual

DOM.

◆ GetSegmentByIndex() [1/2]

AECGeSegment2dPtr AECGeCompCurve2d::GetSegmentByIndex ( OdUInt32  iIndex) const

Returns segment by index.

Returns
Throws eInvalidIndex exception in case of invalid index.

◆ GetSegmentByIndex() [2/2]

virtual bool AECGeCompCurve2d::GetSegmentByIndex ( OdUInt32  iIndex,
OdGePoint2d ptVertex1,
OdGePoint2d ptVertex2,
double &  dBulge 
) const
virtual

Returns segment by index.

Parameters
iIndex[in] - segment index
ptVertex1[out] - the location of start vertex
ptVertex2[out] - the location of end vertex
dBulge[out] - bulge for this segment
Returns
True if the segment coming from the vertex is linear.

Throws eInvalidIndex exception in case of invalid index.

◆ GetSegmentCount()

OdUInt32 AECGeCompCurve2d::GetSegmentCount ( ) const

Returns the number of vertices in curve.

◆ GetSegments()

AECImpArrayPtr AECGeCompCurve2d::GetSegments ( )

Returns array of segments.

◆ GetVertexByIndex()

virtual bool AECGeCompCurve2d::GetVertexByIndex ( OdUInt32  iIndex,
OdGePoint2d ptVertex,
double &  dBulge 
) const
virtual

Returns vertex by index.

Parameters
iIndex[in] - vertex index
ptVertex[out] - the location of the vertex
dBulge[out] - bulge for the segment coming from the vertex
Returns
True if the segment coming from the vertex is linear.

Throws eInvalidIndex exception in case of invalid index.

◆ GetVertexCount()

OdUInt32 AECGeCompCurve2d::GetVertexCount ( ) const

Returns the number of vertices in curve.

◆ Init() [1/2]

void AECGeCompCurve2d::Init ( const FacetModeler::Contour2D rContour,
const OdRxClass pSegmentType = 0 
)

Creates AEC Complex Curve.

◆ Init() [2/2]

void AECGeCompCurve2d::Init ( const OdGeSegmentChain2d rPolyline,
const OdRxClass pSegmentType = 0 
)

Creates AEC Complex Curve.

◆ InitSegmentsImpl()

virtual void AECGeCompCurve2d::InitSegmentsImpl ( const FacetModeler::Contour2D rContour,
const AECGeInitSegments &  rSegSource,
const OdRxClass pSegmentType = 0 
)
protectedvirtual

DOM.

◆ IsCacheInvalid()

bool AECGeCompCurve2d::IsCacheInvalid ( ) const
inlineprotected

Cache invalidation. If true should be updated next when time is asked for.

Definition at line 208 of file AECGeCompCurve2d.h.

◆ IsClosed()

bool AECGeCompCurve2d::IsClosed ( ) const

Returns whether the curve is closed.

◆ regenDwgData()

void AECGeCompCurve2d::regenDwgData ( )
protected

DOM.

◆ regenDxfData()

void AECGeCompCurve2d::regenDxfData ( )
protected

DOM.

◆ SetAttribute()

void AECGeCompCurve2d::SetAttribute ( AECAttribute pAttr)

Attaches attribute.

◆ SetCacheInvalid()

void AECGeCompCurve2d::SetCacheInvalid ( bool  bInvalid)
inlineprotected

Cache invalidation.

Definition at line 215 of file AECGeCompCurve2d.h.

◆ SetClosed()

void AECGeCompCurve2d::SetClosed ( bool  bClosed)

Sets whether the curve is closed.

◆ SetDefaultSegmentType()

void AECGeCompCurve2d::SetDefaultSegmentType ( const OdRxClass pSegmentType)

Sets default segment type for Init methods

◆ Translate()

void AECGeCompCurve2d::Translate ( const OdGeVector2d v)

Translates profile.

Friends And Related Function Documentation

◆ AECGeProfile

friend class AECGeProfile
friend

Definition at line 189 of file AECGeCompCurve2d.h.

Member Data Documentation

◆ m_aSegments

AECImpArray AECGeCompCurve2d::m_aSegments
protected

Definition at line 244 of file AECGeCompCurve2d.h.

◆ m_aVertices

std::vector<SCompCurve2dVertex> AECGeCompCurve2d::m_aVertices
protected

Definition at line 256 of file AECGeCompCurve2d.h.

◆ m_bClosed

bool AECGeCompCurve2d::m_bClosed
protected

Definition at line 250 of file AECGeCompCurve2d.h.

◆ m_dLastVertexX

double AECGeCompCurve2d::m_dLastVertexX
protected

Definition at line 259 of file AECGeCompCurve2d.h.

◆ m_dLastVertexY

double AECGeCompCurve2d::m_dLastVertexY
protected

Definition at line 262 of file AECGeCompCurve2d.h.

◆ m_nFlags

OdUInt16 AECGeCompCurve2d::m_nFlags
protected

Definition at line 247 of file AECGeCompCurve2d.h.

◆ m_pAttribute

AECAttributePtr AECGeCompCurve2d::m_pAttribute
protected

Definition at line 265 of file AECGeCompCurve2d.h.

◆ m_pDefaultSegmentType

const OdRxClass* AECGeCompCurve2d::m_pDefaultSegmentType
protected

Definition at line 268 of file AECGeCompCurve2d.h.


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