VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
demarle
Source
VTK
release
8.2
build
Utilities
Doxygen
dox
IO
SegY
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
23
#include "
vtkSegYTraceHeaderBytesPositions.h
"
24
25
/*
26
* Single Seg-Y trace
27
*/
28
class
vtkSegYTrace
29
{
30
public
:
31
int
XCoordinate
;
32
int
YCoordinate
;
33
short
CoordinateMultiplier
;
34
std::vector<float>
Data
;
35
int
InlineNumber
;
36
int
CrosslineNumber
;
37
short
SampleInterval
;
38
};
39
40
/*
41
* Single Seg-Y trace reader
42
*/
43
class
vtkSegYTraceReader
44
{
45
private
:
46
vtkSegYTraceHeaderBytesPositions
traceHeaderBytesPos;
47
48
int
XCoordinate
;
49
int
YCoordinate
;
50
51
public
:
52
vtkSegYTraceReader
();
53
54
void
SetXYCoordBytePositions(
int
x,
int
y);
55
void
PrintTraceHeader(std::ifstream& in,
int
startPos);
56
void
ReadTrace(std::streamoff& startPos,
57
std::ifstream& in,
58
int
formatCode,
59
vtkSegYTrace
* trace);
60
void
ReadInlineCrossline(std::streamoff& startPos,
61
std::ifstream& in,
62
int
formatCode,
63
int
* inlineNumber,
int
* crosslineNumber,
64
int
* xCoord,
int
* yCoord,
short
* coordMultiplier);
65
66
int
GetTraceSize(
int
numSamples,
int
formatCode);
67
};
68
69
#endif
70
#endif // vtkSegYTraceReader_h
71
// VTK-HeaderTest-Exclude: vtkSegYTraceReader.h
vtkSegYTrace::YCoordinate
int YCoordinate
Definition:
vtkSegYTraceReader.h:32
vtkSegYTrace::CrosslineNumber
int CrosslineNumber
Definition:
vtkSegYTraceReader.h:36
vtkSegYTrace::SampleInterval
short SampleInterval
Definition:
vtkSegYTraceReader.h:37
vtkSegYTrace
Definition:
vtkSegYTraceReader.h:28
vtkSegYTraceHeaderBytesPositions.h
vtkSegYTrace::Data
std::vector< float > Data
Definition:
vtkSegYTraceReader.h:34
vtkSegYTrace::CoordinateMultiplier
short CoordinateMultiplier
Definition:
vtkSegYTraceReader.h:33
vtkSegYTrace::XCoordinate
int XCoordinate
Definition:
vtkSegYTraceReader.h:31
vtkSegYTraceReader
Definition:
vtkSegYTraceReader.h:43
vtkSegYTraceHeaderBytesPositions
Definition:
vtkSegYTraceHeaderBytesPositions.h:19
vtkSegYTrace::InlineNumber
int InlineNumber
Definition:
vtkSegYTraceReader.h:35
Generated by
1.8.11