_imageSphere = vtkImageData::New();
_imageSphere->SetDimensions (150,150,500);
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
//EED
// _imageSphere->SetScalarTypeToUnsignedShort();
_imageSphere->SetScalarType( _imageDataOriginal->GetScalarType() );
-
_imageSphere->AllocateScalars();
_imageSphere->Update();
+#else
+ _imageSphere->AllocateScalars(_imageDataOriginal->GetScalarType(),1);
+#endif
+
+
//EED ???? vtkBaseData no esta compartido con los otros objetos .. PLOP
// vtkBaseData *vtkbasedata = new vtkBaseData();
void wxSphereView::RefreshView()
{
//EED
- _imageViewer2XYZ->GetVtkImageViewer2()->SetInput ( _imageSphere );
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
+ _imageViewer2XYZ->GetVtkImageViewer2()->SetInput( _imageSphere );
+#else
+ _imageViewer2XYZ->GetVtkImageViewer2()->SetInputData( _imageSphere );
+#endif
DefineImageSphere();
// UpdateColorWindowLevel();
// wxVtk2DBaseView::Refresh();
}
}
_imageSphere->Modified();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_imageSphere->Update();
+#else
+ // ..
+#endif
}
//----------------------------------------------------------------------------