VTK  9.4.20250402
vtkBiomTableReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
16#ifndef vtkBiomTableReader_h
17#define vtkBiomTableReader_h
18
19#include "vtkIOInfovisModule.h" // For export macro
20#include "vtkTableReader.h"
21
22VTK_ABI_NAMESPACE_BEGIN
23class vtkTable;
24class vtkVariant;
25
26class VTKIOINFOVIS_EXPORT vtkBiomTableReader : public vtkTableReader
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34
39 void SetOutput(vtkTable* output);
41
45 int ReadMeshSimple(VTK_FILEPATH const std::string& fname, vtkDataObject* output) override;
46
47protected:
50
52 void ParseShape();
59 void InsertValue(int row, int col, const std::string& value);
60 void ParseId();
62 void ParseRows();
63
64private:
65 std::string FileContents;
66 int NumberOfRows;
67 int NumberOfColumns;
68 int DataType;
69 bool Sparse;
71 void operator=(const vtkBiomTableReader&) = delete;
72};
73
74VTK_ABI_NAMESPACE_END
75#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:108
Store vtkAlgorithm input/output information.
read vtkTable data file
A table, which contains similar-typed columns of data.
Definition vtkTable.h:169
A type representing the union of many types.
Definition vtkVariant.h:162
#define VTK_FILEPATH