VTK
vtkStructuredGridAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStructuredGridAlgorithm.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 =========================================================================*/
30 #ifndef vtkStructuredGridAlgorithm_h
31 #define vtkStructuredGridAlgorithm_h
32 
33 #include "vtkCommonExecutionModelModule.h" // For export macro
34 #include "vtkAlgorithm.h"
35 #include "vtkStructuredGrid.h" // makes things a bit easier
36 
37 class vtkDataSet;
38 class vtkStructuredGrid;
39 
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
51  virtual void SetOutput(vtkDataObject* d);
53 
55 
60 
61  // this method is not recommended for use, but lots of old style filters
62  // use it
66 
68 
74 
76 
82 
83 protected:
86 
87  // convenience method
88  virtual int RequestInformation(vtkInformation* request,
89  vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector);
91 
93 
95  virtual int RequestData(vtkInformation* request,
96  vtkInformationVector** inputVector,
97  vtkInformationVector* outputVector);
99 
101 
106  {
107  return 1;
108  };
110 
111  // see algorithm for more info
114 
115 private:
116  vtkStructuredGridAlgorithm(const vtkStructuredGridAlgorithm&); // Not implemented.
117  void operator=(const vtkStructuredGridAlgorithm&); // Not implemented.
118 };
119 
120 #endif
vtkStructuredGridAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkStructuredGridAlgorithm::GetOutput
vtkStructuredGrid * GetOutput()
VTKCOMMONEXECUTIONMODEL_EXPORT
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Definition: vtkCommonExecutionModelModule.h:15
vtkStructuredGridAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkStructuredGridAlgorithm
Superclass for algorithms that produce only structured grid as output.
Definition: vtkStructuredGridAlgorithm.h:41
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkStructuredGridAlgorithm::SetOutput
virtual void SetOutput(vtkDataObject *d)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkStructuredGridAlgorithm::New
static vtkStructuredGridAlgorithm * New()
vtkStructuredGridAlgorithm::GetInput
vtkDataObject * GetInput(int port)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:63
vtkCommonExecutionModelModule.h
vtkStructuredGrid.h
vtkStructuredGridAlgorithm::GetOutput
vtkStructuredGrid * GetOutput(int)
vtkStructuredGridAlgorithm::SetInputData
void SetInputData(int, vtkDataObject *)
vtkAlgorithm.h
vtkStructuredGridAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkStructuredGridAlgorithm::~vtkStructuredGridAlgorithm
~vtkStructuredGridAlgorithm()
vtkStructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkStructuredGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkStructuredGridAlgorithm::GetInput
vtkDataObject * GetInput()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkStructuredGridAlgorithm::AddInputData
void AddInputData(vtkDataObject *)
vtkStructuredGridAlgorithm::vtkStructuredGridAlgorithm
vtkStructuredGridAlgorithm()
vtkStructuredGridAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkStructuredGridAlgorithm::AddInputData
void AddInputData(int, vtkDataObject *)
vtkStructuredGridAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Definition: vtkStructuredGridAlgorithm.h:103
vtkStructuredGridAlgorithm::GetStructuredGridInput
vtkStructuredGrid * GetStructuredGridInput(int port)
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkStructuredGridAlgorithm::SetInputData
void SetInputData(vtkDataObject *)