From 13a0daa12191ac0b313e3a4c8fe3a2d46126a673 Mon Sep 17 00:00:00 2001 From: akl Date: Fri, 6 Mar 2009 14:00:42 +0000 Subject: [PATCH] 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. --- src/OBJECT/VISU_Actor.cxx | 9 ++++++++- src/OBJECT/VISU_Actor.h | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) 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* -- 2.39.2