Salome HOME
Fix for crash on multi-selection of group-vertices on imported body with Shift-key...
[modules/shaper.git] / src / ModuleBase / ModuleBase_ViewerPrs.h
index cd8751fe7e69a9f425f5d61564502afb51cc851a..ebc274981b54077b325eb8bf2da61d533b97140d 100644 (file)
@@ -47,7 +47,7 @@ class ModuleBase_ViewerPrs
 
   /// Sets the object.
   /// \param theResult an object instance
-  void setFeature(ObjectPtr theResult)
+  void setObject(ObjectPtr theResult)
   {
     myResult = theResult;
   }
@@ -100,6 +100,14 @@ class ModuleBase_ViewerPrs
     return myInteractive;
   }
 
+  /// Returns true if all presentation fields are empty
+  /// \return boolean value
+  bool isEmpty() const
+  {
+    return myShape.IsNull() &&
+           myOwner.IsNull() && !myResult.get();
+  }
+
   /// Returns True if the current object is equal to the given one
   /// \param thePrs an object to compare
   bool operator==(const ModuleBase_ViewerPrs& thePrs)