#include <vtkCutter.h>
#include <vtkPlane.h>
+#include <vtkWarpVector.h>
+
#include <vtkScalarBarActor.h>
#include <vtkScalarBarWidget.h>
aPlane->Delete();
VISU::WriteToFile( aCutter->GetOutput(), "/data/apo/elno_from_cutter.vtk" );
- VISU_ElnoAssembleFilter* anAssembleFilter = VISU_ElnoAssembleFilter::New();
- //anAssembleFilter->SetInput( aCutter->GetOutput() );
- //VISU::WriteToFile( anAssembleFilter->GetPolyDataOutput(), "/data/apo/elno_from_assemble.vtk" );
- anAssembleFilter->SetInput( anExtractScalars->GetOutput() );
- VISU::WriteToFile( anAssembleFilter->GetUnstructuredGridOutput(), "/data/apo/elno_from_assemble.vtk" );
-
//VISU_ElnoWarpVector* anElnoWarpVector = VISU_ElnoWarpVector::New();
//anElnoWarpVector->SetInput( anUnstructuredGridIDMapper->GetUnstructuredGridOutput() );
+ vtkWarpVector* anElnoWarpVector = vtkWarpVector::New();
+ anElnoWarpVector->SetInput( anExtractScalars->GetOutput() );
+
VISU_ElnoGeometryFilter *aGeometryFilter = VISU_ElnoGeometryFilter::New();
aGeometryFilter->SetScalarMode( aComponentNumber );
aGeometryFilter->SetInput( anUnstructuredGrid );
//aGeometryFilter->SetInput( aCutter->GetOutput() );
VISU::WriteToFile( aGeometryFilter->GetOutput(), "/data/apo/elno_from_geometry.vtk" );
+ VISU_ElnoAssembleFilter* anAssembleFilter = VISU_ElnoAssembleFilter::New();
+ //anAssembleFilter->SetInput( aCutter->GetOutput() );
+ //VISU::WriteToFile( anAssembleFilter->GetPolyDataOutput(), "/data/apo/elno_from_assemble.vtk" );
+ anAssembleFilter->SetInput( anExtractScalars->GetOutput() );
+ VISU::WriteToFile( anAssembleFilter->GetUnstructuredGridOutput(), "/data/apo/elno_from_assemble.vtk" );
+
vtkFloatingPointType aScalarRange[ 2 ];
aGeometryFilter->GetRange( aScalarRange );
anExtractScalars->GetOutput()->GetScalarRange( aScalarRange );
//aCutter->GetOutput()->GetScalarRange( aScalarRange );
// To calculate and apply default scale factor
- //{
- // vtkFloatingPointType aScale = VISU_DeformedShapePL::GetScaleFactor( anElnoWarpVector->GetOutput() );
- // aScale /= aScalarRange[1];
- // anElnoWarpVector->SetScaleFactor( aScale );
- //}
+ {
+ vtkFloatingPointType aScale = VISU_DeformedShapePL::GetScaleFactor( anExtractScalars->GetOutput() );
+ aScale /= aScalarRange[1];
+ anElnoWarpVector->SetScaleFactor( aScale );
+ }
//VISU_OpenGLElnoMapper* aMapper = VISU_OpenGLElnoMapper::New();
vtkDataSetMapper* aMapper = vtkDataSetMapper::New();
//aMapper->SetInput( aGeometryFilter->GetOutput() );
//aMapper->SetInput( aCutter->GetOutput() );
- aMapper->SetInput( anAssembleFilter->GetOutput() );
+ //aMapper->SetInput( anAssembleFilter->GetOutput() );
+ aMapper->SetInput( anElnoWarpVector->GetOutput() );
VISU_LookupTable* aMapperTable( VISU_LookupTable::New() );
aMapperTable->SetHueRange( 0.667, 0.0 );