FenceParams.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
12 //=======================================================================================
17 // @bsiclass Bentley Systems
18 //=======================================================================================
19 enum class FenceClipMode
20  {
21  None = 0,
22  Original = 1,
23  Copy = 3,
24  };
25 
26 //=======================================================================================
29 // @remark Required library : DgnPlatform<ApiNumber>.lib i.e. DgnPlatform5.lib
30 // @bsiclass Bentley Systems
31 //=======================================================================================
33 {
34 private:
35  virtual void MakeClassAbstract() = 0;
36 public:
37 public:
38 
40 DGNPLATFORM_EXPORT void SetViewParams (ViewportP);
41 
43 DGNPLATFORM_EXPORT void SetModelRef (DgnModelRefP);
44 
46 DGNPLATFORM_EXPORT void SetOverlapMode (bool mode);
47 
49 DGNPLATFORM_EXPORT void SetClipMode (FenceClipMode);
50 
52 DGNPLATFORM_EXPORT void SetClip (ClipVectorCR clip);
53 
55 DGNPLATFORM_EXPORT void SetTransform (TransformCR);
56 
58 DGNPLATFORM_EXPORT void SetLocateInteriors (LocateSurfacesPref);
59 
61 DGNPLATFORM_EXPORT StatusInt StoreClippingPoints (bool outside, DPoint2dP, int nPoints);
62 
64 DGNPLATFORM_EXPORT StatusInt StoreClippingElement (ElementHandleCR, bool outside);
65 
67 DGNPLATFORM_EXPORT void ClippingPointsFromRootPoints (DPoint2dP, DPoint3dP, int numPts, ViewportP);
68 
70 DGNPLATFORM_EXPORT bool IsCameraOn () const;
71 
73 DGNPLATFORM_EXPORT double GetFocalLength () const;
74 
76 DGNPLATFORM_EXPORT DgnModelRefP GetModelRef () const;
77 
79 DGNPLATFORM_EXPORT ClipVectorPtr GetClipVector () const;
80 
82 DGNPLATFORM_EXPORT FenceClipMode GetClipMode () const;
83 
85 DGNPLATFORM_EXPORT ViewportP GetViewport () const;
86 
88 DGNPLATFORM_EXPORT TransformP GetTransform ();
89 
91 DGNPLATFORM_EXPORT bool PointInside (DPoint3dCR);
92 
94 DGNPLATFORM_EXPORT bool HasOverlaps () const;
95 
97 DGNPLATFORM_EXPORT bool AllowOverlaps () const;
98 
101 
103 DGNPLATFORM_EXPORT bool AcceptElement (ElementHandleCR);
104 
110 DGNPLATFORM_EXPORT BentleyStatus BuildAgenda (ElementAgendaR agenda, DgnModelRefListP searchList);
111 
114 
116 DGNPLATFORM_EXPORT static void Delete (FenceParamsP);
117 
118 }; // FenceParams
119 
121 
#define END_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:69
LocateSurfacesPref
Definition: DgnPlatform.r.h:779
struct DgnPlatform::ClipVector const & ClipVectorCR
Definition: DgnPlatform.h:178
#define DGNPLATFORM_EXPORT
Definition: DgnPlatform/ExportMacros.h:58
FenceClipMode
The fence clip mode controls element acceptance criteria.
Definition: FenceParams.h:19
3d point coordinates.
Definition: dpoint3d.h:19
BentleyStatus
Definition: Bentley.h:208
A DgnModelRef provides access to a model in a Bentley::DgnPlatform::DgnFile.
Definition: DgnModelRef.h:172
A bvector of EditElementHandle entries to be used for operating on groups of elements.
Definition: ElementAgenda.h:257
A shared pointer template for reference-counted objects.
Definition: RefCounted.h:119
*//* Bentley Systems
Definition: DgnModelRef.h:67
#define BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:68
struct Transform const & TransformCR
Definition: msgeomstructs_typedefs.h:134
int StatusInt
Definition: Bentley.h:222
3x4 matrix for defining coordinate frames and affine transformations.
Definition: transform.h:22
struct DPoint3d const & DPoint3dCR
Definition: msgeomstructs_typedefs.h:79
struct DgnPlatform::ElementHandle const & ElementHandleCR
Definition: DgnPlatform.h:260
2d point coordinates.
Definition: dpoint2d.h:23
Class for finding elements that are inside or overlap a volume defined by an extrusion of a planar re...
Definition: FenceParams.h:32
Definition: DgnViewport.h:186

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