//---------------------------------------------
void creaVtkStreamLine::Process()
{
- printf("EED creaVtkStreamLine::Process Start \n");
if (_polydata!=NULL)
{
_polydata->Modified();
- printf("EED creaVtkStreamLine::Process 0 %p \n", _polydata);
if (GetTypeForm()==0)
{
- printf("EED creaVtkStreamLine::Process 1 \n");
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_tubefilter->SetInput( _polydata );
+#else
+ _tubefilter->SetInputData( _polydata );
+#endif
_tubefilter->SetRadius( GetScaleFactor() );
_tubefilter->SetNumberOfSides(12);
_tubefilter->SetVaryRadiusToVaryRadiusOff();
_tubefilter->Modified();
_tubefilter->Update();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_streamMapper2->SetInput( _tubefilter->GetOutput() );
+#else
+ _streamMapper2->SetInputData( _tubefilter->GetOutput() );
+#endif
}
if (GetTypeForm()==1)
{
- printf("EED creaVtkStreamLine::Process 2 \n");
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_ribbonfilter->SetInput( _polydata );
+#else
+ _ribbonfilter->SetInputData( _polydata );
+#endif
_ribbonfilter->SetWidth( GetScaleFactor() );
_ribbonfilter->SetWidthFactor( GetScaleFactor()*10 );
_ribbonfilter->GlobalWarningDisplayOff (); //EED this is to avoid the "BEVEL WARNING"
_ribbonfilter->Modified();
_ribbonfilter->Update();
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_streamMapper2->SetInput( _ribbonfilter->GetOutput() );
+#else
+ _streamMapper2->SetInputData( _ribbonfilter->GetOutput() );
+#endif
}
if (GetTypeForm()==2)
{
- printf("EED creaVtkStreamLine::Process 3 \n");
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_streamMapper2->SetInput( _polydata );
+#else
+ _streamMapper2->SetInputData( _polydata );
+#endif
}
- printf("EED creaVtkStreamLine::Process 4 \n");
//EED _streamMapper2->SetLookupTable(vGreenToRedLut);
/*
}
_polydata->GetPointData()->AddArray(_velocity);
*/
- printf("EED creaVtkStreamLine::Process A \n" );
-
- vtkPointData *data = _polydata->GetPointData();
-printf("EED -------------------------------------------\n");
- _polydata->Print(std::cout);
-printf("EED -------------------------------------------\n");
- data->Print(std::cout);
-printf("EED -------------------------------------------\n");
// vtkFieldData *data = _polydata->GetFieldData();
// vtkDataArray *da = pointdata->GetArray("Normals");
- int i,sizeDa = data->GetNumberOfArrays();
- printf("EED creaVtkStreamLine::Process sizeDa %d \n", sizeDa );
- for (i=0;i<sizeDa;i++)
- {
- printf("EED creaVtkStreamLine::Process-name %d, %s \n", i, data->GetArrayName(i) );
- data->GetArray(i)->Print(std::cout);
-printf("EED -------------------------------------------\n");
- }
+// vtkPointData *data = _polydata->GetPointData();
+// int i,sizeDa = data->GetNumberOfArrays();
+// printf("EED creaVtkStreamLine::Process sizeDa %d \n", sizeDa );
+// for (i=0;i<sizeDa;i++)
+// {
+// printf("EED creaVtkStreamLine::Process-name %d, %s \n", i, data->GetArrayName(i) );
+// data->GetArray(i)->Print(std::cout);
+// }
VisibilityActor();
} // polydata
- printf("EED creaVtkStreamLine::Process End \n");
}