VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
Core
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
;
81
class
vtkMutableDirectedGraph
;
82
class
vtkStringArray
;
83
class
vtkTable
;
84
85
class
VTKINFOVISCORE_EXPORT
vtkTableToGraph
:
public
vtkGraphAlgorithm
86
{
87
public
:
88
static
vtkTableToGraph
*
New
();
89
vtkTypeMacro(
vtkTableToGraph
,
vtkGraphAlgorithm
);
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
139
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
140
141
virtual
int
RequestData
(
142
vtkInformation
*,
143
vtkInformationVector
**,
144
vtkInformationVector
*);
145
146
virtual
int
RequestDataObject
(
147
vtkInformation
*,
148
vtkInformationVector
**,
149
vtkInformationVector
*);
150
151
bool
Directed
;
152
vtkMutableDirectedGraph
*
LinkGraph
;
153
vtkStringArray
*
VertexTableDomains
;
154
155
private
:
156
vtkTableToGraph
(
const
vtkTableToGraph
&);
// Not implemented
157
void
operator=(
const
vtkTableToGraph
&);
// Not implemented
158
};
159
160
#endif
161
Generated on Thu May 24 2012 22:22:26 for VTK by
1.8.1