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 =========================================================================*/
31 #ifndef vtkPointSetAlgorithm_h
32 #define vtkPointSetAlgorithm_h
33 
34 #include "vtkCommonExecutionModelModule.h" // For export macro
35 #include "vtkAlgorithm.h"
36 
37 class vtkPointSet;
38 class vtkPolyData;
39 class vtkStructuredGrid;
41 
43 {
44 public:
45  static vtkPointSetAlgorithm *New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  vtkPointSet* GetOutput();
52  vtkPointSet* GetOutput(int);
54 
56  vtkPolyData *GetPolyDataOutput();
57 
59  vtkStructuredGrid *GetStructuredGridOutput();
60 
62  vtkUnstructuredGrid *GetUnstructuredGridOutput();
63 
65 
68  void SetInputData(vtkDataObject*);
69  void SetInputData(int, vtkDataObject*);
70  void SetInputData(vtkPointSet*);
71  void SetInputData(int, vtkPointSet*);
73 
75 
78  void AddInputData(vtkDataObject *);
79  void AddInputData(vtkPointSet*);
80  void AddInputData(int, vtkPointSet*);
81  void AddInputData(int, vtkDataObject*);
83 
84  // this method is not recommended for use, but lots of old style filters
85  // use it
86  vtkDataObject *GetInput();
87 
89 
90  virtual int ProcessRequest(vtkInformation* request,
91  vtkInformationVector** inputVector,
92  vtkInformationVector* outputVector);
94 
95 protected:
98 
100 
102  virtual int RequestDataObject(vtkInformation* request,
103  vtkInformationVector** inputVector,
104  vtkInformationVector* outputVector);
106 
108 
112  vtkInformationVector*) {return 1;};
114 
116 
120  vtkInformationVector*) {return 1;};
122 
124 
129  {
130  return 1;
131  };
133 
134  // see algorithm for more info
137 
138 private:
139  vtkPointSetAlgorithm(const vtkPointSetAlgorithm&); // Not implemented.
140  void operator=(const vtkPointSetAlgorithm&); // Not implemented.
141 };
142 
143 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store vtkAlgorithm input/output information.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:44
virtual int ExecuteInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
virtual int ComputeInputUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
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)
topologically regular array of data
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)