VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkImageSource.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkImageSource.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
=========================================================================*/
26
#ifndef __vtkImageSource_h
27
#define __vtkImageSource_h
28
29
#include "
vtkSource.h
"
30
31
class
vtkImageData
;
32
33
class
VTK_FILTERING_EXPORT
vtkImageSource
:
public
vtkSource
34
{
35
public
:
36
vtkTypeMacro(
vtkImageSource
,
vtkSource
);
37
void
PrintSelf
(ostream& os,
vtkIndent
indent);
38
40
41
void
SetOutput(
vtkImageData
*output);
42
vtkImageData
*
GetOutput
();
43
vtkImageData
*
GetOutput
(
int
idx);
45
46
protected
:
47
vtkImageSource
();
48
~vtkImageSource
() {};
49
50
void
Execute
();
51
virtual
void
Execute
(
vtkImageData
*
data
);
52
53
// a helper method that sets the extent and allocates the output
54
// passed into it and returns it as an image data
55
virtual
vtkImageData
*AllocateOutputData(
vtkDataObject
*out);
56
57
virtual
int
FillOutputPortInformation
(
int
,
vtkInformation
*);
58
private
:
59
vtkImageSource
(
const
vtkImageSource
&);
// Not implemented.
60
void
operator=(
const
vtkImageSource
&);
// Not implemented.
61
};
62
63
64
#endif
65
66
Generated on Wed May 30 2012 13:21:55 for VTK by
1.8.1