VTK  9.1.0
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
31class vtkTable;
32class vtkVariant;
33
34class VTKIOINFOVIS_EXPORT vtkBiomTableReader : public vtkTableReader
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
47 void SetOutput(vtkTable* output);
49
53 int ReadMeshSimple(VTK_FILEPATH const std::string& fname, vtkDataObject* output) override;
54
55protected:
58
60 void ParseShape();
67 void InsertValue(int row, int col, const std::string& value);
68 void ParseId();
70 void ParseRows();
71
72private:
73 std::string FileContents;
74 int NumberOfRows;
75 int NumberOfColumns;
76 int DataType;
77 bool Sparse;
79 void operator=(const vtkBiomTableReader&) = delete;
80};
81
82#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
a simple class to control print indentation
Definition: vtkIndent.h:113
Store vtkAlgorithm input/output information.
read vtkTable data file
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:172
A atomic type representing the union of many types.
Definition: vtkVariant.h:145
@ value
Definition: vtkX3D.h:226
@ string
Definition: vtkX3D.h:496
#define VTK_FILEPATH