CFx SDK Documentation  2020SP3
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_
OdGsView::extentsInView
virtual bool extentsInView(const OdGePoint3d &minPt, const OdGePoint3d &maxPt) const =0
OdGsDevice::getSize
virtual void getSize(OdGsDCRectDouble &outputRect) const
FIRSTDLL_EXPORT
#define FIRSTDLL_EXPORT
Definition: RootExport.h:39
OdGsDevice::getUpdateManager
virtual OdGsUpdateManagerPtr getUpdateManager(bool createIfNotExist=false)
OdGsView::zoomExtents
virtual void zoomExtents(const OdGePoint3d &minPt, const OdGePoint3d &maxPt)=0
OdGsView::clearFrozenLayers
virtual void clearFrozenLayers()=0
OdGiContext
Definition: GiCommonDraw.h:108
OdGsView::enableStereo
virtual void enableStereo(bool enabled)=0
OdGsView::setUserGiContext
virtual void setUserGiContext(OdGiContext *pUserGiContext)=0
OdGsView::eraseAll
virtual void eraseAll()=0
OdGeVector3d
Definition: GeVector3d.h:54
NULL
#define NULL
Definition: GsProperties.h:177
OdGsView::upVector
virtual OdGeVector3d upVector() const =0
OdGsDevice::getSize
virtual void getSize(OdGsDCRect &outputRect) const =0
OdGsView::RenderMode
RenderMode
Definition: Gs.h:138
OdRxIterator
Definition: RxIterator.h:46
OdGsView::setFrontClip
virtual void setFrontClip(double frontClip)=0
OdPlatform.h
OdGsDevice::update
virtual void update(OdGsDCRect *pUpdatedRect=0)=0
OdUInt8
unsigned char OdUInt8
Definition: OdPlatformSettings.h:759
OdGsDevice::onSize
virtual void onSize(const OdGsDCRectDouble &outputRect)
OdGsView::setViewportBorderVisibility
virtual void setViewportBorderVisibility(bool visible)=0
OdDb::kFlatShaded
@ kFlatShaded
Definition: ViewportDefs.h:50
scale
scale
Definition: DimVarDefs.h:1684
OdGsView
Definition: Gs.h:133
RxModule.h
OdGsDCRectDouble
Definition: GsDefs.h:242
OdGsView::update
virtual void update()=0
OdGsView::worldToDeviceMatrix
virtual OdGeMatrix3d worldToDeviceMatrix() const =0
OdGsView::screenMatrix
virtual OdGeMatrix3d screenMatrix() const =0
OdGsView::pan
virtual void pan(double xPan, double yPan)=0
OdGsView::getSnapShot
virtual void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect &region)=0
OdGsView::setStereoParameters
virtual void setStereoParameters(double magnitude, double parallax)=0
OdGsView::setViewportBorderProperties
virtual void setViewportBorderProperties(ODCOLORREF color, int width)=0
OdGsView::beginInteractivity
virtual void beginInteractivity(double frameRateInHz)=0
OdGsView::setViewportClipRegion
virtual void setViewportClipRegion(int numContours, int const *numVertices, OdGePoint2d const *vertices)=0
OdGsView::setBackClip
virtual void setBackClip(double backClip)=0
OdGsModule::createDevice
virtual OdGsDevicePtr createDevice()=0
OdGsView::mode
virtual RenderMode mode() const =0
OdGsView::visualStyle
virtual bool visualStyle(OdGiVisualStyle &visualStyle) const =0
OdGsView::setMode
virtual void setMode(RenderMode mode)=0
OdGsView::isPerspective
virtual bool isPerspective() const =0
OdGsView::erase
virtual bool erase(OdGiDrawable *sceneGraph)=0
OdGsView::getStereoParameters
virtual void getStereoParameters(double &magnitude, double &parallax) const =0
OdGsDevice::saveDeviceState
virtual bool saveDeviceState(OdGsFiler *pFiler) const
OdGsDevice::getLogicalPalette
virtual const ODCOLORREF * getLogicalPalette(int &numColors) const =0
OdGsModule::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdGsModule)
OdRxObject
Definition: RxObject.h:564
OdPdfPublish::Camera::kPerspective
@ kPerspective
Orthographic camera projection.
Definition: PdfPublishCommon.h:144
OdGsView::ClearColor
ClearColor
Definition: Gs.h:920
OdGsDCRect
Definition: GsDefs.h:111
OdRxDictionaryPtr
OdSmartPtr< OdRxDictionary > OdRxDictionaryPtr
Definition: Gs.h:87
OdGsView::dolly
virtual void dolly(const OdGeVector3d &dollyVector)=0
OdGsView::initLights
virtual void initLights(OdRxIterator *pLightsIterator)=0
OdGsView::zoomWindow
virtual void zoomWindow(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)=0
OdGsView::setVisualStyle
virtual void setVisualStyle(const OdGiVisualStyle &visualStyle)=0
OdGsView::kDeviceBackground
@ kDeviceBackground
Definition: Gs.h:922
OdGsDevice
Definition: Gs.h:1061
OdGsReactor::viewWasCreated
virtual void viewWasCreated(OdGsView *pView)
OdGsView::setViewport
virtual void setViewport(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)=0
OdGsView::setViewport
virtual void setViewport(const OdGsDCRect &screenRect)=0
OdGiVertexData
Definition: GiGeometry.h:549
OdGsModelPtr
OdSmartPtr< OdGsModel > OdGsModelPtr
Definition: Gs.h:68
OdGsDevice::setUserGiContext
virtual void setUserGiContext(OdGiContext *pUserGiContext)=0
OdDb::kGouraudShadedWithWireframe
@ kGouraudShadedWithWireframe
Definition: ViewportDefs.h:53
RxIterator.h
OdGsView::setEnableBackClip
virtual void setEnableBackClip(bool enable)=0
OdGsDevice::setBackgroundColor
virtual bool setBackgroundColor(ODCOLORREF backgroundColor)=0
OdGsDCPoint
Definition: GsDefs.h:53
OdGsDevice::invalidate
virtual void invalidate()=0
OdGsClientViewInfo::kDependentViewport
@ kDependentViewport
Definition: Gs.h:1024
OdGsView::isViewportBorderVisible
virtual bool isViewportBorderVisible() const =0
OdGsView::freezeLayer
virtual void freezeLayer(OdDbStub *layerID)=0
OdArray
Definition: OdArray.h:591
OdGsView::viewingMatrix
virtual OdGeMatrix3d viewingMatrix() const =0
OdGsModelArray
OdArray< OdGsModel *, OdMemoryAllocator< OdGsModel * > > OdGsModelArray
Definition: Gs.h:78
TD_PackPop.h
OdGsUpdateManager
Definition: GsUpdateManager.h:44
OdGsDevice::onRealizeForegroundPalette
virtual void onRealizeForegroundPalette()=0
OdGsView::viewport3dClipping
virtual const OdGiClipBoundary * viewport3dClipping(const OdGiAbstractClipBoundary **ppClipInfo=NULL) const
OdGiRasterImagePtr
OdSmartPtr< OdGiRasterImage > OdGiRasterImagePtr
Definition: Gs.h:101
IntArray.h
OdGsMarker
ptrdiff_t OdGsMarker
Definition: OdPlatformSettings.h:889
OdGsView::roll
virtual void roll(double rollAngle)=0
OdGsDevice::setUpdateManager
virtual void setUpdateManager(OdGsUpdateManagerPtr pManager)
OdGsDevice::viewAt
virtual OdGsView * viewAt(int viewIndex)=0
OdGsView::visualStyle
virtual OdDbStub * visualStyle() const =0
OdDb::kCrossing
@ kCrossing
Definition: DbTableStyle.h:70
RxObject.h
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdGsView::pointInViewport
virtual bool pointInViewport(const OdGePoint2d &screenPoint) const =0
OdGsViewPtr
OdSmartPtr< OdGsView > OdGsViewPtr
Definition: Gs.h:61
OdGsDevice::getSnapShot
virtual void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect &region)=0
OdGsDevice::isModelCompatible
virtual bool isModelCompatible(OdGsModel *pModel) const
OdGsView::fieldHeight
virtual double fieldHeight() const =0
OdGiClipBoundary
Definition: GiClipBoundary.h:41
OdPdfPublish::Lighting::kNone
@ kNone
Light mode is inherited from the annotation.
Definition: PdfPublishCommon.h:160
OdGsView::getViewportBorderProperties
virtual void getViewportBorderProperties(ODCOLORREF &color, int &width) const =0
OdGsReactorPtr
OdSmartPtr< OdGsReactor > OdGsReactorPtr
Definition: Gs.h:94
OdGsView::SelectionMode
SelectionMode
Definition: Gs.h:157
OdGiFaceData
Definition: GiGeometry.h:245
OdGsView::projectionMatrix
virtual OdGeMatrix3d projectionMatrix() const =0
OdGsView::target
virtual OdGePoint3d target() const =0
OdGsView::select
virtual void select(const OdGsDCPoint *pts, int nPoints, OdGsSelectionReactor *pReactor, OdGsView::SelectionMode mode=OdGsView::kCrossing)=0
OdGsDevice::isValid
virtual bool isValid() const =0
OdGsView::getNumPixelsInUnitSquare
virtual void getNumPixelsInUnitSquare(const OdGePoint3d &point, OdGePoint2d &pixelDensity, bool bUsePerspective=true) const =0
OdGsView::invalidate
virtual void invalidate()=0
OdGsView::removeViewport3dClipping
void removeViewport3dClipping()
OdSmartPtr< OdGiDrawable >
OdGePoint3d
Definition: GePoint3d.h:55
OdGsDevice::eraseView
virtual bool eraseView(OdGsView *pView)=0
OdGiVisualStyle
Definition: GiVisualStyle.h:996
OdGsDevice::addView
virtual void addView(OdGsView *pView)=0
OdGsView::lineweightToDcScale
virtual double lineweightToDcScale() const =0
OdGsView::interactivityFrameRate
virtual double interactivityFrameRate() const =0
OdGsClientViewInfo::kDependentGeometry
@ kDependentGeometry
Definition: Gs.h:1025
OdGsModulePtr
OdSmartPtr< OdGsModule > OdGsModulePtr
Definition: Gs.h:1421
OdGsView::dolly
virtual void dolly(double xDolly, double yDolly, double zDolly)=0
OdGiAbstractClipBoundary
Definition: GiAbstractClipBoundary.h:39
OdGsView::invalidate
virtual void invalidate(const OdGsDCRect &screenRect)=0
OdGsDevice::onSize
virtual void onSize(const OdGsDCRect &outputRect)=0
OdGsView::setView
virtual void setView(const OdGePoint3d &position, const OdGePoint3d &target, const OdGeVector3d &upVector, double fieldWidth, double fieldHeight, Projection projectionType=kParallel)=0
OdGsView::DefaultLightingType
DefaultLightingType
Definition: Gs.h:168
OdGsClientViewInfo::viewportFlags
OdUInt32 viewportFlags
Definition: Gs.h:1034
OdGsView::linetypeAlternateScaleMultiplier
virtual double linetypeAlternateScaleMultiplier() const =0
OdGsView::viewportClipRegion
virtual void viewportClipRegion(OdIntArray &counts, OdGsDCPointArray &vertices) const =0
OdDb::kGouraudShaded
@ kGouraudShaded
Definition: ViewportDefs.h:51
OdGsDevice::eraseAllViews
virtual void eraseAllViews()=0
OdGiDrawable
Definition: GiDrawable.h:49
OdGsView::invalidateCachedViewportGeometry
virtual void invalidateCachedViewportGeometry()=0
OdGsClientViewInfo::viewportObjectId
OdDbStub * viewportObjectId
Definition: Gs.h:1032
OdGsView::fieldWidth
virtual double fieldWidth() const =0
OdGsView::isFrontClipped
virtual bool isFrontClipped() const =0
OdGsClientViewInfo::viewportId
long viewportId
Definition: Gs.h:1030
OdGsView::isVisible
virtual bool isVisible()=0
OdGsView::pointInView
virtual bool pointInView(const OdGePoint3d &pt) const =0
OdGsView::setLensLength
virtual void setLensLength(double lensLength)=0
OdGsView::getViewport
virtual void getViewport(OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const =0
width
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
OdGiEdgeData
Definition: GiGeometry.h:67
GsDCPointArray.h
OdGsClientViewInfo::kSetViewportId
@ kSetViewportId
Definition: Gs.h:1027
OdGsDevice::numViews
virtual int numViews() const =0
OdGsView::enableDefaultLighting
virtual void enableDefaultLighting(bool bEnable, DefaultLightingType lightType=kTwoLights)=0
OdGsView::objectToDeviceMatrix
virtual OdGeMatrix3d objectToDeviceMatrix() const =0
OdRxDictionary
Definition: RxDictionary.h:114
TD_PackPush.h
PDF3D_ENUMS::kBoundingBox
@ kBoundingBox
Definition: Pdf3dEnums.h:54
OdGsView::isValid
virtual bool isValid() const =0
GsExport.h
OdGsView::clientViewInfo
virtual void clientViewInfo(OdGsClientViewInfo &clientViewInfo) const
GePoint2dArray.h
GiContextualColors.h
OdGsView::setLineweightEnum
virtual void setLineweightEnum(int numLineweights, const OdUInt8 *lineweights)=0
OdGsView::kTransparent
@ kTransparent
Definition: Gs.h:921
kNullSubentIndex
const OdGsMarker kNullSubentIndex
Definition: Gs.h:1426
OdGsView::setLinetypeScaleMultiplier
virtual void setLinetypeScaleMultiplier(double linetypeScaleMultiplier)=0
OdGsView::position
virtual OdGePoint3d position() const =0
OdGsModule
Definition: Gs.h:1387
OdGsView::thawLayer
virtual void thawLayer(OdDbStub *layerID)=0
OdDb::kHiddenLine
@ kHiddenLine
Definition: ViewportDefs.h:49
OdGsDevice::createView
virtual OdGsViewPtr createView(const OdGsClientViewInfo *pViewInfo=0, bool enableLayerVisibilityPerView=false)=0
OdGsView::getViewport
virtual void getViewport(OdGsDCRect &screenRect) const =0
PDF3D_ENUMS::kWireframe
@ kWireframe
Definition: Pdf3dEnums.h:61
OdGsModule::removeReactor
virtual void removeReactor(OdGsReactor *pReactor)=0
OdGsView::zoom
virtual void zoom(double zoomFactor)=0
OdGsView::hide
virtual void hide()=0
OdGsReactor::viewToBeDestroyed
virtual void viewToBeDestroyed(OdGsView *pView)
OdGsReactor
Definition: Gs.h:1351
OdGsView::setBackground
virtual void setBackground(OdDbStub *backgroundId)=0
OdGsDevice::insertView
virtual void insertView(int viewIndex, OdGsView *pView)=0
OdGsDevice::getBackgroundColor
virtual ODCOLORREF getBackgroundColor()=0
OdGsReactor::gsToBeUnloaded
virtual void gsToBeUnloaded(OdGsModule *pModule)
OdGsView::viewParameters
virtual void viewParameters(OdGsView *pView) const =0
OdGsView::isInInteractivity
virtual bool isInInteractivity() const =0
OdGsView::add
virtual bool add(OdGiDrawable *pSceneGraph, OdGsModel *pModel)=0
OdGsDevicePtr
OdSmartPtr< OdGsDevice > OdGsDevicePtr
Definition: Gs.h:80
OdGsView::frontClip
virtual double frontClip() const =0
OdGsDevice::onRealizeBackgroundPalette
virtual void onRealizeBackgroundPalette()=0
OdGsView::viewportClipRegion
virtual void viewportClipRegion(OdIntArray &counts, OdGePoint2dArray &vertices) const =0
OdGsView::setViewport
virtual void setViewport(const OdGsDCRectDouble &screenRect)
OdGsDevice::loadDeviceState
virtual bool loadDeviceState(OdGsFiler *pFiler)
OdGsView::setVisualStyle
virtual void setVisualStyle(OdDbStub *visualStyleId)=0
OdGsView::kTwoLights
@ kTwoLights
Definition: Gs.h:170
OdGsClientViewInfo
Definition: Gs.h:1021
OdGsClientViewInfo::acadWindowId
long acadWindowId
Definition: Gs.h:1031
OdGeExtents3d
Definition: GeExtents3d.h:45
OdGsClientViewInfo::ViewportFlags
ViewportFlags
Definition: Gs.h:1023
OdGsView::flush
virtual void flush()=0
OdGsView::getViewport
virtual void getViewport(OdGsDCRectDouble &screenRect) const
GsDefs.h
OdGsView::endInteractivity
virtual void endInteractivity()=0
OdGsClientViewInfo::kHelperView
@ kHelperView
Definition: Gs.h:1026
OdGsDevice::onDisplayChange
virtual void onDisplayChange(int bitsPerPixel, int xPixels, int yPixels)=0
OdRxModule
Definition: RxModule.h:45
OdGsDevice::setLogicalPalette
virtual void setLogicalPalette(const ODCOLORREF *logicalPalette, int numColors)=0
ODCOLORREF
#define ODCOLORREF
Definition: OdPlatform.h:883
OdGsView::setLineweightToDcScale
virtual void setLineweightToDcScale(double scale)=0
OdGsView::isBackClipped
virtual bool isBackClipped() const =0
OdGsView::userGiContext
virtual OdGiContext * userGiContext() const =0
OdGsDevice::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdGsDevice)
OdGsDevice::userGiContext
virtual OdGiContext * userGiContext() const =0
OdGsView::device
virtual OdGsDevice * device() const =0
OdGsView::getModel
virtual OdGsModel * getModel(const OdGiDrawable *pDrawable) const =0
OdGsView::backClip
virtual double backClip() const =0
OdGsDevice::eraseView
virtual bool eraseView(int viewIndex)=0
OdGsView::setViewportClipRegion
virtual void setViewportClipRegion(int numContours, int const *numVertices, OdGsDCPoint const *vertices)=0
OdGsView::Projection
Projection
Definition: Gs.h:151
OdGsView::orbit
virtual void orbit(double xOrbit, double yOrbit)=0
OdDb::kWindow
@ kWindow
Definition: DbTableStyle.h:69
OdGsDevice::properties
virtual OdRxDictionaryPtr properties()=0
OdGsModel
Definition: GsModel.h:77
OdGsModule::createBitmapDevice
virtual OdGsDevicePtr createBitmapDevice()
OdGsView::removeViewportClipRegion
void removeViewportClipRegion()
OdGsView::exceededBounds
virtual bool exceededBounds()=0
OdGsView::setViewport3dClipping
virtual void setViewport3dClipping(const OdGiClipBoundary *pBoundary, const OdGiAbstractClipBoundary *pClipInfo=NULL)
OdGsView::setEnableFrontClip
virtual void setEnableFrontClip(bool enable)=0
OdGsFiler
Definition: GsFiler.h:63
OdGsView::setAlternateLinetypeScaleMultiplier
virtual void setAlternateLinetypeScaleMultiplier(double linetypeAlternateScaleMultiplier)=0
OdGsView::setClearColor
virtual void setClearColor(ClearColor color)=0
OdGsView::background
virtual OdDbStub * background() const =0
OdDb::k2DOptimized
@ k2DOptimized
Definition: ViewportDefs.h:47
OdGsView::show
virtual void show()=0
OdDb::kFlatShadedWithWireframe
@ kFlatShadedWithWireframe
Definition: ViewportDefs.h:52
OdGsView::getModelList
virtual OdGsModelArray getModelList() const =0
OdGsView::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdGsView)
OdGsDevice::invalidate
virtual void invalidate(const OdGsDCRect &screenRect)=0
OdGsUpdateManagerPtr
OdSmartPtr< OdGsUpdateManager > OdGsUpdateManagerPtr
Definition: Gs.h:108
OdGiRasterImage
Definition: GiRasterImage.h:37
OdGsModule::addReactor
virtual void addReactor(OdGsReactor *pReactor)=0
OdGsView::lensLength
virtual double lensLength() const =0
OdGsView::kCrossing
@ kCrossing
Definition: Gs.h:159
OdGsClientViewInfo::contextColors
OdGiContextualColorsPtr contextColors
Definition: Gs.h:1033
OdGsSelectionReactor
Definition: GsSelectionReactor.h:128
OdGsView::isStereoEnabled
virtual bool isStereoEnabled() const =0
OdGsView::cloneView
virtual OdGsViewPtr cloneView(bool cloneViewParameters=true, bool cloneGeometry=false)=0
OdGiDrawablePtr
OdSmartPtr< OdGiDrawable > OdGiDrawablePtr
Definition: Gs.h:31
OdGsClientViewInfo::OdGsClientViewInfo
OdGsClientViewInfo()
Definition: Gs.h:1036
OdGsDevice::createModel
virtual OdGsModelPtr createModel()=0
OdGePoint2d
Definition: GePoint2d.h:60
OdGsView::linetypeScaleMultiplier
virtual double linetypeScaleMultiplier() const =0