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 =========================================================================*/
33 #ifndef __vtkPointSetAlgorithm_h
34 #define __vtkPointSetAlgorithm_h
35 
36 #include "vtkAlgorithm.h"
37 
38 class vtkPointSet;
39 class vtkPolyData;
40 class vtkStructuredGrid;
41 class vtkUnstructuredGrid;
42 
44 {
45 public:
46  static vtkPointSetAlgorithm *New();
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
52  vtkPointSet* GetOutput();
53  vtkPointSet* GetOutput(int);
55 
57  vtkPolyData *GetPolyDataOutput();
58 
60  vtkStructuredGrid *GetStructuredGridOutput();
61 
63  vtkUnstructuredGrid *GetUnstructuredGridOutput();
64 
66 
73  void SetInput(vtkDataObject*);
74  void SetInput(int, vtkDataObject*);
75  void SetInput(vtkPointSet*);
76  void SetInput(int, vtkPointSet*);
78 
80 
84  void AddInput(vtkDataObject *);
85  void AddInput(vtkPointSet*);
86  void AddInput(int, vtkPointSet*);
87  void AddInput(int, vtkDataObject*);
89 
90  // this method is not recommended for use, but lots of old style filters
91  // use it
92  vtkDataObject *GetInput();
93 
95 
96  virtual int ProcessRequest(vtkInformation* request,
97  vtkInformationVector** inputVector,
98  vtkInformationVector* outputVector);
100 
101 protected:
104 
106 
108  virtual int RequestDataObject(vtkInformation* request,
109  vtkInformationVector** inputVector,
110  vtkInformationVector* outputVector);
112 
114 
118  vtkInformationVector*) {return 1;};
120 
122 
126  vtkInformationVector*) {return 1;};
128 
130 
135  {
136  return 1;
137  };
139 
140  // see algorithm for more info
141  virtual int FillOutputPortInformation(int port, vtkInformation* info);
142  virtual int FillInputPortInformation(int port, vtkInformation* info);
143 
144 private:
145  vtkPointSetAlgorithm(const vtkPointSetAlgorithm&); // Not implemented.
146  void operator=(const vtkPointSetAlgorithm&); // Not implemented.
147 };
148 
149 #endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:40
virtual int ExecuteInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
virtual int ComputeInputUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
Superclass for algorithms that produce output of the same type as input.
virtual int FillInputPortInformation(int port, vtkInformation *info)
topologically regular array of data
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
helper class to get VTK data object types as string and instantiate them
void PrintSelf(ostream &os, vtkIndent indent)