VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkDirectedGraphAlgorithm.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkDirectedGraphAlgorithm.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 __vtkDirectedGraphAlgorithm_h
46
#define __vtkDirectedGraphAlgorithm_h
47
48
#include "
vtkAlgorithm.h
"
49
#include "
vtkDirectedGraph.h
"
// makes things a bit easier
50
51
class
vtkDataSet
;
52
53
class
VTK_FILTERING_EXPORT
vtkDirectedGraphAlgorithm
:
public
vtkAlgorithm
54
{
55
public
:
56
static
vtkDirectedGraphAlgorithm
*
New
();
57
vtkTypeMacro(
vtkDirectedGraphAlgorithm
,
vtkAlgorithm
);
58
void
PrintSelf
(ostream& os,
vtkIndent
indent);
59
61
62
virtual
int
ProcessRequest
(
vtkInformation
*,
63
vtkInformationVector
**,
64
vtkInformationVector
*);
66
68
69
vtkDirectedGraph
*
GetOutput
() {
return
this->
GetOutput
(0); }
70
vtkDirectedGraph
* 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
vtkDirectedGraphAlgorithm
();
87
~
vtkDirectedGraphAlgorithm
();
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
vtkDirectedGraphAlgorithm
(
const
vtkDirectedGraphAlgorithm
&);
// Not implemented.
116
void
operator=(
const
vtkDirectedGraphAlgorithm
&);
// Not implemented.
117
};
118
119
#endif
Generated on Wed Nov 21 2012 21:33:45 for VTK by
1.8.2