1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: SketcherPrs_Tangent.h
4 // Created: 16 February 2015
5 // Author: Vitaly SMETANNIKOV
7 #ifndef SketcherPrs_Tangent_H
8 #define SketcherPrs_Tangent_H
10 #include "SketcherPrs_SymbolPrs.h"
11 #include <ModelAPI_Feature.h>
14 DEFINE_STANDARD_HANDLE(SketcherPrs_Tangent, SketcherPrs_SymbolPrs)
18 * A redefinition of standard AIS Interactive Object in order to provide
19 * presentation of tangent constraint
21 class SketcherPrs_Tangent: public SketcherPrs_SymbolPrs
25 /// \param theConstraint a constraint feature
26 /// \param thePlane a coordinate plane of current sketch
27 Standard_EXPORT SketcherPrs_Tangent(ModelAPI_Feature* theConstraint,
28 const std::shared_ptr<GeomAPI_Ax3>& thePlane);
30 DEFINE_STANDARD_RTTI(SketcherPrs_Tangent)
33 virtual const char* iconName() const { return "tangent.png"; }
35 virtual void drawLines(const Handle(Prs3d_Presentation)& thePrs, Quantity_Color theColor) const;
37 /// Update myPntArray according to presentation positions
38 /// \return true in case of success
39 virtual bool updatePoints(double theStep) const;