VTK
vtkMPIMultiBlockPLOT3DReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMPIMultiBlockPLOT3DReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
24 #ifndef vtkMPIMultiBlockPLOT3DReader_h
25 #define vtkMPIMultiBlockPLOT3DReader_h
26 
28 #include "vtkIOMPIParallelModule.h" // For export macro
29 
30 class VTKIOMPIPARALLEL_EXPORT vtkMPIMultiBlockPLOT3DReader : public vtkMultiBlockPLOT3DReader
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38 
41  vtkSetMacro(UseMPIIO, bool);
42  vtkGetMacro(UseMPIIO, bool);
43  vtkBooleanMacro(UseMPIIO, bool);
45 
46 protected:
49 
52  bool CanUseMPIIO();
53 
54  virtual int OpenFileForDataRead(void*& fp, const char* fname);
55  virtual void CloseFile(void* fp);
56 
57  virtual int ReadIntScalar(
58  void* vfp,
59  int extent[6], int wextent[6],
60  vtkDataArray* scalar, vtkTypeUInt64 offset);
61  virtual int ReadScalar(
62  void* vfp,
63  int extent[6], int wextent[6],
64  vtkDataArray* scalar, vtkTypeUInt64 offset);
65  virtual int ReadVector(
66  void* vfp,
67  int extent[6], int wextent[6],
68  int numDims, vtkDataArray* vector, vtkTypeUInt64 offset);
69 
70  bool UseMPIIO;
71 private:
73  void operator=(const vtkMPIMultiBlockPLOT3DReader&); // Not implemented.
74 };
75 
76 #endif
static vtkMultiBlockPLOT3DReader * New()
virtual int OpenFileForDataRead(void *&fp, const char *fname)
virtual int ReadScalar(void *vfp, int extent[6], int wextent[6], vtkDataArray *scalar, vtkTypeUInt64 offset)
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
void PrintSelf(ostream &os, vtkIndent indent)
vtkMultiBlockPLOT3DReader subclass that uses MPI-IO to efficiently read binary files for 3D domains i...
virtual void CloseFile(void *fp)
virtual int ReadIntScalar(void *vfp, int extent[6], int wextent[6], vtkDataArray *scalar, vtkTypeUInt64 offset)
virtual int ReadVector(void *vfp, int extent[6], int wextent[6], int numDims, vtkDataArray *vector, vtkTypeUInt64 offset)