VTK
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:
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 
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:37
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
Source of data for the imaging pipeline.
helper class to get VTK data object types as string and instantiate them