VTK
vtkSegY2DReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSegY2DReader.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 vtkSegY2DReader_h
17 #define vtkSegY2DReader_h
18 
20 
21 #include <vtkIOSegYModule.h> // For export macro
22 
23 // Forward declarations
24 class vtkSegYReader;
25 
26 class VTKIOSEGY_EXPORT vtkSegY2DReader : public vtkStructuredGridAlgorithm
27 {
28 public:
29  static vtkSegY2DReader* New();
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34  ~vtkSegY2DReader();
35 
36  vtkSetStringMacro(FileName);
37 
39  {
40  VTK_SEGY_SOURCE = 0, // default
41  VTK_SEGY_CDP = 1,
42  VTK_SEGY_CUSTOM = 2
43  };
44 
46 
55  vtkSetClampMacro(XYCoordMode, int, VTK_SEGY_SOURCE, VTK_SEGY_CUSTOM);
56  vtkGetMacro(XYCoordMode, int);
57  vtkBooleanMacro(XYCoordMode, int);
58  void SetXYCoordModeToSource();
59  void SetXYCoordModeToCDP();
60  void SetXYCoordModeToCustom();
62 
64 
70  vtkSetMacro(XCoordByte, int);
71  vtkGetMacro(XCoordByte, int);
72  vtkSetMacro(YCoordByte, int);
73  vtkGetMacro(YCoordByte, int);
75 
77  {
78  VTK_SEGY_VERTICAL_HEIGHTS = 0, // default
79  VTK_SEGY_VERTICAL_DEPTHS
80  };
81 
83 
93  vtkSetMacro(VerticalCRS, int);
94  vtkGetMacro(VerticalCRS, int);
96 
97 protected:
98  int RequestData(vtkInformation* request,
99  vtkInformationVector** inputVector,
100  vtkInformationVector* outputVector) override;
101 
103 
104  // Custom XY coordinate byte positions
107 
109 
110 private:
111  char* FileName;
112  vtkSegYReader* Reader;
113 
114 private:
115  vtkSegY2DReader(const vtkSegY2DReader&) = delete;
116  void operator=(const vtkSegY2DReader&) = delete;
117 };
118 
119 #endif // vtkSegY2DReader_h
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
static vtkStructuredGridAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:39
Superclass for algorithms that produce only structured grid as output.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.