VTK
vtkPUnstructuredGridGhostCellsGenerator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPUnstructuredGridGhostCellsGenerator.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 
81 #ifndef vtkPUnstructuredGridGhostCellsGenerator_h
82 #define vtkPUnstructuredGridGhostCellsGenerator_h
83 
84 #include "vtkFiltersParallelGeometryModule.h" // For export macro
86 #include <vector> // For passing data between methods
87 
89 
90 class VTKFILTERSPARALLELGEOMETRY_EXPORT vtkPUnstructuredGridGhostCellsGenerator:
92 {
94 
95 public:
96  void PrintSelf(ostream& os, vtkIndent indent) override;
97 
99 
101 
104  void SetController(vtkMultiProcessController *c);
105  vtkGetObjectMacro(Controller, vtkMultiProcessController);
107 
108 protected:
111 
113  vtkInformationVector *) override;
114 
115  void GetFirstGhostLayer(int, vtkUnstructuredGrid *);
116 
117  void ExchangeBoundsAndDetermineNeighbors(std::vector<double>&);
118  void ExtractAndReduceSurfacePointsShareData(std::vector<double>&);
119  void ComputeSharedPoints();
120 
121  void ExtractAndSendGhostCells(vtkUnstructuredGridBase *);
122 
123  void ReceiveAndMergeGhostCells(int, int, vtkUnstructuredGridBase *,
125 
126  void AddGhostLayer(int ghostLevel, int maxGhostLevel);
127 
128  void FindGhostCells();
129 
130  void AddGlobalCellIds();
131 
132  void RemoveGlobalCellIds();
133 
135 
136 private:
137  struct vtkInternals;
138  vtkInternals *Internals;
139 
141  void operator=(const vtkPUnstructuredGridGhostCellsGenerator&) = delete;
142 };
143 
144 #endif
vtkUnstructuredGridGhostCellsGenerator
Builds ghost cells for a distributed unstructured grid dataset.
Definition: vtkUnstructuredGridGhostCellsGenerator.h:42
vtkPUnstructuredGridGhostCellsGenerator
Builds ghost cells for a distributed unstructured grid dataset.
Definition: vtkPUnstructuredGridGhostCellsGenerator.h:90
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkUnstructuredGridBase
dataset represents arbitrary combinations of all possible cell types. May be mapped onto a non-standa...
Definition: vtkUnstructuredGridBase.h:37
vtkUnstructuredGridGhostCellsGenerator::New
static vtkUnstructuredGridGhostCellsGenerator * New()
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:82
vtkUnstructuredGridGhostCellsGenerator::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnstructuredGridGhostCellsGenerator.h
vtkUnstructuredGridGhostCellsGenerator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkPUnstructuredGridGhostCellsGenerator::Controller
vtkMultiProcessController * Controller
Definition: vtkPUnstructuredGridGhostCellsGenerator.h:134
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:87