From: apo Date: Fri, 26 Aug 2005 05:59:31 +0000 (+0000) Subject: To customize VISU::ScalarMap_i::Build method X-Git-Tag: BR-D5-38-2003_D2005-12-09~99 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7afb0d26d08d719f3c902d6f0ab0ad178897f088;p=modules%2Fvisu.git To customize VISU::ScalarMap_i::Build method --- diff --git a/src/VISU_I/VISU_GaussPoints_i.cc b/src/VISU_I/VISU_GaussPoints_i.cc index 4f04ec45..81d2c463 100644 --- a/src/VISU_I/VISU_GaussPoints_i.cc +++ b/src/VISU_I/VISU_GaussPoints_i.cc @@ -25,6 +25,7 @@ // Module : #include "VISU_GaussPoints_i.hh" +#include "VISU_GaussPointsPL.hxx" #include "VISU_Result_i.hh" using namespace VISU; @@ -122,10 +123,20 @@ VISU::GaussPoints_i } +void VISU::GaussPoints_i::DoSetInput(Result_i* theResult){ + ScalarMap_i::DoSetInput(theResult); +} + + void VISU::GaussPoints_i ::DoHook() { + if(!myPipeLine) + myPipeLine = VISU_GaussPointsPL::New(); + + myGaussPointsPL = dynamic_cast(myPipeLine); + ScalarMap_i::DoHook(); } diff --git a/src/VISU_I/VISU_GaussPoints_i.hh b/src/VISU_I/VISU_GaussPoints_i.hh index 44a45e6e..8d183989 100644 --- a/src/VISU_I/VISU_GaussPoints_i.hh +++ b/src/VISU_I/VISU_GaussPoints_i.hh @@ -54,6 +54,7 @@ namespace VISU typedef VISU::GaussPoints TInterface; protected: + virtual void DoSetInput(Result_i* theResult); virtual void DoHook(); VISU_GaussPointsPL *myGaussPointsPL;