3 #ifndef vtkMultiBlockPLOT3DReaderInternals_h
4 #define vtkMultiBlockPLOT3DReaderInternals_h
7 #include "vtkIOParallelModule.h"
15 VTK_ABI_NAMESPACE_BEGIN
29 std::vector<vtkSmartPointer<vtkStructuredGrid>>
Blocks;
70 int blanking,
int ndims,
int hasByteCount,
int nGrids,
int* gridDims);
72 int blanking,
int ndims,
int hasByteCount,
int* gridDims);
78 preskip = nPtsInPlane *
extent[4];
79 postskip = nPtsInPlane * (wextent[5] -
extent[5]);
86 class Plot3DException :
public std::exception
91 VTK_ABI_NAMESPACE_BEGIN
104 vtkTypeUInt64 HeaderOffset;
105 vtkTypeUInt64 FooterOffset;
108 typedef std::vector<vtkSubRecord> VectorOfSubRecords;
109 VectorOfSubRecords SubRecords;
121 static const int SubRecordSeparatorWidth =
sizeof(int) * 2;
142 return (this->SubRecords.empty() || this->SubRecords.front().HeaderOffset ==
offset);
152 this->SubRecords.empty() || (this->SubRecords.back().FooterOffset +
sizeof(
int) ==
offset));
165 vtkTypeUInt64 start, vtkTypeUInt64
length,
const std::vector<vtkTypeUInt64>& markers);
175 vtkTypeUInt64 start, vtkTypeUInt64
length)
const
178 start,
length, this->GetSubRecordSeparators(start,
length));
182 VTK_ABI_NAMESPACE_END
bool AtEnd(vtkTypeUInt64 offset)
std::vector< std::pair< vtkTypeUInt64, vtkTypeUInt64 > > GetChunksToRead(vtkTypeUInt64 start, vtkTypeUInt64 length) const
static std::vector< std::pair< vtkTypeUInt64, vtkTypeUInt64 > > GetChunksToRead(vtkTypeUInt64 start, vtkTypeUInt64 length, const std::vector< vtkTypeUInt64 > &markers)
bool AtStart(vtkTypeUInt64 offset)
vtkTypeUInt64 GetLengthWithSeparators(vtkTypeUInt64 start, vtkTypeUInt64 length) const
std::vector< vtkTypeUInt64 > SubRecordSeparators
bool Initialize(FILE *fp, vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderInternals::InternalSettings &settings, vtkMultiProcessController *controller)
SubRecordSeparators GetSubRecordSeparators(vtkTypeUInt64 startOffset, vtkTypeUInt64 length) const
Multiprocessing communication superclass.
static void CalculateSkips(const int extent[6], const int wextent[6], vtkIdType &preskip, vtkIdType &postskip)
std::vector< Dims > Dimensions
int ReadInts(FILE *fp, int n, int *val)
std::vector< vtkSmartPointer< vtkStructuredGrid > > Blocks
int CheckByteOrder(FILE *fp)
size_t CalculateFileSizeForBlock(int precision, int blanking, int ndims, int hasByteCount, int *gridDims)
int CheckByteCount(FILE *fp)
int CheckBlankingAndPrecision(FILE *fp)
size_t CalculateFileSize(int mgrid, int precision, int blanking, int ndims, int hasByteCount, int nGrids, int *gridDims)
int CheckCFile(FILE *fp, size_t fileSize)
InternalSettings Settings
int Check2DGeom(FILE *fp)
int CheckBinaryFile(FILE *fp, size_t fileSize)
vtkMultiBlockPLOT3DReaderInternals()
int CheckMultiGrid(FILE *fp)