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 
19 #include <fstream>
20 #include <string>
21 #include <vector>
22 
23 // Forward declarations
24 class vtkStructuredGrid;
25 class vtkImageData;
26 class vtkSegYTraceReader;
27 class vtkSegYTrace;
29 
31 {
32 public:
33  vtkSegYReader();
35 
36 public:
37  bool GetImageData(vtkImageData*); // export the data in segy file as 3D volume
38  bool ExportData3D(vtkImageData*); // export the data in segy file as 3D volume
39  bool LoadFromFile(std::string path);
42  void SetXYCoordBytePositions(int x, int y);
43  void SetVerticalCRS(int);
44 
45 private:
46  bool ReadHeader(std::ifstream& in);
47  std::vector<vtkSegYTrace*> Traces;
48  int FormatCode;
49  vtkSegYBinaryHeaderBytesPositions* BinaryHeaderBytesPos;
50  vtkSegYTraceReader* TraceReader;
51  int SampleCountPerTrace;
52  int VerticalCRS;
53 };
54 
55 #endif // vtkSegYReader_h
56 // VTK-HeaderTest-Exclude: vtkSegYReader.h
bool ExportData3D(vtkImageData *)
void ExportData2D(vtkStructuredGrid *)
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
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 *)