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:
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
58 
60 
61  vtkSelection* GetOutput() { return this->GetOutput(0); }
64 
66 
69  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, 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 
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
VTKCOMMONEXECUTIONMODEL_EXPORT
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Definition: vtkCommonExecutionModelModule.h:15
vtkSelectionAlgorithm::vtkSelectionAlgorithm
vtkSelectionAlgorithm()
vtkgl::obj
GLsizei GLsizei GLuint * obj
Definition: vtkgl.h:11994
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkSelectionAlgorithm::SetInputData
void SetInputData(int index, vtkDataObject *obj)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSelectionAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkSelection
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:45
vtkCommonExecutionModelModule.h
vtkAlgorithm.h
vtkSelectionAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkSelectionAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSelectionAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSelectionAlgorithm::~vtkSelectionAlgorithm
~vtkSelectionAlgorithm()
vtkSelectionAlgorithm::New
static vtkSelectionAlgorithm * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSelectionAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkSelectionAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkSelectionAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkSelectionAlgorithm::GetOutput
vtkSelection * GetOutput()
Definition: vtkSelectionAlgorithm.h:61
vtkSelectionAlgorithm
Superclass for algorithms that produce only Selection as output.
Definition: vtkSelectionAlgorithm.h:46
vtkSelectionAlgorithm::SetInputData
void SetInputData(vtkDataObject *obj)
Definition: vtkSelectionAlgorithm.h:69
vtkSelection.h
vtkSelectionAlgorithm::GetOutput
vtkSelection * GetOutput(int index)
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65