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:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
57 
58 
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 
107 
111  virtual int RequestData(vtkInformation* request,
112  vtkInformationVector** inputVector,
113  vtkInformationVector* outputVector);
114 
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
vtkPistonAlgorithm::SetInputData
void SetInputData(int num, vtkDataObject *input)
Assign a data object as input.
vtkPistonAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Participate in pipeline's sub extent determination.
vtkPistonDataObject
A GPU resident data set.
Definition: vtkPistonDataObject.h:43
vtkPistonAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkPistonAlgorithm::New
static vtkPistonAlgorithm * New()
vtkPistonAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Produce empty output of the proper type for RequestData to fill in.
vtkAlgorithm.h
vtkPistonAlgorithm
Superclass for algorithms that produce only PistonDataObjects.
Definition: vtkPistonAlgorithm.h:45
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkPistonAlgorithm::GetPistonDataObjectOutput
vtkPistonDataObject * GetPistonDataObjectOutput(int port)
A convenience method to reduce code duplication that gets the output as the expected type or NULL.
vtkPistonAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Produce meta-data about what RequestData will produce.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkPistonAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Method that does the actual calculation.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkPistonAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkPistonAlgorithm::~vtkPistonAlgorithm
~vtkPistonAlgorithm()
vtkPistonAlgorithm::SetInputData
void SetInputData(vtkDataObject *input)
Definition: vtkPistonAlgorithm.h:72
vtkPistonAlgorithm::PassBoundsForward
virtual void PassBoundsForward(vtkPistonDataObject *id, vtkPistonDataObject *od)
Typically Execute uses this to copy input bounds to output.
vtkPistonAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Overridden to say that we take in and produce vtkPistonDataObjects.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkPistonAlgorithm::vtkPistonAlgorithm
vtkPistonAlgorithm()
vtkPistonAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Interface the algorithm to the Pipeline's passes.