]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix of 'c' problem described in 0019932 issue (see comment 0004258).
authorakl <akl@opencascade.com>
Fri, 6 Mar 2009 13:28:47 +0000 (13:28 +0000)
committerakl <akl@opencascade.com>
Fri, 6 Mar 2009 13:28:47 +0000 (13:28 +0000)
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.

src/SVTK/SALOME_Actor.cxx
src/SVTK/SALOME_Actor.h

index 7c849f51e24843149524e232ca786b84eafb62d7..e4313ba14949ce2a660057bd78e543c2922151d2 100644 (file)
@@ -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
index a8c9ac999134dd011d9694ad704b4e8de281cfac..f859c499c6beb721607fae87bbc2373556dce064 100644 (file)
@@ -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