]> SALOME platform Git repositories - modules/shaper.git/blob - src/ModuleBase/ModuleBase_ResultPrs.h
Salome HOME
Speed up the redraw of sketch with constraints moved by the point of the line
[modules/shaper.git] / src / ModuleBase / ModuleBase_ResultPrs.h
1 // File:        ModuleBase_ResultPrs.h
2 // Created:     21 October 2014
3 // Author:      Vitaly SMETANNIKOV
4
5 #ifndef ModuleBase_ResultPrs_H
6 #define ModuleBase_ResultPrs_H
7
8 #include "ModuleBase.h"
9
10 #include <ModelAPI_Result.h>
11
12 #include <AIS_Shape.hxx>
13 #include <Standard_DefineHandle.hxx>
14
15 DEFINE_STANDARD_HANDLE(ModuleBase_ResultPrs, AIS_Shape)
16
17 class ModuleBase_ResultPrs: public AIS_Shape
18 {
19 public:
20   Standard_EXPORT ModuleBase_ResultPrs(ResultPtr theResult);
21
22   Standard_EXPORT ResultPtr getResult() const { return myResult; }
23
24   DEFINE_STANDARD_RTTI(ModuleBase_ResultPrs)
25 protected:
26   Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
27     const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
28
29   Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
30     const Standard_Integer aMode) ;
31
32 private:
33   ResultPtr myResult;
34
35   bool myIsSketchMode;
36
37   TopoDS_Shape myOriginalShape;
38   std::list<std::shared_ptr<GeomAPI_Shape> > myFacesList;
39 };
40
41
42 #endif