VTK  9.4.20250126
vtkPOrderStatistics.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2011 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
27#ifndef vtkPOrderStatistics_h
28#define vtkPOrderStatistics_h
29
30#include "vtkFiltersParallelStatisticsModule.h" // For export macro
31#include "vtkOrderStatistics.h"
32
33#include <map> // STL Header
34
35VTK_ABI_NAMESPACE_BEGIN
36class vtkIdTypeArray;
39
40class VTKFILTERSPARALLELSTATISTICS_EXPORT vtkPOrderStatistics : public vtkOrderStatistics
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
53 vtkGetObjectMacro(Controller, vtkMultiProcessController);
55
60
61protected:
64
69
73 bool Reduce(vtkIdTypeArray*, vtkIdType&, char*, std::map<vtkStdString, vtkIdType>&);
74
78 bool Broadcast(std::map<vtkStdString, vtkIdType>&, vtkIdTypeArray*, vtkStringArray*, vtkIdType);
79
81
82private:
84 void operator=(const vtkPOrderStatistics&) = delete;
85};
86
87VTK_ABI_NAMESPACE_END
88#endif
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:108
Composite dataset that organizes datasets into blocks.
Multiprocessing communication superclass.
A class for univariate order statistics.
A class for parallel univariate order statistics.
bool Reduce(vtkIdTypeArray *, vtkDataArray *)
Reduce the collection of local histograms to the global one for data inputs.
static vtkPOrderStatistics * New()
~vtkPOrderStatistics() override
void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *) override
Execute the parallel calculations required by the Learn option.
virtual void SetController(vtkMultiProcessController *)
Get/Set the multiprocess controller.
bool Reduce(vtkIdTypeArray *, vtkIdType &, char *, std::map< vtkStdString, vtkIdType > &)
Reduce the collection of local histograms to the global one for string inputs.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool Broadcast(std::map< vtkStdString, vtkIdType > &, vtkIdTypeArray *, vtkStringArray *, vtkIdType)
Broadcast reduced histogram to all processes in the case of string inputs.
vtkMultiProcessController * Controller
a vtkAbstractArray subclass for strings
A table, which contains similar-typed columns of data.
Definition vtkTable.h:169
int vtkIdType
Definition vtkType.h:315