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 "vtkCommonDataModelModule.h" // For export macro
35 #include "vtkObject.h"
36 #include <vector> // For C++ vector
37 
38 // Forward declarations
39 class vtkFieldData;
40 class vtkOverlappingAMR;
41 class vtkUniformGrid;
42 
44 {
45 public:
46  // Standard Routines
48  void PrintSelf(ostream& os, vtkIndent indent );
49 
51 
56  static void StripGhostLayers(
57  vtkOverlappingAMR *ghostedAMRData,
58  vtkOverlappingAMR *strippedAMRData);
60 
67 
69  static void BlankCells(vtkOverlappingAMR* amr);
70 
71 protected:
74 
76 
79  int realExtent[6],
80  vtkUniformGrid *ghostedGrid,
81  vtkUniformGrid *strippedGrid);
83 
85 
86  static void CopyFieldData(
87  vtkFieldData *target, vtkIdType targetIdx,
88  vtkFieldData *source, vtkIdType sourceIdx );
90 
92 
98  vtkUniformGrid* grid, int ghost[6]);
100 
101  static void BlankGridsAtLevel(vtkOverlappingAMR* amr, int levelIdx,
102  std::vector<std::vector<unsigned int> >& children,
103  const std::vector<int>& processMap);
104 private:
105  vtkAMRUtilities(const vtkAMRUtilities&); // Not implemented
106  void operator=(const vtkAMRUtilities&); // Not implemented
107 };
108 
109 #endif /* VTKAMRUTILITIES_H_ */
vtkAMRUtilities::StripGhostLayers
static void StripGhostLayers(vtkOverlappingAMR *ghostedAMRData, vtkOverlappingAMR *strippedAMRData)
vtkX3D::vector
@ vector
Definition: vtkX3D.h:237
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkUniformGrid
image data with blanking
Definition: vtkUniformGrid.h:40
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkAMRUtilities
Definition: vtkAMRUtilities.h:44
vtkFieldData
represent and manipulate fields of data
Definition: vtkFieldData.h:56
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:821
vtkAMRUtilities::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkAMRUtilities::~vtkAMRUtilities
~vtkAMRUtilities()
Definition: vtkAMRUtilities.h:73
vtkAMRUtilities::BlankCells
static void BlankCells(vtkOverlappingAMR *amr)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkAMRUtilities::vtkAMRUtilities
vtkAMRUtilities()
Definition: vtkAMRUtilities.h:72
vtkOverlappingAMR
hierarchical dataset of vtkUniformGrids
Definition: vtkOverlappingAMR.h:46
vtkObject.h
vtkAMRUtilities::StripGhostLayersFromGrid
static vtkUniformGrid * StripGhostLayersFromGrid(vtkUniformGrid *grid, int ghost[6])
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
target
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:828
vtkAMRUtilities::CopyFieldData
static void CopyFieldData(vtkFieldData *target, vtkIdType targetIdx, vtkFieldData *source, vtkIdType sourceIdx)
vtkAMRUtilities::CopyFieldsWithinRealExtent
static void CopyFieldsWithinRealExtent(int realExtent[6], vtkUniformGrid *ghostedGrid, vtkUniformGrid *strippedGrid)
vtkAMRUtilities::HasPartiallyOverlappingGhostCells
static bool HasPartiallyOverlappingGhostCells(vtkOverlappingAMR *amr)
vtkAMRUtilities::BlankGridsAtLevel
static void BlankGridsAtLevel(vtkOverlappingAMR *amr, int levelIdx, std::vector< std::vector< unsigned int > > &children, const std::vector< int > &processMap)