From quentan at gmail.com Thu Apr 2 12:10:30 2015 From: quentan at gmail.com (Quentan Qi) Date: Thu, 2 Apr 2015 13:10:30 +0100 Subject: [Ctk-developers] Running error of 'vtkContextDevice2D' Message-ID: Dear Community Members, I?m now using CTK for VTK UI design, and want to use its `ctkVTKVolumePropertyWidget` widget, but received `no override found for 'vtkContextDevice2D?.` error. The test application `ctkVTKVolumePropertyWidgetTest1` of `/CTKBuild/CTK-build/bin/CTKVisualizationVTKWidgetsCppTests`receives the same error. A mail list explains this error of the OpenGL override moving from `vtkContextDevice2D` to `Rendering/ContextOpenGL`, but I have no idea how to split it. Is there any detailed solution? ### CTK build options, using the latest CTK fork 02-Apr-2015 ``` cmake -DCMAKE_MACOSX_RPATH:BOOL=OFF -DCMAKE_INSTALL_PREFIX:STRING=/usr/local/ctk -DCMAKE_BUILD_TYPE:STRING=Release -DCTK_ENABLE_Widgets:BOOL=ON -DCTK_LIB_Visualization/VTK/Widgets:BOOL=ON -DVTK_DIR:PATH=/usr/local/vtk/lib/cmake/vtk-6.2 -DCTK_BUILD_EXAMPLES:BOOL=ON -DCTK_LIB_ImageProcessing/ITK/Core:BOOL=ON -DITK_DIR:PATH=/usr/local/itk/lib/cmake/ITK-4.7 -DCTK_LIB_Visualization/VTK/Widgets_USE_TRANSFER_FUNCTION_CHARTS:BOOL=ON ../CTKSource ``` > Note: I used `-DCTK_LIB_Visualization/VTK/Widgets_USE_TRANSFER_FUNCTION_CHARTS:BOOL=ON` flag for volume transfer function widget. It is right? ### `CMakeLists.txt` ``` cmake_minimum_required(VERSION 3.1) project(TEST_VTK_CTK) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") find_package(CTK REQUIRED) include(${CTK_USE_FILE}) #find_package(ITK REQUIRED) #include(${ITK_USE_FILE}) find_package(VTK REQUIRED) include(${VTK_USE_FILE}) find_package(Qt4 REQUIRED) include(${QT_USE_FILE}) set(SOURCE_FILES_6 PlayGround.cxx) add_executable(Test6 MACOSX_BUNDLE ${SOURCE_FILES_6}) target_link_libraries(Test6 ${CTK_LIBRARIES} ${VTK_LIBRARIES}) ``` ### Source file ``` // Qt includes #include // CTK-VTK includes #include "ctkVTKVolumePropertyWidget.h" // VTK includes #include #include #include #include // STD includes #include //----------------------------------------------------------------------------- int main(int argc, char * argv [] ) { QApplication app(argc, argv); vtkSmartPointer ctf = vtkSmartPointer::New(); ctf->AddRGBPoint(0.2, 0.6941,0.76,0., 0.5, 0.); ctf->AddRGBPoint(0.4, 0.,0.6941,0.96); ctf->AddRGBPoint(0.8, 0.9686,0.76,0.); vtkSmartPointer otf = vtkSmartPointer::New(); otf->AddPoint(0.2, 0.6941); otf->AddPoint(0.4, 0.641); otf->AddPoint(0.8, 0.9686); vtkSmartPointer otf2 = vtkSmartPointer::New(); otf2->AddPoint(0.0, 0.6941); otf2->AddPoint(0.1, 0.641); otf2->AddPoint(0.7, 0.9686); vtkSmartPointer volumeProperty = vtkSmartPointer::New(); volumeProperty->SetColor(ctf); volumeProperty->SetScalarOpacity(otf); double range[2] = {0., 1.}; volumeProperty->GetGradientOpacity()->AdjustRange(range); ctkVTKVolumePropertyWidget widget; // widget.setUseThresholdSlider(true); widget.setVolumeProperty(volumeProperty); volumeProperty->SetScalarOpacity(otf2); widget.moveAllPoints(0.1, -0.1); widget.moveAllPoints(-0.1, 0.1); widget.show(); return app.exec(); } ``` This is an example from `https://github.com/commontk/CTK/blob/master/Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKVolumePropertyWidgetTest1.cpp` . ### Running error info (No compiling error) ``` Generic Warning: In /Develop/VTK/VTKSource-6.2.0/Rendering/Context2D/vtkContextDevice2D.cxx, line 27 Error: no override found for 'vtkContextDevice2D'. Process finished with exit code 11 ``` Cheers, Quentan -------------- next part -------------- An HTML attachment was scrubbed... URL: From h1lan at eng.ucsd.edu Tue Apr 7 00:16:19 2015 From: h1lan at eng.ucsd.edu (Hongzhi Lan) Date: Mon, 6 Apr 2015 17:16:19 -0700 Subject: [Ctk-developers] ctk building error with itk4.71 Message-ID: HI, CTK members, I'm trying to build CTK with newest versions of VTK, ITK and PythonQt. I can build ctk successfully with Qt4.8.6, VTK6.2.0 and PythonQt3.0,but when I provide ITK_DIR for my ITK4.7.1 build, an error happens. Although I have Qt5 installed too, but in cmake for ctk build, moc and qmake are specifically set as .../Qt4.8.6/bin/moc and .../Qt4.8.6/bin/qmake. But it seems moc from Q5 was used instead. I don't why. I'm using CTK downloaded on April 3, 2015, on Ubuntu14.04 64bit. ..../CTK-Build-Test/CTK-build/Libs/Core/moc_ctkBooleanMapper.cxx:15:2: error: #error "This file was generated using the moc from 5.4.1. It" #error "This file was generated using the moc from 5.4.1. It" ^ .../CTK-Build-Test/CTK-build/Libs/Core/moc_ctkBooleanMapper.cxx:16:2: error: #error "cannot be used with the include files from this version of Qt." #error "cannot be used with the include files from this version of Qt." ^ .../CTK-Build-Test/CTK-build/Libs/Core/moc_ctkBooleanMapper.cxx:17:2: error: #error "(The moc has changed too much.)" #error "(The moc has changed too much.)" ... Thanks, Hongzhi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchris.fillionr at kitware.com Tue Apr 7 20:32:39 2015 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Tue, 7 Apr 2015 16:32:39 -0400 Subject: [Ctk-developers] Scheduled maintenance of Kitware public services starting at 5pm *TODAY* Message-ID: Hi Folks, The expected downtime for the services listed below is ~1hr (time for the disk check to complete). Slicer services (wiki, dashboard, tracker, ...) will NOT be affected. Thanks Jc Public hosts public git repositories, wordpress sites, wikis, mailman lists, bug trackers, etc. for the following domains: public.kitware.com batchmake.org calatk.org paraview.org cmake.org cmb.org gccxml.org igstk.org kwiver.org kwwidgets.org marchingcubes.org netdmf.org openchemistry.org openrtk.org openview.kitware.com simpleitk.org slideatlas.kitware.com sprokit.org tangelohub.org tomviz.org tubetk.org vtk.org visomics.org vtkedge.org m.vtk.org xdmf.org xvis.org -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchris.fillionr at kitware.com Tue Apr 7 21:15:46 2015 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Tue, 7 Apr 2015 17:15:46 -0400 Subject: [Ctk-developers] Scheduled maintenance of Kitware public services starting at 5pm *TODAY* In-Reply-To: References: Message-ID: Hi Folks, Services are back to normal. Thanks for your patience, Jc On Tue, Apr 7, 2015 at 4:32 PM, Jean-Christophe Fillion-Robin < jchris.fillionr at kitware.com> wrote: > Hi Folks, > > The expected downtime for the services listed below is ~1hr (time for the > disk check to complete). > > Slicer services (wiki, dashboard, tracker, ...) will NOT be affected. > > Thanks > Jc > > Public hosts public git repositories, wordpress sites, wikis, mailman > lists, bug trackers, etc. for the following domains: > public.kitware.com > batchmake.org > calatk.org > paraview.org > cmake.org > cmb.org > gccxml.org > igstk.org > kwiver.org > kwwidgets.org > marchingcubes.org > netdmf.org > openchemistry.org > openrtk.org > openview.kitware.com > simpleitk.org > slideatlas.kitware.com > sprokit.org > tangelohub.org > tomviz.org > tubetk.org > vtk.org > visomics.org > vtkedge.org > m.vtk.org > xdmf.org > xvis.org > > -- > +1 919 869 8849 > -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchris.fillionr at kitware.com Thu Apr 16 13:16:32 2015 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Thu, 16 Apr 2015 09:16:32 -0400 Subject: [Ctk-developers] CDash downtime planed for Wednesday April 22nd - 4.30pm to 6.30pm EST Message-ID: Hi Folks, Next week, the database associated with the following CDash instance will be stopped for upgrade. It means access to the server and submission will NOT work during the downtime. http://trunk.cdash.org http://slicer.cdash.org http://open.cdash.org http://dashboards.cdash.org http://my.cdash.org http://openchemistry.cdash.org Thanks and sorry for the inconvenience, Jc -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: From julien.finet at kitware.com Fri Apr 17 13:54:31 2015 From: julien.finet at kitware.com (Julien Finet) Date: Fri, 17 Apr 2015 15:54:31 +0200 Subject: [Ctk-developers] Running error of 'vtkContextDevice2D' In-Reply-To: References: Message-ID: Hi Quentan, Can you try to add *vtkRenderingContextOpenGL *in *VTK_LIBRARIES *within the if block *IF (${CTK_USE_CHARTS}) *? https://github.com/commontk/CTK/blob/master/Libs/Visualization/VTK/Widgets/CMakeLists.txt#L160 Thanks, Julien. On Thu, Apr 2, 2015 at 2:10 PM, Quentan Qi wrote: > Dear Community Members, > > I?m now using CTK for VTK UI design, and want to use its > `ctkVTKVolumePropertyWidget` widget, but received `no override found for > 'vtkContextDevice2D?.` error. > > The test application `ctkVTKVolumePropertyWidgetTest1` of > `/CTKBuild/CTK-build/bin/CTKVisualizationVTKWidgetsCppTests`receives the > same error. > > A mail list explains > this error of the OpenGL override moving from `vtkContextDevice2D` to > `Rendering/ContextOpenGL`, but I have no idea how to split it. Is there any > detailed solution? > > > ### CTK build options, using the latest CTK fork 02-Apr-2015 > ``` > cmake -DCMAKE_MACOSX_RPATH:BOOL=OFF > -DCMAKE_INSTALL_PREFIX:STRING=/usr/local/ctk > -DCMAKE_BUILD_TYPE:STRING=Release -DCTK_ENABLE_Widgets:BOOL=ON > -DCTK_LIB_Visualization/VTK/Widgets:BOOL=ON > -DVTK_DIR:PATH=/usr/local/vtk/lib/cmake/vtk-6.2 > -DCTK_BUILD_EXAMPLES:BOOL=ON -DCTK_LIB_ImageProcessing/ITK/Core:BOOL=ON > -DITK_DIR:PATH=/usr/local/itk/lib/cmake/ITK-4.7 > -DCTK_LIB_Visualization/VTK/Widgets_USE_TRANSFER_FUNCTION_CHARTS:BOOL=ON > ../CTKSource > ``` > > > Note: I used > `-DCTK_LIB_Visualization/VTK/Widgets_USE_TRANSFER_FUNCTION_CHARTS:BOOL=ON` > flag for volume transfer function widget. It is right? > > ### `CMakeLists.txt` > ``` > cmake_minimum_required(VERSION 3.1) > > project(TEST_VTK_CTK) > > set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") > > find_package(CTK REQUIRED) > include(${CTK_USE_FILE}) > > #find_package(ITK REQUIRED) > #include(${ITK_USE_FILE}) > > find_package(VTK REQUIRED) > include(${VTK_USE_FILE}) > > find_package(Qt4 REQUIRED) > include(${QT_USE_FILE}) > > set(SOURCE_FILES_6 PlayGround.cxx) > add_executable(Test6 MACOSX_BUNDLE ${SOURCE_FILES_6}) > target_link_libraries(Test6 ${CTK_LIBRARIES} ${VTK_LIBRARIES}) > ``` > > ### Source file > ``` > // Qt includes > #include > > // CTK-VTK includes > #include "ctkVTKVolumePropertyWidget.h" > > // VTK includes > #include > #include > #include > #include > > // STD includes > #include > > > //----------------------------------------------------------------------------- > int main(int argc, char * argv [] ) { > > QApplication app(argc, argv); > > vtkSmartPointer ctf = > vtkSmartPointer::New(); > ctf->AddRGBPoint(0.2, 0.6941,0.76,0., 0.5, 0.); > ctf->AddRGBPoint(0.4, 0.,0.6941,0.96); > ctf->AddRGBPoint(0.8, 0.9686,0.76,0.); > > vtkSmartPointer otf = > vtkSmartPointer::New(); > otf->AddPoint(0.2, 0.6941); > otf->AddPoint(0.4, 0.641); > otf->AddPoint(0.8, 0.9686); > > vtkSmartPointer otf2 = > vtkSmartPointer::New(); > otf2->AddPoint(0.0, 0.6941); > otf2->AddPoint(0.1, 0.641); > otf2->AddPoint(0.7, 0.9686); > > vtkSmartPointer volumeProperty = > vtkSmartPointer::New(); > volumeProperty->SetColor(ctf); > volumeProperty->SetScalarOpacity(otf); > double range[2] = {0., 1.}; > volumeProperty->GetGradientOpacity()->AdjustRange(range); > > ctkVTKVolumePropertyWidget widget; > // widget.setUseThresholdSlider(true); > widget.setVolumeProperty(volumeProperty); > > volumeProperty->SetScalarOpacity(otf2); > > widget.moveAllPoints(0.1, -0.1); > widget.moveAllPoints(-0.1, 0.1); > > widget.show(); > > return app.exec(); > } > ``` > > This is an example from ` > https://github.com/commontk/CTK/blob/master/Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKVolumePropertyWidgetTest1.cpp` > . > > ### Running error info (No compiling error) > ``` > Generic Warning: In > /Develop/VTK/VTKSource-6.2.0/Rendering/Context2D/vtkContextDevice2D.cxx, > line 27 > Error: no override found for 'vtkContextDevice2D'. > > > Process finished with exit code 11 > ``` > > Cheers, > Quentan > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at public.kitware.com > http://public.kitware.com/mailman/listinfo/ctk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From quentan at gmail.com Mon Apr 20 19:36:06 2015 From: quentan at gmail.com (Quentan Qi) Date: Mon, 20 Apr 2015 20:36:06 +0100 Subject: [Ctk-developers] Running error of 'vtkContextDevice2D' In-Reply-To: References: Message-ID: <3ADDFC8A-0A85-4ECA-8D03-A0CCB66EC4DD@gmail.com> Hi Julien, Thank you for your response. I recompiled CTK following your suggestion, but the issue remains. The error is exactly same as before :-( ``` 158 if(${VTK_VERSION_MAJOR} GREATER 5) 159 set(VTK_LIBRARIES 160 vtkRenderingContextOpenGL 161 vtkChartsCore 162 ${VTK_LIBRARIES}) ``` Any other solutions? Cheers, Quentan > On 17 Apr 2015, at 14:54, Julien Finet wrote: > > Hi Quentan, > > Can you try to add vtkRenderingContextOpenGL in VTK_LIBRARIES within the if block IF (${CTK_USE_CHARTS}) ? > https://github.com/commontk/CTK/blob/master/Libs/Visualization/VTK/Widgets/CMakeLists.txt#L160 > > Thanks, > Julien. > > On Thu, Apr 2, 2015 at 2:10 PM, Quentan Qi > wrote: > Dear Community Members, > > I?m now using CTK for VTK UI design, and want to use its `ctkVTKVolumePropertyWidget` widget, but received `no override found for 'vtkContextDevice2D?.` error. > > The test application `ctkVTKVolumePropertyWidgetTest1` of `/CTKBuild/CTK-build/bin/CTKVisualizationVTKWidgetsCppTests`receives the same error. > > A mail list explains this error of the OpenGL override moving from `vtkContextDevice2D` to `Rendering/ContextOpenGL`, but I have no idea how to split it. Is there any detailed solution? > > > ### CTK build options, using the latest CTK fork 02-Apr-2015 > ``` > cmake -DCMAKE_MACOSX_RPATH:BOOL=OFF -DCMAKE_INSTALL_PREFIX:STRING=/usr/local/ctk -DCMAKE_BUILD_TYPE:STRING=Release -DCTK_ENABLE_Widgets:BOOL=ON -DCTK_LIB_Visualization/VTK/Widgets:BOOL=ON -DVTK_DIR:PATH=/usr/local/vtk/lib/cmake/vtk-6.2 -DCTK_BUILD_EXAMPLES:BOOL=ON -DCTK_LIB_ImageProcessing/ITK/Core:BOOL=ON -DITK_DIR:PATH=/usr/local/itk/lib/cmake/ITK-4.7 -DCTK_LIB_Visualization/VTK/Widgets_USE_TRANSFER_FUNCTION_CHARTS:BOOL=ON ../CTKSource > ``` > > > Note: I used `-DCTK_LIB_Visualization/VTK/Widgets_USE_TRANSFER_FUNCTION_CHARTS:BOOL=ON` flag for volume transfer function widget. It is right? > > ### `CMakeLists.txt` > ``` > cmake_minimum_required(VERSION 3.1) > > project(TEST_VTK_CTK) > > set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") > > find_package(CTK REQUIRED) > include(${CTK_USE_FILE}) > > #find_package(ITK REQUIRED) > #include(${ITK_USE_FILE}) > > find_package(VTK REQUIRED) > include(${VTK_USE_FILE}) > > find_package(Qt4 REQUIRED) > include(${QT_USE_FILE}) > > set(SOURCE_FILES_6 PlayGround.cxx) > add_executable(Test6 MACOSX_BUNDLE ${SOURCE_FILES_6}) > target_link_libraries(Test6 ${CTK_LIBRARIES} ${VTK_LIBRARIES}) > ``` > > ### Source file > ``` > // Qt includes > #include > > // CTK-VTK includes > #include "ctkVTKVolumePropertyWidget.h" > > // VTK includes > #include > #include > #include > #include > > // STD includes > #include > > //----------------------------------------------------------------------------- > int main(int argc, char * argv [] ) { > > QApplication app(argc, argv); > > vtkSmartPointer ctf = > vtkSmartPointer::New(); > ctf->AddRGBPoint(0.2, 0.6941,0.76,0., 0.5, 0.); > ctf->AddRGBPoint(0.4, 0.,0.6941,0.96); > ctf->AddRGBPoint(0.8, 0.9686,0.76,0.); > > vtkSmartPointer otf = > vtkSmartPointer::New(); > otf->AddPoint(0.2, 0.6941); > otf->AddPoint(0.4, 0.641); > otf->AddPoint(0.8, 0.9686); > > vtkSmartPointer otf2 = > vtkSmartPointer::New(); > otf2->AddPoint(0.0, 0.6941); > otf2->AddPoint(0.1, 0.641); > otf2->AddPoint(0.7, 0.9686); > > vtkSmartPointer volumeProperty = > vtkSmartPointer::New(); > volumeProperty->SetColor(ctf); > volumeProperty->SetScalarOpacity(otf); > double range[2] = {0., 1.}; > volumeProperty->GetGradientOpacity()->AdjustRange(range); > > ctkVTKVolumePropertyWidget widget; > // widget.setUseThresholdSlider(true); > widget.setVolumeProperty(volumeProperty); > > volumeProperty->SetScalarOpacity(otf2); > > widget.moveAllPoints(0.1, -0.1); > widget.moveAllPoints(-0.1, 0.1); > > widget.show(); > > return app.exec(); > } > ``` > > This is an example from `https://github.com/commontk/CTK/blob/master/Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKVolumePropertyWidgetTest1.cpp` . > > ### Running error info (No compiling error) > ``` > Generic Warning: In /Develop/VTK/VTKSource-6.2.0/Rendering/Context2D/vtkContextDevice2D.cxx, line 27 > Error: no override found for 'vtkContextDevice2D'. > > > Process finished with exit code 11 > ``` > > Cheers, > Quentan > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at public.kitware.com > http://public.kitware.com/mailman/listinfo/ctk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchris.fillionr at kitware.com Wed Apr 22 05:49:16 2015 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Wed, 22 Apr 2015 01:49:16 -0400 Subject: [Ctk-developers] ctk building error with itk4.71 In-Reply-To: References: Message-ID: Hi Hongzhi, Did you manage to address your problem ? If not, could you share the content of CTK-build/CTK-build/CMakeCache.txt ? Thanks Jc On Mon, Apr 6, 2015 at 8:16 PM, Hongzhi Lan wrote: > HI, CTK members, > > I'm trying to build CTK with newest versions of VTK, ITK and PythonQt. I > can build ctk successfully with Qt4.8.6, VTK6.2.0 and PythonQt3.0,but when > I provide ITK_DIR for my ITK4.7.1 build, an error happens. Although I have > Qt5 installed too, but in cmake for ctk build, moc and qmake are > specifically set as .../Qt4.8.6/bin/moc and .../Qt4.8.6/bin/qmake. But it > seems moc from Q5 was used instead. I don't why. I'm using CTK downloaded > on April 3, 2015, on Ubuntu14.04 64bit. > > ..../CTK-Build-Test/CTK-build/Libs/Core/moc_ctkBooleanMapper.cxx:15:2: > error: #error "This file was generated using the moc from 5.4.1. It" > #error "This file was generated using the moc from 5.4.1. It" > ^ > .../CTK-Build-Test/CTK-build/Libs/Core/moc_ctkBooleanMapper.cxx:16:2: > error: #error "cannot be used with the include files from this version of > Qt." > #error "cannot be used with the include files from this version of Qt." > ^ > .../CTK-Build-Test/CTK-build/Libs/Core/moc_ctkBooleanMapper.cxx:17:2: > error: #error "(The moc has changed too much.)" > #error "(The moc has changed too much.)" > ... > > Thanks, > Hongzhi > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at public.kitware.com > http://public.kitware.com/mailman/listinfo/ctk-developers > > -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.clarkson at ucl.ac.uk Wed Apr 22 12:50:29 2015 From: m.clarkson at ucl.ac.uk (Clarkson, Matt) Date: Wed, 22 Apr 2015 12:50:29 +0000 Subject: [Ctk-developers] Workflow Widgets Message-ID: <5A801FEB-FBF3-4226-92BB-687CDA9D0392@live.ucl.ac.uk> Hi there, Im looking round for inspiration to code up some IGI workflows. Does anyone have a good example of CTK workflow widgets? Im looking for: a) Nice pictures? b) An applicaiton I can run? c) Documentation? d) Small/medium/large in terms of number of steps and branching. Thanks Matt From h1lan at eng.ucsd.edu Wed Apr 22 19:23:00 2015 From: h1lan at eng.ucsd.edu (Hongzhi Lan) Date: Wed, 22 Apr 2015 12:23:00 -0700 Subject: [Ctk-developers] ctk building error with itk4.71 In-Reply-To: References: Message-ID: Hi Chris, I figured out the issue. The ITK used for building CTK with Qt4 actually was glued with the VTK built with Qt5. I just rebuilt ITK and solved the issue. I also found when building CTK with VTK6.2, BUILD_TESTING should be OFF. I can build CTK with Qt5 successfully, but if I want to add Python as well, it gives me the error as below. I used my own VTK6.2.0, ITK4.5.1, PythonQt3.0 built with Qt5.4.1. ....../CTK-Qt5.4.1-Python2.7.6/CTK-build/Libs/Core/generated_cpp/org_commontk_CTKCore/org_commontk_CTKCore.h:9:19: fatal error: QWidget: No such file or directory #include ^ compilation terminated. Thanks, Hongzhi On Tue, Apr 21, 2015 at 10:49 PM, Jean-Christophe Fillion-Robin < jchris.fillionr at kitware.com> wrote: > Hi Hongzhi, > > Did you manage to address your problem ? > > If not, could you share the content of CTK-build/CTK-build/CMakeCache.txt > ? > > Thanks > Jc > > On Mon, Apr 6, 2015 at 8:16 PM, Hongzhi Lan wrote: > >> HI, CTK members, >> >> I'm trying to build CTK with newest versions of VTK, ITK and PythonQt. I >> can build ctk successfully with Qt4.8.6, VTK6.2.0 and PythonQt3.0,but when >> I provide ITK_DIR for my ITK4.7.1 build, an error happens. Although I have >> Qt5 installed too, but in cmake for ctk build, moc and qmake are >> specifically set as .../Qt4.8.6/bin/moc and .../Qt4.8.6/bin/qmake. But it >> seems moc from Q5 was used instead. I don't why. I'm using CTK downloaded >> on April 3, 2015, on Ubuntu14.04 64bit. >> >> ..../CTK-Build-Test/CTK-build/Libs/Core/moc_ctkBooleanMapper.cxx:15:2: >> error: #error "This file was generated using the moc from 5.4.1. It" >> #error "This file was generated using the moc from 5.4.1. It" >> ^ >> .../CTK-Build-Test/CTK-build/Libs/Core/moc_ctkBooleanMapper.cxx:16:2: >> error: #error "cannot be used with the include files from this version of >> Qt." >> #error "cannot be used with the include files from this version of Qt." >> ^ >> .../CTK-Build-Test/CTK-build/Libs/Core/moc_ctkBooleanMapper.cxx:17:2: >> error: #error "(The moc has changed too much.)" >> #error "(The moc has changed too much.)" >> ... >> >> Thanks, >> Hongzhi >> >> _______________________________________________ >> Ctk-developers mailing list >> Ctk-developers at public.kitware.com >> http://public.kitware.com/mailman/listinfo/ctk-developers >> >> > > > -- > +1 919 869 8849 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lasso at queensu.ca Wed Apr 22 18:59:24 2015 From: lasso at queensu.ca (Andras Lasso) Date: Wed, 22 Apr 2015 18:59:24 +0000 Subject: [Ctk-developers] Workflow Widgets In-Reply-To: <5A801FEB-FBF3-4226-92BB-687CDA9D0392@live.ucl.ac.uk> References: <5A801FEB-FBF3-4226-92BB-687CDA9D0392@live.ucl.ac.uk> Message-ID: Hi Matt, A few years ago we tried to use the CTK (at that time KWWidgets) workflow widget for IGT application GUIs, but we did not find useful for our purposes mainly due to two reasons: 1. Usually IGT workflows are simple linear workflows (import pre-op data, calibration/registration, targeting, and verification). 2. You never want to prevent the user from jumping to any state at any time. If a state is not meaningful (e.g., you cannot do targeting before calibration) then it is better to let the user to switch to the state, display what you can, and show a short warning message that explains what you should do (e.g., calibrate first) than simply disabling the "Next" button. Nowadays we mostly use QToolbox widget or QButtonGroup of ctkCollapsibleButton's. QTabWidget would be nice, too, but usually horizontal space is limited and therefore we could only have maximum 3-4 tabs and short tab captions, which is often not enough. Andras -----Original Message----- From: Ctk-developers [mailto:ctk-developers-bounces at public.kitware.com] On Behalf Of Clarkson, Matt Sent: Wednesday, April 22, 2015 8:50 AM To: ctk-developers at commontk.org Subject: [Ctk-developers] Workflow Widgets Hi there, Im looking round for inspiration to code up some IGI workflows. Does anyone have a good example of CTK workflow widgets? Im looking for: a) Nice pictures? b) An applicaiton I can run? c) Documentation? d) Small/medium/large in terms of number of steps and branching. Thanks Matt _______________________________________________ Ctk-developers mailing list Ctk-developers at public.kitware.com http://public.kitware.com/mailman/listinfo/ctk-developers From m.clarkson at ucl.ac.uk Thu Apr 23 08:59:34 2015 From: m.clarkson at ucl.ac.uk (Clarkson, Matt) Date: Thu, 23 Apr 2015 08:59:34 +0000 Subject: [Ctk-developers] Workflow Widgets In-Reply-To: References: <5A801FEB-FBF3-4226-92BB-687CDA9D0392@live.ucl.ac.uk> Message-ID: <12C8AF4B-BB62-4954-93C9-0642686E9CC8@live.ucl.ac.uk> Hi Andras, thanks for this. Its good to hear your experience. If anyone else has any, I?d still love to hear it! Thanks all. Matt On 22 Apr 2015, at 19:59, Andras Lasso wrote: > Hi Matt, > > A few years ago we tried to use the CTK (at that time KWWidgets) workflow widget for IGT application GUIs, but we did not find useful for our purposes mainly due to two reasons: > 1. Usually IGT workflows are simple linear workflows (import pre-op data, calibration/registration, targeting, and verification). > 2. You never want to prevent the user from jumping to any state at any time. If a state is not meaningful (e.g., you cannot do targeting before calibration) then it is better to let the user to switch to the state, display what you can, and show a short warning message that explains what you should do (e.g., calibrate first) than simply disabling the "Next" button. > > Nowadays we mostly use QToolbox widget or QButtonGroup of ctkCollapsibleButton's. QTabWidget would be nice, too, but usually horizontal space is limited and therefore we could only have maximum 3-4 tabs and short tab captions, which is often not enough. > > Andras > > -----Original Message----- > From: Ctk-developers [mailto:ctk-developers-bounces at public.kitware.com] On Behalf Of Clarkson, Matt > Sent: Wednesday, April 22, 2015 8:50 AM > To: ctk-developers at commontk.org > Subject: [Ctk-developers] Workflow Widgets > > Hi there, > > Im looking round for inspiration to code up some IGI workflows. > > Does anyone have a good example of CTK workflow widgets? Im looking for: > a) Nice pictures? > b) An applicaiton I can run? > c) Documentation? > d) Small/medium/large in terms of number of steps and branching. > > Thanks > > Matt > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at public.kitware.com > http://public.kitware.com/mailman/listinfo/ctk-developers From lasso at queensu.ca Thu Apr 23 12:42:15 2015 From: lasso at queensu.ca (Andras Lasso) Date: Thu, 23 Apr 2015 12:42:15 +0000 Subject: [Ctk-developers] Workflow Widgets In-Reply-To: <12C8AF4B-BB62-4954-93C9-0642686E9CC8@live.ucl.ac.uk> References: <5A801FEB-FBF3-4226-92BB-687CDA9D0392@live.ucl.ac.uk> , <12C8AF4B-BB62-4954-93C9-0642686E9CC8@live.ucl.ac.uk> Message-ID: I would be very interested in others' experiences, too. Andras ________________________________ From: Clarkson, Matt Sent: ?2015-?04-?23 04:59 To: Andras Lasso Cc: ctk-developers at commontk.org Subject: Re: Workflow Widgets Hi Andras, thanks for this. Its good to hear your experience. If anyone else has any, I?d still love to hear it! Thanks all. Matt On 22 Apr 2015, at 19:59, Andras Lasso wrote: > Hi Matt, > > A few years ago we tried to use the CTK (at that time KWWidgets) workflow widget for IGT application GUIs, but we did not find useful for our purposes mainly due to two reasons: > 1. Usually IGT workflows are simple linear workflows (import pre-op data, calibration/registration, targeting, and verification). > 2. You never want to prevent the user from jumping to any state at any time. If a state is not meaningful (e.g., you cannot do targeting before calibration) then it is better to let the user to switch to the state, display what you can, and show a short warning message that explains what you should do (e.g., calibrate first) than simply disabling the "Next" button. > > Nowadays we mostly use QToolbox widget or QButtonGroup of ctkCollapsibleButton's. QTabWidget would be nice, too, but usually horizontal space is limited and therefore we could only have maximum 3-4 tabs and short tab captions, which is often not enough. > > Andras > > -----Original Message----- > From: Ctk-developers [mailto:ctk-developers-bounces at public.kitware.com] On Behalf Of Clarkson, Matt > Sent: Wednesday, April 22, 2015 8:50 AM > To: ctk-developers at commontk.org > Subject: [Ctk-developers] Workflow Widgets > > Hi there, > > Im looking round for inspiration to code up some IGI workflows. > > Does anyone have a good example of CTK workflow widgets? Im looking for: > a) Nice pictures? > b) An applicaiton I can run? > c) Documentation? > d) Small/medium/large in terms of number of steps and branching. > > Thanks > > Matt > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at public.kitware.com > http://public.kitware.com/mailman/listinfo/ctk-developers -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchris.fillionr at kitware.com Thu Apr 30 05:58:39 2015 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Thu, 30 Apr 2015 01:58:39 -0400 Subject: [Ctk-developers] ctk building error with itk4.71 In-Reply-To: References: Message-ID: Hi Hongzhi, Good to know you resolved the problem. On Wed, Apr 22, 2015 at 3:23 PM, Hongzhi Lan wrote: > > ....../CTK-Qt5.4.1-Python2.7.6/CTK-build/Libs/Core/generated_cpp/org_commontk_CTKCore/org_commontk_CTKCore.h: > 9:19: fatal error: QWidget: No such file or directory #include > ^ compilation terminated. > It turns out that we already fixed that problem. The corresponding fixes has just been integrated into master. See [1] and [2] Let us know if you have any other issues. Thanks Jc [1] https://github.com/commontk/CTK/commit/e4e9cc326d4ab603785267defebcdcbf514d429d [2] https://github.com/commontk/CTK/pull/558#issuecomment-97669981 -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchris.fillionr at kitware.com Thu Apr 30 06:07:53 2015 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Thu, 30 Apr 2015 02:07:53 -0400 Subject: [Ctk-developers] Workflow Widgets In-Reply-To: References: <5A801FEB-FBF3-4226-92BB-687CDA9D0392@live.ucl.ac.uk> <12C8AF4B-BB62-4954-93C9-0642686E9CC8@live.ucl.ac.uk> Message-ID: Hi Matt, The current implementation of the ctkWorkflow widget was based on its KWWidgets counter part [1]. (1) If your workflow required the user to go through a pre-defined sequences of steps, it makes sense to re-use the CTK workflow. For example, see http://public.kitware.com/Wiki/Bender/Documentation/2.0/Modules/SimpleWorkflow (2) On the otherhand, if the user should be able to do any of the "step" (or task) before or after any other one, following the recommendation Andras makes sense. Hth Jc [1] http://www.kwwidgets.org/doc/nightly/html/classvtkKWWizardWorkflow.html#_details On Thu, Apr 23, 2015 at 8:42 AM, Andras Lasso wrote: > I would be very interested in others' experiences, too. > > Andras > ------------------------------ > From: Clarkson, Matt > Sent: ?2015-?04-?23 04:59 > To: Andras Lasso > Cc: ctk-developers at commontk.org > Subject: Re: Workflow Widgets > > Hi Andras, > > thanks for this. Its good to hear your experience. > If anyone else has any, I?d still love to hear it! > > Thanks all. > > Matt > > On 22 Apr 2015, at 19:59, Andras Lasso wrote: > > > Hi Matt, > > > > A few years ago we tried to use the CTK (at that time KWWidgets) > workflow widget for IGT application GUIs, but we did not find useful for > our purposes mainly due to two reasons: > > 1. Usually IGT workflows are simple linear workflows (import pre-op > data, calibration/registration, targeting, and verification). > > 2. You never want to prevent the user from jumping to any state at any > time. If a state is not meaningful (e.g., you cannot do targeting before > calibration) then it is better to let the user to switch to the state, > display what you can, and show a short warning message that explains what > you should do (e.g., calibrate first) than simply disabling the "Next" > button. > > > > Nowadays we mostly use QToolbox widget or QButtonGroup of > ctkCollapsibleButton's. QTabWidget would be nice, too, but usually > horizontal space is limited and therefore we could only have maximum 3-4 > tabs and short tab captions, which is often not enough. > > > > Andras > > > > -----Original Message----- > > From: Ctk-developers [mailto:ctk-developers-bounces at public.kitware.com > ] On Behalf Of Clarkson, Matt > > Sent: Wednesday, April 22, 2015 8:50 AM > > To: ctk-developers at commontk.org > > Subject: [Ctk-developers] Workflow Widgets > > > > Hi there, > > > > Im looking round for inspiration to code up some IGI workflows. > > > > Does anyone have a good example of CTK workflow widgets? Im looking for: > > a) Nice pictures? > > b) An applicaiton I can run? > > c) Documentation? > > d) Small/medium/large in terms of number of steps and branching. > > > > Thanks > > > > Matt > > > > _______________________________________________ > > Ctk-developers mailing list > > Ctk-developers at public.kitware.com > > http://public.kitware.com/mailman/listinfo/ctk-developers > > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at public.kitware.com > http://public.kitware.com/mailman/listinfo/ctk-developers > > -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchris.fillionr at kitware.com Thu Apr 30 06:14:54 2015 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Thu, 30 Apr 2015 02:14:54 -0400 Subject: [Ctk-developers] Link error with CTK and VTK In-Reply-To: References: <2D78115D-2782-473C-B777-E87F0352409E@gmail.com> Message-ID: Hi Quentan, On Fri, Mar 27, 2015 at 10:58 AM, Quentan Qi wrote: > I recompiled CTK using the latest VTK 6.2.0 and it works well. No glitch > complains from that example any more. > Great. > > But the Qt widgets `ctkVTKRenderView` and `ctkVTKSliceView`, which come > from library file > `Qt\plugin\designer\libCTKVisualizationVTKWidgetsPlugins.so`, fail to work > and crash Qt Designer. All the other widgets work correctly. This may not > be a serious problem. > If you have a debug build of Qt, you could also build CTK in Debug and attach the debugger to Qt Designer. That should allow you to identify the origin of the crash. > > I?m now running on OS X 10.10 with VTK 6.2.0 and Qt 4.8.6. I also wonder > when CTK can work with Qt 5, because VTK is quite compatible with it but I > failed to compile CTK with VTK 6.2.0 bundled with Qt 5.2.1. > CTK master should now support building against Qt5. You should be able to set the option CTK_QT_VERSION to 5 See https://github.com/commontk/CTK/blob/e4e9cc326d4ab603785267defebcdcbf514d429d/CMake/ctkMacroSetupQt.cmake#L23-L26 Hth Jc -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.clarkson at ucl.ac.uk Thu Apr 30 06:57:22 2015 From: m.clarkson at ucl.ac.uk (Clarkson, Matt) Date: Thu, 30 Apr 2015 06:57:22 +0000 Subject: [Ctk-developers] Workflow Widgets In-Reply-To: References: <5A801FEB-FBF3-4226-92BB-687CDA9D0392@live.ucl.ac.uk> <12C8AF4B-BB62-4954-93C9-0642686E9CC8@live.ucl.ac.uk> Message-ID: <3A51CCE8-91CE-4B71-A588-A636FDC0338A@live.ucl.ac.uk> Thanks. Nice example. I?ll take a look. M On 30 Apr 2015, at 07:07, Jean-Christophe Fillion-Robin > wrote: Hi Matt, The current implementation of the ctkWorkflow widget was based on its KWWidgets counter part [1]. (1) If your workflow required the user to go through a pre-defined sequences of steps, it makes sense to re-use the CTK workflow. For example, see http://public.kitware.com/Wiki/Bender/Documentation/2.0/Modules/SimpleWorkflow (2) On the otherhand, if the user should be able to do any of the "step" (or task) before or after any other one, following the recommendation Andras makes sense. Hth Jc [1] http://www.kwwidgets.org/doc/nightly/html/classvtkKWWizardWorkflow.html#_details On Thu, Apr 23, 2015 at 8:42 AM, Andras Lasso > wrote: I would be very interested in others' experiences, too. Andras ________________________________ From: Clarkson, Matt Sent: ?2015-?04-?23 04:59 To: Andras Lasso Cc: ctk-developers at commontk.org Subject: Re: Workflow Widgets Hi Andras, thanks for this. Its good to hear your experience. If anyone else has any, I?d still love to hear it! Thanks all. Matt On 22 Apr 2015, at 19:59, Andras Lasso > wrote: > Hi Matt, > > A few years ago we tried to use the CTK (at that time KWWidgets) workflow widget for IGT application GUIs, but we did not find useful for our purposes mainly due to two reasons: > 1. Usually IGT workflows are simple linear workflows (import pre-op data, calibration/registration, targeting, and verification). > 2. You never want to prevent the user from jumping to any state at any time. If a state is not meaningful (e.g., you cannot do targeting before calibration) then it is better to let the user to switch to the state, display what you can, and show a short warning message that explains what you should do (e.g., calibrate first) than simply disabling the "Next" button. > > Nowadays we mostly use QToolbox widget or QButtonGroup of ctkCollapsibleButton's. QTabWidget would be nice, too, but usually horizontal space is limited and therefore we could only have maximum 3-4 tabs and short tab captions, which is often not enough. > > Andras > > -----Original Message----- > From: Ctk-developers [mailto:ctk-developers-bounces at public.kitware.com] On Behalf Of Clarkson, Matt > Sent: Wednesday, April 22, 2015 8:50 AM > To: ctk-developers at commontk.org > Subject: [Ctk-developers] Workflow Widgets > > Hi there, > > Im looking round for inspiration to code up some IGI workflows. > > Does anyone have a good example of CTK workflow widgets? Im looking for: > a) Nice pictures? > b) An applicaiton I can run? > c) Documentation? > d) Small/medium/large in terms of number of steps and branching. > > Thanks > > Matt > > _______________________________________________ > Ctk-developers mailing list > Ctk-developers at public.kitware.com > http://public.kitware.com/mailman/listinfo/ctk-developers _______________________________________________ Ctk-developers mailing list Ctk-developers at public.kitware.com http://public.kitware.com/mailman/listinfo/ctk-developers -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: From quentan at gmail.com Thu Apr 30 08:57:41 2015 From: quentan at gmail.com (Quentan Qi) Date: Thu, 30 Apr 2015 09:57:41 +0100 Subject: [Ctk-developers] Link error with CTK and VTK In-Reply-To: References: <2D78115D-2782-473C-B777-E87F0352409E@gmail.com> Message-ID: <41AA41D8-814A-48CA-838A-34D0E1AE0093@gmail.com> Hi Jean, Thanks for your explanation and endeavour on the improvement! They are very helpful, I will test and use them. Cheers, Quentan > On 30 Apr 2015, at 07:14, Jean-Christophe Fillion-Robin wrote: > > Hi Quentan, > > On Fri, Mar 27, 2015 at 10:58 AM, Quentan Qi > wrote: > I recompiled CTK using the latest VTK 6.2.0 and it works well. No glitch complains from that example any more. > > Great. > > > But the Qt widgets `ctkVTKRenderView` and `ctkVTKSliceView`, which come from library file `Qt\plugin\designer\libCTKVisualizationVTKWidgetsPlugins.so`, fail to work and crash Qt Designer. All the other widgets work correctly. This may not be a serious problem. > > If you have a debug build of Qt, you could also build CTK in Debug and attach the debugger to Qt Designer. That should allow you to identify the origin of the crash. > > > I?m now running on OS X 10.10 with VTK 6.2.0 and Qt 4.8.6. I also wonder when CTK can work with Qt 5, because VTK is quite compatible with it but I failed to compile CTK with VTK 6.2.0 bundled with Qt 5.2.1. > > CTK master should now support building against Qt5. You should be able to set the option CTK_QT_VERSION to 5 > See https://github.com/commontk/CTK/blob/e4e9cc326d4ab603785267defebcdcbf514d429d/CMake/ctkMacroSetupQt.cmake#L23-L26 > > Hth > Jc > > > > -- > +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: