VTK  9.0.1
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:
37  static vtkBiomTableReader* New();
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 
59  int FillOutputPortInformation(int, vtkInformation*) override;
60  void ParseShape();
61  void ParseDataType();
62  void ParseSparseness();
63  void InitializeData();
64  void FillData(vtkVariant v);
65  void ParseSparseData();
66  void ParseDenseData();
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
vtkTableReader::SetOutput
void SetOutput(vtkTable *output)
vtkTableReader
read vtkTable data file
Definition: vtkTableReader.h:39
vtkX3D::value
@ value
Definition: vtkX3D.h:226
vtkTableReader::ReadMeshSimple
int ReadMeshSimple(const std::string &fname, vtkDataObject *output) override
Actual reading happens here.
vtkTableReader::New
static vtkTableReader * New()
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
vtkBiomTableReader
read vtkTable from a .biom input file
Definition: vtkBiomTableReader.h:34
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkTableReader::GetOutput
vtkTable * GetOutput()
Get the output of this reader.
vtkVariant
A atomic type representing the union of many types.
Definition: vtkVariant.h:65
vtkTableReader.h
vtkTableReader::FillOutputPortInformation
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkTableReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkX3D::string
@ string
Definition: vtkX3D.h:496
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59