Make the PV4FoamReader work properly with ParaView 4.3.1. Author: Brono Santos. Merge: Hrvoje Jasak.

This commit is contained in:
Hrvoje Jasak 2016-06-06 15:36:28 +01:00
commit 2834f68044
4 changed files with 8 additions and 18 deletions

View file

@ -44,13 +44,6 @@ ADD_PARAVIEW_PLUGIN(
SERVER_MANAGER_SOURCES vtkPV4FoamReader.cxx SERVER_MANAGER_SOURCES vtkPV4FoamReader.cxx
) )
# Build the client-side plugin
ADD_PARAVIEW_PLUGIN(
PV4FoamReader
"1.0"
GUI_RESOURCES PV4FoamReader.qrc
)
TARGET_LINK_LIBRARIES( TARGET_LINK_LIBRARIES(
PV4FoamReader_SM PV4FoamReader_SM
foam foam

View file

@ -1,5 +0,0 @@
<RCC>
<qresource prefix="/ParaViewResources" >
<file>PV4FoamReader.xml</file>
</qresource>
</RCC>

View file

@ -1,6 +0,0 @@
<ParaViewReaders>
<Reader name="PV4FoamReader"
extensions="OpenFOAM"
file_description="OpenFOAM Reader">
</Reader>
</ParaViewReaders>

View file

@ -4,6 +4,14 @@
name="PV4FoamReader" name="PV4FoamReader"
class="vtkPV4FoamReader"> class="vtkPV4FoamReader">
<!-- File extension section for paraview 4.3+ -->
<Hints>
<ReaderFactory
extensions="OpenFOAM"
file_description="OpenFOAM Reader" />
</Hints>
<!-- File name - compulsory --> <!-- File name - compulsory -->
<StringVectorProperty <StringVectorProperty
name="FileName" name="FileName"