Commit 4430485f authored by Sebastien Jourdain's avatar Sebastien Jourdain
Browse files

Add testing to multi-slice

Change-Id: If4dadda3042e4e76d72c343b85f5f0aaea5428ee
parent 3c2d901b
......@@ -83,3 +83,9 @@ IF(PARAVIEW_BUILD_QT_GUI)
)
ENDIF(PARAVIEW_BUILD_QT_GUI)
# Add testing if necessary
if (BUILD_TESTING)
add_subdirectory(Testing)
endif (BUILD_TESTING)
INCLUDE(ParaViewTestingMacros)
set(MULTI_SLICE_TESTS
${CMAKE_CURRENT_SOURCE_DIR}/MultiSliceMultiBlock.xml
${CMAKE_CURRENT_SOURCE_DIR}/MultiSliceWavelet.xml
)
set(MULTI_SLICE_SERVER_TESTS
${CMAKE_CURRENT_SOURCE_DIR}/serverMultiSliceMultiBlock.xml
${CMAKE_CURRENT_SOURCE_DIR}/serverMultiSliceWavelet.xml
)
set(MultiSliceWavelet_BREAK TRUE)
set(MultiSliceWavelet_USE_NEW_PANELS TRUE)
set(MultiSliceMultiBlock_BREAK TRUE)
set(MultiSliceMultiBlock_USE_NEW_PANELS TRUE)
set(serverMultiSliceWavelet_BREAK TRUE)
set(serverMultiSliceWavelet_USE_NEW_PANELS TRUE)
set(serverMultiSliceMultiBlock_BREAK TRUE)
set(serverMultiSliceMultiBlock_USE_NEW_PANELS TRUE)
IF (PARAVIEW_DATA_ROOT)
add_client_tests("pv"
BASELINE_DIR ${PARAVIEW_DATA_ROOT}/Baseline
TEST_SCRIPTS ${MULTI_SLICE_TESTS}
)
add_client_server_tests("pvcs"
BASELINE_DIR ${PARAVIEW_DATA_ROOT}/Baseline
TEST_SCRIPTS ${MULTI_SLICE_SERVER_TESTS}
)
# No selection are available on pvcrs
#IF (PARAVIEW_CLIENT_RENDER_SERVER_TESTS)
# add_client_render_server_tests("pvcrs"
# BASELINE_DIR ${PARAVIEW_DATA_ROOT}/Baseline
# TEST_SCRIPTS ${MULTI_SLICE_SERVER_TESTS}
# )
#ENDIF (PARAVIEW_CLIENT_RENDER_SERVER_TESTS)
ENDIF (PARAVIEW_DATA_ROOT)
<?xml version="1.0" ?>
<pqevents>
<!-- Load plugin and setup the view -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="MultiSliceView" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Close" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/EmptyView/scrollArea/qt_scrollarea_viewport/widgetFoo/ConvertActionsFrame/pqMultiSliceView" command="activate" arguments="" />
<!-- Load the data -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_File" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileOpen" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/can.ex2" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/PropertiesGroupBox/PropertiesScrollArea/qt_scrollarea_viewport/PropertiesScrollAreaContents/ArrayStatus/SelectionWidget/1QHeaderView0" command="mousePress" arguments="1,1,0,0,0,0" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/PropertiesGroupBox/PropertiesScrollArea/qt_scrollarea_viewport/PropertiesScrollAreaContents/ArrayStatus/SelectionWidget/1QHeaderView0" command="mouseRelease" arguments="1,0,0,0,0,0" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<!-- Create slices -->
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget1/1QVTKWidget0" command="mouseDblClick" arguments="1,1,0,324,44" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseDblClick" arguments="1,1,0,54,245" />
<!-- Start cell selection -->
<pqevent object="pqClientMainWindow/cameraToolbar/actionNegativeX" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/selectionToolbar/actionSelectionMode" command="set_boolean" arguments="true" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqQVTKWidget0" command="mousePress" arguments="(0.342688,0.0460251,1,1,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqQVTKWidget0" command="mouseMove" arguments="(0.672083,0.426778,1,0,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqQVTKWidget0" command="mouseRelease" arguments="(0.672083,0.426778,1,0,0)" />
<!-- Change view orientation for screen capture -->
<pqevent object="pqClientMainWindow/cameraToolbar/actionNegativeY" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/variableToolbar/displayColor/Variables" command="set_string" arguments="DISPL" />
</pqevents>
<?xml version="1.0" ?>
<pqevents>
<!-- Load plugin and setup the view -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="MultiSliceView" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Close" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/EmptyView/scrollArea/qt_scrollarea_viewport/widgetFoo/ConvertActionsFrame/pqMultiSliceView" command="activate" arguments="" />
<!-- Load the data -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuSources" />
<pqevent object="pqClientMainWindow/menubar/menuSources" command="activate" arguments="RTAnalyticSource" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<!-- Create slices -->
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget2/1QVTKWidget0" command="mousePress" arguments="(0.183333,0.692469,1,1,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget2/1QVTKWidget0" command="mouseMove" arguments="(0.183333,0.692469,1,0,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget2/1QVTKWidget0" command="mouseRelease" arguments="(0.183333,0.692469,1,0,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget2/1QVTKWidget0" command="mouseDblClick" arguments="1,1,0,11,331" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget2/1QVTKWidget0" command="mouseMove" arguments="(0.183333,0.692469,1,0,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget2/1QVTKWidget0" command="mouseRelease" arguments="(0.183333,0.692469,1,0,0)" />
<!-- Start cell selection -->
<pqevent object="pqClientMainWindow/selectionToolbar/actionSelectionMode" command="set_boolean" arguments="true" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqQVTKWidget0" command="mousePress" arguments="(0.353028,0.288703,1,1,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqQVTKWidget0" command="mouseMove" arguments="(0.463811,0.405858,1,0,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqQVTKWidget0" command="mouseRelease" arguments="(0.463811,0.405858,1,0,0)" />
<!-- Change view orientation for screen capture -->
<pqevent object="pqClientMainWindow/cameraToolbar/actionPositiveX" command="activate" arguments="" />
</pqevents>
<?xml version="1.0" ?>
<pqevents>
<!-- Load plugin and setup the view -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/remoteGroup/remotePlugins" command="setCurrent" arguments="MultiSliceView" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/remoteGroup/loadSelected_Remote" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="MultiSliceView" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Close" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/EmptyView/scrollArea/qt_scrollarea_viewport/widgetFoo/ConvertActionsFrame/pqMultiSliceView" command="activate" arguments="" />
<!-- Load the data -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_File" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileOpen" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/can.ex2" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/PropertiesGroupBox/PropertiesScrollArea/qt_scrollarea_viewport/PropertiesScrollAreaContents/ArrayStatus/SelectionWidget/1QHeaderView0" command="mousePress" arguments="1,1,0,0,0,0" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/PropertiesGroupBox/PropertiesScrollArea/qt_scrollarea_viewport/PropertiesScrollAreaContents/ArrayStatus/SelectionWidget/1QHeaderView0" command="mouseRelease" arguments="1,0,0,0,0,0" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<!-- Create slices -->
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget1/1QVTKWidget0" command="mouseDblClick" arguments="1,1,0,324,44" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseDblClick" arguments="1,1,0,54,245" />
<!-- Start cell selection -->
<pqevent object="pqClientMainWindow/cameraToolbar/actionNegativeX" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/selectionToolbar/actionSelectionMode" command="set_boolean" arguments="true" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqQVTKWidget0" command="mousePress" arguments="(0.342688,0.0460251,1,1,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqQVTKWidget0" command="mouseMove" arguments="(0.672083,0.426778,1,0,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqQVTKWidget0" command="mouseRelease" arguments="(0.672083,0.426778,1,0,0)" />
<!-- Change view orientation for screen capture -->
<pqevent object="pqClientMainWindow/cameraToolbar/actionNegativeY" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/variableToolbar/displayColor/Variables" command="set_string" arguments="DISPL" />
</pqevents>
<?xml version="1.0" ?>
<pqevents>
<!-- Load plugin and setup the view -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/remoteGroup/remotePlugins" command="setCurrent" arguments="MultiSliceView" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/remoteGroup/loadSelected_Remote" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="MultiSliceView" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Close" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/EmptyView/scrollArea/qt_scrollarea_viewport/widgetFoo/ConvertActionsFrame/pqMultiSliceView" command="activate" arguments="" />
<!-- Load the data -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuSources" />
<pqevent object="pqClientMainWindow/menubar/menuSources" command="activate" arguments="RTAnalyticSource" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<!-- Create slices -->
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget2/1QVTKWidget0" command="mousePress" arguments="(0.183333,0.692469,1,1,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget2/1QVTKWidget0" command="mouseMove" arguments="(0.183333,0.692469,1,0,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget2/1QVTKWidget0" command="mouseRelease" arguments="(0.183333,0.692469,1,0,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget2/1QVTKWidget0" command="mouseDblClick" arguments="1,1,0,11,331" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget2/1QVTKWidget0" command="mouseMove" arguments="(0.183333,0.692469,1,0,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqMultiSliceAxisWidget2/1QVTKWidget0" command="mouseRelease" arguments="(0.183333,0.692469,1,0,0)" />
<!-- Start cell selection -->
<pqevent object="pqClientMainWindow/selectionToolbar/actionSelectionMode" command="set_boolean" arguments="true" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqQVTKWidget0" command="mousePress" arguments="(0.353028,0.288703,1,1,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqQVTKWidget0" command="mouseMove" arguments="(0.463811,0.405858,1,0,0)" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport/1pqQVTKWidget0" command="mouseRelease" arguments="(0.463811,0.405858,1,0,0)" />
<!-- Change view orientation for screen capture -->
<pqevent object="pqClientMainWindow/cameraToolbar/actionPositiveX" command="activate" arguments="" />
</pqevents>
......@@ -14,18 +14,32 @@
=========================================================================*/
#include "vtkMultiSliceRepresentation.h"
#include "vtkObjectFactory.h"
#include "vtkAppendFilter.h"
#include "vtkCompositePolyDataMapper2.h"
#include "vtkCutter.h"
#include "vtkPlane.h"
#include "vtkHardwareSelectionPolyDataPainter.h"
#include "vtkMapper.h"
#include "vtkNew.h"
#include "vtkAppendFilter.h"
#include "vtkObjectFactory.h"
#include "vtkOrthogonalSliceFilter.h"
#include "vtkPlane.h"
#include "vtkSelection.h"
vtkStandardNewMacro(vtkMultiSliceRepresentation);
//----------------------------------------------------------------------------
vtkMultiSliceRepresentation::vtkMultiSliceRepresentation()
{
this->InternalSliceFilter = vtkOrthogonalSliceFilter::New();
// setup the selection mapper so that we don't need to make any selection
// conversions after rendering.
vtkCompositePolyDataMapper2* mapper =
vtkCompositePolyDataMapper2::SafeDownCast(this->Mapper);
vtkHardwareSelectionPolyDataPainter* selPainter =
vtkHardwareSelectionPolyDataPainter::SafeDownCast(
mapper->GetSelectionPainter()->GetDelegatePainter());
selPainter->SetPointIdArrayName("-");
selPainter->SetCellIdArrayName("vtkSliceOriginalCellIds");
}
//----------------------------------------------------------------------------
......
......@@ -15,9 +15,11 @@
#include "vtkOrthogonalSliceFilter.h"
#include "vtkAppendPolyData.h"
#include "vtkCellData.h"
#include "vtkContourValues.h"
#include "vtkCutter.h"
#include "vtkDataSet.h"
#include "vtkIdTypeArray.h"
#include "vtkInformation.h"
#include "vtkInformationVector.h"
#include "vtkNew.h"
......@@ -174,6 +176,20 @@ int vtkOrthogonalSliceFilter::RequestData( vtkInformation *,
vtkPolyData *output =
vtkPolyData::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));
// Add CellIds
vtkIdType nbCells = input->GetNumberOfCells();
vtkNew<vtkIdTypeArray> originalCellIds;
originalCellIds->SetName("vtkSliceOriginalCellIds");
originalCellIds->SetNumberOfComponents(1);
originalCellIds->SetNumberOfTuples(nbCells);
input->GetCellData()->AddArray(originalCellIds.GetPointer());
// Fill the array with proper id values
for(vtkIdType id = 0; id < nbCells; ++id)
{
originalCellIds->SetValue(id, id);
}
this->SliceAlongX->SetInputData(input);
this->SliceAlongY->SetInputData(input);
this->SliceAlongZ->SetInputData(input);
......
......@@ -82,4 +82,9 @@ void vtkSMMultiSliceViewProxy::PrintSelf(ostream& os, vtkIndent indent)
this->Superclass::PrintSelf(os, indent);
}
//----------------------------------------------------------------------------
const char* vtkSMMultiSliceViewProxy::IsSelectVisiblePointsAvailable()
{
// The original dataset and the slice don't share the same points
return "Multi-Slice View do not allow point selection";
}
......@@ -34,6 +34,10 @@ public:
// Returns a new proxy.
virtual vtkSMRepresentationProxy* CreateDefaultRepresentation(vtkSMProxy*, int);
// Description:
// Similar to IsSelectionAvailable(), however, on failure returns the
// error message otherwise 0.
virtual const char* IsSelectVisiblePointsAvailable();
//BTX
protected:
vtkSMMultiSliceViewProxy();
......
......@@ -149,8 +149,10 @@ void pqRubberBandHelper::emitEnabledSignals()
{
vtkSMRenderViewProxy* proxy =
this->Internal->RenderView->getRenderViewProxy();
emit this->enableSurfaceSelection(proxy->IsSelectionAvailable());
emit this->enableSurfacePointsSelection(proxy->IsSelectionAvailable());
emit this->enableSurfaceSelection(
NULL == proxy->IsSelectVisibleCellsAvailable());
emit this->enableSurfacePointsSelection(
NULL == proxy->IsSelectVisiblePointsAvailable());
emit this->enablePick(proxy->IsSelectionAvailable());
emit this->enableFrustumSelection(true);
emit this->enableFrustumPointSelection(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment