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 =========================================================================*/
37 #ifndef __vtkPOrderStatistics_h
38 #define __vtkPOrderStatistics_h
39 
40 #include "vtkOrderStatistics.h"
41 
42 //BTX
43 #include <vtkstd/vector> // STL Header
44 //ETX
45 
48 
50 {
51  public:
52  static vtkPOrderStatistics* New();
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
59  virtual void SetController(vtkMultiProcessController*);
60  vtkGetObjectMacro(Controller, vtkMultiProcessController);
62 
64 
65  virtual void Learn( vtkTable* inData,
66  vtkTable* inParameters,
67  vtkMultiBlockDataSet* outMeta );
69 
70  protected:
73 
74 //BTX
76 
79  bool Pack( vtkTable* orderTab,
80  vtkStdString& xPacked,
81  vtkstd::vector<vtkIdType>& kcValues );
83 
85 
86  bool Reduce( vtkIdType& xSizeTotal,
87  char* xPacked_g,
88  vtkStdString& xPacked_l,
89  vtkIdType& kcSizeTotal,
90  vtkIdType* kcValues_g,
91  vtkstd::vector<vtkIdType>& kcValues_l );
93 
95 
96  bool Broadcast( vtkIdType xSizeTotal,
97  vtkStdString& xPacked,
98  vtkstd::vector<vtkStdString>& xValues,
99  vtkIdType kcSizeTotal,
100  vtkstd::vector<vtkIdType>& kcValues,
101  vtkIdType reduceProc );
102 //ETX
104 
106  private:
107  vtkPOrderStatistics(const vtkPOrderStatistics&); // Not implemented.
108  void operator=(const vtkPOrderStatistics&); // Not implemented.
109 };
110 
111 #endif
Wrapper around vtkstd::string to keep symbols short.
Definition: vtkStdString.h:45
virtual void Learn(vtkTable *inData, vtkTable *inParameters, vtkMultiBlockDataSet *outMeta)
A class for univariate order statistics.
vtkMultiProcessController * Controller
int vtkIdType
Definition: vtkType.h:255
static vtkOrderStatistics * New()
a simple class to control print indentation
Definition: vtkIndent.h:37
A class for parallel univariate order statistics.
void PrintSelf(ostream &os, vtkIndent indent)
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:66
#define VTK_INFOVIS_EXPORT
Composite dataset that organizes datasets into blocks.
Multiprocessing communication superclass.