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
109  virtual int FillOutputPortInformation(int port, vtkInformation* info);
110  virtual int FillInputPortInformation(int port, vtkInformation* info);
111 
112 private:
113  vtkSelectionAlgorithm(const vtkSelectionAlgorithm&); // Not implemented.
114  void operator=(const vtkSelectionAlgorithm&); // Not implemented.
115 };
116 
117 #endif
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:43
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
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()
void SetInput(vtkDataObject *obj)
helper class to get VTK data object types as string and instantiate them
void PrintSelf(ostream &os, vtkIndent indent)