/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright held by original author \\/ 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 2 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, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Class Foam::vtkPV3Foam Description Provides a reader interface for OpenFOAM to VTK interaction. SourceFiles vtkPV3Foam.C vtkPV3Foam.H vtkPV3FoamI.H vtkPV3FoamAddLagrangianMesh.C vtkPV3FoamAddPatchMesh.C vtkPV3FoamAddSetMesh.C vtkPV3FoamAddToSelection.H vtkPV3FoamAddVolumeMesh.C vtkPV3FoamAddZoneMesh.C vtkPV3FoamConvertFaceField.H vtkPV3FoamConvertLagrangianFields.H vtkPV3FoamConvertMesh.C vtkPV3FoamConvertPatchFaceField.H vtkPV3FoamConvertPatchPointField.H vtkPV3FoamConvertPointFields.H vtkPV3FoamConvertVolFields.H vtkPV3FoamInsertNextPoint.H vtkPV3FoamUpdate.C vtkPV3FoamUpdateInformation.C vtkPV3FoamUpdateInformationFields.H // Needed by VTK: vtkDataArrayTemplateImplicit.txx \*---------------------------------------------------------------------------*/ #ifndef vtkPV3Foam_H #define vtkPV3Foam_H #include "className.H" #include "fileName.H" #include "volPointInterpolation.H" #include "stringList.H" #include "wordList.H" #include "primitivePatch.H" // * * * * * * * * * * * * * Forward Declarations * * * * * * * * * * * * * // class vtkDataArraySelection; class vtkDataSet; class vtkPoints; class vtkPV3FoamReader; class vtkRenderer; class vtkTextActor; class vtkMultiBlockDataSet; class vtkPolyData; class vtkUnstructuredGrid; class vtkIndent; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { // Foam class forward declarations class argList; class Time; class fvMesh; class IOobjectList; class polyPatch; class faceSet; class pointSet; template class IOField; template class List; /*---------------------------------------------------------------------------*\ Class vtkPV3Foam Declaration \*---------------------------------------------------------------------------*/ class vtkPV3Foam { public: // Public data //- bookkeeping for the GUI checklists and the multi-block organization class selectionInfo { int block_; const char *name_; int start_; int size_; public: selectionInfo(const int blockNo, const char *name) : block_(blockNo), name_(name), start_(-1), size_(0) {} //- Return the block holding these datasets int block() const { return block_; } const char* name() const { return name_; } int start() const { return start_; } int end() const { return start_ + size_; } int size() const { return size_; } void reset() { start_ = -1; size_ = 0; } //- Assign new start and reset the size void operator=(const int i) { start_ = i; size_ = 0; } //- Increment the size void operator+=(const int n) { size_ += n; } }; private: // Private data //BTX //- Indices for datasets in vtkMultiBlockDataSet enum { VOLUME = 0, // internal mesh PATCHES = 1, // patches LAGRANGIAN = 2, CELLZONE = 3, FACEZONE = 4, POINTZONE = 5, CELLSET = 6, FACESET = 7, POINTSET = 8 }; //ETX //- Access to the controlling vtkPV3FoamReader vtkPV3FoamReader* reader_; //- Foam time control autoPtr