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 =========================================================================*/
31 #ifndef vtkExtractSelection_h
32 #define vtkExtractSelection_h
33 
34 #include "vtkFiltersExtractionModule.h" // For export macro
36 
44 class vtkSelection;
45 class vtkSelectionNode;
46 
47 class VTKFILTERSEXTRACTION_EXPORT vtkExtractSelection : public vtkExtractSelectionBase
48 {
49 public:
50  static vtkExtractSelection *New();
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
59  vtkSetMacro(ShowBounds,vtkTypeBool);
60  vtkGetMacro(ShowBounds,vtkTypeBool);
61  vtkBooleanMacro(ShowBounds,vtkTypeBool);
63 
65 
70  vtkSetMacro(UseProbeForLocations, vtkTypeBool);
71  vtkGetMacro(UseProbeForLocations, vtkTypeBool);
72  vtkBooleanMacro(UseProbeForLocations, vtkTypeBool);
74 
75 protected:
77  ~vtkExtractSelection() override;
78 
80 
81  //sets up empty output dataset
82  int RequestDataObject(vtkInformation* request,
83  vtkInformationVector** inputVector,
84  vtkInformationVector* outputVector) override;
85 
86  // runs the algorithm and fills the output with results
89  vtkInformationVector *) override;
90 
91  // used for composite, non-hierarhical input.
92  vtkDataObject* RequestDataInternal(
93  unsigned int composite_index,
94  vtkDataObject* non_composite_input, vtkSelection* sel,
95  vtkInformation* outInfo);
96 
97  // Used for hierarchical input.
98  vtkDataObject* RequestDataInternal(
99  unsigned int composite_index,
100  unsigned int level,
101  unsigned int index,
102  vtkDataObject* non_composite_input, vtkSelection* sel,
103  vtkInformation* outInfo);
104 
105 
106  // called for non-composite input or for a block in a composite dataset.
107  vtkDataObject* RequestDataFromBlock(vtkDataObject* input,
108  vtkSelectionNode* sel, vtkInformation* outInfo);
109 
117 
120 private:
121  vtkExtractSelection(const vtkExtractSelection&) = delete;
122  void operator=(const vtkExtractSelection&) = delete;
123 };
124 
125 #endif
Extract-Selection filter to extract blocks.
A node in a selection tree.
vtkTypeBool UseProbeForLocations
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:37
vtkExtractSelectedIds * IdsFilter
int vtkTypeBool
Definition: vtkABI.h:69
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:33
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.
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.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
general representation of visualization data
Definition: vtkDataObject.h:58
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractSelectedBlock * BlockFilter