IViewOutput.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 
11 #include "DgnPlatform.h"
12 #include "IViewDraw.h"
13 
15 
16 //=======================================================================================
18 // @bsiclass Bentley Systems
19 //=======================================================================================
21 {
23  double focalLength;
24  double limit;
25 };
26 
27 //=======================================================================================
29 // @bsiclass Bentley Systems
30 //=======================================================================================
31 enum class DgnDrawBuffer
32 {
33  None = 0,
34  Screen = 1,
35  Dynamic = 2,
36  BackingStore = 4,
37  Drawing = 8,
38 };
39 
41 {
42  NPC_000 = 0,
43  NPC_100 = 1,
44  NPC_010 = 2,
45  NPC_110 = 3,
46  NPC_001 = 4,
47  NPC_101 = 5,
48  NPC_011 = 6,
49  NPC_111 = 7,
51 };
52 
53 
55 enum class ViewportStatus
56 {
57  Success = 0,
65 };
66 
67 #define NPC_MIN 0.0
68 #define NPC_MAX 1.0
69 
70 enum class AntiAliasPref
71 {
72  Detect = 0,
73  On = 1,
74  Off = 2,
75 };
76 
77 enum class DrawExportFlags
78 {
79  UseDefault = 0,
80  ClipToFrustum = 1,
81  LinesAsPolys = 2,
82  DeferTransparent = 4,
83 };
84 
85 //=======================================================================================
86 // @remark Required library : DgnPlatform<ApiNumber>.lib i.e. DgnPlatform5.lib
87 // @bsiclass Bentley Systems
88 //=======================================================================================
90 {
91 private:
92  virtual void MakeClassAbstract() = 0;
93 public:
94 public:
95 
101  DGNPLATFORM_EXPORT void PushTransClip (TransformCP trans, ClipPlaneSetCP clipPlaneSet = NULL);
102 
106  DGNPLATFORM_EXPORT void PopTransClip ();
107 
113  DGNPLATFORM_EXPORT bool EnableZTesting (bool yesNo);
114 
118  DGNPLATFORM_EXPORT bool EnableZWriting (bool yesNo);
119 
121  DGNPLATFORM_EXPORT bool CheckNeedsHeal (BSIRectP rect);
122 
123 }; // IViewOutput
124 
126 
a drawing model. Intended to hold dimensions and annotations but not graphics. May be be referenced i...
struct ClipPlaneSet const * ClipPlaneSetCP
Definition: msgeomstructs_typedefs.h:94
Left top front.
Definition: IViewOutput.h:48
AntiAliasPref
Definition: IViewOutput.h:70
#define END_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:69
Offscreen, usually implemented in hardware as the "back buffer" of a double-buffered context...
ViewportStatus
Status Values for Viewport methods.
Definition: IViewOutput.h:55
DgnDrawBuffer
Selects the output buffer for IViewDraw methods.
Definition: IViewOutput.h:31
Right bottom front.
Definition: IViewOutput.h:47
double limit
Maximum Z value for camera views.
Definition: IViewOutput.h:24
DgnCore implements this interface to provide the display system for Viewports.
Definition: IViewDraw.h:790
Left bottom front.
Definition: IViewOutput.h:46
double focalLength
Distance from camera to image plane.
Definition: IViewOutput.h:23
Definition: IViewOutput.h:89
The parameters the define the position and focal length of a MicroStation camera. ...
Definition: IViewOutput.h:20
#define DGNPLATFORM_EXPORT
Definition: DgnPlatform/ExportMacros.h:58
Non-drawable offscreen buffer. Holds a copy of the most recent scene.
Right top rear.
Definition: IViewOutput.h:45
#define NULL
Definition: Bentley.h:157
NpcCorners
The 8 corners of the NPC cube.
Definition: IViewOutput.h:40
3d point coordinates.
Definition: dpoint3d.h:19
Left top rear.
Definition: IViewOutput.h:44
struct Transform const * TransformCP
Definition: msgeomstructs_typedefs.h:134
DPoint3d position
Camera position in view coordinates.
Definition: IViewOutput.h:22
DrawExportFlags
Definition: IViewOutput.h:77
Left bottom rear.
Definition: IViewOutput.h:42
#define BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:68
Coordinates are relative to the origin of the screen.
Right top front.
Definition: IViewOutput.h:49
Interface to be adopted by a class the implements the reference-counting pattern. ...
Definition: RefCounted.h:34
Definition: IViewOutput.h:50
Right bottom rear.
Definition: IViewOutput.h:43
Definition: DgnPlatformErrors.r.h:52

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