CFx SDK Documentation  2020SP3
GsViewImpl.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 ODGSVIEWIMPL_INC
25 #define ODGSVIEWIMPL_INC
26 
27 #include "TD_PackPush.h"
28 #include "Gs/Gs.h"
29 #include "Gs/GsBaseModule.h"
30 #include "Gs/GsDCRectArray.h"
31 #include "DbStubPtrArray.h"
32 #include "Ge/GePoint3d.h"
33 #include "Ge/GeVector3d.h"
34 #include "Ge/GeMatrix3d.h"
35 #include "UInt8Array.h"
36 #include "SharedPtr.h"
37 #include "Gs/GsDrawableHolder.h"
38 #include "Gi/GiCommonDraw.h"
39 #include "Gs/GsProperties.h"
40 #include "Gs/GsCullingVolume.h"
41 #include "Gs/GsViewLocalId.h"
42 #include "Gs/GsOverlayDefs.h"
44 #include "OdMutex.h"
45 
47 class OdGeBoundBlock3d;
48 class OdGiPathNode;
49 
58 {
59 public:
61 
64 
65  // OdGsView methods
66 
74  virtual void init(OdGsBaseVectorizeDevice* pDevice,
75  const OdGsClientViewInfo* pViewInfo = 0,
76  bool enableLayerVisibilityPerView = false);
77 
78  virtual OdGsDevice* device() const;
79 
80  virtual void clientViewInfo(OdGsClientViewInfo& viewInfo) const;
81 
82  virtual RenderMode mode() const;
84  virtual void setMode(RenderMode mode);
85 
86  virtual void freezeLayer(OdDbStub* layerID);
87  virtual void thawLayer(OdDbStub* layerID);
88  virtual void clearFrozenLayers();
89 
90  virtual void setViewportBorderProperties(ODCOLORREF color, int width);
91  virtual void getViewportBorderProperties(ODCOLORREF& color, int& width) const;
92  virtual void setViewportBorderVisibility(bool visible);
93  virtual bool isViewportBorderVisible() const;
94 
95  virtual void setEnableFrontClip(bool enable);
96  virtual bool isFrontClipped() const;
97  virtual void setFrontClip(double distance);
98  virtual double frontClip() const;
99 
100  virtual void setEnableBackClip(bool enable);
101  virtual bool isBackClipped() const;
102  virtual void setBackClip(double distance);
103  virtual double backClip() const;
104 
105  virtual OdGePoint3d position() const;
106  virtual OdGePoint3d target() const;
107  virtual OdGeVector3d upVector() const;
108  virtual double fieldWidth() const;
109  virtual double fieldHeight() const;
113  double windowAspect() const;
114 
115  virtual double lensLength() const;
116  virtual void setLensLength(double lensLength);
117 
118  virtual bool isPerspective() const;
119 
120  virtual void beginInteractivity(double frameRateInHz);
121  virtual bool isInInteractivity() const;
122  virtual double interactivityFrameRate() const;
123  virtual void endInteractivity();
124  virtual void flush();
125 
126  virtual void hide();
127  virtual void show();
128  virtual bool isVisible();
129 
130  virtual OdGsViewPtr cloneView(bool cloneViewParameters = true, bool cloneGeometry = false);
131  virtual bool exceededBounds();
132  virtual void enableStereo(bool enabled);
133  virtual bool isStereoEnabled() const;
134  virtual void setStereoParameters(double magnitude, double parallax);
135  virtual void getStereoParameters(double& magnitude, double& parallax) const;
136  virtual void initLights(OdRxIterator* pLightsIterator);
137  virtual void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect &region);
138 
139  virtual void setViewport(const OdGePoint2d& lowerLeft, const OdGePoint2d& upperRight);
140  virtual void setViewport(const OdGsDCRect& screenRect);
141  virtual void setViewport(const OdGsDCRectDouble& screenRec);
142 
143  virtual void getViewport(OdGePoint2d& lowerLeft, OdGePoint2d& upperRight) const;
144  virtual void getViewport(OdGsDCRect& screenRect) const;
145  virtual void getViewport(OdGsDCRectDouble& screenRec) const;
146 
147  virtual OdGeMatrix3d screenMatrix() const;
150  virtual OdGeMatrix3d viewingMatrix() const;
152 
153  virtual void viewParameters(OdGsView* pView) const;
154 
155  virtual double lineweightToDcScale() const;
156  virtual void setLineweightToDcScale(double scale);
157  virtual void setLineweightEnum(int numLineweights, const OdUInt8* lineweights);
158  virtual void setLinetypeScaleMultiplier(double linetypeScaleMultiplier);
159  virtual void setAlternateLinetypeScaleMultiplier(double linetypeAlternateScaleMultiplier);
160  virtual double linetypeScaleMultiplier() const;
161 
162  virtual void dolly(const OdGeVector3d& dollyVector);
163  virtual void dolly(double xDolly, double yDolly, double zDolly);
164  virtual void roll(double rollAngle);
165  virtual void orbit(double xOrbit, double yOrbit);
166  virtual void zoom(double zoomFactor);
167  virtual void pan(double xPan, double yPan);
168  virtual void setView(const OdGePoint3d & position,
169  const OdGePoint3d& target,
170  const OdGeVector3d& upVector,
171  double fieldWidth,
172  double fieldHeight,
173  Projection projection = kParallel);
174 
175  virtual void zoomExtents(const OdGePoint3d &minPt, const OdGePoint3d &maxPt);
176  virtual void zoomWindow(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight);
177  virtual bool pointInView(const OdGePoint3d &pt) const;
178  virtual bool extentsInView(const OdGePoint3d &minPt, const OdGePoint3d &maxPt) const;
179 
180  virtual void viewportClipRegion(OdIntArray& counts, OdGePoint2dArray& vertices) const;
181  virtual void viewportClipRegion(OdIntArray& counts, OdGsDCPointArray& dcPts) const;
182  virtual void setViewportClipRegion(int numContours, const int* numVertices, const OdGePoint2d* vertices);
183  virtual void setViewportClipRegion(int numContours, int const* numVertices, OdGsDCPoint const* vertices);
184 
185  bool isDependentViewportView() const;
186  bool isDependentGeometryView() const;
187  bool isHelperView() const;
188 
189  const OdGsBaseModule *getGsModulePtr() const;
190 
191  const OdGiContextualColors *contextualColors() const;
192  void setContextualColors(OdGiContextualColors *pColors);
193 
194  virtual bool pointInViewport(const OdGePoint2d& screenPoint) const;
195 
196  virtual void setClearColor(ClearColor color);
197  virtual void invalidate();
198  virtual void invalidate(const OdGsDCRect &rect);
206  virtual void select(const OdGsDCPoint* points, int numPoints, OdGsSelectionReactor* pReactor,
207  SelectionMode mode = kCrossing);
208 
209  virtual bool add(OdGiDrawable* sceneGraph, OdGsModel* model);
210  virtual bool erase(OdGiDrawable* sceneGraph);
211  virtual void eraseAll();
212 
213  virtual OdGsModel *getModel(const OdGiDrawable *pDrawable) const;
214  virtual OdGsModelArray getModelList() const;
215 
216  virtual bool isValid() const;
217  virtual void getNumPixelsInUnitSquare(const OdGePoint3d& givenWorldpt,
218  OdGePoint2d& pixelArea, bool includePerspective = true) const;
219 
220  virtual void setBackground(OdDbStub *backgroundId);
221  virtual OdDbStub *background() const;
222  virtual void setVisualStyle(OdDbStub *visualStyleId);
223  virtual OdDbStub *visualStyle() const;
224  virtual void setVisualStyle(const OdGiVisualStyle &visualStyle);
225  virtual bool visualStyle(OdGiVisualStyle &vs) const;
226  virtual void enableDefaultLighting(bool bEnable, DefaultLightingType lightType = kTwoLights);
227  bool defaultLightingEnabled() const;
228  DefaultLightingType defaultLightingType() const;
229 
230  // OdGsViewImpl methods
231 
237  static OdGsViewImpl* safeCast(OdGsView* pView);
238  static const OdGsViewImpl* safeCast(const OdGsView* pView);
239 
240  OdUInt32 viewportId() const { return m_giViewportId; }
241  bool isValidViewportId(const OdUInt32 vpId) const;
242 
243  //NS TODO: rename to viewportObjectId()
244  OdDbStub* getViewportObjectId() const { return m_viewInfo.viewportObjectId; }
245 
249  OdGsBaseVectorizeDevice* baseDevice() { return m_pDevice; }
250  const OdGsBaseVectorizeDevice* baseDevice() const { return m_pDevice; }
251 
252  OdDbStub* annotationScaleId() const;
254 
263  virtual bool viewExtents(OdGeBoundBlock3d& extents) const = 0;
264 
265  // Own methods
266  virtual void select(const OdGePoint2d* aPtDc, int numPoints, OdGsSelectionReactor* pReactor,
267  SelectionMode mode = kCrossing) = 0;
268 
269  bool isSnapping() const;
270  void setSnapping(bool val);
271  bool isRegenOnDrawForbidden() const;
272  void setRegenOnDrawForbidden(bool val);
273  bool isAccumulateVpChanges() const;
274  virtual void clearLinetypeCache() = 0;
276 
277  // Legacy plot modes (#12611)
278  // Legacy Wireframe
279  virtual bool isSupportLegacyWireframeMode() const;
280  virtual bool isLegacyWireframeMode() const;
281  virtual void setLegacyWireframeMode(bool bSet);
282  // Legacy Hidden
283  virtual bool isSupportLegacyHiddenMode() const;
284  virtual bool isLegacyHiddenMode() const;
285  virtual void setLegacyHiddenMode(bool bSet);
286  // Returns true in case if current view supports plot styles rendering
287  bool isSupportPlotStyles() const;
288  // Transparencies plotting
289  virtual bool isPlotTransparency() const;
290  virtual void setPlotTransparency(bool bSet);
291 
299  OdUInt32 frozenLayers() const { return m_frozenLayers.size(); }
300 
310  void frozenLayers(OdDbStubPtrArray& frozenLayers) const { frozenLayers = m_frozenLayers; }
311  bool isLayerVisible(OdDbStub* layerId) const;
312 
317  int lineweightToPixels(OdDb::LineWeight lineweight) const;
318 
323  double lineweightToPixels(double lineweight) const;
324 
330  void screenRect(OdGsDCPoint &lowerLeft, OdGsDCPoint &upperRight) const;
331 
337  void screenRect(OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const;
338  void screenRectNorm(OdGsDCRect& normalizedRect) const;
339  void viewportDcCorners(OdGePoint2d& lower_left, OdGePoint2d& upper_right) const;
340  bool doPerspectivePt(OdGePoint3d& point) const;
342 
343  const OdGeMatrix3d& eyeToWorldMatrix() const;
344  const OdGeMatrix3d& worldToEyeMatrix() const;
349  {
350  kProjectionIncludeDept = (1 << 0),
351  kProjectionIncludeClip = (1 << 1),
352  kProjectionIncludePerspective = (1 << 2),
353  kProjectionIncludeRotation = (1 << 3),
354  kProjectionIncludeAll = 0x0F,
355  kProjectionIncludeAllNoDept = kProjectionIncludeAll & ~kProjectionIncludeDept
356  };
358 
360 
361  virtual void invalidate(const OdGeExtents3d& worldExt, const OdGsModel *pModel, OdDb::LineWeight extendByLineweight = OdDb::kLnWt000);
362  void invalidate(const OdGsUpdateExtents& extents, const OdGsModel *pModel);
363  void invalidateRegion(const OdGiPathNode& path);
364 
369  bool isViewportOnScreen() const;
370 
371  bool isCompletelyVisible() const;
372  void setCompletelyVisible(bool val);
373 
374  // Since layout view can be rotated to 90, 180 or 270 (for printing)
375  // views linked to viewports of this layout must be rotated accordingly.
376  // To determine viewport's rotation angle by it's corners coordinates
377  // it's necessary to know if overall layout's window coordinates inverted.
378  //
379  // For example overall layout's output rectangle can be (0,0)-(100,100)
380  // or (0,100)-(100,0)
381  // This means invertedX == invertedY == false in the first case and
382  // invertedX = false, invertedY == true in the second.
383  // Vieport with coordinates (10,10)-(90,90) inside this layout will be
384  // considered unrotated in the first case or rotated to 270 degrees
385  // in the second case.
386  void setInversion(bool invertedX, bool invertedY);
387 
388  OdGiRegenType getRegenType() const { return m_regenerationType; }
389 
393  double focalLength() const;
394 
395  const OdGeVector3d& eyeVector() const { return m_eyeVector; }
396  const OdGeVector3d& xVector() const { return m_xVector; }
397  const OdGeVector3d& getUpVector() const { return m_upVector; }
398 
401 
402  virtual double getDeviation(const OdGiDeviationType deviationType,
403  const OdGePoint3d& pointOnCurve, bool bRecalculate = false) const;
405 
409  int cachedDrawables() const { return m_nCachedDrawables!=0; }
410 
411 #ifdef ODGS_LOCAL_IDS
412  // Local viewport ID section
413  OdUInt32 localViewportId(const OdGsBaseModel *pModel) const
414  {
415  return m_localId.localViewportId(pModel);
416  }
417  virtual bool isLocalViewportIdCompatible(const OdGsViewImpl *pView) const;
418  OdGsViewLocalId &getViewLocalId()
419  {
420  return m_localId;
421  }
422 #endif
423  virtual bool isViewRegenerated() const;
424 protected:
433  virtual bool sceneDept(double& zNear, double& zFar, OdGsOverlayId nOverlay) const;
434  // This is old version of sceneDept overrideable method, which is still provided for compatibility with
435  // old vectorizers. Don't override it in new vectorizers, use new sceneDept method version even if
436  // your vectorizer doesn't support overlay buffers. This method will be removed in one of next Teigha versions.
437  virtual bool sceneDept(double& zNear, double& zFar) const;
438 
449  virtual bool usesDept(double* pMinDeptSupported = 0, double* pMaxDeptSupported = 0) const;
450 protected:
455 
460 
461  virtual void updateViewProps(bool bFullUpdate = true);
462 
463  inline bool isCheckValid() const;
464  inline void setCheckValid(bool bValue) const;
465  inline bool isInvalid() const;
466  inline void setInvalid(bool bValue) const;
467  inline void setPerspectiveEnabled(bool bValue) const;
468 
469 public:
470  inline bool isNonRectClipped() const;
471  inline bool hasLweights() const { return !m_lweights.empty(); }
472  inline const OdUInt8Array &getLweightsEnum() const { return m_lweights; }
473 
474  const OdGePoint2d& dcScreenMin() const { return m_dcScreenMin; }
475  const OdGePoint2d& dcScreenMax() const { return m_dcScreenMax; }
476  const OdGePoint2d& dcLowerLeft() const { return m_dcLowerLeft; }
477  const OdGePoint2d& dcUpperRight() const { return m_dcUpperRight; }
478 
483 
490  static double lensLengthToFOV(double lensLength);
499  static double lensLengthFromFOV(double fovAngle);
500 
504 
505  void registerOverlay(const OdGsModel *pModel);
506  void unregisterOverlay(const OdGsModel *pModel);
507 
514  virtual int partialUpdateExtentsEnlargement() const;
515 protected:
522  virtual void propagateInvalidVpFlag();
523  virtual void propagateLayersChanges();
524 
525 public:
526  double calcDeviation(const OdGiDeviationType type, const OdGePoint3d& pt) const;
527 
528  // Viewport properties (backgrounds, render settings, visual styles) management
532 
533  // Printing support methods
534 
535  const OdGeMatrix3d& rotationMatrix() const;
536  short viewportRotation() const;
537  inline bool isRotated() const;
538 
569  double unrotatedFieldHeight() const;
570  double unrotatedFieldWidth() const;
571 
575  double actualFieldWidth() const;
579  double actualFieldHeight() const;
580 
581  // Primitives culling routines
582 
598  virtual void initCullingVolume();
623  virtual bool isCullingVolumeInitialized() const;
633  virtual bool cullingVolumeIntersectWithOpt(const OdGsCullingPrimitive &prim) const;
661  virtual void cullingVolumeTransformBy(const OdGeMatrix3d &xfm);
662 
669  virtual void setViewport3dClipping(const OdGiClipBoundary* pBoundary, const OdGiAbstractClipBoundary* pClipInfo = NULL);
675  virtual const OdGiClipBoundary *viewport3dClipping(const OdGiAbstractClipBoundary** ppClipInfo = NULL) const;
679  OdGiClipBoundaryWithAbstractData *viewport3dClippingObject();
683  bool hasViewport3dClipping() const;
684 
685  virtual bool saveViewState(OdGsFiler *pFiler) const;
686  virtual bool loadViewState(OdGsFiler *pFiler);
687  virtual bool saveClientViewState(OdGsFiler *pFiler) const;
688  virtual bool loadClientViewState(OdGsFiler *pFiler);
689 
690  virtual const OdDbStubPtrArray& getFrozenLayersDiff() const;
691 private:
692  void setExtents(OdGsOverlayId nOverlay, const OdGeExtents3d& ext, bool bAdd);
693  void getExtents(OdGsOverlayId nOverlay, OdGeExtents3d& ext) const;
694 
695 private:
696  enum EGsViewImplFlags
697  {
698  kFirstViewImplFlag = 1,
699 
700  kInvalid = kFirstViewImplFlag << 0, // device surface entirely invalid
701  kCheckValid = kFirstViewImplFlag << 1, // device surface entirely valid
702  kBorderVisible = kFirstViewImplFlag << 2,
703  kDoFrontClip = kFirstViewImplFlag << 3,
704  kDoBackClip = kFirstViewImplFlag << 4,
705  kPerspectiveEnabled = kFirstViewImplFlag << 5,
706  kHidden = kFirstViewImplFlag << 6, // view is hidden
707  kTransparentClearColor = kFirstViewImplFlag << 7,
708  kDevBgClearColor = kFirstViewImplFlag << 8,
709  kEyeToWorldValid = kFirstViewImplFlag << 9,
710  kWorldToEyeValid = kFirstViewImplFlag << 10,
711  kSnapping = kFirstViewImplFlag << 11,
712  kForbidDrawableRegenDraw = kFirstViewImplFlag << 12,
713  kDepViewInside = kFirstViewImplFlag << 13,
714  kLegacyWireframe = kFirstViewImplFlag << 14,
715  // there are two modes with hidden lines removed:
716  // - normal, set by SHADEMODE command in CAD for display and
717  // represented by 'Hidden' visual style in shade plot viewport/layout props for printing, and
718  // - legacy, set by HIDE command in CAD for display and
719  // according to 'OdDbViewport/OdDbPlotSettings::kHidden' shade plot for printing;
720  // they both use 'kHiddenLine' render mode, but have some differences, e.g. in plot style usage;
721  // this flag is to distinguish these two cases
722  kLegacyHidden = kFirstViewImplFlag << 15,
723  kPlotTransparency = kFirstViewImplFlag << 16,
724  kAccumulateVpChanges = kFirstViewImplFlag << 17,
725  kDefaultLightingEnabled = kFirstViewImplFlag << 18
726  };
727 
728 protected: //FELIX_CHANGE
732 
744 
745  double m_fieldWidth;
747  double m_lensLength;
749 
757 
766 
767  double m_deviation[5];
768 
771 
773  OdDbStub *m_pBackgroundId;
774  OdDbStub *m_pVisualStyleId;
777 
778 protected:
780  {
782  {
783  kWorldToDeviceValid = (1 << 0),
784  kSceneDeptInvalid = (1 << 1)
785  };
789  GsViewOverlayData() : m_nOverlayFlags(0) {}
790  };
792  {
793  public:
795  void setSceneDeptInvalid(OdGsOverlayId nOverlay, bool bSet) const;
796  };
798 protected:
802 #ifdef ODGS_LOCAL_IDS
803  OdGsViewLocalId m_localId;
804 #endif
806  // Reserved pointer for internal use (binary incompatible changes), do not delete.
808 
809  // Made protected for access in OdGiViewport methods
811 
813 
815 
818 
819  friend class GsViewImplHelper;
821  friend class OdGsBaseVectorizer;
822  friend class OdGsBaseModule;
824 };
825 
827 {
829 }
830 
832 {
834 }
835 
836 inline bool OdGsViewImpl::isHelperView() const
837 {
839 }
840 
842 {
843  return m_pModule.get();
844 }
845 
847 {
848  return m_viewInfo.contextColors.get();
849 }
850 
852 {
853  m_viewInfo.contextColors = pColors;
854  invalidate();
855 }
856 
858 {
860 }
861 
862 inline bool OdGsViewImpl::isCheckValid() const
863 {
864  return GETBIT(m_gsViewImplFlags, kCheckValid);
865 }
866 
867 inline void OdGsViewImpl::setCheckValid(bool bValue) const
868 {
869  SETBIT(m_gsViewImplFlags, kCheckValid, bValue);
870 }
871 
872 inline bool OdGsViewImpl::isInvalid() const
873 {
875 }
876 
877 inline void OdGsViewImpl::setInvalid(bool bValue) const
878 {
880 }
881 
882 inline void OdGsViewImpl::setPerspectiveEnabled(bool bValue) const
883 {
884  SETBIT(m_gsViewImplFlags, kPerspectiveEnabled, bValue);
885 }
886 
888 {
889  return GETBIT(m_gsViewImplFlags, kDefaultLightingEnabled);
890 }
891 
893 {
894  return m_defaultLightingType;
895 }
896 
898 {
899  return m_nrcCounts.size() != 0;
900 }
901 
902 inline bool OdGsViewImpl::isRotated() const
903 {
904  short rotation = viewportRotation();
905  return rotation == 90 || rotation == 270;
906 }
907 
908 inline void OdGsViewImpl::invalidate(const OdGsUpdateExtents& extents, const OdGsModel *pModel)
909 {
910  invalidate(extents.getExtents(), pModel, extents.getLineweight());
911 }
912 
914 {
915  if(!GETBIT(m_gsViewImplFlags, kEyeToWorldValid))
916  {
918  SETBIT(m_gsViewImplFlags, kEyeToWorldValid, true);
919  }
920  return m_eyeToWorld;
921 }
922 
924 {
925  if(!GETBIT(m_gsViewImplFlags, kWorldToEyeValid))
926  {
928  SETBIT(m_gsViewImplFlags, kWorldToEyeValid, true);
929  }
930  return m_worldToEye;
931 }
932 
934 {
935  return OdSmartPtr<OdGsViewImpl>(pView).get();
936 }
937 
938 inline const OdGsViewImpl* OdGsViewImpl::safeCast(const OdGsView* pView)
939 {
940  return OdSmartPtr<OdGsViewImpl>(pView).get();
941 }
942 
943 inline bool OdGsViewImpl::isSnapping() const
944 {
945  return GETBIT(m_gsViewImplFlags, kSnapping);
946 }
947 
948 inline void OdGsViewImpl::setSnapping(bool val)
949 {
950  SETBIT(m_gsViewImplFlags, kSnapping, val);
951 }
952 
954 {
955  return GETBIT(m_gsViewImplFlags, kForbidDrawableRegenDraw);
956 }
957 
959 {
960  SETBIT(m_gsViewImplFlags, kForbidDrawableRegenDraw, val);
961 }
962 
964 {
965  return GETBIT(m_gsViewImplFlags, kAccumulateVpChanges);
966 }
967 
969 {
970  return GETBIT(m_gsViewImplFlags, kDepViewInside);
971 }
972 
974 {
975  SETBIT(m_gsViewImplFlags, kDepViewInside, val);
976 }
977 
979 {
980  return m_p3dClip.get();
981 }
982 
984 {
985  return !m_p3dClip.isNull();
986 }
987 
988 inline double OdGsViewImpl::actualFieldWidth() const
989 {
990  return m_fieldWidth;
991 }
992 
993 inline double OdGsViewImpl::actualFieldHeight() const
994 {
995  return m_fieldHeight;
996 }
997 
998 #include "TD_PackPop.h"
999 
1000 #endif // ODGSVIEWIMPL_INC
OdGsViewImpl::orbit
virtual void orbit(double xOrbit, double yOrbit)
OdGsViewImpl::position
virtual OdGePoint3d position() const
GETBIT
#define GETBIT(flags, bit)
Definition: OdaDefs.h:498
OdGsViewImpl::lineweightToPixels
int lineweightToPixels(OdDb::LineWeight lineweight) const
OdGsViewLocalId
Definition: GsViewLocalId.h:80
OdGsViewImpl::cloneView
virtual OdGsViewPtr cloneView(bool cloneViewParameters=true, bool cloneGeometry=false)
OdGsViewImpl::m_target
OdGePoint3d m_target
Definition: GsViewImpl.h:751
OdGsViewImpl::projectionMatrix
OdGeMatrix3d projectionMatrix(OdUInt32 nIncludes, OdGsOverlayId nOverlay=kGsMainOverlay) const
OdGeMatrix3d::setCoordSystem
OdGeMatrix3d & setCoordSystem(const OdGePoint3d &origin, const OdGeVector3d &xAxis, const OdGeVector3d &yAxis, const OdGeVector3d &zAxis)
OdGsViewImpl::m_pDevice
OdGsBaseVectorizeDevice * m_pDevice
Definition: GsViewImpl.h:799
OdGsViewImpl::zoomWindow
virtual void zoomWindow(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)
OdGsViewImpl::GsViewOverlayDataContainer::setSceneDeptInvalid
void setSceneDeptInvalid(OdGsOverlayId nOverlay, bool bSet) const
OdGsViewImpl::m_linetypeAlternateScaleMultiplier
double m_linetypeAlternateScaleMultiplier
Definition: GsViewImpl.h:761
OdGsViewImpl::focalLength
double focalLength() const
OdGsViewImpl::m_eyeVecLength
double m_eyeVecLength
Definition: GsViewImpl.h:748
OdGeVector3d
Definition: GeVector3d.h:54
OdGsViewImpl::isLayerVisible
bool isLayerVisible(OdDbStub *layerId) const
NULL
#define NULL
Definition: GsProperties.h:177
OdGsView::RenderMode
RenderMode
Definition: Gs.h:138
OdRxIterator
Definition: RxIterator.h:46
OdGsViewImpl::zoomExtents
virtual void zoomExtents(const OdGePoint3d &minPt, const OdGePoint3d &maxPt)
OdGsViewImpl::getViewport
virtual void getViewport(OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const
OdRxObjectPtr
Definition: RxObject.h:345
OdGsViewImpl::m_eyeToWorld
OdGeMatrix3d m_eyeToWorld
Definition: GsViewImpl.h:755
GsProperties.h
OdGsViewImpl::getViewport
virtual void getViewport(OdGsDCRectDouble &screenRec) const
OdGsViewImpl::safeCast
static OdGsViewImpl * safeCast(OdGsView *pView)
Definition: GsViewImpl.h:933
OdGsViewImpl::setEnableFrontClip
virtual void setEnableFrontClip(bool enable)
OdGsViewImpl::screenRectNorm
void screenRectNorm(OdGsDCRect &normalizedRect) const
OdUInt8
unsigned char OdUInt8
Definition: OdPlatformSettings.h:759
OdGsViewImpl::setModeOverride
bool setModeOverride(RenderMode mode)
OdGsViewImpl::m_screenInvertedY
bool m_screenInvertedY
Definition: GsViewImpl.h:739
OdGsViewImpl::m_pProperties
OdGsPropertiesPtr m_pProperties
Definition: GsViewImpl.h:772
GsBaseModule.h
OdGsViewImpl::viewport3dClipping
virtual const OdGiClipBoundary * viewport3dClipping(const OdGiAbstractClipBoundary **ppClipInfo=NULL) const
scale
scale
Definition: DimVarDefs.h:1684
OdGsBaseVectorizer
Definition: GsBaseVectorizer.h:112
OdGsView
Definition: Gs.h:133
OdGsViewImpl::getLinetypeGenerationCriteria
double getLinetypeGenerationCriteria() const
OdGsViewImpl::screenMatrix
virtual OdGeMatrix3d screenMatrix() const
OdGsViewImpl::viewportRotation
short viewportRotation() const
OdGsDCRectDouble
Definition: GsDefs.h:242
OdGsViewImpl::isPerspective
virtual bool isPerspective() const
OdGsViewImpl::clearColor
ClearColor clearColor() const
OdGsViewImpl::clearFrozenLayers
virtual void clearFrozenLayers()
OdGsViewImpl::hasViewport3dClipping
bool hasViewport3dClipping() const
Definition: GsViewImpl.h:983
OdGsViewImpl::initLights
virtual void initLights(OdRxIterator *pLightsIterator)
OdGsViewImpl::isViewRegenerated
virtual bool isViewRegenerated() const
OdGsViewImpl::isLegacyWireframeMode
virtual bool isLegacyWireframeMode() const
OdGsViewImpl::m_nrcPoints
OdGePoint2dArray m_nrcPoints
Definition: GsViewImpl.h:759
OdGsViewImpl::projectionMatrix
virtual OdGeMatrix3d projectionMatrix() const
OdGsViewImpl::isRotated
bool isRotated() const
Definition: GsViewImpl.h:902
OdGsViewImpl::lensLength
virtual double lensLength() const
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
OdGsViewImpl::OdGsViewImpl
OdGsViewImpl()
OdGsViewImpl::enableStereo
virtual void enableStereo(bool enabled)
OdGsViewImpl::visualStyle
virtual bool visualStyle(OdGiVisualStyle &vs) const
OdSharedPtr::isNull
bool isNull() const
Definition: SharedPtr.h:163
OdGsViewImpl::m_worldToEye
OdGeMatrix3d m_worldToEye
Definition: GsViewImpl.h:756
OdGsViewImpl::setCullingVolume
void setCullingVolume(OdGsCullingVolumePtr newVol)
OdGsViewImpl::worldToDeviceMatrix
OdGeMatrix3d worldToDeviceMatrix(OdGsOverlayId nOverlay) const
OdGsViewImpl::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdGsViewImpl)
OdGsViewImpl::m_pVisualStyleId
OdDbStub * m_pVisualStyleId
Definition: GsViewImpl.h:774
OdSharedPtr< OdGiClipBoundaryWithAbstractData >
OdGsViewImpl::m_pCullingVolume
OdGsCullingVolumePtr m_pCullingVolume
Definition: GsViewImpl.h:764
OdGsViewImpl::getViewportBorderProperties
virtual void getViewportBorderProperties(ODCOLORREF &color, int &width) const
OdGsViewImpl::isInInteractivity
virtual bool isInInteractivity() const
OdGsViewImpl::getStereoParameters
virtual void getStereoParameters(double &magnitude, double &parallax) const
OdGsView::ClearColor
ClearColor
Definition: Gs.h:920
OdGsViewImpl::visualStyle
virtual OdDbStub * visualStyle() const
OdGsDCRect
Definition: GsDefs.h:111
OdGsViewImpl::show
virtual void show()
SETBIT
#define SETBIT(flags, bit, value)
Definition: OdaDefs.h:497
OdGsUpdateExtents::getLineweight
OdDb::LineWeight getLineweight() const
Definition: GsDrawableHolder.h:80
OdGsViewImpl::clientViewInfo
virtual void clientViewInfo(OdGsClientViewInfo &viewInfo) const
OdGsViewImpl::ProjectionMatrixFlags
ProjectionMatrixFlags
Definition: GsViewImpl.h:349
OdGsViewImpl::getViewport
virtual void getViewport(OdGsDCRect &screenRect) const
OdGsDevice
Definition: Gs.h:1061
OdGsViewImpl::sceneDept
virtual bool sceneDept(double &zNear, double &zFar) const
OdGsNode
Definition: GsNode.h:60
OdGsViewImpl::getViewportPropertiesForType
OdGsPropertiesPtr getViewportPropertiesForType(OdGsProperties::PropertiesType type) const
OdGsViewImpl::setViewportBorderProperties
virtual void setViewportBorderProperties(ODCOLORREF color, int width)
OdGsCullingVolume::IntersectionStatus
IntersectionStatus
Definition: GsCullingVolume.h:300
OdGsBaseVectorizeDevice::kInvalid
@ kInvalid
Definition: GsBaseVectorizeDevice.h:94
OdGsViewImpl::m_lensLength
double m_lensLength
Definition: GsViewImpl.h:747
OdGsViewImpl::dcUpperRight
const OdGePoint2d & dcUpperRight() const
Definition: GsViewImpl.h:477
OdGsViewImpl::getRegenType
OdGiRegenType getRegenType() const
Definition: GsViewImpl.h:388
OdGsViewImpl::isLegacyHiddenMode
virtual bool isLegacyHiddenMode() const
OdGsDCPoint
Definition: GsDefs.h:53
OdGsViewImpl::GsViewOverlayData::GsViewOverlayData
GsViewOverlayData()
Definition: GsViewImpl.h:789
OdGsOverlayDataContainer
Definition: GsOverlayDefs.h:200
OdGsViewImpl::pointInView
virtual bool pointInView(const OdGePoint3d &pt) const
OdGsClientViewInfo::kDependentViewport
@ kDependentViewport
Definition: Gs.h:1024
OdGsViewImpl::cullingVolumeIntersectWithOpt
virtual bool cullingVolumeIntersectWithOpt(const OdGsCullingPrimitive &prim) const
OdArray< int, OdMemoryAllocator< int > >
OdGsViewImpl::eyeToWorldMatrix
const OdGeMatrix3d & eyeToWorldMatrix() const
Definition: GsViewImpl.h:913
OdGsViewImpl::m_borderWeight
int m_borderWeight
Definition: GsViewImpl.h:735
TD_PackPop.h
OdGsViewImpl::actualFieldWidth
double actualFieldWidth() const
Definition: GsViewImpl.h:988
OdGsViewImpl::eyeToScreenMatrix
OdGeMatrix3d eyeToScreenMatrix(OdGsOverlayId nOverlay=kGsMainOverlay) const
OdGsViewImpl::roll
virtual void roll(double rollAngle)
OdGsViewImpl::setViewportClipRegion
virtual void setViewportClipRegion(int numContours, int const *numVertices, OdGsDCPoint const *vertices)
OdGsViewImpl::flush
virtual void flush()
OdGsViewImpl::m_linetypeScaleMultiplier
double m_linetypeScaleMultiplier
Definition: GsViewImpl.h:760
OdGiClipBoundaryWithAbstractData
Definition: GiAbstractClipBoundary.h:256
GsCullingVolume.h
OdGsViewImpl::isStereoEnabled
virtual bool isStereoEnabled() const
OdGsViewImpl::m_dInteractivityFrameRate
double m_dInteractivityFrameRate
Definition: GsViewImpl.h:817
OdGsViewImpl::extentsInView
virtual bool extentsInView(const OdGePoint3d &minPt, const OdGePoint3d &maxPt) const
OdGsViewImpl::baseDevice
OdGsBaseVectorizeDevice * baseDevice()
Definition: GsViewImpl.h:249
OdGsViewImpl::fieldHeight
virtual double fieldHeight() const
OdGsViewImpl::m_nCachedDrawables
int m_nCachedDrawables
Definition: GsViewImpl.h:769
OdGsViewImpl::linetypeAlternateScaleMultiplier
double linetypeAlternateScaleMultiplier() const
OdGsViewImpl::isVisible
virtual bool isVisible()
DrawableHolder
Definition: GsDrawableHolder.h:139
OdGsViewImpl::dolly
virtual void dolly(double xDolly, double yDolly, double zDolly)
OdGsViewImpl::getModel
virtual OdGsModel * getModel(const OdGiDrawable *pDrawable) const
OdGsViewImpl::onWorldToEyeChanged
void onWorldToEyeChanged()
OdDb::kCrossing
@ kCrossing
Definition: DbTableStyle.h:70
OdGsViewImpl::viewParameters
virtual void viewParameters(OdGsView *pView) const
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGeMatrix3d
Definition: GeMatrix3d.h:73
kGsMainOverlay
@ kGsMainOverlay
Definition: GsOverlayDefs.h:41
mask
GLenum GLint GLuint mask
Definition: gles2_ext.h:262
OdGsViewImpl::objectToDeviceMatrix
virtual OdGeMatrix3d objectToDeviceMatrix() const
OdGsViewImpl::m_backClipDist
double m_backClipDist
Definition: GsViewImpl.h:737
OdGsViewImpl::GsViewOverlayDataContainer::setWorldToDeviceInvalid
void setWorldToDeviceInvalid()
OdGsViewImpl::frozenLayers
OdUInt32 frozenLayers() const
Definition: GsViewImpl.h:299
OdGsViewImpl::propagateLayersChanges
virtual void propagateLayersChanges()
OdGsViewImpl::isSupportLegacyHiddenMode
virtual bool isSupportLegacyHiddenMode() const
OdGsViewImpl::worldToDeviceMatrix
virtual OdGeMatrix3d worldToDeviceMatrix() const
OdGsViewImpl::m_renderMode
RenderMode m_renderMode
Definition: GsViewImpl.h:810
OdGsViewImpl::getDeviation
virtual double getDeviation(const OdGiDeviationType deviationType, const OdGePoint3d &pointOnCurve, bool bRecalculate=false) const
OdGiClipBoundary
Definition: GiClipBoundary.h:41
OdGsViewImpl::m_dcScreenMin
OdGePoint2d m_dcScreenMin
Definition: GsViewImpl.h:740
OdGsViewImpl::setVisualStyle
virtual void setVisualStyle(OdDbStub *visualStyleId)
OdGsViewImpl::m_frozenLayersDiff
OdDbStubPtrArray m_frozenLayersDiff
Definition: GsViewImpl.h:731
OdGsViewImpl::isCullingVolumeInitialized
virtual bool isCullingVolumeInitialized() const
OdGsViewImpl::lensLengthToFOV
static double lensLengthToFOV(double lensLength)
OdGsViewImpl::saveClientViewState
virtual bool saveClientViewState(OdGsFiler *pFiler) const
OdGsViewImpl::cullingVolumeTransformBy
virtual void cullingVolumeTransformBy(const OdGeMatrix3d &xfm)
OdGsViewImpl::cachedDrawables
int cachedDrawables() const
Definition: GsViewImpl.h:409
GiAbstractClipBoundary.h
OdGsViewImpl::isValidViewportId
bool isValidViewportId(const OdUInt32 vpId) const
OdGsView::SelectionMode
SelectionMode
Definition: Gs.h:157
OdGsViewImpl::dolly
virtual void dolly(const OdGeVector3d &dollyVector)
OdGsViewImpl::background
virtual OdDbStub * background() const
OdGsViewImpl::viewportClipRegion
virtual void viewportClipRegion(OdIntArray &counts, OdGsDCPointArray &dcPts) const
OdGsViewImpl::m_borderColor
ODCOLORREF m_borderColor
Definition: GsViewImpl.h:734
OdGsViewImpl::perspectiveMatrix
OdGeMatrix3d perspectiveMatrix() const
OdGsViewImpl::calcDeviation
double calcDeviation(const OdGiDeviationType type, const OdGePoint3d &pt) const
OdGsViewImpl::viewExtents
virtual bool viewExtents(OdGeBoundBlock3d &extents) const =0
OdGsViewImpl::viewport3dClippingObject
OdGiClipBoundaryWithAbstractData * viewport3dClippingObject()
Definition: GsViewImpl.h:978
OdGsViewImpl::m_pBackgroundId
OdDbStub * m_pBackgroundId
Definition: GsViewImpl.h:773
OdGsViewImpl::setLensLength
virtual void setLensLength(double lensLength)
OdGsViewImpl::setBackground
virtual void setBackground(OdDbStub *backgroundId)
OdGsView::invalidate
virtual void invalidate()=0
OdGsViewImpl::unrotatedFieldHeight
double unrotatedFieldHeight() const
OdGsViewImpl::defaultLightingEnabled
bool defaultLightingEnabled() const
Definition: GsViewImpl.h:887
OdGsViewImpl::setViewportClipRegion
virtual void setViewportClipRegion(int numContours, const int *numVertices, const OdGePoint2d *vertices)
OdGsViewImpl::init
virtual void init(OdGsBaseVectorizeDevice *pDevice, const OdGsClientViewInfo *pViewInfo=0, bool enableLayerVisibilityPerView=false)
OdGsViewImpl::setAlternateLinetypeScaleMultiplier
virtual void setAlternateLinetypeScaleMultiplier(double linetypeAlternateScaleMultiplier)
OdSmartPtr
Definition: SmartPtr.h:58
OdGsViewImpl::linetypeScaleMultiplier
virtual double linetypeScaleMultiplier() const
OdGsViewImpl::invalidateCachedViewportGeometry
virtual void invalidateCachedViewportGeometry()
OdGsViewImpl::dcScreenMin
const OdGePoint2d & dcScreenMin() const
Definition: GsViewImpl.h:474
OdGsViewImpl::eyeVector
const OdGeVector3d & eyeVector() const
Definition: GsViewImpl.h:395
OdGsViewImpl::setLineweightToDcScale
virtual void setLineweightToDcScale(double scale)
OdGePoint3d
Definition: GePoint3d.h:55
OdGsViewImpl::partialUpdateExtentsEnlargement
virtual int partialUpdateExtentsEnlargement() const
OdGiVisualStyle
Definition: GiVisualStyle.h:996
OdGiPathNode
Definition: GiPathNode.h:36
OdGsViewImpl::worldToEyeMatrix
const OdGeMatrix3d & worldToEyeMatrix() const
Definition: GsViewImpl.h:923
OdGsViewImpl::isSupportPlotStyles
bool isSupportPlotStyles() const
Definition: GsViewImpl.h:857
OdGsUpdateExtents::getExtents
const OdGeExtents3d & getExtents() const
Definition: GsDrawableHolder.h:54
OdGsClientViewInfo::kDependentGeometry
@ kDependentGeometry
Definition: Gs.h:1025
OdGsViewImpl::getFrozenLayersDiff
virtual const OdDbStubPtrArray & getFrozenLayersDiff() const
OdGsViewImpl::saveViewState
virtual bool saveViewState(OdGsFiler *pFiler) const
OdGiAbstractClipBoundary
Definition: GiAbstractClipBoundary.h:39
OdGsViewImpl::mode
virtual RenderMode mode() const
OdGsViewImpl::lineweightToDcScale
virtual double lineweightToDcScale() const
OdGsViewImpl::setVisualStyle
virtual void setVisualStyle(const OdGiVisualStyle &visualStyle)
OdGsViewImpl::setLegacyWireframeMode
virtual void setLegacyWireframeMode(bool bSet)
GePoint3d.h
OdGsViewImpl::endInteractivity
virtual void endInteractivity()
OdGsViewImpl::m_overlayData
GsViewOverlayDataContainer m_overlayData
Definition: GsViewImpl.h:797
OdGsViewImpl::m_gsViewImplFlags
OdUInt32 m_gsViewImplFlags
Definition: GsViewImpl.h:733
OdArray::size
size_type size() const
Definition: OdArray.h:893
OdGsView::DefaultLightingType
DefaultLightingType
Definition: Gs.h:168
OdGsViewImpl::~OdGsViewImpl
~OdGsViewImpl()
OdGsClientViewInfo::viewportFlags
OdUInt32 viewportFlags
Definition: Gs.h:1034
OdGsViewImpl::isRegenOnDrawForbidden
bool isRegenOnDrawForbidden() const
Definition: GsViewImpl.h:953
OdGsViewImpl::setContextualColors
void setContextualColors(OdGiContextualColors *pColors)
Definition: GsViewImpl.h:851
OdGsViewImpl::interactivityFrameRate
virtual double interactivityFrameRate() const
OdGsViewImpl::setView
virtual void setView(const OdGePoint3d &position, const OdGePoint3d &target, const OdGeVector3d &upVector, double fieldWidth, double fieldHeight, Projection projection=kParallel)
OdGsViewImpl::m_dcLowerLeft
OdGePoint2d m_dcLowerLeft
Definition: GsViewImpl.h:742
Gs.h
OdGsViewImpl::setLegacyHiddenMode
virtual void setLegacyHiddenMode(bool bSet)
OdGiDrawable
Definition: GiDrawable.h:49
OdGsViewImpl::isDependentGeometryView
bool isDependentGeometryView() const
Definition: GsViewImpl.h:831
OdGsViewImpl::m_xVector
OdGeVector3d m_xVector
Definition: GsViewImpl.h:754
OdGsViewImpl::getLinetypeScaleMultiplier
double getLinetypeScaleMultiplier() const
OdGsViewImpl
Definition: GsViewImpl.h:58
OdGsViewImpl::pointInViewport
virtual bool pointInViewport(const OdGePoint2d &screenPoint) const
OdGsViewImpl::setViewportBorderVisibility
virtual void setViewportBorderVisibility(bool visible)
OdSmartPtr::get
const T * get() const
Definition: SmartPtr.h:326
OdGsViewImpl::m_p3dClip
OdSharedPtr< OdGiClipBoundaryWithAbstractData > m_p3dClip
Definition: GsViewImpl.h:765
OdGsViewImpl::m_mtExtents
OdMutex m_mtExtents
Definition: GsViewImpl.h:770
OdGsViewImpl::isViewportOnScreen
bool isViewportOnScreen() const
OdGsViewImpl::invalidate
virtual void invalidate(const OdGsDCRect &rect)
OdGsViewImpl::doInversePerspectivePt
bool doInversePerspectivePt(OdGePoint3d &point) const
OdGsViewImpl::GsViewOverlayData::m_extents
OdGeExtents3d m_extents
Definition: GsViewImpl.h:788
OdGsViewImpl::enableDefaultLighting
virtual void enableDefaultLighting(bool bEnable, DefaultLightingType lightType=kTwoLights)
OdMutex.h
OdGsViewImpl::GsViewOverlayData::m_nOverlayFlags
OdUInt32 m_nOverlayFlags
Definition: GsViewImpl.h:786
OdGsViewImpl::contextualColors
const OdGiContextualColors * contextualColors() const
Definition: GsViewImpl.h:846
OdGsViewImpl::drawablesFilterFunction
OdIntPtr drawablesFilterFunction() const
OdGsViewImpl::m_nrcCounts
OdIntArray m_nrcCounts
Definition: GsViewImpl.h:758
OdGsViewImpl::isHelperView
bool isHelperView() const
Definition: GsViewImpl.h:836
OdGsViewImpl::lensLengthFromFOV
static double lensLengthFromFOV(double fovAngle)
SharedPtr.h
OdGsViewImpl::propagateInvalidVpFlag
virtual void propagateInvalidVpFlag()
width
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
OdGsViewImpl::getViewportObjectId
OdDbStub * getViewportObjectId() const
Definition: GsViewImpl.h:244
GiCommonDraw.h
OdGsViewImpl::GsViewOverlayData
Definition: GsViewImpl.h:780
OdGsViewImpl::m_regenerationType
OdGiRegenType m_regenerationType
Definition: GsViewImpl.h:805
OdGsViewImpl::m_fieldHeight
double m_fieldHeight
Definition: GsViewImpl.h:746
OdGsViewImpl::dcLowerLeft
const OdGePoint2d & dcLowerLeft() const
Definition: GsViewImpl.h:476
OdGsViewImpl::setInversion
void setInversion(bool invertedX, bool invertedY)
OdGsViewImpl::m_frozenLayers
OdDbStubPtrArray m_frozenLayers
Definition: GsViewImpl.h:814
GsDrawableHolder.h
OdGsViewImpl::initDeviation
void initDeviation()
OdGsViewImpl::GsViewOverlayData::OverlayFlags
OverlayFlags
Definition: GsViewImpl.h:782
OdGsViewImpl::getRootNode
OdGsNode * getRootNode(DrawableHolder &holder)
OdGsViewImpl::m_screenInvertedX
bool m_screenInvertedX
Definition: GsViewImpl.h:738
OdGsViewImpl::viewportDcCorners
void viewportDcCorners(OdGePoint2d &lower_left, OdGePoint2d &upper_right) const
TD_PackPush.h
OdGsViewImpl::cullingVolume
OdGsCullingVolumePtr cullingVolume() const
OdGsViewImpl::doPerspectivePt
bool doPerspectivePt(OdGePoint3d &point) const
OdGsViewImpl::m_fieldWidth
double m_fieldWidth
Definition: GsViewImpl.h:745
OdGsViewImpl::setLineweightEnum
virtual void setLineweightEnum(int numLineweights, const OdUInt8 *lineweights)
OdGsViewImpl::getLweightsEnum
const OdUInt8Array & getLweightsEnum() const
Definition: GsViewImpl.h:472
OdGeMatrix3d::inverse
OdGeMatrix3d inverse() const
OdGsViewImpl::setPlotTransparency
virtual void setPlotTransparency(bool bSet)
OdGsViewImpl::screenRect
void screenRect(OdGsDCPoint &lowerLeft, OdGsDCPoint &upperRight) const
GeVector3d.h
OdGsViewImpl::isSupportLegacyWireframeMode
virtual bool isSupportLegacyWireframeMode() const
OdGsViewImpl::m_viewInfo
OdGsClientViewInfo m_viewInfo
Definition: GsViewImpl.h:800
OdDb::kLnWt000
@ kLnWt000
Definition: OdaDefs.h:383
OdGsViewImpl::m_pGsReserved
OdRxObjectPtr m_pGsReserved
Definition: GsViewImpl.h:807
OdGsBaseVectorizeDevice
Definition: GsBaseVectorizeDevice.h:69
OdGsView::k2DOptimized
@ k2DOptimized
Definition: Gs.h:140
OdGsViewImpl::setViewport
virtual void setViewport(const OdGsDCRectDouble &screenRec)
OdGsViewImpl::viewportClipRegion
virtual void viewportClipRegion(OdIntArray &counts, OdGePoint2dArray &vertices) const
OdGsViewImpl::defaultLightingType
DefaultLightingType defaultLightingType() const
Definition: GsViewImpl.h:892
OdGsViewImpl::updateViewProps
virtual void updateViewProps(bool bFullUpdate=true)
OdGsViewImpl::m_pModule
OdGsBaseModulePtr m_pModule
Definition: GsViewImpl.h:729
OdGsViewImpl::zoom
virtual void zoom(double zoomFactor)
OdGiDeviationType
OdGiDeviationType
Definition: GiCommonDraw.h:64
OdGeBoundBlock3d
Definition: GeBoundBlock3d.h:43
OdGsCullingPrimitive
Definition: GsCullingVolume.h:51
OdGsViewImpl::isPlotTransparency
virtual bool isPlotTransparency() const
OdGsViewImpl::getModelList
virtual OdGsModelArray getModelList() const
OdGsViewImpl::m_lweights
OdUInt8Array m_lweights
Definition: GsViewImpl.h:763
OdGsViewImpl::sceneDept
virtual bool sceneDept(double &zNear, double &zFar, OdGsOverlayId nOverlay) const
OdGsViewImpl::baseDevice
const OdGsBaseVectorizeDevice * baseDevice() const
Definition: GsViewImpl.h:250
OdGsViewImpl::isAccumulateVpChanges
bool isAccumulateVpChanges() const
Definition: GsViewImpl.h:963
OdGsViewImpl::exceededBounds
virtual bool exceededBounds()
OdGsViewImpl::initCullingVolume
virtual void initCullingVolume()
OdGsOverlayId
OdGsOverlayId
Definition: GsOverlayDefs.h:40
OdGsViewImpl::clearLinetypeCache
virtual void clearLinetypeCache()=0
OdGsViewImpl::viewportId
OdUInt32 viewportId() const
Definition: GsViewImpl.h:240
OdGsViewImpl::setViewport3dClipping
virtual void setViewport3dClipping(const OdGiClipBoundary *pBoundary, const OdGiAbstractClipBoundary *pClipInfo=NULL)
OdGsViewImpl::fieldWidth
virtual double fieldWidth() const
OdGsViewImpl::GsViewOverlayDataContainer
Definition: GsViewImpl.h:792
OdIntPtr
ptrdiff_t OdIntPtr
Definition: OdPlatformSettings.h:884
OdGsViewImpl::setClearColor
virtual void setClearColor(ClearColor color)
OdGsViewImpl::m_dcScreenMax
OdGePoint2d m_dcScreenMax
Definition: GsViewImpl.h:741
OdGsViewImpl::setEnableBackClip
virtual void setEnableBackClip(bool enable)
OdGsViewImpl::unregisterOverlay
void unregisterOverlay(const OdGsModel *pModel)
OdGsBaseModel
Definition: GsBaseModel.h:118
OdGsViewImpl::m_frontClipDist
double m_frontClipDist
Definition: GsViewImpl.h:736
OdGsViewImpl::isValid
virtual bool isValid() const
OdGsViewImpl::isViewportBorderVisible
virtual bool isViewportBorderVisible() const
OdGsViewImpl::pan
virtual void pan(double xPan, double yPan)
OdGsViewImpl::setMode
virtual void setMode(RenderMode mode)
OdGsViewImpl::xVector
const OdGeVector3d & xVector() const
Definition: GsViewImpl.h:396
OdGsClientViewInfo
Definition: Gs.h:1021
OdGsViewImpl::isCompletelyVisible
bool isCompletelyVisible() const
Definition: GsViewImpl.h:968
UInt8Array.h
OdGsViewImpl::frozenLayers
void frozenLayers(OdDbStubPtrArray &frozenLayers) const
Definition: GsViewImpl.h:310
OdGsViewImpl::m_giViewportId
OdUInt32 m_giViewportId
Definition: GsViewImpl.h:801
OdGeExtents3d
Definition: GeExtents3d.h:45
OdGsViewImpl::m_drawables
DrawableHolderArray m_drawables
Definition: GsViewImpl.h:812
GS_TOOLKIT_EXPORT
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
OdGsViewImpl::setCheckValid
void setCheckValid(bool bValue) const
Definition: GsViewImpl.h:867
OdDb::LineWeight
LineWeight
Definition: OdaDefs.h:382
GsOverlayDefs.h
OdGsViewImpl::isInvalid
bool isInvalid() const
Definition: GsViewImpl.h:872
OdGsViewImpl::thawLayer
virtual void thawLayer(OdDbStub *layerID)
OdGsViewImpl::getGsModulePtr
const OdGsBaseModule * getGsModulePtr() const
Definition: GsViewImpl.h:841
OdGsViewImpl::objectToDeviceMatrix
OdGeMatrix3d objectToDeviceMatrix(OdGsOverlayId nOverlay) const
OdGsViewImpl::updateViewportProperties
bool updateViewportProperties(OdUInt32 incFlags)
OdGsViewImpl::rotationMatrix
const OdGeMatrix3d & rotationMatrix() const
OdGsViewImpl::setStereoParameters
virtual void setStereoParameters(double magnitude, double parallax)
OdGsClientViewInfo::kHelperView
@ kHelperView
Definition: Gs.h:1026
OdGsViewImpl::viewingMatrix
virtual OdGeMatrix3d viewingMatrix() const
OdGsViewImpl::hasLweights
bool hasLweights() const
Definition: GsViewImpl.h:471
OdGsViewImpl::setViewport
virtual void setViewport(const OdGsDCRect &screenRect)
OdGsViewImpl::isDependentViewportView
bool isDependentViewportView() const
Definition: GsViewImpl.h:826
OdGsViewImpl::target
virtual OdGePoint3d target() const
ODCOLORREF
#define ODCOLORREF
Definition: OdPlatform.h:883
OdGsViewImpl::getUpVector
const OdGeVector3d & getUpVector() const
Definition: GsViewImpl.h:397
OdGsViewImpl::m_bInInteractivityMode
bool m_bInInteractivityMode
Definition: GsViewImpl.h:816
OdGsViewImpl::cullingVolumeIntersectWith
virtual OdGsCullingVolume::IntersectionStatus cullingVolumeIntersectWith(const OdGsCullingPrimitive &prim) const
OdGsViewImpl::setPerspectiveEnabled
void setPerspectiveEnabled(bool bValue) const
Definition: GsViewImpl.h:882
OdGsProperties::PropertiesType
PropertiesType
Definition: GsProperties.h:114
OdGsUpdateExtents
Definition: GsDrawableHolder.h:37
OdGsViewImpl::m_lastFrozenLayers
OdDbStubPtrArray m_lastFrozenLayers
Definition: GsViewImpl.h:730
OdGsViewImpl::windowAspect
double windowAspect() const
OdGsViewImpl::select
virtual void select(const OdGsDCPoint *points, int numPoints, OdGsSelectionReactor *pReactor, SelectionMode mode=kCrossing)
OdGsViewImpl::hide
virtual void hide()
OdGsViewImpl::device
virtual OdGsDevice * device() const
OdGsViewImpl::dcScreenMax
const OdGePoint2d & dcScreenMax() const
Definition: GsViewImpl.h:475
OdGsViewImpl::invalidate
virtual void invalidate(const OdGeExtents3d &worldExt, const OdGsModel *pModel, OdDb::LineWeight extendByLineweight=OdDb::kLnWt000)
OdGsViewImpl::getSnapShot
virtual void getSnapShot(OdGiRasterImagePtr &pImage, const OdGsDCRect &region)
OdGsViewImpl::invalidRects
OdGsDCRectArray invalidRects(OdGsOverlayId nOverlay=kGsMainOverlay) const
OdGiBaseVectorizerImpl
Definition: GiBaseVectorizerImpl.h:50
OdGsViewImpl::setRegenOnDrawForbidden
void setRegenOnDrawForbidden(bool val)
Definition: GsViewImpl.h:958
OdGsViewImpl::eraseAll
virtual void eraseAll()
OdGsView::Projection
Projection
Definition: Gs.h:151
GsViewLocalId.h
OdGsViewImpl::m_eyeVector
OdGeVector3d m_eyeVector
Definition: GsViewImpl.h:753
OdGsViewImpl::getViewportPropertiesRoot
OdGsPropertiesPtr getViewportPropertiesRoot() const
OdGsViewImpl::setFrontClip
virtual void setFrontClip(double distance)
DbStubPtrArray.h
OdGsViewImpl::drawableAt
OdGiDrawablePtr drawableAt(DrawableHolder &drawableHolder)
GeMatrix3d.h
OdGiRegenType
OdGiRegenType
Definition: GiCommonDraw.h:50
OdGsViewImpl::isBackClipped
virtual bool isBackClipped() const
OdGsModel
Definition: GsModel.h:77
OdGsViewImpl::m_pViewportTrans
OdGiDrawablePtr m_pViewportTrans
Definition: GsViewImpl.h:775
OdGsViewImpl::upVector
virtual OdGeVector3d upVector() const
OdGsViewImpl::m_defaultLightingType
DefaultLightingType m_defaultLightingType
Definition: GsViewImpl.h:776
OdGsViewImpl::loadClientViewState
virtual bool loadClientViewState(OdGsFiler *pFiler)
OdGiContextualColors
Definition: GiContextualColors.h:41
OdGsViewImpl::setSnapping
void setSnapping(bool val)
Definition: GsViewImpl.h:948
OdGsBaseModule
Definition: GsBaseModule.h:41
OdSharedPtr::get
T * get()
Definition: SharedPtr.h:134
OdGsFiler
Definition: GsFiler.h:63
OdGsViewImpl::GsViewOverlayData::m_worldToDeviceMatrix
OdGeMatrix3d m_worldToDeviceMatrix
Definition: GsViewImpl.h:787
OdGsViewImpl::isSnapping
bool isSnapping() const
Definition: GsViewImpl.h:943
OdGsViewImpl::loadViewState
virtual bool loadViewState(OdGsFiler *pFiler)
OdGsViewImpl::setInvalid
void setInvalid(bool bValue) const
Definition: GsViewImpl.h:877
OdGsViewImpl::frontClip
virtual double frontClip() const
OdGsViewImpl::select
virtual void select(const OdGePoint2d *aPtDc, int numPoints, OdGsSelectionReactor *pReactor, SelectionMode mode=kCrossing)=0
OdGsViewImpl::unrotatedFieldWidth
double unrotatedFieldWidth() const
OdGsViewImpl::isFrontClipped
virtual bool isFrontClipped() const
OdGsViewImpl::freezeLayer
virtual void freezeLayer(OdDbStub *layerID)
OdGsViewImpl::invalidateCachedViewportGeometry
void invalidateCachedViewportGeometry(OdUInt32 mask)
OdGsViewImpl::usesDept
virtual bool usesDept(double *pMinDeptSupported=0, double *pMaxDeptSupported=0) const
OdGsViewImpl::invalidate
virtual void invalidate()
OdGsViewImpl::annotationScaleId
OdDbStub * annotationScaleId() const
OdGsViewImpl::registerOverlay
void registerOverlay(const OdGsModel *pModel)
OdMutex
Definition: OdMutex.h:50
OdGsViewImpl::m_upVector
OdGeVector3d m_upVector
Definition: GsViewImpl.h:752
OdGsViewImpl::add
virtual bool add(OdGiDrawable *sceneGraph, OdGsModel *model)
OdGsViewImpl::beginInteractivity
virtual void beginInteractivity(double frameRateInHz)
OdGsViewImpl::lineweightToPixels
double lineweightToPixels(double lineweight) const
OdGsViewImpl::actualFieldHeight
double actualFieldHeight() const
Definition: GsViewImpl.h:993
OdGsViewImpl::getNumPixelsInUnitSquare
virtual void getNumPixelsInUnitSquare(const OdGePoint3d &givenWorldpt, OdGePoint2d &pixelArea, bool includePerspective=true) const
OdGsViewImpl::isNonRectClipped
bool isNonRectClipped() const
Definition: GsViewImpl.h:897
OdGsViewImpl::m_lineweightToDcScale
double m_lineweightToDcScale
Definition: GsViewImpl.h:762
OdGsViewImpl::screenRect
void screenRect(OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const
OdGsViewImpl::invalidateRegion
void invalidateRegion(const OdGiPathNode &path)
OdGsViewImpl::m_position
OdGePoint3d m_position
Definition: GsViewImpl.h:750
OdGsViewImpl::setLinetypeScaleMultiplier
virtual void setLinetypeScaleMultiplier(double linetypeScaleMultiplier)
OdGsClientViewInfo::contextColors
OdGiContextualColorsPtr contextColors
Definition: Gs.h:1033
OdGsViewImpl::erase
virtual bool erase(OdGiDrawable *sceneGraph)
OdGsSelectionReactor
Definition: GsSelectionReactor.h:128
GsDCRectArray.h
OdGsViewImpl::setBackClip
virtual void setBackClip(double distance)
OdGsViewImpl::isCheckValid
bool isCheckValid() const
Definition: GsViewImpl.h:862
OdGsViewImpl::m_dcUpperRight
OdGePoint2d m_dcUpperRight
Definition: GsViewImpl.h:743
OdGsViewImpl::backClip
virtual double backClip() const
OdGsViewImpl::onFinalRelease
void onFinalRelease()
OdGsViewImpl::setViewport
virtual void setViewport(const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)
OdGsViewImpl::setCompletelyVisible
void setCompletelyVisible(bool val)
Definition: GsViewImpl.h:973
OdGePoint2d
Definition: GePoint2d.h:60