VTK
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 "vtkCommonExecutionModelModule.h" // For export macro
36 #include "vtkAlgorithm.h"
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 
104  int ProcessRequest(vtkInformation* request,
105  vtkInformationVector** inputVector,
106  vtkInformationVector* outputVector) override;
107 
108 protected:
110  ~vtkPointSetAlgorithm() override {}
111 
116  virtual int RequestDataObject(vtkInformation* request,
117  vtkInformationVector** inputVector,
118  vtkInformationVector* outputVector);
119 
126  vtkInformationVector*) {return 1;};
127 
134  vtkInformationVector*) {return 1;};
135 
137 
144  {
145  return 1;
146  };
148 
149  // see algorithm for more info
151  int FillInputPortInformation(int port, vtkInformation* info) override;
152 
153 private:
155  void operator=(const vtkPointSetAlgorithm&) = delete;
156 };
157 
158 #endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:42
virtual int ExecuteInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
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.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
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:39
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:64