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:
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.
96  unsigned int composite_index,
97  vtkDataObject* non_composite_input, vtkSelection* sel,
98  vtkInformation* outInfo);
99 
100  // Used for hierarchical input.
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.
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
vtkExtractSelection::RequestDataFromBlock
vtkDataObject * RequestDataFromBlock(vtkDataObject *input, vtkSelectionNode *sel, vtkInformation *outInfo)
vtkExtractSelectionBase.h
vtkExtractSelection::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkExtractSelection::RowsFilter
vtkExtractSelectedRows * RowsFilter
Definition: vtkExtractSelection.h:117
vtkSelectionNode
A node in a selection tree.
Definition: vtkSelectionNode.h:68
vtkExtractSelectedLocations
extract cells within a dataset that contain the locations listen in the vtkSelection.
Definition: vtkExtractSelectedLocations.h:39
vtkExtractSelectedBlock
Definition: vtkExtractSelectedBlock.h:27
vtkExtractSelection::vtkExtractSelection
vtkExtractSelection()
vtkExtractSelection::RequestDataInternal
vtkDataObject * RequestDataInternal(unsigned int composite_index, vtkDataObject *non_composite_input, vtkSelection *sel, vtkInformation *outInfo)
vtkExtractSelection::~vtkExtractSelection
~vtkExtractSelection()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkExtractSelection
extract a subset from a vtkDataSet.
Definition: vtkExtractSelection.h:51
vtkSelection
A node in a selection tree.
Definition: vtkSelection.h:44
vtkExtractSelection::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkExtractSelectedIds
extract a list of cells from a dataset
Definition: vtkExtractSelectedIds.h:41
vtkExtractSelectedThresholds
extract a cells or points from a dataset that have values within a set of thresholds.
Definition: vtkExtractSelectedThresholds.h:46
vtkExtractSelection::ThresholdsFilter
vtkExtractSelectedThresholds * ThresholdsFilter
Definition: vtkExtractSelection.h:118
vtkX3D::level
@ level
Definition: vtkX3D.h:395
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkExtractSelection::ProbeFilter
vtkProbeSelectedLocations * ProbeFilter
Definition: vtkExtractSelection.h:119
vtkExtractSelection::New
static vtkExtractSelection * New()
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:40
vtkExtractSelection::UseProbeForLocations
int UseProbeForLocations
Definition: vtkExtractSelection.h:121
vtkExtractSelection::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkExtractSelectionBase
abstract base class for all extract selection filters.
Definition: vtkExtractSelectionBase.h:31
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:35
vtkExtractSelection::ShowBounds
int ShowBounds
Definition: vtkExtractSelection.h:122
vtkExtractSelection::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkExtractSelectedRows
return selected rows of a table
Definition: vtkExtractSelectedRows.h:40
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkExtractSelection::LocationsFilter
vtkExtractSelectedLocations * LocationsFilter
Definition: vtkExtractSelection.h:116
vtkExtractSelectedFrustum
Returns the portion of the input dataset that lies within a selection frustum.
Definition: vtkExtractSelectedFrustum.h:53
vtkExtractSelection::RequestDataInternal
vtkDataObject * RequestDataInternal(unsigned int composite_index, unsigned int level, unsigned int index, vtkDataObject *non_composite_input, vtkSelection *sel, vtkInformation *outInfo)