mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
ParaView-5.0.1: Added the source-tree to ThirdParty-dev and patched as described in the README file
Resolves bug-report http://bugs.openfoam.org/view.php?id=2098
This commit is contained in:
38
ParaView-5.0.1/Plugins/NonOrthogonalSource/CMakeLists.txt
Normal file
38
ParaView-5.0.1/Plugins/NonOrthogonalSource/CMakeLists.txt
Normal file
@ -0,0 +1,38 @@
|
||||
SET(PLUGIN_NAME NonOrthogonalSource)
|
||||
SET(PLUGIN_VERSION "1.0")
|
||||
|
||||
include_directories(${VTK_INCLUDE_DIRS})
|
||||
|
||||
set(sources)
|
||||
|
||||
if(PARAVIEW_BUILD_QT_GUI)
|
||||
if(PARAVIEW_QT_VERSION VERSION_GREATER "4")
|
||||
qt5_wrap_cpp(MOC_SRCS pqNonOrthogonalAutoStart.h)
|
||||
else()
|
||||
qt4_wrap_cpp(MOC_SRCS pqNonOrthogonalAutoStart.h)
|
||||
endif()
|
||||
add_paraview_auto_start(IFACES IFACE_SRCS
|
||||
CLASS_NAME pqNonOrthogonalAutoStart
|
||||
STARTUP startup
|
||||
SHUTDOWN shutdown)
|
||||
list(APPEND sources
|
||||
pqNonOrthogonalAutoStart.cxx
|
||||
${MOC_SRCS}
|
||||
${IFACE_SRCS})
|
||||
endif()
|
||||
|
||||
add_paraview_plugin(NonOrthogonalSource "1.0"
|
||||
SERVER_MANAGER_XML
|
||||
vtkNonOrthogonalSource.xml
|
||||
SERVER_MANAGER_SOURCES
|
||||
vtkShearedWaveletSource.cxx
|
||||
GUI_INTERFACES ${IFACES}
|
||||
SOURCES ${sources}
|
||||
)
|
||||
if (PARAVIEW_BUILD_QT_GUI)
|
||||
target_link_libraries(NonOrthogonalSource LINK_PRIVATE pqApplicationComponents)
|
||||
endif()
|
||||
|
||||
if(BUILD_TESTING)
|
||||
add_subdirectory(Testing)
|
||||
endif()
|
||||
@ -0,0 +1,27 @@
|
||||
if (NOT PARAVIEW_BUILD_QT_GUI)
|
||||
return()
|
||||
endif()
|
||||
|
||||
include(ParaViewTestingMacros)
|
||||
set (xmls
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/NonOrthogonalSliceView.xml
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/NonOrthographicOrthographicView.xml
|
||||
)
|
||||
|
||||
set (NonOrthogonalSliceView_FORCE_SERIAL TRUE)
|
||||
|
||||
add_client_tests("pv"
|
||||
LOAD_PLUGIN "NonOrthogonalSource"
|
||||
BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
|
||||
TEST_SCRIPTS ${xmls}
|
||||
)
|
||||
add_client_server_tests("pvcs"
|
||||
LOAD_PLUGIN "NonOrthogonalSource"
|
||||
BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
|
||||
TEST_SCRIPTS ${xmls}
|
||||
)
|
||||
add_client_render_server_tests("pvcrs"
|
||||
LOAD_PLUGIN "NonOrthogonalSource"
|
||||
BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
|
||||
TEST_SCRIPTS ${xmls}
|
||||
)
|
||||
@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" ?>
|
||||
<pqevents>
|
||||
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_View" />
|
||||
<pqevent object="pqClientMainWindow/menubar/menu_View/Toolbars" command="activate" arguments="Center Axes Controls" />
|
||||
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuSources" />
|
||||
<pqevent object="pqClientMainWindow/menubar/menuSources" command="activate" arguments="ShearedWavelet" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/U/LineEdit1" command="set_string" arguments="1" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/V/LineEdit0" command="set_string" arguments="1" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/EnableAxisTitles/CheckBox" command="set_boolean" arguments="true" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/EnableTimeLabel/CheckBox" command="set_boolean" arguments="true" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_vcontainer/1QScrollBar0" command="mousePress" arguments="1,1,0,2,60" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_vcontainer/1QScrollBar0" command="mouseMove" arguments="1,0,0,-3,100" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_vcontainer/1QScrollBar0" command="mouseRelease" arguments="1,0,0,-3,100" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/ModelBoundingBox/LineEdit0" command="set_string" arguments="1" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/ModelBoundingBox/LineEdit1" command="set_string" arguments="5" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/ModelBoundingBox/LineEdit2" command="key" arguments="45" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/ModelBoundingBox/LineEdit2" command="set_string" arguments="-1" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/ModelBoundingBox/LineEdit4" command="set_string" arguments="3" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/ModelBoundingBox/LineEdit5" command="set_string" arguments="1" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/ModelBoundingBox/LineEdit5" command="set_string" arguments="13" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/ModelBoundingBox/LineEdit5" command="key" arguments="16777219" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/ModelBoundingBox/LineEdit5" command="key" arguments="16777219" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/ModelBoundingBox/LineEdit5" command="set_string" arguments="4" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel" command="mousePress" arguments="1,1,0,144,289" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel" command="mouseRelease" arguments="1,0,0,144,289" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="key" arguments="16777219" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="key" arguments="16777219" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="key" arguments="16777219" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="key" arguments="16777219" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="key" arguments="16777248" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="set_string" arguments="D" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="set_string" arguments="Dim" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="set_string" arguments="Dim" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="set_string" arguments="Dime" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="set_string" arguments="Dimen" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="set_string" arguments="Dimens" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="set_string" arguments="Dimensi" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="set_string" arguments="Dimension" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="set_string" arguments="Dimension" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="set_string" arguments="Dimension4" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="key" arguments="16777219" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="set_string" arguments="Dimension4" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="key" arguments="16777219" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/TimeLabel/TimeLabel" command="set_string" arguments="Dimension4" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton0" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport" command="mousePress" arguments="(0.351741,0.340741,1,1,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport" command="mouseMove" arguments="(0.404562,0.577778,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport" command="mouseRelease" arguments="(0.404562,0.577778,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_vcontainer/1QScrollBar0" command="mousePress" arguments="1,1,0,3,72" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_vcontainer/1QScrollBar0" command="mouseMove" arguments="1,0,0,15,-6" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_vcontainer/1QScrollBar0" command="mouseRelease" arguments="1,0,0,15,-6" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/V/LineEdit0" command="set_string" arguments="0" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton0" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport" command="mousePress" arguments="(0.531813,0.637037,1,1,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport" command="mouseMove" arguments="(0.27491,0.461111,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport" command="mouseRelease" arguments="(0.27491,0.461111,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/TitleBar/Close" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/EmptyView/scrollArea/qt_scrollarea_viewport/widgetFoo/ConvertActionsFrame/MultiSlice" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mousePress" arguments="1,1,0,7,10,/0:0/0:1" />
|
||||
<pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mouseRelease" arguments="1,0,0,7,10,/0:0/0:1" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_vcontainer/1QScrollBar0" command="mousePress" arguments="1,1,0,8,56" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_vcontainer/1QScrollBar0" command="mouseMove" arguments="1,0,0,-3,181" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_vcontainer/1QScrollBar0" command="mouseRelease" arguments="1,0,0,-3,181" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/CubeAxes/VisibilityCheckBox" command="set_boolean" arguments="true" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton5" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton6" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton8" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqQVTKWidget0" command="mousePress" arguments="(0.387816,0.461207,1,1,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqQVTKWidget0" command="mouseMove" arguments="(0.508172,0.463362,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqQVTKWidget0" command="mouseRelease" arguments="(0.508172,0.463362,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/CubeAxes/VisibilityCheckBox" command="set_boolean" arguments="false" />
|
||||
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
|
||||
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionTesting_Window_Size" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton3" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqQVTKWidget0" command="mousePress" arguments="(0.471429,0.598214,1,1,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqQVTKWidget0" command="mouseMove" arguments="(0.514286,0.379464,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqQVTKWidget0" command="mouseRelease" arguments="(0.514286,0.379464,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton7" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton6" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton5" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton4" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton3" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton7" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton8" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqQVTKWidget0" command="mousePress" arguments="(0.285714,0.669643,1,1,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqQVTKWidget0" command="mouseMove" arguments="(0.357143,0.65625,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqQVTKWidget0" command="mouseRelease" arguments="(0.357143,0.65625,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mousePress" arguments="(0.8625,0.276786,1,1,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseMove" arguments="(0.8625,0.276786,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseRelease" arguments="(0.8625,0.276786,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mousePress" arguments="(0.8625,0.276786,1,1,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseMove" arguments="(0.8625,0.276786,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseRelease" arguments="(0.8625,0.276786,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mousePress" arguments="(0.8625,0.276786,1,1,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseMove" arguments="(0.8625,0.276786,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseRelease" arguments="(0.8625,0.276786,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseDblClick" arguments="1,1,0,69,62" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseMove" arguments="(0.8625,0.276786,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseRelease" arguments="(0.8625,0.276786,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mousePress" arguments="(0.875,0.723214,1,1,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseMove" arguments="(0.875,0.723214,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseRelease" arguments="(0.875,0.723214,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseDblClick" arguments="1,1,0,70,162" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseMove" arguments="(0.875,0.723214,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport/1pqMultiSliceAxisWidget0/1QVTKWidget0" command="mouseRelease" arguments="(0.875,0.723214,1,0,0)" />
|
||||
<pqevent object="pqClientMainWindow/variableToolbar/actionScalarBarVisibility" command="set_boolean" arguments="false" />
|
||||
<pqevent object="pqClientMainWindow/axesToolbar/actionShowOrientationAxes" command="set_boolean" arguments="false" />
|
||||
</pqevents>
|
||||
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" ?>
|
||||
<pqevents>
|
||||
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuSources" />
|
||||
<pqevent object="pqClientMainWindow/menubar/menuSources" command="activate" arguments="ShearedWavelet" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel" command="mousePress" arguments="1,1,0,206,24" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel" command="mouseRelease" arguments="1,0,0,206,24" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/U/LineEdit1" command="set_string" arguments="1" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/EnableAxisTitles/CheckBox" command="set_boolean" arguments="true" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/EnableTimeLabel/CheckBox" command="set_boolean" arguments="true" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/TitleBar/Close" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/EmptyView/scrollArea/qt_scrollarea_viewport/widgetFoo/ConvertActionsFrame/OrthographicSliceView" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mousePress" arguments="1,1,0,9,12,/0:0/0:1" />
|
||||
<pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mouseRelease" arguments="1,0,0,9,12,/0:0/0:1" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/SearchBox/SearchLineEdit" command="set_string" arguments="c" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/SearchBox/SearchLineEdit" command="set_string" arguments="cu" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/SearchBox/SearchLineEdit" command="set_string" arguments="cue" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/SearchBox/SearchLineEdit" command="key" arguments="16777219" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/SearchBox/SearchLineEdit" command="set_string" arguments="cub" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/SearchBox/SearchLineEdit" command="set_string" arguments="cube" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/CubeAxes/VisibilityCheckBox" command="set_boolean" arguments="true" />
|
||||
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
|
||||
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionTesting_Window_Size" />
|
||||
<pqevent object="pqClientMainWindow/cameraToolbar/1QToolButton0" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/CubeAxes/VisibilityCheckBox" command="set_boolean" arguments="false" />
|
||||
</pqevents>
|
||||
12
ParaView-5.0.1/Plugins/NonOrthogonalSource/plugin.cmake
Normal file
12
ParaView-5.0.1/Plugins/NonOrthogonalSource/plugin.cmake
Normal file
@ -0,0 +1,12 @@
|
||||
pv_plugin(NonOrthogonalSource
|
||||
# provide a description for the plugin.
|
||||
DESCRIPTION "Non Orthogonal Source code sample"
|
||||
|
||||
# If we want this plugin to be auto-loaded when ParaView starts,
|
||||
# specify this option. This is ignored for static-builds. All enabled plugins
|
||||
# are autoloaded with static builds.
|
||||
# AUTOLOAD
|
||||
|
||||
# Specify this option if this plugin must be enabled for building, by default.
|
||||
DEFAULT_ENABLED
|
||||
)
|
||||
@ -0,0 +1,54 @@
|
||||
/*=========================================================================
|
||||
|
||||
Program: ParaView
|
||||
Module: pqNonOrthogonalAutoStart.cxx
|
||||
|
||||
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
|
||||
All rights reserved.
|
||||
|
||||
ParaView is a free software; you can redistribute it and/or modify it
|
||||
under the terms of the ParaView license version 1.2.
|
||||
|
||||
See License_v1.2.txt for the full ParaView license.
|
||||
A copy of this license can be obtained by contacting
|
||||
Kitware Inc.
|
||||
28 Corporate Drive
|
||||
Clifton Park, NY 12065
|
||||
USA
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
|
||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
========================================================================*/
|
||||
#include "pqNonOrthogonalAutoStart.h"
|
||||
#include "pqModelTransformSupportBehavior.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
pqNonOrthogonalAutoStart::pqNonOrthogonalAutoStart(QObject* parentObject)
|
||||
: Superclass(parentObject)
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
pqNonOrthogonalAutoStart::~pqNonOrthogonalAutoStart()
|
||||
{
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
void pqNonOrthogonalAutoStart::startup()
|
||||
{
|
||||
new pqModelTransformSupportBehavior(this);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void pqNonOrthogonalAutoStart::shutdown()
|
||||
{
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
/*=========================================================================
|
||||
|
||||
Program: ParaView
|
||||
Module: pqNonOrthogonalAutoStart.h
|
||||
|
||||
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
|
||||
All rights reserved.
|
||||
|
||||
ParaView is a free software; you can redistribute it and/or modify it
|
||||
under the terms of the ParaView license version 1.2.
|
||||
|
||||
See License_v1.2.txt for the full ParaView license.
|
||||
A copy of this license can be obtained by contacting
|
||||
Kitware Inc.
|
||||
28 Corporate Drive
|
||||
Clifton Park, NY 12065
|
||||
USA
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
|
||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
========================================================================*/
|
||||
#ifndef pqNonOrthogonalAutoStart_h
|
||||
#define pqNonOrthogonalAutoStart_h
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class pqNonOrthogonalAutoStart : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
typedef QObject Superclass;
|
||||
public:
|
||||
pqNonOrthogonalAutoStart(QObject* parent=0);
|
||||
virtual ~pqNonOrthogonalAutoStart();
|
||||
|
||||
void startup();
|
||||
void shutdown();
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(pqNonOrthogonalAutoStart)
|
||||
};
|
||||
|
||||
#endif
|
||||
@ -0,0 +1,49 @@
|
||||
/*=========================================================================
|
||||
|
||||
Program: ParaView
|
||||
Module: pqSetupModelTransformBehavior.h
|
||||
|
||||
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
|
||||
All rights reserved.
|
||||
|
||||
ParaView is a free software; you can redistribute it and/or modify it
|
||||
under the terms of the ParaView license version 1.2.
|
||||
|
||||
See License_v1.2.txt for the full ParaView license.
|
||||
A copy of this license can be obtained by contacting
|
||||
Kitware Inc.
|
||||
28 Corporate Drive
|
||||
Clifton Park, NY 12065
|
||||
USA
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
|
||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
========================================================================*/
|
||||
#ifndef pqSetupModelTransformBehavior_h
|
||||
#define pqSetupModelTransformBehavior_h
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class VTK_EXPORT pqSetupModelTransformBehavior : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
typedef QObject Superclass;
|
||||
public:
|
||||
pqSetupModelTransformBehavior(QObject* parent=0);
|
||||
virtual ~pqSetupModelTransformBehavior();
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(pqSetupModelTransformBehavior)
|
||||
};
|
||||
|
||||
#endif
|
||||
@ -0,0 +1,109 @@
|
||||
<ServerManagerConfiguration>
|
||||
<ProxyGroup name="sources">
|
||||
<SourceProxy name="ShearedWavelet" label="Sheared Wavelet" class="vtkShearedWaveletSource">
|
||||
<DoubleVectorProperty
|
||||
name="U"
|
||||
command="SetBasisU"
|
||||
number_of_elements="3"
|
||||
default_values="1.0 0.0 0.0"
|
||||
panel_visibility="default" >
|
||||
<DoubleRangeDomain name="range"/>
|
||||
<Documentation>
|
||||
The values of this property set the corresponding X axis direction.
|
||||
</Documentation>
|
||||
</DoubleVectorProperty>
|
||||
|
||||
<DoubleVectorProperty
|
||||
name="V"
|
||||
command="SetBasisV"
|
||||
number_of_elements="3"
|
||||
default_values="0.0 1.0 0.0"
|
||||
panel_visibility="default" >
|
||||
<DoubleRangeDomain name="range"/>
|
||||
<Documentation>
|
||||
The values of this property set the corresponding Y axis direction.
|
||||
</Documentation>
|
||||
</DoubleVectorProperty>
|
||||
|
||||
<DoubleVectorProperty
|
||||
name="W"
|
||||
command="SetBasisW"
|
||||
number_of_elements="3"
|
||||
default_values="0.0 0.0 1.0"
|
||||
panel_visibility="default" >
|
||||
<DoubleRangeDomain name="range"/>
|
||||
<Documentation>
|
||||
The values of this property set the corresponding Z axis direction.
|
||||
</Documentation>
|
||||
</DoubleVectorProperty>
|
||||
|
||||
<StringVectorProperty
|
||||
name="UTitle"
|
||||
command="SetAxisUTitle"
|
||||
number_of_elements="1"
|
||||
default_values="Base U"
|
||||
panel_visibility="default">
|
||||
<Documentation>
|
||||
This property specifies the text to display for the X axis.
|
||||
</Documentation>
|
||||
</StringVectorProperty>
|
||||
|
||||
<StringVectorProperty
|
||||
name="VTitle"
|
||||
command="SetAxisVTitle"
|
||||
number_of_elements="1"
|
||||
default_values="Base V"
|
||||
panel_visibility="default">
|
||||
<Documentation>
|
||||
This property specifies the text to display for the Y axis.
|
||||
</Documentation>
|
||||
</StringVectorProperty>
|
||||
|
||||
<StringVectorProperty
|
||||
name="WTitle"
|
||||
command="SetAxisWTitle"
|
||||
number_of_elements="1"
|
||||
default_values="Base W"
|
||||
panel_visibility="default">
|
||||
<Documentation>
|
||||
This property specifies the text to display for the Z axis.
|
||||
</Documentation>
|
||||
</StringVectorProperty>
|
||||
|
||||
<IntVectorProperty name="EnableAxisTitles"
|
||||
command="SetEnableAxisTitles"
|
||||
number_of_elements="1"
|
||||
default_values="0"
|
||||
panel_visibility="default">
|
||||
<BooleanDomain name="bool"/>
|
||||
</IntVectorProperty>
|
||||
|
||||
<IntVectorProperty name="EnableTimeLabel"
|
||||
command="SetEnableTimeLabel"
|
||||
number_of_elements="1"
|
||||
default_values="0"
|
||||
panel_visibility="default">
|
||||
<BooleanDomain name="bool"/>
|
||||
</IntVectorProperty>
|
||||
<DoubleVectorProperty name="ModelBoundingBox"
|
||||
command="SetModelBoundingBox"
|
||||
number_of_elements="6"
|
||||
default_values="0 1 0 1 0 1">
|
||||
<DoubleRangeDomain name="range" />
|
||||
</DoubleVectorProperty>
|
||||
<StringVectorProperty name="TimeLabel"
|
||||
command="SetTimeLabel"
|
||||
number_of_elements="1"
|
||||
default_values="Time"
|
||||
panel_visibility="default">
|
||||
<Documentation>
|
||||
This property specifies the text to use for time label.
|
||||
</Documentation>
|
||||
</StringVectorProperty>
|
||||
<StringVectorProperty name="TimeLabelAnnotation"
|
||||
command="GetTimeLabelAnnotation"
|
||||
information_only="1">
|
||||
</StringVectorProperty>
|
||||
</SourceProxy>
|
||||
</ProxyGroup>
|
||||
</ServerManagerConfiguration>
|
||||
@ -0,0 +1,117 @@
|
||||
/*=========================================================================
|
||||
|
||||
Program: ParaView
|
||||
Module: vtkShearedWaveletSource.cxx
|
||||
|
||||
Copyright (c) Kitware, Inc.
|
||||
All rights reserved.
|
||||
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
|
||||
|
||||
This software is distributed WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE. See the above copyright notice for more information.
|
||||
|
||||
=========================================================================*/
|
||||
#include "vtkShearedWaveletSource.h"
|
||||
|
||||
#include "vtkDataSetTriangleFilter.h"
|
||||
#include "vtkDoubleArray.h"
|
||||
#include "vtkFieldData.h"
|
||||
#include "vtkMatrix4x4.h"
|
||||
#include "vtkNew.h"
|
||||
#include "vtkObjectFactory.h"
|
||||
#include "vtkRTAnalyticSource.h"
|
||||
#include "vtkStringArray.h"
|
||||
#include "vtkTransformFilter.h"
|
||||
#include "vtkTransform.h"
|
||||
#include "vtkUnstructuredGrid.h"
|
||||
#include "vtkPVChangeOfBasisHelper.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
vtkStandardNewMacro(vtkShearedWaveletSource);
|
||||
//----------------------------------------------------------------------------
|
||||
vtkShearedWaveletSource::vtkShearedWaveletSource()
|
||||
{
|
||||
this->EnableAxisTitles = false;
|
||||
this->EnableTimeLabel = false;
|
||||
this->TimeLabel = NULL;
|
||||
this->AxisUTitle = NULL;
|
||||
this->AxisVTitle = NULL;
|
||||
this->AxisWTitle = NULL;
|
||||
|
||||
this->ModelBoundingBox[0] = this->ModelBoundingBox[2] = this->ModelBoundingBox[4] = 0.0;
|
||||
this->ModelBoundingBox[1] = this->ModelBoundingBox[3] = this->ModelBoundingBox[5] = 1.0;
|
||||
|
||||
this->BasisU[0] = 1; this->BasisU[1] = 0; this->BasisU[2] = 0;
|
||||
this->BasisV[0] = 0; this->BasisV[1] = 1; this->BasisV[2] = 0;
|
||||
this->BasisW[0] = 0; this->BasisW[1] = 0; this->BasisW[2] = 1;
|
||||
|
||||
this->SetNumberOfInputPorts(0);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
vtkShearedWaveletSource::~vtkShearedWaveletSource()
|
||||
{
|
||||
this->SetTimeLabel(NULL);
|
||||
this->SetAxisUTitle(NULL);
|
||||
this->SetAxisVTitle(NULL);
|
||||
this->SetAxisWTitle(NULL);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
int vtkShearedWaveletSource::RequestData(
|
||||
vtkInformation *, vtkInformationVector **, vtkInformationVector *outputVector)
|
||||
{
|
||||
vtkUnstructuredGrid* output = vtkUnstructuredGrid::GetData(outputVector, 0);
|
||||
|
||||
vtkNew<vtkRTAnalyticSource> analyticSource;
|
||||
vtkNew<vtkDataSetTriangleFilter> tetrahedralize;
|
||||
tetrahedralize->SetInputConnection(analyticSource->GetOutputPort());
|
||||
|
||||
// This produces an image in bounds (-10, 10, -10, 10, -10, 10).
|
||||
// We will transform this to the bounds defined by ModelBoundingBox.
|
||||
// That will be our original input model.
|
||||
vtkNew<vtkTransformFilter> transformFilter;
|
||||
vtkNew<vtkTransform> transform;
|
||||
transform->Identity();
|
||||
transform->PostMultiply();
|
||||
transform->Translate(10, 10, 10);
|
||||
transform->Scale(0.05, 0.05, 0.05);
|
||||
// at this point, we have a unit box at origin. Now, scale/translate it
|
||||
// based on ModelBoundingBox.
|
||||
transform->Scale(this->ModelBoundingBox[1] - this->ModelBoundingBox[0],
|
||||
this->ModelBoundingBox[3] - this->ModelBoundingBox[2],
|
||||
this->ModelBoundingBox[5] - this->ModelBoundingBox[4]);
|
||||
transform->Translate(this->ModelBoundingBox[0], this->ModelBoundingBox[2], this->ModelBoundingBox[4]);
|
||||
|
||||
transformFilter->SetTransform(transform.GetPointer());
|
||||
transformFilter->SetInputConnection(tetrahedralize->GetOutputPort());
|
||||
transformFilter->Update();
|
||||
output->ShallowCopy(transformFilter->GetOutputDataObject(0));
|
||||
|
||||
vtkSmartPointer<vtkMatrix4x4> cobMatrix =
|
||||
vtkPVChangeOfBasisHelper::GetChangeOfBasisMatrix(
|
||||
vtkVector3d(this->BasisU), vtkVector3d(this->BasisV), vtkVector3d(this->BasisW));
|
||||
transform->SetMatrix(cobMatrix.GetPointer());
|
||||
transformFilter->SetInputDataObject(output);
|
||||
transformFilter->Update();
|
||||
|
||||
output->ShallowCopy(transformFilter->GetOutputDataObject(0));
|
||||
|
||||
vtkPVChangeOfBasisHelper::AddChangeOfBasisMatrixToFieldData(output, cobMatrix);
|
||||
vtkPVChangeOfBasisHelper::AddBoundingBoxInBasis(output, this->ModelBoundingBox);
|
||||
|
||||
if (this->EnableAxisTitles)
|
||||
{
|
||||
vtkPVChangeOfBasisHelper::AddBasisNames(output,
|
||||
this->AxisUTitle, this->AxisVTitle, this->AxisWTitle);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void vtkShearedWaveletSource::PrintSelf(ostream& os, vtkIndent indent)
|
||||
{
|
||||
this->Superclass::PrintSelf(os, indent);
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
/*=========================================================================
|
||||
|
||||
Program: ParaView
|
||||
Module: vtkShearedWaveletSource.h
|
||||
|
||||
Copyright (c) Kitware, Inc.
|
||||
All rights reserved.
|
||||
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
|
||||
|
||||
This software is distributed WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE. See the above copyright notice for more information.
|
||||
|
||||
=========================================================================*/
|
||||
// .NAME vtkShearedWaveletSource
|
||||
// .SECTION Description
|
||||
//
|
||||
|
||||
#ifndef vtkShearedWaveletSource_h
|
||||
#define vtkShearedWaveletSource_h
|
||||
|
||||
#include "vtkUnstructuredGridAlgorithm.h"
|
||||
|
||||
class VTK_EXPORT vtkShearedWaveletSource : public vtkUnstructuredGridAlgorithm
|
||||
{
|
||||
public:
|
||||
static vtkShearedWaveletSource* New();
|
||||
vtkTypeMacro(vtkShearedWaveletSource, vtkUnstructuredGridAlgorithm);
|
||||
void PrintSelf(ostream& os, vtkIndent indent);
|
||||
|
||||
// Set bounding box is model-space.
|
||||
// Specified as (xmin, xmax, ymin, ymax, zmin, zmax).
|
||||
vtkSetVector6Macro(ModelBoundingBox, double);
|
||||
vtkGetVector6Macro(ModelBoundingBox, double);
|
||||
|
||||
// Set basis vectors.
|
||||
vtkSetVector3Macro(BasisU, double);
|
||||
vtkSetVector3Macro(BasisV, double);
|
||||
vtkSetVector3Macro(BasisW, double);
|
||||
|
||||
// Description:
|
||||
// Set title that should be used by the CubeAxis for a given direction
|
||||
vtkSetStringMacro(AxisUTitle);
|
||||
vtkGetStringMacro(AxisUTitle);
|
||||
vtkSetStringMacro(AxisVTitle);
|
||||
vtkGetStringMacro(AxisVTitle);
|
||||
vtkSetStringMacro(AxisWTitle);
|
||||
vtkGetStringMacro(AxisWTitle);
|
||||
|
||||
// Description:
|
||||
// Enable/Disable field generation for oriented bounding box annotation
|
||||
vtkSetMacro(EnableAxisTitles, bool);
|
||||
vtkGetMacro(EnableAxisTitles, bool);
|
||||
|
||||
// Description:
|
||||
// Enable/Disable field generation for label that will be used for "Time:"
|
||||
vtkSetMacro(EnableTimeLabel, bool);
|
||||
vtkGetMacro(EnableTimeLabel, bool);
|
||||
|
||||
// Description:
|
||||
// Specify custom Time label
|
||||
vtkSetStringMacro(TimeLabel);
|
||||
vtkGetStringMacro(TimeLabel);
|
||||
const char* GetTimeLabelAnnotation()
|
||||
{
|
||||
return this->EnableTimeLabel? this->TimeLabel : "Time";
|
||||
}
|
||||
|
||||
//BTX
|
||||
protected:
|
||||
vtkShearedWaveletSource();
|
||||
~vtkShearedWaveletSource();
|
||||
|
||||
virtual int RequestData(
|
||||
vtkInformation *, vtkInformationVector **, vtkInformationVector *);
|
||||
|
||||
bool EnableAxisTitles;
|
||||
bool EnableTimeLabel;
|
||||
|
||||
char* AxisUTitle;
|
||||
char* AxisVTitle;
|
||||
char* AxisWTitle;
|
||||
char* TimeLabel;
|
||||
|
||||
double ModelBoundingBox[6];
|
||||
double BasisU[3];
|
||||
double BasisV[3];
|
||||
double BasisW[3];
|
||||
private:
|
||||
vtkShearedWaveletSource(const vtkShearedWaveletSource&); // Not implemented
|
||||
void operator=(const vtkShearedWaveletSource&); // Not implemented
|
||||
//ETX
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user