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