In vvSlicerManager.cxx: Debug: when opening a second image, all slicer were updated, not only the first
cmake_policy(VERSION 2.8)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
- #cmake_policy(SET CMP0007 NEW)
+ cmake_policy(SET CMP0007 NEW)
endif(COMMAND cmake_policy)
if(NOT DEFINED CLITK_SOURCE_DIR)
set(CLITK_SOURCE_DIR ${PROJECT_SOURCE_DIR})
endif(NOT DEFINED CLITK_SOURCE_DIR)
+# Default build type
+IF(NOT CMAKE_BUILD_TYPE)
+ SET(CMAKE_BUILD_TYPE Release CACHE STRING
+ "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
+ FORCE)
+ENDIF(NOT CMAKE_BUILD_TYPE)
#=========================================================
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
option(CLITK_BUILD_VV "Build vv the 4D visualizer (requires VTK and QT)" ON)
if(CLITK_BUILD_VV)
- set(vv_QT_VERSION "4" CACHE STRING "Expected Qt version")
- set_property(CACHE vv_QT_VERSION PROPERTY STRINGS 4 5)
- if(NOT (vv_QT_VERSION VERSION_EQUAL "4" OR vv_QT_VERSION VERSION_EQUAL "5"))
- message(FATAL_ERROR "Expected value for vv_QT_VERSION is either '4' or '5'")
- endif()
+ if(VTK_VERSION VERSION_LESS 6.0.0)
+ set(vv_QT_VERSION "4" CACHE INTERNAL "Expected Qt version")
+ else()
+ set(vv_QT_VERSION "5" CACHE INTERNAL "Expected Qt version")
+ endif()
add_subdirectory(${CLITK_SOURCE_DIR}/vv ${PROJECT_BINARY_DIR}/vv)
endif(CLITK_BUILD_VV)
# To avoid warning with some version
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
- #cmake_policy(SET CMP0007 NEW)
+ cmake_policy(SET CMP0007 NEW)
endif(COMMAND cmake_policy)
#=========================================================
#define VVINTENSITYVALUESLIDER_H
// qt
+#include <QtGlobal>
#if QT_VERSION < 0x050000
#include <QtDesigner/QDesignerExportWidget>
#else
#include "vvImage.h"
// qt
+#include <QtGlobal>
#if QT_VERSION < 0x050000
#include <QtDesigner/QDesignerExportWidget>
#else
mSlicerManagers.back()->SetSlicerWindow(1,NEViewWidget->GetRenderWindow());
mSlicerManagers.back()->SetSlicerWindow(2,SOViewWidget->GetRenderWindow());
mSlicerManagers.back()->SetSlicerWindow(3,SEViewWidget->GetRenderWindow());
- mSlicerManagers.back()->Render(); // SR: displayed #slice is wrong without this
+#if VTK_MAJOR_VERSION <= 5
+ mSlicerManagers.back()->Render(); // SR: displayed #slice is wrong without this / TB: With VTK6 and multiple images, all slicers are updated, not only the first
+#endif
}
}
#ifndef VVTOOLBINARIZE_H
#define VVTOOLBINARIZE_H
+#include <QtGlobal>
#if QT_VERSION < 0x050000
#include <QtDesigner/QDesignerExportWidget>
#else
#define VVTOOLCROPIMAGE_H
//qt
+#include <QtGlobal>
#if QT_VERSION < 0x050000
#include <QtDesigner/QDesignerExportWidget>
#else
#ifndef VVTOOLImageArithm_H
#define VVTOOLImageArithm_H
+#include <QtGlobal>
#if QT_VERSION < 0x050000
#include <QtDesigner/QDesignerExportWidget>
#else
#define VVTOOLINPUTSELECTORWIDGET_H
// qt
+#include <QObject>
#if QT_VERSION < 0x050000
#include <QtDesigner/QDesignerExportWidget>
#else
#include <vvImage.h>
+#include <QtGlobal>
#if QT_VERSION < 0x050000
#include <QtDesigner/QDesignerExportWidget>
#else
#ifndef VVTOOLMedianFilter_H
#define VVTOOLMedianFilter_H
-
+
+#include <QtGlobal>
#if QT_VERSION < 0x050000
#include <QtDesigner/QDesignerExportWidget>
#else
#ifndef VVTOOLPROFILE_H
#define VVTOOLPROFILE_H
+#include <QtGlobal>
#if QT_VERSION < 0x050000
#include <QtDesigner/QDesignerExportWidget>
#else
#ifndef VVTOOLROIMANAGER_H
#define VVTOOLROIMANAGER_H
+#include <QtGlobal>
#if QT_VERSION < 0x050000
#include <QtDesigner/QDesignerExportWidget>
#else
#ifndef VVTOOLSEGMENTATION_H
#define VVTOOLSEGMENTATION_H
+#include <QtGlobal>
#if QT_VERSION < 0x050000
#include <QtDesigner/QDesignerExportWidget>
#else
===========================================================================**/
#ifndef VVTOOLSIMPLEINPUTSELECTORWIDGET_H
#define VVTOOLSIMPLEINPUTSELECTORWIDGET_H
+
+#include <QtGlobal>
#if QT_VERSION < 0x050000
#include <QtDesigner/QDesignerExportWidget>
#else
#ifndef VVTOOLWIDGETBASE_H
#define VVTOOLWIDGETBASE_H
+#include <QtGlobal>
#if QT_VERSION < 0x050000
#include <QtDesigner/QDesignerExportWidget>
#else