VTK
vtkPOrderStatistics.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkPOrderStatistics.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2011 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19  -------------------------------------------------------------------------*/
40 #ifndef vtkPOrderStatistics_h
41 #define vtkPOrderStatistics_h
42 
43 #include "vtkFiltersParallelStatisticsModule.h" // For export macro
44 #include "vtkOrderStatistics.h"
45 
46 #include <map> // STL Header
47 
48 class vtkIdTypeArray;
51 
52 class VTKFILTERSPARALLELSTATISTICS_EXPORT vtkPOrderStatistics : public vtkOrderStatistics
53 {
54  public:
55  static vtkPOrderStatistics* New();
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
64  virtual void SetController(vtkMultiProcessController*);
65  vtkGetObjectMacro(Controller, vtkMultiProcessController);
67 
71  void Learn( vtkTable*,
72  vtkTable*,
73  vtkMultiBlockDataSet* ) override;
74 
75  protected:
77  ~vtkPOrderStatistics() override;
78 
82  bool Reduce( vtkIdTypeArray*,
83  vtkDataArray* );
84 
88  bool Reduce( vtkIdTypeArray*,
89  vtkIdType&,
90  char*,
91  std::map<vtkStdString,vtkIdType>& );
92 
96  bool Broadcast( std::map<vtkStdString,vtkIdType>&,
99  vtkIdType );
100 
102  private:
103  vtkPOrderStatistics(const vtkPOrderStatistics&) = delete;
104  void operator=(const vtkPOrderStatistics&) = delete;
105 };
106 
107 #endif
vtkPOrderStatistics
A class for parallel univariate order statistics.
Definition: vtkPOrderStatistics.h:52
vtkOrderStatistics.h
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
vtkOrderStatistics::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOrderStatistics::New
static vtkOrderStatistics * New()
vtkOrderStatistics
A class for univariate order statistics.
Definition: vtkOrderStatistics.h:54
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:45
vtkPOrderStatistics::Controller
vtkMultiProcessController * Controller
Definition: vtkPOrderStatistics.h:101
vtkOrderStatistics::Learn
void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *) override
Execute the calculations required by the Learn option.
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:76
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:35
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:36