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

#include <DbMLeader.h>

Inheritance diagram for OdDbMLeader:
OdDbEntity OdDbObject OdGiDrawable OdRxObject

Public Types

enum  MoveType { kMoveAllPoints , kMoveAllExceptArrowHeaderPoints , kMoveContentAndDoglegPoints }
 
enum  gsMarkType {
  kNone = 0 , kArrowMark = 1 , kLeaderLineMark = kArrowMark + MAX_LEADERLINE_NUMBER , kDoglegMark = kLeaderLineMark + MAX_LEADERLINE_NUMBER ,
  kMTextMark = kDoglegMark + MAX_LEADER_NUMBER , kMTextUnderLineMark = kMTextMark + 1 , kToleranceMark = kMTextUnderLineMark + 1 , kBlockMark = kToleranceMark + 1 ,
  kBlockAttribute = kBlockMark + 1
}
 
enum  PropertyOverrideType {
  kLeaderLineType = 0 , kLeaderLineColor = 1 , kLeaderLineTypeId = 2 , kLeaderLineWeight = 3 ,
  kEnableLanding = 4 , kLandingGap = 5 , kEnableDogleg = 6 , kDoglegLength = 7 ,
  kArrowSymbolId = 8 , kArrowSize = 9 , kContentType = 10 , kTextStyleId = 11 ,
  kTextLeftAttachmentType = 12 , kTextAngleType = 13 , kTextAlignmentType = 14 , kTextColor = 15 ,
  kTextHeight = 16 , kEnableFrameText = 17 , kDefaultMText = 18 , kBlockId = 19 ,
  kBlockColor = 20 , kBlockScale = 21 , kBlockRotation = 22 , kBlockConnectionType = 23 ,
  kScale = 24 , kTextRightAttachmentType = 25 , kTextSwitchAlignmentType = 26 , kTextAttachmentDirection = 27 ,
  kTextTopAttachmentType = 28 , kTextBottomAttachmentType = 29 , kExtendLeaderToText = 30 , kSize = kExtendLeaderToText + 1
}
 
enum  LeaderLineOverrideType {
  kOverrideLeaderType = 0 , kOverrideLineColor , kOverrideLineTypeId , kOverrideLineWeight ,
  kOverrideArrowSize , kOverrideArrowSymbolId
}
 
- 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 (OdDbMLeader)
 
 OdDbMLeader ()
 
virtual OdResult dwgInFields (OdDbDwgFiler *filer) ODRX_OVERRIDE
 
virtual void dwgOutFields (OdDbDwgFiler *filer) const ODRX_OVERRIDE
 
virtual OdResult dxfInFields (OdDbDxfFiler *filer) ODRX_OVERRIDE
 
virtual void dxfOutFields (OdDbDxfFiler *filer) const ODRX_OVERRIDE
 
void setOverride (PropertyOverrideType propertyType, bool isOverride=true)
 
bool isOverride (PropertyOverrideType propertyType) const
 
OdResult setScale (double scale)
 
double scale () const
 
OdResult getBlockAttributeValue (OdDbObjectId attdefId, OdDbAttributePtr &pAtt) const
 
OdResult setBlockAttributeValue (OdDbObjectId attdefId, const OdDbAttribute *pAtt)
 
OdGePlane plane () const
 
void setPlane (const OdGePlane &plane)
 
OdGeVector3d normal () const
 
OdResult moveMLeader (const OdGeVector3d &vector, MoveType moveType, bool bAutoSwitchDogleg=true)
 
OdResult getContentGeomExtents (OdGeExtents3d &extents) const
 
void getLeaderIndexes (OdIntArray &leaderIndexes)
 
void addLeader (int &leaderIndex)
 
void removeLeader (int leaderIndex)
 
void getLeaderLineIndexes (OdIntArray &leaderLineIndexes)
 
OdResult addLeaderLine (int leaderIndex, int &leaderLineIndex)
 
OdResult addLeaderLine (const OdGePoint3d &point, int &leaderLineIndex)
 
void removeLeaderLine (int leaderLineIndex)
 
OdResult addFirstVertex (int leaderLineIndex, const OdGePoint3d &point)
 
OdResult removeFirstVertex (int leaderLineIndex)
 
OdResult getFirstVertex (int leaderLineIndex, OdGePoint3d &point) const
 
OdResult setFirstVertex (int leaderLineIndex, const OdGePoint3d &point)
 
OdResult addLastVertex (int leaderLineIndex, const OdGePoint3d &point)
 
OdResult removeLastVertex (int leaderLineIndex)
 
OdResult getLastVertex (int leaderLineIndex, OdGePoint3d &point) const
 
OdResult setLastVertex (int leaderLineIndex, const OdGePoint3d &point)
 
OdResult numVertices (int leaderLineIndex, int &num) const
 
OdResult setVertex (int leaderLineIndex, int index, const OdGePoint3d &point)
 
void getVertex (int leaderLineIndex, int index, OdGePoint3d &point)
 
void getLeaderIndex (int leaderLineIndex, int &leaderIndex)
 
void getLeaderLineIndexes (int leaderIndex, OdIntArray &leaderLineIndexes)
 
void setDoglegDirection (int leaderIndex, const OdGeVector3d &vector)
 
void getDoglegDirection (int leaderIndex, OdGeVector3d &vector)
 
void setLeaderLineType (OdDbMLeaderStyle::LeaderType leaderLineType)
 
OdDbMLeaderStyle::LeaderType leaderLineType () const
 
void setLeaderLineColor (const OdCmColor &leaderLineColor)
 
OdCmColor leaderLineColor () const
 
void setLeaderLineTypeId (OdDbObjectId leaderLineTypeId)
 
OdDbObjectId leaderLineTypeId () const
 
void setLeaderLineWeight (OdDb::LineWeight leaderLineWeight)
 
OdDb::LineWeight leaderLineWeight () const
 
void setLandingGap (double landingGap)
 
double landingGap () const
 
void setEnableLanding (bool enableLanding)
 
bool enableLanding () const
 
void setEnableDogleg (bool enableDogleg)
 
bool enableDogleg () const
 
void setDoglegLength (int leaderIndex, double dDoglegLength)
 
double doglegLength (int leaderIndex)
 
OdResult setDoglegLength (double doglegLength)
 
double doglegLength () const
 
void setArrowSymbolId (OdDbObjectId arrowSymbolId)
 
OdDbObjectId arrowSymbolId () const
 
void setArrowSize (double arrowSize)
 
double arrowSize () const
 
void setContentType (OdDbMLeaderStyle::ContentType contentType)
 
OdDbMLeaderStyle::ContentType contentType () const
 
void setTextStyleId (OdDbObjectId textStyleId)
 
OdDbObjectId textStyleId () const
 
void setTextAttachmentType (OdDbMLeaderStyle::TextAttachmentType textAttachmentType, OdDbMLeaderStyle::LeaderDirectionType leaderDirection)
 
OdDbMLeaderStyle::TextAttachmentType textAttachmentType (OdDbMLeaderStyle::LeaderDirectionType leaderDirection) const
 
void setTextAngleType (OdDbMLeaderStyle::TextAngleType textAngleType)
 
OdDbMLeaderStyle::TextAngleType textAngleType () const
 
void setTextAlignmentType (OdDbMLeaderStyle::TextAlignmentType textAlignmentType)
 
OdDbMLeaderStyle::TextAlignmentType textAlignmentType () const
 
void setTextColor (const OdCmColor &textColor)
 
OdCmColor textColor () const
 
void setTextHeight (double textHeight)
 
double textHeight () const
 
void setEnableFrameText (bool enableFrameText)
 
bool enableFrameText () const
 
void setMText (const OdDbMText *pMText)
 
OdDbMTextPtr mtext () const
 
void setBlockContentId (OdDbObjectId blockId)
 
OdDbObjectId blockContentId () const
 
void setBlockColor (const OdCmColor &blockColor)
 
OdCmColor blockColor () const
 
void setBlockScale (const OdGeScale3d &scale)
 
OdGeScale3d blockScale () const
 
void setBlockRotation (double rotation)
 
double blockRotation () const
 
void setBlockConnectionType (OdDbMLeaderStyle::BlockConnectionType blockConnectionType)
 
OdDbMLeaderStyle::BlockConnectionType blockConnectionType () const
 
void setEnableAnnotationScale (bool enableAnnotationScale)
 
bool enableAnnotationScale () const
 
void setMLeaderStyle (OdDbObjectId newStyleId)
 
OdDbObjectId MLeaderStyle ()
 
OdResult getOverridedMLeaderStyle (OdDbMLeaderStyle &mleaderStyle)
 
OdResult setContextDataManager (void *pContextDataManager)
 
voidgetContextDataManager () const
 
void setBlockPosition (const OdGePoint3d &position)
 
void getBlockPosition (OdGePoint3d &position)
 
void setTextLocation (const OdGePoint3d &location)
 
void getTextLocation (OdGePoint3d &location)
 
OdResult setToleranceLocation (const OdGePoint3d &location)
 
OdResult getToleranceLocation (OdGePoint3d &location) const
 
void setArrowSymbolId (int leaderLineIndex, OdDbObjectId arrowSymbolId)
 
OdDbObjectId arrowSymbolId (int leaderLineIndex) const
 
bool hasContent () const
 
OdResult connectionPoint (const OdGeVector3d &vect, OdGePoint3d &point) const
 
OdResult connectionPoint (const OdGeVector3d &vect, OdGePoint3d &point, OdDbMLeaderStyle::TextAttachmentDirection direction) const
 
OdResult recomputeBreakPoints ()
 
OdResult postMLeaderToDb (OdDbDatabase *pDb)
 
OdResult updateLeaderLinePosition ()
 
OdResult removeLeaderLineRefAssoc (int leaderLineIndex) const
 
OdResult updateContentScale (OdDbMLeaderObjectContextData *pContext)
 
virtual bool isPlanar () const ODRX_OVERRIDE
 
virtual OdResult getPlane (OdGePlane &plane, OdDb::Planarity &planarity) const ODRX_OVERRIDE
 
void setTextAttachmentDirection (OdDbMLeaderStyle::TextAttachmentDirection direction)
 
OdDbMLeaderStyle::TextAttachmentDirection textAttachmentDirection () const
 
bool isOverride (int leaderLineIndex, LeaderLineOverrideType value)
 
void setLeaderLineType (int leaderLineIndex, OdDbMLeaderStyle::LeaderType leaderLineType)
 
OdDbMLeaderStyle::LeaderType leaderLineType (int leaderLineIndex) const
 
void setLeaderLineColor (int leaderLineIndex, const OdCmColor &leaderLineColor)
 
OdCmColor leaderLineColor (int leaderLineIndex) const
 
void setLeaderLineTypeId (int leaderLineIndex, OdDbObjectId leaderLineTypeId)
 
OdDbObjectId leaderLineTypeId (int leaderLineIndex) const
 
void setLeaderLineWeight (int leaderLineIndex, OdDb::LineWeight leaderLineWeight)
 
OdDb::LineWeight leaderLineWeight (int leaderLineIndex) const
 
void setArrowSize (int leaderLineIndex, double arrowSize)
 
double arrowSize (int leaderLineIndex) const
 
void setExtendLeaderToText (bool bSet)
 
bool extendLeaderToText () const
 
virtual void copyFrom (const OdRxObject *pSource) ODRX_OVERRIDE
 
- 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 explodeGeometry (OdRxObjectPtrArray &entitySet) const
 
virtual OdResult explodeGeometryToBlock (OdDbBlockTableRecord *pBlockRecord, OdDbObjectIdArray *ids=0)
 
void setDatabaseDefaults (OdDbDatabase *pDb=0, bool doSubents=false)
 
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 OdResult dxfInFields_R12 (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields_R12 (OdDbDxfFiler *pFiler) const
 
virtual OdGiDrawabledrawable ()
 
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)
 
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
 
virtual OdGeMatrix3d getEcs () const
 
- 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)
 
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 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
 

Protected Member Functions

virtual bool subWorldDraw (OdGiWorldDraw *pWd) const ODRX_OVERRIDE
 
virtual void subViewportDraw (OdGiViewportDraw *mode) const ODRX_OVERRIDE
 
virtual OdResult subTransformBy (const OdGeMatrix3d &xform) ODRX_OVERRIDE
 
virtual OdResult subMoveGripPointsAt (const OdIntArray &indices, const OdGeVector3d &offset)
 
virtual OdResult subGetSubentPathsAtGsMarker (OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &pickPoint, const OdGeMatrix3d &xfm, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack=0) const ODRX_OVERRIDE
 
virtual OdResult subGetGsMarkersAtSubentPath (const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const ODRX_OVERRIDE
 
virtual OdResult subDeleteSubentPaths (const OdDbFullSubentPathArray &paths) ODRX_OVERRIDE
 
virtual OdDbEntityPtr subSubentPtr (const OdDbFullSubentPath &path) const ODRX_OVERRIDE
 
virtual void subClose () ODRX_OVERRIDE
 
virtual OdResult subExplode (OdRxObjectPtrArray &entitySet) const ODRX_OVERRIDE
 
virtual OdResult subGetGeomExtents (OdGeExtents3d &extents) const ODRX_OVERRIDE
 
virtual OdResult subGetClassID (void *pClsid) const ODRX_OVERRIDE
 
virtual OdResult subGetTransformedCopy (const OdGeMatrix3d &xform, OdDbEntityPtr &pEnt) const
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *pTraits) const ODRX_OVERRIDE
 
virtual void subSetDatabaseDefaults (OdDbDatabase *pDb, bool doSubents) ODRX_OVERRIDE
 
virtual OdDbObjectPtr subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pObj, bool bPrimary) const ODRX_OVERRIDE
 
virtual OdDbObjectPtr subDeepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pObj, bool bPrimary) const ODRX_OVERRIDE
 
virtual void modified (const OdDbObject *pObj) ODRX_OVERRIDE
 
- Protected Member Functions inherited from OdDbEntity
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 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 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
 

Additional Inherited Members

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

Detailed Description

This class is the main class used for the multiple leader (MLeader) objects.

See also
TD_Db

<group OdDb_Classes>

Definition at line 48 of file DbMLeader.h.

Member Enumeration Documentation

◆ gsMarkType

Enumeration for MLeader GS mark type.

Enumerator
kNone 

No GS mark.

kArrowMark 

GS mark of arrow.

kLeaderLineMark 

GS mark of leader line.

kDoglegMark 

GS mark of dog-leg.

kMTextMark 

GS mark of MText content.

kMTextUnderLineMark 

GS mark of MText underline content (includes text frame if present).

kToleranceMark 

GS mark of tolerance content.

kBlockMark 

GS mark of block content.

kBlockAttribute 

GS mark of block attribute content.

Definition at line 74 of file DbMLeader.h.

◆ LeaderLineOverrideType

Enumeration of the individual leader line properties which can be overridden.

Enumerator
kOverrideLeaderType 

Leader line type (OdDbMLeaderStyle::LeaderType).

kOverrideLineColor 

Leader line color.

kOverrideLineTypeId 

Leader line linetype ID.

kOverrideLineWeight 

Leader line weight.

kOverrideArrowSize 

Leader line arrow size.

kOverrideArrowSymbolId 

Leader line arrow symbol.

Definition at line 1393 of file DbMLeader.h.

◆ MoveType

Enumeration for MLeader move type.

Enumerator
kMoveAllPoints 

All MLeader points should be moved.

kMoveAllExceptArrowHeaderPoints 

All MLeader points should be moved, except the arrowhead points of the leader line.

kMoveContentAndDoglegPoints 

MLeader content points and dog-leg points should be moved.

Definition at line 54 of file DbMLeader.h.

◆ PropertyOverrideType

Enumeration for MLeader properties which can be overridden.

Enumerator
kLeaderLineType 

Leader line type.

kLeaderLineColor 

Leader line color.

kLeaderLineTypeId 

Leader line type ID.

kLeaderLineWeight 

Leader line weight.

kEnableLanding 

Enable landing.

kLandingGap 

Landing gap.

kEnableDogleg 

Enable dog-leg.

kDoglegLength 

Dog-leg length.

kArrowSymbolId 

Arrow symbol ID.

kArrowSize 

Arrow symbol size.

kContentType 

MLeader content type.

kTextStyleId 

Text style ID (of MText).

kTextLeftAttachmentType 

Text left attachment type (of MText).

kTextAngleType 

Text angle type (of MText).

kTextAlignmentType 

Text alignment type (of MText).

kTextColor 

Text color (of MText).

kTextHeight 

Text height (of MText).

kEnableFrameText 

Enable text frame.

kDefaultMText 

Enable use of default MText (from MLeaderStyle).

kBlockId 

Block content block ID.

kBlockColor 

Block content color.

kBlockScale 

Block content scale.

kBlockRotation 

Block content rotation.

kBlockConnectionType 

Block content connection type.

kScale 

MLeader scale.

kTextRightAttachmentType 

Text right attachment type (of MText).

kTextSwitchAlignmentType 

Text switch alignment type (of MText).

kTextAttachmentDirection 

Text attachment direction (of MText).

kTextTopAttachmentType 

Text top attachment type (of MText).

kTextBottomAttachmentType 

Text bottom attachment type (of MText).

kExtendLeaderToText 

Extend leader line to text.

kSize 

Size of bit set.

Definition at line 124 of file DbMLeader.h.

Constructor & Destructor Documentation

◆ OdDbMLeader()

OdDbMLeader::OdDbMLeader ( )

Member Function Documentation

◆ addFirstVertex()

OdResult OdDbMLeader::addFirstVertex ( int  leaderLineIndex,
const OdGePoint3d point 
)

Inserts a new first vertex into the specified leader line.

Parameters
leaderLineIndex[in] Index of the leader line to which the vertex will be added.
point[in] The position of the vertex.

◆ addLastVertex()

OdResult OdDbMLeader::addLastVertex ( int  leaderLineIndex,
const OdGePoint3d point 
)

Appends a new last vertex onto the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
point[in] The new vertex position.
Returns
Returns eOk if successful.

◆ addLeader()

void OdDbMLeader::addLeader ( int &  leaderIndex)

Causes a new cluster to be added to this MLeader object, and returns the index of the new cluster.

Parameters
leaderIndex[out] Index of newly added cluster.
Remarks
A leader cluster consists of a dog-leg and leader lines.

◆ addLeaderLine() [1/2]

OdResult OdDbMLeader::addLeaderLine ( const OdGePoint3d point,
int &  leaderLineIndex 
)

Adds a new leader line to this MLeader. The first point of the new leader line is passed in.

Parameters
point[in] Specifies the first point of the new leader line.
leaderLineIndex[out] Receives the index of the newly added leader line.
Returns
Returns eOk if successful.

◆ addLeaderLine() [2/2]

OdResult OdDbMLeader::addLeaderLine ( int  leaderIndex,
int &  leaderLineIndex 
)

Adds a leader line to the leader cluster specified by the supplied index.

Parameters
leaderIndex[in] Leader cluster index.
leaderLineIndex[out] Receives the index of the newly added leader line.

◆ arrowSize() [1/2]

double OdDbMLeader::arrowSize ( ) const

Returns the arrow size for this MLeader object.

◆ arrowSize() [2/2]

double OdDbMLeader::arrowSize ( int  leaderLineIndex) const

Returns the arrow size for a specified leader line.

Parameters
leaderLineIndex[in] Leader line index.

◆ arrowSymbolId() [1/2]

OdDbObjectId OdDbMLeader::arrowSymbolId ( ) const

Returns the arrow symbol for this MLeader (by ObjectId).

◆ arrowSymbolId() [2/2]

OdDbObjectId OdDbMLeader::arrowSymbolId ( int  leaderLineIndex) const

Returns the arrow head symbol for a specified leader line, by ObjectId.

Parameters
leaderLineIndex[in] Leader line index.

◆ blockColor()

OdCmColor OdDbMLeader::blockColor ( ) const

Returns the color used for block content.

◆ blockConnectionType()

OdDbMLeaderStyle::BlockConnectionType OdDbMLeader::blockConnectionType ( ) const

Returns the block connection type for this MLeader, which specifies how the referenced block is connected to the leader lines.

◆ blockContentId()

OdDbObjectId OdDbMLeader::blockContentId ( ) const

Returns the referenced block for this MLeader, by block ObjectId.

◆ blockRotation()

double OdDbMLeader::blockRotation ( ) const

Returns the rotation used by the referenced block.

◆ blockScale()

OdGeScale3d OdDbMLeader::blockScale ( ) const

Returns the scale used by the referenced block.

◆ connectionPoint() [1/2]

OdResult OdDbMLeader::connectionPoint ( const OdGeVector3d vect,
OdGePoint3d point 
) const

Returns the connection point of this MLeader, for the speciefied direction.

Parameters
vect[in] The specified direction.
point[out] Receives the connection point.

◆ connectionPoint() [2/2]

OdResult OdDbMLeader::connectionPoint ( const OdGeVector3d vect,
OdGePoint3d point,
OdDbMLeaderStyle::TextAttachmentDirection  direction 
) const

Returns the connection point of this MLeader, for the speciefied direction.

Parameters
vect[in] The specified direction.
point[out] Receives the connection point. direction The text attachment direction of MText. (Horizontally by default).

◆ contentType()

OdDbMLeaderStyle::ContentType OdDbMLeader::contentType ( ) const

Returns the content type for this MLeader object.

◆ copyFrom()

virtual void OdDbMLeader::copyFrom ( const OdRxObject pSource)
virtual

Copies the contents of the specified object into this object when possible.

Parameters
pSource[in] Pointer to the source object.
Remarks
The source object and this object need not be of the same type.
This function is meaningful only when implemented by custom classes.

Throws:

Cause eNullObjectPointer pSource->isNull()

Reimplemented from OdDbEntity.

◆ doglegLength() [1/2]

double OdDbMLeader::doglegLength ( ) const

◆ doglegLength() [2/2]

double OdDbMLeader::doglegLength ( int  leaderIndex)

Returns the length for the dog-leg of the specified leader cluster.

Parameters
leaderIndex[in] Leader index.

◆ dwgInFields()

virtual OdResult OdDbMLeader::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 OdDbMLeader::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 OdDbMLeader::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.

◆ dxfOutFields()

virtual void OdDbMLeader::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.

◆ enableAnnotationScale()

bool OdDbMLeader::enableAnnotationScale ( ) const

Returns the annotation scale enabled status for this MLeader.

◆ enableDogleg()

bool OdDbMLeader::enableDogleg ( ) const

Returns the enabled/disabled status for dog-leg leader line.

◆ enableFrameText()

bool OdDbMLeader::enableFrameText ( ) const

Returns the text frame visibility for MText content.

◆ enableLanding()

bool OdDbMLeader::enableLanding ( ) const

Returns the enabled/disabled status for leader landing line.

◆ extendLeaderToText()

bool OdDbMLeader::extendLeaderToText ( ) const

Returns extend to text mode flag.

◆ getBlockAttributeValue()

OdResult OdDbMLeader::getBlockAttributeValue ( OdDbObjectId  attdefId,
OdDbAttributePtr pAtt 
) const

Returns the specified attribute from the associated block content.

Parameters
attdefId[in] ObjectID of an attribute definition.
pAtt[out] Returned attribute object corresponding to attdefId.
Remarks
If successful, returns eOk.

◆ getBlockPosition()

void OdDbMLeader::getBlockPosition ( OdGePoint3d position)

Returns the position for the block referenced by this MLeader.

Parameters
position[out] Receives the block position.

◆ getContentGeomExtents()

OdResult OdDbMLeader::getContentGeomExtents ( OdGeExtents3d extents) const

Returns the the extents of the content for this MLeader.

Parameters
extents[out] Receives the content extents.
Returns
Returns eOk if successful.

◆ getContextDataManager()

void* OdDbMLeader::getContextDataManager ( ) const

Returns the context data manager for this MLeader object.

◆ getDoglegDirection()

void OdDbMLeader::getDoglegDirection ( int  leaderIndex,
OdGeVector3d vector 
)

Returns the dog-leg direction for the specified leader cluster.

Remarks
Parameters
leaderIndex[in] Leader index.
vector[out] Receives the dog-leg direction.

◆ getFirstVertex()

OdResult OdDbMLeader::getFirstVertex ( int  leaderLineIndex,
OdGePoint3d point 
) const

Returns the first vertex from the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
point[out] Receives the first vertex.
Returns
Returns eOk if successful.

◆ getLastVertex()

OdResult OdDbMLeader::getLastVertex ( int  leaderLineIndex,
OdGePoint3d point 
) const

Returns the last vertex from the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
point[out] Receives the last vertex from the specified leader line.
Returns
Returns eOk if successful.

◆ getLeaderIndex()

void OdDbMLeader::getLeaderIndex ( int  leaderLineIndex,
int &  leaderIndex 
)

Returns the index of the leader cluster which contains the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
leaderIndex[out] Receives the index of the lead line owner.

◆ getLeaderIndexes()

void OdDbMLeader::getLeaderIndexes ( OdIntArray leaderIndexes)
Parameters
leaderIndexes[out] Returned indexes.

◆ getLeaderLineIndexes() [1/2]

void OdDbMLeader::getLeaderLineIndexes ( int  leaderIndex,
OdIntArray leaderLineIndexes 
)

Returns the indexes of all leader lines for the specified leader.

Parameters
leaderIndex[in] Leader index.
leaderLineIndexes[out] Receives the indexes of the owned leader lines.

◆ getLeaderLineIndexes() [2/2]

void OdDbMLeader::getLeaderLineIndexes ( OdIntArray leaderLineIndexes)

Returns the indexes of all leader lines for this MLeader object.

Parameters
leaderIndexes[out] Receives the indexes of leader lines for this MLeader.

◆ getOverridedMLeaderStyle()

OdResult OdDbMLeader::getOverridedMLeaderStyle ( OdDbMLeaderStyle mleaderStyle)

Returns the property set for the MLeader, including override values.

Parameters
mleaderStyle[out] Receives the properties of this MLeader.
Returns
Returns eOk if successful.

◆ getPlane()

virtual OdResult OdDbMLeader::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.

◆ getTextLocation()

void OdDbMLeader::getTextLocation ( OdGePoint3d location)

Returns the location for the MText content associated with this MLeader.

Parameters
location[out] Receives the MText location.

◆ getToleranceLocation()

OdResult OdDbMLeader::getToleranceLocation ( OdGePoint3d location) const

Returns the location for MLeader tolerance content.

Parameters
location[out] Receives the MLeader tolerance content location.

Returns eOk if successful.

◆ getVertex()

void OdDbMLeader::getVertex ( int  leaderLineIndex,
int  index,
OdGePoint3d point 
)

Returns the position of a specified vertex in a specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
index[in] The index of the vertex.
point[out] Receives the position value for the specified vertex.
Returns
Returns eOk if successful.

◆ hasContent()

bool OdDbMLeader::hasContent ( ) const

Returns true if this MLeader has content, false otherwise.

◆ isOverride() [1/2]

bool OdDbMLeader::isOverride ( int  leaderLineIndex,
LeaderLineOverrideType  value 
)

Returns the override status for the specified line property.

Parameters
leaderLineIndex[in] Leader line index for which status is to be returned.
value[in] property identifier
Returns
Returns true if an override has been set for the specified property, false otherwise. (Override is set in the set* functions listed below, which accept leader line index as a first argument)

◆ isOverride() [2/2]

bool OdDbMLeader::isOverride ( PropertyOverrideType  propertyType) const

Returns the override status for the specified PropertyOverrideType.

Parameters
propertyType[in] PropertyOverrideType for which status is to be returned.
Returns
Returns true if an override has been set for the specified propertyType, false otherwise.

◆ isPlanar()

virtual bool OdDbMLeader::isPlanar ( ) const
virtual

Returns true if and only if this entity is planar.

Reimplemented from OdDbEntity.

◆ landingGap()

double OdDbMLeader::landingGap ( ) const

Returns the landing gap for this MLeader (gap between the leader tail and associated MText).

◆ leaderLineColor() [1/2]

OdCmColor OdDbMLeader::leaderLineColor ( ) const

Returns the leader line color for this MLeader.

◆ leaderLineColor() [2/2]

OdCmColor OdDbMLeader::leaderLineColor ( int  leaderLineIndex) const

Returns the leader line color for the specified leader line.

Parameters
leaderLineIndex[in] Leader line index for which color is to be returned.

◆ leaderLineType() [1/2]

OdDbMLeaderStyle::LeaderType OdDbMLeader::leaderLineType ( ) const

Returns the leader line type for this MLeader object.

◆ leaderLineType() [2/2]

OdDbMLeaderStyle::LeaderType OdDbMLeader::leaderLineType ( int  leaderLineIndex) const

Returns the leader line type for the specified leader line.

Parameters
leaderLineIndex[in] Leader line index for which type is to be returned.

◆ leaderLineTypeId() [1/2]

OdDbObjectId OdDbMLeader::leaderLineTypeId ( ) const

Returns the leader line linetype for this MLeader by OdDbObjectId.

◆ leaderLineTypeId() [2/2]

OdDbObjectId OdDbMLeader::leaderLineTypeId ( int  leaderLineIndex) const

Returns the leader line linetype for the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.

◆ leaderLineWeight() [1/2]

OdDb::LineWeight OdDbMLeader::leaderLineWeight ( ) const

Returns the leader line weight for this MLeader.

◆ leaderLineWeight() [2/2]

OdDb::LineWeight OdDbMLeader::leaderLineWeight ( int  leaderLineIndex) const

Returns the leader line weight for the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.

◆ MLeaderStyle()

OdDbObjectId OdDbMLeader::MLeaderStyle ( )

Returns the MLeaderStyle used for this MLeader, by ObjectId.

◆ modified()

virtual void OdDbMLeader::modified ( const OdDbObject pObject)
protectedvirtual

Notification function called whenever an object is opened OdDb::kForWrite, a function has been called that could modify the contents of this object, and this object is now being closed.

Parameters
pObject[in] Pointer to the object that is being closed after being modified.
Remarks
The default implementation of this function does nothing. This function can be overridden in custom classes.

Reimplemented from OdDbObject.

◆ moveMLeader()

OdResult OdDbMLeader::moveMLeader ( const OdGeVector3d vector,
MoveType  moveType,
bool  bAutoSwitchDogleg = true 
)

Moves this MLeader object as specified by an input vector.

Parameters
vector[in] Vector which specifies the direction and distance of the move.
moveType[in] Indicates how to move the MLeader.
bAutoSwitchDogleg[in] If true, automatically switch leader lines after movoing the MLeader.
Returns
Returns eOk if successful.

◆ mtext()

OdDbMTextPtr OdDbMLeader::mtext ( ) const

Returns the MText content associated with this MLeader.

◆ normal()

OdGeVector3d OdDbMLeader::normal ( ) const

◆ numVertices()

OdResult OdDbMLeader::numVertices ( int  leaderLineIndex,
int &  num 
) const

Returns the number of vertices in the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
num[out] Receives the number of vertices in the specified leader line.
Returns
Returns eOk if successful.

◆ ODDB_DECLARE_MEMBERS()

OdDbMLeader::ODDB_DECLARE_MEMBERS ( OdDbMLeader  )

◆ plane()

OdGePlane OdDbMLeader::plane ( ) const

Returns the WCS plane containing this MLeader object.

◆ postMLeaderToDb()

OdResult OdDbMLeader::postMLeaderToDb ( OdDbDatabase pDb)

Adds this MLeader object to the Model Space block of the specified database.

Parameters
pDb[in] Database to which this MLeader object should be added.
Returns
Returns eOk if successful.

◆ recomputeBreakPoints()

OdResult OdDbMLeader::recomputeBreakPoints ( )

Recomputes the dimension break points.

Returns
Returns eOk if successful.

◆ removeFirstVertex()

OdResult OdDbMLeader::removeFirstVertex ( int  leaderLineIndex)

Removes the first vertex from the specified leader line.

Parameters
leaderLineIndex[in] Index of the leader line from which the first vertex will be removed.
Returns
Returns eOk if successful.

◆ removeLastVertex()

OdResult OdDbMLeader::removeLastVertex ( int  leaderLineIndex)

Removes the last vertex from the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
Returns
Returns eOk if successful.

◆ removeLeader()

void OdDbMLeader::removeLeader ( int  leaderIndex)

Removes the leader cluster specified by the passed-in index.

Parameters
leaderIndex[in] Index of the cluster to be removed.
Remarks
A leader cluster consists of a dog-leg and leader lines.

◆ removeLeaderLine()

void OdDbMLeader::removeLeaderLine ( int  leaderLineIndex)

Removes the leader line specified by the passed-in index.

Parameters
leaderLineIndex[in] Index of the leader line to remove.
Remarks
Note that removal of all leader lines will cause the leader cluster to be removed as well.

◆ removeLeaderLineRefAssoc()

OdResult OdDbMLeader::removeLeaderLineRefAssoc ( int  leaderLineIndex) const

Removes the specified leader line's geometry association.

Parameters
leaderLineIndex[in] Leader line index.
Returns
Returns eOk if successful.

◆ scale()

double OdDbMLeader::scale ( ) const

Returns the MLeader scale, which affects arrowhead size and content scale.

◆ setArrowSize() [1/2]

void OdDbMLeader::setArrowSize ( double  arrowSize)

Sets the arrow size for this MLeader object.

Parameters
arrowSize[in] Arrow size.
Remarks
The kArrowSize PropertyOverrideType override will be set as a result of calling this function.

◆ setArrowSize() [2/2]

void OdDbMLeader::setArrowSize ( int  leaderLineIndex,
double  arrowSize 
)

Sets the arrow size for the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
arrowSize[in] Arrow size.
Remarks
The kArrowSize PropertyOverrideType override will be set as a result of calling this function.

◆ setArrowSymbolId() [1/2]

void OdDbMLeader::setArrowSymbolId ( int  leaderLineIndex,
OdDbObjectId  arrowSymbolId 
)

Sets the arrow head symbol for a specified leader line, by ObjectId.

Parameters
leaderLineIndex[in] Leader line index.
arrowSymbolId[in] Arrow symbol ObjectId.
Returns
Returns eOk if successful.

◆ setArrowSymbolId() [2/2]

void OdDbMLeader::setArrowSymbolId ( OdDbObjectId  arrowSymbolId)

Sets the arrow symbol for this MLeader (by ObjectId).

Parameters
arrowSymbolId[in] Arrow symbol ObjectId.
Remarks
The kDoglegLength PropertyOverrideType override will be set as a result of calling this function. If this value is not set, the default arrow symbol will be used.

◆ setBlockAttributeValue()

OdResult OdDbMLeader::setBlockAttributeValue ( OdDbObjectId  attdefId,
const OdDbAttribute pAtt 
)

Sets the specified attribute within associated block content.

Parameters
attdefId[in] ObjectID of attribute definition.
pAtt[in] Attribute object pointer.
Returns
Returns eOk if successful.

◆ setBlockColor()

void OdDbMLeader::setBlockColor ( const OdCmColor blockColor)

Sets the color used for block content.

Parameters
blockColor[in] Block color.
Remarks
The kBlockColor PropertyOverrideType override will be set as a result of calling this function.

◆ setBlockConnectionType()

void OdDbMLeader::setBlockConnectionType ( OdDbMLeaderStyle::BlockConnectionType  blockConnectionType)

Sets the block connection type for this MLeader, which specifies how the referenced block is connected to the leader lines.

Parameters
blockConnectionType[in] Block connection type.
Remarks
The kBlockConnectionType PropertyOverrideType override will be set as a result of calling this function.

◆ setBlockContentId()

void OdDbMLeader::setBlockContentId ( OdDbObjectId  blockId)

Sets the referenced block for this MLeader, by block ObjectId.

Parameters
blockId[in] Block table record ObjectId.
Remarks
The kBlockId PropertyOverrideType override will be set as a result of calling this function.

◆ setBlockPosition()

void OdDbMLeader::setBlockPosition ( const OdGePoint3d position)

Sets the position for the block referenced by this MLeader.

Parameters
position[in] Block position.

◆ setBlockRotation()

void OdDbMLeader::setBlockRotation ( double  rotation)

Sets the rotation used by the referenced block.

Parameters
rotation[in] Referenced block rotation.
Remarks
The kBlockRotation PropertyOverrideType override will be set as a result of calling this function.

◆ setBlockScale()

void OdDbMLeader::setBlockScale ( const OdGeScale3d scale)

Sets the scale used by the referenced block.

Parameters
scale[in] Referenced block scale.
Remarks
The kBlockScale PropertyOverrideType override will be set as a result of calling this function.

◆ setContentType()

void OdDbMLeader::setContentType ( OdDbMLeaderStyle::ContentType  contentType)

Sets the content type for this MLeader object.

Parameters
contentType[in] Content type.
Remarks
The kContentType PropertyOverrideType override will be set as a result of calling this function.

◆ setContextDataManager()

OdResult OdDbMLeader::setContextDataManager ( void pContextDataManager)

Sets the context data manager for this MLeader object.

Parameters
pContextDataManager[in] Pointer to a context data manager.
Returns
Returns eOk if successful.

◆ setDoglegDirection()

void OdDbMLeader::setDoglegDirection ( int  leaderIndex,
const OdGeVector3d vector 
)

Sets the dog-leg direction for the specified leader cluster.

Parameters
leaderIndex[in] Leader index.
vector[in] The new dog-leg direction.

◆ setDoglegLength() [1/2]

OdResult OdDbMLeader::setDoglegLength ( double  doglegLength)

◆ setDoglegLength() [2/2]

void OdDbMLeader::setDoglegLength ( int  leaderIndex,
double  dDoglegLength 
)

Sets the length for the dog-leg of the specified leader cluster.

Parameters
leaderIndex[in] Leader index.
dDoglegLength[in] Dog-leg length.
Remarks
The kDoglegLength PropertyOverrideType override will be set as a result of calling this function.

◆ setEnableAnnotationScale()

void OdDbMLeader::setEnableAnnotationScale ( bool  enableAnnotationScale)

Sets the annotation scale enabled status for this MLeader.

Parameters
enableAnnotationScale[in] true if annotation scale is to be enabled, false otherwise.

◆ setEnableDogleg()

void OdDbMLeader::setEnableDogleg ( bool  enableDogleg)

Sets the enabled/disabled status for dog-leg leader line.

Parameters
enableDogleg[in] Leader dog-leg line enabled status.
Remarks
The kEnableDogleg PropertyOverrideType override will be set as a result of calling this function.

◆ setEnableFrameText()

void OdDbMLeader::setEnableFrameText ( bool  enableFrameText)

Sets the text frame visibility for MText content.

Parameters
enableFrameText[in] True to enable the text frame, false otherwise.
Remarks
The kEnableFrameText PropertyOverrideType override will be set as a result of calling this function.

◆ setEnableLanding()

void OdDbMLeader::setEnableLanding ( bool  enableLanding)

Sets the enabled/disabled status for leader landing line.

Parameters
enableLanding[in] Leader landing line enabled status.
Remarks
The kEnableLanding PropertyOverrideType override will be set as a result of calling this function.

◆ setExtendLeaderToText()

void OdDbMLeader::setExtendLeaderToText ( bool  bSet)

Set extend to text mode.

Parameters
bSet[in] New value for extend to text mode flag.

◆ setFirstVertex()

OdResult OdDbMLeader::setFirstVertex ( int  leaderLineIndex,
const OdGePoint3d point 
)

Sets the first vertex of the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
point[in] New position for the first vertex.
Remarks
Note that this function only sets the values for an existing first vertex, but does not create any new vertices.
Returns
Returns eOk if successful.

◆ setLandingGap()

void OdDbMLeader::setLandingGap ( double  landingGap)

Sets the landing gap for this MLeader (gap between the leader tail and associated MText).

Parameters
landingGap[in] Landing gap (gap between the leader tail and associated MText).
Remarks
The kLandingGap PropertyOverrideType override will be set as a result of calling this function.

◆ setLastVertex()

OdResult OdDbMLeader::setLastVertex ( int  leaderLineIndex,
const OdGePoint3d point 
)

Sets the last vertex of the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
point[in] New last vertex for specified leader line.
Returns
Returns eOk if successful.

◆ setLeaderLineColor() [1/2]

void OdDbMLeader::setLeaderLineColor ( const OdCmColor leaderLineColor)

Sets the leader line color for this MLeader.

Parameters
leaderLineColor[in] Leader line color.
Remarks
The kLeaderLineColor PropertyOverrideType override will be set as a result of calling this function.

◆ setLeaderLineColor() [2/2]

void OdDbMLeader::setLeaderLineColor ( int  leaderLineIndex,
const OdCmColor leaderLineColor 
)

Sets the leader line color for the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
leaderLineColor[in] Leader line color.
Remarks
The kLeaderLineColor PropertyOverrideType override will be set as a result of calling this function.

◆ setLeaderLineType() [1/2]

void OdDbMLeader::setLeaderLineType ( int  leaderLineIndex,
OdDbMLeaderStyle::LeaderType  leaderLineType 
)

Sets the leader line type for the specified line.

Parameters
leaderLineIndex[in] Leader line index.
leaderLineType[in] Leader line type.
Remarks
The kLeaderLineType PropertyOverrideType override will be set as a result of calling this function.

◆ setLeaderLineType() [2/2]

void OdDbMLeader::setLeaderLineType ( OdDbMLeaderStyle::LeaderType  leaderLineType)

Sets the leader line type for this MLeader object.

Parameters
leaderLineType[in] Leader line type.
Remarks
The kLeaderLineType PropertyOverrideType override will be set as a result of calling this function.

◆ setLeaderLineTypeId() [1/2]

void OdDbMLeader::setLeaderLineTypeId ( int  leaderLineIndex,
OdDbObjectId  leaderLineTypeId 
)

Sets the leader line linetype for the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
leaderLineTypeId[in] Leader line type ObjectId.
Remarks
The kLeaderLineTypeId PropertyOverrideType override will be set as a result of calling this function.

◆ setLeaderLineTypeId() [2/2]

void OdDbMLeader::setLeaderLineTypeId ( OdDbObjectId  leaderLineTypeId)

Sets the leader line linetype for this MLeader by OdDbObjectId.

Parameters
leaderLineTypeId[in] Leader line type ObjectId.
Remarks
The kLeaderLineTypeId PropertyOverrideType override will be set as a result of calling this function.

◆ setLeaderLineWeight() [1/2]

void OdDbMLeader::setLeaderLineWeight ( int  leaderLineIndex,
OdDb::LineWeight  leaderLineWeight 
)

Sets the leader line weight for the specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
leaderLineWeight[in] Leader line weight.
Remarks
The kLeaderLineWeight PropertyOverrideType override will be set as a result of calling this function.

◆ setLeaderLineWeight() [2/2]

void OdDbMLeader::setLeaderLineWeight ( OdDb::LineWeight  leaderLineWeight)

Sets the leader line weight for this MLeader.

Parameters
leaderLineWeight[in] Leader line weight.
Remarks
The kLeaderLineWeight PropertyOverrideType override will be set as a result of calling this function.

◆ setMLeaderStyle()

void OdDbMLeader::setMLeaderStyle ( OdDbObjectId  newStyleId)

Sets the MLeaderStyle used for this MLeader, by ObjectId.

Parameters
newStyleId[in] New MLeaderStyle.

◆ setMText()

void OdDbMLeader::setMText ( const OdDbMText pMText)

Sets the MText object to be associated with this MLeader.

Parameters
pMText[in] The MText object to associate with this MLeader (if NULL, the default MText defined in the associated MLeaderStyle is used).
Remarks
The kDefaultMText PropertyOverrideType override will be set as a result of calling this function. The supplied MText object can be DBR or non-DBR.

◆ setOverride()

void OdDbMLeader::setOverride ( PropertyOverrideType  propertyType,
bool  isOverride = true 
)

Sets the override status for the specified PropertyOverrideType.

Parameters
propertyType[in] PropertyOverrideType which will be set.
isOverride[in] true if an override for propertyType is to be set, false otherwise.

◆ setPlane()

void OdDbMLeader::setPlane ( const OdGePlane plane)

Sets the WCS plane containing this MLeader object.

Parameters
plane[in] Place which will contain the MLeader.
Remarks
Note that MLeader geometry will be updated appropriately to reflect the new location.

◆ setScale()

OdResult OdDbMLeader::setScale ( double  scale)

Sets the MLeader scale, which affects arrowhead size and content scale.

Parameters
scale[in] The scale value.
Returns
Returns eOk if successful. Note that this function will set an override for kScale PropertyOverrideType.

◆ setTextAlignmentType()

void OdDbMLeader::setTextAlignmentType ( OdDbMLeaderStyle::TextAlignmentType  textAlignmentType)

Sets the text alignment type for MText content.

Parameters
textAlignmentType[in] Text alignment type.
Remarks
The kTextAlignmentType PropertyOverrideType override will be set as a result of calling this function.

◆ setTextAngleType()

void OdDbMLeader::setTextAngleType ( OdDbMLeaderStyle::TextAngleType  textAngleType)

Sets the angle type for MText content, with respect to the last leader line segment.

Parameters
textAngleType[in] Text text angle type.
Remarks
The kTextAngleType PropertyOverrideType override will be set as a result of calling this function.

◆ setTextAttachmentDirection()

void OdDbMLeader::setTextAttachmentDirection ( OdDbMLeaderStyle::TextAttachmentDirection  direction)

Sets the text attachment direction of MText.

Parameters
direction[in] The text attachment direction of MText.

◆ setTextAttachmentType()

void OdDbMLeader::setTextAttachmentType ( OdDbMLeaderStyle::TextAttachmentType  textAttachmentType,
OdDbMLeaderStyle::LeaderDirectionType  leaderDirection 
)

Sets the text attachment type used by MText content.

Parameters
textAttachmentType[in] Text attachment type.
leaderDirection[in] Text leader direction type.
Remarks
The kTextLeftAttachmentType/kTextRightAttachmentType PropertyOverrideType override will be set as a result of calling this function.

◆ setTextColor()

void OdDbMLeader::setTextColor ( const OdCmColor textColor)

Sets the text color for MText content.

Parameters
textColor[in] Text color.
Remarks
The kTextColor PropertyOverrideType override will be set as a result of calling this function.

◆ setTextHeight()

void OdDbMLeader::setTextHeight ( double  textHeight)

Sets the text height for MText content.

Parameters
textHeight[in] Text height.
Remarks
The kTextHeight PropertyOverrideType override will be set as a result of calling this function.

◆ setTextLocation()

void OdDbMLeader::setTextLocation ( const OdGePoint3d location)

Sets the location for the MText content associated with this MLeader.

Parameters
location[in] MLeader mtext location.

◆ setTextStyleId()

void OdDbMLeader::setTextStyleId ( OdDbObjectId  textStyleId)

Sets the textstyle used by MText content (by ObjectId).

Parameters
textStyleId[in] OdDbTextStyle ObjectId.
Remarks
The kTextStyleId PropertyOverrideType override will be set as a result of calling this function.

◆ setToleranceLocation()

OdResult OdDbMLeader::setToleranceLocation ( const OdGePoint3d location)

Sets the location for MLeader tolerance content.

Parameters
location[in] MLeader tolerance content location
Returns
Returns eOk if successful.

◆ setVertex()

OdResult OdDbMLeader::setVertex ( int  leaderLineIndex,
int  index,
const OdGePoint3d point 
)

Sets the position for a specified vertex in a specified leader line.

Parameters
leaderLineIndex[in] Leader line index.
index[in] The index of the vertex to be set.
point[in] New coordinate value for the specified vertex.
Returns
Returns eOk if successful.

◆ subClose()

virtual void OdDbMLeader::subClose ( )
protectedvirtual

Called as the first operation as this object is being closed, for database -resident objects only.

Remarks
This function is notified just before the current open operation is to be closed, giving this function the ability to perform necessary operatons.

When overriding this function:

1) If the OdDbObject's state is incorrect, throw exception.

2) Call parent class's subClose().

3) If other actions are required before close, do them.

The default implementation of this function does nothing. This function can be overridden in custom classes.

Reimplemented from OdDbObject.

◆ subDeepClone()

virtual OdDbObjectPtr OdDbMLeader::subDeepClone ( OdDbIdMapping ownerIdMap,
OdDbObject pObj,
bool  bPrimary 
) const
protectedvirtual

Reimplemented from OdDbEntity.

◆ subDeleteSubentPaths()

virtual OdResult OdDbMLeader::subDeleteSubentPaths ( const OdDbFullSubentPathArray paths)
protectedvirtual

Deletes one or more subentities from an entity.

Parameters
paths[in] The array of OdDbFullSubentPath objects.

Reimplemented from OdDbEntity.

◆ subExplode()

virtual OdResult OdDbMLeader::subExplode ( OdRxObjectPtrArray entitySet) const
protectedvirtual

Reimplemented from OdDbEntity.

◆ subGetClassID()

virtual OdResult OdDbMLeader::subGetClassID ( void pClsid) const
protectedvirtual

Reimplemented from OdDbEntity.

◆ subGetGeomExtents()

virtual OdResult OdDbMLeader::subGetGeomExtents ( OdGeExtents3d extents) const
protectedvirtual

Reimplemented from OdDbEntity.

◆ subGetGsMarkersAtSubentPath()

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

Returns all graphic system marker by subentity paths.

Parameters
subPath[in] The OdDbFullSubentPath to the subentity.
gsMarkers[in/out] The array of integer identifiers (GS markers).

Reimplemented from OdDbEntity.

◆ subGetSubentPathsAtGsMarker()

virtual OdResult OdDbMLeader::subGetSubentPathsAtGsMarker ( OdDb::SubentType  type,
OdGsMarker  gsMark,
const OdGePoint3d pickPoint,
const OdGeMatrix3d xfm,
OdDbFullSubentPathArray subentPaths,
const OdDbObjectIdArray pEntAndInsertStack = 0 
) const
protectedvirtual

Returns all subentity paths by graphic system marker.

Parameters
type[in] The subentity type being queried. ( Only OdDb::kClassSubentType )
gsMarker[in] The GS marker of the subentity being queried.
pickPoint[in] The WCS point being queried. ( Not used )
xrm[in] The WCS->DCS transformation matrix. ( Not used )
subentPaths[out] The array of OdDbFullSubentPath objects.
entAndInsertStack[in] The array of objectIds of the objects that are the nested containers of the subentity.

Reimplemented from OdDbEntity.

◆ subGetTransformedCopy()

virtual OdResult OdDbMLeader::subGetTransformedCopy ( const OdGeMatrix3d xform,
OdDbEntityPtr pEnt 
) const
protectedvirtual

Reimplemented from OdDbEntity.

◆ subMoveGripPointsAt()

virtual OdResult OdDbMLeader::subMoveGripPointsAt ( const OdIntArray indices,
const OdGeVector3d offset 
)
protectedvirtual

Reimplemented from OdDbEntity.

◆ subSetAttributes()

virtual OdUInt32 OdDbMLeader::subSetAttributes ( OdGiDrawableTraits pTraits) const
protectedvirtual

Sets the values of this object's subentity traits, and returns with the calling object's subentity traits.

Parameters
pTraits[in] Pointer to the OdGiDrawableTraits object to be set.
Remarks
When overriding subSetAttributes(), you must OR (|) the return value of <base class>::subSetAttributes(pTraits) with any flags you add.

A derived class may not remove flags for any reason.

The default implementation does nothing but returns kDrawableNone. This function can be overridden in custom classes.

Reimplemented from OdDbEntity.

◆ subSetDatabaseDefaults()

virtual void OdDbMLeader::subSetDatabaseDefaults ( OdDbDatabase pDb,
bool  doSubents 
)
protectedvirtual

Called by setDatabaseDefaults() after the values are set.

Parameters
pDb[in] Pointer to the database whose default values are to be used.
doSubents[in] Set to true if subentities should be processed
Remarks
If pDb is null, the database containing this entity is used.

This function allows custom classes to inspect and modify the values set by setDatabaseDefaults.

The default implementation of this function returns eNotApplicable. This function can be overridden in custom classes.

Remarks
This function is not intended to be called by the user.

Reimplemented from OdDbEntity.

◆ subSubentPtr()

virtual OdDbEntityPtr OdDbMLeader::subSubentPtr ( const OdDbFullSubentPath path) const
protectedvirtual

Create an object by OdDbFullSubentPath to the subentity.

Parameters
path[in] The OdDbFullSubentPath to the subentity.

Reimplemented from OdDbEntity.

◆ subTransformBy()

virtual OdResult OdDbMLeader::subTransformBy ( const OdGeMatrix3d xform)
protectedvirtual

Reimplemented from OdDbEntity.

◆ subViewportDraw()

virtual void OdDbMLeader::subViewportDraw ( OdGiViewportDraw mode) const
protectedvirtual

Reimplemented from OdDbEntity.

◆ subWblockClone()

virtual OdDbObjectPtr OdDbMLeader::subWblockClone ( OdDbIdMapping ownerIdMap,
OdDbObject pObj,
bool  bPrimary 
) const
protectedvirtual

Reimplemented from OdDbEntity.

◆ subWorldDraw()

virtual bool OdDbMLeader::subWorldDraw ( OdGiWorldDraw pWd) const
protectedvirtual

Reimplemented from OdDbEntity.

◆ textAlignmentType()

OdDbMLeaderStyle::TextAlignmentType OdDbMLeader::textAlignmentType ( ) const

Returns the text alignment type for MText content.

◆ textAngleType()

OdDbMLeaderStyle::TextAngleType OdDbMLeader::textAngleType ( ) const

Returns the angle type for MText content, with respect to the last leader line segment.

◆ textAttachmentDirection()

OdDbMLeaderStyle::TextAttachmentDirection OdDbMLeader::textAttachmentDirection ( ) const

Returns the text attachment direction of MText.

◆ textAttachmentType()

OdDbMLeaderStyle::TextAttachmentType OdDbMLeader::textAttachmentType ( OdDbMLeaderStyle::LeaderDirectionType  leaderDirection) const

Returns the text attachment type used by MText content.

Parameters
leaderDirection[in] Text leader direction type.

◆ textColor()

OdCmColor OdDbMLeader::textColor ( ) const

Returns the text color for MText content.

◆ textHeight()

double OdDbMLeader::textHeight ( ) const

Returns the text height for MText content.

◆ textStyleId()

OdDbObjectId OdDbMLeader::textStyleId ( ) const

Return the textstyle used by MText content (by ObjectId).

◆ updateContentScale()

OdResult OdDbMLeader::updateContentScale ( OdDbMLeaderObjectContextData pContext)

Updates this MLeaders's arrow head, landing gap, dog-leg length, and text height or block scale.

Parameters
pContext[in] MLeader context data.
Returns
Returns eOk if successful.

◆ updateLeaderLinePosition()

OdResult OdDbMLeader::updateLeaderLinePosition ( )

Updates leader line positions.

Returns
Returns eOk if successful.

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