0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / PrsMgr / PrsMgr_Prs.hxx
1 // Created on: 1995-01-31
2 // Created by: Mister rmi
3 // Copyright (c) 1995-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 _PrsMgr_Prs_HeaderFile
18 #define _PrsMgr_Prs_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <PrsMgr_PresentationPointer.hxx>
24 #include <Prs3d_Presentation.hxx>
25 #include <PrsMgr_TypeOfPresentation3d.hxx>
26 #include <TColStd_Array2OfReal.hxx>
27 class Graphic3d_StructureManager;
28 class Graphic3d_Structure;
29 class Graphic3d_DataStructureManager;
30
31
32 class PrsMgr_Prs;
33 DEFINE_STANDARD_HANDLE(PrsMgr_Prs, Prs3d_Presentation)
34
35
36 class PrsMgr_Prs : public Prs3d_Presentation
37 {
38
39 public:
40
41   
42   Standard_EXPORT PrsMgr_Prs(const Handle(Graphic3d_StructureManager)& theStructManager, const PrsMgr_PresentationPointer& thePresentation, const PrsMgr_TypeOfPresentation3d theTypeOfPresentation3d);
43   
44   Standard_EXPORT void Compute() Standard_OVERRIDE;
45   
46   Standard_EXPORT Handle(Graphic3d_Structure) Compute (const Handle(Graphic3d_DataStructureManager)& aProjector) Standard_OVERRIDE;
47   
48   //! the "degenerated" Structure is displayed with
49   //! a transformation defined by <AMatrix>
50   //! which is not a Pure Translation.
51   //! We have to take in account this Transformation
52   //! in the computation of hidden line removal...
53   //! returns a filled Graphic Structure.
54   Standard_EXPORT Handle(Graphic3d_Structure) Compute (const Handle(Graphic3d_DataStructureManager)& aProjector, const TColStd_Array2OfReal& AMatrix) Standard_OVERRIDE;
55   
56   //! No need to return a structure, just to fill
57   //! <ComputedStruct> ....
58   Standard_EXPORT void Compute (const Handle(Graphic3d_DataStructureManager)& aProjector, Handle(Graphic3d_Structure)& ComputedStruct) Standard_OVERRIDE;
59   
60   //! No Need to return a Structure, just to
61   //! Fill <aStructure>. The Trsf has to be taken in account
62   //! in the computation (Rotation Part....)
63   Standard_EXPORT void Compute (const Handle(Graphic3d_DataStructureManager)& aProjector, const TColStd_Array2OfReal& AMatrix, Handle(Graphic3d_Structure)& aStructure) Standard_OVERRIDE;
64
65
66
67
68   DEFINE_STANDARD_RTTI(PrsMgr_Prs,Prs3d_Presentation)
69
70 protected:
71
72
73
74
75 private:
76
77
78   PrsMgr_PresentationPointer myPresentation3d;
79
80
81 };
82
83
84
85
86
87
88
89 #endif // _PrsMgr_Prs_HeaderFile