CFx SDK Documentation  2022 SP0
Public Types | Public Member Functions | List of all members
OdGiPolyline Class Referenceabstract

#include <GiPolyline.h>

Inheritance diagram for OdGiPolyline:
OdRxObject

Public Types

enum  SegType {
  kLine , kArc , kCoincident , kPoint ,
  kEmpty
}
 

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGiPolyline)
 
virtual unsigned int numVerts () const =0
 
virtual bool isClosed () const =0
 
virtual OdGeVector3d normal () const =0
 
virtual double thickness () const =0
 
virtual double getConstantWidth () const =0
 
virtual bool hasWidth () const =0
 
virtual bool hasPlinegen () const =0
 
virtual double elevation () const =0
 
virtual SegType segType (unsigned int index) const =0
 
virtual void getLineSegAt (unsigned int index, OdGeLineSeg2d &ln) const =0
 
virtual void getLineSegAt (unsigned int index, OdGeLineSeg3d &ln) const =0
 
virtual void getArcSegAt (unsigned int index, OdGeCircArc2d &arc) const =0
 
virtual void getArcSegAt (unsigned int index, OdGeCircArc3d &arc) const =0
 
virtual void getPointAt (unsigned int index, OdGePoint2d &pt) const =0
 
virtual double getBulgeAt (unsigned int index) const =0
 
virtual void getWidthsAt (unsigned int index, double &startWidth, double &endWidth) const =0
 
virtual OdRxObjectPtr getDbPolyline () const =0
 
- 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
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

This class implements the OdGi equivalent of an OdDbPolyline or "lightweight" polyline.

Remarks
Instances of this class are used to pass lightweight polyline data through the Teigha vectorization framework.

<group OdGi_Classes>

Definition at line 48 of file GiPolyline.h.

Member Enumeration Documentation

◆ SegType

Enumerator
kLine 
kArc 
kCoincident 
kPoint 
kEmpty 

Definition at line 53 of file GiPolyline.h.

Member Function Documentation

◆ elevation()

virtual double OdGiPolyline::elevation ( ) const
pure virtual

Returns the elevation for this entity.

◆ getArcSegAt() [1/2]

virtual void OdGiPolyline::getArcSegAt ( unsigned int  index,
OdGeCircArc2d arc 
) const
pure virtual

Returns the arc segment starting at the specified index.

◆ getArcSegAt() [2/2]

virtual void OdGiPolyline::getArcSegAt ( unsigned int  index,
OdGeCircArc3d arc 
) const
pure virtual

Returns the arc segment starting at the specified index.

◆ getBulgeAt()

virtual double OdGiPolyline::getBulgeAt ( unsigned int  index) const
pure virtual

Returns the bulge value for a specified point.

◆ getConstantWidth()

virtual double OdGiPolyline::getConstantWidth ( ) const
pure virtual

Returns the constant width for this entity.

◆ getDbPolyline()

virtual OdRxObjectPtr OdGiPolyline::getDbPolyline ( ) const
pure virtual

Returns the original OdDbPolyline object from which this OdGiPolyline was created.

◆ getLineSegAt() [1/2]

virtual void OdGiPolyline::getLineSegAt ( unsigned int  index,
OdGeLineSeg2d ln 
) const
pure virtual

Returns the line segment starting at the specified index.

◆ getLineSegAt() [2/2]

virtual void OdGiPolyline::getLineSegAt ( unsigned int  index,
OdGeLineSeg3d ln 
) const
pure virtual

Returns the line segment starting at the specified index.

◆ getPointAt()

virtual void OdGiPolyline::getPointAt ( unsigned int  index,
OdGePoint2d pt 
) const
pure virtual

Returns a specified point from this entity.

◆ getWidthsAt()

virtual void OdGiPolyline::getWidthsAt ( unsigned int  index,
double &  startWidth,
double &  endWidth 
) const
pure virtual

Returns the start and end widths for a specified point.

◆ hasPlinegen()

virtual bool OdGiPolyline::hasPlinegen ( ) const
pure virtual

Returns the PLINEGEN flag for this entity. If PLINEGEN is true, linetype generation will be patterned across the entire polyline, rather than being done for each segment individually.

◆ hasWidth()

virtual bool OdGiPolyline::hasWidth ( ) const
pure virtual

Returns true if the vertices in this entity contain start and end width data, false otherwise.

◆ isClosed()

virtual bool OdGiPolyline::isClosed ( ) const
pure virtual

Returns true if this polyline is closed, false otherwise.

◆ normal()

virtual OdGeVector3d OdGiPolyline::normal ( ) const
pure virtual

Returns the normal vector for this entity.

◆ numVerts()

virtual unsigned int OdGiPolyline::numVerts ( ) const
pure virtual

Returns the number of vertices in the entity.

◆ ODRX_DECLARE_MEMBERS()

OdGiPolyline::ODRX_DECLARE_MEMBERS ( OdGiPolyline  )

◆ segType()

virtual SegType OdGiPolyline::segType ( unsigned int  index) const
pure virtual

Returns the segment type at the specified index.

See also
SegType

◆ thickness()

virtual double OdGiPolyline::thickness ( ) const
pure virtual

Returns the thickness for this entity.


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