VTK
vtkSegYTraceReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSegYTraceReader.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 vtkSegYTraceReader_h
17 #define vtkSegYTraceReader_h
18 #ifndef __VTK_WRAP__
19 
20 #include <fstream>
21 #include <vector>
22 
24 
25 /*
26  * Single Seg-Y trace
27  */
29 {
30 public:
31  float xCoordinate;
32  float yCoordinate;
34  std::vector<float> data;
38 };
39 
40 /*
41  * Single Seg-Y trace reader
42  */
44 {
45 private:
46  vtkSegYTraceHeaderBytesPositions traceHeaderBytesPos;
47 
48  int XCoordinate;
49  int YCoordinate;
50 
51 public:
53 
54  void SetXYCoordBytePositions(int x, int y);
55  void PrintTraceHeader(std::ifstream& in, int startPos);
56  bool ReadTrace(int& startPos,
57  std::ifstream& in,
58  int formatCode,
59  vtkSegYTrace* trace);
60  int GetTraceSize(int numSamples, int formatCode);
61 };
62 
63 #endif
64 #endif // vtkSegYTraceReader_h
65 // VTK-HeaderTest-Exclude: vtkSegYTraceReader.h
int GetTraceSize(int numSamples, int formatCode)
std::vector< float > data
void PrintTraceHeader(std::ifstream &in, int startPos)
void SetXYCoordBytePositions(int x, int y)
bool ReadTrace(int &startPos, std::ifstream &in, int formatCode, vtkSegYTrace *trace)
short CoordinateMultiplier