VTK
vtkTableToGraph.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTableToGraph.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
74 #ifndef vtkTableToGraph_h
75 #define vtkTableToGraph_h
76 
77 #include "vtkInfovisCoreModule.h" // For export macro
78 #include "vtkGraphAlgorithm.h"
79 
80 class vtkBitArray;
82 class vtkStringArray;
83 class vtkTable;
84 
86 {
87 public:
88  static vtkTableToGraph* New();
90  void PrintSelf(ostream& os, vtkIndent indent);
91 
94  void AddLinkVertex(const char* column, const char* domain = 0, int hidden = 0);
95 
98 
101  void AddLinkEdge(const char* column1, const char* column2);
102 
105 
107 
111 
115 
117 
118  vtkSetMacro(Directed, bool);
119  vtkGetMacro(Directed, bool);
120  vtkBooleanMacro(Directed, bool);
122 
124  virtual unsigned long GetMTime();
125 
131 
132 protected:
135 
138 
140 
141  virtual int RequestData(
145 
146  virtual int RequestDataObject(
150 
151  bool Directed;
154 
155 private:
156  vtkTableToGraph(const vtkTableToGraph&); // Not implemented
157  void operator=(const vtkTableToGraph&); // Not implemented
158 };
159 
160 #endif
161 
VTKINFOVISCORE_EXPORT
#define VTKINFOVISCORE_EXPORT
Definition: vtkInfovisCoreModule.h:15
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkMutableDirectedGraph
An editable directed graph.
Definition: vtkMutableDirectedGraph.h:51
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
vtkTableToGraph::SetLinkGraph
void SetLinkGraph(vtkMutableDirectedGraph *g)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::in
GLuint in
Definition: vtkgl.h:16905
vtkTableToGraph::ClearLinkEdges
void ClearLinkEdges()
vtkTableToGraph::vtkTableToGraph
vtkTableToGraph()
vtkTableToGraph::VertexTableDomains
vtkStringArray * VertexTableDomains
Definition: vtkTableToGraph.h:153
vtkTableToGraph
convert a vtkTable into a vtkGraph
Definition: vtkTableToGraph.h:86
vtkTableToGraph::AddLinkEdge
void AddLinkEdge(const char *column1, const char *column2)
vtkTableToGraph::LinkColumnPath
void LinkColumnPath(vtkStringArray *column, vtkStringArray *domain=0, vtkBitArray *hidden=0)
vtkTableToGraph::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkTableToGraph::Directed
bool Directed
Definition: vtkTableToGraph.h:151
vtkGraphAlgorithm.h
vtkTableToGraph::SetVertexTableConnection
void SetVertexTableConnection(vtkAlgorithmOutput *in)
vtkTableToGraph::AddLinkVertex
void AddLinkVertex(const char *column, const char *domain=0, int hidden=0)
vtkgl::column
GLenum GLenum GLvoid GLvoid * column
Definition: vtkgl.h:11352
vtkTableToGraph::ValidateLinkGraph
int ValidateLinkGraph()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTableToGraph::LinkGraph
vtkMutableDirectedGraph * LinkGraph
Definition: vtkTableToGraph.h:152
vtkTableToGraph::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkInfovisCoreModule.h
vtkTableToGraph::New
static vtkTableToGraph * New()
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkgl::g
GLboolean GLboolean g
Definition: vtkgl.h:12312
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:39
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:45
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:36
vtkTableToGraph::ClearLinkVertices
void ClearLinkVertices()
vtkTableToGraph::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkTableToGraph::~vtkTableToGraph
~vtkTableToGraph()
vtkTableToGraph::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTableToGraph::GetMTime
virtual unsigned long GetMTime()