]> SALOME platform Git repositories - modules/shaper.git/blob - src/ModuleBase/ModuleBase_ResultPrs.h
Salome HOME
AIS presentation for result is created
[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   Standard_EXPORT virtual Standard_Boolean AcceptDisplayMode(const Standard_Integer theMode) const;
25
26   DEFINE_STANDARD_RTTI(ModuleBase_ResultPrs)
27 protected:
28   void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
29     const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
30
31 private:
32   ResultPtr myResult;
33
34   bool myIsSketchMode;
35 };
36
37
38 #endif