VTK  9.6.20260615
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#include "vtkSetGet.h"
9
10#include <fstream>
11#include <string>
12#include <vector>
13#include <vtksys/FStream.hxx>
14
15// Forward declarations
16VTK_ABI_NAMESPACE_BEGIN
18class vtkImageData;
20class vtkSegYTrace;
22
24{
25public:
30
32 int extent[6], double origin[3], double spacing[3][3], int* spacingSign, bool force2D);
33 void LoadTraces(VTK_FUTURE_CONST int extent[6]);
34
35 void ExportData(vtkImageData*, VTK_FUTURE_CONST int extent[6], double origin[3],
36 double spacing[3][3], int* spacingSign);
38 vtkStructuredGrid*, VTK_FUTURE_CONST int extent[6], double origin[3], double spacing[3][3]);
39
40 void SetXYCoordBytePositions(int x, int y);
41 void SetVerticalCRS(int);
42
43 vtksys::ifstream In;
44
45protected:
46 bool ReadHeader();
47
48private:
49 std::vector<vtkSegYTrace*> Traces;
50 vtkSegYBinaryHeaderBytesPositions* BinaryHeaderBytesPos;
51 vtkSegYTraceReader* TraceReader;
52 int VerticalCRS;
53 // Binary Header
54 short SampleInterval;
55 int FormatCode;
56 int SampleCountPerTrace;
57};
58
59VTK_ABI_NAMESPACE_END
60#endif // vtkSegYReaderInternal_h
61// VTK-HeaderTest-Exclude: vtkSegYReaderInternal.h
topologically and geometrically regular array of data
vtkSegYReaderInternal & operator=(const vtkSegYReaderInternal &other)=delete
bool Is3DComputeParameters(int extent[6], double origin[3], double spacing[3][3], int *spacingSign, bool force2D)
vtkSegYReaderInternal(const vtkSegYReaderInternal &other)=delete
void ExportData(vtkImageData *, VTK_FUTURE_CONST int extent[6], double origin[3], double spacing[3][3], int *spacingSign)
void LoadTraces(VTK_FUTURE_CONST int extent[6])
void ExportData(vtkStructuredGrid *, VTK_FUTURE_CONST int extent[6], double origin[3], double spacing[3][3])
void SetXYCoordBytePositions(int x, int y)
topologically regular array of data