vtkWeightedRedistributePolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkWeightedRedistributePolyData.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 (c) Los Alamos National Laboratory
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
19 
25 #ifndef vtkWeightedRedistributePolyData_h
26 #define vtkWeightedRedistributePolyData_h
27 
28 #include "vtkPVVTKExtensionsFiltersRenderingModule.h" // needed for export macro
30 
32 
33 //*******************************************************************
34 
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
46 
47  void SetWeights(int, int, float);
48 
49 protected:
52 
53  enum
54  {
55  NUM_LOC_CELLS_TAG = 70,
56 
57  SCHED_LEN_1_TAG = 300,
58  SCHED_LEN_2_TAG = 301,
59  SCHED_1_TAG = 310,
60  SCHED_2_TAG = 311
61  };
62 
63  virtual void MakeSchedule(vtkPolyData* input, vtkCommSched*) override;
64  float* Weights;
65 
66 private:
68  void operator=(const vtkWeightedRedistributePolyData&) = delete;
69 };
70 
71 //****************************************************************
72 
73 #endif
redistribute poly cells from other processes (special version to color according to processor) ...
#define VTKPVVTKEXTENSIONSFILTERSRENDERING_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void MakeSchedule(vtkPolyData *input, vtkCommSched *)
do weighted balance of cells on processors
static vtkRedistributePolyData * New()