FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
AcGiViewport.h
Go to the documentation of this file.
1#pragma once
2
3//
4// (C) Copyright 2005-2024 by Graebert GmbH.
5//
6// Permission to use, copy, modify, and distribute this software in
7// object code form for any purpose and without fee is hereby granted,
8// provided that the above copyright notice appears in all copies and
9// that both that copyright notice and the limited warranty and
10// restricted rights notice below appear in all supporting
11// documentation.
12//
13// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
14// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
15// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
16// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
17// UNINTERRUPTED OR ERROR FREE.
18
19class AcRxClass;
20
22{
23public:
25
26 virtual AcGeVector3d viewDir() const = 0;
27 virtual void getNumPixelsInUnitSquare(const AcGePoint3d& givenWorldpt, AcGePoint2d& pixelArea, bool includePerspective = true) const = 0;
28 virtual void getCameraTarget(AcGePoint3d&) const = 0;
29 virtual void getModelToEyeTransform(AcGeMatrix3d&) const = 0;
30 virtual bool isPerspective(void) const = 0;
31 virtual Adesk::Boolean doPerspective(AcGePoint3d&) const = 0;
32
33 virtual Adesk::Int16 acadWindowId(void) const = 0;
34 virtual void getViewportDcCorners(AcGePoint2d&, AcGePoint2d&) const = 0;
35 virtual void getCameraLocation(AcGePoint3d&) const = 0;
36 virtual void getCameraUpVector(AcGeVector3d&) const = 0;
37
38 virtual void getEyeToModelTransform(AcGeMatrix3d&) const = 0;
39 virtual void getWorldToEyeTransform(AcGeMatrix3d&) const = 0;
40 virtual void getEyeToWorldTransform(AcGeMatrix3d&) const = 0;
41 virtual Adesk::Boolean doInversePerspective(AcGePoint3d&) const = 0;
42 virtual Adesk::UInt32 viewportId() const = 0;
43 virtual Adesk::Boolean getFrontAndBackClipValues(Adesk::Boolean&, Adesk::Boolean&, double&, double&)const = 0;
44 virtual double linetypeScaleMultiplier() const = 0;
45 virtual double linetypeGenerationCriteria() const = 0;
46
47 virtual Adesk::Boolean layerVisible(const AcDbObjectId&) const = 0;
48 virtual const AcGiContextualColors* contextualColors() const = 0;
49};
#define ACRX_DECLARE_MEMBERS(classname)
Definition addmacro.h:756