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
vtkExtractSelectionBase::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkExtractSelectionBase.h
vtkExtractSelectionLegacy::IdsFilter
vtkExtractSelectedIds * IdsFilter
Definition: vtkExtractSelectionLegacy.h:119
vtkSelectionNode
A node in a selection tree. Used to store selection results.
Definition: vtkSelectionNode.h:67
vtkExtractSelectedLocations
extract cells within a dataset that contain the locations listen in the vtkSelection.
Definition: vtkExtractSelectedLocations.h:38
vtkExtractSelectedBlock
Extract-Selection filter to extract blocks.
Definition: vtkExtractSelectedBlock.h:39
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkSelection
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:63
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
vtkExtractSelectionLegacy::UseProbeForLocations
vtkTypeBool UseProbeForLocations
Definition: vtkExtractSelectionLegacy.h:125
vtkExtractSelectionLegacy
extract a subset from a vtkDataSet.
Definition: vtkExtractSelectionLegacy.h:54
vtkX3D::level
Definition: vtkX3D.h:395
vtkX3D::port
Definition: vtkX3D.h:447
vtkExtractSelectionBase::RequestDataObject
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Sets up empty output dataset.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkExtractSelectionLegacy::ProbeFilter
vtkProbeSelectedLocations * ProbeFilter
Definition: vtkExtractSelectionLegacy.h:123
vtkExtractSelectionLegacy::FrustumFilter
vtkExtractSelectedFrustum * FrustumFilter
Definition: vtkExtractSelectionLegacy.h:118
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkExtractSelectionLegacy::RowsFilter
vtkExtractSelectedRows * RowsFilter
Definition: vtkExtractSelectionLegacy.h:121
vtkExtractSelectionBase
abstract base class for all extract selection filters.
Definition: vtkExtractSelectionBase.h:30
vtkProbeSelectedLocations
similar to vtkExtractSelectedLocations except that it interpolates the point attributes at the probe ...
Definition: vtkProbeSelectedLocations.h:34
vtkDataObjectAlgorithm::New
static vtkDataObjectAlgorithm * New()
vtkDataObjectAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Definition: vtkDataObjectAlgorithm.h:122
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkExtractSelectionLegacy::BlockFilter
vtkExtractSelectedBlock * BlockFilter
Definition: vtkExtractSelectionLegacy.h:117
vtkExtractSelectedRows
return selected rows of a table
Definition: vtkExtractSelectedRows.h:39
vtkX3D::index
Definition: vtkX3D.h:246
vtkExtractSelectionBase::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractSelectionLegacy::ThresholdsFilter
vtkExtractSelectedThresholds * ThresholdsFilter
Definition: vtkExtractSelectionLegacy.h:122
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkExtractSelectedFrustum
Returns the portion of the input dataset that lies within a selection frustum.
Definition: vtkExtractSelectedFrustum.h:52
vtkExtractSelectionLegacy::LocationsFilter
vtkExtractSelectedLocations * LocationsFilter
Definition: vtkExtractSelectionLegacy.h:120
vtkExtractSelectionLegacy::ShowBounds
vtkTypeBool ShowBounds
Definition: vtkExtractSelectionLegacy.h:126