CFx SDK Documentation  2022 SP0
Gs.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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 #ifndef __GS_H_INCLUDED_
25 #define __GS_H_INCLUDED_
26 
27 #include "RxObject.h"
28 #include "RxIterator.h"
29 #include "Gs/GsExport.h"
30 
31 class OdGiDrawable;
32 
37 
38 class OdGeMatrix3d;
39 class OdGePoint3d;
40 class OdGeVector3d;
41 class OdGePoint2d;
42 class OdGiEdgeData;
43 class OdGiFaceData;
44 class OdGiVertexData;
45 struct OdGiClipBoundary;
47 class OdDbStub;
48 class OdGeExtents3d;
49 class OdGiVisualStyle;
50 
51 #include "TD_PackPush.h"
52 
53 #include "OdPlatform.h"
54 #include "RxModule.h"
55 #include "IntArray.h"
56 #include "GsDCPointArray.h"
57 #include "Ge/GePoint2dArray.h"
58 
60 
61 class OdGsView;
62 
67 
68 class OdGsModel;
69 
74 
79 
80 class OdGsDevice;
81 
86 
87 class OdRxDictionary;
88 
93 
94 class OdGsReactor;
95 
100 
101 class OdGiRasterImage;
102 
107 
108 class OdGsUpdateManager;
113 
114 #include "GsDefs.h"
115 
116 class OdGiContext;
117 struct OdGsClientViewInfo;
118 class OdGsFiler;
119 
120 #include "Gi/GiContextualColors.h"
121 
133 {
134 public:
136 
138  {
139  kBoundingBox = -1, // Bounding box. For internal use only.
140  k2DOptimized = 0, // Standard *display*. Optimized for 2D.
141  kWireframe = 1, // Standard *display*. Uses 3D pipeline.
142  kHiddenLine = 2, // Wireframe *display*. Hidden lines removed.
143  kFlatShaded = 3, // Faceted *display*. One *color* per face.
144  kGouraudShaded = 4, // Smooth shaded *display*. Colors interpolated between *vertices*.
145  kFlatShadedWithWireframe = 5, // Faceted *display* with wireframe overlay.
146  kGouraudShadedWithWireframe = 6, // Smooth shaded *display* with wireframe overlay.
147  kNone
148  };
149 
151  {
152  kParallel = 0,
153  kPerspective = 1
154  };
155 
157  {
158  kWindow = 0,
160  kFence = 2,
161  kWPoly = 3,
162  kCPoly = 4,
163 
164  kPoint = 16
165  };
166 
168  {
169  kOneLight = 0,
171  kBackLight
172  };
173 
177  virtual OdGsDevice* device() const = 0;
178 
182  virtual OdGiContext* userGiContext() const = 0;
183 
188  virtual void setUserGiContext(OdGiContext* pUserGiContext) = 0;
189 
193  virtual double lineweightToDcScale() const = 0;
198  virtual void setLineweightToDcScale(double scale) = 0;
199 
205  virtual void setLineweightEnum(int numLineweights, const OdUInt8* lineweights) = 0;
206 
219  virtual void setViewport(const OdGePoint2d& lowerLeft, const OdGePoint2d& upperRight) = 0;
220  virtual void setViewport(const OdGsDCRect& screenRect) = 0;
221  virtual void setViewport(const OdGsDCRectDouble& screenRect);
222 
235  virtual void getViewport(OdGePoint2d& lowerLeft, OdGePoint2d& upperRight) const = 0;
236  virtual void getViewport(OdGsDCRect& screenRect) const = 0;
237  virtual void getViewport(OdGsDCRectDouble& screenRect) const;
238 
246  virtual void setViewportClipRegion(int numContours, int const* numVertices, OdGsDCPoint const* vertices) = 0;
247  virtual void setViewportClipRegion(int numContours, int const* numVertices, OdGePoint2d const* vertices) = 0;
248 
255  virtual void viewportClipRegion(OdIntArray& counts, OdGsDCPointArray& vertices) const = 0;
256  virtual void viewportClipRegion(OdIntArray& counts, OdGePoint2dArray& vertices) const = 0;
257 
262 
269  virtual void setViewport3dClipping(const OdGiClipBoundary* pBoundary, const OdGiAbstractClipBoundary* pClipInfo = NULL);
270 
279  virtual const OdGiClipBoundary *viewport3dClipping(const OdGiAbstractClipBoundary** ppClipInfo = NULL) const;
280 
285 
291  virtual void setViewportBorderProperties(ODCOLORREF color, int width) = 0;
292 
298  virtual void getViewportBorderProperties(ODCOLORREF& color, int& width) const = 0;
299 
304  virtual void setViewportBorderVisibility(bool visible) = 0;
305 
309  virtual bool isViewportBorderVisible() const = 0;
310 
335  virtual void setView(
336  const OdGePoint3d& position,
337  const OdGePoint3d& target,
338  const OdGeVector3d& upVector,
339  double fieldWidth,
340  double fieldHeight,
341  Projection projectionType = kParallel) = 0;
342 
346  virtual OdGePoint3d position() const = 0;
347 
351  virtual OdGePoint3d target() const = 0;
352 
356  virtual OdGeVector3d upVector() const = 0;
357 
361  virtual double lensLength() const = 0;
362 
367  virtual void setLensLength(double lensLength) = 0;
368 
372  virtual bool isPerspective() const = 0;
373 
377  virtual double fieldWidth() const = 0;
381  virtual double fieldHeight() const = 0;
382 
387  virtual void setEnableFrontClip(bool enable) = 0;
388 
392  virtual bool isFrontClipped() const = 0;
393 
398  virtual void setFrontClip(double frontClip) = 0;
399 
403  virtual double frontClip() const = 0;
404 
409  virtual void setEnableBackClip(bool enable) = 0;
410 
414  virtual bool isBackClipped() const = 0;
415 
420  virtual void setBackClip(double backClip) = 0;
424  virtual double backClip() const = 0;
425 
432  virtual OdGeMatrix3d viewingMatrix() const = 0;
433 
440  virtual OdGeMatrix3d projectionMatrix() const = 0;
441 
448  virtual OdGeMatrix3d screenMatrix() const = 0;
449 
460  virtual OdGeMatrix3d worldToDeviceMatrix() const = 0;
461 
468  virtual OdGeMatrix3d objectToDeviceMatrix() const = 0;
469 
490  virtual void setMode(RenderMode mode) = 0;
491 
510  virtual RenderMode mode() const = 0;
511 
527  virtual bool add(OdGiDrawable* pSceneGraph, OdGsModel* pModel) = 0;
528 
534  virtual bool erase(OdGiDrawable* sceneGraph) = 0;
540  virtual void eraseAll() = 0;
541 
547  virtual OdGsModel *getModel(const OdGiDrawable *pDrawable) const = 0;
551  virtual OdGsModelArray getModelList() const = 0;
552 
561  virtual void invalidate() = 0;
562  virtual void invalidate(const OdGsDCRect &screenRect) = 0;
563 
573  virtual bool isValid() const = 0;
574 
581  virtual void update() = 0;
582 
591  virtual void beginInteractivity(double frameRateInHz) = 0;
595  virtual bool isInInteractivity() const = 0;
599  virtual double interactivityFrameRate() const = 0;
604  virtual void endInteractivity() = 0;
611  virtual void flush() = 0;
612 
616  virtual void hide() = 0;
617 
621  virtual void show() = 0;
622 
626  virtual bool isVisible() = 0;
627 
634  virtual void freezeLayer(OdDbStub* layerID) = 0;
635 
642  virtual void thawLayer(OdDbStub* layerID) = 0;
643 
649  virtual void clearFrozenLayers() = 0;
650 
655 
664  virtual void select(const OdGsDCPoint* pts, int nPoints,
665  OdGsSelectionReactor* pReactor,
667 
683  virtual void dolly(const OdGeVector3d& dollyVector) = 0;
684  virtual void dolly(double xDolly, double yDolly, double zDolly) = 0;
685 
705  virtual void roll(double rollAngle) = 0;
706 
729  virtual void orbit(double xOrbit, double yOrbit) = 0;
730 
737  virtual void zoom(double zoomFactor) = 0;
738 
760  virtual void pan(double xPan, double yPan) = 0;
761 
768  virtual void zoomExtents(const OdGePoint3d &minPt, const OdGePoint3d &maxPt) = 0;
769 
776  virtual void zoomWindow(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight) = 0;
777 
783  virtual bool pointInView(const OdGePoint3d &pt) const = 0;
784 
791  virtual bool extentsInView(const OdGePoint3d &minPt, const OdGePoint3d &maxPt) const = 0;
792 
802  virtual OdGsViewPtr cloneView(bool cloneViewParameters = true, bool cloneGeometry = false) = 0;
803 
808  virtual void viewParameters(OdGsView* pView) const = 0;
809 
826  virtual bool exceededBounds() = 0;
827 
833  virtual void enableStereo(bool enabled) = 0;
834 
838  virtual bool isStereoEnabled() const = 0;
839 
859  virtual void setStereoParameters(double magnitude, double parallax) = 0;
860 
880  virtual void getStereoParameters(double& magnitude, double& parallax) const = 0;
881 
886  virtual void initLights(OdRxIterator* pLightsIterator) = 0;
887 
893  virtual void setLinetypeScaleMultiplier(double linetypeScaleMultiplier) = 0;
894 
898  virtual double linetypeScaleMultiplier() const = 0;
899 
905  virtual void setAlternateLinetypeScaleMultiplier(double linetypeAlternateScaleMultiplier) = 0;
906 
910  virtual double linetypeAlternateScaleMultiplier() const = 0;
911 
917  virtual void clientViewInfo(OdGsClientViewInfo& clientViewInfo) const;
918 
920  {
923  kPaletteBackground
924  };
925 
931  virtual void setClearColor(ClearColor color) = 0;
932 
938  virtual bool pointInViewport(const OdGePoint2d& screenPoint) const = 0;
939 
953  virtual void getNumPixelsInUnitSquare(const OdGePoint3d& point,
954  OdGePoint2d& pixelDensity, bool bUsePerspective = true) const = 0;
955 
961  virtual void setBackground(OdDbStub *backgroundId) = 0;
965  virtual OdDbStub *background() const = 0;
966 
972  virtual void setVisualStyle(OdDbStub *visualStyleId) = 0;
976  virtual OdDbStub *visualStyle() const = 0;
982  virtual void setVisualStyle(const OdGiVisualStyle &visualStyle) = 0;
991  virtual bool visualStyle(OdGiVisualStyle &visualStyle) const = 0;
992 
999  virtual void enableDefaultLighting(bool bEnable, DefaultLightingType lightType = kTwoLights) = 0;
1000 
1010  virtual void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect &region) = 0;
1011 };
1012 
1021 {
1023  {
1027  kSetViewportId = 8
1028  };
1029 
1030  long viewportId; // Returned by OdGiViewport::viewportId()
1031  long acadWindowId; // Returned by OdGiViewport::acadWindowId()
1032  OdDbStub* viewportObjectId; // Returned by OdGiViewportDraw::viewportObjectId()
1033  OdGiContextualColorsPtr contextColors; // Returned by OdGiViewport::contextualColors()
1034  OdUInt32 viewportFlags; // Optional view flags
1035 
1037  : viewportId(-1)
1038  , acadWindowId(0)
1040  , viewportFlags(0)
1041  {
1042  }
1043 };
1044 
1045 class OdGiContext;
1046 
1061 {
1062 public:
1064 
1070 
1074  virtual OdGiContext* userGiContext() const = 0;
1075 
1080  virtual void setUserGiContext(OdGiContext* pUserGiContext) = 0;
1081 
1090  virtual void invalidate() = 0;
1091 
1092  virtual void invalidate(const OdGsDCRect &screenRect) = 0;
1093 
1103  virtual bool isValid() const = 0;
1104 
1114  virtual void update(OdGsDCRect* pUpdatedRect = 0) = 0;
1115 
1124  virtual void onSize(const OdGsDCRect& outputRect) = 0;
1125 
1134  virtual void onSize(const OdGsDCRectDouble& outputRect);
1135 
1141  virtual void getSize(OdGsDCRect& outputRect) const = 0;
1142 
1148  virtual void getSize(OdGsDCRectDouble& outputRect) const;
1149 
1155  virtual void onRealizeForegroundPalette() = 0;
1156 
1163  virtual void onRealizeBackgroundPalette() = 0;
1164 
1175  virtual void onDisplayChange(int bitsPerPixel, int xPixels, int yPixels) = 0;
1176 
1189  const OdGsClientViewInfo* pViewInfo = 0,
1190  bool enableLayerVisibilityPerView = false) = 0;
1191 
1197  virtual void addView(OdGsView* pView) = 0;
1198 
1205  virtual OdGsModelPtr createModel() = 0;
1206 
1224  virtual bool isModelCompatible(OdGsModel* pModel) const;
1225 
1231  virtual bool saveDeviceState(OdGsFiler *pFiler) const;
1237  virtual bool loadDeviceState(OdGsFiler *pFiler);
1238 
1245  virtual void insertView(int viewIndex, OdGsView* pView) = 0;
1246 
1254  virtual bool eraseView(OdGsView* pView) = 0;
1255 
1263  virtual bool eraseView(int viewIndex) = 0;
1264 
1268  virtual void eraseAllViews() = 0;
1269 
1273  virtual int numViews() const = 0;
1274 
1279  virtual OdGsView* viewAt(int viewIndex) = 0;
1280 
1285  virtual bool setBackgroundColor(ODCOLORREF backgroundColor) = 0;
1286 
1291 
1301  virtual void setLogicalPalette(const ODCOLORREF* logicalPalette, int numColors) = 0;
1302 
1308  virtual const ODCOLORREF* getLogicalPalette(int &numColors) const = 0;
1309 
1319  virtual void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect &region) = 0;
1320 
1326  virtual OdGsUpdateManagerPtr getUpdateManager( bool createIfNotExist = false );
1327 
1333  virtual void setUpdateManager( OdGsUpdateManagerPtr pManager );
1334 };
1335 
1336 class OdGsModule;
1337 
1351 {
1352 public:
1360  virtual void viewWasCreated(OdGsView* pView);
1361 
1369  virtual void viewToBeDestroyed(OdGsView* pView);
1370 
1378  virtual void gsToBeUnloaded(OdGsModule* pModule);
1379 };
1380 
1387 {
1388 public:
1390 
1397 
1404 
1409  virtual void addReactor(OdGsReactor* pReactor) = 0;
1410 
1415  virtual void removeReactor(OdGsReactor* pReactor) = 0;
1416 };
1417 
1422 
1427 
1428 #include "TD_PackPop.h"
1429 
1430 #endif // __GS_H_INCLUDED_
scale
Definition: DimVarDefs.h:1684
OdSmartPtr< OdGiRasterImage > OdGiRasterImagePtr
Definition: Gs.h:101
OdSmartPtr< OdGsModule > OdGsModulePtr
Definition: Gs.h:1421
OdSmartPtr< OdGiDrawable > OdGiDrawablePtr
Definition: Gs.h:31
OdSmartPtr< OdGsDevice > OdGsDevicePtr
Definition: Gs.h:80
OdSmartPtr< OdGsUpdateManager > OdGsUpdateManagerPtr
Definition: Gs.h:108
const OdGsMarker kNullSubentIndex
Definition: Gs.h:1426
OdArray< OdGsModel *, OdMemoryAllocator< OdGsModel * > > OdGsModelArray
Definition: Gs.h:78
OdSmartPtr< OdGsView > OdGsViewPtr
Definition: Gs.h:61
OdSmartPtr< OdGsModel > OdGsModelPtr
Definition: Gs.h:68
OdSmartPtr< OdGsReactor > OdGsReactorPtr
Definition: Gs.h:94
OdSmartPtr< OdRxDictionary > OdRxDictionaryPtr
Definition: Gs.h:87
#define NULL
Definition: GsProperties.h:177
#define ODCOLORREF
Definition: OdPlatform.h:883
ptrdiff_t OdGsMarker
unsigned int OdUInt32
unsigned char OdUInt8
#define FIRSTDLL_EXPORT
Definition: RootExport.h:39
virtual void onRealizeForegroundPalette()=0
virtual void setLogicalPalette(const ODCOLORREF *logicalPalette, int numColors)=0
virtual void insertView(int viewIndex, OdGsView *pView)=0
virtual OdGsModelPtr createModel()=0
virtual bool eraseView(OdGsView *pView)=0
virtual void onSize(const OdGsDCRect &outputRect)=0
virtual const ODCOLORREF * getLogicalPalette(int &numColors) const =0
virtual void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect &region)=0
virtual void invalidate()=0
virtual OdRxDictionaryPtr properties()=0
virtual bool eraseView(int viewIndex)=0
virtual void setUpdateManager(OdGsUpdateManagerPtr pManager)
virtual ODCOLORREF getBackgroundColor()=0
virtual void getSize(OdGsDCRectDouble &outputRect) const
virtual OdGsUpdateManagerPtr getUpdateManager(bool createIfNotExist=false)
virtual bool isValid() const =0
virtual void setUserGiContext(OdGiContext *pUserGiContext)=0
virtual void getSize(OdGsDCRect &outputRect) const =0
virtual void update(OdGsDCRect *pUpdatedRect=0)=0
virtual bool saveDeviceState(OdGsFiler *pFiler) const
virtual OdGsViewPtr createView(const OdGsClientViewInfo *pViewInfo=0, bool enableLayerVisibilityPerView=false)=0
virtual bool loadDeviceState(OdGsFiler *pFiler)
ODRX_DECLARE_MEMBERS(OdGsDevice)
virtual void onSize(const OdGsDCRectDouble &outputRect)
virtual OdGsView * viewAt(int viewIndex)=0
virtual void addView(OdGsView *pView)=0
virtual void onRealizeBackgroundPalette()=0
virtual void eraseAllViews()=0
virtual void onDisplayChange(int bitsPerPixel, int xPixels, int yPixels)=0
virtual bool setBackgroundColor(ODCOLORREF backgroundColor)=0
virtual bool isModelCompatible(OdGsModel *pModel) const
virtual OdGiContext * userGiContext() const =0
virtual int numViews() const =0
virtual void invalidate(const OdGsDCRect &screenRect)=0
virtual void removeReactor(OdGsReactor *pReactor)=0
ODRX_DECLARE_MEMBERS(OdGsModule)
virtual OdGsDevicePtr createBitmapDevice()
virtual void addReactor(OdGsReactor *pReactor)=0
virtual OdGsDevicePtr createDevice()=0
virtual void viewWasCreated(OdGsView *pView)
virtual void viewToBeDestroyed(OdGsView *pView)
virtual void gsToBeUnloaded(OdGsModule *pModule)
Definition: Gs.h:133
virtual OdGePoint3d position() const =0
virtual void setViewportClipRegion(int numContours, int const *numVertices, OdGsDCPoint const *vertices)=0
virtual void getViewportBorderProperties(ODCOLORREF &color, int &width) const =0
virtual void getViewport(OdGsDCRectDouble &screenRect) const
virtual void zoomExtents(const OdGePoint3d &minPt, const OdGePoint3d &maxPt)=0
virtual void invalidate()=0
virtual void setViewportBorderVisibility(bool visible)=0
virtual bool erase(OdGiDrawable *sceneGraph)=0
virtual void pan(double xPan, double yPan)=0
virtual void beginInteractivity(double frameRateInHz)=0
ClearColor
Definition: Gs.h:920
@ kTransparent
Definition: Gs.h:921
@ kDeviceBackground
Definition: Gs.h:922
virtual void setUserGiContext(OdGiContext *pUserGiContext)=0
virtual double lineweightToDcScale() const =0
virtual OdGeMatrix3d projectionMatrix() const =0
virtual bool extentsInView(const OdGePoint3d &minPt, const OdGePoint3d &maxPt) const =0
virtual void setViewport(const OdGsDCRect &screenRect)=0
virtual bool isValid() const =0
virtual void setView(const OdGePoint3d &position, const OdGePoint3d &target, const OdGeVector3d &upVector, double fieldWidth, double fieldHeight, Projection projectionType=kParallel)=0
DefaultLightingType
Definition: Gs.h:168
@ kTwoLights
Definition: Gs.h:170
virtual const OdGiClipBoundary * viewport3dClipping(const OdGiAbstractClipBoundary **ppClipInfo=NULL) const
virtual void viewportClipRegion(OdIntArray &counts, OdGePoint2dArray &vertices) const =0
virtual void clearFrozenLayers()=0
virtual OdGeVector3d upVector() const =0
virtual void zoom(double zoomFactor)=0
virtual void setViewport(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)=0
virtual bool isStereoEnabled() const =0
virtual void select(const OdGsDCPoint *pts, int nPoints, OdGsSelectionReactor *pReactor, OdGsView::SelectionMode mode=OdGsView::kCrossing)=0
virtual void getViewport(OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const =0
virtual void viewportClipRegion(OdIntArray &counts, OdGsDCPointArray &vertices) const =0
virtual OdGeMatrix3d screenMatrix() const =0
virtual bool isInInteractivity() const =0
virtual void setLineweightToDcScale(double scale)=0
virtual OdGsDevice * device() const =0
void removeViewport3dClipping()
virtual bool isPerspective() const =0
virtual void invalidateCachedViewportGeometry()=0
virtual void setViewport(const OdGsDCRectDouble &screenRect)
virtual void setViewportBorderProperties(ODCOLORREF color, int width)=0
virtual void setVisualStyle(const OdGiVisualStyle &visualStyle)=0
virtual double fieldHeight() const =0
SelectionMode
Definition: Gs.h:157
@ kCrossing
Definition: Gs.h:159
virtual void setLensLength(double lensLength)=0
virtual void clientViewInfo(OdGsClientViewInfo &clientViewInfo) const
virtual void hide()=0
virtual void eraseAll()=0
virtual OdDbStub * background() const =0
virtual void setStereoParameters(double magnitude, double parallax)=0
virtual void getViewport(OdGsDCRect &screenRect) const =0
virtual void setLineweightEnum(int numLineweights, const OdUInt8 *lineweights)=0
virtual bool add(OdGiDrawable *pSceneGraph, OdGsModel *pModel)=0
virtual void viewParameters(OdGsView *pView) const =0
virtual void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect &region)=0
virtual bool isViewportBorderVisible() const =0
virtual double linetypeAlternateScaleMultiplier() const =0
virtual OdDbStub * visualStyle() const =0
virtual double linetypeScaleMultiplier() const =0
virtual void dolly(double xDolly, double yDolly, double zDolly)=0
virtual void initLights(OdRxIterator *pLightsIterator)=0
virtual void setBackClip(double backClip)=0
virtual OdGsModelArray getModelList() const =0
virtual void setEnableBackClip(bool enable)=0
virtual void endInteractivity()=0
virtual RenderMode mode() const =0
virtual OdGiContext * userGiContext() const =0
RenderMode
Definition: Gs.h:138
void removeViewportClipRegion()
virtual void enableDefaultLighting(bool bEnable, DefaultLightingType lightType=kTwoLights)=0
virtual OdGeMatrix3d viewingMatrix() const =0
ODRX_DECLARE_MEMBERS(OdGsView)
virtual bool pointInViewport(const OdGePoint2d &screenPoint) const =0
virtual void setVisualStyle(OdDbStub *visualStyleId)=0
virtual void roll(double rollAngle)=0
virtual OdGeMatrix3d objectToDeviceMatrix() const =0
virtual void freezeLayer(OdDbStub *layerID)=0
virtual double backClip() const =0
virtual void setViewport3dClipping(const OdGiClipBoundary *pBoundary, const OdGiAbstractClipBoundary *pClipInfo=NULL)
virtual void enableStereo(bool enabled)=0
virtual void show()=0
virtual void flush()=0
virtual void setAlternateLinetypeScaleMultiplier(double linetypeAlternateScaleMultiplier)=0
virtual bool isFrontClipped() const =0
virtual double fieldWidth() const =0
virtual void getNumPixelsInUnitSquare(const OdGePoint3d &point, OdGePoint2d &pixelDensity, bool bUsePerspective=true) const =0
virtual void setLinetypeScaleMultiplier(double linetypeScaleMultiplier)=0
virtual void invalidate(const OdGsDCRect &screenRect)=0
virtual void getStereoParameters(double &magnitude, double &parallax) const =0
virtual void setMode(RenderMode mode)=0
virtual bool visualStyle(OdGiVisualStyle &visualStyle) const =0
virtual OdGsModel * getModel(const OdGiDrawable *pDrawable) const =0
virtual void setEnableFrontClip(bool enable)=0
virtual void orbit(double xOrbit, double yOrbit)=0
virtual bool pointInView(const OdGePoint3d &pt) const =0
virtual void setClearColor(ClearColor color)=0
virtual double frontClip() const =0
virtual void setBackground(OdDbStub *backgroundId)=0
virtual OdGePoint3d target() const =0
virtual void setViewportClipRegion(int numContours, int const *numVertices, OdGePoint2d const *vertices)=0
virtual bool isBackClipped() const =0
virtual OdGeMatrix3d worldToDeviceMatrix() const =0
virtual double lensLength() const =0
virtual bool exceededBounds()=0
virtual void setFrontClip(double frontClip)=0
virtual double interactivityFrameRate() const =0
virtual void zoomWindow(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)=0
Projection
Definition: Gs.h:151
virtual OdGsViewPtr cloneView(bool cloneViewParameters=true, bool cloneGeometry=false)=0
virtual void thawLayer(OdDbStub *layerID)=0
virtual void dolly(const OdGeVector3d &dollyVector)=0
virtual void update()=0
virtual bool isVisible()=0
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
@ kCrossing
Definition: DbTableStyle.h:70
@ kGouraudShaded
Definition: ViewportDefs.h:51
@ kHiddenLine
Definition: ViewportDefs.h:49
@ kFlatShaded
Definition: ViewportDefs.h:50
@ k2DOptimized
Definition: ViewportDefs.h:47
@ kFlatShadedWithWireframe
Definition: ViewportDefs.h:52
@ kGouraudShadedWithWireframe
Definition: ViewportDefs.h:53
@ kPerspective
Orthographic camera projection.
@ kNone
Light mode is inherited from the annotation.
OdUInt32 viewportFlags
Definition: Gs.h:1034
OdGsClientViewInfo()
Definition: Gs.h:1036
@ kDependentViewport
Definition: Gs.h:1024
@ kDependentGeometry
Definition: Gs.h:1025
long acadWindowId
Definition: Gs.h:1031
OdDbStub * viewportObjectId
Definition: Gs.h:1032
long viewportId
Definition: Gs.h:1030
OdGiContextualColorsPtr contextColors
Definition: Gs.h:1033