ext[2], ext[3],
ext[4], ext[5]);
this->GetInput()->UpdateData();
+#elif VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1
+ this->UpdateExtent(ext);
+ this->Update();
#else
this->SetUpdateExtent(ext);
this->Update();
int *wExtent = this->GetInput()->GetWholeExtent();
this->GetInput()->SetUpdateExtent(wExtent);
this->GetInput()->Update();
+#elif VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1
+ this->UpdateInformation();
+ int *wExtent = this->GetInput()->GetInformation()->Get(vtkDataObject::DATA_EXTENT());
+ this->UpdateExtent(wExtent);
+ this->Update();
#else
this->UpdateInformation();
int *wExtent = this->GetInput()->GetInformation()->Get(vtkDataObject::DATA_EXTENT());
#if VTK_MAJOR_VERSION <= 5
defaultSource->SetUpdateExtent(0, 1, 0);
this->SetSource(defaultSource);
+#elif VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1
+ int extentTemp[3] = {0, 1, 0};
+ this->UpdateExtent(extentTemp);
+ this->SetSourceData(defaultSource);
#else
this->SetUpdateExtent(0, 1, 0);
this->SetSourceData(defaultSource);
#if VTK_MAJOR_VERSION <= 5
mImageReslice->GetOutput()->SetUpdateExtent(extent);
mImageReslice->GetOutput()->Update();
+#elif VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1
+ mImageReslice->UpdateExtent(extent);
+ mImageReslice->Update();
#else
mImageReslice->SetUpdateExtent(extent);
mImageReslice->Update();
}
#if VTK_MAJOR_VERSION <= 5
mOverlayMapper->GetOutput()->SetUpdateExtent(mOverlayActor->GetDisplayExtent());
+#elif VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1
+ mOverlayMapper->UpdateExtent(mOverlayActor->GetDisplayExtent());
#else
mOverlayMapper->SetUpdateExtent(mOverlayActor->GetDisplayExtent());
#endif
if (mFusion && mFusionActor->GetVisibility()) {
#if VTK_MAJOR_VERSION <= 5
mFusionMapper->GetOutput()->SetUpdateExtent(mFusionActor->GetDisplayExtent());
+#elif VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1
+ mFusionMapper->UpdateExtent(mFusionActor->GetDisplayExtent());
#else
mFusionMapper->SetUpdateExtent(mFusionActor->GetDisplayExtent());
#endif
unsigned char red[3] = { 255, 0, 0 };
vtkSmartPointer<vtkUnsignedCharArray> colors = vtkSmartPointer<vtkUnsignedCharArray>::New();
colors->SetNumberOfComponents(3);
+#if VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1
+ colors->InsertNextTypedTuple(red);
+#else
colors->InsertNextTupleValue(red);
+#endif
mLinesPolyData->GetCellData()->SetScalars(colors);
for(int i=0;i<mCurrentSlicerManager->GetNumberOfSlicers(); i++) {