Salome HOME
Fix for stable processing of mirror constraint (eliminating SolveSpace problems)
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Parallel.h
index 5e39abb8f9ce7e5ae8903e138a4daade630c9b5d..63aa6afc3efb87649cf038240badac9d5d4b1665 100644 (file)
@@ -7,50 +7,36 @@
 #ifndef SketcherPrs_Parallel_H
 #define SketcherPrs_Parallel_H
 
-#include <GeomAPI_Ax3.h>
-#include <GeomAPI_Edge.h>
-
-#include <AIS_InteractiveObject.hxx>
-#include <Graphic3d_ArrayOfPoints.hxx>
-#include <Graphic3d_AspectMarker3d.hxx>
-#include <Standard_DefineHandle.hxx>
+#include "SketcherPrs_SymbolPrs.h"
 
 class SketchPlugin_Constraint;
 class SketchPlugin_Sketch;
 
 
-DEFINE_STANDARD_HANDLE(SketcherPrs_Parallel, AIS_InteractiveObject)
+DEFINE_STANDARD_HANDLE(SketcherPrs_Parallel, SketcherPrs_SymbolPrs)
 
 /**
 * \ingroup GUI
 * A redefinition of standard AIS Interactive Object in order to provide  
-* presentation of coincident constraint
+* presentation of parallel constraint
 */
-class SketcherPrs_Parallel: public AIS_InteractiveObject
+class SketcherPrs_Parallel: public SketcherPrs_SymbolPrs
 {
 public:
   /// Constructor
-  /// \param theResult a result object
+  /// \param theConstraint a constraint feature
+  /// \param thePlane a coordinate plane of current sketch
   Standard_EXPORT SketcherPrs_Parallel(SketchPlugin_Constraint* theConstraint, 
                                        const std::shared_ptr<GeomAPI_Ax3>& thePlane);
-
-
   DEFINE_STANDARD_RTTI(SketcherPrs_Parallel)
 protected:
   /// Redefinition of virtual function
   Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
     const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
 
-  /// Redefinition of virtual function
-  Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
-    const Standard_Integer aMode) ;
-
-private:
+  virtual const char* iconName() const { return "parallel.png"; }
 
-  SketchPlugin_Constraint* myConstraint;
-  std::shared_ptr<GeomAPI_Ax3> myPlane;
-  Handle(Graphic3d_AspectMarker3d) myAspect;
-  Handle(Graphic3d_ArrayOfPoints) myPntArray;
+  virtual void drawLines(const Handle(Prs3d_Presentation)& thePrs, Quantity_Color theColor) const;
 };
 
 #endif
\ No newline at end of file