VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkGraphReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkGraphReader.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
=========================================================================*/
30
#ifndef __vtkGraphReader_h
31
#define __vtkGraphReader_h
32
33
#include "
vtkDataReader.h
"
34
35
class
vtkGraph
;
36
37
class
VTK_IO_EXPORT
vtkGraphReader
:
public
vtkDataReader
38
{
39
public
:
40
static
vtkGraphReader
*
New
();
41
vtkTypeMacro(
vtkGraphReader
,
vtkDataReader
);
42
void
PrintSelf
(ostream& os,
vtkIndent
indent);
43
45
46
vtkGraph
*GetOutput();
47
vtkGraph
*GetOutput(
int
idx);
48
void
SetOutput(
vtkGraph
*output);
50
51
protected
:
52
vtkGraphReader
();
53
~
vtkGraphReader
();
54
55
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
56
vtkInformationVector
*);
57
58
// Override ProcessRequest to handle request data object event
59
virtual
int
ProcessRequest
(
vtkInformation
*,
vtkInformationVector
**,
60
vtkInformationVector
*);
61
62
// Since the Outputs[0] has the same UpdateExtent format
63
// as the generic DataObject we can copy the UpdateExtent
64
// as a default behavior.
65
virtual
int
RequestUpdateExtent
(
vtkInformation
*,
vtkInformationVector
**,
66
vtkInformationVector
*);
67
68
// Create output (a directed or undirected graph).
69
virtual
int
RequestDataObject(
vtkInformation
*,
vtkInformationVector
**,
70
vtkInformationVector
*);
71
72
// Read beginning of file to determine whether the graph is directed.
73
virtual
int
ReadGraphDirectedness(
bool
& directed);
74
75
76
virtual
int
FillOutputPortInformation
(
int
,
vtkInformation
*);
77
private
:
78
vtkGraphReader
(
const
vtkGraphReader
&);
// Not implemented.
79
void
operator=(
const
vtkGraphReader
&);
// Not implemented.
80
};
81
82
#endif
83
84
Generated on Wed May 30 2012 13:22:17 for VTK by
1.8.1