vtksphere->SetRadius( 1 );
vtkPolyDataMapper *sphereMapper = vtkPolyDataMapper::New();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
sphereMapper->SetInput( vtksphere->GetOutput() );
+#else
+ sphereMapper->SetInputData( vtksphere->GetOutput() );
+#endif
sphereActor = vtkActor::New();
sphereActor->SetMapper(sphereMapper);
w2i = vtkWindowToImageFilter::New();
png = vtkPNGWriter::New();
w2i->SetInput( bbGetInputRenderer()->GetRenderWindow() );
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
png->SetInput( w2i->GetOutput() );
+#else
+ png->SetInputData( w2i->GetOutput() );
+#endif
+
png->SetFileName( newFileName.c_str() );
png->Write();
png->Delete();
mimage->SetDimensions(bbGetInputIn()->GetDimensions());
mimage->SetExtent(bbGetInputIn()->GetExtent());
mimage->SetOrigin(bbGetInputIn()->GetOrigin());
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
mimage->SetScalarType( outputformat );
mimage->AllocateScalars();
+#else
+ mimage->AllocateScalars( outputformat , 1);
+#endif
int sizeLstPointR = bbGetInputlstPointR().size();
int iAxe,sizeAxe = bbGetInputlstPointX().size();
polydatamapper = vtkPolyDataMapper::New();
mvtkactor = vtkActor::New();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
polydatamapper->SetInput(mallData);
+#else
+ polydatamapper->SetInputData(mallData);
+#endif
+
mvtkactor->SetMapper(polydatamapper);
bbSetOutputOut(mvtkactor);
}
vtkActor *vtkactor = vtkActor::New();
// polydatamapper->ScalarVisibilityOff();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
polydatamapper->SetInput(polydata);
+#else
+ polydatamapper->SetInputData(polydata);
+#endif
vtkactor->SetMapper(polydatamapper);
vecVtkPolyData.push_back( polydata );
if(img != NULL){
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
imageshiftscale->SetInput( img );
+#else
+ imageshiftscale->SetInputData( img );
+#endif
imageshiftscale->SetOutputScalarTypeToUnsignedChar();
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
imageactor->SetInput( imageshiftscale->GetOutput() );
+#else
+ imageactor->SetInputData( imageshiftscale->GetOutput() );
+#endif
if (transform!=NULL){
imageactor->SetUserTransform( transform );
} // transform
origin[1]=0.0;
origin[2]=0.0;
img->SetOrigin(origin);
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
mchange->SetInput( img );
+#else
+ mchange->SetInputData( img );
+#endif
+
//EED 2016 15 06
// mchange->SetExtentTranslation( -ext[0], -ext[2], -ext[4] );
mchange->SetOutputOrigin (0, 0, 0);
_ctfun->AddRGBPoint( greylevelcolors[i] , red[i],green[i], blue[i]);
}
-
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
_tfun->Update();
+#else
+ //...
+#endif
bbSetOutputOpacityFunction(_tfun);
bbSetOutputColorFunction(_ctfun );
bbSetOutputActive( mwxwidget->GetActive() );
private:
//HistogramWidget *mwxwidget;
- HistogramDialogComboBox *mwxwidget;
- vtkImageData* _currentimg;
+ HistogramDialogComboBox *mwxwidget;
+ vtkImageData* _currentimg;
- vtkPiecewiseFunction* _tfun;
- vtkColorTransferFunction* _ctfun;
+ vtkPiecewiseFunction* _tfun;
+ vtkColorTransferFunction* _ctfun;
};