CFx SDK Documentation  2020SP3
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__
FIRSTDLL_EXPORT
#define FIRSTDLL_EXPORT
Definition: RootExport.h:39
OdGeVector3d
Definition: GeVector3d.h:54
NULL
#define NULL
Definition: GsProperties.h:177
OdGiViewport::getCameraUpVector
virtual OdGeVector3d getCameraUpVector() const =0
OdGiViewport::getCameraTarget
virtual OdGePoint3d getCameraTarget() const =0
OdGiViewport
Definition: GiViewport.h:51
OdRxObject
Definition: RxObject.h:564
OdGiViewport::getCameraLocation
virtual OdGePoint3d getCameraLocation() const =0
TD_PackPop.h
RxObject.h
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdInt16
short OdInt16
Definition: OdPlatformSettings.h:756
OdGiViewport::layerVisible
virtual bool layerVisible(OdDbStub *layerId) const =0
OdGiViewport::doInversePerspective
virtual bool doInversePerspective(OdGePoint3d &point) const =0
OdGiViewport::linetypeGenerationCriteria
virtual double linetypeGenerationCriteria() const =0
OdGiViewport::getEyeToWorldTransform
virtual OdGeMatrix3d getEyeToWorldTransform() const =0
OdGePoint3d
Definition: GePoint3d.h:55
OdGiViewport::acadWindowId
virtual OdInt16 acadWindowId() const =0
OdGiViewport::isPerspective
virtual bool isPerspective() const =0
TD_PackPush.h
OdGiViewport::getWorldToEyeTransform
virtual OdGeMatrix3d getWorldToEyeTransform() const =0
OdGiViewport::getViewportDcCorners
virtual void getViewportDcCorners(OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const =0
OdGiViewport::getFrontAndBackClipValues
virtual bool getFrontAndBackClipValues(bool &clipFront, bool &clipBack, double &front, double &back) const =0
OdGiViewport::contextualColors
virtual const OdGiContextualColors * contextualColors() const
Definition: GiViewport.h:251
OdGiViewport::doPerspective
virtual bool doPerspective(OdGePoint3d &point) const =0
OdGiViewport::getNumPixelsInUnitSquare
virtual void getNumPixelsInUnitSquare(const OdGePoint3d &point, OdGePoint2d &pixelDensity, bool bUsePerspective=true) const =0
OdGiViewport::getModelToEyeTransform
virtual OdGeMatrix3d getModelToEyeTransform() const =0
OdGiContextualColors
Definition: GiContextualColors.h:41
OdGiViewport::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdGiViewport)
OdGiViewport::linetypeScaleMultiplier
virtual double linetypeScaleMultiplier() const =0
OdGiViewport::viewDir
virtual OdGeVector3d viewDir() const =0
OdGiViewport::viewportId
virtual OdUInt32 viewportId() const =0
OdGiViewport::getEyeToModelTransform
virtual OdGeMatrix3d getEyeToModelTransform() const =0
OdGePoint2d
Definition: GePoint2d.h:60