VTK
vtkPolyDataAlgorithm.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPolyDataAlgorithm.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=========================================================================*/
34#ifndef vtkPolyDataAlgorithm_h
35#define vtkPolyDataAlgorithm_h
36
37#include "vtkCommonExecutionModelModule.h" // For export macro
38#include "vtkAlgorithm.h"
39#include "vtkPolyData.h" // makes things a bit easier
40
41class vtkDataSet;
42class vtkPolyData;
43
44class VTKCOMMONEXECUTIONMODEL_EXPORT vtkPolyDataAlgorithm : public vtkAlgorithm
45{
46public:
49 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
50
52
57 virtual void SetOutput(vtkDataObject* d);
59
65 vtkInformationVector*) VTK_OVERRIDE;
66
67 // this method is not recommended for use, but lots of old style filters
68 // use it
72
74
82
84
92
93protected:
95 ~vtkPolyDataAlgorithm() VTK_OVERRIDE;
96
97 // convenience method
98 virtual int RequestInformation(vtkInformation* request,
99 vtkInformationVector** inputVector,
100 vtkInformationVector* outputVector);
101
106 virtual int RequestData(vtkInformation* request,
107 vtkInformationVector** inputVector,
108 vtkInformationVector* outputVector);
109
114 virtual int RequestUpdateExtent(vtkInformation*,
117
118 // see algorithm for more info
119 int FillOutputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
120 int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
121
122private:
123 vtkPolyDataAlgorithm(const vtkPolyDataAlgorithm&) VTK_DELETE_FUNCTION;
124 void operator=(const vtkPolyDataAlgorithm&) VTK_DELETE_FUNCTION;
125};
126
127#endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
general representation of visualization data
Definition: vtkDataObject.h:65
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
vtkPolyData * GetPolyDataInput(int port)
void SetInputData(int, vtkDataObject *)
vtkDataObject * GetInput()
virtual void SetOutput(vtkDataObject *d)
void AddInputData(int, vtkDataObject *)
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
vtkDataObject * GetInput(int port)
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.
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkPolyData * GetOutput(int)
~vtkPolyDataAlgorithm() override
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:86
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447