CFx SDK Documentation  2020SP3
GsInterfaceWrappers.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 __GSINTERFACEWRAPPERS_H_INCLUDED_
25 #define __GSINTERFACEWRAPPERS_H_INCLUDED_
26 
27 #include "Gs/Gs.h"
28 #include "Ge/GePoint3d.h"
29 #include "Ge/GeVector3d.h"
30 #include "Ge/GeMatrix3d.h"
31 #include "Gs/GsModel.h"
32 #include "Gs/GsUpdateManager.h"
33 
34 #include "UInt8Array.h"
35 #include "IntArray.h"
36 #include "Ge/GePoint2dArray.h"
37 
38 #include "TD_PackPush.h"
39 
47 template <typename RedirectionBaseInterface, typename RedirectionInterface>
48 class OdGsDefaultRedirectionBase : public RedirectionInterface
49 {
50  private:
51  RedirectionBaseInterface *m_pRedirectionObj;
52  public:
53  OdGsDefaultRedirectionBase(RedirectionBaseInterface *pRedirectionObj = NULL)
54  : m_pRedirectionObj(pRedirectionObj)
55  {}
56 
57  bool hasRedirection() const { return m_pRedirectionObj != NULL; }
58  const RedirectionBaseInterface *redirection() const { return m_pRedirectionObj; }
59  RedirectionBaseInterface *redirection() { return m_pRedirectionObj; }
60  void setRedirection(RedirectionBaseInterface *pRedirectionObj) { m_pRedirectionObj = pRedirectionObj; }
61  void resetRedirection() { m_pRedirectionObj = NULL; }
62 };
63 
71 template <typename RedirectionBaseInterface, typename RedirectionInterface>
72 class OdGsAbstractRedirectionBase : public RedirectionInterface
73 {
74  public:
75  OdGsAbstractRedirectionBase(RedirectionBaseInterface * /*pRedirectionObj*/ = NULL)
76  {}
77 
78  virtual bool hasRedirection() const = 0;
79  virtual const RedirectionBaseInterface *redirection() const = 0;
80  virtual RedirectionBaseInterface *redirection() = 0;
81  virtual void setRedirection(RedirectionBaseInterface * /*pRedirectionObj*/) {}
82  virtual void resetRedirection() {}
83 };
84 
92 template <typename GsViewInterface = OdGsView, typename RedirectionBase = OdGsDefaultRedirectionBase<OdGsView, GsViewInterface> >
93 class OdGsViewWrapper : public RedirectionBase
94 {
95  private:
96  bool trHas() const { return this->hasRedirection(); }
97  const OdGsView *trCall() const { return this->redirection(); }
98  OdGsView *trCall() { return this->redirection(); }
99  public:
100  OdGsViewWrapper(OdGsView *pRedirectionView = NULL)
101  : RedirectionBase(pRedirectionView)
102  {}
103 
104  // OdGsView wrappers
105 
107  {
108  if (trHas())
109  return trCall()->device();
110  return NULL;
111  }
112 
114  {
115  if (trHas())
116  return trCall()->userGiContext();
117  return NULL;
118  }
119  void setUserGiContext(OdGiContext* pUserGiContext)
120  {
121  if (trHas())
122  trCall()->setUserGiContext(pUserGiContext);
123  }
124 
125  double lineweightToDcScale() const
126  {
127  if (trHas())
128  return trCall()->lineweightToDcScale();
129  return 1.0;
130  }
132  {
133  if (trHas())
134  trCall()->setLineweightToDcScale(scale);
135  }
136  void setLineweightEnum(int numLineweights, const OdUInt8* lineweights)
137  {
138  if (trHas())
139  trCall()->setLineweightEnum(numLineweights, lineweights);
140  }
141 
142  void setViewport(const OdGePoint2d& lowerLeft, const OdGePoint2d& upperRight)
143  {
144  if (trHas())
145  trCall()->setViewport(lowerLeft, upperRight);
146  }
147  void setViewport(const OdGsDCRect& screenRect)
148  {
149  if (trHas())
150  trCall()->setViewport(screenRect);
151  }
152  void setViewport(const OdGsDCRectDouble& screenRect)
153  {
154  if (trHas())
155  trCall()->setViewport(screenRect);
156  }
157  void getViewport(OdGePoint2d& lowerLeft, OdGePoint2d& upperRight) const
158  {
159  if (trHas())
160  trCall()->getViewport(lowerLeft, upperRight);
161  }
162  void getViewport(OdGsDCRect& screenRect) const
163  {
164  if (trHas())
165  trCall()->getViewport(screenRect);
166  }
167  void getViewport(OdGsDCRectDouble& screenRect) const
168  {
169  if (trHas())
170  trCall()->getViewport(screenRect);
171  }
172 
173  void setViewportClipRegion(int numContours, int const* numVertices, OdGsDCPoint const* vertices)
174  {
175  if (trHas())
176  trCall()->setViewportClipRegion(numContours, numVertices, vertices);
177  }
178  void setViewportClipRegion(int numContours, int const* numVertices, OdGePoint2d const* vertices)
179  {
180  if (trHas())
181  trCall()->setViewportClipRegion(numContours, numVertices, vertices);
182  }
183  void viewportClipRegion(OdIntArray& counts, OdGsDCPointArray& vertices) const
184  {
185  if (trHas())
186  trCall()->viewportClipRegion(counts, vertices);
187  }
188  void viewportClipRegion(OdIntArray& counts, OdGePoint2dArray& vertices) const
189  {
190  if (trHas())
191  trCall()->viewportClipRegion(counts, vertices);
192  }
193 
194  void setViewport3dClipping(const OdGiClipBoundary* pBoundary, const OdGiAbstractClipBoundary* pClipInfo = NULL)
195  {
196  if (trHas())
197  trCall()->setViewport3dClipping(pBoundary, pClipInfo);
198  }
200  {
201  if (trHas())
202  return trCall()->viewport3dClipping(ppClipInfo);
203  return NULL;
204  }
205 
207  {
208  if (trHas())
209  trCall()->setViewportBorderProperties(color, width);
210  }
212  {
213  if (trHas())
214  trCall()->getViewportBorderProperties(color, width);
215  }
216  void setViewportBorderVisibility(bool visible)
217  {
218  if (trHas())
219  trCall()->setViewportBorderVisibility(visible);
220  }
222  {
223  if (trHas())
224  return trCall()->isViewportBorderVisible();
225  return false;
226  }
227 
229  double fieldWidth, double fieldHeight, OdGsView::Projection projectionType = OdGsView::kParallel)
230  {
231  if (trHas())
232  trCall()->setView(position, target, upVector, fieldWidth, fieldHeight, projectionType);
233  }
235  {
236  if (trHas())
237  return trCall()->position();
238  return OdGePoint3d::kOrigin;
239  }
241  {
242  if (trHas())
243  return trCall()->target();
245  }
247  {
248  if (trHas())
249  return trCall()->upVector();
250  return OdGeVector3d::kYAxis;
251  }
252 
253  double lensLength() const
254  {
255  if (trHas())
256  return trCall()->lensLength();
257  return 50.0;
258  }
260  {
261  if (trHas())
262  trCall()->setLensLength(lensLength);
263  }
264  bool isPerspective() const
265  {
266  if (trHas())
267  return trCall()->isPerspective();
268  return false;
269  }
270 
271  double fieldWidth() const
272  {
273  if (trHas())
274  return trCall()->fieldWidth();
275  return 1.0;
276  }
277  double fieldHeight() const
278  {
279  if (trHas())
280  return trCall()->fieldHeight();
281  return 1.0;
282  }
283 
284  void setEnableFrontClip(bool enable)
285  {
286  if (trHas())
287  trCall()->setEnableFrontClip(enable);
288  }
289  bool isFrontClipped() const
290  {
291  if (trHas())
292  return trCall()->isFrontClipped();
293  return false;
294  }
295  void setFrontClip(double frontClip)
296  {
297  if (trHas())
298  trCall()->setFrontClip(frontClip);
299  }
300  double frontClip() const
301  {
302  if (trHas())
303  return trCall()->frontClip();
304  return 0.0;
305  }
306  void setEnableBackClip(bool enable)
307  {
308  if (trHas())
309  trCall()->setEnableBackClip(enable);
310  }
311  bool isBackClipped() const
312  {
313  if (trHas())
314  return trCall()->isBackClipped();
315  return false;
316  }
317  void setBackClip(double backClip)
318  {
319  if (trHas())
320  trCall()->setBackClip(backClip);
321  }
322  double backClip() const
323  {
324  if (trHas())
325  return trCall()->backClip();
326  return 0.0;
327  }
328 
330  {
331  if (trHas())
332  return trCall()->viewingMatrix();
334  }
336  {
337  if (trHas())
338  return trCall()->projectionMatrix();
340  }
342  {
343  if (trHas())
344  return trCall()->screenMatrix();
346  }
348  {
349  if (trHas())
350  return trCall()->worldToDeviceMatrix();
352  }
354  {
355  if (trHas())
356  return trCall()->objectToDeviceMatrix();
358  }
359 
361  {
362  if (trHas())
363  trCall()->setMode(mode);
364  }
366  {
367  if (trHas())
368  return trCall()->mode();
369  return OdGsView::kNone;
370  }
371 
372  bool add(OdGiDrawable* pSceneGraph, OdGsModel* pModel)
373  {
374  if (trHas())
375  return trCall()->add(pSceneGraph, pModel);
376  return false;
377  }
378  bool erase(OdGiDrawable* sceneGraph)
379  {
380  if (trHas())
381  return trCall()->erase(sceneGraph);
382  return false;
383  }
384  void eraseAll()
385  {
386  if (trHas())
387  trCall()->eraseAll();
388  }
389 
390  OdGsModel *getModel(const OdGiDrawable *pDrawable) const
391  {
392  if (trHas())
393  return trCall()->getModel(pDrawable);
394  return NULL;
395  }
397  {
398  if (trHas())
399  return trCall()->getModelList();
400  return OdGsModelArray();
401  }
402 
403  void invalidate()
404  {
405  if (trHas())
406  trCall()->invalidate();
407  }
408  void invalidate(const OdGsDCRect &screenRect)
409  {
410  if (trHas())
411  trCall()->invalidate(screenRect);
412  }
413  bool isValid() const
414  {
415  if (trHas())
416  return trCall()->isValid();
417  return false;
418  }
419 
420  void update()
421  {
422  if (trHas())
423  trCall()->update();
424  }
425 
426  void beginInteractivity(double frameRateInHz)
427  {
428  if (trHas())
429  trCall()->beginInteractivity(frameRateInHz);
430  }
432  {
433  if (trHas())
434  trCall()->endInteractivity();
435  }
436  bool isInInteractivity() const
437  {
438  if (trHas())
439  return trCall()->isInInteractivity();
440  return false;
441  }
442  double interactivityFrameRate() const
443  {
444  if (trHas())
445  return trCall()->interactivityFrameRate();
446  return 0.0;
447  }
448 
449  void flush()
450  {
451  if (trHas())
452  trCall()->flush();
453  }
454 
455  void hide()
456  {
457  if (trHas())
458  trCall()->hide();
459  }
460  void show()
461  {
462  if (trHas())
463  trCall()->show();
464  }
465  bool isVisible()
466  {
467  if (trHas())
468  return trCall()->isVisible();
469  return false;
470  }
471 
472  void freezeLayer(OdDbStub* layerID)
473  {
474  if (trHas())
475  trCall()->freezeLayer(layerID);
476  }
477  void thawLayer(OdDbStub* layerID)
478  {
479  if (trHas())
480  trCall()->thawLayer(layerID);
481  }
483  {
484  if (trHas())
485  trCall()->clearFrozenLayers();
486  }
487 
489  {
490  if (trHas())
492  }
493 
494  void select(const OdGsDCPoint* pts, int nPoints, OdGsSelectionReactor* pReactor,
496  {
497  if (trHas())
498  trCall()->select(pts, nPoints, pReactor, mode);
499  }
500 
501  void dolly(const OdGeVector3d& dollyVector)
502  {
503  if (trHas())
504  trCall()->dolly(dollyVector);
505  }
506  void dolly(double xDolly, double yDolly, double zDolly)
507  {
508  if (trHas())
509  trCall()->dolly(xDolly, yDolly, zDolly);
510  }
511  void roll(double rollAngle)
512  {
513  if (trHas())
514  trCall()->roll(rollAngle);
515  }
516  void orbit(double xOrbit, double yOrbit)
517  {
518  if (trHas())
519  trCall()->orbit(xOrbit, yOrbit);
520  }
521  void zoom(double zoomFactor)
522  {
523  if (trHas())
524  trCall()->zoom(zoomFactor);
525  }
526  void pan(double xPan, double yPan)
527  {
528  if (trHas())
529  trCall()->pan(xPan, yPan);
530  }
531 
532  void zoomExtents(const OdGePoint3d &minPt, const OdGePoint3d &maxPt)
533  {
534  if (trHas())
535  trCall()->zoomExtents(minPt, maxPt);
536  }
537  void zoomWindow(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)
538  {
539  if (trHas())
540  trCall()->zoomWindow(lowerLeft, upperRight);
541  }
542 
543  bool pointInView(const OdGePoint3d &pt) const
544  {
545  if (trHas())
546  return trCall()->pointInView(pt);
547  return false;
548  }
549  bool extentsInView(const OdGePoint3d &minPt, const OdGePoint3d &maxPt) const
550  {
551  if (trHas())
552  return trCall()->extentsInView(minPt, maxPt);
553  return false;
554  }
555 
556  OdGsViewPtr cloneView(bool cloneViewParameters = true, bool cloneGeometry = false)
557  {
558  if (trHas())
559  return trCall()->cloneView(cloneViewParameters, cloneGeometry);
560  return OdGsViewPtr();
561  }
562  void viewParameters(OdGsView* pView) const
563  {
564  if (trHas())
565  trCall()->viewParameters(pView);
566  }
567 
569  {
570  if (trHas())
571  return trCall()->exceededBounds();
572  return false;
573  }
574 
575  void enableStereo(bool enabled)
576  {
577  if (trHas())
578  trCall()->enableStereo(enabled);
579  }
580  bool isStereoEnabled() const
581  {
582  if (trHas())
583  return trCall()->isStereoEnabled();
584  return false;
585  }
586  void setStereoParameters(double magnitude, double parallax)
587  {
588  if (trHas())
589  trCall()->setStereoParameters(magnitude, parallax);
590  }
591  void getStereoParameters(double& magnitude, double& parallax) const
592  {
593  if (trHas())
594  trCall()->getStereoParameters(magnitude, parallax);
595  }
596 
597  void initLights(OdRxIterator* pLightsIterator)
598  {
599  if (trHas())
600  trCall()->initLights(pLightsIterator);
601  }
602 
604  {
605  if (trHas())
607  }
608  double linetypeScaleMultiplier() const
609  {
610  if (trHas())
611  return trCall()->linetypeScaleMultiplier();
612  return 1.0;
613  }
615  {
616  if (trHas())
618  }
620  {
621  if (trHas())
622  return trCall()->linetypeAlternateScaleMultiplier();
623  return 1.0;
624  }
625 
627  {
628  if (trHas())
629  trCall()->clientViewInfo(clientViewInfo);
630  }
631 
633  {
634  if (trHas())
635  trCall()->setClearColor(color);
636  }
637 
638  bool pointInViewport(const OdGePoint2d& screenPoint) const
639  {
640  if (trHas())
641  return trCall()->pointInViewport(screenPoint);
642  return false;
643  }
644 
646  OdGePoint2d& pixelDensity, bool bUsePerspective = true) const
647  {
648  if (trHas())
649  trCall()->getNumPixelsInUnitSquare(point, pixelDensity, bUsePerspective);
650  }
651 
652  void setBackground(OdDbStub *backgroundId)
653  {
654  if (trHas())
655  trCall()->setBackground(backgroundId);
656  }
657  OdDbStub *background() const
658  {
659  if (trHas())
660  return trCall()->background();
661  return NULL;
662  }
663 
664  void setVisualStyle(OdDbStub *visualStyleId)
665  {
666  if (trHas())
667  trCall()->setVisualStyle(visualStyleId);
668  }
669  OdDbStub *visualStyle() const
670  {
671  if (trHas())
672  return trCall()->visualStyle();
673  return NULL;
674  }
676  {
677  if (trHas())
678  trCall()->setVisualStyle(visualStyle);
679  }
681  {
682  if (trHas())
683  return trCall()->visualStyle(visualStyle);
684  return false;
685  }
686 
688  {
689  if (trHas())
690  trCall()->enableDefaultLighting(bEnable, lightType);
691  }
692 
693  void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect &region)
694  {
695  if (trHas())
696  trCall()->getSnapShot(pImage, region);
697  }
698 };
699 
707 template <typename GsDeviceInterface = OdGsDevice, typename RedirectionBase = OdGsDefaultRedirectionBase<OdGsDevice, GsDeviceInterface> >
708 class OdGsDeviceWrapper : public RedirectionBase
709 {
710  private:
711  bool trHas() const { return this->hasRedirection(); }
712  const OdGsDevice *trCall() const { return this->redirection(); }
713  OdGsDevice *trCall() { return this->redirection(); }
714  public:
715  OdGsDeviceWrapper(OdGsDevice *pRedirectionDevice = NULL)
716  : RedirectionBase(pRedirectionDevice)
717  {}
718 
719  // OdGsDevice wrappers
720 
722  {
723  if (trHas())
724  return trCall()->properties();
725  return OdRxDictionaryPtr();
726  }
727 
729  {
730  if (trHas())
731  return trCall()->userGiContext();
732  return NULL;
733  }
734  void setUserGiContext(OdGiContext* pUserGiContext)
735  {
736  if (trHas())
737  trCall()->setUserGiContext(pUserGiContext);
738  }
739 
740  void invalidate()
741  {
742  if (trHas())
743  trCall()->invalidate();
744  }
745  void invalidate(const OdGsDCRect &screenRect)
746  {
747  if (trHas())
748  trCall()->invalidate(screenRect);
749  }
750  bool isValid() const
751  {
752  if (trHas())
753  return trCall()->isValid();
754  return false;
755  }
756 
757  void update(OdGsDCRect* pUpdatedRect = 0)
758  {
759  if (trHas())
760  trCall()->update(pUpdatedRect);
761  }
762 
763  void onSize(const OdGsDCRect& outputRect)
764  {
765  if (trHas())
766  trCall()->onSize(outputRect);
767  }
768  void onSize(const OdGsDCRectDouble& outputRect)
769  {
770  if (trHas())
771  trCall()->onSize(outputRect);
772  }
773 
774  void getSize(OdGsDCRect& outputRect) const
775  {
776  if (trHas())
777  trCall()->getSize(outputRect);
778  }
779  void getSize(OdGsDCRectDouble& outputRect) const
780  {
781  if (trHas())
782  trCall()->getSize(outputRect);
783  }
784 
786  {
787  if (trHas())
788  trCall()->onRealizeForegroundPalette();
789  }
791  {
792  if (trHas())
793  trCall()->onRealizeBackgroundPalette();
794  }
795  void onDisplayChange(int bitsPerPixel, int xPixels, int yPixels)
796  {
797  if (trHas())
798  trCall()->onDisplayChange(bitsPerPixel, xPixels, yPixels);
799  }
800 
801  OdGsViewPtr createView(const OdGsClientViewInfo* pViewInfo = 0, bool enableLayerVisibilityPerView = false)
802  {
803  if (trHas())
804  return trCall()->createView(pViewInfo, enableLayerVisibilityPerView);
805  return OdGsViewPtr();
806  }
807  void addView(OdGsView* pView)
808  {
809  if (trHas())
810  trCall()->addView(pView);
811  }
812 
814  {
815  if (trHas())
816  return trCall()->createModel();
817  return OdGsModelPtr();
818  }
819  bool isModelCompatible(OdGsModel* pModel) const
820  {
821  if (trHas())
822  return trCall()->isModelCompatible(pModel);
823  return false;
824  }
825 
826  bool saveDeviceState(OdGsFiler *pFiler) const
827  {
828  if (trHas())
829  return trCall()->saveDeviceState(pFiler);
830  return false;
831  }
833  {
834  if (trHas())
835  return trCall()->loadDeviceState(pFiler);
836  return false;
837  }
838 
839  void insertView(int viewIndex, OdGsView* pView)
840  {
841  if (trHas())
842  trCall()->insertView(viewIndex, pView);
843  }
844  bool eraseView(OdGsView* pView)
845  {
846  if (trHas())
847  return trCall()->eraseView(pView);
848  return false;
849  }
850  bool eraseView(int viewIndex)
851  {
852  if (trHas())
853  return trCall()->eraseView(viewIndex);
854  return false;
855  }
857  {
858  if (trHas())
859  trCall()->eraseAllViews();
860  }
861  int numViews() const
862  {
863  if (trHas())
864  return trCall()->numViews();
865  return 0;
866  }
867  OdGsView* viewAt(int viewIndex)
868  {
869  if (trHas())
870  return trCall()->viewAt(viewIndex);
871  return NULL;
872  }
873 
874  bool setBackgroundColor(ODCOLORREF backgroundColor)
875  {
876  if (trHas())
877  return trCall()->setBackgroundColor(backgroundColor);
878  return false;
879  }
881  {
882  if (trHas())
883  return trCall()->getBackgroundColor();
884  return ODRGB(0, 0, 0);
885  }
886 
887  void setLogicalPalette(const ODCOLORREF* logicalPalette, int numColors)
888  {
889  if (trHas())
890  trCall()->setLogicalPalette(logicalPalette, numColors);
891  }
892  const ODCOLORREF* getLogicalPalette(int &numColors) const
893  {
894  if (trHas())
895  return trCall()->getLogicalPalette(numColors);
896  return NULL;
897  }
898 
899  void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect &region)
900  {
901  if (trHas())
902  trCall()->getSnapShot(pImage, region);
903  }
904 
905  OdGsUpdateManagerPtr getUpdateManager( bool createIfNotExist )
906  {
907  if( trHas())
908  {
909  return trCall()->getUpdateManager( createIfNotExist );
910  }
912  return res;
913  }
914 
916  {
917  if( trHas() )
918  {
919  trCall()->setUpdateManager( pManager );
920  }
921  }
922 };
923 
931 template <typename GsViewInterface = OdGsView, typename RedirectionBase = OdGsDefaultRedirectionBase<OdGsView, GsViewInterface> >
932 class OdGsViewWrapperMinimalImpl : public OdGsViewWrapper<GsViewInterface, RedirectionBase>
933 {
934  protected:
937  double m_lwdDcScale;
949  double m_lensLength;
953  bool m_bHidden;
956  OdDbStub *m_bkgnd, *m_visualStyle;
957  public:
959  : OdGsViewWrapper<GsViewInterface, RedirectionBase>(pRedirectionView)
960  , m_pDevice(NULL)
961  , m_pContext(NULL)
962  , m_lwdDcScale(0.0)
963  , m_borderColor(0)
964  , m_borderWidth(1)
966  , m_target(OdGePoint3d::kOrigin + OdGeVector3d::kZAxis)
967  , m_upVector(OdGeVector3d::kYAxis)
968  , m_fieldsWidth(1.0)
969  , m_fieldsHeight(1.0)
971  , m_lensLength(50.0)
973  , m_bBackClip(false)
974  , m_frontClip(0.0)
975  , m_backClip(0.0)
977  , m_bHidden(false)
978  , m_ltpMult1(1.0)
979  , m_ltpMult2(1.0)
980  , m_bkgnd(NULL)
982  {}
983 
984  // OdGsView wrappers
985 
986  OdGsDevice* device() const { return m_pDevice; }
987  void setDevice(OdGsDevice *pDevice) { m_pDevice = pDevice; }
988 
989  OdGiContext* userGiContext() const { return m_pContext; }
990  void setUserGiContext(OdGiContext* pUserGiContext) { m_pContext = pUserGiContext; }
991 
992  double lineweightToDcScale() const { return m_lwdDcScale; }
994 
995  void setViewport(const OdGePoint2d& lowerLeft, const OdGePoint2d& upperRight)
996  { m_llVpt = lowerLeft; m_urVpt = upperRight; }
997  void setViewport(const OdGsDCRect& screenRect) { m_dcRect = OdGsDCRectDouble(screenRect); }
998  void setViewport(const OdGsDCRectDouble& screenRect) { m_dcRect = screenRect; }
999  void getViewport(OdGePoint2d& lowerLeft, OdGePoint2d& upperRight) const
1000  { lowerLeft = m_llVpt; upperRight = m_urVpt; }
1001  void getViewport(OdGsDCRect& screenRect) const { screenRect = m_dcRect.round(); }
1002  void getViewport(OdGsDCRectDouble& screenRect) const { screenRect = m_dcRect; }
1003 
1004  void setViewportClipRegion(int numContours, int const* numVertices, OdGsDCPoint const* vertices)
1005  {
1006  m_nrcClipCounts.resize(numContours);
1007  int numVertexes = 0;
1008  for (int numContour = 0; numContour < numContours; numContour++)
1009  numVertexes += numVertices[numContour], m_nrcClipCounts[numContour] = numVertices[numContour];
1010  m_nrcClipPoints.resize(numVertexes);
1011  for (int numVertex = 0; numVertex < numVertexes; numVertex++)
1012  m_nrcClipPoints[numVertex].set(vertices[numVertex].x, vertices[numVertex].y);
1013  }
1014  void setViewportClipRegion(int numContours, int const* numVertices, OdGePoint2d const* vertices)
1015  {
1016  m_nrcClipCounts.resize(numContours);
1017  int numVertexes = 0;
1018  for (int numContour = 0; numContour < numContours; numContour++)
1019  numVertexes += numVertices[numContour], m_nrcClipCounts[numContour] = numVertices[numContour];
1020  m_nrcClipPoints.resize(numVertexes);
1021  for (int numVertex = 0; numVertex < numVertexes; numVertex++)
1022  m_nrcClipPoints[numVertex] = vertices[numVertex];
1023  }
1024  void viewportClipRegion(OdIntArray& counts, OdGsDCPointArray& vertices) const
1025  {
1026  counts = m_nrcClipCounts;
1027  const OdUInt32 nPoints = m_nrcClipPoints.size();
1028  vertices.resize(nPoints);
1029  OdGsDCPoint *pPt = vertices.asArrayPtr();
1030  for (OdUInt32 nPt = 0; nPt < nPoints; nPt++)
1031  pPt[nPt].x = (long)m_nrcClipPoints[nPt].x, pPt[nPt].y = (long)m_nrcClipPoints[nPt].y;
1032  }
1033  void viewportClipRegion(OdIntArray& counts, OdGePoint2dArray& vertices) const
1034  { counts = m_nrcClipCounts; vertices = m_nrcClipPoints; }
1035 
1037  { m_borderColor = color; m_borderWidth = width; }
1039  { color = m_borderColor; width = m_borderWidth; }
1040  void setViewportBorderVisibility(bool visible) { m_bBorderVisible = visible; }
1042 
1044  double fieldWidth, double fieldHeight, OdGsView::Projection projectionType = OdGsView::kParallel)
1045  {
1048  }
1049  OdGePoint3d position() const { return m_position; }
1050  OdGePoint3d target() const { return m_target; }
1051  OdGeVector3d upVector() const { return m_upVector; }
1052  double lensLength() const { return m_lensLength; }
1055  double fieldWidth() const { return m_fieldsWidth; }
1056  double fieldHeight() const { return m_fieldsHeight; }
1057 
1058  void setEnableFrontClip(bool enable) { m_bFrontClip = enable; }
1059  bool isFrontClipped() const { return m_bFrontClip; }
1061  double frontClip() const { return m_frontClip; }
1062  void setEnableBackClip(bool enable) { m_bBackClip = enable; }
1063  bool isBackClipped() const { return m_bBackClip; }
1065  double backClip() const { return m_backClip; }
1066 
1069 
1070  void hide() { m_bHidden = true; }
1071  void show() { m_bHidden = false; }
1072  bool isVisible() { return !m_bHidden; }
1073 
1075  double linetypeScaleMultiplier() const { return m_ltpMult1; }
1078 
1081 
1082  void setBackground(OdDbStub *backgroundId) { m_bkgnd = backgroundId; }
1083  OdDbStub *background() const { return m_bkgnd; }
1084 
1085  void setVisualStyle(OdDbStub *visualStyleId) { m_visualStyle = visualStyleId; }
1086  OdDbStub *visualStyle() const { return m_visualStyle; }
1087 };
1088 
1096 template <typename GsDeviceInterface = OdGsDevice, typename RedirectionBase = OdGsDefaultRedirectionBase<OdGsDevice, GsDeviceInterface> >
1097 class OdGsDeviceWrapperMinimalImpl : public OdGsDeviceWrapper<GsDeviceInterface, RedirectionBase>
1098 {
1099  protected:
1105  public:
1107  : OdGsDeviceWrapper<GsDeviceInterface, RedirectionBase>(pRedirectionDevice)
1108  , m_backColor(0)
1109  {}
1110 
1111  // OdGsDevice wrappers
1112 
1113  OdGiContext* userGiContext() const { return m_pContext.get(); }
1114  void setUserGiContext(OdGiContext* pUserGiContext)
1115  { m_pContext = pUserGiContext;
1116  for (OdUInt32 nView = 0; nView < m_views.size(); nView++)
1117  m_views[nView]->setUserGiContext(pUserGiContext);
1118  }
1119 
1120  void onSize(const OdGsDCRect& outputRect) { m_size = OdGsDCRectDouble(outputRect); }
1121  void onSize(const OdGsDCRectDouble& outputRect) { m_size = outputRect; }
1122  void getSize(OdGsDCRect& outputRect) const { outputRect = m_size.round(); }
1123  void getSize(OdGsDCRectDouble& outputRect) const { outputRect = m_size; }
1124 
1125  OdGsViewPtr createView(const OdGsClientViewInfo* pViewInfo = 0, bool /*enableLayerVisibilityPerView*/ = false)
1127  if (pViewInfo) pView->setViewInfo(*pViewInfo);
1128  pView->setUserGiContext(m_pContext.get());
1129  pView->setDevice(this); return pView;
1130  }
1131 
1132  void addView(OdGsView* pView) { m_views.push_back(pView); }
1133  void insertView(int viewIndex, OdGsView* pView) { m_views.insertAt(viewIndex, pView); }
1134  bool eraseView(OdGsView* pView) { m_views.remove(pView); return true; }
1135  bool eraseView(int viewIndex) { m_views.removeAt(viewIndex); return true; }
1136  void eraseAllViews() { m_views.clear(); }
1137  int numViews() const { return m_views.size(); }
1138  OdGsView* viewAt(int viewIndex) { return m_views.at(viewIndex); }
1139 
1140  bool setBackgroundColor(ODCOLORREF backgroundColor) { m_backColor = backgroundColor; return true; }
1142 
1143  void setLogicalPalette(const ODCOLORREF* logicalPalette, int numColors)
1144  {
1146  if (numColors)
1147  m_palette.insert(m_palette.end(), logicalPalette, logicalPalette + numColors);
1148  }
1149  const ODCOLORREF* getLogicalPalette(int &numColors) const
1150  {
1151  numColors = (int)m_palette.size();
1152  return m_palette.getPtr();
1153  }
1154 };
1155 
1156 #include "TD_PackPop.h"
1157 
1158 #endif // __GSINTERFACEWRAPPERS_H_INCLUDED_
OdGsView::extentsInView
virtual bool extentsInView(const OdGePoint3d &minPt, const OdGePoint3d &maxPt) const =0
OdGsViewWrapperMinimalImpl::isFrontClipped
bool isFrontClipped() const
Definition: GsInterfaceWrappers.h:1059
OdGsAbstractRedirectionBase
Definition: GsInterfaceWrappers.h:73
OdGsViewWrapper::fieldWidth
double fieldWidth() const
Definition: GsInterfaceWrappers.h:271
OdGsViewWrapperMinimalImpl::userGiContext
OdGiContext * userGiContext() const
Definition: GsInterfaceWrappers.h:989
OdGsViewWrapperMinimalImpl::isViewportBorderVisible
bool isViewportBorderVisible() const
Definition: GsInterfaceWrappers.h:1041
OdGsDevice::getUpdateManager
virtual OdGsUpdateManagerPtr getUpdateManager(bool createIfNotExist=false)
OdGsView::zoomExtents
virtual void zoomExtents(const OdGePoint3d &minPt, const OdGePoint3d &maxPt)=0
OdGsViewWrapper::isPerspective
bool isPerspective() const
Definition: GsInterfaceWrappers.h:264
OdGsViewWrapperMinimalImpl::setViewport
void setViewport(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)
Definition: GsInterfaceWrappers.h:995
OdGsViewWrapper::invalidateCachedViewportGeometry
void invalidateCachedViewportGeometry()
Definition: GsInterfaceWrappers.h:488
OdGsViewWrapperMinimalImpl::m_viewInfo
OdGsClientViewInfo m_viewInfo
Definition: GsInterfaceWrappers.h:955
OdGsViewWrapperMinimalImpl::getViewport
void getViewport(OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const
Definition: GsInterfaceWrappers.h:999
OdGsView::clearFrozenLayers
virtual void clearFrozenLayers()=0
OdGiContext
Definition: GiCommonDraw.h:108
OdGsView::enableStereo
virtual void enableStereo(bool enabled)=0
OdGsViewWrapperMinimalImpl::mode
OdGsView::RenderMode mode() const
Definition: GsInterfaceWrappers.h:1068
OdGsView::setUserGiContext
virtual void setUserGiContext(OdGiContext *pUserGiContext)=0
OdGsDeviceWrapperMinimalImpl::m_views
OdArray< OdGsViewPtr > m_views
Definition: GsInterfaceWrappers.h:1102
OdGsViewWrapper::setBackClip
void setBackClip(double backClip)
Definition: GsInterfaceWrappers.h:317
OdGsViewWrapper::target
OdGePoint3d target() const
Definition: GsInterfaceWrappers.h:240
OdGsView::eraseAll
virtual void eraseAll()=0
OdGsView::kParallel
@ kParallel
Definition: Gs.h:152
OdGsViewWrapper::position
OdGePoint3d position() const
Definition: GsInterfaceWrappers.h:234
OdGeVector3d
Definition: GeVector3d.h:54
OdGsViewWrapper::setViewport
void setViewport(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)
Definition: GsInterfaceWrappers.h:142
NULL
#define NULL
Definition: GsProperties.h:177
OdGsView::upVector
virtual OdGeVector3d upVector() const =0
OdGsViewWrapperMinimalImpl::isBackClipped
bool isBackClipped() const
Definition: GsInterfaceWrappers.h:1063
OdGsDevice::getSize
virtual void getSize(OdGsDCRect &outputRect) const =0
OdGsViewWrapperMinimalImpl::setLensLength
void setLensLength(double lensLength)
Definition: GsInterfaceWrappers.h:1053
OdGsView::RenderMode
RenderMode
Definition: Gs.h:138
OdGsViewWrapperMinimalImpl::background
OdDbStub * background() const
Definition: GsInterfaceWrappers.h:1083
OdRxIterator
Definition: RxIterator.h:46
OdGsView::setFrontClip
virtual void setFrontClip(double frontClip)=0
OdGsViewWrapperMinimalImpl::m_llVpt
OdGePoint2d m_llVpt
Definition: GsInterfaceWrappers.h:938
OdGsDeviceWrapper::onRealizeBackgroundPalette
void onRealizeBackgroundPalette()
Definition: GsInterfaceWrappers.h:790
OdGsDeviceWrapperMinimalImpl::m_size
OdGsDCRectDouble m_size
Definition: GsInterfaceWrappers.h:1103
OdGsViewWrapper::update
void update()
Definition: GsInterfaceWrappers.h:420
OdGsViewWrapperMinimalImpl::target
OdGePoint3d target() const
Definition: GsInterfaceWrappers.h:1050
OdGsViewWrapperMinimalImpl::hide
void hide()
Definition: GsInterfaceWrappers.h:1070
OdGsDevice::update
virtual void update(OdGsDCRect *pUpdatedRect=0)=0
OdUInt8
unsigned char OdUInt8
Definition: OdPlatformSettings.h:759
OdGsView::setViewportBorderVisibility
virtual void setViewportBorderVisibility(bool visible)=0
OdGsDeviceWrapperMinimalImpl::m_pContext
OdSmartPtr< OdGiContext > m_pContext
Definition: GsInterfaceWrappers.h:1100
OdGsViewWrapperMinimalImpl::m_projection
OdGsView::Projection m_projection
Definition: GsInterfaceWrappers.h:948
OdGsDefaultRedirectionBase::redirection
RedirectionBaseInterface * redirection()
Definition: GsInterfaceWrappers.h:59
OdGsDefaultRedirectionBase::hasRedirection
bool hasRedirection() const
Definition: GsInterfaceWrappers.h:57
OdGsView::kNone
@ kNone
Definition: Gs.h:147
OdGsDeviceWrapper::setBackgroundColor
bool setBackgroundColor(ODCOLORREF backgroundColor)
Definition: GsInterfaceWrappers.h:874
OdGsViewWrapper::hide
void hide()
Definition: GsInterfaceWrappers.h:455
scale
scale
Definition: DimVarDefs.h:1684
OdGsView
Definition: Gs.h:133
OdGsAbstractRedirectionBase::hasRedirection
virtual bool hasRedirection() const =0
OdGsDeviceWrapperMinimalImpl::getBackgroundColor
ODCOLORREF getBackgroundColor()
Definition: GsInterfaceWrappers.h:1141
OdGsDCRectDouble
Definition: GsDefs.h:242
OdGsView::update
virtual void update()=0
OdGsView::worldToDeviceMatrix
virtual OdGeMatrix3d worldToDeviceMatrix() const =0
OdGsDeviceWrapper::update
void update(OdGsDCRect *pUpdatedRect=0)
Definition: GsInterfaceWrappers.h:757
OdGsViewWrapper::endInteractivity
void endInteractivity()
Definition: GsInterfaceWrappers.h:431
OdGsViewWrapperMinimalImpl::isVisible
bool isVisible()
Definition: GsInterfaceWrappers.h:1072
OdGsViewWrapper::getStereoParameters
void getStereoParameters(double &magnitude, double &parallax) const
Definition: GsInterfaceWrappers.h:591
OdGsView::screenMatrix
virtual OdGeMatrix3d screenMatrix() const =0
OdGsView::pan
virtual void pan(double xPan, double yPan)=0
OdGsDeviceWrapperMinimalImpl::eraseAllViews
void eraseAllViews()
Definition: GsInterfaceWrappers.h:1136
OdGsViewWrapperMinimalImpl::setDevice
void setDevice(OdGsDevice *pDevice)
Definition: GsInterfaceWrappers.h:987
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
OdGsViewWrapperMinimalImpl::m_borderWidth
int m_borderWidth
Definition: GsInterfaceWrappers.h:943
OdGsViewWrapper::getViewport
void getViewport(OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const
Definition: GsInterfaceWrappers.h:157
OdGsView::beginInteractivity
virtual void beginInteractivity(double frameRateInHz)=0
OdGsDeviceWrapperMinimalImpl::viewAt
OdGsView * viewAt(int viewIndex)
Definition: GsInterfaceWrappers.h:1138
OdGsView::setBackClip
virtual void setBackClip(double backClip)=0
OdGsView::mode
virtual RenderMode mode() const =0
OdGsViewWrapper::select
void select(const OdGsDCPoint *pts, int nPoints, OdGsSelectionReactor *pReactor, OdGsView::SelectionMode mode=OdGsView::kCrossing)
Definition: GsInterfaceWrappers.h:494
OdGsView::setMode
virtual void setMode(RenderMode mode)=0
OdGsDeviceWrapperMinimalImpl::onSize
void onSize(const OdGsDCRectDouble &outputRect)
Definition: GsInterfaceWrappers.h:1121
OdGsView::isPerspective
virtual bool isPerspective() const =0
OdGsView::erase
virtual bool erase(OdGiDrawable *sceneGraph)=0
OdGsDCPoint::y
OdInt32 y
Definition: GsDefs.h:93
OdGsDeviceWrapper::isModelCompatible
bool isModelCompatible(OdGsModel *pModel) const
Definition: GsInterfaceWrappers.h:819
OdGsView::getStereoParameters
virtual void getStereoParameters(double &magnitude, double &parallax) const =0
OdGsViewWrapper::setEnableBackClip
void setEnableBackClip(bool enable)
Definition: GsInterfaceWrappers.h:306
OdGsViewWrapper::invalidate
void invalidate(const OdGsDCRect &screenRect)
Definition: GsInterfaceWrappers.h:408
OdGsViewWrapperMinimalImpl::m_lensLength
double m_lensLength
Definition: GsInterfaceWrappers.h:949
OdGsDeviceWrapperMinimalImpl::setBackgroundColor
bool setBackgroundColor(ODCOLORREF backgroundColor)
Definition: GsInterfaceWrappers.h:1140
false
false
Definition: DimVarDefs.h:165
OdGsDevice::saveDeviceState
virtual bool saveDeviceState(OdGsFiler *pFiler) const
OdGsViewWrapper::isFrontClipped
bool isFrontClipped() const
Definition: GsInterfaceWrappers.h:289
OdGsDevice::getLogicalPalette
virtual const ODCOLORREF * getLogicalPalette(int &numColors) const =0
OdGsViewWrapperMinimalImpl::linetypeScaleMultiplier
double linetypeScaleMultiplier() const
Definition: GsInterfaceWrappers.h:1075
OdArray::end
iterator end()
Definition: OdArray.h:772
OdGsViewWrapper::setLensLength
void setLensLength(double lensLength)
Definition: GsInterfaceWrappers.h:259
OdGsView::ClearColor
ClearColor
Definition: Gs.h:920
OdGsViewWrapperMinimalImpl::setVisualStyle
void setVisualStyle(OdDbStub *visualStyleId)
Definition: GsInterfaceWrappers.h:1085
OdGsViewWrapperMinimalImpl::device
OdGsDevice * device() const
Definition: GsInterfaceWrappers.h:986
OdGsDCRect
Definition: GsDefs.h:111
OdGsViewWrapper::background
OdDbStub * background() const
Definition: GsInterfaceWrappers.h:657
OdGsDeviceWrapper::eraseView
bool eraseView(int viewIndex)
Definition: GsInterfaceWrappers.h:850
OdRxDictionaryPtr
OdSmartPtr< OdRxDictionary > OdRxDictionaryPtr
Definition: Gs.h:87
OdGsViewWrapper::pan
void pan(double xPan, double yPan)
Definition: GsInterfaceWrappers.h:526
OdGsViewWrapper::pointInView
bool pointInView(const OdGePoint3d &pt) const
Definition: GsInterfaceWrappers.h:543
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
OdGsViewWrapperMinimalImpl::m_lwdDcScale
double m_lwdDcScale
Definition: GsInterfaceWrappers.h:937
OdGsViewWrapper::setViewportBorderVisibility
void setViewportBorderVisibility(bool visible)
Definition: GsInterfaceWrappers.h:216
OdGsViewWrapperMinimalImpl::viewportClipRegion
void viewportClipRegion(OdIntArray &counts, OdGePoint2dArray &vertices) const
Definition: GsInterfaceWrappers.h:1033
OdGsViewWrapper::objectToDeviceMatrix
OdGeMatrix3d objectToDeviceMatrix() const
Definition: GsInterfaceWrappers.h:353
OdGsDevice
Definition: Gs.h:1061
OdGsViewWrapperMinimalImpl::frontClip
double frontClip() const
Definition: GsInterfaceWrappers.h:1061
OdGsView::setViewport
virtual void setViewport(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)=0
OdGsViewWrapperMinimalImpl::setEnableFrontClip
void setEnableFrontClip(bool enable)
Definition: GsInterfaceWrappers.h:1058
OdGsViewWrapper::zoomExtents
void zoomExtents(const OdGePoint3d &minPt, const OdGePoint3d &maxPt)
Definition: GsInterfaceWrappers.h:532
GsModel.h
OdGsViewWrapper::freezeLayer
void freezeLayer(OdDbStub *layerID)
Definition: GsInterfaceWrappers.h:472
OdGsViewWrapper::viewportClipRegion
void viewportClipRegion(OdIntArray &counts, OdGePoint2dArray &vertices) const
Definition: GsInterfaceWrappers.h:188
OdGsModelPtr
OdSmartPtr< OdGsModel > OdGsModelPtr
Definition: Gs.h:68
OdGsDevice::setUserGiContext
virtual void setUserGiContext(OdGiContext *pUserGiContext)=0
OdGsDeviceWrapper::onRealizeForegroundPalette
void onRealizeForegroundPalette()
Definition: GsInterfaceWrappers.h:785
OdGsViewWrapper::dolly
void dolly(const OdGeVector3d &dollyVector)
Definition: GsInterfaceWrappers.h:501
OdGsViewWrapperMinimalImpl::m_backClip
double m_backClip
Definition: GsInterfaceWrappers.h:951
OdGsViewWrapperMinimalImpl::visualStyle
OdDbStub * visualStyle() const
Definition: GsInterfaceWrappers.h:1086
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
OdGsView::isViewportBorderVisible
virtual bool isViewportBorderVisible() const =0
OdGsView::freezeLayer
virtual void freezeLayer(OdDbStub *layerID)=0
OdArray< int, OdMemoryAllocator< int > >
OdGsView::viewingMatrix
virtual OdGeMatrix3d viewingMatrix() const =0
OdGsModelArray
OdArray< OdGsModel *, OdMemoryAllocator< OdGsModel * > > OdGsModelArray
Definition: Gs.h:78
OdGsDeviceWrapper::OdGsDeviceWrapper
OdGsDeviceWrapper(OdGsDevice *pRedirectionDevice=NULL)
Definition: GsInterfaceWrappers.h:715
OdGsViewWrapper::setViewportClipRegion
void setViewportClipRegion(int numContours, int const *numVertices, OdGePoint2d const *vertices)
Definition: GsInterfaceWrappers.h:178
TD_PackPop.h
OdGsDevice::onRealizeForegroundPalette
virtual void onRealizeForegroundPalette()=0
OdGsViewWrapper::cloneView
OdGsViewPtr cloneView(bool cloneViewParameters=true, bool cloneGeometry=false)
Definition: GsInterfaceWrappers.h:556
OdGsView::viewport3dClipping
virtual const OdGiClipBoundary * viewport3dClipping(const OdGiAbstractClipBoundary **ppClipInfo=NULL) const
OdGsDeviceWrapper::getUpdateManager
OdGsUpdateManagerPtr getUpdateManager(bool createIfNotExist)
Definition: GsInterfaceWrappers.h:905
IntArray.h
OdGsView::roll
virtual void roll(double rollAngle)=0
OdGsViewWrapperMinimalImpl::clientViewInfo
void clientViewInfo(OdGsClientViewInfo &clientViewInfo) const
Definition: GsInterfaceWrappers.h:1079
OdGsViewWrapperMinimalImpl::upVector
OdGeVector3d upVector() const
Definition: GsInterfaceWrappers.h:1051
OdGsViewWrapperMinimalImpl::backClip
double backClip() const
Definition: GsInterfaceWrappers.h:1065
OdGsViewWrapperMinimalImpl::lensLength
double lensLength() const
Definition: GsInterfaceWrappers.h:1052
OdGsViewWrapperMinimalImpl::m_bBorderVisible
bool m_bBorderVisible
Definition: GsInterfaceWrappers.h:944
OdGsDCRectDouble::round
OdGsDCRect round() const
Definition: GsDefs.h:279
GsUpdateManager.h
OdGsDevice::setUpdateManager
virtual void setUpdateManager(OdGsUpdateManagerPtr pManager)
x
GLfloat x
Definition: gles2_ext.h:314
ODRGB
#define ODRGB(r, g, b)
Definition: OdPlatform.h:884
OdGsDeviceWrapper::userGiContext
OdGiContext * userGiContext() const
Definition: GsInterfaceWrappers.h:728
OdGsViewWrapperMinimalImpl::setView
void setView(const OdGePoint3d &position, const OdGePoint3d &target, const OdGeVector3d &upVector, double fieldWidth, double fieldHeight, OdGsView::Projection projectionType=OdGsView::kParallel)
Definition: GsInterfaceWrappers.h:1043
OdGsDeviceWrapper::onDisplayChange
void onDisplayChange(int bitsPerPixel, int xPixels, int yPixels)
Definition: GsInterfaceWrappers.h:795
OdGsDevice::viewAt
virtual OdGsView * viewAt(int viewIndex)=0
OdGsDeviceWrapper::getSnapShot
void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect &region)
Definition: GsInterfaceWrappers.h:899
OdGsView::visualStyle
virtual OdDbStub * visualStyle() const =0
OdGsViewWrapper::clientViewInfo
void clientViewInfo(OdGsClientViewInfo &clientViewInfo) const
Definition: GsInterfaceWrappers.h:626
OdGsDeviceWrapper::createView
OdGsViewPtr createView(const OdGsClientViewInfo *pViewInfo=0, bool enableLayerVisibilityPerView=false)
Definition: GsInterfaceWrappers.h:801
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGsViewWrapper::roll
void roll(double rollAngle)
Definition: GsInterfaceWrappers.h:511
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdGsView::pointInViewport
virtual bool pointInViewport(const OdGePoint2d &screenPoint) const =0
OdGsViewWrapperMinimalImpl::m_ltpMult2
double m_ltpMult2
Definition: GsInterfaceWrappers.h:954
OdGsViewWrapperMinimalImpl::m_bBackClip
bool m_bBackClip
Definition: GsInterfaceWrappers.h:950
OdGsViewPtr
OdSmartPtr< OdGsView > OdGsViewPtr
Definition: Gs.h:61
OdGsViewWrapperMinimalImpl::setViewInfo
void setViewInfo(const OdGsClientViewInfo &clientViewInfo)
Definition: GsInterfaceWrappers.h:1080
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
OdGsViewWrapper::clearFrozenLayers
void clearFrozenLayers()
Definition: GsInterfaceWrappers.h:482
OdArray::getPtr
const T * getPtr() const
Definition: OdArray.h:1102
OdGsViewWrapper::viewParameters
void viewParameters(OdGsView *pView) const
Definition: GsInterfaceWrappers.h:562
OdGsViewWrapper::zoomWindow
void zoomWindow(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)
Definition: GsInterfaceWrappers.h:537
OdGsDeviceWrapper::viewAt
OdGsView * viewAt(int viewIndex)
Definition: GsInterfaceWrappers.h:867
OdGsDeviceWrapperMinimalImpl::OdGsDeviceWrapperMinimalImpl
OdGsDeviceWrapperMinimalImpl(OdGsDevice *pRedirectionDevice=NULL)
Definition: GsInterfaceWrappers.h:1106
OdGsViewWrapper::setLinetypeScaleMultiplier
void setLinetypeScaleMultiplier(double linetypeScaleMultiplier)
Definition: GsInterfaceWrappers.h:603
OdGsViewWrapper::isStereoEnabled
bool isStereoEnabled() const
Definition: GsInterfaceWrappers.h:580
OdGsDeviceWrapper::invalidate
void invalidate(const OdGsDCRect &screenRect)
Definition: GsInterfaceWrappers.h:745
OdGsDeviceWrapper::getSize
void getSize(OdGsDCRect &outputRect) const
Definition: GsInterfaceWrappers.h:774
OdGsViewWrapperMinimalImpl::m_urVpt
OdGePoint2d m_urVpt
Definition: GsInterfaceWrappers.h:938
OdGsView::getViewportBorderProperties
virtual void getViewportBorderProperties(ODCOLORREF &color, int &width) const =0
OdArray::setPhysicalLength
OdArray & setPhysicalLength(size_type physLength)
Definition: OdArray.h:1507
OdGsViewWrapperMinimalImpl::m_nrcClipCounts
OdIntArray m_nrcClipCounts
Definition: GsInterfaceWrappers.h:940
OdGsView::SelectionMode
SelectionMode
Definition: Gs.h:157
OdGsAbstractRedirectionBase::redirection
virtual const RedirectionBaseInterface * redirection() const =0
OdGsViewWrapper::setBackground
void setBackground(OdDbStub *backgroundId)
Definition: GsInterfaceWrappers.h:652
OdGsViewWrapper::isBackClipped
bool isBackClipped() const
Definition: GsInterfaceWrappers.h:311
OdGsViewWrapper::setView
void setView(const OdGePoint3d &position, const OdGePoint3d &target, const OdGeVector3d &upVector, double fieldWidth, double fieldHeight, OdGsView::Projection projectionType=OdGsView::kParallel)
Definition: GsInterfaceWrappers.h:228
OdGsDeviceWrapper::properties
OdRxDictionaryPtr properties()
Definition: GsInterfaceWrappers.h:721
OdGsView::projectionMatrix
virtual OdGeMatrix3d projectionMatrix() const =0
OdGsViewWrapper::getModelList
OdGsModelArray getModelList() const
Definition: GsInterfaceWrappers.h:396
OdGsView::target
virtual OdGePoint3d target() const =0
OdArray::asArrayPtr
const T * asArrayPtr() const
Definition: OdArray.h:1094
OdGsViewWrapperMinimalImpl::setViewport
void setViewport(const OdGsDCRect &screenRect)
Definition: GsInterfaceWrappers.h:997
OdGsViewWrapperMinimalImpl::setLineweightToDcScale
void setLineweightToDcScale(double scale)
Definition: GsInterfaceWrappers.h:993
OdGsViewWrapperMinimalImpl::m_nrcClipPoints
OdGePoint2dArray m_nrcClipPoints
Definition: GsInterfaceWrappers.h:941
OdGsView::select
virtual void select(const OdGsDCPoint *pts, int nPoints, OdGsSelectionReactor *pReactor, OdGsView::SelectionMode mode=OdGsView::kCrossing)=0
OdGsDeviceWrapper::setUserGiContext
void setUserGiContext(OdGiContext *pUserGiContext)
Definition: GsInterfaceWrappers.h:734
OdGsViewWrapper::zoom
void zoom(double zoomFactor)
Definition: GsInterfaceWrappers.h:521
OdGsDevice::isValid
virtual bool isValid() const =0
OdGsDeviceWrapper::eraseView
bool eraseView(OdGsView *pView)
Definition: GsInterfaceWrappers.h:844
OdGsViewWrapperMinimalImpl::setAlternateLinetypeScaleMultiplier
void setAlternateLinetypeScaleMultiplier(double linetypeAlternateScaleMultiplier)
Definition: GsInterfaceWrappers.h:1076
OdGsViewWrapperMinimalImpl::getViewport
void getViewport(OdGsDCRect &screenRect) const
Definition: GsInterfaceWrappers.h:1001
OdGsView::getNumPixelsInUnitSquare
virtual void getNumPixelsInUnitSquare(const OdGePoint3d &point, OdGePoint2d &pixelDensity, bool bUsePerspective=true) const =0
OdGsView::invalidate
virtual void invalidate()=0
OdGsViewWrapperMinimalImpl::setViewport
void setViewport(const OdGsDCRectDouble &screenRect)
Definition: GsInterfaceWrappers.h:998
OdGsViewWrapper::dolly
void dolly(double xDolly, double yDolly, double zDolly)
Definition: GsInterfaceWrappers.h:506
OdGsViewWrapperMinimalImpl::m_bFrontClip
bool m_bFrontClip
Definition: GsInterfaceWrappers.h:950
OdGsViewWrapper::getSnapShot
void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect &region)
Definition: GsInterfaceWrappers.h:693
OdGsViewWrapper::lineweightToDcScale
double lineweightToDcScale() const
Definition: GsInterfaceWrappers.h:125
OdSmartPtr
Definition: SmartPtr.h:58
OdGsViewWrapper::userGiContext
OdGiContext * userGiContext() const
Definition: GsInterfaceWrappers.h:113
OdGsViewWrapper::setLineweightEnum
void setLineweightEnum(int numLineweights, const OdUInt8 *lineweights)
Definition: GsInterfaceWrappers.h:136
OdGsViewWrapperMinimalImpl::setFrontClip
void setFrontClip(double frontClip)
Definition: GsInterfaceWrappers.h:1060
OdGeVector3d::kZAxis
static GE_STATIC_EXPORT const OdGeVector3d kZAxis
Definition: GeVector3d.h:91
OdGePoint3d
Definition: GePoint3d.h:55
OdGsViewWrapper::thawLayer
void thawLayer(OdDbStub *layerID)
Definition: GsInterfaceWrappers.h:477
OdGsDeviceWrapper::eraseAllViews
void eraseAllViews()
Definition: GsInterfaceWrappers.h:856
OdGsViewWrapper::linetypeScaleMultiplier
double linetypeScaleMultiplier() const
Definition: GsInterfaceWrappers.h:608
OdGsDeviceWrapperMinimalImpl::onSize
void onSize(const OdGsDCRect &outputRect)
Definition: GsInterfaceWrappers.h:1120
OdGsDevice::eraseView
virtual bool eraseView(OdGsView *pView)=0
OdGiVisualStyle
Definition: GiVisualStyle.h:996
OdGsDevice::addView
virtual void addView(OdGsView *pView)=0
OdGsDeviceWrapper::saveDeviceState
bool saveDeviceState(OdGsFiler *pFiler) const
Definition: GsInterfaceWrappers.h:826
OdGsViewWrapperMinimalImpl::setBackground
void setBackground(OdDbStub *backgroundId)
Definition: GsInterfaceWrappers.h:1082
OdGsView::lineweightToDcScale
virtual double lineweightToDcScale() const =0
OdGsView::interactivityFrameRate
virtual double interactivityFrameRate() const =0
OdGsViewWrapper::orbit
void orbit(double xOrbit, double yOrbit)
Definition: GsInterfaceWrappers.h:516
OdGiAbstractClipBoundary
Definition: GiAbstractClipBoundary.h:39
OdGsViewWrapper::getViewport
void getViewport(OdGsDCRect &screenRect) const
Definition: GsInterfaceWrappers.h:162
OdGsDeviceWrapperMinimalImpl::m_palette
OdArray< ODCOLORREF, OdMemoryAllocator< ODCOLORREF > > m_palette
Definition: GsInterfaceWrappers.h:1104
OdGsDeviceWrapper::getSize
void getSize(OdGsDCRectDouble &outputRect) const
Definition: GsInterfaceWrappers.h:779
OdGsAbstractRedirectionBase::resetRedirection
virtual void resetRedirection()
Definition: GsInterfaceWrappers.h:82
OdGsViewWrapperMinimalImpl::viewportClipRegion
void viewportClipRegion(OdIntArray &counts, OdGsDCPointArray &vertices) const
Definition: GsInterfaceWrappers.h:1024
OdGsViewWrapperMinimalImpl::setLinetypeScaleMultiplier
void setLinetypeScaleMultiplier(double linetypeScaleMultiplier)
Definition: GsInterfaceWrappers.h:1074
OdGsDevice::onSize
virtual void onSize(const OdGsDCRect &outputRect)=0
OdGsDefaultRedirectionBase::resetRedirection
void resetRedirection()
Definition: GsInterfaceWrappers.h:61
OdGsDeviceWrapper::createModel
OdGsModelPtr createModel()
Definition: GsInterfaceWrappers.h:813
GePoint3d.h
OdGsViewWrapper::setViewportClipRegion
void setViewportClipRegion(int numContours, int const *numVertices, OdGsDCPoint const *vertices)
Definition: GsInterfaceWrappers.h:173
OdGsView::setView
virtual void setView(const OdGePoint3d &position, const OdGePoint3d &target, const OdGeVector3d &upVector, double fieldWidth, double fieldHeight, Projection projectionType=kParallel)=0
OdGsViewWrapperMinimalImpl::m_position
OdGePoint3d m_position
Definition: GsInterfaceWrappers.h:945
OdArray::size
size_type size() const
Definition: OdArray.h:893
OdGsView::DefaultLightingType
DefaultLightingType
Definition: Gs.h:168
OdGsViewWrapperMinimalImpl::setEnableBackClip
void setEnableBackClip(bool enable)
Definition: GsInterfaceWrappers.h:1062
y
GLfloat GLfloat y
Definition: gles2_ext.h:316
OdGsView::linetypeAlternateScaleMultiplier
virtual double linetypeAlternateScaleMultiplier() const =0
OdGsDeviceWrapperMinimalImpl::eraseView
bool eraseView(OdGsView *pView)
Definition: GsInterfaceWrappers.h:1134
OdGsView::viewportClipRegion
virtual void viewportClipRegion(OdIntArray &counts, OdGsDCPointArray &vertices) const =0
OdGsDeviceWrapperMinimalImpl::getSize
void getSize(OdGsDCRectDouble &outputRect) const
Definition: GsInterfaceWrappers.h:1123
OdGsViewWrapperMinimalImpl::setViewportBorderVisibility
void setViewportBorderVisibility(bool visible)
Definition: GsInterfaceWrappers.h:1040
Gs.h
OdGsDevice::eraseAllViews
virtual void eraseAllViews()=0
OdGsViewWrapperMinimalImpl::m_borderColor
ODCOLORREF m_borderColor
Definition: GsInterfaceWrappers.h:942
OdGsViewWrapper::mode
OdGsView::RenderMode mode() const
Definition: GsInterfaceWrappers.h:365
OdGiDrawable
Definition: GiDrawable.h:49
OdGsViewWrapperMinimalImpl::OdGsViewWrapperMinimalImpl
OdGsViewWrapperMinimalImpl(OdGsView *pRedirectionView=NULL)
Definition: GsInterfaceWrappers.h:958
OdGsViewWrapperMinimalImpl::m_renderMode
OdGsView::RenderMode m_renderMode
Definition: GsInterfaceWrappers.h:952
OdGsViewWrapper::setFrontClip
void setFrontClip(double frontClip)
Definition: GsInterfaceWrappers.h:295
OdGsView::invalidateCachedViewportGeometry
virtual void invalidateCachedViewportGeometry()=0
OdGsViewWrapper::screenMatrix
OdGeMatrix3d screenMatrix() const
Definition: GsInterfaceWrappers.h:341
OdSmartPtr::get
const T * get() const
Definition: SmartPtr.h:326
OdGsDeviceWrapperMinimalImpl::createView
OdGsViewPtr createView(const OdGsClientViewInfo *pViewInfo=0, bool=false)
Definition: GsInterfaceWrappers.h:1125
OdGsDeviceWrapperMinimalImpl::eraseView
bool eraseView(int viewIndex)
Definition: GsInterfaceWrappers.h:1135
OdGsViewWrapperMinimalImpl::setMode
void setMode(OdGsView::RenderMode mode)
Definition: GsInterfaceWrappers.h:1067
OdGsView::fieldWidth
virtual double fieldWidth() const =0
OdGsView::isFrontClipped
virtual bool isFrontClipped() const =0
OdGsViewWrapper::setUserGiContext
void setUserGiContext(OdGiContext *pUserGiContext)
Definition: GsInterfaceWrappers.h:119
OdGsViewWrapper::setAlternateLinetypeScaleMultiplier
void setAlternateLinetypeScaleMultiplier(double linetypeAlternateScaleMultiplier)
Definition: GsInterfaceWrappers.h:614
OdArray::resize
void resize(size_type logicalLength, const T &value)
Definition: OdArray.h:834
OdGsView::isVisible
virtual bool isVisible()=0
OdArray::insert
void insert(iterator before, const_iterator first, const_iterator afterLast)
Definition: OdArray.h:800
OdGsViewWrapperMinimalImpl::getViewportBorderProperties
void getViewportBorderProperties(ODCOLORREF &color, int &width) const
Definition: GsInterfaceWrappers.h:1038
OdGsViewWrapper::OdGsViewWrapper
OdGsViewWrapper(OdGsView *pRedirectionView=NULL)
Definition: GsInterfaceWrappers.h:100
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
OdGsViewWrapper::setMode
void setMode(OdGsView::RenderMode mode)
Definition: GsInterfaceWrappers.h:360
OdGsViewWrapperMinimalImpl::m_frontClip
double m_frontClip
Definition: GsInterfaceWrappers.h:951
width
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
OdGsViewWrapper::setViewport
void setViewport(const OdGsDCRect &screenRect)
Definition: GsInterfaceWrappers.h:147
OdGsViewWrapperMinimalImpl::m_fieldsWidth
double m_fieldsWidth
Definition: GsInterfaceWrappers.h:947
OdGsView::kPerspective
@ kPerspective
Definition: Gs.h:153
OdGsViewWrapper::getViewport
void getViewport(OdGsDCRectDouble &screenRect) const
Definition: GsInterfaceWrappers.h:167
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
OdGsViewWrapperMinimalImpl::linetypeAlternateScaleMultiplier
double linetypeAlternateScaleMultiplier() const
Definition: GsInterfaceWrappers.h:1077
OdGsViewWrapper::setViewportBorderProperties
void setViewportBorderProperties(ODCOLORREF color, int width)
Definition: GsInterfaceWrappers.h:206
OdGePoint3d::kOrigin
static GE_STATIC_EXPORT const OdGePoint3d kOrigin
Definition: GePoint3d.h:89
OdGsAbstractRedirectionBase::OdGsAbstractRedirectionBase
OdGsAbstractRedirectionBase(RedirectionBaseInterface *=NULL)
Definition: GsInterfaceWrappers.h:75
TD_PackPush.h
OdGsViewWrapperMinimalImpl::m_visualStyle
OdDbStub * m_visualStyle
Definition: GsInterfaceWrappers.h:956
OdGsDeviceWrapper::setLogicalPalette
void setLogicalPalette(const ODCOLORREF *logicalPalette, int numColors)
Definition: GsInterfaceWrappers.h:887
OdGsViewWrapper::lensLength
double lensLength() const
Definition: GsInterfaceWrappers.h:253
OdGsDeviceWrapper::onSize
void onSize(const OdGsDCRect &outputRect)
Definition: GsInterfaceWrappers.h:763
OdGsViewWrapper::flush
void flush()
Definition: GsInterfaceWrappers.h:449
OdGsView::isValid
virtual bool isValid() const =0
OdGsDefaultRedirectionBase::OdGsDefaultRedirectionBase
OdGsDefaultRedirectionBase(RedirectionBaseInterface *pRedirectionObj=NULL)
Definition: GsInterfaceWrappers.h:53
OdGsDeviceWrapper::onSize
void onSize(const OdGsDCRectDouble &outputRect)
Definition: GsInterfaceWrappers.h:768
OdGsViewWrapper::visualStyle
bool visualStyle(OdGiVisualStyle &visualStyle) const
Definition: GsInterfaceWrappers.h:680
GeVector3d.h
OdGsView::clientViewInfo
virtual void clientViewInfo(OdGsClientViewInfo &clientViewInfo) const
GePoint2dArray.h
OdGsView::setLineweightEnum
virtual void setLineweightEnum(int numLineweights, const OdUInt8 *lineweights)=0
OdGsDeviceWrapper::insertView
void insertView(int viewIndex, OdGsView *pView)
Definition: GsInterfaceWrappers.h:839
OdGsViewWrapper::upVector
OdGeVector3d upVector() const
Definition: GsInterfaceWrappers.h:246
OdGsDeviceWrapper::invalidate
void invalidate()
Definition: GsInterfaceWrappers.h:740
OdGsViewWrapper::add
bool add(OdGiDrawable *pSceneGraph, OdGsModel *pModel)
Definition: GsInterfaceWrappers.h:372
OdGsViewWrapperMinimalImpl
Definition: GsInterfaceWrappers.h:933
OdGsDefaultRedirectionBase::redirection
const RedirectionBaseInterface * redirection() const
Definition: GsInterfaceWrappers.h:58
OdGsView::k2DOptimized
@ k2DOptimized
Definition: Gs.h:140
OdGsAbstractRedirectionBase::redirection
virtual RedirectionBaseInterface * redirection()=0
OdGsViewWrapperMinimalImpl::setBackClip
void setBackClip(double backClip)
Definition: GsInterfaceWrappers.h:1064
OdGsViewWrapperMinimalImpl::m_dcRect
OdGsDCRectDouble m_dcRect
Definition: GsInterfaceWrappers.h:939
OdGsDeviceWrapper::setUpdateManager
void setUpdateManager(OdGsUpdateManagerPtr pManager)
Definition: GsInterfaceWrappers.h:915
OdGsViewWrapper::viewportClipRegion
void viewportClipRegion(OdIntArray &counts, OdGsDCPointArray &vertices) const
Definition: GsInterfaceWrappers.h:183
OdGsView::setLinetypeScaleMultiplier
virtual void setLinetypeScaleMultiplier(double linetypeScaleMultiplier)=0
OdGsDeviceWrapperMinimalImpl::userGiContext
OdGiContext * userGiContext() const
Definition: GsInterfaceWrappers.h:1113
OdGsView::position
virtual OdGePoint3d position() const =0
OdGsViewWrapper::isInInteractivity
bool isInInteractivity() const
Definition: GsInterfaceWrappers.h:436
OdGsView::thawLayer
virtual void thawLayer(OdDbStub *layerID)=0
OdGsViewWrapper::pointInViewport
bool pointInViewport(const OdGePoint2d &screenPoint) const
Definition: GsInterfaceWrappers.h:638
OdGsViewWrapper::eraseAll
void eraseAll()
Definition: GsInterfaceWrappers.h:384
OdGsDevice::createView
virtual OdGsViewPtr createView(const OdGsClientViewInfo *pViewInfo=0, bool enableLayerVisibilityPerView=false)=0
OdGsView::zoom
virtual void zoom(double zoomFactor)=0
OdGsViewWrapper::getModel
OdGsModel * getModel(const OdGiDrawable *pDrawable) const
Definition: GsInterfaceWrappers.h:390
OdGsView::hide
virtual void hide()=0
OdGsDefaultRedirectionBase::setRedirection
void setRedirection(RedirectionBaseInterface *pRedirectionObj)
Definition: GsInterfaceWrappers.h:60
OdGsView::setBackground
virtual void setBackground(OdDbStub *backgroundId)=0
OdGsViewWrapper::initLights
void initLights(OdRxIterator *pLightsIterator)
Definition: GsInterfaceWrappers.h:597
OdGsDevice::insertView
virtual void insertView(int viewIndex, OdGsView *pView)=0
OdGsDevice::getBackgroundColor
virtual ODCOLORREF getBackgroundColor()=0
OdGsView::viewParameters
virtual void viewParameters(OdGsView *pView) const =0
OdGsViewWrapper::show
void show()
Definition: GsInterfaceWrappers.h:460
OdGsDeviceWrapper::numViews
int numViews() const
Definition: GsInterfaceWrappers.h:861
OdGsDeviceWrapperMinimalImpl::getSize
void getSize(OdGsDCRect &outputRect) const
Definition: GsInterfaceWrappers.h:1122
OdGsViewWrapperMinimalImpl::setViewportClipRegion
void setViewportClipRegion(int numContours, int const *numVertices, OdGsDCPoint const *vertices)
Definition: GsInterfaceWrappers.h:1004
OdGsViewWrapper::extentsInView
bool extentsInView(const OdGePoint3d &minPt, const OdGePoint3d &maxPt) const
Definition: GsInterfaceWrappers.h:549
OdGsView::isInInteractivity
virtual bool isInInteractivity() const =0
OdGsViewWrapper::visualStyle
OdDbStub * visualStyle() const
Definition: GsInterfaceWrappers.h:669
OdGsView::add
virtual bool add(OdGiDrawable *pSceneGraph, OdGsModel *pModel)=0
OdGsViewWrapperMinimalImpl::show
void show()
Definition: GsInterfaceWrappers.h:1071
OdGsViewWrapperMinimalImpl::isPerspective
bool isPerspective() const
Definition: GsInterfaceWrappers.h:1054
OdGsView::frontClip
virtual double frontClip() const =0
OdGsViewWrapperMinimalImpl::m_upVector
OdGeVector3d m_upVector
Definition: GsInterfaceWrappers.h:946
OdGsDevice::onRealizeBackgroundPalette
virtual void onRealizeBackgroundPalette()=0
OdGsDevice::loadDeviceState
virtual bool loadDeviceState(OdGsFiler *pFiler)
OdGsView::setVisualStyle
virtual void setVisualStyle(OdDbStub *visualStyleId)=0
OdGsViewWrapper::getViewportBorderProperties
void getViewportBorderProperties(ODCOLORREF &color, int &width) const
Definition: GsInterfaceWrappers.h:211
OdGsView::kTwoLights
@ kTwoLights
Definition: Gs.h:170
OdGsViewWrapperMinimalImpl::getViewport
void getViewport(OdGsDCRectDouble &screenRect) const
Definition: GsInterfaceWrappers.h:1002
OdGsClientViewInfo
Definition: Gs.h:1021
UInt8Array.h
OdGsViewWrapper::erase
bool erase(OdGiDrawable *sceneGraph)
Definition: GsInterfaceWrappers.h:378
OdGsDeviceWrapper::getLogicalPalette
const ODCOLORREF * getLogicalPalette(int &numColors) const
Definition: GsInterfaceWrappers.h:892
OdGsDeviceWrapperMinimalImpl::setUserGiContext
void setUserGiContext(OdGiContext *pUserGiContext)
Definition: GsInterfaceWrappers.h:1114
OdGsViewWrapper::fieldHeight
double fieldHeight() const
Definition: GsInterfaceWrappers.h:277
OdGsView::flush
virtual void flush()=0
OdGsViewWrapper::setClearColor
void setClearColor(OdGsView::ClearColor color)
Definition: GsInterfaceWrappers.h:632
OdGsViewWrapperMinimalImpl::fieldHeight
double fieldHeight() const
Definition: GsInterfaceWrappers.h:1056
OdGsViewWrapper::isViewportBorderVisible
bool isViewportBorderVisible() const
Definition: GsInterfaceWrappers.h:221
OdGsView::endInteractivity
virtual void endInteractivity()=0
OdGsViewWrapper::invalidate
void invalidate()
Definition: GsInterfaceWrappers.h:403
OdGsDeviceWrapperMinimalImpl
Definition: GsInterfaceWrappers.h:1098
OdGsViewWrapper::beginInteractivity
void beginInteractivity(double frameRateInHz)
Definition: GsInterfaceWrappers.h:426
OdGsViewWrapperMinimalImpl::m_ltpMult1
double m_ltpMult1
Definition: GsInterfaceWrappers.h:954
OdGeVector3d::kYAxis
static GE_STATIC_EXPORT const OdGeVector3d kYAxis
Definition: GeVector3d.h:90
OdGsDevice::onDisplayChange
virtual void onDisplayChange(int bitsPerPixel, int xPixels, int yPixels)=0
OdGsViewWrapper::setEnableFrontClip
void setEnableFrontClip(bool enable)
Definition: GsInterfaceWrappers.h:284
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
OdGsViewWrapperMinimalImpl::m_pContext
OdGiContext * m_pContext
Definition: GsInterfaceWrappers.h:936
OdGsViewWrapperMinimalImpl::m_bkgnd
OdDbStub * m_bkgnd
Definition: GsInterfaceWrappers.h:956
OdGsViewWrapper::enableDefaultLighting
void enableDefaultLighting(bool bEnable, OdGsView::DefaultLightingType lightType=OdGsView::kTwoLights)
Definition: GsInterfaceWrappers.h:687
OdGsView::userGiContext
virtual OdGiContext * userGiContext() const =0
OdGsViewWrapperMinimalImpl::setViewportBorderProperties
void setViewportBorderProperties(ODCOLORREF color, int width)
Definition: GsInterfaceWrappers.h:1036
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
OdGsDeviceWrapperMinimalImpl::setLogicalPalette
void setLogicalPalette(const ODCOLORREF *logicalPalette, int numColors)
Definition: GsInterfaceWrappers.h:1143
OdGsViewWrapper::worldToDeviceMatrix
OdGeMatrix3d worldToDeviceMatrix() const
Definition: GsInterfaceWrappers.h:347
OdRxObjectImpl
Definition: RxObjectImpl.h:55
OdGsViewWrapperMinimalImpl::setUserGiContext
void setUserGiContext(OdGiContext *pUserGiContext)
Definition: GsInterfaceWrappers.h:990
OdGsDeviceWrapper::isValid
bool isValid() const
Definition: GsInterfaceWrappers.h:750
OdGsViewWrapper::setViewport
void setViewport(const OdGsDCRectDouble &screenRect)
Definition: GsInterfaceWrappers.h:152
OdGsView::setViewportClipRegion
virtual void setViewportClipRegion(int numContours, int const *numVertices, OdGsDCPoint const *vertices)=0
OdGsView::Projection
Projection
Definition: Gs.h:151
OdGsDeviceWrapperMinimalImpl::numViews
int numViews() const
Definition: GsInterfaceWrappers.h:1137
OdGsView::orbit
virtual void orbit(double xOrbit, double yOrbit)=0
OdGsDeviceWrapperMinimalImpl::m_backColor
ODCOLORREF m_backColor
Definition: GsInterfaceWrappers.h:1101
OdGsViewWrapper::device
OdGsDevice * device() const
Definition: GsInterfaceWrappers.h:106
OdGsViewWrapperMinimalImpl::setViewportClipRegion
void setViewportClipRegion(int numContours, int const *numVertices, OdGePoint2d const *vertices)
Definition: GsInterfaceWrappers.h:1014
OdGsDevice::properties
virtual OdRxDictionaryPtr properties()=0
GeMatrix3d.h
OdGsModel
Definition: GsModel.h:77
OdGsViewWrapper::projectionMatrix
OdGeMatrix3d projectionMatrix() const
Definition: GsInterfaceWrappers.h:335
OdGsView::exceededBounds
virtual bool exceededBounds()=0
OdGsView::setViewport3dClipping
virtual void setViewport3dClipping(const OdGiClipBoundary *pBoundary, const OdGiAbstractClipBoundary *pClipInfo=NULL)
OdGsDeviceWrapperMinimalImpl::getLogicalPalette
const ODCOLORREF * getLogicalPalette(int &numColors) const
Definition: GsInterfaceWrappers.h:1149
OdGsViewWrapperMinimalImpl::m_target
OdGePoint3d m_target
Definition: GsInterfaceWrappers.h:945
OdGsDeviceWrapper::loadDeviceState
bool loadDeviceState(OdGsFiler *pFiler)
Definition: GsInterfaceWrappers.h:832
OdGsView::setEnableFrontClip
virtual void setEnableFrontClip(bool enable)=0
OdGsFiler
Definition: GsFiler.h:63
OdGsAbstractRedirectionBase::setRedirection
virtual void setRedirection(RedirectionBaseInterface *)
Definition: GsInterfaceWrappers.h:81
OdGsDeviceWrapperMinimalImpl::insertView
void insertView(int viewIndex, OdGsView *pView)
Definition: GsInterfaceWrappers.h:1133
OdGsView::setAlternateLinetypeScaleMultiplier
virtual void setAlternateLinetypeScaleMultiplier(double linetypeAlternateScaleMultiplier)=0
OdGsViewWrapper::setStereoParameters
void setStereoParameters(double magnitude, double parallax)
Definition: GsInterfaceWrappers.h:586
OdGsDeviceWrapper
Definition: GsInterfaceWrappers.h:709
OdGsDeviceWrapperMinimalImpl::addView
void addView(OdGsView *pView)
Definition: GsInterfaceWrappers.h:1132
OdGsViewWrapper::exceededBounds
bool exceededBounds()
Definition: GsInterfaceWrappers.h:568
OdGsViewWrapper::interactivityFrameRate
double interactivityFrameRate() const
Definition: GsInterfaceWrappers.h:442
OdGsView::setClearColor
virtual void setClearColor(ClearColor color)=0
OdGeMatrix3d::kIdentity
static GE_STATIC_EXPORT const OdGeMatrix3d kIdentity
Definition: GeMatrix3d.h:79
OdGsViewWrapperMinimalImpl::m_fieldsHeight
double m_fieldsHeight
Definition: GsInterfaceWrappers.h:947
OdGsViewWrapper::setLineweightToDcScale
void setLineweightToDcScale(double scale)
Definition: GsInterfaceWrappers.h:131
OdGsViewWrapper::viewingMatrix
OdGeMatrix3d viewingMatrix() const
Definition: GsInterfaceWrappers.h:329
OdGsView::background
virtual OdDbStub * background() const =0
OdGsViewWrapper::getNumPixelsInUnitSquare
void getNumPixelsInUnitSquare(const OdGePoint3d &point, OdGePoint2d &pixelDensity, bool bUsePerspective=true) const
Definition: GsInterfaceWrappers.h:645
OdGsViewWrapper::frontClip
double frontClip() const
Definition: GsInterfaceWrappers.h:300
OdGsViewWrapperMinimalImpl::lineweightToDcScale
double lineweightToDcScale() const
Definition: GsInterfaceWrappers.h:992
OdGsView::show
virtual void show()=0
OdGsViewWrapperMinimalImpl::m_pDevice
OdGsDevice * m_pDevice
Definition: GsInterfaceWrappers.h:935
OdGsView::getModelList
virtual OdGsModelArray getModelList() const =0
OdGsViewWrapper::linetypeAlternateScaleMultiplier
double linetypeAlternateScaleMultiplier() const
Definition: GsInterfaceWrappers.h:619
OdGsViewWrapperMinimalImpl::fieldWidth
double fieldWidth() const
Definition: GsInterfaceWrappers.h:1055
OdGsDeviceWrapper::getBackgroundColor
ODCOLORREF getBackgroundColor()
Definition: GsInterfaceWrappers.h:880
OdGsViewWrapper::enableStereo
void enableStereo(bool enabled)
Definition: GsInterfaceWrappers.h:575
OdGsViewWrapper::backClip
double backClip() const
Definition: GsInterfaceWrappers.h:322
OdGsViewWrapperMinimalImpl::m_bHidden
bool m_bHidden
Definition: GsInterfaceWrappers.h:953
OdGsViewWrapper::setVisualStyle
void setVisualStyle(const OdGiVisualStyle &visualStyle)
Definition: GsInterfaceWrappers.h:675
OdGsDefaultRedirectionBase
Definition: GsInterfaceWrappers.h:49
OdGsViewWrapper::isValid
bool isValid() const
Definition: GsInterfaceWrappers.h:413
OdGsView::lensLength
virtual double lensLength() const =0
OdGsView::kCrossing
@ kCrossing
Definition: Gs.h:159
OdGsViewWrapper
Definition: GsInterfaceWrappers.h:94
OdGsViewWrapper::setVisualStyle
void setVisualStyle(OdDbStub *visualStyleId)
Definition: GsInterfaceWrappers.h:664
OdGsSelectionReactor
Definition: GsSelectionReactor.h:128
OdGsViewWrapperMinimalImpl::position
OdGePoint3d position() const
Definition: GsInterfaceWrappers.h:1049
OdGsView::isStereoEnabled
virtual bool isStereoEnabled() const =0
OdGsView::cloneView
virtual OdGsViewPtr cloneView(bool cloneViewParameters=true, bool cloneGeometry=false)=0
OdGsViewWrapper::isVisible
bool isVisible()
Definition: GsInterfaceWrappers.h:465
OdGsDevice::createModel
virtual OdGsModelPtr createModel()=0
OdGsViewWrapper::viewport3dClipping
const OdGiClipBoundary * viewport3dClipping(const OdGiAbstractClipBoundary **ppClipInfo=NULL) const
Definition: GsInterfaceWrappers.h:199
OdGePoint2d
Definition: GePoint2d.h:60
OdGsDeviceWrapper::addView
void addView(OdGsView *pView)
Definition: GsInterfaceWrappers.h:807
OdGsViewWrapper::setViewport3dClipping
void setViewport3dClipping(const OdGiClipBoundary *pBoundary, const OdGiAbstractClipBoundary *pClipInfo=NULL)
Definition: GsInterfaceWrappers.h:194
OdGsView::linetypeScaleMultiplier
virtual double linetypeScaleMultiplier() const =0