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 
34 #ifndef vtkTecplotTableReader_h
35 #define vtkTecplotTableReader_h
36 
37 #include "vtkIOTecplotTableModule.h" // For export macro
38 #include "vtkTableAlgorithm.h"
39 #include "vtkUnicodeString.h" // Needed for vtkUnicodeString
40 #include "vtkStdString.h" // Needed for vtkStdString
41 
42 class VTKIOTECPLOTTABLE_EXPORT vtkTecplotTableReader : public vtkTableAlgorithm
43 {
44 public:
45  static vtkTecplotTableReader* New();
47  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
48 
50 
53  vtkGetStringMacro(FileName);
54  vtkSetStringMacro(FileName);
56 
58 
62  vtkGetMacro(MaxRecords, vtkIdType);
63  vtkSetMacro(MaxRecords, vtkIdType);
65 
67 
70  vtkGetMacro(HeaderLines, vtkIdType);
71  vtkSetMacro(HeaderLines, vtkIdType);
73 
75 
78  vtkGetMacro(ColumnNamesOnLine, vtkIdType);
79  vtkSetMacro(ColumnNamesOnLine, vtkIdType);
81 
83 
86  vtkGetMacro(SkipColumnNames, vtkIdType);
87  vtkSetMacro(SkipColumnNames, vtkIdType);
89 
90 
91 
93 
97  vtkSetStringMacro(PedigreeIdArrayName);
98  vtkGetStringMacro(PedigreeIdArrayName);
100 
102 
106  vtkSetMacro(GeneratePedigreeIds, bool);
107  vtkGetMacro(GeneratePedigreeIds, bool);
108  vtkBooleanMacro(GeneratePedigreeIds, bool);
110 
112 
115  vtkSetMacro(OutputPedigreeIds, bool);
116  vtkGetMacro(OutputPedigreeIds, bool);
117  vtkBooleanMacro(OutputPedigreeIds, bool);
119 
125  vtkStdString GetLastError();
126 
127 protected:
129  ~vtkTecplotTableReader() VTK_OVERRIDE;
130 
131  int RequestData(
134  vtkInformationVector*) VTK_OVERRIDE;
135 
136  char* FileName;
137  vtkIdType MaxRecords;
138  vtkIdType HeaderLines;
139  vtkIdType ColumnNamesOnLine;
140  vtkIdType SkipColumnNames;
141  char* PedigreeIdArrayName;
142  bool GeneratePedigreeIds;
143  bool OutputPedigreeIds;
144  vtkStdString LastError;
145 
146 private:
147  vtkTecplotTableReader(const vtkTecplotTableReader&) VTK_DELETE_FUNCTION;
148  void operator=(const vtkTecplotTableReader&) VTK_DELETE_FUNCTION;
149 
150 };
151 
152 #endif
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:41
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:345
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.