CFx SDK Documentation  2023 SP0
Public Types | Public Member Functions | List of all members
OdDbPolyline Class Reference

#include <DbPolyline.h>

Inheritance diagram for OdDbPolyline:
OdDbCurve OdDbEntity OdDbObject OdGiDrawable OdRxObject

Public Types

enum  SegType {
  kLine , kArc , kCoincident , kPoint ,
  kEmpty
}
 
- Public Types inherited from OdDbEntity
enum  VisualStyleType { kFullVisualStyle , kFaceVisualStyle , kEdgeVisualStyle }
 
- Public Types inherited from OdGiDrawable
enum  SetAttributesFlags {
  kDrawableNone = 0 , kDrawableIsAnEntity = 1 , kDrawableUsesNesting = 2 , kDrawableIsCompoundObject = 4 ,
  kDrawableViewIndependentViewportDraw = 8 , kDrawableIsInvisible = 16 , kDrawableHasAttributes = 32 , kDrawableRegenTypeDependantGeometry = 64 ,
  kDrawableIsDimension = (kDrawableIsAnEntity + kDrawableIsCompoundObject + 128) , kDrawableRegenDraw = 256 , kDrawableStandardDisplaySingleLOD = 512 , kDrawableShadedDisplaySingleLOD = 1024 ,
  kDrawableViewDependentViewportDraw = 2048 , kDrawableBlockDependentViewportDraw = 4096 , kDrawableIsExternalReference = 8192 , kDrawableNotPlottable = 16384 ,
  kLastFlag = kDrawableNotPlottable
}
 
enum  DrawableType {
  kGeometry = 0 , kDistantLight = 1 , kPointLight = 2 , kSpotLight = 3 ,
  kAmbientLight , kSolidBackground , kGradientBackground , kImageBackground ,
  kGroundPlaneBackground , kViewport , kWebLight , kSkyBackground ,
  kImageBasedLightingBackground
}
 

Public Member Functions

 ODDB_DECLARE_MEMBERS (OdDbPolyline)
 
 OdDbPolyline ()
 
OdResult convertFrom (OdDbEntity *pSource, bool transferId=true)
 
OdResult convertTo (OdDb2dPolyline *pDest, bool transferId=true)
 
void getPointAt (unsigned int vertexIndex, OdGePoint2d &point2d) const
 
void getPointAt (unsigned int vertexIndex, OdGePoint3d &point3d) const
 
SegType segType (unsigned int segmentIndex) const
 
void getLineSegAt (unsigned int segmentIndex, OdGeLineSeg2d &line2d) const
 
void getLineSegAt (unsigned int segmentIndex, OdGeLineSeg3d &line3d) const
 
void getArcSegAt (unsigned int segmentIndex, OdGeCircArc2d &arc2d) const
 
void getArcSegAt (unsigned int segmentIndex, OdGeCircArc3d &arc3d) const
 
virtual bool onSegAt (unsigned int segmentIndex, const OdGePoint2d &point2d, double &param) const
 
void setClosed (bool closed)
 
void setPlinegen (bool plinegen)
 
void setElevation (double elevation)
 
void setThickness (double thickness)
 
void setConstantWidth (double constantWidth)
 
void setNormal (const OdGeVector3d &normal)
 
bool isOnlyLines () const
 
bool hasPlinegen () const
 
double elevation () const
 
double thickness () const
 
double getConstantWidth () const
 
OdGeVector3d normal () const
 
void addVertexAt (unsigned int vertexIndex, const OdGePoint2d &point2d, double bulge=0., double startWidth=-1., double endWidth=-1., OdInt32 vertexIdentifier=0)
 
void removeVertexAt (unsigned int vertexIndex)
 
unsigned int numVerts () const
 
double getBulgeAt (unsigned int index) const
 
OdInt32 getVertexIdentifierAt (unsigned int index) const
 
void getWidthsAt (unsigned int segmentIndex, double &startWidth, double &endWidth) const
 
void setPointAt (unsigned int vertexIndex, const OdGePoint2d &point2d)
 
void setBulgeAt (unsigned int index, double bulge)
 
void setVertexIdentifierAt (unsigned int index, OdInt32 suggestedId)
 
void setWidthsAt (unsigned int index, double startWidth, double endWidth)
 
void minimizeMemory ()
 
void maximizeMemory ()
 
void reset (bool reuse, unsigned int numVerts)
 
bool hasBulges () const
 
bool hasVertexIdentifiers () const
 
bool hasWidth () const
 
virtual OdResult subGetTransformedCopy (const OdGeMatrix3d &mat, OdDbEntityPtr &pCopy) const ODRX_OVERRIDE
 
virtual OdResult subTransformBy (const OdGeMatrix3d &xfm) ODRX_OVERRIDE
 
virtual bool subWorldDraw (OdGiWorldDraw *pWd) const ODRX_OVERRIDE
 
virtual OdResult subGetGeomExtents (OdGeExtents3d &extents) const ODRX_OVERRIDE
 
virtual void subViewportDraw (OdGiViewportDraw *pVd) const ODRX_OVERRIDE
 
virtual OdResult dwgInFields (OdDbDwgFiler *pFiler) ODRX_OVERRIDE
 
virtual void dwgOutFields (OdDbDwgFiler *pFiler) const ODRX_OVERRIDE
 
virtual OdResult dxfInFields (OdDbDxfFiler *pFiler) ODRX_OVERRIDE
 
virtual OdResult dxfInFields_R12 (OdDbDxfFiler *pFiler) ODRX_OVERRIDE
 
virtual void dxfOutFields (OdDbDxfFiler *pFiler) const ODRX_OVERRIDE
 
virtual OdResult subGetClassID (void *pClsid) const ODRX_OVERRIDE
 
virtual bool isPlanar () const ODRX_OVERRIDE
 
virtual OdResult getPlane (OdGePlane &plane, OdDb::Planarity &planarity) const
 
virtual bool isClosed () const
 
virtual bool isPeriodic () const
 
virtual OdResult getStartParam (double &startParam) const
 
virtual OdResult getEndParam (double &endParam) const
 
virtual OdResult getStartPoint (OdGePoint3d &startPoint) const
 
virtual OdResult getEndPoint (OdGePoint3d &endPoint) const
 
virtual OdResult getPointAtParam (double param, OdGePoint3d &pointOnCurve) const
 
virtual OdResult getParamAtPoint (const OdGePoint3d &pointOnCurve, double &param) const
 
virtual OdResult getFirstDeriv (double param, OdGeVector3d &firstDeriv) const
 
virtual OdResult getSecondDeriv (double param, OdGeVector3d &secondDeriv) const
 
virtual OdResult getArea (double &area) const
 
 TD_USING (OdDbCurve::getFirstDeriv)
 
 TD_USING (OdDbCurve::getSecondDeriv)
 
virtual OdResult getDistAtParam (double param, double &dist) const
 
virtual OdResult getParamAtDist (double dist, double &param) const
 
virtual OdResult subExplode (OdRxObjectPtrArray &entitySet) const
 
virtual OdResult explodeGeometry (OdRxObjectPtrArray &entitySet) const
 
virtual OdResult subGetSubentPathsAtGsMarker (OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &pickPoint, const OdGeMatrix3d &viewXform, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack) const
 
virtual OdResult subGetGsMarkersAtSubentPath (const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const
 
virtual OdDbEntityPtr subSubentPtr (const OdDbFullSubentPath &path) const
 
virtual OdResult reverseCurve ()
 
OdGeMatrix3d getEcs () const
 
virtual OdResult getOdGeCurve (OdGeCurve3d *&pGeCurve, const OdGeTol &tol=OdGeContext::gTol) const
 
virtual OdResult setFromOdGeCurve (const OdGeCurve3d &geCurve, OdGeVector3d *normal=NULL, const OdGeTol &tol=OdGeContext::gTol)
 
- Public Member Functions inherited from OdDbCurve
 ODDB_DECLARE_MEMBERS (OdDbCurve)
 
 OdDbCurve ()
 
virtual OdResult getDistAtPoint (const OdGePoint3d &pointOnCurve, double &dist) const
 
virtual OdResult getPointAtDist (double dist, OdGePoint3d &pointOnCurve) const
 
virtual OdResult getFirstDeriv (const OdGePoint3d &pointOnCurve, OdGeVector3d &firstDeriv) const
 
virtual OdResult getSecondDeriv (const OdGePoint3d &pointOnCurve, OdGeVector3d &secondDeriv) const
 
virtual OdResult getClosestPointTo (const OdGePoint3d &givenPoint, OdGePoint3d &pointOnCurve, bool extend=false) const
 
virtual OdResult getClosestPointTo (const OdGePoint3d &givenPoint, const OdGeVector3d &normal, OdGePoint3d &pointOnCurve, bool extend=false) const
 
virtual OdResult getSpline (OdDbSplinePtr *spline) const
 
virtual OdResult extend (double param)
 
virtual OdResult extend (bool extendStart, const OdGePoint3d &toPoint)
 
virtual OdResult getOrthoProjectedCurve (const OdGePlane &projPlane, OdDbCurvePtr *pProjCurve) const
 
virtual OdResult getProjectedCurve (const OdGePlane &projPlane, const OdGeVector3d &projDirection, OdDbCurvePtr *pProjCurve) const
 
virtual OdResult getOffsetCurves (double offsetDistance, OdRxObjectPtrArray &offsetCurves) const
 
virtual OdResult getOffsetCurvesGivenPlaneNormal (const OdGeVector3d &normal, double offsetDistance, OdRxObjectPtrArray &offsetCurves) const
 
virtual OdResult getSplitCurves (const OdGeDoubleArray &params, OdRxObjectPtrArray &curveSegments) const
 
virtual OdResult getSplitCurves (const OdGePoint3dArray &points, OdRxObjectPtrArray &curveSegments) const
 
virtual OdInt32 findVertexIndex (const OdDbVertex *vert) const
 
- Public Member Functions inherited from OdDbEntity
 ODDB_DECLARE_MEMBERS (OdDbEntity)
 
 OdDbEntity ()
 
OdDbObjectId blockId () const
 
OdCmColor color () const
 
virtual OdResult setColor (const OdCmColor &color, bool doSubents=true)
 
OdUInt16 colorIndex () const
 
virtual OdCmEntityColor entityColor () const
 
virtual OdResult setColorIndex (OdUInt16 colorIndex, bool doSubents=true)
 
OdDbObjectId colorId () const
 
virtual OdResult setColorId (OdDbObjectId colorId, bool doSubents=true)
 
OdCmTransparency transparency () const
 
virtual OdResult setTransparency (const OdCmTransparency &transparency, bool doSubents=true)
 
OdString plotStyleName () const
 
OdDb::PlotStyleNameType getPlotStyleNameId (OdDbObjectId &plotStyleNameId) const
 
virtual OdResult setPlotStyleName (const OdString &plotStyleName, bool doSubents=true)
 
virtual OdResult setPlotStyleName (OdDb::PlotStyleNameType plotStyleNameType, OdDbObjectId plotStyleNameId=OdDbObjectId::kNull, bool doSubents=true)
 
OdString layer () const
 
OdDbObjectId layerId () const
 
virtual OdResult setLayer (const OdString &layerName, bool doSubents=true, bool allowHiddenLayer=false)
 
virtual OdResult setLayer (OdDbObjectId layerId, bool doSubents=true, bool allowHiddenLayer=false)
 
OdString linetype () const
 
OdDbObjectId linetypeId () const
 
virtual OdResult setLinetype (const OdString &linetypeName, bool doSubents=true)
 
virtual OdResult setLinetype (OdDbObjectId linetypeID, bool doSubents=true)
 
OdString material () const
 
OdDbObjectId materialId () const
 
virtual OdResult setMaterial (const OdString &materialName, bool doSubents=true)
 
virtual OdResult setMaterial (OdDbObjectId materialID, bool doSubents=true)
 
OdDbObjectId visualStyleId (VisualStyleType vstype=kFullVisualStyle) const
 
virtual OdResult setVisualStyle (OdDbObjectId visualStyleId, VisualStyleType vstype=kFullVisualStyle, bool doSubents=true)
 
virtual const OdGiMappermaterialMapper () const
 
virtual void setMaterialMapper (const OdGiMapper *mapper, bool doSubents=true)
 
double linetypeScale () const
 
virtual OdResult setLinetypeScale (double linetypeScale, bool doSubents=true)
 
OdDb::Visibility visibility () const
 
ODRX_SEALED_VIRTUAL OdResult setVisibility (OdDb::Visibility visibility, bool doSubents=true) ODRX_SEALED
 
OdDb::Visibility tempVisibility () const
 
void setTempVisibility (OdDb::Visibility visibility)
 
OdDb::LineWeight lineWeight () const
 
virtual OdResult setLineWeight (OdDb::LineWeight lineWeight, bool doSubents=true)
 
virtual bool castShadows () const
 
virtual void setCastShadows (bool castShadows)
 
virtual bool receiveShadows () const
 
virtual void setReceiveShadows (bool receiveShadows)
 
virtual OdDb::CollisionType collisionType () const
 
void setPropertiesFrom (const OdDbEntity *pSource, bool doSubents=true)
 
void subHandOverTo (OdDbObject *pNewObject)
 
ODRX_SEALED_VIRTUAL OdResult transformBy (const OdGeMatrix3d &xfm) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getTransformedCopy (const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult explode (OdRxObjectPtrArray &entitySet) const ODRX_SEALED
 
virtual OdResult explodeToBlock (OdDbBlockTableRecord *pBlockRecord, OdDbObjectIdArray *ids=0)
 
virtual OdResult explodeGeometryToBlock (OdDbBlockTableRecord *pBlockRecord, OdDbObjectIdArray *ids=0)
 
void setDatabaseDefaults (OdDbDatabase *pDb=0, bool doSubents=false)
 
virtual void subSetDatabaseDefaults (OdDbDatabase *pDb, bool doSubents)
 
virtual void applyPartialUndo (OdDbDwgFiler *pUndoFiler, OdRxClass *pClassObj)
 
void appendToOwner (OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
 
virtual OdResult dxfIn (OdDbDxfFiler *pFiler)
 
virtual void dxfOut (OdDbDxfFiler *pFiler) const
 
virtual void dxfOutFields_R12 (OdDbDxfFiler *pFiler) const
 
virtual OdGiDrawabledrawable ()
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *pTraits) const
 
virtual void subList () const
 
void subSwapIdWith (const OdDbObjectId &otherId, bool swapXdata=false, bool swapExtDict=false)
 
virtual OdResult subErase (bool erasing) ODRX_OVERRIDE
 
void recordGraphicsModified (bool graphicsModified=true)
 
virtual void copyFrom (const OdRxObject *pSource)
 
ODRX_SEALED_VIRTUAL void list () const ODRX_SEALED
 
virtual OdResult getGeomExtents (OdGeExtents3d &extents) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void highlight (bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, const OdGeMatrix3d &insertionMat) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool isContentSnappable () const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGripPoints (OdGePoint3dArray &gripPoints) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveGripPointsAt (const OdIntArray &indices, const OdGeVector3d &offset) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGripPoints (OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveGripPointsAt (const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getStretchPoints (OdGePoint3dArray &stretchPoints) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveStretchPointsAt (const OdIntArray &indices, const OdGeVector3d &offset) ODRX_SEALED
 
virtual void dragStatus (const OdDb::DragStat status)
 
ODRX_SEALED_VIRTUAL void gripStatus (const OdDb::GripStat status) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool cloneMeForDragging () ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool hideMeForDragging () const ODRX_SEALED
 
virtual void saveAs (OdGiWorldDraw *pWd, OdDb::DwgVersion ver) const
 
ODRX_SEALED_VIRTUAL OdResult getCompoundObjectTransform (OdGeMatrix3d &xM) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult intersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult intersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const ODRX_SEALED
 
OdResult boundingBoxIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker, OdGsMarker otherGsMarker) const
 
OdResult boundingBoxIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker, OdGsMarker otherGsMarker) const
 
ODRX_SEALED_VIRTUAL OdResult getSubentPathsAtGsMarker (OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &pickPoint, const OdGeMatrix3d &xfm, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack=0) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGsMarkersAtSubentPath (const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGripPointsAtSubentPath (const OdDbFullSubentPath &path, OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const OdUInt32 bitflags) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveGripPointsAtSubentPaths (const OdDbFullSubentPathArray &paths, const OdDbVoidPtrArray &gripAppData, const OdGeVector3d &offset, const OdUInt32 bitflags) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult deleteSubentPaths (const OdDbFullSubentPathArray &paths) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult addSubentPaths (const OdDbFullSubentPathArray &paths) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdDbEntityPtr subentPtr (const OdDbFullSubentPath &path) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult transformSubentPathsBy (const OdDbFullSubentPathArray &paths, const OdGeMatrix3d &xform) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getSubentClassId (const OdDbFullSubentPath &path, void *clsId) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getSubentPathGeomExtents (const OdDbFullSubentPath &path, OdGeExtents3d &extents) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void subentGripStatus (OdDb::GripStat status, const OdDbFullSubentPath &subentity) ODRX_SEALED
 
- Public Member Functions inherited from OdDbObject
 ODDB_DECLARE_MEMBERS (OdDbObject)
 
 ~OdDbObject ()
 
void addRef ()
 
void release ()
 
long numRefs () const
 
OdDbObjectId objectId () const
 
OdDbHandle getDbHandle () const
 
OdDbHandle handle () const
 
OdDbObjectId ownerId () const
 
virtual void setOwnerId (OdDbObjectId ownerId)
 
OdDbDatabasedatabase () const
 
void createExtensionDictionary ()
 
OdDbObjectId extensionDictionary () const
 
bool releaseExtensionDictionary ()
 
OdDbXrecordPtr createXrecord (const OdString &xrecordName, OdDb::DuplicateRecordCloning style=OdDb::kDrcIgnore)
 
void upgradeOpen ()
 
void downgradeOpen ()
 
void cancel ()
 
virtual OdResult subOpen (OdDb::OpenMode mode)
 
virtual void subClose ()
 
OdResult erase (bool eraseIt=true)
 
void handOverTo (OdDbObject *pNewObject, bool keepXData=true, bool keepExtDict=true)
 
void swapIdWith (OdDbObjectId otherId, bool swapXdata=false, bool swapExtDict=false)
 
virtual void audit (OdDbAuditInfo *pAuditInfo)
 
void dwgIn (OdDbDwgFiler *pFiler)
 
void dwgOut (OdDbDwgFiler *pFiler) const
 
virtual OdDb::DuplicateRecordCloning mergeStyle () const
 
virtual OdResBufPtr xData (const OdString &regappName=OdString::kEmpty) const
 
virtual void setXData (const OdResBuf *pRb)
 
bool isEraseStatusToggled () const
 
bool isErased () const
 
bool isReadEnabled () const
 
bool isWriteEnabled () const
 
bool isNotifyEnabled () const
 
bool isModified () const
 
bool isModifiedXData () const
 
bool isModifiedGraphics () const
 
bool isNewObject () const
 
bool isNotifying () const
 
bool isUndoing () const
 
bool isReallyClosing () const
 
bool isDBRO () const
 
void assertReadEnabled () const
 
void assertWriteEnabled (bool autoUndo=true, bool recordModified=true)
 
void assertNotifyEnabled () const
 
void disableUndoRecording (bool disable)
 
bool isUndoRecordingDisabled () const
 
OdDbDwgFilerundoFiler ()
 
void addReactor (OdDbObjectReactor *pReactor) const
 
void removeReactor (OdDbObjectReactor *pReactor) const
 
virtual void addPersistentReactor (const OdDbObjectId &objId)
 
virtual void removePersistentReactor (const OdDbObjectId &objId)
 
bool hasPersistentReactor (const OdDbObjectId &objId) const
 
OdDbObjectIdArray getPersistentReactors () const
 
OdDbObjectReactorArray getTransientReactors () const
 
virtual void recvPropagateModify (const OdDbObject *pSubObj)
 
virtual void xmitPropagateModify () const
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr deepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr wblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
void setOdDbObjectIdsInFlux ()
 
bool isOdDbObjectIdsInFlux () const
 
virtual void copied (const OdDbObject *pObject, const OdDbObject *pNewObject)
 
virtual void erased (const OdDbObject *pObject, bool erasing=true)
 
virtual void goodbye (const OdDbObject *pObject)
 
virtual void openedForModify (const OdDbObject *pObject)
 
virtual void modified (const OdDbObject *pObject)
 
virtual void subObjModified (const OdDbObject *pObject, const OdDbObject *pSubObj)
 
virtual void modifyUndone (const OdDbObject *pObject)
 
virtual void modifiedXData (const OdDbObject *pObject)
 
virtual void unappended (const OdDbObject *pObject)
 
virtual void reappended (const OdDbObject *pObject)
 
bool isAProxy () const
 
virtual void objectClosed (const OdDbObjectId &objectId)
 
virtual void modifiedGraphics (const OdDbObject *pObject)
 
bool hasSaveVersionOverride () const
 
void setHasSaveVersionOverride (bool hasSaveVersionOverride)
 
virtual OdDb::DwgVersion getObjectSaveVersion (const OdDbFiler *pFiler, OdDb::MaintReleaseVer *pMaintVer=0) const
 
virtual OdDbObjectPtr decomposeForSave (OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
virtual OdDbObjectPtr decomposeForSave (OdDb::SaveType format, OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
void convertForSave (OdDb::DwgVersion ver)
 
virtual void composeForLoad (OdDb::SaveType format, OdDb::DwgVersion version, OdDbAuditInfo *pAuditInfo)
 
virtual bool isPersistent () const
 
virtual OdDbStub * id () const
 
ODRX_SEALED_VIRTUAL OdResult getClassID (void *pClsid) const ODRX_SEALED
 
void setGsNode (OdGsCache *pNode)
 
OdGsCachegsNode () const
 
void xDataTransformBy (const OdGeMatrix3d &xfm)
 
bool hasFields () const
 
OdDbObjectId getField (const OdString &fieldName) const
 
OdDbObjectPtr getField (const OdString &fieldName, OdDb::OpenMode mode) const
 
virtual OdDbObjectId setField (const OdString &fieldName, OdDbField *pField)
 
virtual OdResult removeField (OdDbObjectId fieldId)
 
virtual OdDbObjectId removeField (const OdString &fieldName)
 
OdDbObjectId getFieldDictionary () const
 
OdDbObjectPtr getFieldDictionary (OdDb::OpenMode mode) const
 
virtual OdRxClasssaveAsClass (OdRxClass *pClass) const
 
- Public Member Functions inherited from OdGiDrawable
 ODRX_DECLARE_MEMBERS (OdGiDrawable)
 
virtual DrawableType drawableType () const
 
ODRX_SEALED_VIRTUAL OdUInt32 setAttributes (OdGiDrawableTraits *pTraits) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool worldDraw (OdGiWorldDraw *pWd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void viewportDraw (OdGiViewportDraw *pVd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdUInt32 viewportDrawLogicalFlags (OdGiViewportDraw *pVd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdUInt32 regenSupportFlags () const ODRX_SEALED
 
- 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
 

Additional Inherited Members

- Static Public Member Functions inherited from OdDbCurve
static OdResult createFromOdGeCurve (const OdGeCurve3d &geCurve, OdDbCurve *&pDbCurve, OdGeVector3d *normal=NULL, const OdGeTol &tol=OdGeContext::gTol)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- Protected Member Functions inherited from OdDbEntity
virtual OdDbObjectPtr subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
 
virtual OdDbObjectPtr subDeepClone (OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
 
virtual OdResult subGetCompoundObjectTransform (OdGeMatrix3d &xM) const
 
virtual bool subCloneMeForDragging ()
 
virtual bool subHideMeForDragging () const
 
virtual void subGripStatus (const OdDb::GripStat status)
 
virtual OdResult subGetOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const
 
virtual OdResult subGetOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, const OdGeMatrix3d &insertionMat) const
 
virtual bool subIsContentSnappable () const
 
virtual OdResult subGetGripPoints (OdGePoint3dArray &gripPoints) const
 
virtual OdResult subMoveGripPointsAt (const OdIntArray &indices, const OdGeVector3d &offset)
 
virtual OdResult subGetGripPoints (OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const
 
virtual OdResult subMoveGripPointsAt (const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags)
 
virtual OdResult subGetStretchPoints (OdGePoint3dArray &stretchPoints) const
 
virtual OdResult subMoveStretchPointsAt (const OdIntArray &indices, const OdGeVector3d &offset)
 
virtual OdResult subIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const
 
virtual OdResult subIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const
 
virtual void subHighlight (bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) const
 
virtual OdDb::Visibility subVisibility () const
 
virtual OdResult subSetVisibility (OdDb::Visibility visibility, bool doSubents=true)
 
virtual OdResult subDeleteSubentPaths (const OdDbFullSubentPathArray &paths)
 
virtual OdResult subAddSubentPaths (const OdDbFullSubentPathArray &paths)
 
virtual OdResult subMoveGripPointsAtSubentPaths (const OdDbFullSubentPathArray &paths, const OdDbVoidPtrArray &gripAppData, const OdGeVector3d &offset, const OdUInt32 bitflags)
 
virtual OdResult subGetGripPointsAtSubentPath (const OdDbFullSubentPath &path, OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const OdUInt32 bitflags) const
 
virtual OdResult subTransformSubentPathsBy (const OdDbFullSubentPathArray &paths, const OdGeMatrix3d &xform)
 
virtual OdResult subGetSubentClassId (const OdDbFullSubentPath &path, void *clsId) const
 
virtual OdResult subGetSubentPathGeomExtents (const OdDbFullSubentPath &path, OdGeExtents3d &extents) const
 
virtual void subSubentGripStatus (OdDb::GripStat status, const OdDbFullSubentPath &subentity)
 
- Protected Member Functions inherited from OdDbObject
 OdDbObject ()
 
- Protected Member Functions inherited from OdGiDrawable
 OdGiDrawable ()
 
virtual OdUInt32 subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const
 
virtual OdUInt32 subRegenSupportFlags () const
 
- Protected Attributes inherited from OdDbObject
OdDbObjectImplm_pImpl
 

Detailed Description

This class represents Lightweight Polyline entities in an OdDbDatabase instance.

See also
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.

Remarks
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.

<group OdDb_Classes>

Definition at line 62 of file DbPolyline.h.

Member Enumeration Documentation

◆ SegType

Enumerator
kLine 
kArc 
kCoincident 
kPoint 
kEmpty 

Definition at line 153 of file DbPolyline.h.

Constructor & Destructor Documentation

◆ OdDbPolyline()

OdDbPolyline::OdDbPolyline ( )

Member Function Documentation

◆ addVertexAt()

void OdDbPolyline::addVertexAt ( unsigned int  vertexIndex,
const OdGePoint2d point2d,
double  bulge = 0.,
double  startWidth = -1.,
double  endWidth = -1.,
OdInt32  vertexIdentifier = 0 
)

Inserts a vertex into this Polyline entity at the specified index.

Parameters
vertexIndex[in] Vertex index.
point2d[in] OCS point of the vertex.
bulge[in] Bulge value for the segment following the vertex.
startWidth[in] Start width for the segment following the vertex.
endWidth[in] End width for the segment following the vertex.
vertexIdentifier[in]
Remarks
The vertex is inserted before the specified vertex. If vertexIndex == numVerts(), the vertex is appended to the Polyline.

Bulge is the tangent of 1/4 the included angle of the arc segment, measured counterclockwise.

◆ convertFrom()

OdResult OdDbPolyline::convertFrom ( OdDbEntity pSource,
bool  transferId = true 
)

Fills this OdDbPolyline entity with data from the specified OdDb2dPolyline entity.

Parameters
pSource[in] Pointer to the source OdDb2dPolyline entity.
transferId[in] True to do a handOverTo() between the source OdDb2dPolyline entity and this OdDbPolyline entity.
Remarks
If and only if transferId is true, This OdDbPolyline entity will be made database resident. It will assume the objectId, handle, extended entity data, extension dictionary, and reactors of the source OdDb2dPolyline entity The source OdDb2dPolyline entity will be deleted.
The source OdDb2dPolyline entity Must be non- database resident. Must by of type k2dSimplePoly or k2dFitCurvePoly.
Returns
Returns one of the following:

Description eOk Success AlreadyInDb This entity is database resident eIllegalEntityType *pSource is not an OdDb2dPolyline eNotApplicable *pSource is not k2dSimplePoly or there is extended entity data attached to a vertex.

◆ convertTo()

OdResult OdDbPolyline::convertTo ( OdDb2dPolyline pDest,
bool  transferId = true 
)

Fills the specified OdDb2dPolyline with data from this OdDbPolyline entity.

Parameters
pDest[in] Pointer to the destination OdDb2dPolyline entity.
transferId[in] True to do a handOverTo() between this OdDbPolyline entity and the destination OdDb2dPolyline entity.
Remarks
If and only if transferId is true, The destination OdDb2dPolyline entity will be made database resident. It will assume the objectId, handle, extended entity data, extension dictionary, and reactors of this OdDbPolyline entity. This OdDbPolyline entity will made non- database resident, and may be deleted with the C++ delete operator.
Returns
Returns one of the following:

Description eOk Success eIllegalReplacement This entity is non- database resident. eObjectToBeDeleted This entity is now non- database resident, and should be deleted.

◆ dwgInFields()

virtual OdResult OdDbPolyline::dwgInFields ( OdDbDwgFiler pFiler)
virtual

Reads the .dwg file data of this object.

Parameters
pFiler[in] Filer object from which data are read.
Returns
Returns the filer status.

This function is called by dwgIn() to allow the object to read its data.

When overriding this function:

1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dwgInFields(pFiler) returned. 4) Call the OdDbDwgFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().

Reimplemented from OdDbEntity.

◆ dwgOutFields()

virtual void OdDbPolyline::dwgOutFields ( OdDbDwgFiler pFiler) const
virtual

Writes the .dwg file data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are written.
Remarks

This function is called by dwgIn() to allow the object to write its data.

When overriding this function:

1) Call assertReadEnabled(). 2) Call the parent class's dwgOutFields(pFiler). 3) Call the OdDbDwgFiler(pFiler) methods to write each of the object's data items in the order they were written.

Reimplemented from OdDbEntity.

◆ dxfInFields()

virtual OdResult OdDbPolyline::dxfInFields ( OdDbDxfFiler pFiler)
virtual

Reads the DXF data of this object.

Parameters
pFiler[in] Pointer to the filer from which data are read.
Returns
Returns the filer status.

This function is called by dxfIn() to allow the object to read its data.

When overriding this function:

1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfInFields(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().

Reimplemented from OdDbEntity.

◆ dxfInFields_R12()

virtual OdResult OdDbPolyline::dxfInFields_R12 ( OdDbDxfFiler pFiler)
virtual

Reads the DXF R12 format data of this object.

Parameters
pFiler[in] Pointer to the filer from which data are to be read.
Returns
Returns the filer status.

This function is called by dxfIn() to allow the object to read its data.

When overriding this function:

1) Call assertWriteEnabled(). 2) Call the parent class's dxfInFields_R12(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfOutFields_R12(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().

Reimplemented from OdDbEntity.

◆ dxfOutFields()

virtual void OdDbPolyline::dxfOutFields ( OdDbDxfFiler pFiler) const
virtual

Writes the DXF data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are to be written.
Remarks

This function is called by dxfOut() to allow the object to write its data.

When overriding this function:

1) Call assertReadEnabled(). 2) Call the parent class's dxfOutFields(pFiler). 4) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.

Reimplemented from OdDbEntity.

◆ elevation()

double OdDbPolyline::elevation ( ) const

Returns the elevation of this entity in the OCS (DXF 30).

Remarks
The elevation is the distance from the WCS origin to the plane of this entity.

◆ explodeGeometry()

virtual OdResult OdDbPolyline::explodeGeometry ( OdRxObjectPtrArray entitySet) const
virtual

Explodes this entity into a set of simpler entities.

Parameters
entitySet[in/out] Receives an array of pointers to the new entities.
Remarks
The newly created entities will be not database resident. Entities resulting from the explosion are appended to the specified array. The default implementation of this function calls subWorldDraw() and makes entities from geometry generated by subWorldDraw(). This function can be overridden in custom classes.
Returns
Returns eOk if successful, or an appropriate error code if not.

Reimplemented from OdDbEntity.

◆ getArcSegAt() [1/2]

void OdDbPolyline::getArcSegAt ( unsigned int  segmentIndex,
OdGeCircArc2d arc2d 
) const

Returns the specified OCS arc segment of this Polyline entity.

Parameters
segmentIndex[in] Segment index.
arc2d[out] Receives the OCS arc segment.

◆ getArcSegAt() [2/2]

void OdDbPolyline::getArcSegAt ( unsigned int  segmentIndex,
OdGeCircArc3d arc3d 
) const

Returns the specified WCS arc segment of this Polyline entity.

Parameters
segmentIndex[in] Segment index.
arc3d[out] Receives the WCS arc segment.

◆ getArea()

virtual OdResult OdDbPolyline::getArea ( double &  area) const
virtual

Returns the area of this Curve object.

Parameters
area[out] Receives the area.
Returns
Returns eOk if successful, or an appropriate error code if not.

Reimplemented from OdDbCurve.

◆ getBulgeAt()

double OdDbPolyline::getBulgeAt ( unsigned int  index) const

Returns the bulge of the specified segment of this Polyline entity.

Parameters
index[in] Segment index.
Remarks
Bulge is the tangent of 1/4 the included angle of the arc segment, measured counterclockwise.

◆ getConstantWidth()

double OdDbPolyline::getConstantWidth ( ) const

Returns the constant width for this Polyline entity (DXF 43).

◆ getDistAtParam()

virtual OdResult OdDbPolyline::getDistAtParam ( double  param,
double &  dist 
) const
virtual

Returns the distance along this Curve object from its start point to the point specified by param.

Parameters
param[in] Parameter specifying point.
dist[out] Receives the distance.
Returns
Returns eOk if successful, or an appropriate error code if not.

Implements OdDbCurve.

◆ getEcs()

OdGeMatrix3d OdDbPolyline::getEcs ( ) const
virtual

Returns the entity coordinate system matrix.

Reimplemented from OdDbEntity.

◆ getEndParam()

virtual OdResult OdDbPolyline::getEndParam ( double &  endParam) const
virtual

Returns the parameter corresponding to the end point of this Curve object.

Parameters
endParam[out] Receives the end parameter.
Returns
Returns eOk if successful, or an appropriate error code if not.

Implements OdDbCurve.

◆ getEndPoint()

virtual OdResult OdDbPolyline::getEndPoint ( OdGePoint3d endPoint) const
virtual

Returns the WCS end point of this Curve object.

Parameters
endPoint[out] Receives the end point.
Returns
Returns eOk if successful, or an appropriate error code if not.

Implements OdDbCurve.

◆ getFirstDeriv()

virtual OdResult OdDbPolyline::getFirstDeriv ( double  param,
OdGeVector3d firstDeriv 
) const
virtual

Returns the first derivative of this Curve object at the specified WCS point.

Parameters
param[in] Parameter specifying point.
firstDeriv[out] Receives the first derivative.
Returns
Returns eOk if successful, or an appropriate error code if not.

Implements OdDbCurve.

◆ getLineSegAt() [1/2]

void OdDbPolyline::getLineSegAt ( unsigned int  segmentIndex,
OdGeLineSeg2d line2d 
) const

Returns the specified OCS line segment of this Polyline entity.

Parameters
segmentIndex[in] Segment index.
line2d[out] Receives the OCS line segment.

◆ getLineSegAt() [2/2]

void OdDbPolyline::getLineSegAt ( unsigned int  segmentIndex,
OdGeLineSeg3d line3d 
) const

Returns the specified WCS line segment of this Polyline entity.

Parameters
segmentIndex[in] Segment index.
line3d[out] Receives the WCS line segment.

◆ getOdGeCurve()

virtual OdResult OdDbPolyline::getOdGeCurve ( OdGeCurve3d *&  pGeCurve,
const OdGeTol tol = OdGeContext::gTol 
) const
virtual

Returns an OdGeCurve3d that is geometrically identical to this OdDbCurve.

Parameters
pGeCurve[out] Receives a pointer to an OdGeCurve3d object that is geometrically identical to this OdDbCurve. The caller of this function is responsible for deleting this OdGeCurve3d object.
tol[in] Optional tolerance.
Returns
Returns eOk if successful.

Reimplemented from OdDbCurve.

◆ getParamAtDist()

virtual OdResult OdDbPolyline::getParamAtDist ( double  dist,
double &  param 
) const
virtual

Returns the parameter corresponding to the point a specified distance along this Curve object from its start point.

Parameters
param[out] Receives the parameter.
dist[in] Distance along the curve.
Returns
Returns eOk if successful, or an appropriate error code if not.

Implements OdDbCurve.

◆ getParamAtPoint()

virtual OdResult OdDbPolyline::getParamAtPoint ( const OdGePoint3d pointOnCurve,
double &  param 
) const
virtual

Returns the parameter corresponding to the specified WCS point on this Curve object.

Parameters
param[out] Receives the parameter corresponding to pointOnCurve.
pointOnCurve[in] Point to be evaluated.
Returns
Returns eOk if successful, or an appropriate error code if not.

Implements OdDbCurve.

◆ getPlane()

virtual OdResult OdDbPolyline::getPlane ( OdGePlane plane,
OdDb::Planarity planarity 
) const
virtual

Returns the plane that contains this entity.

Parameters
plane[out] Receives the plane that contains this entity.
planarity[out] Receives the planarity of this entity.
Returns
Returns eOk if successful, or an appropriate error code if not.

planarity and plane return values as follows::

Value Description plane kNonPlanar 0 Non-planar Not set kPlanar 1 Planar Entity plane kLinear 2 Linear Arrbitrary plane containing this entity

Reimplemented from OdDbEntity.

◆ getPointAt() [1/2]

void OdDbPolyline::getPointAt ( unsigned int  vertexIndex,
OdGePoint2d point2d 
) const

Returns the OCS point of the specified vertex of this Polyline entity (DXF 10).

Parameters
vertexIndex[in] Vertex index.
point2d[out] Receives the OCS point.

◆ getPointAt() [2/2]

void OdDbPolyline::getPointAt ( unsigned int  vertexIndex,
OdGePoint3d point3d 
) const

Returns the WCS point of the specified vertex of this Polyline entity (DXF 10).

Parameters
vertexIndex[in] Vertex index.
point3d[out] Receives the WCS point.

◆ getPointAtParam()

virtual OdResult OdDbPolyline::getPointAtParam ( double  param,
OdGePoint3d pointOnCurve 
) const
virtual

Returns the WCS point on this Curve object corresponding to the specified parameter.

Parameters
param[in] Parameter specifying point.
pointOnCurve[out] Receives the point on this Curve object.
Returns
Returns eOk if successful, or an appropriate error code if not.

Implements OdDbCurve.

◆ getSecondDeriv()

virtual OdResult OdDbPolyline::getSecondDeriv ( double  param,
OdGeVector3d secondDeriv 
) const
virtual

Returns the second derivative of this Curve object at the specified point.

Parameters
param[in] Parameter specifying point.
secondDeriv[out] Receives the first derivative.
Returns
Returns eOk if successful, or an appropriate error code if not.

Reimplemented from OdDbCurve.

◆ getStartParam()

virtual OdResult OdDbPolyline::getStartParam ( double &  startParam) const
virtual

Returns the parameter corresponding to the start point of this Curve object.

Parameters
startParam[out] Receives the start parameter.
Returns
Returns eOk if successful, or an appropriate error code if not.

Implements OdDbCurve.

◆ getStartPoint()

virtual OdResult OdDbPolyline::getStartPoint ( OdGePoint3d startPoint) const
virtual

Returns the WCS start point of this Curve object.

Parameters
startPoint[out] Receives the start point.
Returns
Returns eOk if successful, or an appropriate error code if not.

Implements OdDbCurve.

◆ getVertexIdentifierAt()

OdInt32 OdDbPolyline::getVertexIdentifierAt ( unsigned int  index) const

Returns the vertex identifier of the specified segment of this Polyline entity.

Parameters
index[in] Segment index.

◆ getWidthsAt()

void OdDbPolyline::getWidthsAt ( unsigned int  segmentIndex,
double &  startWidth,
double &  endWidth 
) const

Returns the start and end widths for the specified segment of this Polyline entity.

Parameters
segmentIndex[in] Segment index.
startWidth[out] Receives the start width for the vertex.
endWidth[out] Receives the end width for the vertex.

◆ hasBulges()

bool OdDbPolyline::hasBulges ( ) const

Returns true if and only if any of the segments in this Polyline entity have non-zero bulges.

◆ hasPlinegen()

bool OdDbPolyline::hasPlinegen ( ) const

Returns true if and only if linetype generation is on for this Polyline entity (DXF 70, bit 0x80).

Remarks
Linetype generation on indicates that the linetype pattern of this Polyline entity is continuously generated around all vertices.

Linetype generation off indicates that the linetype pattern of this Polyline entity is restarted at each vertex.

◆ hasVertexIdentifiers()

bool OdDbPolyline::hasVertexIdentifiers ( ) const

Returns true if and only if any of the segments in this Polyline entity have non-zero vertex identifiers.

◆ hasWidth()

bool OdDbPolyline::hasWidth ( ) const

Returns true if and only if any of the segments in this Polyline entity have start and end widths.

◆ isClosed()

virtual bool OdDbPolyline::isClosed ( ) const
virtual

OdDbCurveMethods

Reimplemented from OdDbCurve.

◆ isOnlyLines()

bool OdDbPolyline::isOnlyLines ( ) const

Returns true if and only if this Polyline entity consists solely of line segments.

◆ isPeriodic()

virtual bool OdDbPolyline::isPeriodic ( ) const
virtual

Returns true if and only if this Curve object is periodic.

Reimplemented from OdDbCurve.

◆ isPlanar()

virtual bool OdDbPolyline::isPlanar ( ) const
virtual

Returns true if and only if this entity is planar.

Reimplemented from OdDbEntity.

◆ maximizeMemory()

void OdDbPolyline::maximizeMemory ( )

Decompresses this Polyline entity to expedite modifications.

◆ minimizeMemory()

void OdDbPolyline::minimizeMemory ( )

Compresses this Polyline entity.

Remarks
Takes processing time, and should not be used until all edits are complete.

◆ normal()

OdGeVector3d OdDbPolyline::normal ( ) const

Returns the WCS normal to the plane of this entity (DXF 210).

◆ numVerts()

unsigned int OdDbPolyline::numVerts ( ) const

Returns the number of vertices in this Polyline entity (DXF 90).

◆ ODDB_DECLARE_MEMBERS()

OdDbPolyline::ODDB_DECLARE_MEMBERS ( OdDbPolyline  )

◆ onSegAt()

virtual bool OdDbPolyline::onSegAt ( unsigned int  segmentIndex,
const OdGePoint2d point2d,
double &  param 
) const
virtual

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.

Parameters
segmentIndex[in] Segment index.
point2d[in] The OCS point to query.
param[out] The parameter at that point.
Remarks
The returned parameter will be in the parametric form of the segment (linear or arc).

◆ removeVertexAt()

void OdDbPolyline::removeVertexAt ( unsigned int  vertexIndex)

Removes the specified vertex from this Polyline entity.

Parameters
vertexIndex[in] Vertex index.

◆ reset()

void OdDbPolyline::reset ( bool  reuse,
unsigned int  numVerts 
)

Resets the vertex data for this Polyline entity.

Parameters
reuse[in] True to retain vertices.
numVerts[in] Number of vertices to retain.
Remarks
If reuse is true, the vertex list will be expanded or truncated such that exactly numVerts vertices exist.

If reuse is false, all vertices will be deleted.

◆ reverseCurve()

virtual OdResult OdDbPolyline::reverseCurve ( )
virtual

Reimplemented from OdDbCurve.

◆ segType()

SegType OdDbPolyline::segType ( unsigned int  segmentIndex) const

Returns the type of the specified segment of this Polyline entity.

Parameters
segmentIndex[in] Segment index.
Returns
Returns one of the following:

Description kLine Straight segment with length > 0.0 kArc Arc segment with length > 0.0 kCoincident Segment with length == 0.0 kPoint Polyline with 1 vertex. kEmpty Polyline with 0 vertices.

◆ setBulgeAt()

void OdDbPolyline::setBulgeAt ( unsigned int  index,
double  bulge 
)

Sets the bulge of the specified segment of this Polyline entity.

Parameters
index[in] Segment index.
bulge[in] Bulge.
Remarks
Bulge is the tangent of 1/4 the included angle of the arc segment, measured counterclockwise.

◆ setClosed()

void OdDbPolyline::setClosed ( bool  closed)

Controls the closed state for this Polyline entity (DXF 70, bit 0x01=1).

Parameters
closed[in] Controls closed.

◆ setConstantWidth()

void OdDbPolyline::setConstantWidth ( double  constantWidth)

Sets this Polyline entity to a constant width (DXF 43).

Parameters
constantWidth[in] Constant width.

◆ setElevation()

void OdDbPolyline::setElevation ( double  elevation)

Sets the elevation of this entity in the OCS (DXF 38).

Parameters
elevation[in] Elevation.
Remarks
The elevation is the distance from the WCS origin to the plane of this entity.

◆ setFromOdGeCurve()

virtual OdResult OdDbPolyline::setFromOdGeCurve ( const OdGeCurve3d geCurve,
OdGeVector3d normal = NULL,
const OdGeTol tol = OdGeContext::gTol 
)
virtual

Takes an OdGeCurve3d and sets this OdDbCurve to be geometrically identical to the OdGeCurve3d.

Parameters
geCurve[in] reference to an OdGeCurve3d.
normal[in] Optional normal vector. If this parameter is supplied then it must be a valid vector that is perpendicular to the input geCurve, and this vector will become the normal vector of the output pDbCurve. If this parameter is not supplied, then this function will compute the normal vector itself.
tol[in] Optional tolerance.
Returns
Returns eOk if successful.

Reimplemented from OdDbCurve.

◆ setNormal()

void OdDbPolyline::setNormal ( const OdGeVector3d normal)

Sets the WCS normal to the plane of this entity (DXF 210).

Parameters
normal[in] Normal.

◆ setPlinegen()

void OdDbPolyline::setPlinegen ( bool  plinegen)

Controls the linetype generation for this Polyline entity (DXF 70, bit 0x80).

Remarks
Linetype generation on indicates that the linetype pattern of this Polyline entity is continuously generated around all vertices.

Linetype generation off indicates that the linetype pattern of this Polyline entity is restarted at each vertex.

Parameters
plinegen[in] Controls linetype generation.

◆ setPointAt()

void OdDbPolyline::setPointAt ( unsigned int  vertexIndex,
const OdGePoint2d point2d 
)

Sets the OCS point for the specified vertex of this Polyline entity.

Parameters
vertexIndex[in] Vertex index.
point2d[in] OCS point of vertex.

◆ setThickness()

void OdDbPolyline::setThickness ( double  thickness)

Sets the thickness of this entity (DXF 39).

Parameters
thickness[in] Thickness.
Remarks
Thickness is the extrusion length along the normal.

◆ setVertexIdentifierAt()

void OdDbPolyline::setVertexIdentifierAt ( unsigned int  index,
OdInt32  suggestedId 
)

Sets the vertex identifier of the specified segment of this Polyline entity.

Parameters
index[in] Segment index.
suggestedId[in] Vertex identifier.

◆ setWidthsAt()

void OdDbPolyline::setWidthsAt ( unsigned int  index,
double  startWidth,
double  endWidth 
)

Sets the start and end widths for the specified segment of this Polyline entity.

Parameters
index[in] Segment index.
startWidth[in] Start width for the vertex.
endWidth[in] End width for the vertex.

◆ subExplode()

virtual OdResult OdDbPolyline::subExplode ( OdRxObjectPtrArray entitySet) const
virtual

Reimplemented from OdDbEntity.

◆ subGetClassID()

virtual OdResult OdDbPolyline::subGetClassID ( void pClsid) const
virtual

Reimplemented from OdDbEntity.

◆ subGetGeomExtents()

virtual OdResult OdDbPolyline::subGetGeomExtents ( OdGeExtents3d extents) const
virtual

Reimplemented from OdDbEntity.

◆ subGetGsMarkersAtSubentPath()

virtual OdResult OdDbPolyline::subGetGsMarkersAtSubentPath ( const OdDbFullSubentPath subPath,
OdGsMarkerArray gsMarkers 
) const
virtual

Reimplemented from OdDbEntity.

◆ subGetSubentPathsAtGsMarker()

virtual OdResult OdDbPolyline::subGetSubentPathsAtGsMarker ( OdDb::SubentType  type,
OdGsMarker  gsMark,
const OdGePoint3d pickPoint,
const OdGeMatrix3d viewXform,
OdDbFullSubentPathArray subentPaths,
const OdDbObjectIdArray pEntAndInsertStack 
) const
virtual

Reimplemented from OdDbEntity.

◆ subGetTransformedCopy()

virtual OdResult OdDbPolyline::subGetTransformedCopy ( const OdGeMatrix3d mat,
OdDbEntityPtr pCopy 
) const
virtual

Reimplemented from OdDbEntity.

◆ subSubentPtr()

virtual OdDbEntityPtr OdDbPolyline::subSubentPtr ( const OdDbFullSubentPath path) const
virtual

Reimplemented from OdDbEntity.

◆ subTransformBy()

virtual OdResult OdDbPolyline::subTransformBy ( const OdGeMatrix3d xfm)
virtual

Reimplemented from OdDbEntity.

◆ subViewportDraw()

virtual void OdDbPolyline::subViewportDraw ( OdGiViewportDraw pVd) const
virtual

Reimplemented from OdDbEntity.

◆ subWorldDraw()

virtual bool OdDbPolyline::subWorldDraw ( OdGiWorldDraw pWd) const
virtual

Reimplemented from OdDbEntity.

◆ TD_USING() [1/2]

OdDbPolyline::TD_USING ( OdDbCurve::getFirstDeriv  )

◆ TD_USING() [2/2]

OdDbPolyline::TD_USING ( OdDbCurve::getSecondDeriv  )

◆ thickness()

double OdDbPolyline::thickness ( ) const

Returns the thickness of this entity (DXF 39).

Remarks
Thickness is the extrusion length along the normal.

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