VTK
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 =========================================================================*/
27 #ifndef vtkBiomTableReader_h
28 #define vtkBiomTableReader_h
29 
30 #include "vtkIOInfovisModule.h" // For export macro
31 #include "vtkTableReader.h"
32 
33 class vtkTable;
34 class vtkVariant;
35 
37 {
38 public:
39  static vtkBiomTableReader *New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
46  vtkTable *GetOutput(int idx);
47  void SetOutput(vtkTable *output);
49 
50 protected:
53 
56 
57  // Since the Outputs[0] has the same UpdateExtent format
58  // as the generic DataObject we can copy the UpdateExtent
59  // as a default behavior.
62 
63  virtual int FillOutputPortInformation(int, vtkInformation*);
64  void ParseShape();
65  void ParseDataType();
66  void ParseSparseness();
67  void InitializeData();
68  void FillData(vtkVariant v);
69  void ParseSparseData();
70  void ParseDenseData();
71  void InsertValue(int row, int col, std::string value);
72  void ParseId();
73  void ParseColumns();
74  void ParseRows();
75 
76 private:
77  std::string FileContents;
78  int NumberOfRows;
79  int NumberOfColumns;
80  int DataType;
81  bool Sparse;
82  vtkBiomTableReader(const vtkBiomTableReader&); // Not implemented.
83  void operator=(const vtkBiomTableReader&); // Not implemented.
84 };
85 
86 #endif
read vtkTable from a .biom input file
static vtkTableReader * New()
Store vtkAlgorithm input/output information.
#define VTKIOINFOVIS_EXPORT
vtkTable * GetOutput()
void PrintSelf(ostream &os, vtkIndent indent)
A atomic type representing the union of many types.
Definition: vtkVariant.h:78
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
read vtkTable data file
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
virtual int FillOutputPortInformation(int, vtkInformation *)
Store zero or more vtkInformation instances.
void SetOutput(vtkTable *output)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)