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  -------------------------------------------------------------------------*/
43 #ifndef vtkPOrderStatistics_h
44 #define vtkPOrderStatistics_h
45 
46 #include "vtkFiltersParallelStatisticsModule.h" // For export macro
47 #include "vtkOrderStatistics.h"
48 
49 #include <map> // STL Header
50 
51 class vtkIdTypeArray;
54 
55 class VTKFILTERSPARALLELSTATISTICS_EXPORT vtkPOrderStatistics : public vtkOrderStatistics
56 {
57  public:
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
68  vtkGetObjectMacro(Controller, vtkMultiProcessController);
70 
74  void Learn( vtkTable*,
75  vtkTable*,
76  vtkMultiBlockDataSet* ) override;
77 
78  protected:
81 
86  vtkDataArray* );
87 
92  vtkIdType&,
93  char*,
94  std::map<vtkStdString,vtkIdType>& );
95 
99  bool Broadcast( std::map<vtkStdString,vtkIdType>&,
102  vtkIdType );
103 
105  private:
106  vtkPOrderStatistics(const vtkPOrderStatistics&) = delete;
107  void operator=(const vtkPOrderStatistics&) = delete;
108 };
109 
110 #endif
vtkPOrderStatistics::New
static vtkPOrderStatistics * New()
vtkPOrderStatistics
A class for parallel univariate order statistics.
Definition: vtkPOrderStatistics.h:56
vtkPOrderStatistics::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOrderStatistics.h
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:69
vtkPOrderStatistics::Reduce
bool Reduce(vtkIdTypeArray *, vtkIdType &, char *, std::map< vtkStdString, vtkIdType > &)
Reduce the collection of local histograms to the global one for string inputs.
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkOrderStatistics
A class for univariate order statistics.
Definition: vtkOrderStatistics.h:61
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:52
vtkPOrderStatistics::Controller
vtkMultiProcessController * Controller
Definition: vtkPOrderStatistics.h:104
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:83
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkPOrderStatistics::Learn
void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *) override
Execute the parallel calculations required by the Learn option.
vtkPOrderStatistics::~vtkPOrderStatistics
~vtkPOrderStatistics() override
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:42
vtkPOrderStatistics::Broadcast
bool Broadcast(std::map< vtkStdString, vtkIdType > &, vtkIdTypeArray *, vtkStringArray *, vtkIdType)
Broadcast reduced histogram to all processes in the case of string inputs.
vtkPOrderStatistics::Reduce
bool Reduce(vtkIdTypeArray *, vtkDataArray *)
Reduce the collection of local histograms to the global one for data inputs.
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:43
vtkPOrderStatistics::vtkPOrderStatistics
vtkPOrderStatistics()
vtkPOrderStatistics::SetController
virtual void SetController(vtkMultiProcessController *)
Get/Set the multiprocess controller.