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
vtkPistonDataObject
A GPU resident data set.
Definition: vtkPistonDataObject.h:42
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkAlgorithm.h
vtkPistonAlgorithm
Superclass for algorithms that produce only PistonDataObjects.
Definition: vtkPistonAlgorithm.h:44
vtkX3D::port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkPistonAlgorithm::SetInputData
void SetInputData(vtkDataObject *input)
Definition: vtkPistonAlgorithm.h:72
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.