VTK  9.2.20230327
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 =========================================================================*/
43 #ifndef vtkCompositeDataProbeFilter_h
44 #define vtkCompositeDataProbeFilter_h
45 
46 #include "vtkFiltersCoreModule.h" // For export macro
47 #include "vtkProbeFilter.h"
48 
49 #include <map> // For std::map
50 
51 VTK_ABI_NAMESPACE_BEGIN
53 class vtkDataSet;
55 template <typename T>
56 class vtkSmartPointer;
57 
58 class VTKFILTERSCORE_EXPORT vtkCompositeDataProbeFilter : public vtkProbeFilter
59 {
60 public:
63  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
66 
78  vtkSetMacro(PassPartialArrays, bool);
79  vtkGetMacro(PassPartialArrays, bool);
80  vtkBooleanMacro(PassPartialArrays, bool);
82 
89  const std::map<vtkDataSet*, vtkSmartPointer<vtkFindCellStrategy>>& map);
90 
91 protected:
94 
100 
105 
109  void InitializeOutputArrays(vtkPointData* outPD, vtkIdType numPts) override;
110 
115 
120 
122 
123 private:
125  void operator=(const vtkCompositeDataProbeFilter&) = delete;
126 
127  std::map<vtkDataSet*, vtkSmartPointer<vtkFindCellStrategy>> StrategyMap;
128 };
129 
130 VTK_ABI_NAMESPACE_END
131 #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:174
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:80
helper class to manage the vtkPointSet::FindCell() METHOD
a simple class to control print indentation
Definition: vtkIndent.h:120
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
Definition: vtkPointData.h:151
sample data values at specified point locations
Hold a reference to a vtkObjectBase instance.
@ info
Definition: vtkX3D.h:388
@ port
Definition: vtkX3D.h:459
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
int vtkIdType
Definition: vtkType.h:327