1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: SketcherPrs_Radius.h
4 // Created: 26 March 2015
5 // Author: Vitaly SMETANNIKOV
8 #ifndef SketcherPrs_Radius_H
9 #define SketcherPrs_Radius_H
11 #include <GeomAPI_Ax3.h>
13 #include <AIS_RadiusDimension.hxx>
14 #include <Standard_DefineHandle.hxx>
16 class SketchPlugin_Constraint;
18 DEFINE_STANDARD_HANDLE(SketcherPrs_Radius, AIS_RadiusDimension)
22 * A class for representation of radius constraint
24 class SketcherPrs_Radius : public AIS_RadiusDimension
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);
33 DEFINE_STANDARD_RTTI(SketcherPrs_Radius)
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);
40 /// Constraint feature
41 SketchPlugin_Constraint* myConstraint;
43 /// Plane of the current sketcher
44 std::shared_ptr<GeomAPI_Ax3> myPlane;
46 Handle(Prs3d_DimensionAspect) myAspect;