VTK  9.3.20240417
vtkCompositeDataProbeFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
31 #ifndef vtkCompositeDataProbeFilter_h
32 #define vtkCompositeDataProbeFilter_h
33 
34 #include "vtkFiltersCoreModule.h" // For export macro
35 #include "vtkProbeFilter.h"
36 
37 #include <map> // For std::map
38 
39 VTK_ABI_NAMESPACE_BEGIN
41 class vtkDataSet;
43 template <typename T>
44 class vtkSmartPointer;
45 
46 class VTKFILTERSCORE_EXPORT vtkCompositeDataProbeFilter : public vtkProbeFilter
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
66  vtkSetMacro(PassPartialArrays, bool);
67  vtkGetMacro(PassPartialArrays, bool);
68  vtkBooleanMacro(PassPartialArrays, bool);
70 
77  const std::map<vtkDataSet*, vtkSmartPointer<vtkFindCellStrategy>>& map);
78 
80 
93  vtkSetMacro(UseImplicitArrays, bool);
94  vtkGetMacro(UseImplicitArrays, bool);
95  vtkBooleanMacro(UseImplicitArrays, bool);
97 
98 protected:
101 
107 
112 
116  void InitializeOutputArrays(vtkPointData* outPD, vtkIdType numPts) override;
117 
122 
127 
129 
130 private:
132  void operator=(const vtkCompositeDataProbeFilter&) = delete;
133 
134  std::map<vtkDataSet*, vtkSmartPointer<vtkFindCellStrategy>> StrategyMap;
135 
136  bool UseImplicitArrays = false;
137 };
138 
139 VTK_ABI_NAMESPACE_END
140 #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:166
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:69
helper class to manage the vtkPointSet::FindCell() METHOD
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
Definition: vtkPointData.h:140
sample data values at specified point locations
Hold a reference to a vtkObjectBase instance.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
int vtkIdType
Definition: vtkType.h:315