Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom 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
12 #include <AIS_InteractiveObject.hxx>
13 #include <Standard_DefineHandle.hxx>
14
15 class SketchPlugin_Constraint;
16
17
18 DEFINE_STANDARD_HANDLE(SketcherPrs_Coincident, AIS_InteractiveObject)
19
20 /**
21 * \ingroup GUI
22 * A redefinition of standard AIS Interactive Object in order to provide  
23 * presentation of coincident constraint
24 */
25 class SketcherPrs_Coincident: public AIS_InteractiveObject
26 {
27 public:
28   /// Constructor
29   /// \param theResult a result object
30   Standard_EXPORT SketcherPrs_Coincident(SketchPlugin_Constraint* theConstraint, 
31                                          const std::shared_ptr<GeomAPI_Ax3>& thePlane);
32
33   Standard_EXPORT virtual void SetColor(const Quantity_Color& aColor);
34   
35   Standard_EXPORT virtual void SetColor(const Quantity_NameOfColor aColor);
36    
37   DEFINE_STANDARD_RTTI(SketcherPrs_Coincident)
38 protected:
39   /// Redefinition of virtual function
40   Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
41     const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
42
43   /// Redefinition of virtual function
44   Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
45     const Standard_Integer aMode) ;
46
47 private:
48   SketchPlugin_Constraint* myConstraint;
49   std::shared_ptr<GeomAPI_Ax3> myPlane;
50   gp_Pnt myPoint;
51 };
52
53
54 #endif