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) 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() override;
130 
131  int RequestData(
134  vtkInformationVector*) override;
135 
136  char* FileName;
145 
146 private:
148  void operator=(const vtkTecplotTableReader&) = delete;
149 
150 };
151 
152 #endif
vtkStdString.h
vtkTecplotTableReader::GeneratePedigreeIds
bool GeneratePedigreeIds
Definition: vtkTecplotTableReader.h:142
vtkTableAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTecplotTableReader
reads in Tecplot tabular data and outputs a vtkTable data structure.
Definition: vtkTecplotTableReader.h:42
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkUnicodeString.h
vtkTecplotTableReader::PedigreeIdArrayName
char * PedigreeIdArrayName
Definition: vtkTecplotTableReader.h:141
vtkTecplotTableReader::ColumnNamesOnLine
vtkIdType ColumnNamesOnLine
Definition: vtkTecplotTableReader.h:139
vtkTecplotTableReader::LastError
vtkStdString LastError
Definition: vtkTecplotTableReader.h:144
vtkTecplotTableReader::FileName
char * FileName
Definition: vtkTecplotTableReader.h:136
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition: vtkTableAlgorithm.h:48
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkTecplotTableReader::MaxRecords
vtkIdType MaxRecords
Definition: vtkTecplotTableReader.h:137
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkTecplotTableReader::OutputPedigreeIds
bool OutputPedigreeIds
Definition: vtkTecplotTableReader.h:143
vtkTecplotTableReader::SkipColumnNames
vtkIdType SkipColumnNames
Definition: vtkTecplotTableReader.h:140
vtkTecplotTableReader::HeaderLines
vtkIdType HeaderLines
Definition: vtkTecplotTableReader.h:138
vtkTableAlgorithm.h
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:34
vtkTableAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTableAlgorithm::New
static vtkTableAlgorithm * New()