VTK
vtkSegYReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSegYReader.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 vtkSegYReader_h
17 #define vtkSegYReader_h
18 #ifndef __VTK_WRAP__
19 
20 #include <fstream>
21 #include <string>
22 #include <vector>
23 
24 // Forward declarations
25 class vtkStructuredGrid;
26 class vtkImageData;
27 class vtkSegYTraceReader;
28 class vtkSegYTrace;
30 
32 {
33 public:
34  vtkSegYReader();
36 
37 public:
38  bool GetImageData(vtkImageData*); // export the data in segy file as 3D volume
39  bool ExportData3D(vtkImageData*); // export the data in segy file as 3D volume
40  bool LoadFromFile(std::string path);
43  void SetXYCoordBytePositions(int x, int y);
44  void SetVerticalCRS(int);
45 
46 private:
47  bool ReadHeader(std::ifstream& in);
48  std::vector<vtkSegYTrace*> Traces;
49  int FormatCode;
50  vtkSegYBinaryHeaderBytesPositions* BinaryHeaderBytesPos;
51  vtkSegYTraceReader* TraceReader;
52  int SampleCountPerTrace;
53  int VerticalCRS;
54 };
55 
56 #endif
57 #endif // vtkSegYReader_h
58 // VTK-HeaderTest-Exclude: vtkSegYReader.h
bool ExportData3D(vtkImageData *)
void ExportData2D(vtkStructuredGrid *)
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
void AddScalars(vtkStructuredGrid *)
void SetXYCoordBytePositions(int x, int y)
void SetVerticalCRS(int)
topologically regular array of data
bool LoadFromFile(std::string path)
bool GetImageData(vtkImageData *)