API Reference > OdDb Classes > OdDbPolyline Class
OdDbPolyline Class
OdDbPolylineOdDbPolylineOdDbPolylineOdDbPolyline
Syntax
C++
class OdDbPolyline : public OdDbCurve;

DbPolyline.h

This class represents Lightweight Polyline entities in an OdDbDatabase instance.

The number of vertices in an OdDbPolyline must be at least two. Polylines with less than two vertices should not left in or added to the database. 

Since the nth Segment of a Polyline is the segment following the nth Vertex, the segment index and vertex index may be used interchangeably. 

 

TD_Db 

OdDbPolyline entities differ from OdDb2dPolyline entities as follows:

  • OdDbPolyline entities are stored as single objects, thereby improving performance and reducing overhead compared to OdDb2DPolyline objects.
  • Curve fitting and Spline fitting of OdDbPolyline entities are not supported.
 
Name 
Description 
 
This is OdDbPolyline, a member of class OdDbPolyline. 
 
Name 
Description 
 
This is record OdDbPolyline::SegType. 
 
Name 
Description 
 
Inserts a vertex into this Polyline entity at the specified index.
 
 
Fills this OdDbPolyline entity with data from the specified OdDb2dPolyline entity.
 
 
Fills the specified OdDb2dPolyline with data from this OdDbPolyline entity.
 
 
Reads the .dwg file data of this object.
 
 
This is DWGMAP_DECLARE_MEMBERS, a member of class OdDbPolyline. 
 
Writes the .dwg file data of this object.
 
 
Reads the DXF data of this object.
 
 
Reads the DXF R12 format data of this object.
 
 
Writes the DXF data of this object.
 
 
Returns the elevation of this entity in the OCS (DXF 30). 
 
Explodes this entity into a set of simpler entities.
 
 
This is the overview for the getArcSegAt method overload. 
 
Returns the area of this Curve object.
 
 
Returns the bulge of the specified segment of this Polyline entity.
 
 
Returns the constant width for this Polyline entity (DXF 43). 
 
Returns the distance along this Curve object from its start point to the point specified by param.
 
 
Returns the entity coordinate system matrix. 
 
Returns the parameter corresponding to the end point of this Curve object.
 
 
Returns the WCS end point of this Curve object.
 
 
Returns the first derivative of this Curve object at the specified WCS point.
 
 
This is the overview for the getLineSegAt method overload. 
 
Returns an OdGeCurve3d that is geometrically identical to this OdDbCurve.  
 
Returns the parameter corresponding to the point a specified distance along this Curve object from its start point.
 
 
Returns the parameter corresponding to the specified WCS point on this Curve object.
 
 
Returns the plane that contains this entity.
 
 
This is the overview for the getPointAt method overload. 
 
Returns the WCS point on this Curve object corresponding to the specified parameter.
 
 
Returns the second derivative of this Curve object at the specified point.
 
 
Returns the parameter corresponding to the start point of this Curve object.
 
 
Returns the WCS start point of this Curve object.
 
 
Returns the vertex identifier of the specified segment of this Polyline entity.
 
 
Returns the start and end widths for the specified segment of this Polyline entity.
 
 
Returns true if and only if any of the segments in this Polyline entity have non-zero bulges. 
 
Returns true if and only if linetype generation is on for this Polyline entity (DXF 70, bit 0x80). 
 
Returns true if and only if any of the segments in this Polyline entity have non-zero vertex identifiers. 
 
Returns true if and only if any of the segments in this Polyline entity have start and end widths. 
 
Returns true if and only if this Curve object is closed. 
 
Returns true if and only if this Polyline entity consists solely of line segments. 
 
Returns true if and only if this Curve object is periodic. 
 
Returns true if and only if this entity is planar. 
 
Decompresses this Polyline entity to expedite modifications. 
 
Compresses this Polyline entity. 
 
Returns the WCS normal to the plane of this entity (DXF 210). 
 
Returns the number of vertices in this Polyline entity (DXF 90). 
 
Returns true if and only if the specified OCS point is on the specified segment of this Polyline entity, and returns the parameter of that point on the segment.
 
 
Removes the specified vertex from this Polyline entity.  
 
Resets the vertex data for this Polyline entity.
 
 
This is reverseCurve, a member of class OdDbPolyline. 
 
Returns the type of the specified segment of this Polyline entity.
 
 
Sets the bulge of the specified segment of this Polyline entity.
 
 
Controls the closed state for this Polyline entity (DXF 70, bit 0x01=1).
 
 
Sets this Polyline entity to a constant width (DXF 43).  
 
Sets the elevation of this entity in the OCS (DXF 38).
 
 
Takes an OdGeCurve3d and sets this OdDbCurve to be geometrically identical to the OdGeCurve3d.  
 
Sets the WCS normal to the plane of this entity (DXF 210).  
 
Controls the linetype generation for this Polyline entity (DXF 70, bit 0x80). 
 
Sets the OCS point for the specified vertex of this Polyline entity.  
 
Sets the thickness of this entity (DXF 39).  
 
Sets the *vertex identifier* of the specified segment of this Polyline entity.
 
 
Sets the start and end widths for the specified segment of this Polyline entity.
 
 
This is subExplode, a member of class OdDbPolyline. 
 
overridables 
 
This is subGetGsMarkersAtSubentPath, a member of class OdDbPolyline. 
 
This is subGetSubentPathsAtGsMarker, a member of class OdDbPolyline. 
 
This is subGetTransformedCopy, a member of class OdDbPolyline. 
 
This is subSubentPtr, a member of class OdDbPolyline. 
 
This is subTransformBy, a member of class OdDbPolyline. 
 
This is subViewportDraw, a member of class OdDbPolyline. 
 
This is subWorldDraw, a member of class OdDbPolyline. 
 
This is the overview for the TD_USING method overload. 
 
Returns the thickness of this entity (DXF 39). 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.