VTK  9.0.2
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 =========================================================================*/
25 #ifndef vtkBiomTableReader_h
26 #define vtkBiomTableReader_h
27 
28 #include "vtkIOInfovisModule.h" // For export macro
29 #include "vtkTableReader.h"
30 
31 class vtkTable;
32 class vtkVariant;
33 
34 class VTKIOINFOVIS_EXPORT vtkBiomTableReader : public vtkTableReader
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
46  vtkTable* GetOutput(int idx);
47  void SetOutput(vtkTable* output);
49 
53  int ReadMeshSimple(const std::string& fname, vtkDataObject* output) override;
54 
55 protected:
57  ~vtkBiomTableReader() override;
58 
60  void ParseShape();
61  void ParseDataType();
67  void InsertValue(int row, int col, const std::string& value);
68  void ParseId();
69  void ParseColumns();
70  void ParseRows();
71 
72 private:
73  std::string FileContents;
74  int NumberOfRows;
75  int NumberOfColumns;
76  int DataType;
77  bool Sparse;
78  vtkBiomTableReader(const vtkBiomTableReader&) = delete;
79  void operator=(const vtkBiomTableReader&) = delete;
80 };
81 
82 #endif
read vtkTable from a .biom input file
void SetOutput(vtkTable *output)
~vtkBiomTableReader() override
static vtkBiomTableReader * New()
void FillData(vtkVariant v)
int ReadMeshSimple(const std::string &fname, vtkDataObject *output) override
Actual reading happens here.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTable * GetOutput(int idx)
vtkTable * GetOutput()
Get the output of this reader.
void InsertValue(int row, int col, const std::string &value)
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
general representation of visualization data
Definition: vtkDataObject.h:60
a simple class to control print indentation
Definition: vtkIndent.h:34
Store vtkAlgorithm input/output information.
read vtkTable data file
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:63
A atomic type representing the union of many types.
Definition: vtkVariant.h:66
@ value
Definition: vtkX3D.h:226
@ string
Definition: vtkX3D.h:496