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