VTK
vtkStructuredGridAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStructuredGridAlgorithm.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 =========================================================================*/
36 #ifndef __vtkStructuredGridAlgorithm_h
37 #define __vtkStructuredGridAlgorithm_h
38 
39 #include "vtkAlgorithm.h"
40 #include "vtkStructuredGrid.h" // makes things a bit easier
41 
42 class vtkDataSet;
43 class vtkStructuredGrid;
44 
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
54  vtkStructuredGrid* GetOutput();
55  vtkStructuredGrid* GetOutput(int);
56  virtual void SetOutput(vtkDataObject* d);
58 
60 
61  virtual int ProcessRequest(vtkInformation*,
65 
66  // this method is not recommended for use, but lots of old style filters
67  // use it
68  vtkDataObject* GetInput();
69  vtkDataObject *GetInput(int port);
70  vtkStructuredGrid *GetStructuredGridInput(int port);
71 
73 
80  void SetInput(vtkDataObject *);
81  void SetInput(int, vtkDataObject*);
83 
85 
89  void AddInput(vtkDataObject *);
90  void AddInput(int, vtkDataObject*);
92 
93 protected:
96 
97  // convenience method
98  virtual int RequestInformation(vtkInformation* request,
99  vtkInformationVector** inputVector,
100  vtkInformationVector* outputVector);
101 
103 
105  virtual int RequestData(vtkInformation* request,
106  vtkInformationVector** inputVector,
107  vtkInformationVector* outputVector);
109 
111 
116  {
117  return 1;
118  };
120 
122 
123  virtual void ExecuteData(vtkDataObject *output);
124  virtual void Execute();
126 
127  // see algorithm for more info
128  virtual int FillOutputPortInformation(int port, vtkInformation* info);
129  virtual int FillInputPortInformation(int port, vtkInformation* info);
130 
131 private:
132  vtkStructuredGridAlgorithm(const vtkStructuredGridAlgorithm&); // Not implemented.
133  void operator=(const vtkStructuredGridAlgorithm&); // Not implemented.
134 };
135 
136 #endif
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
Superclass for algorithms that produce only structured grid as output.
virtual int FillInputPortInformation(int port, vtkInformation *info)
topologically regular array of data
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
helper class to get VTK data object types as string and instantiate them
void PrintSelf(ostream &os, vtkIndent indent)