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:
19
ParaView-5.0.1/Plugins/TestPlugin/CMakeLists.txt
Normal file
19
ParaView-5.0.1/Plugins/TestPlugin/CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
#--------------------------------------------------
|
||||
# Find and Use ParaView
|
||||
#--------------------------------------------------
|
||||
IF (ParaView_SOURCE_DIR)
|
||||
INCLUDE_DIRECTORIES(
|
||||
${VTK_INCLUDE_DIRS}
|
||||
)
|
||||
ELSE ()
|
||||
FIND_PACKAGE(ParaView REQUIRED)
|
||||
INCLUDE(${PARAVIEW_USE_FILE})
|
||||
ENDIF ()
|
||||
|
||||
ADD_PARAVIEW_PLUGIN(PacMan "1.0"
|
||||
SERVER_MANAGER_XML PacMan.xml)
|
||||
|
||||
# Add testing if necessary
|
||||
if (BUILD_TESTING)
|
||||
add_subdirectory(Testing)
|
||||
endif ()
|
||||
85
ParaView-5.0.1/Plugins/TestPlugin/PacMan.xml
Normal file
85
ParaView-5.0.1/Plugins/TestPlugin/PacMan.xml
Normal file
@ -0,0 +1,85 @@
|
||||
<ServerManagerConfiguration>
|
||||
<ProxyGroup name="settings">
|
||||
|
||||
<SettingsProxy name="PacManSettings" label="PacMan"
|
||||
processes="client|dataserver|renderserver">
|
||||
<Documentation>
|
||||
Settings for the PacMan plugin.
|
||||
</Documentation>
|
||||
|
||||
<IntVectorProperty name="TestOption"
|
||||
number_of_elements="1"
|
||||
default_values="0">
|
||||
<Documentation>
|
||||
This is a simple boolean test option.
|
||||
</Documentation>
|
||||
<BooleanDomain name="bool" />
|
||||
</IntVectorProperty>
|
||||
<Hints>
|
||||
<UseDocumentationForLabels />
|
||||
</Hints>
|
||||
</SettingsProxy>
|
||||
|
||||
</ProxyGroup>
|
||||
<ProxyGroup name="sources">
|
||||
<SourceProxy name="PacMan" class="vtkSphereSource" label="PacMan">
|
||||
<DoubleVectorProperty
|
||||
name="Center"
|
||||
command="SetCenter"
|
||||
number_of_elements="3"
|
||||
animateable="1"
|
||||
default_values="0.0 0.0 0.0" >
|
||||
<DoubleRangeDomain name="range"/>
|
||||
<Documentation>
|
||||
This property specifies the 3D coordinates for the center of the sphere.
|
||||
</Documentation>
|
||||
</DoubleVectorProperty>
|
||||
|
||||
<IntVectorProperty
|
||||
name="ThetaResolution"
|
||||
command="SetThetaResolution"
|
||||
number_of_elements="1"
|
||||
default_values="60" >
|
||||
<IntRangeDomain name="range" min="3" max="1024" />
|
||||
<Documentation>
|
||||
The value of this property represents the number of divisions between Start Theta and End Theta around the sphere. (See the Start Theta and End Theta properties.) The theta divisions are similar to longitude lines on the earth. The higher the resolution, the closer the approximation will come to a sphere, and the more polygons there will be.
|
||||
</Documentation>
|
||||
</IntVectorProperty>
|
||||
|
||||
<DoubleVectorProperty
|
||||
name="StartTheta"
|
||||
command="SetStartTheta"
|
||||
number_of_elements="1"
|
||||
animateable="1"
|
||||
default_values="30" >
|
||||
<DoubleRangeDomain name="range" min="0" max="360" />
|
||||
<Documentation>
|
||||
To form a complete sphere, the value of this property should be 0 degrees, and the value of the End Theta property should be 360 degrees. The value of this property can be adjusted to form only a portion of a sphere.
|
||||
</Documentation>
|
||||
</DoubleVectorProperty>
|
||||
|
||||
<DoubleVectorProperty
|
||||
name="EndTheta"
|
||||
command="SetEndTheta"
|
||||
number_of_elements="1"
|
||||
animateable="1"
|
||||
default_values="330" >
|
||||
<DoubleRangeDomain name="range" min="0" max="360" />
|
||||
<Documentation>
|
||||
The value of this property can be adjusted to form only a portion of a sphere. This value is measured in degrees.
|
||||
</Documentation>
|
||||
</DoubleVectorProperty>
|
||||
|
||||
<IntVectorProperty
|
||||
name="PhiResolution"
|
||||
command="SetPhiResolution"
|
||||
number_of_elements="1"
|
||||
default_values="60" >
|
||||
<IntRangeDomain name="range" min="3" max="1024" />
|
||||
<Documentation>
|
||||
The value of this property represents the number of divisions between Start Phi and End Phi on the sphere. (See the Start Phi and End Phi properties.) The phi divisions are similar to latitude lines on the earth.
|
||||
</Documentation>
|
||||
</IntVectorProperty>
|
||||
</SourceProxy>
|
||||
</ProxyGroup>
|
||||
</ServerManagerConfiguration>
|
||||
15
ParaView-5.0.1/Plugins/TestPlugin/Testing/CMakeLists.txt
Normal file
15
ParaView-5.0.1/Plugins/TestPlugin/Testing/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
||||
INCLUDE(ParaViewTestingMacros)
|
||||
|
||||
set(MODULE_TESTS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/LoadPlugins.xml
|
||||
)
|
||||
|
||||
IF (PARAVIEW_BUILD_QT_GUI AND BUILD_SHARED_LIBS)
|
||||
|
||||
add_client_tests("pv"
|
||||
# LOAD_PLUGIN "PacMan"
|
||||
BASELINE_DIR ${PARAVIEW_TEST_BASELINE_DIR}
|
||||
TEST_SCRIPTS ${MODULE_TESTS}
|
||||
)
|
||||
|
||||
ENDIF ()
|
||||
28
ParaView-5.0.1/Plugins/TestPlugin/Testing/LoadPlugins.xml
Normal file
28
ParaView-5.0.1/Plugins/TestPlugin/Testing/LoadPlugins.xml
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" ?>
|
||||
<pqevents>
|
||||
<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="AnalyzeNIfTIIO" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="H5PartReader" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="SurfaceLIC" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="SLACTools" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="SierraPlotTools" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="pvblot" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="PrismPlugin" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="Moments" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="PacMan" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
|
||||
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuSources" />
|
||||
<pqevent object="pqClientMainWindow/menubar/menuSources" command="activate" arguments="PacMan" />
|
||||
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
|
||||
<pqevent object="pqSLACActionHolder/actionToggleBackgroundBW" command="activate" arguments="" />
|
||||
</pqevents>
|
||||
3
ParaView-5.0.1/Plugins/TestPlugin/plugin.cmake
Normal file
3
ParaView-5.0.1/Plugins/TestPlugin/plugin.cmake
Normal file
@ -0,0 +1,3 @@
|
||||
pv_plugin(PacMan
|
||||
DESCRIPTION "Testing plugin"
|
||||
DEFAULT_ENABLED)
|
||||
Reference in New Issue
Block a user