X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_ViewerPrs.h;h=ebc274981b54077b325eb8bf2da61d533b97140d;hb=872ac5e3e0196ad70c2a01a79bd070c9a7d4a2e6;hp=cd8751fe7e69a9f425f5d61564502afb51cc851a;hpb=abab0a0689765a60fcec0d7861a3ef7893a685fa;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_ViewerPrs.h b/src/ModuleBase/ModuleBase_ViewerPrs.h index cd8751fe7..ebc274981 100644 --- a/src/ModuleBase/ModuleBase_ViewerPrs.h +++ b/src/ModuleBase/ModuleBase_ViewerPrs.h @@ -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)