Salome HOME
Issue #1860: fix end lines with spaces
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Collinear.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        SketcherPrs_Collinear.h
4 // Created:     29 Feb 2016
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef SketcherPrs_Collinear_H
8 #define SketcherPrs_Collinear_H
9
10 #include "SketcherPrs_SymbolPrs.h"
11
12
13 DEFINE_STANDARD_HANDLE(SketcherPrs_Collinear, 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_Collinear: 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_Collinear(ModelAPI_Feature* theConstraint,
27                                        const std::shared_ptr<GeomAPI_Ax3>& thePlane);
28   DEFINE_STANDARD_RTTI(SketcherPrs_Collinear)
29
30   /// Returns true if the constraint feature arguments are correcly filled to build AIS presentation
31   /// \param theConstraint a constraint feature
32   /// \param thePlane a coordinate plane of current sketch
33   /// \return boolean result value
34   static bool IsReadyToDisplay(ModelAPI_Feature* theConstraint,
35                                const std::shared_ptr<GeomAPI_Ax3>& thePlane);
36 protected:
37
38   virtual const char* iconName() const { return "collinear.png"; }
39
40   virtual void drawLines(const Handle(Prs3d_Presentation)& thePrs, Quantity_Color theColor) const;
41
42   /// Update myPntArray according to presentation positions
43   /// \return true in case of success
44   virtual bool updateIfReadyToDisplay(double theStep) const;
45 };
46
47 #endif