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 -------------------------------------------------------------------------*/
72 #ifndef vtkTableToGraph_h
73 #define vtkTableToGraph_h
74 
75 #include "vtkInfovisCoreModule.h" // For export macro
76 #include "vtkGraphAlgorithm.h"
77 
78 class vtkBitArray;
80 class vtkStringArray;
81 class vtkTable;
82 
83 class VTKINFOVISCORE_EXPORT vtkTableToGraph : public vtkGraphAlgorithm
84 {
85 public:
86  static vtkTableToGraph* New();
88  void PrintSelf(ostream& os, vtkIndent indent);
89 
94  void AddLinkVertex(const char* column, const char* domain = 0, int hidden = 0);
95 
100 
104  void AddLinkEdge(const char* column1, const char* column2);
105 
110 
112 
115  vtkGetObjectMacro(LinkGraph, vtkMutableDirectedGraph);
118 
123  void LinkColumnPath(vtkStringArray* column, vtkStringArray* domain = 0, vtkBitArray* hidden = 0);
124 
126 
129  vtkSetMacro(Directed, bool);
130  vtkGetMacro(Directed, bool);
131  vtkBooleanMacro(Directed, bool);
133 
138 
147 
148 protected:
151 
156 
158 
159  virtual int RequestData(
163 
164  virtual int RequestDataObject(
168 
169  bool Directed;
172 
173 private:
174  vtkTableToGraph(const vtkTableToGraph&) VTK_DELETE_FUNCTION;
175  void operator=(const vtkTableToGraph&) VTK_DELETE_FUNCTION;
176 };
177 
178 #endif
179 
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:55
vtkMutableDirectedGraph
An editable directed graph.
Definition: vtkMutableDirectedGraph.h:52
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:69
vtkTableToGraph::SetLinkGraph
void SetLinkGraph(vtkMutableDirectedGraph *g)
vtkTableToGraph::ClearLinkEdges
void ClearLinkEdges()
Clear the link graph edges.
vtkTableToGraph::vtkTableToGraph
vtkTableToGraph()
vtkTableToGraph::VertexTableDomains
vtkStringArray * VertexTableDomains
Definition: vtkTableToGraph.h:171
vtkTableToGraph
convert a vtkTable into a vtkGraph
Definition: vtkTableToGraph.h:84
vtkTableToGraph::AddLinkEdge
void AddLinkEdge(const char *column1, const char *column2)
Add an edge to the link graph.
vtkTableToGraph::LinkColumnPath
void LinkColumnPath(vtkStringArray *column, vtkStringArray *domain=0, vtkBitArray *hidden=0)
Links the columns in a specific order.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkTableToGraph::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkTableToGraph::Directed
bool Directed
Definition: vtkTableToGraph.h:169
vtkTableToGraph::GetMTime
virtual vtkMTimeType GetMTime()
Get the current modified time.
vtkGraphAlgorithm.h
vtkTableToGraph::SetVertexTableConnection
void SetVertexTableConnection(vtkAlgorithmOutput *in)
A convenience method for setting the vertex table input.
vtkTableToGraph::AddLinkVertex
void AddLinkVertex(const char *column, const char *domain=0, int hidden=0)
Add a vertex to the link graph.
vtkTableToGraph::ValidateLinkGraph
int ValidateLinkGraph()
Validate that the link graph is in the appropriate format.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkTableToGraph::LinkGraph
vtkMutableDirectedGraph * LinkGraph
Definition: vtkTableToGraph.h:170
vtkTableToGraph::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkTableToGraph::New
static vtkTableToGraph * New()
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:40
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:43
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:37
vtkTableToGraph::ClearLinkVertices
void ClearLinkVertices()
Clear the link graph vertices.
vtkTableToGraph::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkTableToGraph::~vtkTableToGraph
~vtkTableToGraph()
vtkTableToGraph::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.