CFx SDK Documentation 2024 SP0
|
#include <DbMLeaderStyle.h>
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Member Functions inherited from OdDbObject | |
OdDbObject () | |
virtual OdResult | subGetClassID (void *pClsid) const |
virtual OdDbObjectPtr | subDeepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const |
virtual OdDbObjectPtr | subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const |
Protected Member Functions inherited from OdGiDrawable | |
OdGiDrawable () | |
virtual OdUInt32 | subSetAttributes (OdGiDrawableTraits *traits) const =0 |
virtual bool | subWorldDraw (OdGiWorldDraw *wd) const =0 |
virtual void | subViewportDraw (OdGiViewportDraw *vd) const =0 |
virtual OdUInt32 | subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const |
virtual OdUInt32 | subRegenSupportFlags () const |
Protected Attributes inherited from OdDbObject | |
OdDbObjectImpl * | m_pImpl |
This class represents MLeader Style objects in an OdDbDatabase instance.
OdDbMLeaderStyle objects are stored in the ACAD_MLEADERSTYLE dictionary in the Named Object Dictionary of an OdDbDatabase. <group OdDb_Classes>
Definition at line 46 of file DbMLeaderStyle.h.
Enumeration for the block connection type of MLeader block content.
Enumerator | |
---|---|
kConnectExtents | MLeader should connect to the extents of the block. |
kConnectBase | MLeader should connect to the base point of the block. |
Definition at line 242 of file DbMLeaderStyle.h.
Enumeration for the content type of an MLeader.
Enumerator | |
---|---|
kNoneContent | The MLeader has no content. |
kBlockContent | The MLeader has block content. |
kMTextContent | The MLeader has mtext content. |
kToleranceContent | The MLeader has tolerance content. |
Definition at line 52 of file DbMLeaderStyle.h.
Enumeration for MLeader Line draw order type.
Enumerator | |
---|---|
kDrawLeaderHeadFirst | MLeader leaderline head should be drawn first. |
kDrawLeaderTailFirst | MLeader leaderline tail should be drawn first. |
Definition at line 92 of file DbMLeaderStyle.h.
Enumeration for the draw order type of an MLeader.
Enumerator | |
---|---|
kDrawContentFirst | MLeader content should be drawn first. |
kDrawLeaderFirst | MLeader leaderline should be drawn first. |
Definition at line 77 of file DbMLeaderStyle.h.
Enumeration for the direction type of an MLeader.
Enumerator | |
---|---|
kUnknownLeader | Unknown direction type. |
kLeftLeader | Direction type of left. |
kRightLeader | Direction type of right. |
kTopLeader | Direction type of top. |
kBottomLeader | Direction type of bottom. |
Definition at line 257 of file DbMLeaderStyle.h.
Enumeration for the leader type of MLeader.
Enumerator | |
---|---|
kInVisibleLeader | Invisible leader. |
kStraightLeader | Straight line leader. |
kSplineLeader | Spline leader. |
Definition at line 107 of file DbMLeaderStyle.h.
Enumeration for the segment angle type of an MLeader.
Enumerator | |
---|---|
kAny | Any. |
k15 | Angle of 15 degrees. |
k30 | Angle of 30 degrees. |
k45 | Angle of 45 degrees. |
k60 | Angle of 60 degrees. |
k90 | Angle of 90 degrees. |
kHorz | Angle of 180 degrees. |
Definition at line 288 of file DbMLeaderStyle.h.
Enumeration for MLeader text alignment type.
Enumerator | |
---|---|
kLeftAlignment | MLeader text is left justified. |
kCenterAlignment | MLeader text is center justified. |
kRightAlignment | MLeader text is right justified. |
Definition at line 222 of file DbMLeaderStyle.h.
Enumeration for the text angle type of MLeader text.
Definition at line 201 of file DbMLeaderStyle.h.
Enumeration for the text attachment direction of MLeader text.
Enumerator | |
---|---|
kAttachmentHorizontal | Horizontal. |
kAttachmentVertical | Vertical. |
Definition at line 127 of file DbMLeaderStyle.h.
Enumeration for the text attachment type of MLeader text.
Definition at line 141 of file DbMLeaderStyle.h.
OdDbMLeaderStyle::OdDbMLeaderStyle | ( | ) |
double OdDbMLeaderStyle::alignSpace | ( | ) | const |
Returns the alignment space value for this OdDbMLeaderStyle.
|
virtual |
Returns the annotative flag for this OdDbMLeaderStyle.
double OdDbMLeaderStyle::arrowSize | ( | ) | const |
Returns the arrow size for this OdDbMLeaderStyle.
OdDbObjectId OdDbMLeaderStyle::arrowSymbolId | ( | ) | const |
Returns the arrow symbol for this OdDbMLeaderStyle as an OdDbObjectId.
|
virtual |
Returns the set of bit flags this OdDbMLeaderStyle.
OdCmColor OdDbMLeaderStyle::blockColor | ( | ) | const |
Returns the color for block content associated with this OdDbMLeaderStyle.
BlockConnectionType OdDbMLeaderStyle::blockConnectionType | ( | ) | const |
Returns the connection type for the associated block.
OdDbObjectId OdDbMLeaderStyle::blockId | ( | ) | const |
Returns the OdDbObjectId of the block associated with this OdDbMLeaderStyle.
double OdDbMLeaderStyle::blockRotation | ( | ) | const |
Returns the rotation value for the block referenced by this OdDbMLeaderStyle.
OdGeScale3d OdDbMLeaderStyle::blockScale | ( | ) | const |
Returns the scale for the block associated with this by OdDbMLeaderStyle.
double OdDbMLeaderStyle::breakSize | ( | ) | const |
Returns the gap used in the process of breaking leader lines.
ContentType OdDbMLeaderStyle::contentType | ( | ) | const |
Returns the content type for this OdDbMLeaderStyle.
OdDbMTextPtr OdDbMLeaderStyle::defaultMText | ( | ) | const |
Sets the default text used in an associated MText balloon.
|
virtual |
Returns the description of this OdDbMLeaderStyle.
double OdDbMLeaderStyle::doglegLength | ( | ) | const |
Returns the "dog leg" leader line length for this OdDbMLeaderStyle.
DrawLeaderOrderType OdDbMLeaderStyle::drawLeaderOrderType | ( | ) | const |
Returns the leader line draw order for OdDbMLeader objects using this OdDbMLeaderStyle.
DrawMLeaderOrderType OdDbMLeaderStyle::drawMLeaderOrderType | ( | ) | const |
Returns the draw order for the content of OdDbMLeader objects using this OdDbMLeaderStyle.
|
virtual |
Reads the .dwg file data of this object.
pFiler | [in] Filer object from which data are read. |
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 OdDbObject.
|
virtual |
Writes the .dwg file data of this object.
pFiler | [in] Pointer to the filer to which data are written. |
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 OdDbObject.
|
virtual |
Reads the DXF data of this object.
pFiler | [in] Pointer to the filer from which data are read. |
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 OdDbObject.
|
virtual |
Writes the DXF data of this object.
pFiler | [in] Pointer to the filer to which data are to be written. |
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 OdDbObject.
bool OdDbMLeaderStyle::enableBlockRotation | ( | ) | const |
Returns true if block rotation (set by setBlockRotation) is to be used, false otherwise.
bool OdDbMLeaderStyle::enableBlockScale | ( | ) | const |
Returns true if block scale (set by setBlockScale) is to be used, false otherwise.
bool OdDbMLeaderStyle::enableDogleg | ( | ) | const |
Returns the "dog leg" flag for this OdDbMLeaderStyle, which controls dog leg leader lines.
bool OdDbMLeaderStyle::enableFrameText | ( | ) | const |
Returns true if a frame is to be displayed around associated text, false otherwise.
bool OdDbMLeaderStyle::enableLanding | ( | ) | const |
Returns leader line landing for this OdDbMLeaderStyle.
bool OdDbMLeaderStyle::extendLeaderToText | ( | ) | const |
Returns horizontal mleader lines extend to text mode.
SegmentAngleType OdDbMLeaderStyle::firstSegmentAngleConstraint | ( | ) | const |
Returns the constraint angle for the first segment (used for creating OdDbMLeader objects).
|
virtual |
Returns the name of this OdDbMLeaderStyle.
double OdDbMLeaderStyle::landingGap | ( | ) | const |
Returns the gap between the leader line tail and the MText associated with the OdDbMLeader.
OdCmColor OdDbMLeaderStyle::leaderLineColor | ( | ) | const |
Returns the leader line color for this OdDbMLeaderStyle.
LeaderType OdDbMLeaderStyle::leaderLineType | ( | ) | const |
Returns the leader line type for this OdDbMLeaderStyle.
OdDbObjectId OdDbMLeaderStyle::leaderLineTypeId | ( | ) | const |
Returns the leader line linetype for this OdDbMLeaderStyle.
OdDb::LineWeight OdDbMLeaderStyle::leaderLineWeight | ( | ) | const |
Returns the leader line lineweight for this OdDbMLeaderStyle.
int OdDbMLeaderStyle::maxLeaderSegmentsPoints | ( | ) | const |
Returns the maximun number of segment points used for leader lines.
OdDbMLeaderStyle::ODDB_DECLARE_MEMBERS | ( | OdDbMLeaderStyle | ) |
bool OdDbMLeaderStyle::overwritePropChanged | ( | ) | const |
Returns true if properties were modified, false otherwise.
OdDbObjectId OdDbMLeaderStyle::postMLeaderStyleToDb | ( | OdDbDatabase * | pDb, |
const OdString & | styleName | ||
) |
Add this OdDbMLeaderStyle to the specified OdDbDatabase object.
pDb | [in] Pointer of the database which will receive the OdDbMLeaderStyle object. |
styleName | [in] Name of the style. |
|
virtual |
Returns the scale factor for this OdDbMLeaderStyle.
SegmentAngleType OdDbMLeaderStyle::secondSegmentAngleConstraint | ( | ) | const |
Sets the constraint angle for the second segment (used for creating OdDbMLeader objects).
void OdDbMLeaderStyle::setAlignSpace | ( | double | alignSpace | ) |
Sets the alignment space value for this OdDbMLeaderStyle.
alignSpace | [in] The alignment space value. |
void OdDbMLeaderStyle::setAnnotative | ( | bool | isAnnotative | ) |
Sets the annotative flag for this OdDbMLeaderStyle.
isAnnotative | [in] The annotative status. |
void OdDbMLeaderStyle::setArrowSize | ( | double | arrowSize | ) |
Sets the arrow size for this OdDbMLeaderStyle.
arrowSize | [in] The arrow size. |
Sets the arrow symbol for this OdDbMLeaderStyle by name.
name | [in] Name of the arrow symbol. |
void OdDbMLeaderStyle::setArrowSymbolId | ( | OdDbObjectId | arrowSymbolId | ) |
Sets the arrow symbol for this OdDbMLeaderStyle by OdDbObjectId.
arrowSymbolId | [in] OdDbObjectId of the arrow symbol. |
Sets the bit flags for this OdDbMLeaderStyle.
flags | [in] The bit flags for this OdDbMLeaderStyle. |
Sets the color for block content associated with this OdDbMLeaderStyle.
blockColor | [in] The color for block content. |
void OdDbMLeaderStyle::setBlockConnectionType | ( | BlockConnectionType | blockConnectionType | ) |
Sets the connection type for the associated block.
blockConnectionType | [in] The connection type. |
Sets the block to be associated with this OdDbMLeaderStyle by name.
name | [in] The name of the standard block. |
void OdDbMLeaderStyle::setBlockId | ( | OdDbObjectId | blockId | ) |
Sets the block to be associated with this OdDbMLeaderStyle by OdDbObjectId.
blockId | [in] OdDbObjectId of the OdDbBlockTableRecord associated with this OdDbMLeaderStyle. |
void OdDbMLeaderStyle::setBlockRotation | ( | double | rotation | ) |
Sets the rotation value for the block referenced by this OdDbMLeaderStyle.
rotation | [in] The rotation value. |
void OdDbMLeaderStyle::setBlockScale | ( | const OdGeScale3d & | scale | ) |
Sets the scale for the block associated with this by OdDbMLeaderStyle.
scale | [in] The block scale. |
void OdDbMLeaderStyle::setBreakSize | ( | double | size | ) |
Sets the gap used in the process of breaking leader lines.
size | [in] The gap used in the process of breaking leader lines. |
void OdDbMLeaderStyle::setContentType | ( | ContentType | contentType | ) |
Sets the content type for this OdDbMLeaderStyle.
contentType | [in] The content type. |
void OdDbMLeaderStyle::setDatabaseDefaults | ( | OdDbDatabase * | pDb | ) |
void OdDbMLeaderStyle::setDefaultMText | ( | const OdDbMTextPtr | defaultMText | ) |
Sets the default text used in an associated MText balloon.
defaultMText | [in] The default text used in an associated MText balloon. |
Sets the description of this OdDbMLeaderStyle.
description | [in] OdDbMLeaderStyle description string. |
void OdDbMLeaderStyle::setDoglegLength | ( | double | doglegLength | ) |
Sets the "dog leg" leader line length for this OdDbMLeaderStyle.
doglegLength | [in] The "dog leg" leader line length. |
void OdDbMLeaderStyle::setDrawLeaderOrderType | ( | DrawLeaderOrderType | drawLeaderOrderType | ) |
Sets the leader line draw order for OdDbMLeader objects using this OdDbMLeaderStyle.
drawLeaderOrderType | [in] The Leader line draw order. |
void OdDbMLeaderStyle::setDrawMLeaderOrderType | ( | DrawMLeaderOrderType | drawMLeaderOrderType | ) |
Sets the draw order for the content of OdDbMLeader objects using this OdDbMLeaderStyle.
drawMLeaderOrderType | [in] Draw order type for MLeader content. |
void OdDbMLeaderStyle::setEnableBlockRotation | ( | bool | enableBlockRotation | ) |
Enables/disables usage of the rotation value set by setBlockRotation().
enableBlockRotation | [in] true if block rotation is to be used, false otherwise. |
void OdDbMLeaderStyle::setEnableBlockScale | ( | bool | enableBlockScale | ) |
Enables/disables usage of the scale value set by setBlockScale().
enableBlockScale | [in] true if block scale is to be used, false otherwise. |
void OdDbMLeaderStyle::setEnableDogleg | ( | bool | enableDogleg | ) |
Sets the "dog leg" flag for this OdDbMLeaderStyle, which controls dog leg leader lines.
enableDogleg | [in] "Dog leg" flag. |
void OdDbMLeaderStyle::setEnableFrameText | ( | bool | enableFrameText | ) |
Sets the display/hide property for the frame around associated text.
enableFrameText | [in] True if a frame is to be displayed around associated text, false otherwise. |
void OdDbMLeaderStyle::setEnableLanding | ( | bool | enableLanding | ) |
Sets the leader line landing for this OdDbMLeaderStyle.
enableLanding | [in] The leader line landing. |
void OdDbMLeaderStyle::setExtendLeaderToText | ( | bool | bSet | ) |
Sets horizontal mleader lines extend to text mode.
bSet | [in] Extend to text mode status. |
void OdDbMLeaderStyle::setFirstSegmentAngleConstraint | ( | SegmentAngleType | angle | ) |
Sets the constraint angle for the first segment (used for creating OdDbMLeader objects).
angle | [in] Constraint angle. |
void OdDbMLeaderStyle::setLandingGap | ( | double | landingGap | ) |
Sets the gap between the leader line tail and the MText associated with the OdDbMLeader.
landingGap | [in] The gap between the leader line tail and the MText associated with the OdDbMLeader. |
Set the leader line color for this OdDbMLeaderStyle.
leaderLineColor | [in] The leader line color. |
void OdDbMLeaderStyle::setLeaderLineType | ( | LeaderType | leaderLineType | ) |
Sets the leader line type for this OdDbMLeaderStyle.
leaderLineType | [in] The leader line type. |
void OdDbMLeaderStyle::setLeaderLineTypeId | ( | OdDbObjectId | leaderLineTypeId | ) |
Sets the leader line linetype for this OdDbMLeaderStyle.
leaderLineTypeId | [in] The linetype Id. |
void OdDbMLeaderStyle::setLeaderLineWeight | ( | OdDb::LineWeight | leaderLineWeight | ) |
Sets the leader line lineweight for this OdDbMLeaderStyle.
leaderLineWeight | [in] The leader line lineweight. |
void OdDbMLeaderStyle::setMaxLeaderSegmentsPoints | ( | int | maxLeaderSegmentsPoints | ) |
Sets the maximun number of segment points used for leader lines.
maxLeaderSegmentsPoints | [in] The maximum number of segment points. |
Sets the name of this OdDbMLeaderStyle.
name | [in] Holds the name of OdDbMLeaderStyle. |
void OdDbMLeaderStyle::setScale | ( | double | scale | ) |
Sets the scale factor for this OdDbMLeaderStyle.
scale | [in] Scale factor. |
void OdDbMLeaderStyle::setSecondSegmentAngleConstraint | ( | SegmentAngleType | angle | ) |
Sets the constraint angle for the second segment (used for creating OdDbMLeader objects).
angle | [in] Constraint angle. |
void OdDbMLeaderStyle::setTextAlignAlwaysLeft | ( | bool | bAlwaysLeft | ) |
Sets the "always create left aligned text" property for this OdDbMLeaderStyle.
bAlwaysLeft | [in] If true, text will be left aligned for newly created OdDbMLeader objects. |
void OdDbMLeaderStyle::setTextAlignmentType | ( | TextAlignmentType | textAlignmentType | ) |
Sets the text alignment type for this OdDbMLeaderStyle.
textAlignmentType | [in] The text alignment type. |
void OdDbMLeaderStyle::setTextAngleType | ( | TextAngleType | textAngleType | ) |
Sets the text angle type for this OdDbMLeaderStyle.
textAngleType | [in] The text angle type. |
void OdDbMLeaderStyle::setTextAttachmentDirection | ( | TextAttachmentDirection | direction | ) |
Sets the text attachment direction of MText.
direction | [in] The text attachment direction of MText. |
void OdDbMLeaderStyle::setTextAttachmentType | ( | TextAttachmentType | textAttachmentType, |
LeaderDirectionType | leaderDirection | ||
) |
Sets the text attachment type for this OdDbMLeaderStyle.
textAttachmentType | [in] The text attachment type. |
leaderDirection | [in] The leader direction type. |
Sets the text color for this OdDbMLeaderStyle.
textColor | [in] The text color used for associated OdDbMText object. |
void OdDbMLeaderStyle::setTextHeight | ( | double | textHeight | ) |
Sets the text height for the associated OdDbMText object.
textHeight | [in] The text height. |
void OdDbMLeaderStyle::setTextStyleId | ( | OdDbObjectId | textStyleId | ) |
Sets the text style for this OdDbMLeaderStyle by OdDbObjectId.
textStyleId | [in] The text style. |
|
virtual |
Called as the first operation as this object is being closed, for database -resident objects only.
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.
Reimplemented from OdDbObject.
bool OdDbMLeaderStyle::textAlignAlwaysLeft | ( | ) | const |
Returns the "always create left aligned text" property for this OdDbMLeaderStyle.
TextAlignmentType OdDbMLeaderStyle::textAlignmentType | ( | ) | const |
Returns the text alignment type for this OdDbMLeaderStyle.
TextAngleType OdDbMLeaderStyle::textAngleType | ( | ) | const |
Returns the text angle type for this OdDbMLeaderStyle.
TextAttachmentDirection OdDbMLeaderStyle::textAttachmentDirection | ( | ) | const |
Returns the text attachment direction of MText.
TextAttachmentType OdDbMLeaderStyle::textAttachmentType | ( | LeaderDirectionType | leaderDirection | ) | const |
Returns the text attachment type for this OdDbMLeaderStyle.
leaderDirection | [in] The leader direction type. |
OdCmColor OdDbMLeaderStyle::textColor | ( | ) | const |
Returns the text color for this OdDbMLeaderStyle.
double OdDbMLeaderStyle::textHeight | ( | ) | const |
Returns the text height for the associated OdDbMText object.
OdDbObjectId OdDbMLeaderStyle::textStyleId | ( | ) | const |
Returns the text style OdDbObjectId for this OdDbMLeaderStyle.