LabelHandler.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 #pragma once
10 #include <Bentley/bvector.h>
14 
17 
18 /*=================================================================================**/
26 struct LabelCellHeaderHandler : AnnotationCellHeaderHandler
27  // IAnnotationHandler,
28 {
29  DEFINE_T_SUPER(AnnotationCellHeaderHandler)
31 private:
32  virtual void MakeClassAbstract() = 0;
33 public:
34 public:
35 
36 typedef bvector<DPoint3d> StdDPointVector;
37 
49 DGNPLATFORM_EXPORT static BentleyStatus CreateLabel (EditElementHandleR labelElem, EditElementHandleR leaderElement, DimensionStyleCR dimStyle, ElementHandleCR celltemplate,
50  bool is3d, RotMatrixCR orientation, DgnModelRefR modelRef, StdDPointVector const & labelLeaderPoints, bool isCallOut);
52 DGNPLATFORM_EXPORT BentleyStatus AddToModel (EditElementHandleR labelElem, EditElementHandleR leaderElement, DgnModelR dgnCache);
53 
55 DGNPLATFORM_EXPORT DimensionStylePtr GetLabelDimensionStyle(ElementHandleCR labelElement);
56 
58 DGNPLATFORM_EXPORT BentleyStatus SetupOffsetAssociation (EditElementHandleR labelElement, ElementHandleCR targetElement, AssocPoint const& assoc);
59 
61 DGNPLATFORM_EXPORT static BentleyStatus UpdateFieldTarget(EditElementHandleR labelCell, ElementHandleCR newtarget);
62 
63 }; // LabelCellHeaderHandler
64 
65 
67 
69 
A label Cell is-a a sub-type of cell.
Definition: LabelHandler.h:26
#define END_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:69
#define ELEMENTHANDLER_DECLARE_MEMBERS(__classname__, __exporter__)
Definition: Handler.h:86
A writeable "handle" to an MSElement.
Definition: ElementHandle.h:470
struct RotMatrix const & RotMatrixCR
Definition: msgeomstructs_typedefs.h:135
#define DGNPLATFORM_EXPORT
Definition: DgnPlatform/ExportMacros.h:58
Definition: DgnPlatform.h:1622
bvector< DPoint3d > StdDPointVector
Definition: LabelHandler.h:36
A DgnModel represents a DgnModel in memory.
Definition: DgnModel.h:236
BentleyStatus
Definition: Bentley.h:208
A DgnModelRef provides access to a model in a Bentley::DgnPlatform::DgnFile.
Definition: DgnModelRef.h:172
#define DEFINE_T_SUPER(B)
Definition: Bentley.h:167
#define BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:68
struct DgnPlatform::ElementHandle const & ElementHandleCR
Definition: DgnPlatform.h:260
struct DgnPlatform::DimensionStyle const & DimensionStyleCR
Definition: DimensionStyle.h:16

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.