#else
mOverlayReslice->SetInputData(0, mOverlay->GetFirstVTKImageData());
#endif
- mImageReslice->UpdateInformation();
mOverlayReslice->Update();
if (!mOverlayMapper)
#if VTK_MAJOR_VERSION <= 5
mFusionMapper->SetInput(mFusionReslice->GetOutput());
#else
- mFusionMapper->SetInputData(mFusionReslice->GetOutput());
+ mFusionMapper->SetInputConnection(mFusionReslice->GetOutputPort(0));
#endif
if (!mFusionActor) {
// Image actor
this->ImageActor->SetVisibility(mImageVisibility);
-#if VTK_MAJOR_VERSION <= 5
this->ImageActor->SetDisplayExtent(w_ext);
-#else
+#if VTK_MAJOR_VERSION >= 6
vtkSmartPointer<vtkOpenGLImageSliceMapper> mapperOpenGL= vtkSmartPointer<vtkOpenGLImageSliceMapper>::New();
try {
mapperOpenGL = dynamic_cast<vtkOpenGLImageSliceMapper*>(GetImageActor()->GetMapper());
}
if (mFirstSetSliceOrientation) {
copyExtent(ext, mRegisterExtent);
- this->ImageActor->SetDisplayExtent(w_ext); //initialisation
} else {
int w_croppingRegion[6];
copyExtent(mRegisterExtent, w_croppingRegion);
- this->ImageActor->SetDisplayExtent(w_ext);
w_croppingRegion[ this->SliceOrientation*2 ] = this->Slice;
w_croppingRegion[ this->SliceOrientation*2+1 ] = this->Slice;
- mapperOpenGL->SetCroppingRegion(w_croppingRegion);
+ mapperOpenGL->SetCroppingRegion(w_croppingRegion);
}
#endif
#if VTK_MAJOR_VERSION <= 5
bool out = ClipDisplayedExtent(overExtent, mOverlayMapper->GetInput()->GetWholeExtent());
#else
- bool out = ClipDisplayedExtent(overExtent, mOverlayMapper->GetInput()->GetInformation()->Get(vtkDataObject::DATA_EXTENT()));
+ bool out = ClipDisplayedExtent(overExtent, this->GetExtent());
#endif
mOverlayActor->SetVisibility(!out);
mOverlayActor->SetDisplayExtent( overExtent );
#if VTK_MAJOR_VERSION <= 5
bool out = ClipDisplayedExtent(fusExtent, mFusionMapper->GetInput()->GetWholeExtent());
#else
- bool out = ClipDisplayedExtent(fusExtent, mFusionMapper->GetInput()->GetInformation()->Get(vtkDataObject::DATA_EXTENT()));
+ bool out = ClipDisplayedExtent(fusExtent, this->GetExtent());
#endif
mFusionActor->SetVisibility(!out);
mFusionActor->SetDisplayExtent( fusExtent );