VTK
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 
24 // Forward declarations
25 class vtkStructuredGrid;
26 class vtkImageData;
27 class vtkSegYTraceReader;
28 class vtkSegYTrace;
30 
32 {
33 public:
35  vtkSegYReaderInternal(const vtkSegYReaderInternal& other) = delete;
38 
39 public:
40  bool Is3DComputeParameters(int* extent, double* origin, double* spacing, int* spacingSign);
41  void LoadTraces();
42 
43  void ExportData(vtkImageData*, int* extent,
44  double* origin, double* spacing, int* spacingSign);
45  void ExportData(vtkStructuredGrid*, int* extent);
46 
47  void SetXYCoordBytePositions(int x, int y);
48  void SetVerticalCRS(int);
49 
50  std::ifstream In;
51 
52 protected:
53  bool ReadHeader();
54 
55 private:
56  std::vector<vtkSegYTrace*> Traces;
57  vtkSegYBinaryHeaderBytesPositions* BinaryHeaderBytesPos;
58  vtkSegYTraceReader* TraceReader;
59  int VerticalCRS;
60  // Binary Header
61  short SampleInterval;
62  int FormatCode;
63  int SampleCountPerTrace;
64 };
65 
66 #endif
67 #endif // vtkSegYReaderInternal_h
68 // VTK-HeaderTest-Exclude: vtkSegYReaderInternal.h
vtkSegYReaderInternal::LoadTraces
void LoadTraces()
vtkSegYReaderInternal::SetXYCoordBytePositions
void SetXYCoordBytePositions(int x, int y)
vtkSegYTraceReader
Definition: vtkSegYTraceReader.h:43
vtkSegYReaderInternal
Definition: vtkSegYReaderInternal.h:31
vtkSegYReaderInternal::In
std::ifstream In
Definition: vtkSegYReaderInternal.h:50
vtkSegYReaderInternal::operator=
vtkSegYReaderInternal & operator=(const vtkSegYReaderInternal &other)=delete
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:57
vtkSegYReaderInternal::Is3DComputeParameters
bool Is3DComputeParameters(int *extent, double *origin, double *spacing, int *spacingSign)
vtkSegYReaderInternal::ExportData
void ExportData(vtkImageData *, int *extent, double *origin, double *spacing, int *spacingSign)
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
vtkSegYReaderInternal::vtkSegYReaderInternal
vtkSegYReaderInternal()
vtkSegYTrace
Definition: vtkSegYTraceReader.h:28
vtkX3D::spacing
Definition: vtkX3D.h:481
vtkSegYReaderInternal::SetVerticalCRS
void SetVerticalCRS(int)
vtkSegYBinaryHeaderBytesPositions
Definition: vtkSegYBinaryHeaderBytesPositions.h:19
vtkX3D::extent
Definition: vtkX3D.h:345
vtkSegYReaderInternal::~vtkSegYReaderInternal
~vtkSegYReaderInternal()
vtkSegYReaderInternal::ReadHeader
bool ReadHeader()