Salome HOME
3cde3ea2a6e32dd95337a71b97b30baaff23fa39
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Tools.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        SketcherPrs_Tools.h
4 // Created:     10 March 2015
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef SketcherPrs_Tools_H
8 #define SketcherPrs_Tools_H
9
10 #include "SketcherPrs.h"
11 #include <GeomAPI_Shape.h>
12 #include <GeomAPI_Pnt2d.h>
13 #include <ModelAPI_Object.h>
14 #include <string>
15
16 class SketchPlugin_Constraint;
17
18 namespace SketcherPrs_Tools {
19
20   ObjectPtr getResult(SketchPlugin_Constraint* theFeature,
21                       const std::string& theAttrName);
22
23   std::shared_ptr<GeomAPI_Shape> getShape(ObjectPtr theObject);
24
25   std::shared_ptr<GeomAPI_Pnt2d> getPoint(SketchPlugin_Constraint* theFeature,
26                                           const std::string& theAttrName);
27
28 };
29
30 #endif