VTK  9.1.0
vtkCompositeDataProbeFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCompositeDataProbeFilter.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 =========================================================================*/
40 #ifndef vtkCompositeDataProbeFilter_h
41 #define vtkCompositeDataProbeFilter_h
42 
43 #include "vtkFiltersCoreModule.h" // For export macro
44 #include "vtkProbeFilter.h"
45 
46 #include <map> // For std::map
47 
49 class vtkDataSet;
51 template <typename T>
52 class vtkSmartPointer;
53 
54 class VTKFILTERSCORE_EXPORT vtkCompositeDataProbeFilter : public vtkProbeFilter
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
74  vtkSetMacro(PassPartialArrays, bool);
75  vtkGetMacro(PassPartialArrays, bool);
76  vtkBooleanMacro(PassPartialArrays, bool);
78 
85  const std::map<vtkDataSet*, vtkSmartPointer<vtkFindCellStrategy>>& map);
86 
87 protected:
90 
96 
101 
105  void InitializeOutputArrays(vtkPointData* outPD, vtkIdType numPts) override;
106 
111 
116 
118 
119 private:
121  void operator=(const vtkCompositeDataProbeFilter&) = delete;
122 
123  std::map<vtkDataSet*, vtkSmartPointer<vtkFindCellStrategy>> StrategyMap;
124 };
125 
126 #endif
subclass of vtkProbeFilter which supports composite datasets in the input.
vtkExecutive * CreateDefaultExecutive() override
Create a default executive.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkCompositeDataProbeFilter() override
static vtkCompositeDataProbeFilter * New()
void InitializeOutputArrays(vtkPointData *outPD, vtkIdType numPts) override
Initializes output and various arrays which keep track for probing status.
void SetFindCellStrategyMap(const std::map< vtkDataSet *, vtkSmartPointer< vtkFindCellStrategy >> &map)
Set the structure mapping a dataset belonging to the composite input to its FindCell strategy.
int FillInputPortInformation(int port, vtkInformation *info) override
Change input information to accept composite datasets as the input which is probed into.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Handle composite input.
int BuildFieldList(vtkCompositeDataSet *source)
Builds the field list using the composite dataset source.
abstract superclass for composite (multi-block or AMR) datasets
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:47
helper class to manage the vtkPointSet::FindCell() METHOD
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
Definition: vtkPointData.h:33
sample data values at specified point locations
Hold a reference to a vtkObjectBase instance.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
int vtkIdType
Definition: vtkType.h:332