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 
97  void ClearLinkVertices();
98 
101  void AddLinkEdge(const char* column1, const char* column2);
102 
104  void ClearLinkEdges();
105 
107 
108  vtkGetObjectMacro(LinkGraph, vtkMutableDirectedGraph);
109  void SetLinkGraph(vtkMutableDirectedGraph* g);
111 
114  void LinkColumnPath(vtkStringArray* column, vtkStringArray* domain = 0, vtkBitArray* hidden = 0);
115 
117 
118  vtkSetMacro(Directed, bool);
119  vtkGetMacro(Directed, bool);
120  vtkBooleanMacro(Directed, bool);
122 
124  virtual unsigned long GetMTime();
125 
130  void SetVertexTableConnection(vtkAlgorithmOutput* in);
131 
132 protected:
133  vtkTableToGraph();
134  ~vtkTableToGraph();
135 
137  int ValidateLinkGraph();
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 
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
convert a vtkTable into a vtkGraph
a vtkAbstractArray subclass for strings
Superclass for algorithms that produce only graph as output.
Proxy object to connect input/output ports.
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkStringArray * VertexTableDomains
An editable directed graph.
vtkMutableDirectedGraph * LinkGraph
#define VTKINFOVISCORE_EXPORT
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:35
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
virtual int FillInputPortInformation(int port, vtkInformation *info)