Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Modules
Visualization
Commits
63087b46
Commit
63087b46
authored
Apr 05, 2013
by
andy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: Added PV readers for version 3.98.1
parent
2ff32af9
Changes
57
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
57 changed files
with
11208 additions
and
0 deletions
+11208
-0
src/paraview-plugins/PV398Readers/Allwclean
src/paraview-plugins/PV398Readers/Allwclean
+9
-0
src/paraview-plugins/PV398Readers/Allwmake
src/paraview-plugins/PV398Readers/Allwmake
+22
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/Allwclean
src/paraview-plugins/PV398Readers/PV398FoamReader/Allwclean
+11
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/Allwmake
src/paraview-plugins/PV398Readers/PV398FoamReader/Allwmake
+17
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/PV398FoamReader/CMakeLists.txt
...398Readers/PV398FoamReader/PV398FoamReader/CMakeLists.txt
+85
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/PV398FoamReader/PV398FoamReader.qrc
...aders/PV398FoamReader/PV398FoamReader/PV398FoamReader.qrc
+5
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/PV398FoamReader/PV398FoamReader.xml
...aders/PV398FoamReader/PV398FoamReader/PV398FoamReader.xml
+6
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/PV398FoamReader/PV398FoamReader_SM.xml
...rs/PV398FoamReader/PV398FoamReader/PV398FoamReader_SM.xml
+306
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/PV398FoamReader/pqPV398FoamReaderPanel.cxx
...V398FoamReader/PV398FoamReader/pqPV398FoamReaderPanel.cxx
+468
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/PV398FoamReader/pqPV398FoamReaderPanel.h
.../PV398FoamReader/PV398FoamReader/pqPV398FoamReaderPanel.h
+120
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/PV398FoamReader/vtkPV398FoamReader.cxx
...rs/PV398FoamReader/PV398FoamReader/vtkPV398FoamReader.cxx
+752
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/PV398FoamReader/vtkPV398FoamReader.h
...ders/PV398FoamReader/PV398FoamReader/vtkPV398FoamReader.h
+262
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/Make/files
...gins/PV398Readers/PV398FoamReader/vtkPV398Foam/Make/files
+11
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/Make/options
...ns/PV398Readers/PV398FoamReader/vtkPV398Foam/Make/options
+21
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkDataArrayTemplateImplicit.txx
...8FoamReader/vtkPV398Foam/vtkDataArrayTemplateImplicit.txx
+0
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkOpenFOAMPoints.H
...8Readers/PV398FoamReader/vtkPV398Foam/vtkOpenFOAMPoints.H
+79
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkOpenFOAMTupleRemap.H
...ders/PV398FoamReader/vtkPV398Foam/vtkOpenFOAMTupleRemap.H
+71
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398Foam.C
.../PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398Foam.C
+837
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398Foam.H
.../PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398Foam.H
+737
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamAddToSelection.H
...PV398FoamReader/vtkPV398Foam/vtkPV398FoamAddToSelection.H
+74
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamFaceField.H
...ders/PV398FoamReader/vtkPV398Foam/vtkPV398FoamFaceField.H
+117
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamFields.C
...Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamFields.C
+325
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamLagrangianFields.H
...398FoamReader/vtkPV398Foam/vtkPV398FoamLagrangianFields.H
+113
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamMesh.C
...98Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamMesh.C
+648
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamMeshLagrangian.C
...PV398FoamReader/vtkPV398Foam/vtkPV398FoamMeshLagrangian.C
+109
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamMeshSet.C
...eaders/PV398FoamReader/vtkPV398Foam/vtkPV398FoamMeshSet.C
+148
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamMeshVolume.C
...ers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamMeshVolume.C
+481
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamMeshZone.C
...aders/PV398FoamReader/vtkPV398Foam/vtkPV398FoamMeshZone.C
+75
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamPatchField.H
...ers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamPatchField.H
+129
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamPointFields.H
...rs/PV398FoamReader/vtkPV398Foam/vtkPV398FoamPointFields.H
+331
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamTemplates.C
...ders/PV398FoamReader/vtkPV398Foam/vtkPV398FoamTemplates.C
+99
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamUpdateInfo.C
...ers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamUpdateInfo.C
+724
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamUpdateInfoFields.H
...398FoamReader/vtkPV398Foam/vtkPV398FoamUpdateInfoFields.H
+115
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamUtils.C
...8Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamUtils.C
+340
-0
src/paraview-plugins/PV398Readers/PV398FoamReader/vtkPV398Foam/vtkPV398FoamVolFields.H
...ders/PV398FoamReader/vtkPV398Foam/vtkPV398FoamVolFields.H
+380
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/Allwclean
...aview-plugins/PV398Readers/PV398blockMeshReader/Allwclean
+11
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/Allwmake
...raview-plugins/PV398Readers/PV398blockMeshReader/Allwmake
+17
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/PV398blockMeshReader/CMakeLists.txt
.../PV398blockMeshReader/PV398blockMeshReader/CMakeLists.txt
+86
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/PV398blockMeshReader/PV398blockMeshReader.qrc
...kMeshReader/PV398blockMeshReader/PV398blockMeshReader.qrc
+5
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/PV398blockMeshReader/PV398blockMeshReader.xml
...kMeshReader/PV398blockMeshReader/PV398blockMeshReader.xml
+6
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/PV398blockMeshReader/PV398blockMeshReader_SM.xml
...shReader/PV398blockMeshReader/PV398blockMeshReader_SM.xml
+110
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/PV398blockMeshReader/pqPV398blockMeshReaderPanel.cxx
...ader/PV398blockMeshReader/pqPV398blockMeshReaderPanel.cxx
+110
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/PV398blockMeshReader/pqPV398blockMeshReaderPanel.h
...Reader/PV398blockMeshReader/pqPV398blockMeshReaderPanel.h
+89
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/PV398blockMeshReader/vtkPV398blockMeshReader.cxx
...shReader/PV398blockMeshReader/vtkPV398blockMeshReader.cxx
+419
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/PV398blockMeshReader/vtkPV398blockMeshReader.h
...MeshReader/PV398blockMeshReader/vtkPV398blockMeshReader.h
+177
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/vtkPV398blockMesh/Make/files
...Readers/PV398blockMeshReader/vtkPV398blockMesh/Make/files
+5
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/vtkPV398blockMesh/Make/options
...aders/PV398blockMeshReader/vtkPV398blockMesh/Make/options
+12
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/vtkPV398blockMesh/vtkDataArrayTemplateImplicit.txx
...Reader/vtkPV398blockMesh/vtkDataArrayTemplateImplicit.txx
+0
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/vtkPV398blockMesh/vtkOpenFOAMPoints.H
...V398blockMeshReader/vtkPV398blockMesh/vtkOpenFOAMPoints.H
+65
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/vtkPV398blockMesh/vtkPV398blockMesh.C
...V398blockMeshReader/vtkPV398blockMesh/vtkPV398blockMesh.C
+473
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/vtkPV398blockMesh/vtkPV398blockMesh.H
...V398blockMeshReader/vtkPV398blockMesh/vtkPV398blockMesh.H
+351
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/vtkPV398blockMesh/vtkPV398blockMeshConvert.C
...ckMeshReader/vtkPV398blockMesh/vtkPV398blockMeshConvert.C
+319
-0
src/paraview-plugins/PV398Readers/PV398blockMeshReader/vtkPV398blockMesh/vtkPV398blockMeshUtils.C
...lockMeshReader/vtkPV398blockMesh/vtkPV398blockMeshUtils.C
+357
-0
src/paraview-plugins/PV398Readers/vtkPV398Readers/Make/files
src/paraview-plugins/PV398Readers/vtkPV398Readers/Make/files
+3
-0
src/paraview-plugins/PV398Readers/vtkPV398Readers/Make/options
...araview-plugins/PV398Readers/vtkPV398Readers/Make/options
+5
-0
src/paraview-plugins/PV398Readers/vtkPV398Readers/vtkPV398Readers.C
...ew-plugins/PV398Readers/vtkPV398Readers/vtkPV398Readers.C
+333
-0
src/paraview-plugins/PV398Readers/vtkPV398Readers/vtkPV398Readers.H
...ew-plugins/PV398Readers/vtkPV398Readers/vtkPV398Readers.H
+228
-0
No files found.
src/paraview-plugins/PV398Readers/Allwclean
0 → 100755
View file @
63087b46
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wclean libso vtkPV398Readers
PV398blockMeshReader/Allwclean
PV398FoamReader/Allwclean
# ----------------------------------------------------------------- end-of-file
src/paraview-plugins/PV398Readers/Allwmake
0 → 100755
View file @
63087b46
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
#set -x
if
[
-d
"
$ParaView_DIR
"
-a
-r
"
$ParaView_DIR
"
]
then
[
-n
"
$PV_PLUGIN_PATH
"
]
||
{
echo
"
$0
: PV_PLUGIN_PATH not valid - it is unset"
exit
1
}
# ensure CMake gets the correct C++ compiler
[
-n
"
$WM_CXX
"
]
&&
export
CXX
=
"
$WM_CXX
"
wmake libso vtkPV398Readers
PV398blockMeshReader/Allwmake
PV398FoamReader/Allwmake
else
echo
"ERROR: ParaView not found in
$ParaView_DIR
"
fi
# ----------------------------------------------------------------- end-of-file
src/paraview-plugins/PV398Readers/PV398FoamReader/Allwclean
0 → 100755
View file @
63087b46
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
# deal with client/server vs combined plugins
rm
-f
$FOAM_LIBBIN
/libPV398FoamReader
*
2>/dev/null
rm
-rf
PV398FoamReader/Make
wclean libso vtkPV398Foam
# ----------------------------------------------------------------- end-of-file
src/paraview-plugins/PV398Readers/PV398FoamReader/Allwmake
0 → 100755
View file @
63087b46
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
if
[
-d
"
$ParaView_DIR
"
-a
-r
"
$ParaView_DIR
"
]
then
wmake libso vtkPV398Foam
(
cd
PV398FoamReader
mkdir
-p
Make/
$WM_OPTIONS
>
/dev/null 2>&1
cd
Make/
$WM_OPTIONS
cmake ../..
make
)
fi
# ----------------------------------------------------------------- end-of-file
src/paraview-plugins/PV398Readers/PV398FoamReader/PV398FoamReader/CMakeLists.txt
0 → 100644
View file @
63087b46
# create a plugin that adds a reader to the ParaView GUI
# it is added in the file dialog when doing opens/saves.
# The qrc file is processed by Qt's resource compiler (rcc)
# the qrc file must have a resource prefix of "/ParaViewResources"
# and ParaView will read anything contained under that prefix
# the pqReader.xml file contains xml defining readers with their
# file extensions and descriptions.
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
FIND_PACKAGE
(
ParaView REQUIRED
)
INCLUDE
(
${
PARAVIEW_USE_FILE
}
)
LINK_DIRECTORIES
(
$ENV{FOAM_LIBBIN}
$ENV{FOAM_EXT_LIBBIN}
)
INCLUDE_DIRECTORIES
(
$ENV{WM_PROJECT_DIR}/src/OpenFOAM/lnInclude
$ENV{WM_PROJECT_DIR}/src/OSspecific/$ENV{WM_OSTYPE}/lnInclude
$ENV{WM_PROJECT_DIR}/src/finiteVolume/lnInclude
${
PROJECT_SOURCE_DIR
}
/../vtkPV398Foam
)
ADD_DEFINITIONS
(
-DWM_$ENV{WM_PRECISION_OPTION}
)
# Set output library destination to plugin folder
SET
(
LIBRARY_OUTPUT_PATH $ENV{PV_PLUGIN_PATH}
CACHE INTERNAL
"Single output directory for building all libraries."
)
#
# Defined combined plugin
#
# Extend the auto-generated panel
QT4_WRAP_CPP
(
MOC_SRCS pqPV398FoamReaderPanel.h
)
ADD_PARAVIEW_OBJECT_PANEL
(
IFACES IFACE_SRCS
CLASS_NAME pqPV398FoamReaderPanel
XML_NAME PV398FoamReader
# name of SourceProxy in *SM.xml
XML_GROUP sources
)
ADD_PARAVIEW_PLUGIN
(
PV398FoamReader_SM
"1.0"
SERVER_MANAGER_XML PV398FoamReader_SM.xml
SERVER_MANAGER_SOURCES vtkPV398FoamReader.cxx
GUI_INTERFACES
${
IFACES
}
GUI_SOURCES pqPV398FoamReaderPanel.cxx
${
MOC_SRCS
}
${
UI_SRCS
}
${
IFACE_SRCS
}
GUI_RESOURCE_FILES PV398FoamReader.xml
)
# #
# # Define the server-side portion of the reader plugin
# #
# ADD_PARAVIEW_PLUGIN(
# PV398FoamReader_SM "1.0"
# SERVER_MANAGER_XML PV398FoamReader_SM.xml
# SERVER_MANAGER_SOURCES vtkPV398FoamReader.cxx
# )
# #
# # Define the client-side portion of the reader plugin
# #
# ADD_PARAVIEW_PLUGIN(
# PV398FoamReader "1.0"
# GUI_RESOURCES PV3FoamReader.qrc
# )
#
TARGET_LINK_LIBRARIES
(
PV398FoamReader_SM
OpenFOAM
finiteVolume
vtkPV398Foam
)
#-----------------------------------------------------------------------------
src/paraview-plugins/PV398Readers/PV398FoamReader/PV398FoamReader/PV398FoamReader.qrc
0 → 100644
View file @
63087b46
<RCC>
<qresource prefix="/ParaViewResources" >
<file>PV398FoamReader.xml</file>
</qresource>
</RCC>
src/paraview-plugins/PV398Readers/PV398FoamReader/PV398FoamReader/PV398FoamReader.xml
0 → 100644
View file @
63087b46
<ParaViewReaders>
<Reader
name=
"PV398FoamReader"
extensions=
"OpenFOAM"
file_description=
"OpenFOAM Reader"
>
</Reader>
</ParaViewReaders>
src/paraview-plugins/PV398Readers/PV398FoamReader/PV398FoamReader/PV398FoamReader_SM.xml
0 → 100644
View file @
63087b46
<ServerManagerConfiguration>
<ProxyGroup
name=
"sources"
>
<SourceProxy
name=
"PV398FoamReader"
class=
"vtkPV398FoamReader"
>
<!-- File name - compulsory -->
<StringVectorProperty
name=
"FileName"
command=
"SetFileName"
number_of_elements=
"1"
animateable=
"0"
>
<FileListDomain
name=
"files"
/>
<Documentation>
Specifies the filename for the OpenFOAM Reader.
</Documentation>
</StringVectorProperty>
<!-- Send discrete time info to the animation panel -->
<DoubleVectorProperty
name=
"TimestepValues"
repeatable=
"1"
information_only=
"1"
>
<TimeStepsInformationHelper/>
<Documentation>
Available timestep values.
</Documentation>
</DoubleVectorProperty>
<!-- Cache Mesh check-box -->
<IntVectorProperty
name=
"UiCacheMesh"
command=
"SetCacheMesh"
number_of_elements=
"1"
is_internal=
"1"
default_values=
"1"
animateable=
"0"
>
<BooleanDomain
name=
"bool"
/>
<Documentation>
Cache the fvMesh in memory.
</Documentation>
</IntVectorProperty>
<!-- Refresh button -->
<IntVectorProperty
name=
"UiRefresh"
command=
"SetRefresh"
number_of_elements=
"1"
is_internal=
"0"
default_values=
"0"
animateable=
"0"
>
<BooleanDomain
name=
"bool"
/>
<Documentation>
Rescan for updated timesteps/fields.
</Documentation>
</IntVectorProperty>
<!-- Skip Zero Time check-box -->
<IntVectorProperty
name=
"UiZeroTime"
command=
"SetSkipZeroTime"
number_of_elements=
"1"
is_internal=
"1"
default_values=
"0"
animateable=
"0"
>
<BooleanDomain
name=
"bool"
/>
<Documentation>
Skip including the 0/ time directory
</Documentation>
</IntVectorProperty>
<!-- Interpolate Fields check-box -->
<IntVectorProperty
name=
"UiInterpolateVolFields"
command=
"SetInterpolateVolFields"
number_of_elements=
"1"
is_internal=
"1"
default_values=
"1"
animateable=
"0"
>
<BooleanDomain
name=
"bool"
/>
<Documentation>
Interpolate volume fields into point fields
</Documentation>
</IntVectorProperty>
<!-- Extrapolate Patches check-box -->
<IntVectorProperty
name=
"UiExtrapolatePatches"
command=
"SetExtrapolatePatches"
number_of_elements=
"1"
is_internal=
"1"
default_values=
"0"
animateable=
"0"
>
<BooleanDomain
name=
"bool"
/>
<Documentation>
Extrapolate internalField to non-constraint patches
</Documentation>
</IntVectorProperty>
<!-- Use VTK Polyhedron check-box -->
<IntVectorProperty
name=
"UseVTKPolyhedron"
command=
"SetUseVTKPolyhedron"
number_of_elements=
"1"
default_values=
"0"
animateable=
"0"
>
<BooleanDomain
name=
"bool"
/>
<Documentation>
Use vtkPolyhedron instead of decomposing polyhedra.
</Documentation>
</IntVectorProperty>
<!-- Include Sets check-box -->
<IntVectorProperty
name=
"UiIncludeSets"
command=
"SetIncludeSets"
number_of_elements=
"1"
is_internal=
"1"
default_values=
"0"
animateable=
"0"
>
<Documentation>
Search the polyMesh/sets/ directory
</Documentation>
<BooleanDomain
name=
"bool"
/>
</IntVectorProperty>
<!-- Include Zones check-box -->
<IntVectorProperty
name=
"UiIncludeZones"
command=
"SetIncludeZones"
number_of_elements=
"1"
is_internal=
"1"
default_values=
"0"
animateable=
"0"
>
<Documentation>
ZoneMesh information is used to find {cell,face,point}Zones.
The polyMesh/ directory is only checked on startup.
</Documentation>
<BooleanDomain
name=
"bool"
/>
</IntVectorProperty>
<!-- Show Patch Names check-box -->
<IntVectorProperty
name=
"UiShowPatchNames"
command=
"SetShowPatchNames"
number_of_elements=
"1"
default_values=
"0"
is_internal=
"1"
animateable=
"0"
>
<BooleanDomain
name=
"bool"
/>
<Documentation>
Show patch names in render window
</Documentation>
</IntVectorProperty>
<!-- Show Groups Only check-box -->
<IntVectorProperty
name=
"UiShowGroupsOnly"
command=
"SetShowGroupsOnly"
number_of_elements=
"1"
default_values=
"0"
is_internal=
"1"
animateable=
"0"
>
<BooleanDomain
name=
"bool"
/>
<Documentation>
Show groups only
</Documentation>
</IntVectorProperty>
<!-- Force GUI update check box -->
<IntVectorProperty
name=
"UpdateGUI"
command=
"SetUpdateGUI"
number_of_elements=
"1"
default_values=
"0"
animateable=
"0"
>
<BooleanDomain
name=
"bool"
/>
<Documentation>
A simple way to cause a reader GUI modification.
</Documentation>
</IntVectorProperty>
<!--
| Selections
-->
<!-- Available Parts (volume, patches, lagrangian) array -->
<StringVectorProperty
name=
"PartArrayStatus"
information_only=
"1"
>
<ArraySelectionInformationHelper
attribute_name=
"Part"
/>
</StringVectorProperty>
<StringVectorProperty
name=
"PartStatus"
label=
"Mesh Parts"
command=
"SetPartArrayStatus"
number_of_elements=
"0"
repeat_command=
"1"
number_of_elements_per_command=
"2"
element_types=
"2 0"
information_property=
"PartArrayStatus"
animateable=
"0"
>
<ArraySelectionDomain
name=
"array_list"
>
<RequiredProperties>
<Property
name=
"PartArrayStatus"
function=
"ArrayList"
/>
</RequiredProperties>
</ArraySelectionDomain>
<Documentation>
This property contains a list of the mesh parts
(patches, groups, sets, zones).
</Documentation>
</StringVectorProperty>
<!-- Available volFields array -->
<StringVectorProperty
name=
"VolFieldArrayStatus"
information_only=
"1"
>
<ArraySelectionInformationHelper
attribute_name=
"VolField"
/>
</StringVectorProperty>
<StringVectorProperty
name=
"VolFieldStatus"
label=
"Volume Fields"
command=
"SetVolFieldArrayStatus"
number_of_elements=
"0"
repeat_command=
"1"
number_of_elements_per_command=
"2"
element_types=
"2 0"
information_property=
"VolFieldArrayStatus"
animateable=
"0"
>
<ArraySelectionDomain
name=
"array_list"
>
<RequiredProperties>
<Property
name=
"VolFieldArrayStatus"
function=
"ArrayList"
/>
</RequiredProperties>
</ArraySelectionDomain>
<Documentation>
This property contains a list of the volume fields
</Documentation>
</StringVectorProperty>
<!-- Available Lagrangian fields array -->
<StringVectorProperty
name=
"LagrangianFieldArrayStatus"
information_only=
"1"
>
<ArraySelectionInformationHelper
attribute_name=
"LagrangianField"
/>
</StringVectorProperty>
<StringVectorProperty
name=
"LagrangianFieldStatus"
label=
"Lagrangian Fields"
command=
"SetLagrangianFieldArrayStatus"
number_of_elements=
"0"
repeat_command=
"1"
number_of_elements_per_command=
"2"
element_types=
"2 0"
information_property=
"LagrangianFieldArrayStatus"
animateable=
"0"
>
<ArraySelectionDomain
name=
"array_list"
>
<RequiredProperties>
<Property
name=
"LagrangianFieldArrayStatus"
function=
"ArrayList"
/>
</RequiredProperties>
</ArraySelectionDomain>
<Documentation>
This property contains a list of the lagrangian fields
</Documentation>
</StringVectorProperty>
<!-- Available pointFields array -->
<StringVectorProperty
name=
"PointFieldArrayStatus"
information_only=
"1"
>
<ArraySelectionInformationHelper
attribute_name=
"PointField"
/>
</StringVectorProperty>
<StringVectorProperty
name=
"PointFieldStatus"
label=
"Point Fields"
command=
"SetPointFieldArrayStatus"
number_of_elements=
"0"
repeat_command=
"1"
number_of_elements_per_command=
"2"
element_types=
"2 0"
information_property=
"PointFieldArrayStatus"
animateable=
"0"
>
<ArraySelectionDomain
name=
"array_list"
>
<RequiredProperties>
<Property
name=
"PointFieldArrayStatus"
function=
"ArrayList"
/>
</RequiredProperties>
</ArraySelectionDomain>
<Documentation>
This property contains a list of the point fields
</Documentation>
</StringVectorProperty>
<Hints>
<Property
name=
"FileName"
show=
"0"
/>
<Property
name=
"UiCacheMesh"
show=
"0"
/>
<Property
name=
"UiZeroTime"
show=
"0"
/>
<Property
name=
"UiRefresh"
show=
"0"
/>
<Property
name=
"UiShowPatchNames"
show=
"0"
/>
<Property
name=
"UiShowGroupsOnly"
show=
"0"
/>
<Property
name=
"UiIncludeSets"
show=
"0"
/>
<Property
name=
"UiIncludeZones"
show=
"0"
/>
</Hints>
</SourceProxy>
</ProxyGroup>
</ServerManagerConfiguration>
src/paraview-plugins/PV398Readers/PV398FoamReader/PV398FoamReader/pqPV398FoamReaderPanel.cxx
0 → 100644
View file @
63087b46
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/
#include "pqPV398FoamReaderPanel.h"
// QT
#include <QGridLayout>
#include <QCheckBox>
#include <QLabel>
#include <QLayout>
#include <QString>
#include <QPushButton>
#include <QtDebug>
// Paraview <-> QT UI
#include "pqAnimationScene.h"
#include "pqApplicationCore.h"
#include "pqPipelineRepresentation.h"
#include "pqServerManagerModel.h"
#include "pqView.h"
// Paraview Server Manager
#include "vtkSMDoubleVectorProperty.h"
#include "vtkSMIntVectorProperty.h"
#include "vtkSMProperty.h"
#include "vtkSMSourceProxy.h"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
pqPV398FoamReaderPanel
::
pqPV398FoamReaderPanel
(
pqProxy
*
proxy
,
QWidget
*
p
)
:
pqAutoGeneratedObjectPanel
(
proxy
,
p
)
{
// create first sublayout (at top of the panel)
QGridLayout
*
form
=
new
QGridLayout
();
this
->
PanelLayout
->
addLayout
(
form
,
0
,
0
,
1
,
-
1
);
// ROW 0
// ~~~~~
vtkSMProperty
*
prop
=
0
;
// refresh button for updating times/fields
if
((
prop
=
this
->
proxy
()
->
GetProperty
(
"UiRefresh"
))
!=
0
)
{
prop
->
SetImmediateUpdate
(
1
);
QPushButton
*
refresh
=
new
QPushButton
(
"Refresh Times"
);
refresh
->
setToolTip
(
"Rescan for updated times/fields."
);
form
->
addWidget
(
refresh
,
0
,
0
,
Qt
::
AlignLeft
);
QObject
::
connect
(
refresh
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
RefreshPressed
())
);
}
// checkbox for skip zeroTime
if
((
prop
=
this
->
proxy
()
->
GetProperty
(
"UiZeroTime"
))
!=
0
)
{
// immediate update on the Server Manager side
prop
->
SetImmediateUpdate
(
true
);
ZeroTime_
=
new
QCheckBox
(
"Skip Zero Time"
);
ZeroTime_
->
setChecked
(
vtkSMIntVectorP