X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvMainWindow.h;h=2be7e7584caaf78ad91daf261642d5b343eb7449;hb=75719c377dd8aa759f32dd277cfd7b2f914ebfa8;hp=8908b24004ca7fca8bae8c6f0e3d76fa5f9968a1;hpb=aa424793243b9b210a0d009f5cb8031db985549a;p=clitk.git diff --git a/vv/vvMainWindow.h b/vv/vvMainWindow.h index 8908b24..2be7e75 100644 --- a/vv/vvMainWindow.h +++ b/vv/vvMainWindow.h @@ -21,7 +21,12 @@ #include #include +#include "vtkVersion.h" +#if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9 #include "ui_vvMainWindow.h" +#else +#include "ui_vvMainWindowVTK7.h" +#endif #include "vvMainWindowBase.h" #include "vvToolManager.h" #include "vvImageReader.h" @@ -222,7 +227,11 @@ private: QString GetVectorIntAsString(std::vector vectorInt); 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 + void SaveScreenshot(QVTKOpenGLNativeWidget *widget); +#else void SaveScreenshot(QVTKWidget *widget); +#endif int GetImageDuplicateFilenameNumber(std::string filename); QMenu contextMenu;