Salome HOME
refs #75 - reported by Hervé Legrand: sketch - color of planes displayed in 3D viewer...
[modules/shaper.git] / src / XGUI / XGUI_Tools.cpp
index 9626802992c2a4a2cfa159be26b8b4e6c66d977e..339d08369551b6128bcff4b93083563a4150848e 100644 (file)
@@ -8,6 +8,8 @@
 #include <iostream>
 #include <sstream>
 
+namespace XGUI_Tools
+{
 //******************************************************************
 QString dir(const QString& path, bool isAbs)
 {
@@ -53,12 +55,19 @@ QRect makeRect(const int x1, const int y1, const int x2, const int y2)
   return QRect(qMin(x1, x2), qMin(y1, y2), qAbs(x2 - x1), qAbs(y2 - y1));
 }
 
+//******************************************************************
+bool isModelObject(boost::shared_ptr<ModelAPI_Feature> theFeature)
+{
+  return theFeature && !theFeature->data();
+}
+
 //******************************************************************
 std::string featureInfo(boost::shared_ptr<ModelAPI_Feature> theFeature)
 {
   std::ostringstream aStream; 
   if (theFeature)
-    aStream << theFeature.get();
+    aStream << theFeature.get() << " " << theFeature->getKind();
   return QString(aStream.str().c_str()).toStdString();
 }
 
+}
\ No newline at end of file