Salome HOME
Merge branch 'BR_DEBIAN_RUNTIME' of newgeom:newgeom.git into Dev_1.1.0
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Coincident.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        SketcherPrs_Coincident.h
4 // Created:     12 February 2015
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef SketcherPrs_Coincident_H
8 #define SketcherPrs_Coincident_H
9
10 #include <GeomAPI_Ax3.h>
11 #include <ModelAPI_Feature.h>
12
13 #include <AIS_InteractiveObject.hxx>
14 #include <Standard_DefineHandle.hxx>
15
16
17 DEFINE_STANDARD_HANDLE(SketcherPrs_Coincident, AIS_InteractiveObject)
18
19 /**
20 * \ingroup GUI
21 * A redefinition of standard AIS Interactive Object in order to provide  
22 * presentation of coincident constraint
23 */
24 class SketcherPrs_Coincident: public AIS_InteractiveObject
25 {
26 public:
27   /// Constructor
28   /// \param theResult a result object
29   Standard_EXPORT SketcherPrs_Coincident(ModelAPI_Feature* theConstraint, 
30                                          const std::shared_ptr<GeomAPI_Ax3>& thePlane);
31
32   Standard_EXPORT virtual void SetColor(const Quantity_Color& aColor);
33   
34   Standard_EXPORT virtual void SetColor(const Quantity_NameOfColor aColor);
35    
36   DEFINE_STANDARD_RTTI(SketcherPrs_Coincident)
37 protected:
38   /// Redefinition of virtual function
39   Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
40     const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
41
42   /// Redefinition of virtual function
43   Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
44     const Standard_Integer aMode) ;
45
46 private:
47   ModelAPI_Feature* myConstraint;
48   std::shared_ptr<GeomAPI_Ax3> myPlane;
49   gp_Pnt myPoint;
50 };
51
52
53 #endif