VTK
vtkPistonAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPistonAlgorithm.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 vtkPistonAlgorithm_h
37 #define vtkPistonAlgorithm_h
38 
39 #include "vtkAcceleratorsPistonModule.h" // For export macro
40 #include "vtkAlgorithm.h"
41 
43 
44 class VTKACCELERATORSPISTON_EXPORT vtkPistonAlgorithm : public vtkAlgorithm
45 {
46 public:
47  static vtkPistonAlgorithm *New();
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
54  virtual int ProcessRequest(vtkInformation*,
57 
58 
63  vtkPistonDataObject *GetPistonDataObjectOutput(int port);
64 
66 
71  void SetInputData(int num, vtkDataObject *input);
72  void SetInputData(vtkDataObject *input) { this->SetInputData(0, input); };
74 
75 protected:
78 
80 
86 
90  virtual int RequestDataObject(vtkInformation* request,
91  vtkInformationVector** inputVector,
92  vtkInformationVector* outputVector);
93 
97  virtual int RequestInformation(vtkInformation* request,
98  vtkInformationVector** inputVector,
99  vtkInformationVector* outputVector);
100 
104  virtual int RequestUpdateExtent(vtkInformation*,
107 
111  virtual int RequestData(vtkInformation* request,
112  vtkInformationVector** inputVector,
113  vtkInformationVector* outputVector);
114 
120  virtual void PassBoundsForward(vtkPistonDataObject *id,
121  vtkPistonDataObject *od);
122 
123 private:
124  vtkPistonAlgorithm(const vtkPistonAlgorithm&) VTK_DELETE_FUNCTION;
125  void operator=(const vtkPistonAlgorithm&) VTK_DELETE_FUNCTION;
126 };
127 
128 #endif
void SetInputData(vtkDataObject *input)
Assign a data object as input.
Store vtkAlgorithm input/output information.
A GPU resident data set.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for algorithms that produce only PistonDataObjects.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64