VTK  9.6.1
vtkPolyDataAlgorithm.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
21
22#ifndef vtkPolyDataAlgorithm_h
23#define vtkPolyDataAlgorithm_h
24
25#include "vtkAlgorithm.h"
26#include "vtkCommonExecutionModelModule.h" // For export macro
27#include "vtkPolyData.h" // makes things a bit easier
28#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
29
30VTK_ABI_NAMESPACE_BEGIN
31class vtkDataSet;
32class vtkPolyData;
33
34class VTKCOMMONEXECUTIONMODEL_EXPORT VTK_MARSHALAUTO vtkPolyDataAlgorithm : public vtkAlgorithm
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
49 virtual void SetOutput(vtkDataObject* d);
51
57
58 // this method is not recommended for use, but lots of old style filters
59 // use it
64
66
75
77
85
86protected:
89
90 // convenience method
91 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
92 vtkInformationVector* outputVector);
93
98 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
99 vtkInformationVector* outputVector);
100
106
112
113 // see algorithm for more info
114 int FillOutputPortInformation(int port, vtkInformation* info) override;
115 int FillInputPortInformation(int port, vtkInformation* info) override;
116
117private:
119 void operator=(const vtkPolyDataAlgorithm&) = delete;
120};
121
122VTK_ABI_NAMESPACE_END
123#endif
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:57
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
vtkPolyData * GetPolyDataInput(int port)
vtkDataObject * GetInput()
virtual void SetOutput(vtkDataObject *d)
Get the output data object for a port on this algorithm.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
void AddInputData(vtkDataObject *)
Assign a data object as input.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillOutputPortInformation(int port, vtkInformation *info) override
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetInputData(vtkDataObject *)
Assign a data object as input.
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkPolyData * GetOutput()
Get the output data object for a port on this algorithm.
static vtkPolyDataAlgorithm * New()
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:72
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHAL_EXCLUDE_REASON_IS_REDUNDANT
#define VTK_MARSHALAUTO
#define VTK_MARSHALEXCLUDE(reason)
#define vtkAlgorithm