VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkAMRUtilities Class Reference

#include <vtkAMRUtilities.h>

Inherits vtkObject.

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkAMRUtilitiesNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkAMRUtilitiesSafeDownCast (vtkObjectBase *o)
 
static bool HasPartiallyOverlappingGhostCells (vtkOverlappingAMR *amr)
 
static void DistributeProcessInformation (vtkOverlappingAMR *amr, vtkMultiProcessController *myController, std::vector< int > &ProcessMap)
 
static void BlankCells (vtkOverlappingAMR *amr, vtkMultiProcessController *myController)
 
static void StripGhostLayers (vtkOverlappingAMR *ghostedAMRData, vtkOverlappingAMR *strippedAMRData, vtkMultiProcessController *myController=NULL)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkAMRUtilities ()
 
 ~vtkAMRUtilities ()
 

Static Protected Member Functions

static void CopyFieldsWithinRealExtent (int realExtent[6], vtkUniformGrid *ghostedGrid, vtkUniformGrid *strippedGrid)
 
static void CopyFieldData (vtkFieldData *target, vtkIdType targetIdx, vtkFieldData *source, vtkIdType sourceIdx)
 
static vtkUniformGrid * StripGhostLayersFromGrid (vtkUniformGrid *grid, int ghost[6])
 

Detailed Description

A concrete instance of vtkObject that employs a singleton design pattern and implements functionality for AMR specific operations.

See Also
vtkOverlappingAMR, vtkAMRBox
Examples:
vtkAMRUtilities (Examples)
Tests:
vtkAMRUtilities (Tests)

Definition at line 47 of file vtkAMRUtilities.h.

Member Typedef Documentation

typedef vtkObject vtkAMRUtilities::Superclass

Definition at line 51 of file vtkAMRUtilities.h.

Constructor & Destructor Documentation

vtkAMRUtilities::vtkAMRUtilities ( )
inlineprotected

Definition at line 80 of file vtkAMRUtilities.h.

vtkAMRUtilities::~vtkAMRUtilities ( )
inlineprotected

Definition at line 81 of file vtkAMRUtilities.h.

Member Function Documentation

static int vtkAMRUtilities::IsTypeOf ( const char *  type)
static
virtual int vtkAMRUtilities::IsA ( const char *  type)
virtual
static vtkAMRUtilities* vtkAMRUtilities::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkAMRUtilities::NewInstanceInternal ( ) const
protectedvirtual
vtkAMRUtilities* vtkAMRUtilities::NewInstance ( ) const
void vtkAMRUtilities::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
static void vtkAMRUtilities::StripGhostLayers ( vtkOverlappingAMR *  ghostedAMRData,
vtkOverlappingAMR *  strippedAMRData,
vtkMultiProcessController *  myController = NULL 
)
static

This method detects and strips partially overlapping cells from a given AMR dataset. If ghost layers are detected, they are removed and new grid instances are created to represent the stripped data-set otherwise, each block is shallow-copied. .SECTION Assumptions 1) The ghosted AMR data must have complete metadata information.

static bool vtkAMRUtilities::HasPartiallyOverlappingGhostCells ( vtkOverlappingAMR *  amr)
static

A quick test of whether partially overlapping ghost cells exist. This test starts from the highest-res boxes and checks if they have partially overlapping cells. The code returns with true once partially overlapping cells are detected. Otherwise, false is returned.

static void vtkAMRUtilities::DistributeProcessInformation ( vtkOverlappingAMR *  amr,
vtkMultiProcessController *  myController,
std::vector< int > &  ProcessMap 
)
static

Compute map from block indices to process ids

static void vtkAMRUtilities::BlankCells ( vtkOverlappingAMR *  amr,
vtkMultiProcessController *  myController 
)
static

Blank cells in overlapping AMR

static void vtkAMRUtilities::CopyFieldsWithinRealExtent ( int  realExtent[6],
vtkUniformGrid *  ghostedGrid,
vtkUniformGrid *  strippedGrid 
)
staticprotected

Given the real-extent w.r.t. the ghosted grid, this method copies the field data (point/cell) data on the stripped grid.

static void vtkAMRUtilities::CopyFieldData ( vtkFieldData *  target,
vtkIdType  targetIdx,
vtkFieldData *  source,
vtkIdType  sourceIdx 
)
staticprotected

Copies the fields from the given source to the given target.

static vtkUniformGrid* vtkAMRUtilities::StripGhostLayersFromGrid ( vtkUniformGrid *  grid,
int  ghost[6] 
)
staticprotected

Strips ghost layers from the given grid according to the given ghost vector which encodes the number of cells to remote from each of the 6 sides {imin,imax,jmin,jmax,kmin,kmax}. For example, a ghost vector of {0,2,0,2,0,0} would indicate that there exist 2 ghost cells on the imax and jmax side.


The documentation for this class was generated from the following file: