diff --git a/Code/Mantid/Vates/ParaviewPlugins/ParaViewFilters/PeaksFilter/CMakeLists.txt b/Code/Mantid/Vates/ParaviewPlugins/ParaViewFilters/PeaksFilter/CMakeLists.txt index c2820075f5b9546d8af25164e2a90a4356c9276c..0040d2607648eb8018ac02c69ae1ad535afc303b 100644 --- a/Code/Mantid/Vates/ParaviewPlugins/ParaViewFilters/PeaksFilter/CMakeLists.txt +++ b/Code/Mantid/Vates/ParaviewPlugins/ParaViewFilters/PeaksFilter/CMakeLists.txt @@ -7,8 +7,7 @@ GUI_RESOURCE_FILES PeaksFilterGUI.xml) # Add to the 'VatesParaViewPlugins' group in VS set_property( TARGET MantidParaViewPeaksFilterSMPlugin PROPERTY FOLDER "MantidVatesParaViewPlugins") -target_link_libraries( MantidParaViewPeaksFilterSMPlugin -${MANTID_SUBPROJECT_LIBS} ) +target_link_libraries( MantidParaViewPeaksFilterSMPlugin LINK_PUBLIC ${MANTID_SUBPROJECT_LIBS} ) # Put library into subfolder. SET_TARGET_OUTPUT_DIRECTORY(MantidParaViewPeaksFilterSMPlugin ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${PVPLUGINS_DIR}/${PVPLUGINS_SUBDIR}) diff --git a/Code/Mantid/Vates/ParaviewPlugins/ParaViewFilters/SplatterPlot/CMakeLists.txt b/Code/Mantid/Vates/ParaviewPlugins/ParaViewFilters/SplatterPlot/CMakeLists.txt index d6beddcd88c7ed717d09de75be6d9176ac6c631b..25d8312240a490e77ffdc5de9f439bd593c37f2b 100644 --- a/Code/Mantid/Vates/ParaviewPlugins/ParaViewFilters/SplatterPlot/CMakeLists.txt +++ b/Code/Mantid/Vates/ParaviewPlugins/ParaViewFilters/SplatterPlot/CMakeLists.txt @@ -11,7 +11,7 @@ set_property( TARGET MantidParaViewSplatterPlotSMPlugin PROPERTY FOLDER "MantidV include_directories ( SYSTEM ${QWT_INCLUDE_DIR} ) -target_link_libraries( MantidParaViewSplatterPlotSMPlugin +target_link_libraries( MantidParaViewSplatterPlotSMPlugin LINK_PUBLIC ${MANTID_SUBPROJECT_LIBS} ${QWT_LIBRARIES}) # Put library into subfolder. diff --git a/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/EventNexusReader/CMakeLists.txt b/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/EventNexusReader/CMakeLists.txt index 07747e485117f4f6004c55e4e363f3b8908f6e28..cbf3c0a5d2fcb3d2490272dd375301639675fb16 100644 --- a/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/EventNexusReader/CMakeLists.txt +++ b/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/EventNexusReader/CMakeLists.txt @@ -10,8 +10,7 @@ set_property( TARGET MantidParaViewEventNexusReaderSMPlugin PROPERTY FOLDER "Man include_directories ( SYSTEM ${QWT_INCLUDE_DIR} ) -target_link_libraries( MantidParaViewEventNexusReaderSMPlugin -${MANTID_SUBPROJECT_LIBS} ${QWT_LIBRARIES}) +target_link_libraries( MantidParaViewEventNexusReaderSMPlugin LINK_PUBLIC ${MANTID_SUBPROJECT_LIBS} ${QWT_LIBRARIES}) # Put library into subfolder. SET_TARGET_OUTPUT_DIRECTORY(MantidParaViewEventNexusReaderSMPlugin ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${PVPLUGINS_DIR}/${PVPLUGINS_SUBDIR}) diff --git a/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/MDEWNexusReader/CMakeLists.txt b/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/MDEWNexusReader/CMakeLists.txt index 780dd9a4a0855ebdb7fb1a874b1664b8eb635c3e..441e575a4302f1d903ee974fc70e0b619c0f2e2f 100644 --- a/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/MDEWNexusReader/CMakeLists.txt +++ b/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/MDEWNexusReader/CMakeLists.txt @@ -10,8 +10,7 @@ set_property( TARGET MantidParaViewMDEWNexusReaderSMPlugin PROPERTY FOLDER "Mant include_directories ( SYSTEM ${QWT_INCLUDE_DIR} ) -target_link_libraries( MantidParaViewMDEWNexusReaderSMPlugin -${MANTID_SUBPROJECT_LIBS} ${QWT_LIBRARIES}) +target_link_libraries( MantidParaViewMDEWNexusReaderSMPlugin LINK_PUBLIC ${MANTID_SUBPROJECT_LIBS} ${QWT_LIBRARIES}) # Put library into subfolder. SET_TARGET_OUTPUT_DIRECTORY(MantidParaViewMDEWNexusReaderSMPlugin ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${PVPLUGINS_DIR}/${PVPLUGINS_SUBDIR}) diff --git a/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/MDHWNexusReader/CMakeLists.txt b/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/MDHWNexusReader/CMakeLists.txt index ee5e38f668bd669192001dfd9b44edad6ef9d76b..505ea07e4a1d1fdcb0cd78086ff3af74cf89bae7 100644 --- a/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/MDHWNexusReader/CMakeLists.txt +++ b/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/MDHWNexusReader/CMakeLists.txt @@ -10,8 +10,7 @@ set_property( TARGET MantidParaViewMDHWNexusReaderSMPlugin PROPERTY FOLDER "Mant include_directories ( SYSTEM ${QWT_INCLUDE_DIR} ) -target_link_libraries( MantidParaViewMDHWNexusReaderSMPlugin -${MANTID_SUBPROJECT_LIBS} ${QWT_LIBRARIES}) +target_link_libraries( MantidParaViewMDHWNexusReaderSMPlugin LINK_PUBLIC ${MANTID_SUBPROJECT_LIBS} ${QWT_LIBRARIES}) # Put library into subfolder. SET_TARGET_OUTPUT_DIRECTORY(MantidParaViewMDHWNexusReaderSMPlugin ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${PVPLUGINS_DIR}/${PVPLUGINS_SUBDIR}) diff --git a/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/SQWEventReader/CMakeLists.txt b/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/SQWEventReader/CMakeLists.txt index c7f22b286bfe6ac4a517862f1b9f05630590db79..fb41edfd2d10ea67992e3d29b3d3ad2b1ef1f302 100644 --- a/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/SQWEventReader/CMakeLists.txt +++ b/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/SQWEventReader/CMakeLists.txt @@ -10,8 +10,7 @@ set_property( TARGET MantidParaViewSQWEventReaderSMPlugin PROPERTY FOLDER "Manti include_directories ( SYSTEM ${QWT_INCLUDE_DIR} ) -target_link_libraries( MantidParaViewSQWEventReaderSMPlugin -${MANTID_SUBPROJECT_LIBS} ${QWT_LIBRARIES}) +target_link_libraries( MantidParaViewSQWEventReaderSMPlugin LINK_PUBLIC ${MANTID_SUBPROJECT_LIBS} ${QWT_LIBRARIES}) # Put library into subfolder. SET_TARGET_OUTPUT_DIRECTORY(MantidParaViewSQWEventReaderSMPlugin ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${PVPLUGINS_DIR}/${PVPLUGINS_SUBDIR}) diff --git a/Code/Mantid/Vates/ParaviewPlugins/ParaViewSources/MDEWSource/CMakeLists.txt b/Code/Mantid/Vates/ParaviewPlugins/ParaViewSources/MDEWSource/CMakeLists.txt index 266d29e3bc7b0431200e4eaedaaadfdc425fa210..45e94873eaa1b76d0c009d7f42d13876940118e0 100644 --- a/Code/Mantid/Vates/ParaviewPlugins/ParaViewSources/MDEWSource/CMakeLists.txt +++ b/Code/Mantid/Vates/ParaviewPlugins/ParaViewSources/MDEWSource/CMakeLists.txt @@ -8,8 +8,7 @@ ADD_PARAVIEW_PLUGIN(MantidParaViewMDEWSourceSMPlugin "1.0" set_property( TARGET MantidParaViewMDEWSourceSMPlugin PROPERTY FOLDER "MantidVatesParaViewPlugins" ) include_directories ( SYSTEM ${QWT_INCLUDE_DIR} ) -target_link_libraries( MantidParaViewMDEWSourceSMPlugin -${MANTID_SUBPROJECT_LIBS} ${QWT_LIBRARIES}) +target_link_libraries( MantidParaViewMDEWSourceSMPlugin LINK_PUBLIC ${MANTID_SUBPROJECT_LIBS} ${QWT_LIBRARIES}) # Put library into subfolder. SET_TARGET_OUTPUT_DIRECTORY(MantidParaViewMDEWSourceSMPlugin ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${PVPLUGINS_DIR}/${PVPLUGINS_SUBDIR}) diff --git a/Code/Mantid/Vates/ParaviewPlugins/ParaViewSources/MDHWSource/CMakeLists.txt b/Code/Mantid/Vates/ParaviewPlugins/ParaViewSources/MDHWSource/CMakeLists.txt index d65a9066e679883bdcbb1b5c204d64293729f4e7..650a1445b31232ad8e0c558fda0eb0b81c2a3b71 100644 --- a/Code/Mantid/Vates/ParaviewPlugins/ParaViewSources/MDHWSource/CMakeLists.txt +++ b/Code/Mantid/Vates/ParaviewPlugins/ParaViewSources/MDHWSource/CMakeLists.txt @@ -9,8 +9,7 @@ set_property( TARGET MantidParaViewMDHWSourceSMPlugin PROPERTY FOLDER "MantidVat include_directories ( SYSTEM ${QWT_INCLUDE_DIR} ) -target_link_libraries( MantidParaViewMDHWSourceSMPlugin -${MANTID_SUBPROJECT_LIBS} ${QWT_LIBRARIES}) +target_link_libraries( MantidParaViewMDHWSourceSMPlugin LINK_PUBLIC ${MANTID_SUBPROJECT_LIBS} ${QWT_LIBRARIES}) # Put library into subfolder. SET_TARGET_OUTPUT_DIRECTORY(MantidParaViewMDHWSourceSMPlugin ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${PVPLUGINS_DIR}/${PVPLUGINS_SUBDIR}) diff --git a/Code/Mantid/Vates/ParaviewPlugins/ParaViewSources/SinglePeakMarkerSource/CMakeLists.txt b/Code/Mantid/Vates/ParaviewPlugins/ParaViewSources/SinglePeakMarkerSource/CMakeLists.txt index f846a0c12d52d10efc6aa9a44a96867c1d0b0551..f774cc2588e183ebe746bfe3708c138840dc6d48 100644 --- a/Code/Mantid/Vates/ParaviewPlugins/ParaViewSources/SinglePeakMarkerSource/CMakeLists.txt +++ b/Code/Mantid/Vates/ParaviewPlugins/ParaViewSources/SinglePeakMarkerSource/CMakeLists.txt @@ -7,8 +7,7 @@ ADD_PARAVIEW_PLUGIN(MantidParaViewSinglePeakMarkerSourceSMPlugin "1.0" # Add to the 'VatesParaViewPlugins' group in VS set_property( TARGET MantidParaViewSinglePeakMarkerSourceSMPlugin PROPERTY FOLDER "MantidVatesParaViewPlugins" ) -target_link_libraries( MantidParaViewSinglePeakMarkerSourceSMPlugin -${MANTID_SUBPROJECT_LIBS} ) +target_link_libraries( MantidParaViewSinglePeakMarkerSourceSMPlugin LINK_PUBLIC ${MANTID_SUBPROJECT_LIBS} ) # Put library into subfolder. SET_TARGET_OUTPUT_DIRECTORY(MantidParaViewSinglePeakMarkerSourceSMPlugin ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${PVPLUGINS_DIR}/${PVPLUGINS_SUBDIR}) diff --git a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/CMakeLists.txt b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/CMakeLists.txt index 3f09e8a885027e0ced32f307a74c2152b5705fd6..3f35fe6251e7baca667831e669b536378a3ecba1 100644 --- a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/CMakeLists.txt +++ b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/CMakeLists.txt @@ -146,7 +146,7 @@ MantidWidgets # Create test file projects if( CXXTEST_FOUND AND GMOCK_FOUND AND GTEST_FOUND ) - include_directories ( SYSTEM ${CXXTEST_INCLUDE_DIR} ${GMOCK_INCLUDE_DIR} ${GTEST_INCLUDE_DIR} ) + include_directories ( SYSTEM ${CXXTEST_INCLUDE_DIR} ${GMOCK_INCLUDE_DIR} ${GTEST_INCLUDE_DIR}) include_directories( inc ../../../Framework/TestHelpers/inc ../../../Framework/DataHandling/inc ../../../Framework/DataObjects/inc) set ( TESTHELPER_SRCS ../../../Framework/TestHelpers/src/ComponentCreationHelper.cpp @@ -154,7 +154,7 @@ if( CXXTEST_FOUND AND GMOCK_FOUND AND GTEST_FOUND ) ../../../Framework/TestHelpers/src/MDEventsTestHelper.cpp ../../../Framework/TestHelpers/src/StartFrameworkManager.cpp ) cxxtest_add_test( VatesSimpleGuiViewWidgetsTest ${TEST_FILES} ) - target_link_libraries( VatesSimpleGuiViewWidgetsTest VatesSimpleGuiViewWidgets DataHandling Kernel DataObjects ${GMOCK_LIBRARIES} ${GTEST_LIBRARIES} ) + target_link_libraries( VatesSimpleGuiViewWidgetsTest VatesSimpleGuiViewWidgets DataHandling Kernel DataObjects ${GMOCK_LIBRARIES} ${GTEST_LIBRARIES}) add_dependencies( AllTests VatesSimpleGuiViewWidgetsTest ) # Add to the 'UnitTests' group in VS set_property ( TARGET VatesSimpleGuiViewWidgetsTest PROPERTY FOLDER "UnitTests" ) diff --git a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/AutoScaleRangeGenerator.cpp b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/AutoScaleRangeGenerator.cpp index b82e74ce8f4de0ea46f8052eb9ab006c0096139f..b54413330623902b1a1f62db19ef7008e324c2a1 100644 --- a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/AutoScaleRangeGenerator.cpp +++ b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/AutoScaleRangeGenerator.cpp @@ -239,11 +239,11 @@ namespace SimpleGui } // Otherwise get the data range of the representation for the active view - pqPipelineRepresentation* pipelineRepresenation = qobject_cast<pqPipelineRepresentation*>(source->getRepresentation(pqActiveObjects::instance().activeView())); + pqPipelineRepresentation* pipelineRepresentation = qobject_cast<pqPipelineRepresentation*>(source->getRepresentation(pqActiveObjects::instance().activeView())); - if (pipelineRepresenation) + if (pipelineRepresentation) { - QPair<double, double> range = pipelineRepresenation->getColorFieldRange(); + QPair<double, double> range = pipelineRepresentation->getLookupTable()->getScalarRange(); minValue = range.first; maxValue = range.second; @@ -304,4 +304,4 @@ namespace SimpleGui } } } -} \ No newline at end of file +} diff --git a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/CameraManager.cpp b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/CameraManager.cpp index 74010d9a7049d985c60b7d10daac9f4cf9d1215d..c2693eb2697c0404182de098e6907649f44e2855 100644 --- a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/CameraManager.cpp +++ b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/CameraManager.cpp @@ -7,7 +7,7 @@ #endif #include <pqView.h> -#include <pqActiveView.h> +#include <pqActiveObjects.h> #include <vtkSMRenderViewProxy.h> #include <vtkCamera.h> #include <vtkRenderer.h> @@ -44,7 +44,7 @@ namespace Mantid double far[4]; double near[4]; - pqView * view = pqActiveView::instance().current(); + pqView * view = pqActiveObjects::instance().activeView(); vtkSMRenderViewProxy* proxy = NULL; @@ -111,7 +111,7 @@ namespace Mantid */ void CameraManager::setCameraToPeak(double xpos, double ypos, double zpos, double peakRadius) { - pqView * view = pqActiveView::instance().current(); + pqView * view = pqActiveObjects::instance().activeView(); vtkSMRenderViewProxy* proxy = NULL; if (view) @@ -140,4 +140,4 @@ namespace Mantid } } } -} \ No newline at end of file +} diff --git a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/MdViewerWidget.cpp b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/MdViewerWidget.cpp index 986139f8efeb62311716d265f7b1bd0c9abaa32f..3ba5b56a16c51fe8f999159f31a9341cfe77374f 100644 --- a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/MdViewerWidget.cpp +++ b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/MdViewerWidget.cpp @@ -85,7 +85,7 @@ #include <pqStandardViewFrameActionsImplementation.h> #include <pqUndoRedoBehavior.h> #include <pqView.h> -#include <pqViewFrameActionsBehavior.h> +//#include <pqViewFrameActionsBehavior.h> #include <pqViewStreamingBehavior.h> #include <pqVerifyRequiredPluginBehavior.h> #include <pqSaveDataReaction.h> diff --git a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/SplatterPlotView.cpp b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/SplatterPlotView.cpp index 043cdedbc83f1b7b26d334a429ccb3a6c3a72522..54b72a774888b7c9141ac991716441d4b46a4e04 100644 --- a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/SplatterPlotView.cpp +++ b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/SplatterPlotView.cpp @@ -498,8 +498,12 @@ void SplatterPlotView::createPeaksFilter() vtkSMPropertyHelper(dataRepresentation->getProxy(), "PointSize").Set(pointSize); dataRepresentation->getProxy()->UpdateVTKObjects(); - pqPipelineRepresentation *pipelineRepresentation = qobject_cast<pqPipelineRepresentation*>(dataRepresentation); - pipelineRepresentation->colorByArray("signal", vtkDataObject::FIELD_ASSOCIATION_CELLS); + if (!this->isPeaksWorkspace(this->origSrc)) + { + vtkSMPVRepresentationProxy::SetScalarColoring(dataRepresentation->getProxy(), "signal", + vtkDataObject::FIELD_ASSOCIATION_CELLS); + dataRepresentation->getProxy()->UpdateVTKObjects(); + } this->resetDisplay(); this->setVisibilityListener(); this->renderAll();