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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _PrsMgr_Prs_HeaderFile
18 #define _PrsMgr_Prs_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
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;
33 DEFINE_STANDARD_HANDLE(PrsMgr_Prs, Prs3d_Presentation)
36 class PrsMgr_Prs : public Prs3d_Presentation
42 Standard_EXPORT PrsMgr_Prs(const Handle(Graphic3d_StructureManager)& theStructManager, const PrsMgr_PresentationPointer& thePresentation, const PrsMgr_TypeOfPresentation3d theTypeOfPresentation3d);
44 Standard_EXPORT void Compute() Standard_OVERRIDE;
46 Standard_EXPORT Handle(Graphic3d_Structure) Compute (const Handle(Graphic3d_DataStructureManager)& aProjector) Standard_OVERRIDE;
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;
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;
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;
68 DEFINE_STANDARD_RTTI(PrsMgr_Prs,Prs3d_Presentation)
78 PrsMgr_PresentationPointer myPresentation3d;
89 #endif // _PrsMgr_Prs_HeaderFile