Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom into Dev_1.1.0
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Perpendicular.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        SketcherPrs_Perpendicular.h
4 // Created:     12 March 2015
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef SketcherPrs_Perpendicular_H
8 #define SketcherPrs_Perpendicular_H
9
10 #include "SketcherPrs_SymbolPrs.h"
11
12 class SketchPlugin_Sketch;
13
14
15 DEFINE_STANDARD_HANDLE(SketcherPrs_Perpendicular, SketcherPrs_SymbolPrs)
16
17 /**
18 * \ingroup GUI
19 * A redefinition of standard AIS Interactive Object in order to provide  
20 * presentation of perpendicular constraint
21 */
22 class SketcherPrs_Perpendicular: public SketcherPrs_SymbolPrs
23 {
24 public:
25   /// Constructor
26   /// \param theConstraint a constraint feature
27   /// \param thePlane a coordinate plane of current sketch
28   Standard_EXPORT SketcherPrs_Perpendicular(SketchPlugin_Constraint* theConstraint, 
29                                        const std::shared_ptr<GeomAPI_Ax3>& thePlane);
30
31   DEFINE_STANDARD_RTTI(SketcherPrs_Perpendicular)
32 protected:
33   virtual const char* iconName() const { return "perpendicular.png"; }
34
35   /// Redefine this function in order to add additiona lines of constraint base
36   /// \param thePrs a presentation
37   /// \param theColor a color of additiona lines
38   virtual void drawLines(const Handle(Prs3d_Presentation)& thePrs, Quantity_Color theColor) const;
39
40   /// Update myPntArray according to presentation positions
41   /// \return true in case of success
42   virtual bool updatePoints(double theStep) const;
43 };
44
45 #endif