From: akl Date: Fri, 6 Mar 2009 14:00:42 +0000 (+0000) Subject: Fix of 'c' problem described in 0019932 issue (see comment 0004258). X-Git-Tag: V5_1_1rc2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=13a0daa12191ac0b313e3a4c8fe3a2d46126a673;p=modules%2Fvisu.git Fix of 'c' problem described in 0019932 issue (see comment 0004258). Added 'bool VISU_Actor::ShouldBeDisplayed()' method that returns ActiveState of Visu actor to know which one has to be displayed. --- diff --git a/src/OBJECT/VISU_Actor.cxx b/src/OBJECT/VISU_Actor.cxx index 431ffd68..339499ad 100644 --- a/src/OBJECT/VISU_Actor.cxx +++ b/src/OBJECT/VISU_Actor.cxx @@ -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 diff --git a/src/OBJECT/VISU_Actor.h b/src/OBJECT/VISU_Actor.h index dbc76f86..78c6631a 100644 --- a/src/OBJECT/VISU_Actor.h +++ b/src/OBJECT/VISU_Actor.h @@ -108,6 +108,9 @@ class VISU_OBJECT_EXPORT VISU_Actor : public VISU_ActorBase void SetVisibility(int theMode); + bool + ShouldBeDisplayed(); + //---------------------------------------------------------------------------- virtual VISU_PipeLine*