VTK
vtkExtractSelection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractSelection.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 =========================================================================*/
33 #ifndef vtkExtractSelection_h
34 #define vtkExtractSelection_h
35 
36 #include "vtkFiltersExtractionModule.h" // For export macro
38 
46 class vtkSelection;
47 class vtkSelectionNode;
48 
50 {
51 public:
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
60  vtkSetMacro(ShowBounds,int);
61  vtkGetMacro(ShowBounds,int);
62  vtkBooleanMacro(ShowBounds,int);
64 
66 
69  vtkSetMacro(UseProbeForLocations, int);
70  vtkGetMacro(UseProbeForLocations, int);
71  vtkBooleanMacro(UseProbeForLocations, int);
73 
74 protected:
77 
79 
80  //sets up empty output dataset
81  virtual int RequestDataObject(vtkInformation* request,
82  vtkInformationVector** inputVector,
83  vtkInformationVector* outputVector);
84 
85  // runs the algorithm and fills the output with results
86  virtual int RequestData(vtkInformation *,
89 
90  // used for composite, non-hierarhical input.
92  unsigned int composite_index,
93  vtkDataObject* non_composite_input, vtkSelection* sel,
94  vtkInformation* outInfo);
95 
96  // Used for hierarchical input.
98  unsigned int composite_index,
99  unsigned int level,
100  unsigned int index,
101  vtkDataObject* non_composite_input, vtkSelection* sel,
102  vtkInformation* outInfo);
103 
104 
105  // called for non-composite input or for a block in a composite dataset.
107  vtkSelectionNode* sel, vtkInformation* outInfo);
108 
116 
119 private:
120  vtkExtractSelection(const vtkExtractSelection&); // Not implemented.
121  void operator=(const vtkExtractSelection&); // Not implemented.
122 };
123 
124 #endif
vtkExtractSelection::RequestDataFromBlock
vtkDataObject * RequestDataFromBlock(vtkDataObject *input, vtkSelectionNode *sel, vtkInformation *outInfo)
vtkExtractSelectionBase.h
vtkExtractSelection::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkExtractSelection::RowsFilter
vtkExtractSelectedRows * RowsFilter
Definition: vtkExtractSelection.h:113
vtkSelectionNode
A node in a selection tree. Used to store selection results.
Definition: vtkSelectionNode.h:69
vtkExtractSelectedLocations
extract cells within a dataset that contain the locations listen in the vtkSelection.
Definition: vtkExtractSelectedLocations.h:38
vtkExtractSelectedBlock
Definition: vtkExtractSelectedBlock.h:26
vtkExtractSelection::vtkExtractSelection
vtkExtractSelection()
vtkExtractSelection::RequestDataInternal
vtkDataObject * RequestDataInternal(unsigned int composite_index, vtkDataObject *non_composite_input, vtkSelection *sel, vtkInformation *outInfo)
vtkExtractSelection::~vtkExtractSelection
~vtkExtractSelection()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkFiltersExtractionModule.h
vtkExtractSelection
extract a subset from a vtkDataSet.
Definition: vtkExtractSelection.h:50
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSelection
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:45
vtkgl::input
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
vtkExtractSelection::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkExtractSelectedIds
extract a list of cells from a dataset
Definition: vtkExtractSelectedIds.h:40
vtkExtractSelectedThresholds
extract a cells or points from a dataset that have values within a set of thresholds.
Definition: vtkExtractSelectedThresholds.h:45
vtkExtractSelection::ThresholdsFilter
vtkExtractSelectedThresholds * ThresholdsFilter
Definition: vtkExtractSelection.h:114
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkExtractSelection::ProbeFilter
vtkProbeSelectedLocations * ProbeFilter
Definition: vtkExtractSelection.h:115
vtkExtractSelection::New
static vtkExtractSelection * New()
vtkExtractSelection::BlockFilter
vtkExtractSelectedBlock * BlockFilter
Definition: vtkExtractSelection.h:109
vtkExtractSelection::IdsFilter
vtkExtractSelectedIds * IdsFilter
Definition: vtkExtractSelection.h:111
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkExtractSelection::UseProbeForLocations
int UseProbeForLocations
Definition: vtkExtractSelection.h:117
vtkExtractSelection::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkgl::level
GLint level
Definition: vtkgl.h:11316
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkExtractSelectionBase
abstract base class for all extract selection filters.
Definition: vtkExtractSelectionBase.h:30
VTKFILTERSEXTRACTION_EXPORT
#define VTKFILTERSEXTRACTION_EXPORT
Definition: vtkFiltersExtractionModule.h:15
vtkExtractSelection::FrustumFilter
vtkExtractSelectedFrustum * FrustumFilter
Definition: vtkExtractSelection.h:110
vtkProbeSelectedLocations
similar to vtkExtractSelectedLocations except that it interpolates the point attributes at the probe ...
Definition: vtkProbeSelectedLocations.h:34
vtkExtractSelection::ShowBounds
int ShowBounds
Definition: vtkExtractSelection.h:118
vtkExtractSelection::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkExtractSelectedRows
return selected rows of a table
Definition: vtkExtractSelectedRows.h:39
vtkExtractSelection::LocationsFilter
vtkExtractSelectedLocations * LocationsFilter
Definition: vtkExtractSelection.h:112
vtkExtractSelectedFrustum
Returns the portion of the input dataset that lies within a selection frustum.
Definition: vtkExtractSelectedFrustum.h:52
vtkExtractSelection::RequestDataInternal
vtkDataObject * RequestDataInternal(unsigned int composite_index, unsigned int level, unsigned int index, vtkDataObject *non_composite_input, vtkSelection *sel, vtkInformation *outInfo)