From: sln Date: Tue, 9 Dec 2008 12:25:37 +0000 (+0000) Subject: 0013557: field values display X-Git-Tag: Phase8_Part1_16122008~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=848f94602eb6c7f9e356ba41fcfaa0b2af28ed4f;p=modules%2Fvisu.git 0013557: field values display Now you can display values applied to the cells or nodes of 3D presentation intended for visualization of calculation data. New methods are provided in actor. This functionality is implemented on the base level. Vector actor re-implements GetValLabelsInput() only in order to provide correct data set for it. --- diff --git a/src/OBJECT/VISU_VectorsAct.cxx b/src/OBJECT/VISU_VectorsAct.cxx index 7a157e23..f878dcf9 100644 --- a/src/OBJECT/VISU_VectorsAct.cxx +++ b/src/OBJECT/VISU_VectorsAct.cxx @@ -36,6 +36,9 @@ #include #include #include +#include +#include +#include //---------------------------------------------------------------------------- vtkStandardNewMacro(VISU_VectorsAct); @@ -120,3 +123,24 @@ VISU_VectorsAct return aSize; } + +//---------------------------------------------------------------------------- +vtkDataSet* +VISU_VectorsAct +::GetValLabelsInput() +{ + VISU_VectorsPL* aPL = dynamic_cast( GetPipeLine() ); + if ( aPL ) + { + return aPL->GetMergedInput(); + /*VISU_UsedPointsFilter* aFilter = aPL->GetUsedPointsFilter(); + vtkSmartPointer< VISU_MergeFilter > aFilter = aPL->myMergeFilter; + if ( aFilter ) + { + aFilter->Update(); + return aFilter->GetOutput(); + }*/ + } + + return Superclass::GetValLabelsInput(); +} diff --git a/src/OBJECT/VISU_VectorsAct.h b/src/OBJECT/VISU_VectorsAct.h index cc76ce48..5c409c57 100644 --- a/src/OBJECT/VISU_VectorsAct.h +++ b/src/OBJECT/VISU_VectorsAct.h @@ -65,6 +65,10 @@ class VTKOCC_EXPORT VISU_VectorsAct : public VISU_ScalarMapAct virtual unsigned long int GetMemorySize(); + + virtual + vtkDataSet* + GetValLabelsInput(); protected: VISU_VectorsAct();