Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / XGUI / XGUI_Tools.h
index d20260f8e3046847cc6d0b53c51f0f1e021e2190..fa1c78af5652a8760b24c5639f76099e8d8a08bb 100644 (file)
@@ -5,10 +5,11 @@
 #include <QString>
 #include <QRect>
 
+#include <ModelAPI_Feature.h>
+
 #include <boost/shared_ptr.hpp>
 
 class TopoDS_Shape;
-class ModelAPI_Feature;
 /*!
  \brief Return directory part of the file path.
 
@@ -64,13 +65,18 @@ namespace XGUI_Tools
    Returns true if the feature is a model object
    \param theFeature a feature
   */
-  bool XGUI_EXPORT isModelObject(boost::shared_ptr<ModelAPI_Feature> theFeature);
+  bool XGUI_EXPORT isModelObject(FeaturePtr theFeature);
 
   /*!
    Returns the string presentation of the given feature
    \param theFeature a feature
   */
-  std::string XGUI_EXPORT featureInfo(boost::shared_ptr<ModelAPI_Feature> theFeature);
+  std::string XGUI_EXPORT featureInfo(FeaturePtr theFeature);
+
+  /**
+  * Returns pointer on real feature
+  */
+  FeaturePtr realFeature(const FeaturePtr theFeature);
 }
 
 #endif