From: apo Date: Fri, 3 Nov 2006 07:18:20 +0000 (+0000) Subject: To set sub range on the creation of the IsoSurface presentation according to the... X-Git-Tag: WP1_2_3_06-10-2006~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3304a7bab517a4ca3db667b72a0b03c2393e0166;p=modules%2Fvisu.git To set sub range on the creation of the IsoSurface presentation according to the source range explicitly --- 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();