VTK
vtkDataObjectSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataObjectSource.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 =========================================================================*/
54 #ifndef __vtkDataObjectSource_h
55 #define __vtkDataObjectSource_h
56 
57 #include "vtkSource.h"
58 
59 class vtkDataObject;
60 
61 class VTK_FILTERING_EXPORT vtkDataObjectSource : public vtkSource
62 {
63 public:
64  vtkTypeMacro(vtkDataObjectSource,vtkSource);
65  void PrintSelf(ostream& os, vtkIndent indent);
66 
68 
69  vtkDataObject *GetOutput();
71  {
72  return this->vtkSource::GetOutput(idx);
73  }
75 
76  void SetOutput(vtkDataObject *);
77 
78 protected:
81 
82  virtual int FillOutputPortInformation(int, vtkInformation*);
83 private:
84  vtkDataObjectSource(const vtkDataObjectSource&); // Not implemented.
85  void operator=(const vtkDataObjectSource&); // Not implemented.
86 };
87 
88 #endif
89 
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
vtkDataObject * GetOutput(int idx)
a simple class to control print indentation
Definition: vtkIndent.h:37
abstract class specifies interface for field source (or objects that generate field output) ...
helper class to get VTK data object types as string and instantiate them