]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketcherPrs/SketcherPrs_Equal.h
Salome HOME
A correction to check modified value in extrusion cut/sketch/etc operations.
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Equal.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        SketcherPrs_Equal.h
4 // Created:     16 February 2015
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef SketcherPrs_Equal_H
8 #define SketcherPrs_Equal_H
9
10 #include "SketcherPrs_SymbolPrs.h"
11
12
13 DEFINE_STANDARD_HANDLE(SketcherPrs_Equal, SketcherPrs_SymbolPrs)
14
15 /**
16 * \ingroup GUI
17 * A redefinition of standard AIS Interactive Object in order to provide  
18 * presentation of Equal constraint
19 */
20 class SketcherPrs_Equal: public SketcherPrs_SymbolPrs
21 {
22 public:
23   /// Constructor
24   /// \param theConstraint a constraint feature
25   /// \param thePlane a coordinate plane of current sketch
26   Standard_EXPORT SketcherPrs_Equal(ModelAPI_Feature* theConstraint, 
27                                        const std::shared_ptr<GeomAPI_Ax3>& thePlane);
28   DEFINE_STANDARD_RTTI(SketcherPrs_Equal)
29 protected:
30
31   virtual const char* iconName() const { return "equal.png"; }
32
33   virtual void drawLines(const Handle(Prs3d_Presentation)& thePrs, Quantity_Color theColor) const;
34
35   /// Update myPntArray according to presentation positions
36   /// \return true in case of success
37   virtual bool updatePoints(double theStep) const;
38 };
39
40 #endif