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=========================================================================*/
25#ifndef vtkMPIMultiBlockPLOT3DReader_h
26#define vtkMPIMultiBlockPLOT3DReader_h
27
29#include "vtkIOMPIParallelModule.h" // For export macro
30
31class VTKIOMPIPARALLEL_EXPORT vtkMPIMultiBlockPLOT3DReader : public vtkMultiBlockPLOT3DReader
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent);
37
39
43 vtkSetMacro(UseMPIIO, bool);
44 vtkGetMacro(UseMPIIO, bool);
45 vtkBooleanMacro(UseMPIIO, bool);
47
48protected:
51
57
58 virtual int OpenFileForDataRead(void*& fp, const char* fname);
59 virtual void CloseFile(void* fp);
60
61 virtual int ReadIntScalar(
62 void* vfp,
63 int extent[6], int wextent[6],
64 vtkDataArray* scalar, vtkTypeUInt64 offset,
65 const vtkMultiBlockPLOT3DReaderRecord& currentRecord);
66 virtual int ReadScalar(
67 void* vfp,
68 int extent[6], int wextent[6],
69 vtkDataArray* scalar, vtkTypeUInt64 offset,
70 const vtkMultiBlockPLOT3DReaderRecord& currentRecord);
71 virtual int ReadVector(
72 void* vfp,
73 int extent[6], int wextent[6],
74 int numDims, vtkDataArray* vector, vtkTypeUInt64 offset,
75 const vtkMultiBlockPLOT3DReaderRecord& currentRecord);
77private:
79 void operator=(const vtkMPIMultiBlockPLOT3DReader&) VTK_DELETE_FUNCTION;
80};
81
82#endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkMultiBlockPLOT3DReader subclass that uses MPI-IO to efficiently read binary files for 3D domains i...
virtual int ReadVector(void *vfp, int extent[6], int wextent[6], int numDims, vtkDataArray *vector, vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderRecord &currentRecord)
static vtkMPIMultiBlockPLOT3DReader * New()
virtual int ReadIntScalar(void *vfp, int extent[6], int wextent[6], vtkDataArray *scalar, vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderRecord &currentRecord)
virtual int OpenFileForDataRead(void *&fp, const char *fname)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void CloseFile(void *fp)
virtual int ReadScalar(void *vfp, int extent[6], int wextent[6], vtkDataArray *scalar, vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderRecord &currentRecord)
bool CanUseMPIIO()
Determines we should use MPI-IO for the current file.
@ vector
Definition: vtkX3D.h:237
@ extent
Definition: vtkX3D.h:345
@ offset
Definition: vtkX3D.h:438
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.