#include <GiPolyline.h>
This class implements the OdGi equivalent of an OdDbPolyline or "lightweight" polyline.
<group OdGi_Classes>
Definition at line 49 of file GiPolyline.h.
◆ SegType
Represents segment types.
Enumerator |
---|
kLine | |
kArc | |
kCoincident | |
kPoint | |
kEmpty | |
Definition at line 57 of file GiPolyline.h.
◆ elevation()
virtual double OdGiPolyline::elevation |
( |
| ) |
const |
|
pure virtual |
Retrieves the elevation for this entity.
- Returns
- an elevation as a value of the double type.
◆ getArcSegAt() [1/2]
virtual void OdGiPolyline::getArcSegAt |
( |
unsigned int |
index, |
|
|
OdGeCircArc2d & |
arc |
|
) |
| const |
|
pure virtual |
Retrieves the arc segment starting at the specified index.
- Parameters
-
index | [in] Segment index. |
arc | [out] 2D arc segment to get. |
◆ getArcSegAt() [2/2]
virtual void OdGiPolyline::getArcSegAt |
( |
unsigned int |
index, |
|
|
OdGeCircArc3d & |
arc |
|
) |
| const |
|
pure virtual |
Retrieves the arc segment starting at the specified index.
- Parameters
-
index | [in] Segment index. |
arc | [out] 3D arc segment to get. |
◆ getBulgeAt()
virtual double OdGiPolyline::getBulgeAt |
( |
unsigned int |
index | ) |
const |
|
pure virtual |
Retrieves the bulge value for a specified point.
- Parameters
-
- Returns
- bulge as a value of the double type.
◆ getConstantWidth()
virtual double OdGiPolyline::getConstantWidth |
( |
| ) |
const |
|
pure virtual |
Retrieves the constant width for this entity.
- Returns
- constant width for this entity as a value of the double type.
◆ getDbPolyline()
◆ getLineSegAt() [1/2]
virtual void OdGiPolyline::getLineSegAt |
( |
unsigned int |
index, |
|
|
OdGeLineSeg2d & |
ln |
|
) |
| const |
|
pure virtual |
Retrieves the line segment starting at the specified index.
- Parameters
-
index | [in] Segment index. |
ln | [out] 2D line segment to get. |
◆ getLineSegAt() [2/2]
virtual void OdGiPolyline::getLineSegAt |
( |
unsigned int |
index, |
|
|
OdGeLineSeg3d & |
ln |
|
) |
| const |
|
pure virtual |
Retrieves the line segment starting at the specified index.
- Parameters
-
index | [in] Segment index. |
ln | [out] 3D line segment to get. |
◆ getPointAt()
virtual void OdGiPolyline::getPointAt |
( |
unsigned int |
index, |
|
|
OdGePoint2d & |
pt |
|
) |
| const |
|
pure virtual |
Retrieves a specified point from this entity.
- Parameters
-
index | [in] Segment index. |
arc | [out] 2D point to get. |
◆ getWidthsAt()
virtual void OdGiPolyline::getWidthsAt |
( |
unsigned int |
index, |
|
|
double & |
startWidth, |
|
|
double & |
endWidth |
|
) |
| const |
|
pure virtual |
Retrieves the start and end widths for a specified point.
- Parameters
-
index | [in] Segment index. |
startWidth | [out] Start width. |
endWidth | [out] End width. |
◆ hasPlinegen()
virtual bool OdGiPolyline::hasPlinegen |
( |
| ) |
const |
|
pure virtual |
Retrieves 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.
- Returns
- true if this entity has the PLINEGEN flag set to true, false otherwise.
◆ hasWidth()
virtual bool OdGiPolyline::hasWidth |
( |
| ) |
const |
|
pure virtual |
Checks whether this entity has width data.
- Returns
- true if the vertices in this entity contain start and end width data, false otherwise.
◆ isClosed()
virtual bool OdGiPolyline::isClosed |
( |
| ) |
const |
|
pure virtual |
Checks whether this polyline is closed.
- Returns
- true if polyline is closed, false otherwise
◆ normal()
Retrieves the normal vector for this entity.
- Returns
- normal to this entity.
◆ numVerts()
virtual unsigned int OdGiPolyline::numVerts |
( |
| ) |
const |
|
pure virtual |
Retrieves the number of vertices in the entity. returns quantity of vertices in the entity.
◆ ODRX_DECLARE_MEMBERS()
◆ segType()
virtual SegType OdGiPolyline::segType |
( |
unsigned int |
index | ) |
const |
|
pure virtual |
Retrieves the segment type at the specified index.
- Parameters
-
- Returns
- segment type as a value from the SegType enumeration.
◆ thickness()
virtual double OdGiPolyline::thickness |
( |
| ) |
const |
|
pure virtual |
Retrieves the thickness for this entity.
- Returns
- thickness as a value of the double type.
The documentation for this class was generated from the following file: