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 "vtkGraphAlgorithm.h"
78 
79 class vtkBitArray;
81 class vtkStringArray;
82 class vtkTable;
83 
85 {
86 public:
87  static vtkTableToGraph* New();
89  void PrintSelf(ostream& os, vtkIndent indent);
90 
93  void AddLinkVertex(const char* column, const char* domain = 0, int hidden = 0);
94 
96  void ClearLinkVertices();
97 
100  void AddLinkEdge(const char* column1, const char* column2);
101 
103  void ClearLinkEdges();
104 
106 
107  vtkGetObjectMacro(LinkGraph, vtkMutableDirectedGraph);
108  void SetLinkGraph(vtkMutableDirectedGraph* g);
110 
113  void LinkColumnPath(vtkStringArray* column, vtkStringArray* domain = 0, vtkBitArray* hidden = 0);
114 
116 
117  vtkSetMacro(Directed, bool);
118  vtkGetMacro(Directed, bool);
119  vtkBooleanMacro(Directed, bool);
121 
123  virtual unsigned long GetMTime();
124 
129  void SetVertexTableConnection(vtkAlgorithmOutput* in);
130 
131 protected:
132  vtkTableToGraph();
133  ~vtkTableToGraph();
134 
136  int ValidateLinkGraph();
137 
139 
140  virtual int RequestData(
141  vtkInformation*,
144 
145  virtual int RequestDataObject(
146  vtkInformation*,
149 
150  bool Directed;
153 
154 private:
155  vtkTableToGraph(const vtkTableToGraph&); // Not implemented
156  void operator=(const vtkTableToGraph&); // Not implemented
157 };
158 
159 #endif
160