CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
AbstractViewPE.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 OD_ABSTRACTVIEWPE_H
25#define OD_ABSTRACTVIEWPE_H
26
27#include "DbRootExport.h"
28#include "Ge/GePoint3d.h"
29#include "Ge/GeVector2d.h"
30#include "Ge/GeVector3d.h"
31#include "ViewportDefs.h"
32#include "DbStubPtrArray.h"
33#include "Gi/GiViewportTraits.h"
34
36
38
39#include "TD_PackPush.h"
40
58{
59public:
61
62 // Viewport methods:
63
73 virtual OdGePoint2d lowerLeftCorner(const OdRxObject* pViewport) const;
83 virtual OdGePoint2d upperRightCorner(const OdRxObject* pViewport) const;
95 virtual void setViewport(OdRxObject* pViewport, const OdGePoint2d& lowerLeft, const OdGePoint2d& upperRight) const;
100 virtual bool hasViewport(const OdRxObject* pViewport) const;
101
102 // View methods:
103
108 virtual OdGePoint3d target(const OdRxObject* pViewport) const = 0;
109
114 virtual OdGeVector3d direction(const OdRxObject* pViewport) const = 0;
115
120 virtual OdGeVector3d upVector (const OdRxObject* pViewport) const = 0;
127 virtual double fieldWidth(const OdRxObject* pViewport) const = 0;
134 virtual double fieldHeight(const OdRxObject* pViewport) const = 0;
135
140 virtual bool isPerspective(const OdRxObject* pViewport) const = 0;
141
146 virtual OdGeVector2d viewOffset(const OdRxObject* pViewport) const;
151 virtual bool hasViewOffset(const OdRxObject* pViewport) const;
152
157 virtual double viewTwist(const OdRxObject* pViewport) const = 0;
158
173 virtual void setView(
174 OdRxObject* pViewport,
175 const OdGePoint3d& target,
176 const OdGeVector3d& direction,
177 const OdGeVector3d& upVector,
178 double fieldWidth,
179 double fieldHeight,
180 bool isPerspective,
181 const OdGeVector2d& viewOffset = OdGeVector2d::kIdentity) const = 0;
182
188 virtual void setLensLength(OdRxObject* pViewport, double lensLength) const = 0;
193 virtual double lensLength(const OdRxObject* pViewport) const = 0;
194
199 virtual bool isFrontClipOn(const OdRxObject* pViewport) const = 0;
200
206 virtual void setFrontClipOn(OdRxObject* pViewport, bool frontClip) const = 0;
207
212 virtual bool isBackClipOn(const OdRxObject* pViewport) const = 0;
213
219 virtual void setBackClipOn(OdRxObject* pViewport, bool backClip) const = 0;
220
227 virtual bool isFrontClipAtEyeOn(const OdRxObject* pViewport) const = 0;
228
237 virtual void setFrontClipAtEyeOn(OdRxObject* pViewport, bool frontClipAtEye) const = 0;
238
243 virtual double frontClipDistance(const OdRxObject* pViewport) const = 0;
244
250 virtual void setFrontClipDistance(OdRxObject* pViewport, double frontClipDistance) const = 0;
251
256 virtual double backClipDistance(const OdRxObject* pViewport) const = 0;
262 virtual void setBackClipDistance(OdRxObject* pViewport, double backClipDistance) const = 0;
263
284 virtual void setRenderMode(OdRxObject* pViewport, OdDb::RenderMode renderMode) const = 0;
285
305 virtual OdDb::RenderMode renderMode(const OdRxObject* pViewport) const = 0;
306
312 virtual void setVisualStyle(OdRxObject* pViewport, OdDbStub* visualStyleId) const = 0;
317 virtual OdDbStub* visualStyle(const OdRxObject* pViewport) const = 0;
318
324 virtual void setBackground(OdRxObject* pViewport, OdDbStub* backgroundId) const = 0;
329 virtual OdDbStub* background(const OdRxObject* pViewport) const = 0;
330
335 virtual bool isDefaultLightingOn(const OdRxObject* pViewport) const;
341 virtual void setDefaultLightingOn(OdRxObject* pViewport, bool isOn) const;
342
354
361 virtual void frozenLayers(const OdRxObject* pViewport, OdDbStubPtrArray& frozenLayers) const;
362
369 virtual void setFrozenLayers(OdRxObject* pViewport, const OdDbStubPtrArray& frozenLayers) const;
370
380 virtual void setView(OdRxObject* pDestinationView, const OdRxObject* pSourceView) const;
381
382 // UCS methods:
383
389 virtual bool hasUcs(const OdRxObject* pViewport) const;
390
411 virtual OdDb::OrthographicView orthoUcs(const OdRxObject* pViewport, const OdDbBaseDatabase* pDb = 0) const;
412
433 virtual bool setUcs(OdRxObject* pViewport, OdDb::OrthographicView orthoUcs, const OdDbBaseDatabase* pDb = 0) const;
434
439 virtual OdDbStub* ucsName(const OdRxObject* pViewport) const;
440
449 virtual bool setUcs(OdRxObject* pViewport, OdDbStub* ucsId) const;
450
457 virtual void getUcs(const OdRxObject* pViewport, OdGePoint3d& origin, OdGeVector3d& xAxis, OdGeVector3d& yAxis) const;
458
467 virtual void setUcs(OdRxObject* pViewport, const OdGePoint3d& origin, const OdGeVector3d& xAxis, const OdGeVector3d& yAxis) const;
468
473 virtual double elevation(const OdRxObject* pViewport) const;
474
480 virtual void setElevation(OdRxObject* pViewport, double elevation) const;
489 virtual void setUcs(OdRxObject* pDestinationView, const OdRxObject* pSourceView) const;
490
491 // Util methods:
492
507 virtual bool viewExtents(
508 const OdRxObject* pViewport,
509 OdGeBoundBlock3d& extents) const = 0;
510
528 virtual bool plotExtents(
529 const OdRxObject* pViewport,
530 OdGeBoundBlock3d& extents,
531 bool bExtendOnly = false,
532 bool bExtentsValid = true,
533 const OdGeMatrix3d *pWorldToEye = NULL) const;
534
548 virtual bool zoomExtents(
549 OdRxObject* pViewport,
550 const OdGeBoundBlock3d* pExtents = 0,
551 double extCoef = 1.02) const;
552
560 virtual OdGeMatrix3d worldToEye(const OdRxObject* pViewport) const;
568 virtual OdGeMatrix3d eyeToWorld(const OdRxObject* pViewport) const;
569
574 virtual bool isPlotting(const OdRxObject* pViewport) const;
586 virtual OdRxObjectPtr plotDataObject(const OdRxObject* pViewport, bool bOpenForWrite = false) const;
594 virtual bool applyPlotSettings(OdRxObject* pDestinationView, const OdRxObject* pSourceView) const;
595
600 virtual OdDbStub *annotationScale(const OdRxObject* pViewport) const;
601
608 virtual OdDbStub* compatibleCopyObject(const OdRxObject* pViewport, OdDbStub* pCopyObject) const;
609};
610
615
616#include "TD_PackPop.h"
617
618#endif // OD_ABSTRACTVIEWPE_H
OdRxObject OdDbBaseDatabase
OdSmartPtr< OdAbstractViewPE > OdAbstractViewPEPtr
#define DBROOT_EXPORT
Definition: DbRootExport.h:39
virtual void setBackground(OdRxObject *pViewport, OdDbStub *backgroundId) const =0
virtual OdDbStub * visualStyle(const OdRxObject *pViewport) const =0
virtual void setDefaultLightingType(OdRxObject *pViewport, OdGiViewportTraits::DefaultLightingType lightingType) const
virtual void setFrontClipOn(OdRxObject *pViewport, bool frontClip) const =0
virtual OdDb::OrthographicView orthoUcs(const OdRxObject *pViewport, const OdDbBaseDatabase *pDb=0) const
virtual bool plotExtents(const OdRxObject *pViewport, OdGeBoundBlock3d &extents, bool bExtendOnly=false, bool bExtentsValid=true, const OdGeMatrix3d *pWorldToEye=NULL) const
virtual OdGeVector2d viewOffset(const OdRxObject *pViewport) const
virtual void setViewport(OdRxObject *pViewport, const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight) const
virtual double frontClipDistance(const OdRxObject *pViewport) const =0
virtual OdDbStub * background(const OdRxObject *pViewport) const =0
virtual void setRenderMode(OdRxObject *pViewport, OdDb::RenderMode renderMode) const =0
virtual OdDbStub * ucsName(const OdRxObject *pViewport) const
virtual OdRxObjectPtr plotDataObject(const OdRxObject *pViewport, bool bOpenForWrite=false) const
virtual double viewTwist(const OdRxObject *pViewport) const =0
virtual bool zoomExtents(OdRxObject *pViewport, const OdGeBoundBlock3d *pExtents=0, double extCoef=1.02) const
virtual void setBackClipDistance(OdRxObject *pViewport, double backClipDistance) const =0
virtual void setDefaultLightingOn(OdRxObject *pViewport, bool isOn) const
virtual bool isPerspective(const OdRxObject *pViewport) const =0
virtual OdGiViewportTraits::DefaultLightingType defaultLightingType(const OdRxObject *pViewport) const
virtual void setView(OdRxObject *pDestinationView, const OdRxObject *pSourceView) const
virtual bool setUcs(OdRxObject *pViewport, OdDb::OrthographicView orthoUcs, const OdDbBaseDatabase *pDb=0) const
virtual bool isBackClipOn(const OdRxObject *pViewport) const =0
virtual void frozenLayers(const OdRxObject *pViewport, OdDbStubPtrArray &frozenLayers) const
virtual OdGePoint2d lowerLeftCorner(const OdRxObject *pViewport) const
virtual void setView(OdRxObject *pViewport, const OdGePoint3d &target, const OdGeVector3d &direction, const OdGeVector3d &upVector, double fieldWidth, double fieldHeight, bool isPerspective, const OdGeVector2d &viewOffset=OdGeVector2d::kIdentity) const =0
virtual bool hasUcs(const OdRxObject *pViewport) const
virtual bool hasViewport(const OdRxObject *pViewport) const
virtual double fieldHeight(const OdRxObject *pViewport) const =0
virtual void setFrontClipDistance(OdRxObject *pViewport, double frontClipDistance) const =0
virtual double fieldWidth(const OdRxObject *pViewport) const =0
virtual void setUcs(OdRxObject *pDestinationView, const OdRxObject *pSourceView) const
virtual void setUcs(OdRxObject *pViewport, const OdGePoint3d &origin, const OdGeVector3d &xAxis, const OdGeVector3d &yAxis) const
virtual bool applyPlotSettings(OdRxObject *pDestinationView, const OdRxObject *pSourceView) const
virtual double lensLength(const OdRxObject *pViewport) const =0
virtual void setBackClipOn(OdRxObject *pViewport, bool backClip) const =0
virtual bool hasViewOffset(const OdRxObject *pViewport) const
virtual OdGeVector3d upVector(const OdRxObject *pViewport) const =0
virtual OdDb::RenderMode renderMode(const OdRxObject *pViewport) const =0
virtual void setFrontClipAtEyeOn(OdRxObject *pViewport, bool frontClipAtEye) const =0
virtual bool setUcs(OdRxObject *pViewport, OdDbStub *ucsId) const
virtual void getUcs(const OdRxObject *pViewport, OdGePoint3d &origin, OdGeVector3d &xAxis, OdGeVector3d &yAxis) const
virtual OdGeVector3d direction(const OdRxObject *pViewport) const =0
virtual bool isFrontClipOn(const OdRxObject *pViewport) const =0
virtual double backClipDistance(const OdRxObject *pViewport) const =0
virtual void setFrozenLayers(OdRxObject *pViewport, const OdDbStubPtrArray &frozenLayers) const
virtual bool viewExtents(const OdRxObject *pViewport, OdGeBoundBlock3d &extents) const =0
virtual OdGeMatrix3d worldToEye(const OdRxObject *pViewport) const
virtual OdDbStub * compatibleCopyObject(const OdRxObject *pViewport, OdDbStub *pCopyObject) const
virtual OdGeMatrix3d eyeToWorld(const OdRxObject *pViewport) const
virtual void setVisualStyle(OdRxObject *pViewport, OdDbStub *visualStyleId) const =0
virtual void setLensLength(OdRxObject *pViewport, double lensLength) const =0
virtual bool isPlotting(const OdRxObject *pViewport) const
virtual bool isFrontClipAtEyeOn(const OdRxObject *pViewport) const =0
virtual bool isDefaultLightingOn(const OdRxObject *pViewport) const
ODRX_DECLARE_MEMBERS(OdAbstractViewPE)
virtual OdGePoint2d upperRightCorner(const OdRxObject *pViewport) const
virtual double elevation(const OdRxObject *pViewport) const
virtual void setElevation(OdRxObject *pViewport, double elevation) const
virtual OdGePoint3d target(const OdRxObject *pViewport) const =0
virtual OdDbStub * annotationScale(const OdRxObject *pViewport) const
static GE_STATIC_EXPORT const OdGeVector2d kIdentity
Definition: GeVector2d.h:75
OrthographicView
Definition: ViewportDefs.h:35
RenderMode
Definition: ViewportDefs.h:46