]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix of 'c' problem described in 0019932 issue (see comment 0004258).
authorakl <akl@opencascade.com>
Fri, 6 Mar 2009 14:00:42 +0000 (14:00 +0000)
committerakl <akl@opencascade.com>
Fri, 6 Mar 2009 14:00:42 +0000 (14:00 +0000)
Added 'bool VISU_Actor::ShouldBeDisplayed()' method that returns ActiveState of Visu actor to know which one has to be displayed.

src/OBJECT/VISU_Actor.cxx
src/OBJECT/VISU_Actor.h

index 431ffd681daa3ba48a99beb3543ccea4d415e868..339499ad2a5c2a012585f30c4cb77299c0390747 100644 (file)
@@ -548,7 +548,14 @@ VISU_Actor
   Superclass::SetVisibility( theMode );
   myValLabels->SetVisibility( myIsValLabeled && theMode );
 }
-
+//----------------------------------------------------------------------------
+  //! Gets know whether the actor should be displayed or not
+bool
+VISU_Actor
+::ShouldBeDisplayed()
+{
+  return GetFactory()->GetActiveState();
+}
 //----------------------------------------------------------------------------
 void 
 VISU_Actor
index dbc76f8694de88cf0247725e76d161dfd8696996..78c6631a60bdcd30606b5fe4bec86d5d3e3d5791 100644 (file)
@@ -108,6 +108,9 @@ class VISU_OBJECT_EXPORT VISU_Actor : public VISU_ActorBase
   void
   SetVisibility(int theMode);
 
+  bool
+  ShouldBeDisplayed();
+
   //----------------------------------------------------------------------------
   virtual
   VISU_PipeLine*