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 
47 class vtkSelection;
48 class vtkSelectionNode;
49 
50 class VTKFILTERSEXTRACTION_EXPORT vtkExtractSelection : public vtkExtractSelectionBase
51 {
52 public:
53  static vtkExtractSelection *New();
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 
78 protected:
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
90  virtual int RequestData(vtkInformation *,
93 
94  // used for composite, non-hierarhical input.
95  vtkDataObject* RequestDataInternal(
96  unsigned int composite_index,
97  vtkDataObject* non_composite_input, vtkSelection* sel,
98  vtkInformation* outInfo);
99 
100  // Used for hierarchical input.
101  vtkDataObject* RequestDataInternal(
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.
110  vtkDataObject* RequestDataFromBlock(vtkDataObject* input,
111  vtkSelectionNode* sel, vtkInformation* outInfo);
112 
120 
123 private:
124  vtkExtractSelection(const vtkExtractSelection&) VTK_DELETE_FUNCTION;
125  void operator=(const vtkExtractSelection&) VTK_DELETE_FUNCTION;
126 };
127 
128 #endif
A node in a selection tree.
similar to vtkExtractSelectedLocations except that it interpolates the point attributes at the probe ...
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
extract a list of cells from a dataset
abstract base class for all extract selection filters.
extract cells within a dataset that contain the locations listen in the vtkSelection.
A node in a selection tree.
Definition: vtkSelection.h:43
vtkExtractSelectedIds * IdsFilter
vtkExtractSelectedRows * RowsFilter
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Sets up empty output dataset.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkExtractSelectedLocations * LocationsFilter
vtkExtractSelectedThresholds * ThresholdsFilter
vtkExtractSelectedFrustum * FrustumFilter
return selected rows of a table
Returns the portion of the input dataset that lies within a selection frustum.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
extract a subset from a vtkDataSet.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkProbeSelectedLocations * ProbeFilter
Store zero or more vtkInformation instances.
extract a cells or points from a dataset that have values within a set of thresholds.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractSelectedBlock * BlockFilter