VTK  9.4.20241226
vtkSegYReaderInternal.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
4#ifndef vtkSegYReaderInternal_h
5#define vtkSegYReaderInternal_h
6
7#include "vtkABINamespace.h"
8
9#include <fstream>
10#include <string>
11#include <vector>
12#include <vtksys/FStream.hxx>
13
14// Forward declarations
15VTK_ABI_NAMESPACE_BEGIN
17class vtkImageData;
19class vtkSegYTrace;
21
23{
24public:
29
31 int* extent, double origin[3], double spacing[3][3], int* spacingSign, bool force2D);
32 void LoadTraces(int* extent);
33
35 vtkImageData*, int* extent, double origin[3], double spacing[3][3], int* spacingSign);
36 void ExportData(vtkStructuredGrid*, int* extent, double origin[3], double spacing[3][3]);
37
38 void SetXYCoordBytePositions(int x, int y);
39 void SetVerticalCRS(int);
40
41 vtksys::ifstream In;
42
43protected:
44 bool ReadHeader();
45
46private:
47 std::vector<vtkSegYTrace*> Traces;
48 vtkSegYBinaryHeaderBytesPositions* BinaryHeaderBytesPos;
49 vtkSegYTraceReader* TraceReader;
50 int VerticalCRS;
51 // Binary Header
52 short SampleInterval;
53 int FormatCode;
54 int SampleCountPerTrace;
55};
56
57VTK_ABI_NAMESPACE_END
58#endif // vtkSegYReaderInternal_h
59// VTK-HeaderTest-Exclude: vtkSegYReaderInternal.h
topologically and geometrically regular array of data
vtkSegYReaderInternal & operator=(const vtkSegYReaderInternal &other)=delete
void LoadTraces(int *extent)
vtkSegYReaderInternal(const vtkSegYReaderInternal &other)=delete
void ExportData(vtkImageData *, int *extent, double origin[3], double spacing[3][3], int *spacingSign)
bool Is3DComputeParameters(int *extent, double origin[3], double spacing[3][3], int *spacingSign, bool force2D)
void ExportData(vtkStructuredGrid *, int *extent, double origin[3], double spacing[3][3])
void SetXYCoordBytePositions(int x, int y)
topologically regular array of data