VTK
vtkDataObjectAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataObjectAlgorithm.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 =========================================================================*/
32 #ifndef vtkDataObjectAlgorithm_h
33 #define vtkDataObjectAlgorithm_h
34 
35 #include "vtkCommonExecutionModelModule.h" // For export macro
36 #include "vtkAlgorithm.h"
37 #include "vtkDataObject.h" // makes things a bit easier
38 
39 class vtkDataSet;
40 class vtkDataObject;
41 
43 {
44 public:
45  static vtkDataObjectAlgorithm *New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  vtkDataObject* GetOutput();
52  vtkDataObject* GetOutput(int);
53  virtual void SetOutput(vtkDataObject* d);
55 
57 
58  virtual int ProcessRequest(vtkInformation*,
62 
63  // this method is not recommended for use, but lots of old style filters
64  // use it
65  vtkDataObject* GetInput();
66  vtkDataObject *GetInput(int port);
67 
69 
72  void SetInputData(vtkDataObject *);
73  void SetInputData(int, vtkDataObject*);
75 
77 
80  void AddInputData(vtkDataObject *);
81  void AddInputData(int, vtkDataObject*);
83 
84 protected:
87 
88  // convenience method
89  virtual int RequestInformation(vtkInformation* request,
90  vtkInformationVector** inputVector,
91  vtkInformationVector* outputVector);
92 
94 
99  {
100  return 1;
101  }
103 
105 
110  {
111  return 1;
112  }
114 
118  {
119  return 1;
120  }
121 
122  // see algorithm for more info
125 
126 private:
127  vtkDataObjectAlgorithm(const vtkDataObjectAlgorithm&); // Not implemented.
128  void operator=(const vtkDataObjectAlgorithm&); // Not implemented.
129 };
130 
131 #endif
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)