VTK  9.3.20240425
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
39VTK_ABI_NAMESPACE_BEGIN
41class vtkDataSet;
43template <typename T>
44class vtkSmartPointer;
45
46class VTKFILTERSCORE_EXPORT vtkCompositeDataProbeFilter : public vtkProbeFilter
47{
48public:
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
54
66 vtkSetMacro(PassPartialArrays, bool);
67 vtkGetMacro(PassPartialArrays, bool);
68 vtkBooleanMacro(PassPartialArrays, bool);
70
78
80
93 vtkSetMacro(UseImplicitArrays, bool);
94 vtkGetMacro(UseImplicitArrays, bool);
95 vtkBooleanMacro(UseImplicitArrays, bool);
97
98protected:
101
106 int FillInputPortInformation(int port, vtkInformation* info) override;
107
112
116 void InitializeOutputArrays(vtkPointData* outPD, vtkIdType numPts) override;
117
122
127
129
130private:
132 void operator=(const vtkCompositeDataProbeFilter&) = delete;
133
134 std::map<vtkDataSet*, vtkSmartPointer<vtkFindCellStrategy>> StrategyMap;
135
136 bool UseImplicitArrays = false;
137};
138
139VTK_ABI_NAMESPACE_END
140#endif
subclass of vtkProbeFilter which supports composite datasets in the input.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkCompositeDataProbeFilter() override
void InitializeOutputArrays(vtkPointData *outPD, vtkIdType numPts) override
Initializes output and various arrays which keep track for probing status.
static vtkCompositeDataProbeFilter * New()
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.
vtkExecutive * CreateDefaultExecutive() override
Create a default executive.
void SetFindCellStrategyMap(const std::map< vtkDataSet *, vtkSmartPointer< vtkFindCellStrategy > > &map)
Set the structure mapping a dataset belonging to the composite input to its FindCell strategy.
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.
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
sample data values at specified point locations
Hold a reference to a vtkObjectBase instance.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
int vtkIdType
Definition vtkType.h:315