VTK
vtkTecplotTableReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTecplotTableReader.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  Copyright 2016 Menno Deij - van Rijswijk (MARIN)
17 -------------------------------------------------------------------------*/
18 
19 
37 #ifndef vtkTecplotTableReader_h
38 #define vtkTecplotTableReader_h
39 
40 #include "vtkIOTecplotTableModule.h" // For export macro
41 #include "vtkTableAlgorithm.h"
42 #include "vtkUnicodeString.h" // Needed for vtkUnicodeString
43 #include "vtkStdString.h" // Needed for vtkStdString
44 
45 class VTKIOTECPLOTTABLE_EXPORT vtkTecplotTableReader : public vtkTableAlgorithm
46 {
47 public:
48  static vtkTecplotTableReader* New();
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
56  vtkGetStringMacro(FileName);
57  vtkSetStringMacro(FileName);
59 
61 
65  vtkGetMacro(MaxRecords, vtkIdType);
66  vtkSetMacro(MaxRecords, vtkIdType);
68 
70 
73  vtkGetMacro(HeaderLines, vtkIdType);
74  vtkSetMacro(HeaderLines, vtkIdType);
76 
78 
81  vtkGetMacro(ColumnNamesOnLine, vtkIdType);
82  vtkSetMacro(ColumnNamesOnLine, vtkIdType);
84 
86 
89  vtkGetMacro(SkipColumnNames, vtkIdType);
90  vtkSetMacro(SkipColumnNames, vtkIdType);
92 
93 
94 
96 
100  vtkSetStringMacro(PedigreeIdArrayName);
101  vtkGetStringMacro(PedigreeIdArrayName);
103 
105 
109  vtkSetMacro(GeneratePedigreeIds, bool);
110  vtkGetMacro(GeneratePedigreeIds, bool);
111  vtkBooleanMacro(GeneratePedigreeIds, bool);
113 
115 
118  vtkSetMacro(OutputPedigreeIds, bool);
119  vtkGetMacro(OutputPedigreeIds, bool);
120  vtkBooleanMacro(OutputPedigreeIds, bool);
122 
128  vtkStdString GetLastError();
129 
130 protected:
132  ~vtkTecplotTableReader() override;
133 
134  int RequestData(
137  vtkInformationVector*) override;
138 
139  char* FileName;
148 
149 private:
151  void operator=(const vtkTecplotTableReader&) = delete;
152 
153 };
154 
155 #endif
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:40
reads in Tecplot tabular data and outputs a vtkTable data structure.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTableAlgorithm * New()
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:347
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.