#Special case for Main Window with QVTKWidget according VTK version
foreach(tool ${vv_TOOLS_VTK7} ${vv_COMMON_WITH_UI_VTK7})
set(vv_SRCS ${vv_SRCS} ${tool}.cxx)
- if(VTK_VERSION VERSION_GREATER "8.0.0")
+ if(VTK_VERSION VERSION_GREATER "8.2.0")
if(vv_QT_VERSION VERSION_GREATER "4")
QT5_WRAP_CPP(vv_SRCS ${tool}.h)
QT5_WRAP_UI(vv_UI_CXX qt_ui/${tool}.ui)
//------------------------------------------------------------------------------
void vvMainWindow::SaveScreenshotAllSlices()
{
-#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
+#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 2) || VTK_MAJOR_VERSION >= 9
QVTKOpenGLNativeWidget *widget = NOViewWidget;
#else
QVTKWidget *widget = NOViewWidget;
// Screenshot
vtkSmartPointer<vtkWindowToImageFilter> windowToImageFilter = vtkSmartPointer<vtkWindowToImageFilter>::New();
windowToImageFilter->SetInput(renderWindow);
-#if (VTK_MAJOR_VERSION >= 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
+#if (VTK_MAJOR_VERSION >= 8 && VTK_MINOR_VERSION >= 2) || VTK_MAJOR_VERSION >= 9
windowToImageFilter->SetScale(1);
#else
windowToImageFilter->SetMagnification(1);
//------------------------------------------------------------------------------
-#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
+#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 2) || VTK_MAJOR_VERSION >= 9
void vvMainWindow::SaveScreenshot(QVTKOpenGLNativeWidget *widget)
#else
void vvMainWindow::SaveScreenshot(QVTKWidget *widget)
if (!fileName.isEmpty()) {
vtkSmartPointer<vtkWindowToImageFilter> w2i = vtkSmartPointer<vtkWindowToImageFilter>::New();
w2i->SetInput(widget->GetRenderWindow());
-#if (VTK_MAJOR_VERSION >= 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
+#if (VTK_MAJOR_VERSION >= 8 && VTK_MINOR_VERSION >= 2) || VTK_MAJOR_VERSION >= 9
w2i->SetScale(1);
#else
w2i->SetMagnification(1);
#include <vector>
#include <QDropEvent>
#include "vtkVersion.h"
-#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
+#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 2) || VTK_MAJOR_VERSION >= 9
#include "ui_vvMainWindow.h"
#else
#include "ui_vvMainWindowVTK7.h"
std::vector<QTreeWidgetItem*> GetItemFromPathname(const QString& pathname);
int GetSlicerIndexFromItem(QTreeWidgetItem* item); //this actually returns the SlicerManager index TODO: rename it to GetSlicerManagerIndexFromItem
QTreeWidgetItem* GetItemFromSlicerManager(vvSlicerManager* sm);
-#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
+#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 2) || VTK_MAJOR_VERSION >= 9
void SaveScreenshot(QVTKOpenGLNativeWidget *widget);
#else
void SaveScreenshot(QVTKWidget *widget);
#ifndef _VVSEGMENTATIONDIALOG_H
#define _VVSEGMENTATIONDIALOG_H
#include <vtkVersion.h>
-#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
+#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 2) || VTK_MAJOR_VERSION >= 9
#include "ui_vvSegmentationDialog.h"
#else
#include "ui_vvSegmentationDialogVTK7.h"
#ifndef _vvSurfaceViewerDialog_H
#define _vvSurfaceViewerDialog_H
#include <vtkVersion.h>
-#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
+#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 2) || VTK_MAJOR_VERSION >= 9
#include "ui_vvSurfaceViewerDialog.h"
#else
#include "ui_vvSurfaceViewerDialogVTK7.h"
//------------------------------------------------------------------------------
-#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
+#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 2) || VTK_MAJOR_VERSION >= 9
QVTKOpenGLNativeWidget* vvToolHistogram::GetHistogramWidget()
#else
QVTKWidget* vvToolHistogram::GetHistogramWidget()
#include "vvToolBase.h"
#include "vvToolWidgetBase.h"
#include <vtkVersion.h>
-#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
+#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 2) || VTK_MAJOR_VERSION >= 9
#include "ui_vvToolHistogram.h"
#else
#include "ui_vvToolHistogramVTK7.h"
void displayHistogram();
-#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
+#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 2) || VTK_MAJOR_VERSION >= 9
QVTKOpenGLNativeWidget* GetHistogramWidget();
#else
QVTKWidget* GetHistogramWidget();
#include "vvImageContour.h"
#include "vvLandmarks.h"
#include <vtkVersion.h>
-#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
+#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 2) || VTK_MAJOR_VERSION >= 9
#include "ui_vvToolProfile.h"
#else
#include "ui_vvToolProfileVTK7.h"