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=========================================================================*/
34#ifndef vtkExtractSelection_h
35#define vtkExtractSelection_h
36
37#include "vtkFiltersExtractionModule.h" // For export macro
39
47class vtkSelection;
49
50class VTKFILTERSEXTRACTION_EXPORT vtkExtractSelection : public vtkExtractSelectionBase
51{
52public:
55 void PrintSelf(ostream& os, vtkIndent indent);
56
58
62 vtkSetMacro(ShowBounds,int);
63 vtkGetMacro(ShowBounds,int);
64 vtkBooleanMacro(ShowBounds,int);
66
68
73 vtkSetMacro(UseProbeForLocations, int);
74 vtkGetMacro(UseProbeForLocations, int);
75 vtkBooleanMacro(UseProbeForLocations, int);
77
78protected:
81
83
84 //sets up empty output dataset
85 virtual int RequestDataObject(vtkInformation* request,
86 vtkInformationVector** inputVector,
87 vtkInformationVector* outputVector);
88
89 // runs the algorithm and fills the output with results
93
94 // used for composite, non-hierarhical input.
96 unsigned int composite_index,
97 vtkDataObject* non_composite_input, vtkSelection* sel,
98 vtkInformation* outInfo);
99
100 // Used for hierarchical input.
102 unsigned int composite_index,
103 unsigned int level,
104 unsigned int index,
105 vtkDataObject* non_composite_input, vtkSelection* sel,
106 vtkInformation* outInfo);
107
108
109 // called for non-composite input or for a block in a composite dataset.
111 vtkSelectionNode* sel, vtkInformation* outInfo);
112
120
123private:
124 vtkExtractSelection(const vtkExtractSelection&) VTK_DELETE_FUNCTION;
125 void operator=(const vtkExtractSelection&) VTK_DELETE_FUNCTION;
126};
127
128#endif
general representation of visualization data
Definition: vtkDataObject.h:65
Returns the portion of the input dataset that lies within a selection frustum.
extract a list of cells from a dataset
extract cells within a dataset that contain the locations listen in the vtkSelection.
return selected rows of a table
extract a cells or points from a dataset that have values within a set of thresholds.
abstract base class for all extract selection filters.
extract a subset from a vtkDataSet.
vtkExtractSelectedThresholds * ThresholdsFilter
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkDataObject * RequestDataFromBlock(vtkDataObject *input, vtkSelectionNode *sel, vtkInformation *outInfo)
vtkDataObject * RequestDataInternal(unsigned int composite_index, unsigned int level, unsigned int index, vtkDataObject *non_composite_input, vtkSelection *sel, vtkInformation *outInfo)
vtkExtractSelectedLocations * LocationsFilter
vtkExtractSelectedIds * IdsFilter
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkExtractSelectedFrustum * FrustumFilter
vtkExtractSelectedRows * RowsFilter
static vtkExtractSelection * New()
vtkExtractSelectedBlock * BlockFilter
vtkProbeSelectedLocations * ProbeFilter
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkDataObject * RequestDataInternal(unsigned int composite_index, vtkDataObject *non_composite_input, vtkSelection *sel, vtkInformation *outInfo)
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
similar to vtkExtractSelectedLocations except that it interpolates the point attributes at the probe ...
A node in a selection tree.
A node in a selection tree.
Definition: vtkSelection.h:44
@ info
Definition: vtkX3D.h:376
@ level
Definition: vtkX3D.h:395
@ port
Definition: vtkX3D.h:447
@ index
Definition: vtkX3D.h:246
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.