X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_Tools.h;h=f78e9b7550a627306754dd9469fbf0aee16f67c5;hb=aebde79eb2410f5e7699ee44254173b442727df7;hp=600a5334f8852f5e34b3ecfe98e39821d0eed325;hpb=e98f5ede19029ac09ae9fe78061a4485bd6b86b5;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_Tools.h b/src/ModuleBase/ModuleBase_Tools.h index 600a5334f..f78e9b755 100755 --- a/src/ModuleBase/ModuleBase_Tools.h +++ b/src/ModuleBase/ModuleBase_Tools.h @@ -10,7 +10,9 @@ #include "ModuleBase.h" #include "ModuleBase_Definitions.h" +#include #include + #include #include #include @@ -120,6 +122,16 @@ MODULEBASE_EXPORT void setDefaultDeviationCoefficient(const TopoDS_Shape& theSha MODULEBASE_EXPORT Quantity_Color color(const std::string& theSection, const std::string& theName, const std::string& theDefault); + + +// Returns the object from the attribute +/// \param theObj an object +MODULEBASE_EXPORT ObjectPtr getObject(const AttributePtr& theAttribute); + +// Returns the object from the attribute +/// \param theObj an object +MODULEBASE_EXPORT TopAbs_ShapeEnum getCompoundSubType(const TopoDS_Shape& theShape); + } #endif