VTK
vtkSelectionAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSelectionAlgorithm.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 =========================================================================*/
36 #ifndef vtkSelectionAlgorithm_h
37 #define vtkSelectionAlgorithm_h
38 
39 #include "vtkCommonExecutionModelModule.h" // For export macro
40 #include "vtkAlgorithm.h"
41 #include "vtkSelection.h" // makes things a bit easier
42 
43 class vtkDataSet;
44 
46 {
47 public:
48  static vtkSelectionAlgorithm *New();
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
54  virtual int ProcessRequest(vtkInformation*,
58 
60 
61  vtkSelection* GetOutput() { return this->GetOutput(0); }
62  vtkSelection* GetOutput(int index);
64 
66 
69  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
70  void SetInputData(int index, vtkDataObject* obj);
72 
73 protected:
76 
77  // convenience method
78  virtual int RequestInformation(vtkInformation* request,
79  vtkInformationVector** inputVector,
80  vtkInformationVector* outputVector);
81 
83 
85  virtual int RequestData(vtkInformation* request,
86  vtkInformationVector** inputVector,
87  vtkInformationVector* outputVector);
89 
91 
93  virtual int RequestUpdateExtent(vtkInformation*,
97 
98  // see algorithm for more info
101 
102 private:
103  vtkSelectionAlgorithm(const vtkSelectionAlgorithm&); // Not implemented.
104  void operator=(const vtkSelectionAlgorithm&); // Not implemented.
105 };
106 
107 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:44
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
virtual int FillInputPortInformation(int port, vtkInformation *info)
Superclass for algorithms that produce only Selection as output.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64
void SetInputData(vtkDataObject *obj)
void PrintSelf(ostream &os, vtkIndent indent)