1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: SketcherPrs_HVDirection.h
4 // Created: 16 February 2015
5 // Author: Vitaly SMETANNIKOV
7 #ifndef SketcherPrs_HVDirection_H
8 #define SketcherPrs_HVDirection_H
10 #include "SketcherPrs_SymbolPrs.h"
12 class SketchPlugin_Constraint;
13 class SketchPlugin_Sketch;
16 DEFINE_STANDARD_HANDLE(SketcherPrs_HVDirection, SketcherPrs_SymbolPrs)
20 * A redefinition of standard AIS Interactive Object in order to provide
21 * presentation of parallel constraint
23 class SketcherPrs_HVDirection: public SketcherPrs_SymbolPrs
27 /// \param theConstraint a constraint feature
28 /// \param thePlane a coordinate plane of current sketch
29 Standard_EXPORT SketcherPrs_HVDirection(SketchPlugin_Constraint* theConstraint,
30 const std::shared_ptr<GeomAPI_Ax3>& thePlane,
33 DEFINE_STANDARD_RTTI(SketcherPrs_HVDirection)
35 /// Redefinition of virtual function
36 Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
37 const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
39 virtual const char* iconName() const { return myIsHorisontal? "horisontal.png" : "vertical.png"; }
41 /// Redefine this function in order to add additiona lines of constraint base
42 /// \param thePrs a presentation
43 /// \param theColor a color of additiona lines
44 virtual void drawLines(const Handle(Prs3d_Presentation)& thePrs, Quantity_Color theColor) const;