1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: SketcherPrs_Tools.h
4 // Created: 10 March 2015
5 // Author: Vitaly SMETANNIKOV
7 #ifndef SketcherPrs_Tools_H
8 #define SketcherPrs_Tools_H
10 #include "SketcherPrs.h"
11 #include <GeomAPI_Shape.h>
12 #include <GeomAPI_Pnt2d.h>
13 #include <ModelAPI_Object.h>
16 class SketchPlugin_Constraint;
18 namespace SketcherPrs_Tools {
20 ObjectPtr getResult(SketchPlugin_Constraint* theFeature,
21 const std::string& theAttrName);
23 std::shared_ptr<GeomAPI_Shape> getShape(ObjectPtr theObject);
25 std::shared_ptr<GeomAPI_Pnt2d> getPoint(SketchPlugin_Constraint* theFeature,
26 const std::string& theAttrName);