Commit e66c2664 authored by Henry Weller's avatar Henry Weller

Renamed PV4Readers -> PVReaders to avoid confusion when compiling the reader for ParaView-5

parent 1dbca771
vtkPV4Foam.C
vtkPV4FoamFields.C
vtkPV4FoamMesh.C
vtkPV4FoamMeshLagrangian.C
vtkPV4FoamMeshSet.C
vtkPV4FoamMeshVolume.C
vtkPV4FoamMeshZone.C
vtkPV4FoamUpdateInfo.C
vtkPV4FoamUtils.C
LIB = $(FOAM_LIBBIN)/libvtkPV4Foam
vtkPV4blockMesh.C
vtkPV4blockMeshConvert.C
vtkPV4blockMeshUtils.C
LIB = $(FOAM_LIBBIN)/libvtkPV4blockMesh
vtkPV4Readers.C
LIB = $(FOAM_LIBBIN)/libvtkPV4Readers
......@@ -2,8 +2,8 @@
cd ${0%/*} || exit 1 # Run from this directory
set -x
wclean libso vtkPV4Readers
PV4blockMeshReader/Allwclean
PV4FoamReader/Allwclean
wclean libso vtkPVReaders
PVblockMeshReader/Allwclean
PVFoamReader/Allwclean
# ----------------------------------------------------------------- end-of-file
......@@ -14,15 +14,15 @@ case "$ParaView_VERSION" in
# ensure CMake gets the correct C++ compiler
[ -n "$WM_CXX" ] && export CXX="$WM_CXX"
wmake libso vtkPV4Readers
PV4blockMeshReader/Allwmake
PV4FoamReader/Allwmake
wmake libso vtkPVReaders
PVblockMeshReader/Allwmake
PVFoamReader/Allwmake
else
echo "ERROR: ParaView not found in $ParaView_DIR"
fi
;;
*)
echo "WARN: PV4 readers not building: ParaView_VERSION=$ParaView_VERSION"
echo "WARN: PV readers not building: ParaView_VERSION=$ParaView_VERSION"
;;
esac
......
......@@ -3,9 +3,9 @@ cd ${0%/*} || exit 1 # Run from this directory
set -x
# deal with client/server vs combined plugins
rm -f $FOAM_LIBBIN/libPV4FoamReader* 2>/dev/null
rm -f $FOAM_LIBBIN/libPVFoamReader* 2>/dev/null
rm -rf PV4FoamReader/Make
wclean libso vtkPV4Foam
rm -rf PVFoamReader/Make
wclean libso vtkPVFoam
# ----------------------------------------------------------------- end-of-file
......@@ -4,9 +4,9 @@ set -x
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
then
wmake libso vtkPV4Foam
wmake libso vtkPVFoam
(
cd PV4FoamReader
cd PVFoamReader
mkdir -p Make/$WM_OPTIONS > /dev/null 2>&1
cd Make/$WM_OPTIONS
cmake ../..
......
......@@ -21,7 +21,7 @@ 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}/../vtkPV4Foam
${PROJECT_SOURCE_DIR}/../vtkPVFoam
)
ADD_DEFINITIONS(
......@@ -43,11 +43,11 @@ SET(
#
# Extend the auto-generated panel
QT4_WRAP_CPP(MOC_SRCS pqPV4FoamReaderPanel.h)
QT4_WRAP_CPP(MOC_SRCS pqPVFoamReaderPanel.h)
ADD_PARAVIEW_OBJECT_PANEL(IFACES IFACE_SRCS
CLASS_NAME pqPV4FoamReaderPanel
XML_NAME PV4FoamReader # name of SourceProxy in *SM.xml
CLASS_NAME pqPVFoamReaderPanel
XML_NAME PVFoamReader # name of SourceProxy in *SM.xml
XML_GROUP sources
)
......@@ -55,19 +55,19 @@ IF("${PARAVIEW_VERSION_MINOR}" EQUAL 0)
ADD_PARAVIEW_PLUGIN(
PVFoamReader_SM "1.0"
SERVER_MANAGER_XML PVFoamReader_SM.xml
SERVER_MANAGER_SOURCES vtkPV4FoamReader.cxx
SERVER_MANAGER_SOURCES vtkPVFoamReader.cxx
GUI_INTERFACES ${IFACES}
GUI_SOURCES pqPV4FoamReaderPanel.cxx
GUI_SOURCES pqPVFoamReaderPanel.cxx
${MOC_SRCS} ${UI_SRCS} ${IFACE_SRCS}
GUI_RESOURCE_FILES PV4FoamReader.xml
GUI_RESOURCE_FILES PVFoamReader.xml
)
ELSE("${PARAVIEW_VERSION_MINOR}" EQUAL 0)
ADD_PARAVIEW_PLUGIN(
PVFoamReader_SM "1.0"
SERVER_MANAGER_XML PVFoamReader_SM.xml
SERVER_MANAGER_SOURCES vtkPV4FoamReader.cxx
SERVER_MANAGER_SOURCES vtkPVFoamReader.cxx
GUI_INTERFACES ${IFACES}
GUI_SOURCES pqPV4FoamReaderPanel.cxx
GUI_SOURCES pqPVFoamReaderPanel.cxx
${MOC_SRCS} ${UI_SRCS} ${IFACE_SRCS}
)
ENDIF("${PARAVIEW_VERSION_MINOR}" EQUAL 0)
......@@ -77,7 +77,7 @@ TARGET_LINK_LIBRARIES(
LINK_PUBLIC
OpenFOAM
finiteVolume
vtkPV4Foam
vtkPVFoam
)
#-----------------------------------------------------------------------------
<RCC>
<qresource prefix="/ParaViewResources" >
<file>PV4FoamReader.xml</file>
<file>PVFoamReader.xml</file>
</qresource>
</RCC>
<ParaViewReaders>
<Reader name="PV4FoamReader"
<Reader name="PVFoamReader"
extensions="OpenFOAM"
file_description="OpenFOAM Reader">
</Reader>
......
<ServerManagerConfiguration>
<ProxyGroup name="sources">
<SourceProxy
name="PV4FoamReader"
class="vtkPV4FoamReader">
name="PVFoamReader"
class="vtkPVFoamReader">
<!-- File name - compulsory -->
<StringVectorProperty
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -23,7 +23,7 @@ License
\*---------------------------------------------------------------------------*/
#include "pqPV4FoamReaderPanel.h"
#include "pqPVFoamReaderPanel.h"
// QT
#include <QGridLayout>
......@@ -50,7 +50,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
pqPV4FoamReaderPanel::pqPV4FoamReaderPanel
pqPVFoamReaderPanel::pqPVFoamReaderPanel
(
pqProxy *proxy,
QWidget *p
......@@ -356,7 +356,7 @@ pqPV4FoamReaderPanel::pqPV4FoamReaderPanel
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
void pqPV4FoamReaderPanel::CacheMeshToggled()
void pqPVFoamReaderPanel::CacheMeshToggled()
{
vtkSMIntVectorProperty::SafeDownCast
(
......@@ -365,7 +365,7 @@ void pqPV4FoamReaderPanel::CacheMeshToggled()
}
void pqPV4FoamReaderPanel::RefreshPressed()
void pqPVFoamReaderPanel::RefreshPressed()
{
// update everything
vtkSMIntVectorProperty::SafeDownCast
......@@ -380,7 +380,7 @@ void pqPV4FoamReaderPanel::RefreshPressed()
}
void pqPV4FoamReaderPanel::ZeroTimeToggled()
void pqPVFoamReaderPanel::ZeroTimeToggled()
{
vtkSMIntVectorProperty::SafeDownCast
(
......@@ -391,7 +391,7 @@ void pqPV4FoamReaderPanel::ZeroTimeToggled()
}
void pqPV4FoamReaderPanel::ShowPatchNamesToggled()
void pqPVFoamReaderPanel::ShowPatchNamesToggled()
{
vtkSMIntVectorProperty::SafeDownCast
(
......@@ -408,7 +408,7 @@ void pqPV4FoamReaderPanel::ShowPatchNamesToggled()
}
void pqPV4FoamReaderPanel::ShowGroupsOnlyToggled()
void pqPVFoamReaderPanel::ShowGroupsOnlyToggled()
{
vtkSMProperty* prop;
......@@ -424,7 +424,7 @@ void pqPV4FoamReaderPanel::ShowGroupsOnlyToggled()
}
void pqPV4FoamReaderPanel::IncludeSetsToggled()
void pqPVFoamReaderPanel::IncludeSetsToggled()
{
vtkSMProperty* prop;
......@@ -440,7 +440,7 @@ void pqPV4FoamReaderPanel::IncludeSetsToggled()
}
void pqPV4FoamReaderPanel::IncludeZonesToggled()
void pqPVFoamReaderPanel::IncludeZonesToggled()
{
vtkSMProperty* prop;
......@@ -456,7 +456,7 @@ void pqPV4FoamReaderPanel::IncludeZonesToggled()
}
void pqPV4FoamReaderPanel::ExtrapolatePatchesToggled()
void pqPVFoamReaderPanel::ExtrapolatePatchesToggled()
{
vtkSMProperty* prop;
......@@ -469,7 +469,7 @@ void pqPV4FoamReaderPanel::ExtrapolatePatchesToggled()
}
void pqPV4FoamReaderPanel::InterpolateVolFieldsToggled()
void pqPVFoamReaderPanel::InterpolateVolFieldsToggled()
{
vtkSMProperty* prop;
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -22,19 +22,19 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
pqPV4FoamReaderPanel
pqPVFoamReaderPanel
Description
GUI modifications for the ParaView reader panel
A custom panel for the PV4FoamReader.
A custom panel for the PVFoamReader.
SourceFiles
pqPV4FoamReaderPanel.cxx
pqPVFoamReaderPanel.cxx
\*---------------------------------------------------------------------------*/
#ifndef pqPV4FoamReaderPanel_h
#define pqPV4FoamReaderPanel_h
#ifndef pqPVFoamReaderPanel_h
#define pqPVFoamReaderPanel_h
#include "pqAutoGeneratedObjectPanel.h"
......@@ -51,10 +51,10 @@ class vtkSMSourceProxy;
/*---------------------------------------------------------------------------*\
Class pqPV4FoamReaderPanel Declaration
Class pqPVFoamReaderPanel Declaration
\*---------------------------------------------------------------------------*/
class pqPV4FoamReaderPanel
class pqPVFoamReaderPanel
:
public pqAutoGeneratedObjectPanel
{
......@@ -105,11 +105,11 @@ public:
// Constructors
//- Construct from components
pqPV4FoamReaderPanel(pqProxy*, QWidget*);
pqPVFoamReaderPanel(pqProxy*, QWidget*);
//- Destructor
// virtual ~pqPV4FoamReaderPanel();
// virtual ~pqPVFoamReaderPanel();
};
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/
#include "vtkPV4FoamReader.h"
#include "vtkPVFoamReader.h"
#include "pqApplicationCore.h"
#include "pqRenderView.h"
......@@ -40,18 +40,18 @@ License
#include "vtkStringArray.h"
// OpenFOAM includes
#include "vtkPV4Foam.H"
#include "vtkPVFoam.H"
#undef EXPERIMENTAL_TIME_CACHING
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
vtkStandardNewMacro(vtkPV4FoamReader);
vtkStandardNewMacro(vtkPVFoamReader);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
vtkPV4FoamReader::vtkPV4FoamReader()
vtkPVFoamReader::vtkPVFoamReader()
{
Debug = 0;
vtkDebugMacro(<<"Constructor");
......@@ -63,7 +63,7 @@ vtkPV4FoamReader::vtkPV4FoamReader()
output0_ = NULL;
#ifdef VTKPV4FOAM_DUALPORT
#ifdef VTKPVFOAM_DUALPORT
// Add second output for the Lagrangian
this->SetNumberOfOutputPorts(2);
vtkMultiBlockDataSet *lagrangian = vtkMultiBlockDataSet::New();
......@@ -100,7 +100,7 @@ vtkPV4FoamReader::vtkPV4FoamReader()
SelectionObserver = vtkCallbackCommand::New();
SelectionObserver->SetCallback
(
&vtkPV4FoamReader::SelectionModifiedCallback
&vtkPVFoamReader::SelectionModifiedCallback
);
SelectionObserver->SetClientData(this);
......@@ -129,7 +129,7 @@ vtkPV4FoamReader::vtkPV4FoamReader()
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
vtkPV4FoamReader::~vtkPV4FoamReader()
vtkPVFoamReader::~vtkPVFoamReader()
{
vtkDebugMacro(<<"Deconstructor");
......@@ -168,7 +168,7 @@ vtkPV4FoamReader::~vtkPV4FoamReader()
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
// Do everything except set the output info
int vtkPV4FoamReader::RequestInformation
int vtkPVFoamReader::RequestInformation
(
vtkInformation* vtkNotUsed(request),
vtkInformationVector** vtkNotUsed(inputVector),
......@@ -177,7 +177,7 @@ int vtkPV4FoamReader::RequestInformation
{
vtkDebugMacro(<<"RequestInformation");
if (Foam::vtkPV4Foam::debug)
if (Foam::vtkPVFoam::debug)
{
cout<<"REQUEST_INFORMATION\n";
}
......@@ -190,7 +190,7 @@ int vtkPV4FoamReader::RequestInformation
int nInfo = outputVector->GetNumberOfInformationObjects();
if (Foam::vtkPV4Foam::debug)
if (Foam::vtkPVFoam::debug)
{
cout<<"RequestInformation with " << nInfo << " item(s)\n";
for (int infoI = 0; infoI < nInfo; ++infoI)
......@@ -201,7 +201,7 @@ int vtkPV4FoamReader::RequestInformation
if (!foamData_)
{
foamData_ = new Foam::vtkPV4Foam(FileName, this);
foamData_ = new Foam::vtkPVFoam(FileName, this);
}
else
{
......@@ -238,7 +238,7 @@ int vtkPV4FoamReader::RequestInformation
timeRange[0] = timeSteps[0];
timeRange[1] = timeSteps[nTimeSteps-1];
if (Foam::vtkPV4Foam::debug > 1)
if (Foam::vtkPVFoam::debug > 1)
{
cout<<"nTimeSteps " << nTimeSteps << "\n"
<<"timeRange " << timeRange[0] << " to " << timeRange[1]
......@@ -268,7 +268,7 @@ int vtkPV4FoamReader::RequestInformation
// Set the output info
int vtkPV4FoamReader::RequestData
int vtkPVFoamReader::RequestData
(
vtkInformation* vtkNotUsed(request),
vtkInformationVector** vtkNotUsed(inputVector),
......@@ -292,7 +292,7 @@ int vtkPV4FoamReader::RequestData
int nInfo = outputVector->GetNumberOfInformationObjects();
if (Foam::vtkPV4Foam::debug)
if (Foam::vtkPVFoam::debug)
{
cout<<"RequestData with " << nInfo << " item(s)\n";
for (int infoI = 0; infoI < nInfo; ++infoI)
......@@ -310,7 +310,7 @@ int vtkPV4FoamReader::RequestData
// taking port0 as the lead for other outputs would be nice, but fails when
// a filter is added - we need to check everything
// but since PREVIOUS_UPDATE_TIME_STEPS() is protected, relay the logic
// to the vtkPV4Foam::setTime() method
// to the vtkPVFoam::setTime() method
for (int infoI = 0; infoI < nInfo; ++infoI)
{
vtkInformation *outInfo = outputVector->GetInformationObject(infoI);
......@@ -342,7 +342,7 @@ int vtkPV4FoamReader::RequestData
)
);
if (Foam::vtkPV4Foam::debug)
if (Foam::vtkPVFoam::debug)
{
cout<< "update output with "
<< output->GetNumberOfBlocks() << " blocks\n";
......@@ -370,7 +370,7 @@ int vtkPV4FoamReader::RequestData
output->ShallowCopy(output0_);
}
if (Foam::vtkPV4Foam::debug)
if (Foam::vtkPVFoam::debug)
{
if (needsUpdate)
{
......@@ -390,7 +390,7 @@ int vtkPV4FoamReader::RequestData
#else
#ifdef VTKPV4FOAM_DUALPORT
#ifdef VTKPVFOAM_DUALPORT
foamData_->Update
(
output,
......@@ -417,13 +417,13 @@ int vtkPV4FoamReader::RequestData
}
void vtkPV4FoamReader::SetRefresh(int val)
void vtkPVFoamReader::SetRefresh(int val)
{
Modified();
}
void vtkPV4FoamReader::SetIncludeSets(int val)
void vtkPVFoamReader::SetIncludeSets(int val)
{
if (IncludeSets != val)
{
......@@ -436,7 +436,7 @@ void vtkPV4FoamReader::SetIncludeSets(int val)
}
void vtkPV4FoamReader::SetIncludeZones(int val)
void vtkPVFoamReader::SetIncludeZones(int val)
{
if (IncludeZones != val)
{
......@@ -449,7 +449,7 @@ void vtkPV4FoamReader::SetIncludeZones(int val)
}
void vtkPV4FoamReader::SetShowPatchNames(int val)
void vtkPVFoamReader::SetShowPatchNames(int val)
{
if (ShowPatchNames != val)
{
......@@ -459,7 +459,7 @@ void vtkPV4FoamReader::SetShowPatchNames(int val)
}
void vtkPV4FoamReader::SetShowGroupsOnly(int val)
void vtkPVFoamReader::SetShowGroupsOnly(int val)
{
if (ShowGroupsOnly != val)
{
......@@ -472,7 +472,7 @@ void vtkPV4FoamReader::SetShowGroupsOnly(int val)
}
void vtkPV4FoamReader::updatePatchNamesView(const bool show)
void vtkPVFoamReader::updatePatchNamesView(const bool show)
{
pqApplicationCore* appCore = pqApplicationCore::instance();
......@@ -506,7 +506,7 @@ void vtkPV4FoamReader::updatePatchNamesView(const bool show)
}
void vtkPV4FoamReader::PrintSelf(ostream& os, vtkIndent indent)
void vtkPVFoamReader::PrintSelf(ostream& os, vtkIndent indent)
{
vtkDebugMacro(<<"PrintSelf");
......@@ -522,7 +522,7 @@ void vtkPV4FoamReader::PrintSelf(ostream& os, vtkIndent indent)
}
int vtkPV4FoamReader::GetTimeStep()
int vtkPVFoamReader::GetTimeStep()
{
return foamData_ ? foamData_->timeIndex() : -1;
}
......@@ -531,35 +531,35 @@ int vtkPV4FoamReader::GetTimeStep()
// ----------------------------------------------------------------------
// Parts selection list control
vtkDataArraySelection* vtkPV4FoamReader::GetPartSelection()
vtkDataArraySelection* vtkPVFoamReader::GetPartSelection()
{
vtkDebugMacro(<<"GetPartSelection");
return PartSelection;
}
int vtkPV4FoamReader::GetNumberOfPartArrays()
int vtkPVFoamReader::GetNumberOfPartArrays()
{
vtkDebugMacro(<<"GetNumberOfPartArrays");
return PartSelection->GetNumberOfArrays();
}
const char* vtkPV4FoamReader::GetPartArrayName(int index)
const char* vtkPVFoamReader::GetPartArrayName(int index)
{
vtkDebugMacro(<<"GetPartArrayName");
return PartSelection->GetArrayName(index);
}
int vtkPV4FoamReader::GetPartArrayStatus(const char* name)
int vtkPVFoamReader::GetPartArrayStatus(const char* name)
{
vtkDebugMacro(<<"GetPartArrayStatus");
return PartSelection->ArrayIsEnabled(name);
}
void vtkPV4FoamReader::SetPartArrayStatus(const char* name, int status)
void vtkPVFoamReader::SetPartArrayStatus(const char* name, int status)
{
vtkDebugMacro("Set mesh part \"" << name << "\" status to: " << status);
......@@ -577,35 +577,35 @@ void vtkPV4FoamReader::SetPartArrayStatus(const char* name, int status)
// ----------------------------------------------------------------------
// volField selection list control
vtkDataArraySelection* vtkPV4FoamReader::GetVolFieldSelection()
vtkDataArraySelection* vtkPVFoamReader::GetVolFieldSelection()
{
vtkDebugMacro(<<"GetVolFieldSelection");
return VolFieldSelection;
}
int vtkPV4FoamReader::GetNumberOfVolFieldArrays()
int vtkPVFoamReader::GetNumberOfVolFieldArrays()
{
vtkDebugMacro(<<"GetNumberOfVolFieldArrays");
return VolFieldSelection->GetNumberOfArrays();