1 // File: ModuleBase_Tools.h
2 // Created: 11 July 2014
3 // Author: Vitaly Smetannikov
5 #ifndef ModuleBase_Tools_H
6 #define ModuleBase_Tools_H
8 #include "ModuleBase.h"
10 #include <ModelAPI_Result.h>
11 #include <ModelAPI_Feature.h>
15 namespace ModuleBase_Tools {
18 * Returns returns a shape if the result has a shape method. Otherwise returns NULL pointer
20 MODULEBASE_EXPORT boost::shared_ptr<GeomAPI_Shape> shape(ResultPtr theResult);
22 MODULEBASE_EXPORT FeaturePtr feature(ObjectPtr theObject);