IAreaFillProperties.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 
10 #include <DgnPlatform/Handler.h> // For MissingHandlerPermissions
13 
15 
18 
19 /*=================================================================================**/
26 {
27 private:
28  virtual void MakeClassAbstract() = 0;
29 public:
30 public:
31 
32 /*---------------------------------------------------------------------------------**/
39 DGNPLATFORM_EXPORT bool GetAreaType (ElementHandleCR eh, bool* isHoleP) const;
40 
41 /*---------------------------------------------------------------------------------**/
49 DGNPLATFORM_EXPORT bool GetSolidFill (ElementHandleCR eh, UInt32* fillColorP, bool* alwaysFilledP) const;
50 
51 /*---------------------------------------------------------------------------------**/
58 DGNPLATFORM_EXPORT bool GetGradientFill (ElementHandleCR eh, GradientSymbPtr& symb) const;
59 
60 /*---------------------------------------------------------------------------------**/
71 DGNPLATFORM_EXPORT bool GetPattern (ElementHandleCR eh, PatternParamsPtr& params, bvector<DwgHatchDefLine>* hatchDefLinesP, DPoint3dP originP, int index) const;
72 
73 }; // IAreaFillPropertiesQuery
74 
75 /*=================================================================================**/
82 {
83 private:
84  virtual void MakeClassAbstract() = 0;
85 public:
86 public:
87 
88 /*---------------------------------------------------------------------------------**/
95 DGNPLATFORM_EXPORT bool SetAreaType (EditElementHandleR eeh, bool isHole);
96 
97 /*---------------------------------------------------------------------------------**/
103 DGNPLATFORM_EXPORT bool RemoveAreaFill (EditElementHandleR eeh);
104 
105 /*---------------------------------------------------------------------------------**/
113 DGNPLATFORM_EXPORT bool RemovePattern (EditElementHandleR eeh, int index);
114 
115 /*---------------------------------------------------------------------------------**/
123 DGNPLATFORM_EXPORT bool AddSolidFill (EditElementHandleR eeh, UInt32* fillColorP = NULL, bool* alwaysFilledP = NULL);
124 
125 /*---------------------------------------------------------------------------------**/
132 DGNPLATFORM_EXPORT bool AddGradientFill (EditElementHandleR eeh, GradientSymbCR symb);
133 
134 /*---------------------------------------------------------------------------------**/
143 DGNPLATFORM_EXPORT bool AddPattern (EditElementHandleR eeh, PatternParamsR params, DwgHatchDefLineP hatchDefLinesP, int index = 0);
144 
145 }; // IAreaFillPropertiesEdit
146 
148 
150 
#define END_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:69
Each member of the PatternParams structure has a corresponding bit in PatternParamsModifierFlags that...
Definition: AreaPattern.h:116
struct DgnPlatform::GradientSymb const & GradientSymbCR
Definition: DgnPlatform.h:271
Provides methods for changing the area properties of an element.
Definition: IAreaFillProperties.h:81
A writeable "handle" to an MSElement.
Definition: ElementHandle.h:470
#define DGNPLATFORM_EXPORT
Definition: DgnPlatform/ExportMacros.h:58
uint32_t UInt32
Definition: Bentley.r.h:128
#define NULL
Definition: Bentley.h:157
3d point coordinates.
Definition: dpoint3d.h:19
#define CLRPUBLIC
Definition: DgnPlatform/ExportMacros.h:12
A shared pointer template for reference-counted objects.
Definition: RefCounted.h:119
#define BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:68
DWG Style Hatch Definition.
Definition: AreaPattern.h:29
Provides methods for inspecting the current area properties of an element.
Definition: IAreaFillProperties.h:25
struct DgnPlatform::ElementHandle const & ElementHandleCR
Definition: DgnPlatform.h:260
#define EXPORT_VTABLE_ATTRIBUTE
Definition: Bentley.h:67

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