VTK
vtkDataObjectAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataObjectAlgorithm.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 =========================================================================*/
32 #ifndef vtkDataObjectAlgorithm_h
33 #define vtkDataObjectAlgorithm_h
34 
35 #include "vtkCommonExecutionModelModule.h" // For export macro
36 #include "vtkAlgorithm.h"
37 #include "vtkDataObject.h" // makes things a bit easier
38 
39 class vtkDataSet;
40 class vtkDataObject;
41 
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
53  virtual void SetOutput(vtkDataObject* d);
55 
57 
62 
63  // this method is not recommended for use, but lots of old style filters
64  // use it
67 
69 
75 
77 
83 
84 protected:
87 
88  // convenience method
89  virtual int RequestInformation(vtkInformation* request,
90  vtkInformationVector** inputVector,
91  vtkInformationVector* outputVector);
92 
94 
99  {
100  return 1;
101  }
103 
105 
110  {
111  return 1;
112  }
114 
118  {
119  return 1;
120  }
121 
122  // see algorithm for more info
125 
126 private:
127  vtkDataObjectAlgorithm(const vtkDataObjectAlgorithm&); // Not implemented.
128  void operator=(const vtkDataObjectAlgorithm&); // Not implemented.
129 };
130 
131 #endif
vtkDataObjectAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
VTKCOMMONEXECUTIONMODEL_EXPORT
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Definition: vtkCommonExecutionModelModule.h:15
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkDataObjectAlgorithm
Superclass for algorithms that produce only data object as output.
Definition: vtkDataObjectAlgorithm.h:43
vtkDataObjectAlgorithm::~vtkDataObjectAlgorithm
~vtkDataObjectAlgorithm()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkDataObjectAlgorithm::GetInput
vtkDataObject * GetInput()
vtkCommonExecutionModelModule.h
vtkDataObjectAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkDataObjectAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Definition: vtkDataObjectAlgorithm.h:107
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkDataObjectAlgorithm::GetInput
vtkDataObject * GetInput(int port)
vtkDataObjectAlgorithm::SetInputData
void SetInputData(int, vtkDataObject *)
vtkDataObjectAlgorithm::vtkDataObjectAlgorithm
vtkDataObjectAlgorithm()
vtkDataObjectAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkDataObjectAlgorithm::GetOutput
vtkDataObject * GetOutput(int)
vtkDataObjectAlgorithm::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
vtkDataObject.h
vtkDataObjectAlgorithm::GetOutput
vtkDataObject * GetOutput()
vtkDataObjectAlgorithm::AddInputData
void AddInputData(vtkDataObject *)
vtkDataObjectAlgorithm::AddInputData
void AddInputData(int, vtkDataObject *)
vtkDataObjectAlgorithm::New
static vtkDataObjectAlgorithm * New()
vtkDataObjectAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
vtkDataObjectAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Definition: vtkDataObjectAlgorithm.h:115
vtkDataObjectAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Definition: vtkDataObjectAlgorithm.h:96
vtkDataObjectAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkDataObjectAlgorithm::SetOutput
virtual void SetOutput(vtkDataObject *d)