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 =========================================================================*/
30 #ifndef vtkStructuredGridAlgorithm_h
31 #define vtkStructuredGridAlgorithm_h
32 
33 #include "vtkCommonExecutionModelModule.h" // For export macro
34 #include "vtkAlgorithm.h"
35 #include "vtkStructuredGrid.h" // makes things a bit easier
36 
37 class vtkDataSet;
38 class vtkStructuredGrid;
39 
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
49  vtkStructuredGrid* GetOutput();
50  vtkStructuredGrid* GetOutput(int);
51  virtual void SetOutput(vtkDataObject* d);
53 
55 
56  virtual int ProcessRequest(vtkInformation*,
60 
61  // this method is not recommended for use, but lots of old style filters
62  // use it
63  vtkDataObject* GetInput();
64  vtkDataObject *GetInput(int port);
65  vtkStructuredGrid *GetStructuredGridInput(int port);
66 
68 
71  void SetInputData(vtkDataObject *);
72  void SetInputData(int, vtkDataObject*);
74 
76 
79  void AddInputData(vtkDataObject *);
80  void AddInputData(int, vtkDataObject*);
82 
83 protected:
86 
87  // convenience method
88  virtual int RequestInformation(vtkInformation* request,
89  vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector);
91 
93 
95  virtual int RequestData(vtkInformation* request,
96  vtkInformationVector** inputVector,
97  vtkInformationVector* outputVector);
99 
101 
106  {
107  return 1;
108  };
110 
111  // see algorithm for more info
114 
115 private:
116  vtkStructuredGridAlgorithm(const vtkStructuredGridAlgorithm&); // Not implemented.
117  void operator=(const vtkStructuredGridAlgorithm&); // Not implemented.
118 };
119 
120 #endif
#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)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
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
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()
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)