0030675: Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presen...
[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 <Prs3d_Presentation.hxx>
21 #include <PrsMgr_TypeOfPresentation3d.hxx>
22 #include <TColStd_Array2OfReal.hxx>
23
24 class Graphic3d_StructureManager;
25 class Graphic3d_Structure;
26 class Graphic3d_DataStructureManager;
27 class PrsMgr_Presentation;
28
29 DEFINE_STANDARD_HANDLE(PrsMgr_Prs, Prs3d_Presentation)
30
31 class PrsMgr_Prs : public Prs3d_Presentation
32 {
33   DEFINE_STANDARD_RTTIEXT(PrsMgr_Prs, Prs3d_Presentation)
34 public:
35   
36   Standard_EXPORT PrsMgr_Prs (const Handle(Graphic3d_StructureManager)& theStructManager,
37                               PrsMgr_Presentation* thePresentation,
38                               PrsMgr_TypeOfPresentation3d theTypeOfPresentation3d);
39
40   Standard_EXPORT virtual void Compute() Standard_OVERRIDE;
41   
42   Standard_EXPORT virtual Handle(Graphic3d_Structure) Compute (const Handle(Graphic3d_DataStructureManager)& aProjector) Standard_OVERRIDE;
43   
44   //! the "degenerated" Structure is displayed with
45   //! a transformation defined by <AMatrix>
46   //! which is not a Pure Translation.
47   //! We have to take in account this Transformation
48   //! in the computation of hidden line removal...
49   //! returns a filled Graphic Structure.
50   Standard_EXPORT virtual Handle(Graphic3d_Structure) Compute (const Handle(Graphic3d_DataStructureManager)& theProjector,
51                                                                const Handle(Geom_Transformation)& theTrsf) Standard_OVERRIDE;
52
53   //! No need to return a structure, just to fill
54   //! <ComputedStruct> ....
55   Standard_EXPORT virtual void Compute (const Handle(Graphic3d_DataStructureManager)& aProjector, Handle(Graphic3d_Structure)& ComputedStruct) Standard_OVERRIDE;
56   
57   //! No Need to return a Structure, just to
58   //! Fill <aStructure>. The Trsf has to be taken in account
59   //! in the computation (Rotation Part....)
60   Standard_EXPORT virtual void Compute (const Handle(Graphic3d_DataStructureManager)& theProjector,
61                                         const Handle(Geom_Transformation)& theTrsf,
62                                         Handle(Graphic3d_Structure)& theStructure) Standard_OVERRIDE;
63
64 private:
65
66   PrsMgr_Presentation* myPresentation3d;
67
68 };
69
70 #endif // _PrsMgr_Prs_HeaderFile