Salome HOME
e1536510127c65221dd6f44e18463570e0608ac0
[modules/shaper.git] / src / PartSet / PartSet_OperationPrs.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        PartSet_OperationPrs.h
4 // Created:     01 Jul 2015
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef PartSet_OperationPrs_H
8 #define PartSet_OperationPrs_H
9
10 #include "PartSet.h"
11
12 #include <ModelAPI_Result.h>
13 #include <ModelAPI_Feature.h>
14
15 #include <ViewerData_AISShape.hxx>
16 #include <Standard_DefineHandle.hxx>
17
18 DEFINE_STANDARD_HANDLE(PartSet_OperationPrs, ViewerData_AISShape)
19
20 /**
21 * \ingroup GUI
22 * A redefinition of standard AIS Interactive Object in order to provide specific behaviour 
23 * for wire presentations based in a one plane
24 */
25 class PartSet_OperationPrs : public ViewerData_AISShape
26 {
27 public:
28   /// Constructor
29   /// \param theResult a result object
30   Standard_EXPORT PartSet_OperationPrs();
31
32   /// set the operation feature. It is used in Compute method to group the feature parameter shapes
33   /// theFeature a feature
34   void setFeature(FeaturePtr theFeature);
35
36
37   DEFINE_STANDARD_RTTI(PartSet_OperationPrs)
38
39 protected:
40   /// Redefinition of virtual function
41   Standard_EXPORT virtual void Compute(
42             const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
43             const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
44
45   /// Redefinition of virtual function
46   Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
47                                                 const Standard_Integer aMode) ;
48 private:
49   /// Reference to a feature object
50   FeaturePtr myFeature;
51 };
52
53
54 #endif