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
vtkExtractSelectionBase::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkExtractSelectionBase.h
vtkExtractSelection::RowsFilter
vtkExtractSelectedRows * RowsFilter
Definition: vtkExtractSelection.h:117
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
Definition: vtkExtractSelectedBlock.h:26
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkExtractSelection
extract a subset from a vtkDataSet.
Definition: vtkExtractSelection.h:50
vtkSelection
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:43
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
vtkExtractSelection::ThresholdsFilter
vtkExtractSelectedThresholds * ThresholdsFilter
Definition: vtkExtractSelection.h:118
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.
vtkExtractSelection::ProbeFilter
vtkProbeSelectedLocations * ProbeFilter
Definition: vtkExtractSelection.h:119
vtkExtractSelection::BlockFilter
vtkExtractSelectedBlock * BlockFilter
Definition: vtkExtractSelection.h:113
vtkExtractSelection::IdsFilter
vtkExtractSelectedIds * IdsFilter
Definition: vtkExtractSelection.h:115
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkExtractSelection::UseProbeForLocations
int UseProbeForLocations
Definition: vtkExtractSelection.h:121
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
Definition: vtkX3D.h:376
vtkExtractSelectionBase
abstract base class for all extract selection filters.
Definition: vtkExtractSelectionBase.h:30
vtkExtractSelection::FrustumFilter
vtkExtractSelectedFrustum * FrustumFilter
Definition: vtkExtractSelection.h:114
vtkProbeSelectedLocations
similar to vtkExtractSelectedLocations except that it interpolates the point attributes at the probe ...
Definition: vtkProbeSelectedLocations.h:34
vtkDataObjectAlgorithm::New
static vtkDataObjectAlgorithm * New()
vtkExtractSelection::ShowBounds
int ShowBounds
Definition: vtkExtractSelection.h:122
vtkDataObjectAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Definition: vtkDataObjectAlgorithm.h:122
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkExtractSelectedRows
return selected rows of a table
Definition: vtkExtractSelectedRows.h:39
vtkX3D::index
Definition: vtkX3D.h:246
vtkExtractSelection::LocationsFilter
vtkExtractSelectedLocations * LocationsFilter
Definition: vtkExtractSelection.h:116
vtkExtractSelectionBase::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractSelectedFrustum
Returns the portion of the input dataset that lies within a selection frustum.
Definition: vtkExtractSelectedFrustum.h:52