VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkAbstractGridConnectivity Class Reference

#include <vtkAbstractGridConnectivity.h>

Inheritance diagram for vtkAbstractGridConnectivity:
Inheritance graph
[legend]
Collaboration diagram for vtkAbstractGridConnectivity:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkAbstractGridConnectivityNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetNumberOfGrids (const unsigned int N)=0
unsigned int GetNumberOfGrids ()
virtual void ComputeNeighbors ()=0
virtual void CreateGhostLayers (const int N=1)=0
vtkUnsignedCharArrayGetGhostedPointGhostArray (const int gridID)
vtkUnsignedCharArrayGetGhostedCellGhostArray (const int gridID)
vtkPointDataGetGhostedGridPointData (const int gridID)
vtkCellDataGetGhostedGridCellData (const int gridID)
vtkPointsGetGhostedPoints (const int gridID)
virtual void SetNumberOfGhostLayers (unsigned int)
virtual unsigned int GetNumberOfGhostLayers ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static
vtkAbstractGridConnectivity
SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkAbstractGridConnectivity ()
virtual ~vtkAbstractGridConnectivity ()
void RegisterGridNodes (const int gridID, vtkPoints *nodes)
virtual void FillGhostArrays (const int gridId, vtkUnsignedCharArray *nodesArray, vtkUnsignedCharArray *cellsArray)=0
void RegisterGridGhostArrays (const int gridID, vtkUnsignedCharArray *nodesArray, vtkUnsignedCharArray *cellsArray)
void RegisterFieldData (const int gridID, vtkPointData *PointData, vtkCellData *CellData)
void AllocateUserRegisterDataStructures ()
void DeAllocateUserRegisterDataStructures ()
void AllocateInternalDataStructures ()
void DeAllocateInternalDataStructures ()

Protected Attributes

unsigned int NumberOfGrids
unsigned int NumberOfGhostLayers
std::vector
< vtkUnsignedCharArray * > 
GridPointGhostArrays
std::vector
< vtkUnsignedCharArray * > 
GridCellGhostArrays
std::vector< vtkPointData * > GridPointData
std::vector< vtkCellData * > GridCellData
std::vector< vtkPoints * > GridPoints
bool AllocatedGhostDataStructures
std::vector< vtkPointData * > GhostedGridPointData
std::vector< vtkCellData * > GhostedGridCellData
std::vector
< vtkUnsignedCharArray * > 
GhostedPointGhostArray
std::vector
< vtkUnsignedCharArray * > 
GhostedCellGhostArray
std::vector< vtkPoints * > GhostedGridPoints

Detailed Description

A superclass that defines the interface to be implemented by all concrete grid connectivity classes. Grid connectivity classes provide the mechanism to achieve the following:

See also:
vtkStructuredGridConnectivity vtkStructuredAMRGridConnectivity

Definition at line 62 of file vtkAbstractGridConnectivity.h.


Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

static int vtkAbstractGridConnectivity::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented in vtkStructuredGridConnectivity, vtkPStructuredGridConnectivity, and vtkStructuredAMRGridConnectivity.

virtual int vtkAbstractGridConnectivity::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented in vtkStructuredGridConnectivity, vtkPStructuredGridConnectivity, and vtkStructuredAMRGridConnectivity.

virtual vtkObjectBase* vtkAbstractGridConnectivity::NewInstanceInternal ( ) const [protected, virtual]
void vtkAbstractGridConnectivity::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

Reimplemented in vtkStructuredGridConnectivity, vtkPStructuredGridConnectivity, and vtkStructuredAMRGridConnectivity.

virtual void vtkAbstractGridConnectivity::SetNumberOfGhostLayers ( unsigned  int) [virtual]

Set/Get the number of ghost layers

Set/Get the number of ghost layers

virtual void vtkAbstractGridConnectivity::SetNumberOfGrids ( const unsigned int  N) [pure virtual]

Sets the total number of grids in the domain. Note: This method is implemented by concrete classes. NOTE: Concrete classes implementing this pure virtual method must set the number of grids and call AllocateUserRegisterDataStructures in addition to defining any other additional functionality.

Implemented in vtkStructuredAMRGridConnectivity, vtkStructuredGridConnectivity, and vtkPStructuredGridConnectivity.

Returns the total number of grids.

Definition at line 82 of file vtkAbstractGridConnectivity.h.

virtual void vtkAbstractGridConnectivity::ComputeNeighbors ( ) [pure virtual]

Computes the grid neighboring topology for the domain

Implemented in vtkStructuredGridConnectivity, vtkPStructuredGridConnectivity, and vtkStructuredAMRGridConnectivity.

virtual void vtkAbstractGridConnectivity::CreateGhostLayers ( const int  N = 1) [pure virtual]

Creates N layers of ghost layers where N is the number of cells that will be added to each grid. If no parameter is supplied, N has a nominal value of 1, in which case 1 layer of cells would be added. NOTE: This method is implemented by concrete implementations

Implemented in vtkStructuredGridConnectivity, vtkPStructuredGridConnectivity, and vtkStructuredAMRGridConnectivity.

Returns the ghosted points ghost array for the grid associated with the given grid ID. The return pointer is a shallow-copy of the internal data-structure. The pointer may be NULL iff there is no ghosted points ghost array for the requested grid.

Definition at line 195 of file vtkAbstractGridConnectivity.h.

Returns the ghosted cells ghost array for the grid associated with the given grid ID. The return pointer is a shallow-copy of the internal data-structure. The pointer may be NULL iff there is no ghosted cells ghost array for the requested grid.

Definition at line 213 of file vtkAbstractGridConnectivity.h.

Returns the ghosted grid point data for the grid associated with the given grid ID. The return pointer is a shallow-copy of the internal data-structure. The pointer may be NULL iff there is no ghosted point data for the requested grid.

Definition at line 230 of file vtkAbstractGridConnectivity.h.

Returns the ghosted grid cell data for the grid associated with the given grid ID. The return pointer is a shallow-copy of the internal data-structure. The pointer may be NULL iff there is no ghosted cell data for the requested grid.

Definition at line 247 of file vtkAbstractGridConnectivity.h.

Returns the ghosted grid points for the grid associated with the given grid ID. The return pointer is a shallow-copy of the internal data structure. The pointer may be NULL iff there are no ghosted points created for the requested grid.

Definition at line 264 of file vtkAbstractGridConnectivity.h.

virtual void vtkAbstractGridConnectivity::FillGhostArrays ( const int  gridId,
vtkUnsignedCharArray nodesArray,
vtkUnsignedCharArray cellsArray 
) [protected, pure virtual]

Fills the ghost arrays for the given grid.

Implemented in vtkStructuredAMRGridConnectivity, and vtkStructuredGridConnectivity.

void vtkAbstractGridConnectivity::RegisterGridGhostArrays ( const int  gridID,
vtkUnsignedCharArray nodesArray,
vtkUnsignedCharArray cellsArray 
) [inline, protected]

Registers the ghostarrays for the given grid.

Definition at line 411 of file vtkAbstractGridConnectivity.h.

void vtkAbstractGridConnectivity::RegisterFieldData ( const int  gridID,
vtkPointData PointData,
vtkCellData CellData 
) [inline, protected]

Registers the grid's field data, i.e., the node and cell data.

Definition at line 430 of file vtkAbstractGridConnectivity.h.

void vtkAbstractGridConnectivity::RegisterGridNodes ( const int  gridID,
vtkPoints nodes 
) [inline, protected]

Registers the grid nodes for the grid associated with the given gridID.

Definition at line 468 of file vtkAbstractGridConnectivity.h.

Allocate/De-allocate the data-structures where the user-supplied grids will be registered.

Definition at line 281 of file vtkAbstractGridConnectivity.h.

Allocate/De-allocate the data-structures where the user-supplied grids will be registered.

Definition at line 296 of file vtkAbstractGridConnectivity.h.

Allocated/De-allocate the data-structures where the ghosted grid data will be stored.

Definition at line 344 of file vtkAbstractGridConnectivity.h.

Allocated/De-allocate the data-structures where the ghosted grid data will be stored.

Definition at line 359 of file vtkAbstractGridConnectivity.h.


Member Data Documentation

Definition at line 168 of file vtkAbstractGridConnectivity.h.

Definition at line 169 of file vtkAbstractGridConnectivity.h.

Definition at line 173 of file vtkAbstractGridConnectivity.h.

Definition at line 174 of file vtkAbstractGridConnectivity.h.

Definition at line 175 of file vtkAbstractGridConnectivity.h.

Definition at line 176 of file vtkAbstractGridConnectivity.h.

Definition at line 177 of file vtkAbstractGridConnectivity.h.

Definition at line 180 of file vtkAbstractGridConnectivity.h.

Definition at line 181 of file vtkAbstractGridConnectivity.h.

Definition at line 182 of file vtkAbstractGridConnectivity.h.

Definition at line 183 of file vtkAbstractGridConnectivity.h.

Definition at line 184 of file vtkAbstractGridConnectivity.h.

Definition at line 185 of file vtkAbstractGridConnectivity.h.


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