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