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 =========================================================================*/
43 #ifndef __vtkSelectionAlgorithm_h
44 #define __vtkSelectionAlgorithm_h
45 
46 #include "vtkAlgorithm.h"
47 #include "vtkSelection.h" // makes things a bit easier
48 
49 class vtkDataSet;
50 
52 {
53 public:
54  static vtkSelectionAlgorithm *New();
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
60  virtual int ProcessRequest(vtkInformation*,
64 
66 
67  vtkSelection* GetOutput() { return this->GetOutput(0); }
68  vtkSelection* GetOutput(int index);
70 
72 
79  void SetInput(vtkDataObject * obj) { this->SetInput(0, obj); }
80  void SetInput(int index, vtkDataObject* obj);
82 
83 protected:
86 
87  // convenience method
88  virtual int RequestInformation(vtkInformation* request,
89  vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector);
91 
93 
95  virtual int RequestData(vtkInformation* request,
96  vtkInformationVector** inputVector,
97  vtkInformationVector* outputVector);
99 
101 
103  virtual int RequestUpdateExtent(vtkInformation*,
107 
108  // see algorithm for more info
111 
112 private:
113  vtkSelectionAlgorithm(const vtkSelectionAlgorithm&); // Not implemented.
114  void operator=(const vtkSelectionAlgorithm&); // Not implemented.
115 };
116 
117 #endif