Salome HOME
0b32639b761dd209c4b7761ee917b0fe3036fa1d
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Radius.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        SketcherPrs_Radius.h
4 // Created:     26 March 2015
5 // Author:      Vitaly SMETANNIKOV
6
7
8 #ifndef SketcherPrs_Radius_H
9 #define SketcherPrs_Radius_H
10
11 #include <GeomAPI_Ax3.h>
12
13 #include <AIS_RadiusDimension.hxx>
14 #include <Standard_DefineHandle.hxx>
15
16 class SketchPlugin_Constraint;
17
18 DEFINE_STANDARD_HANDLE(SketcherPrs_Radius, AIS_RadiusDimension)
19
20 /**
21 * \ingroup GUI
22 * A class for representation of radius constraint
23 */
24 class SketcherPrs_Radius : public AIS_RadiusDimension
25 {
26 public:
27   /// Constructor
28   /// \param theConstraint a constraint feature
29   /// \param thePlane a coordinate plane of current sketch
30   Standard_EXPORT SketcherPrs_Radius(SketchPlugin_Constraint* theConstraint, 
31                         const std::shared_ptr<GeomAPI_Ax3>& thePlane);
32
33   DEFINE_STANDARD_RTTI(SketcherPrs_Radius)
34 protected:
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);
38
39 private:
40   /// Constraint feature
41   SketchPlugin_Constraint* myConstraint;
42
43   /// Plane of the current sketcher
44   std::shared_ptr<GeomAPI_Ax3> myPlane;
45
46   Handle(Prs3d_DimensionAspect) myAspect;
47 };
48
49 #endif