CFx SDK Documentation  2022 SP0
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
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbMLeaderStyle > OdDbMLeaderStylePtr
scale
Definition: DimVarDefs.h:1684
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
virtual void setDescription(const OdString &description)
double doglegLength() const
TextAlignmentType textAlignmentType() const
virtual void setName(const OdString &name)
void setAnnotative(bool isAnnotative)
double scale() const
void setDefaultMText(const OdDbMTextPtr defaultMText)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbObjectId postMLeaderStyleToDb(OdDbDatabase *pDb, const OdString &styleName)
void setArrowSymbolId(const OdString &name)
void setLeaderLineTypeId(OdDbObjectId leaderLineTypeId)
TextAttachmentDirection textAttachmentDirection() const
bool textAlignAlwaysLeft() const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
void setDatabaseDefaults(OdDbDatabase *pDb)
DrawLeaderOrderType drawLeaderOrderType() const
void setBlockId(const OdString &name)
double blockRotation() const
SegmentAngleType secondSegmentAngleConstraint() const
ODDB_DECLARE_MEMBERS(OdDbMLeaderStyle)
void setMaxLeaderSegmentsPoints(int maxLeaderSegmentsPoints)
OdCmColor blockColor() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
void setEnableFrameText(bool enableFrameText)
BlockConnectionType blockConnectionType() const
virtual OdString description() const
OdCmColor leaderLineColor() const
void setTextAttachmentDirection(TextAttachmentDirection direction)
void setLandingGap(double landingGap)
TextAngleType textAngleType() const
virtual void setBitFlags(OdUInt32 flags)
void setLeaderLineType(LeaderType leaderLineType)
bool enableBlockRotation() const
void setTextAttachmentType(TextAttachmentType textAttachmentType, LeaderDirectionType leaderDirection)
void setBlockId(OdDbObjectId blockId)
void setTextAngleType(TextAngleType textAngleType)
virtual OdUInt32 bitFlags() const
void setBreakSize(double size)
void setBlockRotation(double rotation)
bool enableDogleg() const
OdDb::LineWeight leaderLineWeight() const
double arrowSize() const
void setSecondSegmentAngleConstraint(SegmentAngleType angle)
void setTextAlignmentType(TextAlignmentType textAlignmentType)
bool enableLanding() const
void setTextStyleId(OdDbObjectId textStyleId)
void setExtendLeaderToText(bool bSet)
virtual void subClose()
void setTextAlignAlwaysLeft(bool bAlwaysLeft)
OdDbObjectId textStyleId() const
OdDbObjectId blockId() const
void setAlignSpace(double alignSpace)
void setDrawMLeaderOrderType(DrawMLeaderOrderType drawMLeaderOrderType)
void setEnableBlockRotation(bool enableBlockRotation)
void setDrawLeaderOrderType(DrawLeaderOrderType drawLeaderOrderType)
OdCmColor textColor() const
void setFirstSegmentAngleConstraint(SegmentAngleType angle)
void setScale(double scale)
void setLeaderLineWeight(OdDb::LineWeight leaderLineWeight)
DrawMLeaderOrderType drawMLeaderOrderType() const
void setEnableLanding(bool enableLanding)
ContentType contentType() const
bool enableFrameText() const
OdDbObjectId arrowSymbolId() const
void setTextColor(const OdCmColor &textColor)
double textHeight() const
void setBlockColor(const OdCmColor &blockColor)
void setLeaderLineColor(const OdCmColor &leaderLineColor)
void setBlockScale(const OdGeScale3d &scale)
void setEnableBlockScale(bool enableBlockScale)
double breakSize() const
OdDbObjectId leaderLineTypeId() const
bool overwritePropChanged() const
bool extendLeaderToText() const
void setArrowSize(double arrowSize)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdString getName() const
void setDoglegLength(double doglegLength)
double alignSpace() const
double landingGap() const
OdResult subGetClassID(void *pClsid) const
bool enableBlockScale() const
bool annotative() const
void setEnableDogleg(bool enableDogleg)
TextAttachmentType textAttachmentType(LeaderDirectionType leaderDirection) const
LeaderType leaderLineType() const
SegmentAngleType firstSegmentAngleConstraint() const
int maxLeaderSegmentsPoints() const
void setArrowSymbolId(OdDbObjectId arrowSymbolId)
OdDbMTextPtr defaultMText() const
void setContentType(ContentType contentType)
void setBlockConnectionType(BlockConnectionType blockConnectionType)
void setTextHeight(double textHeight)
OdGeScale3d blockScale() const
GLsizeiptr size
Definition: gles2_ext.h:182
GLuint const GLchar * name
Definition: gles2_ext.h:265
LineWeight
Definition: OdaDefs.h:382