VTK  9.2.6
vtkSegYReaderInternal.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkSegYReaderInternal.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=========================================================================*/
15
16#ifndef vtkSegYReaderInternal_h
17#define vtkSegYReaderInternal_h
18
19#include <fstream>
20#include <string>
21#include <vector>
22#include <vtksys/FStream.hxx>
23
24// Forward declarations
26class vtkImageData;
28class vtkSegYTrace;
30
32{
33public:
38
39public:
41 int* extent, double origin[3], double spacing[3][3], int* spacingSign, bool force2D);
42 void LoadTraces(int* extent);
43
45 vtkImageData*, int* extent, double origin[3], double spacing[3][3], int* spacingSign);
46 void ExportData(vtkStructuredGrid*, int* extent, double origin[3], double spacing[3][3]);
47
48 void SetXYCoordBytePositions(int x, int y);
49 void SetVerticalCRS(int);
50
51 vtksys::ifstream In;
52
53protected:
54 bool ReadHeader();
55
56private:
57 std::vector<vtkSegYTrace*> Traces;
58 vtkSegYBinaryHeaderBytesPositions* BinaryHeaderBytesPos;
59 vtkSegYTraceReader* TraceReader;
60 int VerticalCRS;
61 // Binary Header
62 short SampleInterval;
63 int FormatCode;
64 int SampleCountPerTrace;
65};
66
67#endif // vtkSegYReaderInternal_h
68// VTK-HeaderTest-Exclude: vtkSegYReaderInternal.h
topologically and geometrically regular array of data
Definition: vtkImageData.h:54
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