Your message dated Sun, 06 Nov 2022 22:09:14 +0000
with message-id <[email protected]>
and subject line Bug#1023390: Removed package(s) from unstable
has caused the Debian Bug report #1012691,
regarding nifti2dicom: Migration from vtk7 to vtk9
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1012691: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012691
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nifti2dicom
Severity: wishlist
Tags: patch
X-Debbugs-Cc: [email protected]
Dear Maintainer,
nifti2dicom package depends on vtk7 which is quite old and not maintained
upstream.
I've succeeded to build nifti2dicom with vtk9 by changing Build-Depends from
libvtk7-qt-dev to libvtk9-qt-dev and changing the QVTKWidget to
QVTKOpenGLNativeWidget class in src/gui/init.
A simple patch is attached to this message.
Could you please look at the patch and update to vtk9?
Thanks,
François
--- a/src/gui/init.h
+++ b/src/gui/init.h
@@ -31,7 +31,7 @@
#include <QtWidgets/QLabel>
#endif
-#include "QVTKWidget.h"
+#include "QVTKOpenGLNativeWidget.h"
#include <n2dDefsImage.h>
@@ -73,7 +73,7 @@
QSlider* m_horizontalSlider;
QLineEdit* m_openedFileName;
QLineEdit* m_openedFileSizes;
- QVTKWidget* m_renderPreview;
+ QVTKOpenGLNativeWidget* m_renderPreview;
vtkImageViewer2* m_imageviewer;
vtkKWImageIO* m_reader;
vtkKWImage* m_localVTKImage;
--- a/src/gui/init.cpp
+++ b/src/gui/init.cpp
@@ -65,7 +65,7 @@
#include <vtkIndent.h>
#include <vtkVersion.h>
#include <vtkCamera.h>
-#include <QVTKWidget.h>
+#include <QVTKOpenGLNativeWidget.h>
#include "vtkKWImageIO.h"
#include "vtkKWImage.h"
@@ -101,7 +101,7 @@
m_horizontalSlider(new QSlider(Qt::Horizontal)),
m_openedFileName(new QLineEdit()),
m_openedFileSizes(new QLineEdit()),
- m_renderPreview(new QVTKWidget()),
+ m_renderPreview(new QVTKOpenGLNativeWidget()),
m_imageviewer(vtkImageViewer2::New()),
m_reader(vtkKWImageIO::New()),
m_localVTKImage(vtkKWImage::New()),
@@ -167,7 +167,8 @@
#endif
emptyImage->Delete();
- m_renderPreview->SetRenderWindow(m_imageviewer->GetRenderWindow());
+ //m_renderPreview->setRenderWindow(m_imageviewer->GetRenderWindow());
+ m_imageviewer->SetRenderWindow(m_renderPreview->renderWindow());
m_imageviewer->SetSliceOrientationToXY();
m_imageviewer->SetSlice(0);
--- End Message ---
--- Begin Message ---
Version: 0.4.11-4+rm
Dear submitter,
as the package nifti2dicom has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see https://bugs.debian.org/1023390
The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.
Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].
Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)
--- End Message ---