CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GiViewport.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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
29class OdGePoint2d;
30class OdGePoint3d;
31class OdGeVector3d;
32class OdDbStub;
33class OdGeMatrix3d;
35
36#include "TD_PackPush.h"
37
51{
52public:
54
62
70
78
86
92 virtual bool isPerspective() const = 0;
93
107 virtual bool doPerspective(
108 OdGePoint3d& point) const = 0;
109
126 OdGePoint3d& point) const = 0;
127
142 const OdGePoint3d& point,
143 OdGePoint2d& pixelDensity,
144 bool bUsePerspective = true) const = 0;
145
149 virtual OdGePoint3d getCameraLocation() const = 0;
150
154 virtual OdGePoint3d getCameraTarget() const = 0;
155
159 virtual OdGeVector3d getCameraUpVector() const = 0;
160
164 virtual OdGeVector3d viewDir() const = 0;
165
172 virtual OdUInt32 viewportId() const = 0;
173
180 virtual OdInt16 acadWindowId() const = 0;
181
197 OdGePoint2d& lowerLeft,
198 OdGePoint2d& upperRight) const = 0;
199
216 bool& clipFront,
217 bool& clipBack,
218 double& front,
219 double& back) const = 0;
220
224 virtual double linetypeScaleMultiplier() const = 0;
225
233 virtual double linetypeGenerationCriteria() const = 0;
234
242 virtual bool layerVisible(
243 OdDbStub* layerId) const = 0;
244
251 virtual const OdGiContextualColors *contextualColors() const { return NULL; }
252
259 virtual OdDbStub* annotationScaleId() const { return NULL; }
260};
261
262#include "TD_PackPop.h"
263
264#endif // __GI_VIEWPORT__
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 const OdGiContextualColors * contextualColors() const
Definition: GiViewport.h:251
virtual double linetypeScaleMultiplier() const =0
virtual double linetypeGenerationCriteria() const =0
virtual OdDbStub * annotationScaleId() const
Definition: GiViewport.h:259
virtual bool getFrontAndBackClipValues(bool &clipFront, bool &clipBack, double &front, double &back) const =0
virtual OdInt16 acadWindowId() const =0
virtual OdGePoint3d getCameraLocation() const =0
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