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 =========================================================================*/
35 #ifndef vtkPistonAlgorithm_h
36 #define vtkPistonAlgorithm_h
37 
38 #include "vtkAcceleratorsPistonModule.h" // For export macro
39 #include "vtkAlgorithm.h"
40 
42 
43 class VTKACCELERATORSPISTON_EXPORT vtkPistonAlgorithm : public vtkAlgorithm
44 {
45 public:
46  static vtkPistonAlgorithm *New();
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
52  virtual int ProcessRequest(vtkInformation*,
56 
57 
60  vtkPistonDataObject *GetPistonDataObjectOutput(int port);
61 
63 
66  void SetInputData(int num, vtkDataObject *input);
67  void SetInputData(vtkDataObject *input) { this->SetInputData(0, input); };
69 
70 protected:
73 
75 
79 
81 
82  virtual int RequestDataObject(vtkInformation* request,
83  vtkInformationVector** inputVector,
84  vtkInformationVector* outputVector);
86 
88 
89  virtual int RequestInformation(vtkInformation* request,
90  vtkInformationVector** inputVector,
91  vtkInformationVector* outputVector);
93 
95 
96  virtual int RequestUpdateExtent(vtkInformation*,
100 
102 
103  virtual int RequestData(vtkInformation* request,
104  vtkInformationVector** inputVector,
105  vtkInformationVector* outputVector);
107 
109 
112  virtual void PassBoundsForward(vtkPistonDataObject *id,
113  vtkPistonDataObject *od);
115 
116 private:
117  vtkPistonAlgorithm(const vtkPistonAlgorithm&); // Not implemented.
118  void operator=(const vtkPistonAlgorithm&); // Not implemented.
119 };
120 
121 #endif
void SetInputData(vtkDataObject *input)
Store vtkAlgorithm input/output information.
A GPU resident data set.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for algorithms that produce only PistonDataObjects.
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)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)