From: akl Date: Fri, 6 Mar 2009 13:28:47 +0000 (+0000) Subject: Fix of 'c' problem described in 0019932 issue (see comment 0004258). X-Git-Tag: V5_1_1rc2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b5544704647a53b6916595058209e6d22efd1e70;p=modules%2Fgui.git Fix of 'c' problem described in 0019932 issue (see comment 0004258). Added 'virtual bool SALOME_Actor::ShouldBeDisplayed()' method that infos whether the actor should be displayed or not. It is reimplemented in the VISU_Actor to get ActiveState of Visu actor. --- diff --git a/src/SVTK/SALOME_Actor.cxx b/src/SVTK/SALOME_Actor.cxx index 7c849f51e..e4313ba14 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -362,6 +362,16 @@ SALOME_Actor } } +/*! + Gets know whether the actor should be displayed or not +*/ +bool +SALOME_Actor +::ShouldBeDisplayed() +{ + return true; +} + /*! Set selector in order to the actor at any time can restore current selection \param theSelector - new selector diff --git a/src/SVTK/SALOME_Actor.h b/src/SVTK/SALOME_Actor.h index a8c9ac999..f859c499c 100644 --- a/src/SVTK/SALOME_Actor.h +++ b/src/SVTK/SALOME_Actor.h @@ -118,6 +118,11 @@ class SVTK_EXPORT SALOME_Actor : public VTKViewer_Actor void SetVisibility( int ); + //! Gets know whether the actor should be displayed or not + virtual + bool + ShouldBeDisplayed(); + //---------------------------------------------------------------------------- //! To publish the actor an all its internal devices virtual