42cf5bc1 |
1 | // Created on: 1993-03-19 |
2 | // Created by: Jean-Louis FRENKEL |
3 | // Copyright (c) 1993-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _Prs3d_Projector_HeaderFile |
18 | #define _Prs3d_Projector_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <HLRAlgo_Projector.hxx> |
24 | #include <MMgt_TShared.hxx> |
25 | #include <Standard_Boolean.hxx> |
26 | #include <Quantity_Length.hxx> |
27 | class HLRAlgo_Projector; |
28 | |
29 | |
30 | class Prs3d_Projector; |
31 | DEFINE_STANDARD_HANDLE(Prs3d_Projector, MMgt_TShared) |
32 | |
33 | //! A projector object. |
34 | //! This object defines the parameters of a view for a |
35 | //! visualization algorithm. It is, for example, used by the |
36 | //! hidden line removal algorithms. |
37 | class Prs3d_Projector : public MMgt_TShared |
38 | { |
39 | |
40 | public: |
41 | |
42 | |
43 | Standard_EXPORT Prs3d_Projector(const HLRAlgo_Projector& Pr); |
44 | |
45 | //! Constructs a projector framework from the following parameters |
46 | //! - Pers is true if the view is a perspective view and |
47 | //! false if it is an axonometric one; |
48 | //! - Focus is the focal length if a perspective view is defined; |
49 | //! - DX, DY and DZ are the coordinates of the |
50 | //! projection vector; |
51 | //! - XAt, YAt and ZAt are the coordinates of the view point; |
52 | //! - XUp, YUp and ZUp are the coordinates of the |
53 | //! vertical direction vector. |
54 | Standard_EXPORT Prs3d_Projector(const Standard_Boolean Pers, const Quantity_Length Focus, const Quantity_Length DX, const Quantity_Length DY, const Quantity_Length DZ, const Quantity_Length XAt, const Quantity_Length YAt, const Quantity_Length ZAt, const Quantity_Length XUp, const Quantity_Length YUp, const Quantity_Length ZUp); |
55 | |
56 | //! Returns a projector object for use in a hidden line removal algorithm. |
57 | Standard_EXPORT HLRAlgo_Projector Projector() const; |
58 | |
59 | |
60 | |
61 | |
92efcf78 |
62 | DEFINE_STANDARD_RTTIEXT(Prs3d_Projector,MMgt_TShared) |
42cf5bc1 |
63 | |
64 | protected: |
65 | |
66 | |
67 | |
68 | |
69 | private: |
70 | |
71 | |
72 | HLRAlgo_Projector MyProjector; |
73 | |
74 | |
75 | }; |
76 | |
77 | |
78 | |
79 | |
80 | |
81 | |
82 | |
83 | #endif // _Prs3d_Projector_HeaderFile |