1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModuleBase_ResultPrs.h
4 // Created: 21 October 2014
5 // Author: Vitaly SMETANNIKOV
7 #ifndef ModuleBase_ResultPrs_H
8 #define ModuleBase_ResultPrs_H
10 #include "ModuleBase.h"
12 #include <ModelAPI_Result.h>
14 #include <ViewerData_AISShape.hxx>
15 #include <Standard_DefineHandle.hxx>
17 DEFINE_STANDARD_HANDLE(ModuleBase_ResultPrs, ViewerData_AISShape)
21 * A redefinition of standard AIS Interactive Object in order to provide specific behaviour
22 * for wire presentations based in a one plane
24 class ModuleBase_ResultPrs: public ViewerData_AISShape
28 /// \param theResult a result object
29 Standard_EXPORT ModuleBase_ResultPrs(ResultPtr theResult);
31 /// Returns result object
32 Standard_EXPORT ResultPtr getResult() const { return myResult; }
34 /// Returns True if the presentation is in sketch mode
35 Standard_EXPORT bool isSketchMode() const { return myIsSketchMode; }
37 /// Returns a list of faces
38 Standard_EXPORT const std::list<std::shared_ptr<GeomAPI_Shape> >& facesList() { return myFacesList; }
40 DEFINE_STANDARD_RTTI(ModuleBase_ResultPrs)
42 /// Redefinition of virtual function
43 Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
44 const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
46 /// Redefinition of virtual function
47 Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
48 const Standard_Integer aMode) ;
51 /// Reference to result object
54 /// A sketch mode flag
57 /// Original shape of the result object
58 TopoDS_Shape myOriginalShape;
61 std::list<std::shared_ptr<GeomAPI_Shape> > myFacesList;