VTK
vtkExtractSelectionLegacy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractSelectionLegacy.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 vtkExtractSelectionLegacy_h
37 #define vtkExtractSelectionLegacy_h
38 
39 #include "vtkFiltersExtractionModule.h" // For export macro
41 
42 #ifndef VTK_LEGACY_REMOVE
43 
51 class vtkSelection;
52 class vtkSelectionNode;
53 
54 class VTKFILTERSEXTRACTION_EXPORT vtkExtractSelectionLegacy : public vtkExtractSelectionBase
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
66  vtkSetMacro(ShowBounds,vtkTypeBool);
67  vtkGetMacro(ShowBounds,vtkTypeBool);
68  vtkBooleanMacro(ShowBounds,vtkTypeBool);
70 
72 
77  vtkSetMacro(UseProbeForLocations, vtkTypeBool);
78  vtkGetMacro(UseProbeForLocations, vtkTypeBool);
79  vtkBooleanMacro(UseProbeForLocations, vtkTypeBool);
81 
82 protected:
84  ~vtkExtractSelectionLegacy() override;
85 
87 
88  //sets up empty output dataset
89  int RequestDataObject(vtkInformation* request,
90  vtkInformationVector** inputVector,
91  vtkInformationVector* outputVector) override;
92 
93  // runs the algorithm and fills the output with results
96  vtkInformationVector *) override;
97 
98  // used for composite, non-hierarhical input.
99  vtkDataObject* RequestDataInternal(
100  unsigned int composite_index,
101  vtkDataObject* non_composite_input, vtkSelection* sel,
102  vtkInformation* outInfo);
103 
104  // Used for hierarchical input.
105  vtkDataObject* RequestDataInternal(
106  unsigned int composite_index,
107  unsigned int level,
108  unsigned int index,
109  vtkDataObject* non_composite_input, vtkSelection* sel,
110  vtkInformation* outInfo);
111 
112 
113  // called for non-composite input or for a block in a composite dataset.
114  vtkDataObject* RequestDataFromBlock(vtkDataObject* input,
115  vtkSelectionNode* sel, vtkInformation* outInfo);
116 
124 
127 private:
129  void operator=(const vtkExtractSelectionLegacy&) = delete;
130 };
131 
132 #endif // VTK_LEGACY_REMOVE
133 
134 #endif
Extract-Selection filter to extract blocks.
A node in a selection tree.
vtkExtractSelectedRows * RowsFilter
vtkExtractSelectedFrustum * FrustumFilter
extract a subset from a vtkDataSet.
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.
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:63
vtkExtractSelectedLocations * LocationsFilter
int vtkTypeBool
Definition: vtkABI.h:69
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
return selected rows of a table
Returns the portion of the input dataset that lies within a selection frustum.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
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.
vtkExtractSelectedThresholds * ThresholdsFilter
general representation of visualization data
Definition: vtkDataObject.h:64
vtkProbeSelectedLocations * ProbeFilter
vtkExtractSelectedBlock * BlockFilter
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractSelectedIds * IdsFilter