CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbMLeaderStyle.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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
35class OdGeScale3d;
36class OdString;
37
47{
48public:
56 kNoneContent = 0,
57
61 kBlockContent = 1,
62
66 kMTextContent = 2,
67
71 kToleranceContent = 3
72 };
73
81 kDrawContentFirst = 0,
82
86 kDrawLeaderFirst = 1
87 };
88
96 kDrawLeaderHeadFirst = 0,
97
101 kDrawLeaderTailFirst = 1
102 };
103
111 kInVisibleLeader = 0,
112
116 kStraightLeader = 1,
117
121 kSplineLeader = 2
122 };
123
131 kAttachmentHorizontal = 0,
135 kAttachmentVertical = 1
136 };
137
145 kAttachmentTopOfTop = 0,
146
150 kAttachmentMiddleOfTop = 1,
151
155 kAttachmentMiddle = 2,
156
160 kAttachmentMiddleOfBottom = 3,
161
165 kAttachmentBottomOfBottom = 4,
166
170 kAttachmentBottomLine = 5,
171
175 kAttachmentBottomOfTopLine = 6,
176
180 kAttachmentBottomOfTop = 7,
181
185 kAttachmentAllLine = 8,
186
190 kAttachmentCenter = 9,
191
195 kAttachmentLinedCenter = 10
196 };
197
205 kInsertAngle = 0,
206
210 kHorizontalAngle = 1,
211
216 kAlwaysRightReadingAngle = 2
217 };
218
226 kLeftAlignment = 0,
227
231 kCenterAlignment = 1,
232
236 kRightAlignment = 2
237 };
238
246 kConnectExtents = 0,
247
251 kConnectBase = 1
252 };
253
261 kUnknownLeader = 0,
262
266 kLeftLeader = 1,
267
271 kRightLeader = 2,
272
276 kTopLeader = 3,
277
281 kBottomLeader = 4
282 };
283
284
292 kAny = 0,
293
297 k15 = 1,
298
302 k30 = 2,
303
307 k45 = 3,
308
312 k60 = 4,
313
317 k90 = 6,
318
322 kHorz = 12
323 };
324
325public:
327
329
331
332// virtual ~OdDbMLeaderStyle();
333
337 virtual OdString getName() const;
338
344 virtual void setName(
345 const OdString& name);
346
350 virtual OdString description() const;
351
357 virtual void setDescription(
358 const OdString& description);
359
363 virtual OdUInt32 bitFlags() const;
364
370 virtual void setBitFlags(
371 OdUInt32 flags);
372
379 ContentType contentType);
380
385
392 DrawMLeaderOrderType drawMLeaderOrderType);
393
398
405 DrawLeaderOrderType drawLeaderOrderType);
406
411
421 int maxLeaderSegmentsPoints);
422
427
437 SegmentAngleType angle);
438
446
456 SegmentAngleType angle);
457
465
472 LeaderType leaderLineType);
473
478
485 const OdCmColor& leaderLineColor);
486
491
498 OdDbObjectId leaderLineTypeId);
499
504
511 OdDb::LineWeight leaderLineWeight);
512
517
527 bool enableLanding);
528
532 bool enableLanding() const;
533
540 double landingGap);
541
545 double landingGap() const;
546
553 bool enableDogleg);
554
558 bool enableDogleg() const;
559
566 double doglegLength);
567
571 double doglegLength() const;
572
579 const OdString& name);
580
587 OdDbObjectId arrowSymbolId);
588
593
600 double arrowSize);
601
605 double arrowSize() const;
606
613 const OdDbMTextPtr defaultMText);
614
622
629 OdDbObjectId textStyleId);
630
635
643 TextAttachmentType textAttachmentType,
644 LeaderDirectionType leaderDirection);
645
655 LeaderDirectionType leaderDirection) const;
656
663 TextAngleType textAngleType);
664
669
676 TextAlignmentType textAlignmentType);
677
682
689 bool bAlwaysLeft);
690
695
702 const OdCmColor& textColor);
703
708
715 double textHeight);
716
720 double textHeight() const;
721
728 bool enableFrameText);
729
733 bool enableFrameText() const;
734
741 double alignSpace);
742
746 double alignSpace() const;
747
754 const OdString& name);
755
762 OdDbObjectId blockId);
763
768
775 const OdCmColor& blockColor);
776
781
788 const OdGeScale3d& scale);
789
794
801 bool enableBlockScale);
802
806 bool enableBlockScale() const;
807
814 double rotation);
815
819 double blockRotation() const;
820
828 bool enableBlockRotation);
829
834
841 BlockConnectionType blockConnectionType);
842
847
854 double scale);
855
859 virtual double scale() const;
860
865
876 OdDbDatabase* pDb,
877 const OdString& styleName);
878
885 bool isAnnotative);
886
890 virtual bool annotative() const;
891
898 double size);
899
903 double breakSize() const;
904
912 TextAttachmentDirection direction);
913
918
924 void setExtendLeaderToText(bool bSet);
925
929 bool extendLeaderToText() const;
930
932 OdDbDwgFiler* pFiler);
933
934 virtual void dwgOutFields(
935 OdDbDwgFiler* pFiler) const;
936
938 OdDbDxfFiler* pFiler);
939
940 virtual void dxfOutFields(
941 OdDbDxfFiler* pFiler) const;
942
943 virtual void subClose();
944
945 OdResult subGetClassID(void* pClsid) const;
946};
947
952
953#include "TD_PackPop.h"
954
955#endif
#define DBDIM_EXPORT
Definition: DbExport.h:72
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)
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)
virtual bool annotative() const
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)
virtual double scale() const
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
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:386