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=========================================================================*/
28#ifndef vtkBiomTableReader_h
29#define vtkBiomTableReader_h
30
31#include "vtkIOInfovisModule.h" // For export macro
32#include "vtkTableReader.h"
33
34class vtkTable;
35class vtkVariant;
36
37class VTKIOINFOVIS_EXPORT vtkBiomTableReader : public vtkTableReader
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent);
43
45
50 void SetOutput(vtkTable *output);
52
53protected:
56
59
60 // Since the Outputs[0] has the same UpdateExtent format
61 // as the generic DataObject we can copy the UpdateExtent
62 // as a default behavior.
65
67 void ParseShape();
74 void InsertValue(int row, int col, std::string value);
75 void ParseId();
77 void ParseRows();
78
79private:
80 std::string FileContents;
81 int NumberOfRows;
82 int NumberOfColumns;
83 int DataType;
84 bool Sparse;
85 vtkBiomTableReader(const vtkBiomTableReader&) VTK_DELETE_FUNCTION;
86 void operator=(const vtkBiomTableReader&) VTK_DELETE_FUNCTION;
87};
88
89#endif
read vtkTable from a .biom input file
void SetOutput(vtkTable *output)
vtkTable * GetOutput()
Get the output of this reader.
void FillData(vtkVariant v)
void InsertValue(int row, int col, std::string value)
static vtkBiomTableReader * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int FillOutputPortInformation(int, vtkInformation *)
Fill the output port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkTable * GetOutput(int idx)
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read vtkTable data file
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:69
A atomic type representing the union of many types.
Definition: vtkVariant.h:76
@ value
Definition: vtkX3D.h:220
@ string
Definition: vtkX3D.h:490