VTK  9.0.1
vtkPointSetAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPointSetAlgorithm.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 vtkPointSetAlgorithm_h
33 #define vtkPointSetAlgorithm_h
34 
35 #include "vtkAlgorithm.h"
36 #include "vtkCommonExecutionModelModule.h" // For export macro
37 
38 class vtkPointSet;
39 class vtkPolyData;
40 class vtkStructuredGrid;
42 
43 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkPointSetAlgorithm : public vtkAlgorithm
44 {
45 public:
46  static vtkPointSetAlgorithm* New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
54  vtkPointSet* GetOutput();
55  vtkPointSet* GetOutput(int);
57 
61  vtkPolyData* GetPolyDataOutput();
62 
66  vtkStructuredGrid* GetStructuredGridOutput();
67 
71  vtkUnstructuredGrid* GetUnstructuredGridOutput();
72 
74 
79  void SetInputData(vtkDataObject*);
80  void SetInputData(int, vtkDataObject*);
81  void SetInputData(vtkPointSet*);
82  void SetInputData(int, vtkPointSet*);
84 
86 
91  void AddInputData(vtkDataObject*);
92  void AddInputData(vtkPointSet*);
93  void AddInputData(int, vtkPointSet*);
94  void AddInputData(int, vtkDataObject*);
96 
97  // this method is not recommended for use, but lots of old style filters
98  // use it
99  vtkDataObject* GetInput();
100 
105  vtkInformationVector* outputVector) override;
106 
107 protected:
109  ~vtkPointSetAlgorithm() override {}
110 
115  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
116  vtkInformationVector* outputVector);
117 
123  {
124  return 1;
125  }
126 
132  {
133  return 1;
134  }
135 
137 
143  {
144  return 1;
145  }
147 
148  // see algorithm for more info
150  int FillInputPortInformation(int port, vtkInformation* info) override;
151 
152 private:
154  void operator=(const vtkPointSetAlgorithm&) = delete;
155 };
156 
157 #endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:62
virtual int ExecuteInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int ComputeInputUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int vtkTypeBool
Definition: vtkABI.h:69
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:33
dataset represents arbitrary combinations of all possible cell types
Superclass for algorithms that produce output of the same type as input.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
topologically regular array of data
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:59