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:
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 
64  void ParseShape();
65  void ParseDataType();
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
vtkBiomTableReader::GetOutput
vtkTable * GetOutput()
vtkBiomTableReader::vtkBiomTableReader
vtkBiomTableReader()
vtkTableReader
read vtkTable data file
Definition: vtkTableReader.h:42
vtkBiomTableReader::ParseColumns
void ParseColumns()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkBiomTableReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkBiomTableReader::ParseDataType
void ParseDataType()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkBiomTableReader::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkgl::v
const GLdouble * v
Definition: vtkgl.h:11595
vtkIOInfovisModule.h
vtkBiomTableReader::FillData
void FillData(vtkVariant v)
vtkBiomTableReader::New
static vtkBiomTableReader * New()
vtkBiomTableReader
read vtkTable from a .biom input file
Definition: vtkBiomTableReader.h:37
vtkBiomTableReader::ParseDenseData
void ParseDenseData()
vtkBiomTableReader::GetOutput
vtkTable * GetOutput(int idx)
vtkBiomTableReader::FillOutputPortInformation
virtual int FillOutputPortInformation(int, vtkInformation *)
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkBiomTableReader::ParseSparseness
void ParseSparseness()
vtkgl::row
GLenum GLenum GLvoid * row
Definition: vtkgl.h:11352
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkVariant
A atomic type representing the union of many types.
Definition: vtkVariant.h:79
vtkBiomTableReader::ParseSparseData
void ParseSparseData()
vtkTableReader.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
VTKIOINFOVIS_EXPORT
#define VTKIOINFOVIS_EXPORT
Definition: vtkIOInfovisModule.h:15
vtkBiomTableReader::InsertValue
void InsertValue(int row, int col, std::string value)
vtkBiomTableReader::~vtkBiomTableReader
~vtkBiomTableReader()
vtkBiomTableReader::SetOutput
void SetOutput(vtkTable *output)
vtkBiomTableReader::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkBiomTableReader::ParseRows
void ParseRows()
vtkBiomTableReader::InitializeData
void InitializeData()
vtkBiomTableReader::ParseId
void ParseId()
vtkgl::string
GLsizei const GLchar ** string
Definition: vtkgl.h:12011
vtkBiomTableReader::ParseShape
void ParseShape()