0029915: Porting to VC 2017 : Regressions in Modeling Algorithms on VC 2017
[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 class PrsMgr_Prs;
32 DEFINE_STANDARD_HANDLE(PrsMgr_Prs, Prs3d_Presentation)
33
34 class PrsMgr_Prs : public Prs3d_Presentation
35 {
36
37 public:
38   
39   Standard_EXPORT PrsMgr_Prs(const Handle(Graphic3d_StructureManager)& theStructManager, const PrsMgr_PresentationPointer& thePresentation, const PrsMgr_TypeOfPresentation3d theTypeOfPresentation3d);
40   
41   Standard_EXPORT void Compute() Standard_OVERRIDE;
42   
43   Standard_EXPORT Handle(Graphic3d_Structure) Compute (const Handle(Graphic3d_DataStructureManager)& aProjector) Standard_OVERRIDE;
44   
45   //! the "degenerated" Structure is displayed with
46   //! a transformation defined by <AMatrix>
47   //! which is not a Pure Translation.
48   //! We have to take in account this Transformation
49   //! in the computation of hidden line removal...
50   //! returns a filled Graphic Structure.
51   Standard_EXPORT Handle(Graphic3d_Structure) Compute (const Handle(Graphic3d_DataStructureManager)& theProjector,
52                                                        const Handle(Geom_Transformation)& theTrsf) Standard_OVERRIDE;
53
54   //! No need to return a structure, just to fill
55   //! <ComputedStruct> ....
56   Standard_EXPORT void Compute (const Handle(Graphic3d_DataStructureManager)& aProjector, Handle(Graphic3d_Structure)& ComputedStruct) Standard_OVERRIDE;
57   
58   //! No Need to return a Structure, just to
59   //! Fill <aStructure>. The Trsf has to be taken in account
60   //! in the computation (Rotation Part....)
61   Standard_EXPORT void Compute (const Handle(Graphic3d_DataStructureManager)& theProjector,
62                                 const Handle(Geom_Transformation)& theTrsf,
63                                 Handle(Graphic3d_Structure)& theStructure) Standard_OVERRIDE;
64
65   DEFINE_STANDARD_RTTIEXT(PrsMgr_Prs,Prs3d_Presentation)
66
67 private:
68
69   PrsMgr_PresentationPointer myPresentation3d;
70
71 };
72
73 #endif // _PrsMgr_Prs_HeaderFile