VTK
vtkAMRUtilities.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAMRUtilities.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  =========================================================================*/
31 #ifndef VTKAMRUTILITIES_H_
32 #define VTKAMRUTILITIES_H_
33 
34 #include "vtkFiltersAMRModule.h" // For export macro
35 #include "vtkObject.h"
36 #include <vector> // For C++ vector
37 
38 // Forward declarations
39 class vtkAMRBox;
40 class vtkFieldData;
42 class vtkOverlappingAMR;
43 class vtkUniformGridAMR;
44 class vtkUniformGrid;
45 class vtkAMRInformation;
46 
48 {
49 public:
50  // Standard Routines
52  void PrintSelf(ostream& os, vtkIndent indent );
53 
55 
60  static void StripGhostLayers(
61  vtkOverlappingAMR *ghostedAMRData,
62  vtkOverlappingAMR *strippedAMRData,
63  vtkMultiProcessController *myController=NULL);
65 
71  static bool HasPartiallyOverlappingGhostCells(vtkOverlappingAMR *amr);
72 
74  static void DistributeProcessInformation(vtkOverlappingAMR* amr, vtkMultiProcessController *myController, std::vector<int>& ProcessMap);
75 
77  static void BlankCells(vtkOverlappingAMR* amr, vtkMultiProcessController *myController);
78 
79 protected:
82 
84 
86  static void CopyFieldsWithinRealExtent(
87  int realExtent[6],
88  vtkUniformGrid *ghostedGrid,
89  vtkUniformGrid *strippedGrid);
91 
93 
94  static void CopyFieldData(
95  vtkFieldData *target, vtkIdType targetIdx,
96  vtkFieldData *source, vtkIdType sourceIdx );
98 
100 
105  static vtkUniformGrid* StripGhostLayersFromGrid(
106  vtkUniformGrid* grid, int ghost[6]);
108 
109 private:
110  vtkAMRUtilities(const vtkAMRUtilities&); // Not implemented
111  void operator=(const vtkAMRUtilities&); // Not implemented
112 };
113 
114 #endif /* VTKAMRUTILITIES_H_ */
abstract base class for most VTK objects
Definition: vtkObject.h:61
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Encloses a rectangular region of voxel like cells.
Definition: vtkAMRBox.h:38
#define VTKFILTERSAMR_EXPORT
int vtkIdType
Definition: vtkType.h:268
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
virtual void PrintSelf(ostream &os, vtkIndent indent)
Meta data that describes the structure of an AMR data set.
a simple class to control print indentation
Definition: vtkIndent.h:38
image data with blanking
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
hierarchical dataset of vtkUniformGrids
represent and manipulate fields of data
Definition: vtkFieldData.h:55
Multiprocessing communication superclass.