X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_ViewerPrs.h;h=ebc274981b54077b325eb8bf2da61d533b97140d;hb=4ac6f2284fe917736f0b30978799a20c3ea775d1;hp=3a189d37bda920f965a7136f4972715a7c5b9b3d;hpb=537afa7e604c3b071def66b40f00a04cb74261de;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_ViewerPrs.h b/src/ModuleBase/ModuleBase_ViewerPrs.h index 3a189d37b..ebc274981 100644 --- a/src/ModuleBase/ModuleBase_ViewerPrs.h +++ b/src/ModuleBase/ModuleBase_ViewerPrs.h @@ -17,7 +17,7 @@ #include /**\class ModuleBase_ViewerPrs - * \ingroup Module base + * \ingroup GUI * \brief Presentation. Provides container to have feature, shape and/or selection owner. */ class ModuleBase_ViewerPrs @@ -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)