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 
76 #ifndef vtkPUnstructuredGridGhostCellsGenerator_h
77 #define vtkPUnstructuredGridGhostCellsGenerator_h
78 
79 #include "vtkFiltersParallelGeometryModule.h" // For export macro
81 
85 
86 class VTKFILTERSPARALLELGEOMETRY_EXPORT vtkPUnstructuredGridGhostCellsGenerator:
88 {
90 
91 public:
92  void PrintSelf(ostream& os, vtkIndent indent);
93 
95 
97 
101  vtkGetObjectMacro(Controller, vtkMultiProcessController);
103 
105 
109  vtkSetMacro(UseGlobalPointIds, bool);
110  vtkGetMacro(UseGlobalPointIds, bool);
111  vtkBooleanMacro(UseGlobalPointIds, bool);
113 
115 
119  vtkSetStringMacro(GlobalPointIdsArrayName);
120  vtkGetStringMacro(GlobalPointIdsArrayName);
122 
124 
132  vtkSetMacro(HasGlobalCellIds, bool);
133  vtkGetMacro(HasGlobalCellIds, bool);
134  vtkBooleanMacro(HasGlobalCellIds, bool);
136 
138 
142  vtkSetStringMacro(GlobalCellIdsArrayName);
143  vtkGetStringMacro(GlobalCellIdsArrayName);
145 
147 
153  vtkSetMacro(BuildIfRequired, bool);
154  vtkGetMacro(BuildIfRequired, bool);
155  vtkBooleanMacro(BuildIfRequired, bool);
157 
159 
166  vtkSetClampMacro(MinimumNumberOfGhostLevels, int, 1, VTK_INT_MAX);
167  vtkGetMacro(MinimumNumberOfGhostLevels, int);
169 
170 protected:
173 
176 
178 
180 
182 
184 
187 
188  void AddGhostLayer(int ghostLevel, int maxGhostLevel);
189 
191 
193 
195 
196 
198 
199  int NumRanks;
200  int RankId;
207 
208 private:
209  struct vtkInternals;
210  vtkInternals *Internals;
211 
213  void operator=(const vtkPUnstructuredGridGhostCellsGenerator&) VTK_DELETE_FUNCTION;
214 };
215 
216 #endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.
Builds ghost cells for a distributed unstructured grid dataset.
void ExtractAndSendGhostCells(vtkUnstructuredGridBase *)
void SetController(vtkMultiProcessController *c)
Set/Get the MPI multi process controller object.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static vtkPUnstructuredGridGhostCellsGenerator * New()
void AddGhostLayer(int ghostLevel, int maxGhostLevel)
void ReceiveAndMergeGhostCells(int, vtkUnstructuredGridBase *, vtkUnstructuredGrid *)
void GetFirstGhostLayer(int, vtkUnstructuredGrid *)
Superclass for algorithms that produce only unstructured grid as output.
dataset represents arbitrary combinations of all possible cell types.
dataset represents arbitrary combinations of all possible cell types
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
#define VTK_INT_MAX
Definition: vtkType.h:153