#include "VTKViewer_TransformFilter.h"
#include "VTKViewer_Transform.h"
#include "VISU_MergeFilter.hxx"
-
+#include "VISU_ElnoDisassembleFilter.hxx"
#include "VISU_PipeLineUtils.hxx"
#include <vtkWarpVector.h>
myScalarsFieldTransform = VISU_FieldTransform::New();
myCellDataToPointData = vtkCellDataToPointData::New();
+ myScalarsElnoDisassembleFilter = VISU_ElnoDisassembleFilter::New();
}
//----------------------------------------------------------------------------
::UpdateScalars()
{
vtkDataSet* aScalars = GetScalars();
- myScalarsExtractor->SetInput(aScalars);
+ myScalarsElnoDisassembleFilter->SetInput(aScalars);
+ myScalarsExtractor->SetInput(myScalarsElnoDisassembleFilter->GetOutput());
- if(VISU::IsDataOnCells(aScalars))
+ if(VISU::IsDataOnCells(myScalarsElnoDisassembleFilter->GetOutput()))
GetMapper()->SetScalarModeToUseCellData();
else
GetMapper()->SetScalarModeToUsePointData();
{
if(GetScalars() == theScalars)
return;
-
+
myScalars = theScalars;
UpdateScalars();
}
class vtkUnstructuredGrid;
class vtkCellDataToPointData;
class vtkPointDataToCellData;
+class VISU_ElnoDisassembleFilter;
//----------------------------------------------------------------------------
vtkCellDataToPointData* myCellDataToPointData;
VISU_FieldTransform* myScalarsFieldTransform;
VISU_Extractor* myScalarsExtractor;
+ VISU_ElnoDisassembleFilter* myScalarsElnoDisassembleFilter;
};
#endif