From 3304a7bab517a4ca3db667b72a0b03c2393e0166 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 3 Nov 2006 07:18:20 +0000 Subject: [PATCH] To set sub range on the creation of the IsoSurface presentation according to the source range explicitly --- src/VISU_I/VISU_IsoSurfaces_i.cc | 11 +++++++++++ src/VISU_I/VISU_IsoSurfaces_i.hh | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_IsoSurfaces_i.cc b/src/VISU_I/VISU_IsoSurfaces_i.cc index 5ef29a5d..76b59a8e 100644 --- a/src/VISU_I/VISU_IsoSurfaces_i.cc +++ b/src/VISU_I/VISU_IsoSurfaces_i.cc @@ -206,6 +206,17 @@ VISU::IsoSurfaces_i } +//---------------------------------------------------------------------------- +void +VISU::IsoSurfaces_i +::DoSetInput(bool theIsInitilizePipe) +{ + TSuperClass::DoSetInput(theIsInitilizePipe); + if(theIsInitilizePipe) + SetSubRange(GetSourceMin(), GetSourceMax()); +} + + //--------------------------------------------------------------- bool VISU::IsoSurfaces_i diff --git a/src/VISU_I/VISU_IsoSurfaces_i.hh b/src/VISU_I/VISU_IsoSurfaces_i.hh index ce1b0526..5f92ca20 100644 --- a/src/VISU_I/VISU_IsoSurfaces_i.hh +++ b/src/VISU_I/VISU_IsoSurfaces_i.hh @@ -93,7 +93,12 @@ namespace VISU void CreatePipeLine(VISU_PipeLine* thePipeLine); - //! Redefines VISU_ColoredPrs3d_i::CheckIsPossible + //! Redefines VISU_ScalarMap_i::DoSetInput + virtual + void + DoSetInput(bool theIsInitilizePipe); + + //! Redefines VISU_ScalarMap_i::CheckIsPossible virtual bool CheckIsPossible(); -- 2.39.2