VTK  9.2.6
vtkBiomTableReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkBiomTableReader.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=========================================================================*/
28#ifndef vtkBiomTableReader_h
29#define vtkBiomTableReader_h
30
31#include "vtkIOInfovisModule.h" // For export macro
32#include "vtkTableReader.h"
33
34class vtkTable;
35class vtkVariant;
36
37class VTKIOINFOVIS_EXPORT vtkBiomTableReader : public vtkTableReader
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
45
50 void SetOutput(vtkTable* output);
52
56 int ReadMeshSimple(VTK_FILEPATH const std::string& fname, vtkDataObject* output) override;
57
58protected:
61
63 void ParseShape();
70 void InsertValue(int row, int col, const std::string& value);
71 void ParseId();
73 void ParseRows();
74
75private:
76 std::string FileContents;
77 int NumberOfRows;
78 int NumberOfColumns;
79 int DataType;
80 bool Sparse;
82 void operator=(const vtkBiomTableReader&) = delete;
83};
84
85#endif
read vtkTable from a .biom input file
void SetOutput(vtkTable *output)
Get the output of this reader.
int ReadMeshSimple(VTK_FILEPATH const std::string &fname, vtkDataObject *output) override
Actual reading happens here.
~vtkBiomTableReader() override
vtkTable * GetOutput()
Get the output of this reader.
void FillData(vtkVariant v)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkBiomTableReader * New()
void InsertValue(int row, int col, const std::string &value)
vtkTable * GetOutput(int idx)
Get the output of this reader.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
general representation of visualization data
Definition: vtkDataObject.h:66
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
read vtkTable data file
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:74
A atomic type representing the union of many types.
Definition: vtkVariant.h:70
#define VTK_FILEPATH