VTK  9.1.0
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#ifndef __VTK_WRAP__
19
20#include <fstream>
21#include <string>
22#include <vector>
23#include <vtksys/FStream.hxx>
24
25// Forward declarations
27class vtkImageData;
29class vtkSegYTrace;
31
33{
34public:
39
40public:
42 int* extent, double origin[3], double spacing[3][3], int* spacingSign, bool force2D);
43 void LoadTraces(int* extent);
44
46 vtkImageData*, int* extent, double origin[3], double spacing[3][3], int* spacingSign);
47 void ExportData(vtkStructuredGrid*, int* extent, double origin[3], double spacing[3][3]);
48
49 void SetXYCoordBytePositions(int x, int y);
50 void SetVerticalCRS(int);
51
52 vtksys::ifstream In;
53
54protected:
55 bool ReadHeader();
56
57private:
58 std::vector<vtkSegYTrace*> Traces;
59 vtkSegYBinaryHeaderBytesPositions* BinaryHeaderBytesPos;
60 vtkSegYTraceReader* TraceReader;
61 int VerticalCRS;
62 // Binary Header
63 short SampleInterval;
64 int FormatCode;
65 int SampleCountPerTrace;
66};
67
68#endif
69#endif // vtkSegYReaderInternal_h
70// VTK-HeaderTest-Exclude: vtkSegYReaderInternal.h
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
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