CFx SDK Documentation  2023 SP0
GiViewport.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 __GI_VIEWPORT__
25 #define __GI_VIEWPORT__
26 
27 #include "RxObject.h"
28 
29 class OdGePoint2d;
30 class OdGePoint3d;
31 class OdGeVector3d;
32 class OdDbStub;
33 class OdGeMatrix3d;
35 
36 #include "TD_PackPush.h"
37 
51 {
52 public:
54 
61  virtual OdGeMatrix3d getModelToEyeTransform() const = 0;
62 
69  virtual OdGeMatrix3d getEyeToModelTransform() const = 0;
70 
77  virtual OdGeMatrix3d getWorldToEyeTransform() const = 0;
78 
85  virtual OdGeMatrix3d getEyeToWorldTransform() const = 0;
86 
90  virtual bool isPerspective() const = 0;
91 
106  virtual bool doPerspective(
107  OdGePoint3d& point) const = 0;
108 
123  virtual bool doInversePerspective(
124  OdGePoint3d& point) const = 0;
125 
140  const OdGePoint3d& point,
141  OdGePoint2d& pixelDensity,
142  bool bUsePerspective = true) const = 0;
143 
147  virtual OdGePoint3d getCameraLocation() const = 0;
148 
152  virtual OdGePoint3d getCameraTarget() const = 0;
153 
157  virtual OdGeVector3d getCameraUpVector() const = 0;
158 
162  virtual OdGeVector3d viewDir() const = 0;
163 
170  virtual OdUInt32 viewportId() const = 0;
171 
178  virtual OdInt16 acadWindowId() const = 0;
179 
194  virtual void getViewportDcCorners(
195  OdGePoint2d& lowerLeft,
196  OdGePoint2d& upperRight) const = 0;
197 
218  bool& clipFront,
219  bool& clipBack,
220  double& front,
221  double& back) const = 0;
222 
226  virtual double linetypeScaleMultiplier() const = 0;
227 
235  virtual double linetypeGenerationCriteria() const = 0;
236 
242  virtual bool layerVisible(
243  OdDbStub* layerId) const = 0;
244 
251  virtual const OdGiContextualColors *contextualColors() const { return NULL; }
252 };
253 
254 #include "TD_PackPop.h"
255 
256 #endif // __GI_VIEWPORT__
#define NULL
Definition: GsProperties.h:177
unsigned int OdUInt32
short OdInt16
#define FIRSTDLL_EXPORT
Definition: RootExport.h:39
virtual OdGeMatrix3d getEyeToModelTransform() const =0
virtual bool isPerspective() const =0
virtual void getViewportDcCorners(OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const =0
virtual bool doPerspective(OdGePoint3d &point) const =0
virtual OdUInt32 viewportId() const =0
virtual OdGePoint3d getCameraTarget() const =0
virtual OdGeMatrix3d getModelToEyeTransform() const =0
virtual double linetypeScaleMultiplier() const =0
virtual double linetypeGenerationCriteria() const =0
virtual bool getFrontAndBackClipValues(bool &clipFront, bool &clipBack, double &front, double &back) const =0
virtual OdInt16 acadWindowId() const =0
virtual OdGePoint3d getCameraLocation() const =0
virtual const OdGiContextualColors * contextualColors() const
Definition: GiViewport.h:251
virtual OdGeVector3d viewDir() const =0
virtual bool layerVisible(OdDbStub *layerId) const =0
virtual OdGeMatrix3d getWorldToEyeTransform() const =0
virtual OdGeMatrix3d getEyeToWorldTransform() const =0
virtual OdGeVector3d getCameraUpVector() const =0
ODRX_DECLARE_MEMBERS(OdGiViewport)
virtual void getNumPixelsInUnitSquare(const OdGePoint3d &point, OdGePoint2d &pixelDensity, bool bUsePerspective=true) const =0
virtual bool doInversePerspective(OdGePoint3d &point) const =0