Salome HOME
Issue #273: Add copyright string
[modules/shaper.git] / src / ModuleBase / ModuleBase_ResultPrs.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModuleBase_ResultPrs.h
4 // Created:     21 October 2014
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef ModuleBase_ResultPrs_H
8 #define ModuleBase_ResultPrs_H
9
10 #include "ModuleBase.h"
11
12 #include <ModelAPI_Result.h>
13
14 #include <AIS_Shape.hxx>
15 #include <Standard_DefineHandle.hxx>
16
17 DEFINE_STANDARD_HANDLE(ModuleBase_ResultPrs, AIS_Shape)
18
19 class ModuleBase_ResultPrs: public AIS_Shape
20 {
21 public:
22   Standard_EXPORT ModuleBase_ResultPrs(ResultPtr theResult);
23
24   Standard_EXPORT ResultPtr getResult() const { return myResult; }
25
26   DEFINE_STANDARD_RTTI(ModuleBase_ResultPrs)
27 protected:
28   Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
29     const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
30
31   Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
32     const Standard_Integer aMode) ;
33
34 private:
35   ResultPtr myResult;
36
37   bool myIsSketchMode;
38
39   TopoDS_Shape myOriginalShape;
40   std::list<std::shared_ptr<GeomAPI_Shape> > myFacesList;
41 };
42
43
44 #endif