VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkUndirectedGraphAlgorithm.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkUndirectedGraphAlgorithm.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
-------------------------------------------------------------------------*/
45
#ifndef __vtkUndirectedGraphAlgorithm_h
46
#define __vtkUndirectedGraphAlgorithm_h
47
48
#include "
vtkAlgorithm.h
"
49
#include "
vtkUndirectedGraph.h
"
// makes things a bit easier
50
51
class
vtkDataSet
;
52
53
class
VTK_FILTERING_EXPORT
vtkUndirectedGraphAlgorithm
:
public
vtkAlgorithm
54
{
55
public
:
56
static
vtkUndirectedGraphAlgorithm
*
New
();
57
vtkTypeMacro(
vtkUndirectedGraphAlgorithm
,
vtkAlgorithm
);
58
void
PrintSelf
(ostream& os,
vtkIndent
indent);
59
61
62
virtual
int
ProcessRequest
(
vtkInformation
*,
63
vtkInformationVector
**,
64
vtkInformationVector
*);
66
68
69
vtkUndirectedGraph
*
GetOutput
() {
return
this->
GetOutput
(0); }
70
vtkUndirectedGraph
* GetOutput(
int
index);
72
74
81
void
SetInput
(
vtkDataObject
* obj) { this->
SetInput
(0, obj); }
82
void
SetInput(
int
index,
vtkDataObject
* obj);
84
85
protected
:
86
vtkUndirectedGraphAlgorithm
();
87
~
vtkUndirectedGraphAlgorithm
();
88
89
// convenience method
90
virtual
int
RequestInformation(
vtkInformation
* request,
91
vtkInformationVector
** inputVector,
92
vtkInformationVector
* outputVector);
93
95
97
virtual
int
RequestData(
vtkInformation
* request,
98
vtkInformationVector
** inputVector,
99
vtkInformationVector
* outputVector);
101
103
105
virtual
int
RequestUpdateExtent(
vtkInformation
*,
106
vtkInformationVector
**,
107
vtkInformationVector
*);
109
110
// see algorithm for more info
111
virtual
int
FillOutputPortInformation
(
int
port,
vtkInformation
* info);
112
virtual
int
FillInputPortInformation
(
int
port,
vtkInformation
* info);
113
114
private
:
115
vtkUndirectedGraphAlgorithm
(
const
vtkUndirectedGraphAlgorithm
&);
// Not implemented.
116
void
operator=(
const
vtkUndirectedGraphAlgorithm
&);
// Not implemented.
117
};
118
119
#endif
Generated on Sun Sep 15 2013 03:44:23 for VTK by
1.8.4