Salome HOME
Issue 452: PartSet variable namespace is partent for the part's namespace.
[modules/shaper.git] / src / ModelAPI / ModelAPI_Tools.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModelAPI_Tools.h
4 // Created:     06 Aug 2014
5 // Author:      Vitaly Smetannikov
6
7 #ifndef ModelAPI_Tools_HeaderFile
8 #define ModelAPI_Tools_HeaderFile
9
10 #include "ModelAPI.h"
11 #include <ModelAPI_Result.h>
12 #include <GeomAPI_Shape.h>
13
14 namespace ModelAPI_Tools {
15 /// Returns shape from the given Result object
16 MODELAPI_EXPORT std::shared_ptr<GeomAPI_Shape> shape(const ResultPtr& theResult);
17
18 /*!
19  * Searches for variable with name \param theName in the active document (Part), when
20  * in the root document (PartSet). If found, set it value in the \param outValue
21  * and returns true.
22  */
23 MODELAPI_EXPORT bool findVariable(const std::string& theName, double& outValue);
24
25 }
26
27 #endif