VTK  9.2.6
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 
36 #ifndef vtkTecplotTableReader_h
37 #define vtkTecplotTableReader_h
38 
39 #include "vtkIOTecplotTableModule.h" // For export macro
40 #include "vtkStdString.h" // Needed for vtkStdString
41 #include "vtkTableAlgorithm.h"
42 
43 class VTKIOTECPLOTTABLE_EXPORT vtkTecplotTableReader : public vtkTableAlgorithm
44 {
45 public:
46  static vtkTecplotTableReader* New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
54  vtkGetFilePathMacro(FileName);
55  vtkSetFilePathMacro(FileName);
57 
59 
63  vtkGetMacro(MaxRecords, vtkIdType);
64  vtkSetMacro(MaxRecords, vtkIdType);
66 
68 
71  vtkGetMacro(HeaderLines, vtkIdType);
72  vtkSetMacro(HeaderLines, vtkIdType);
74 
76 
79  vtkGetMacro(ColumnNamesOnLine, vtkIdType);
80  vtkSetMacro(ColumnNamesOnLine, vtkIdType);
82 
84 
87  vtkGetMacro(SkipColumnNames, vtkIdType);
88  vtkSetMacro(SkipColumnNames, vtkIdType);
90 
92 
96  vtkSetStringMacro(PedigreeIdArrayName);
97  vtkGetStringMacro(PedigreeIdArrayName);
99 
101 
105  vtkSetMacro(GeneratePedigreeIds, bool);
106  vtkGetMacro(GeneratePedigreeIds, bool);
107  vtkBooleanMacro(GeneratePedigreeIds, bool);
109 
111 
114  vtkSetMacro(OutputPedigreeIds, bool);
115  vtkGetMacro(OutputPedigreeIds, bool);
116  vtkBooleanMacro(OutputPedigreeIds, bool);
118 
124  vtkStdString GetLastError();
125 
126 protected:
128  ~vtkTecplotTableReader() override;
129 
131 
132  char* FileName;
141 
142 private:
144  void operator=(const vtkTecplotTableReader&) = delete;
145 };
146 
147 #endif
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:38
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:332
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.