VTK
vtkRectilinearGridAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRectilinearGridAlgorithm.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 vtkRectilinearGridAlgorithm_h
33 #define vtkRectilinearGridAlgorithm_h
34 
35 #include "vtkCommonExecutionModelModule.h" // For export macro
36 #include "vtkAlgorithm.h"
37 #include "vtkRectilinearGrid.h" // makes things a bit easier
38 
39 class vtkDataSet;
40 class vtkRectilinearGrid;
41 
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  vtkRectilinearGrid* GetOutput();
52  vtkRectilinearGrid* 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  vtkRectilinearGrid *GetRectilinearGridInput(int port);
68 
70 
73  void SetInputData(vtkDataObject *);
74  void SetInputData(int, vtkDataObject*);
76 
78 
81  void AddInputData(vtkDataObject *);
82  void AddInputData(int, vtkDataObject*);
84 
85 protected:
88 
89  // convenience method
90  virtual int RequestInformation(vtkInformation* request,
91  vtkInformationVector** inputVector,
92  vtkInformationVector* outputVector);
93 
95 
97  virtual int RequestData(vtkInformation* request,
98  vtkInformationVector** inputVector,
99  vtkInformationVector* outputVector);
101 
103 
108  {
109  return 1;
110  };
112 
113  // see algorithm for more info
116 
117 private:
118  vtkRectilinearGridAlgorithm(const vtkRectilinearGridAlgorithm&); // Not implemented.
119  void operator=(const vtkRectilinearGridAlgorithm&); // Not implemented.
120 };
121 
122 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
Superclass for algorithms that produce only rectilinear grid as output.
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 FillInputPortInformation(int port, vtkInformation *info)
virtual int RequestUpdateExtent(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)