CFx SDK Documentation  2020SP3
DbMLeaderStyle.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 
26 
27 #ifndef OD_DBMLEADERSTYLE_H
28 #define OD_DBMLEADERSTYLE_H
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbObject.h"
33 #include "DbMText.h"
34 
35 class OdGeScale3d;
36 class OdString;
37 
49 {
50 public:
54  enum ContentType {
58  kNoneContent = 0,
59 
63  kBlockContent = 1,
64 
68  kMTextContent = 2,
69 
73  kToleranceContent = 3
74  };
75 
83  kDrawContentFirst = 0,
84 
88  kDrawLeaderFirst = 1
89  };
90 
98  kDrawLeaderHeadFirst = 0,
99 
103  kDrawLeaderTailFirst = 1
104  };
105 
109  enum LeaderType {
113  kInVisibleLeader = 0,
114 
118  kStraightLeader = 1,
119 
123  kSplineLeader = 2
124  };
125 
133  kAttachmentHorizontal = 0,
137  kAttachmentVertical = 1
138  };
139 
147  kAttachmentTopOfTop = 0,
148 
152  kAttachmentMiddleOfTop = 1,
153 
157  kAttachmentMiddle = 2,
158 
162  kAttachmentMiddleOfBottom = 3,
163 
167  kAttachmentBottomOfBottom = 4,
168 
172  kAttachmentBottomLine = 5,
173 
177  kAttachmentBottomOfTopLine = 6,
178 
182  kAttachmentBottomOfTop = 7,
183 
187  kAttachmentAllLine = 8,
188 
192  kAttachmentCenter = 9,
193 
197  kAttachmentLinedCenter = 10
198  };
199 
207  kInsertAngle = 0,
208 
212  kHorizontalAngle = 1,
213 
218  kAlwaysRightReadingAngle = 2
219  };
220 
228  kLeftAlignment = 0,
229 
233  kCenterAlignment = 1,
234 
238  kRightAlignment = 2
239  };
240 
248  kConnectExtents = 0,
249 
253  kConnectBase = 1
254  };
255 
263  kUnknownLeader = 0,
264 
268  kLeftLeader = 1,
269 
273  kRightLeader = 2,
274 
278  kTopLeader = 3,
279 
283  kBottomLeader = 4
284  };
285 
286 
294  kAny = 0,
295 
299  k15 = 1,
300 
304  k30 = 2,
305 
309  k45 = 3,
310 
314  k60 = 4,
315 
319  k90 = 6,
320 
324  kHorz = 12
325  };
326 
327 public:
329 
331 
333 
334 // virtual ~OdDbMLeaderStyle();
335 
339  virtual OdString getName() const;
340 
346  virtual void setName(
347  const OdString& name);
348 
352  virtual OdString description() const;
353 
359  virtual void setDescription(
360  const OdString& description);
361 
365  virtual OdUInt32 bitFlags() const;
366 
372  virtual void setBitFlags(
373  OdUInt32 flags);
374 
381  ContentType contentType);
382 
387 
394  DrawMLeaderOrderType drawMLeaderOrderType);
395 
400 
407  DrawLeaderOrderType drawLeaderOrderType);
408 
413 
423  int maxLeaderSegmentsPoints);
424 
429 
439  SegmentAngleType angle);
440 
448 
458  SegmentAngleType angle);
459 
467 
474  LeaderType leaderLineType);
475 
480 
487  const OdCmColor& leaderLineColor);
488 
493 
500  OdDbObjectId leaderLineTypeId);
501 
506 
513  OdDb::LineWeight leaderLineWeight);
514 
519 
529  bool enableLanding);
530 
534  bool enableLanding() const;
535 
542  double landingGap);
543 
547  double landingGap() const;
548 
555  bool enableDogleg);
556 
560  bool enableDogleg() const;
561 
568  double doglegLength);
569 
573  double doglegLength() const;
574 
581  const OdString& name);
582 
589  OdDbObjectId arrowSymbolId);
590 
595 
602  double arrowSize);
603 
607  double arrowSize() const;
608 
615  const OdDbMTextPtr defaultMText);
616 
624 
631  OdDbObjectId textStyleId);
632 
637 
645  TextAttachmentType textAttachmentType,
646  LeaderDirectionType leaderDirection);
647 
657  LeaderDirectionType leaderDirection) const;
658 
665  TextAngleType textAngleType);
666 
671 
678  TextAlignmentType textAlignmentType);
679 
684 
691  bool bAlwaysLeft);
692 
696  bool textAlignAlwaysLeft() const;
697 
704  const OdCmColor& textColor);
705 
710 
717  double textHeight);
718 
722  double textHeight() const;
723 
730  bool enableFrameText);
731 
735  bool enableFrameText() const;
736 
743  double alignSpace);
744 
748  double alignSpace() const;
749 
756  const OdString& name);
757 
764  OdDbObjectId blockId);
765 
770 
777  const OdCmColor& blockColor);
778 
783 
790  const OdGeScale3d& scale);
791 
796 
803  bool enableBlockScale);
804 
808  bool enableBlockScale() const;
809 
816  double rotation);
817 
821  double blockRotation() const;
822 
830  bool enableBlockRotation);
831 
835  bool enableBlockRotation() const;
836 
843  BlockConnectionType blockConnectionType);
844 
849 
855  void setScale(
856  double scale);
857 
861  double scale() const;
862 
866  bool overwritePropChanged() const;
867 
878  OdDbDatabase* pDb,
879  const OdString& styleName);
880 
887  bool isAnnotative);
888 
892  bool annotative() const;
893 
900  double size);
901 
905  double breakSize() const;
906 
914  TextAttachmentDirection direction);
915 
920 
926  void setExtendLeaderToText(bool bSet);
927 
931  bool extendLeaderToText() const;
932 
934  OdDbDwgFiler* pFiler);
935 
936  virtual void dwgOutFields(
937  OdDbDwgFiler* pFiler) const;
938 
940  OdDbDxfFiler* pFiler);
941 
942  virtual void dxfOutFields(
943  OdDbDxfFiler* pFiler) const;
944 
945  virtual void subClose();
946 
947  OdResult subGetClassID(void* pClsid) const;
948 };
949 
954 
955 #include "TD_PackPop.h"
956 
957 #endif
OdDbMLeaderStyle::setMaxLeaderSegmentsPoints
void setMaxLeaderSegmentsPoints(int maxLeaderSegmentsPoints)
OdDbMLeaderStyle::setBlockScale
void setBlockScale(const OdGeScale3d &scale)
OdDbMLeaderStyle::alignSpace
double alignSpace() const
OdResult
OdResult
Definition: OdResult.h:29
OdDbMLeaderStyle::setTextHeight
void setTextHeight(double textHeight)
OdDbMLeaderStyle::leaderLineWeight
OdDb::LineWeight leaderLineWeight() const
OdDbMLeaderStyle::drawLeaderOrderType
DrawLeaderOrderType drawLeaderOrderType() const
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
OdDbMLeaderStyle::TextAttachmentDirection
TextAttachmentDirection
Definition: DbMLeaderStyle.h:129
OdDbMLeaderStyle::setExtendLeaderToText
void setExtendLeaderToText(bool bSet)
OdDbMLeaderStyle::setTextStyleId
void setTextStyleId(OdDbObjectId textStyleId)
OdDbMLeaderStyle::setTextAlignmentType
void setTextAlignmentType(TextAlignmentType textAlignmentType)
OdDbMLeaderStyle::setBlockId
void setBlockId(OdDbObjectId blockId)
OdDbMLeaderStyle::blockColor
OdCmColor blockColor() const
OdDbMLeaderStyle::setDrawLeaderOrderType
void setDrawLeaderOrderType(DrawLeaderOrderType drawLeaderOrderType)
scale
scale
Definition: DimVarDefs.h:1684
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdDbMLeaderStyle::setArrowSymbolId
void setArrowSymbolId(OdDbObjectId arrowSymbolId)
DbObject.h
OdDbMLeaderStyle::setBlockRotation
void setBlockRotation(double rotation)
OdDbMLeaderStyle::textAlignmentType
TextAlignmentType textAlignmentType() const
OdDbMLeaderStyle::maxLeaderSegmentsPoints
int maxLeaderSegmentsPoints() const
OdDbMLeaderStyle::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbObjectId
Definition: DbObjectId.h:99
OdDbMLeaderStyle::ContentType
ContentType
Definition: DbMLeaderStyle.h:54
OdDbMLeaderStyle::setArrowSymbolId
void setArrowSymbolId(const OdString &name)
OdGeScale3d
Definition: GeScale3d.h:47
OdDbMLeaderStyle::extendLeaderToText
bool extendLeaderToText() const
OdDbMLeaderStyle::bitFlags
virtual OdUInt32 bitFlags() const
OdDbMLeaderStyle::setScale
void setScale(double scale)
OdDbMLeaderStyle::subClose
virtual void subClose()
OdDbMLeaderStyle::setFirstSegmentAngleConstraint
void setFirstSegmentAngleConstraint(SegmentAngleType angle)
TD_PackPop.h
OdDbMLeaderStyle::annotative
bool annotative() const
OdDbMLeaderStyle::setLandingGap
void setLandingGap(double landingGap)
OdDbMLeaderStyle::enableBlockScale
bool enableBlockScale() const
OdDbMLeaderStyle::setDefaultMText
void setDefaultMText(const OdDbMTextPtr defaultMText)
OdDbMLeaderStyle::textStyleId
OdDbObjectId textStyleId() const
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdDbMLeaderStyle::textHeight
double textHeight() const
OdDbMLeaderStyle::setSecondSegmentAngleConstraint
void setSecondSegmentAngleConstraint(SegmentAngleType angle)
size
GLsizeiptr size
Definition: gles2_ext.h:182
OdDbMLeaderStyle::setLeaderLineTypeId
void setLeaderLineTypeId(OdDbObjectId leaderLineTypeId)
OdDbMLeaderStyle::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
DbMText.h
OdDbMLeaderStyle::OdDbMLeaderStyle
OdDbMLeaderStyle()
OdIfc2x3::kAny
@ kAny
Definition: Ifc2x3EntityTypes.h:690
OdDbMLeaderStyle::TextAngleType
TextAngleType
Definition: DbMLeaderStyle.h:203
OdDbMLeaderStyle::DrawLeaderOrderType
DrawLeaderOrderType
Definition: DbMLeaderStyle.h:94
OdDbMLeaderStyle::setTextAngleType
void setTextAngleType(TextAngleType textAngleType)
OdDbMLeaderStyle::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbMLeaderStyle::setBreakSize
void setBreakSize(double size)
OdSmartPtr
Definition: SmartPtr.h:58
OdDbMLeaderStyle::leaderLineType
LeaderType leaderLineType() const
OdDbMLeaderStyle::setTextAttachmentType
void setTextAttachmentType(TextAttachmentType textAttachmentType, LeaderDirectionType leaderDirection)
OdDbMLeaderStyle::arrowSize
double arrowSize() const
OdDbMLeaderStyle::setDescription
virtual void setDescription(const OdString &description)
OdDbMLeaderStyle::postMLeaderStyleToDb
OdDbObjectId postMLeaderStyleToDb(OdDbDatabase *pDb, const OdString &styleName)
OdDbMLeaderStyle::leaderLineTypeId
OdDbObjectId leaderLineTypeId() const
OdDbMLeaderStyle::setDrawMLeaderOrderType
void setDrawMLeaderOrderType(DrawMLeaderOrderType drawMLeaderOrderType)
OdDbMLeaderStyle::breakSize
double breakSize() const
OdDbMLeaderStyle::setEnableLanding
void setEnableLanding(bool enableLanding)
OdDbMLeaderStyle::setLeaderLineColor
void setLeaderLineColor(const OdCmColor &leaderLineColor)
OdDbMLeaderStyle::enableFrameText
bool enableFrameText() const
OdDbMLeaderStyle::textAttachmentDirection
TextAttachmentDirection textAttachmentDirection() const
OdDbMLeaderStyle::scale
double scale() const
OdDbMLeaderStyle::setContentType
void setContentType(ContentType contentType)
OdDbMLeaderStyle::overwritePropChanged
bool overwritePropChanged() const
OdDbMLeaderStyle::DrawMLeaderOrderType
DrawMLeaderOrderType
Definition: DbMLeaderStyle.h:79
OdDbMLeaderStyle::textColor
OdCmColor textColor() const
OdDbMLeaderStyle::landingGap
double landingGap() const
OdDbMLeaderStyle::defaultMText
OdDbMTextPtr defaultMText() const
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbMLeaderStyle::blockConnectionType
BlockConnectionType blockConnectionType() const
OdDbMLeaderStyle::setEnableBlockScale
void setEnableBlockScale(bool enableBlockScale)
OdDbMLeaderStyle::setAnnotative
void setAnnotative(bool isAnnotative)
OdDbMLeaderStyle::setBlockColor
void setBlockColor(const OdCmColor &blockColor)
OdDbMLeaderStyle::setDatabaseDefaults
void setDatabaseDefaults(OdDbDatabase *pDb)
OdDbMLeaderStyle::BlockConnectionType
BlockConnectionType
Definition: DbMLeaderStyle.h:244
TD_PackPush.h
OdDbMLeaderStyle::textAttachmentType
TextAttachmentType textAttachmentType(LeaderDirectionType leaderDirection) const
OdDbMLeaderStyle
Definition: DbMLeaderStyle.h:49
OdDbMLeaderStyle::setEnableFrameText
void setEnableFrameText(bool enableFrameText)
OdDbMLeaderStyle::leaderLineColor
OdCmColor leaderLineColor() const
OdDbMLeaderStyle::setLeaderLineWeight
void setLeaderLineWeight(OdDb::LineWeight leaderLineWeight)
OdDbMLeaderStyle::setTextColor
void setTextColor(const OdCmColor &textColor)
OdDbMLeaderStyle::setEnableBlockRotation
void setEnableBlockRotation(bool enableBlockRotation)
OdDbMLeaderStyle::description
virtual OdString description() const
OdDbMLeaderStyle::textAngleType
TextAngleType textAngleType() const
OdDbMLeaderStyle::setArrowSize
void setArrowSize(double arrowSize)
OdDbMLeaderStyle::getName
virtual OdString getName() const
OdDbMLeaderStyle::setTextAlignAlwaysLeft
void setTextAlignAlwaysLeft(bool bAlwaysLeft)
OdDbMLeaderStyle::TextAlignmentType
TextAlignmentType
Definition: DbMLeaderStyle.h:224
OdDbMLeaderStyle::doglegLength
double doglegLength() const
OdDbMLeaderStyle::enableBlockRotation
bool enableBlockRotation() const
OdDbMLeaderStyle::arrowSymbolId
OdDbObjectId arrowSymbolId() const
OdDbMLeaderStyle::subGetClassID
OdResult subGetClassID(void *pClsid) const
OdDbMLeaderStyle::setBlockId
void setBlockId(const OdString &name)
OdDb::LineWeight
LineWeight
Definition: OdaDefs.h:382
OdDbMLeaderStyle::drawMLeaderOrderType
DrawMLeaderOrderType drawMLeaderOrderType() const
OdDbMLeaderStyle::setDoglegLength
void setDoglegLength(double doglegLength)
OdDbMLeaderStyle::setBlockConnectionType
void setBlockConnectionType(BlockConnectionType blockConnectionType)
OdDbMLeaderStylePtr
OdSmartPtr< OdDbMLeaderStyle > OdDbMLeaderStylePtr
Definition: DbMLeaderStyle.h:953
OdDbMLeaderStyle::setAlignSpace
void setAlignSpace(double alignSpace)
OdDbMLeaderStyle::blockScale
OdGeScale3d blockScale() const
OdDbMLeaderStyle::textAlignAlwaysLeft
bool textAlignAlwaysLeft() const
OdDbMLeaderStyle::enableLanding
bool enableLanding() const
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbMLeaderStyle::TextAttachmentType
TextAttachmentType
Definition: DbMLeaderStyle.h:143
OdDbMLeaderStyle::setBitFlags
virtual void setBitFlags(OdUInt32 flags)
OdDbMLeaderStyle::setLeaderLineType
void setLeaderLineType(LeaderType leaderLineType)
OdDbMLeaderStyle::setName
virtual void setName(const OdString &name)
OdDbMLeaderStyle::setTextAttachmentDirection
void setTextAttachmentDirection(TextAttachmentDirection direction)
OdDbMLeaderStyle::blockId
OdDbObjectId blockId() const
OdDbMLeaderStyle::setEnableDogleg
void setEnableDogleg(bool enableDogleg)
OdDbMLeaderStyle::SegmentAngleType
SegmentAngleType
Definition: DbMLeaderStyle.h:290
OdDbMLeaderStyle::enableDogleg
bool enableDogleg() const
OdDbMLeaderStyle::firstSegmentAngleConstraint
SegmentAngleType firstSegmentAngleConstraint() const
OdCmColor
Definition: CmColor.h:59
OdDbMLeaderStyle::secondSegmentAngleConstraint
SegmentAngleType secondSegmentAngleConstraint() const
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbMLeaderStyle::LeaderType
LeaderType
Definition: DbMLeaderStyle.h:109
OdDbMLeaderStyle::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbMLeaderStyle::LeaderDirectionType
LeaderDirectionType
Definition: DbMLeaderStyle.h:259
OdDbMLeaderStyle::blockRotation
double blockRotation() const
OdDbMLeaderStyle::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbMLeaderStyle)
OdDbMLeaderStyle::contentType
ContentType contentType() const