41 #ifndef VTKABSTRACTGRIDCONNECTIVITY_H_
42 #define VTKABSTRACTGRIDCONNECTIVITY_H_
70 vtkSetMacro( NumberOfGhostLayers,
unsigned int );
71 vtkGetMacro( NumberOfGhostLayers,
unsigned int);
79 virtual void SetNumberOfGrids(
const unsigned int N ) = 0;
85 virtual void ComputeNeighbors( ) = 0;
91 virtual void CreateGhostLayers(
const int N=1 ) = 0;
109 vtkPointData* GetGhostedGridPointData(
const int gridID );
115 vtkCellData* GetGhostedGridCellData(
const int gridID );
121 vtkPoints* GetGhostedPoints(
const int gridID );
129 virtual void FillGhostArrays(
137 void RegisterGridGhostArrays(
144 void RegisterFieldData(
150 void RegisterGridNodes(
const int gridID,
vtkPoints *nodes );
156 void AllocateUserRegisterDataStructures();
157 void DeAllocateUserRegisterDataStructures();
163 void AllocateInternalDataStructures();
164 void DeAllocateInternalDataStructures();
203 assert(
"pre: GridID is out-of-bound GridPointData" &&
204 (gridID >= 0) && (gridID < static_cast<int>(this->
NumberOfGrids) ) );
205 assert(
"pre: Ghosted point ghost array" &&
220 assert(
"pre: GridID is out-of-bound GridPointData" &&
221 (gridID >= 0) && (gridID < static_cast<int>(this->
NumberOfGrids)));
222 assert(
"pre: Ghosted point ghost array" &&
237 assert(
"pre: GridID is out-of-bound GridPointData" &&
238 (gridID >= 0) && (gridID < static_cast<int>(this->
NumberOfGrids)));
239 assert(
"pre: Ghosted point ghost array" &&
254 assert(
"pre: GridID is out-of-bound GridPointData" &&
255 (gridID >= 0) && (gridID < static_cast<int>(this->
NumberOfGrids)));
256 assert(
"pre: Ghosted point ghost array" &&
271 assert(
"pre: GridID is out-of-bound GridPointData" &&
272 (gridID >= 0) && (gridID < static_cast<int>(this->
NumberOfGrids)));
273 assert(
"pre: Ghosted point ghost array" &&
284 assert(
"pre: Allocating UserRegister for N > 0 grids" &&
298 assert(
"pre: Data-structure has not been properly allocated" &&
300 assert(
"pre: Data-structure has not been properly allocated" &&
302 assert(
"pre: Data-structure has not been properly allocated" &&
304 assert(
"pre: Data-structure has not been properly allocated" &&
306 assert(
"pre: Data-structure has not been properly allocated" &&
346 assert(
"pre: Allocating Internal data-structured for N > 0 grids" &&
366 assert(
"pre: Data-structure has not been properly allocated" &&
368 assert(
"pre: Data-structure has not been properly allocated" &&
370 assert(
"pre: Data-structure has not been properly allocated" &&
372 assert(
"pre: Data-structure has not been properly allocated" &&
374 assert(
"pre: Data-structure has not been properly allocated" &&
417 assert(
"pre: GridID is out-of-bound GridPointData" &&
418 (gridID >= 0) && (gridID < static_cast<int>(this->
NumberOfGrids)));
419 assert(
"pre: GridPointGhostArrays has not been allocated" &&
421 assert(
"pre: GridCellGhostArrays has not been allocated" &&
434 assert(
"pre: GridID is out-of-bound GridPointData" &&
435 (gridID >= 0) && (gridID < static_cast<int>(this->
NumberOfGrids)));
436 assert(
"pre: GridPointData has not been allocated!" &&
438 assert(
"pre: GridCellData has not been allocated!" &&
442 if( PointData != NULL )
444 assert(
"pre: GridPointData[gridID] must be NULL" &&
454 if( CellData != NULL )
456 assert(
"pre: GridCellData[gridID] must be NULL" &&
472 assert(
"pre: GridID is out-of-bound GridPointData" &&
473 (gridID >= 0) && (gridID < static_cast<int>(this->
NumberOfGrids)));
474 assert(
"pre: GridPoints has not been allocated!" &&
479 assert(
"pre:GridPoints[gridID] must be NULL" &&
482 this->
GridPoints[ gridID ]->SetDataTypeToDouble();
483 this->
GridPoints[ gridID ]->ShallowCopy( nodes );
unsigned int NumberOfGhostLayers
void RegisterFieldData(const int gridID, vtkPointData *PointData, vtkCellData *CellData)
abstract base class for most VTK objects
represent and manipulate point attribute data
std::vector< vtkUnsignedCharArray * > GhostedPointGhostArray
represent and manipulate cell attribute data
std::vector< vtkPoints * > GridPoints
static vtkPointData * New()
vtkCellData * GetGhostedGridCellData(const int gridID)
void DeAllocateUserRegisterDataStructures()
std::vector< vtkUnsignedCharArray * > GridPointGhostArrays
static vtkCellData * New()
vtkUnsignedCharArray * GetGhostedPointGhostArray(const int gridID)
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
vtkUnsignedCharArray * GetGhostedCellGhostArray(const int gridID)
std::vector< vtkUnsignedCharArray * > GridCellGhostArrays
std::vector< vtkPointData * > GhostedGridPointData
vtkPointData * GetGhostedGridPointData(const int gridID)
bool AllocatedGhostDataStructures
dynamic, self-adjusting array of unsigned char
void RegisterGridGhostArrays(const int gridID, vtkUnsignedCharArray *nodesArray, vtkUnsignedCharArray *cellsArray)
unsigned int NumberOfGrids
unsigned int GetNumberOfGrids()
vtkPoints * GetGhostedPoints(const int gridID)
std::vector< vtkCellData * > GhostedGridCellData
std::vector< vtkUnsignedCharArray * > GhostedCellGhostArray
void RegisterGridNodes(const int gridID, vtkPoints *nodes)
void AllocateUserRegisterDataStructures()
void AllocateInternalDataStructures()
std::vector< vtkPoints * > GhostedGridPoints
#define VTKFILTERSGEOMETRY_EXPORT
void DeAllocateInternalDataStructures()
std::vector< vtkPointData * > GridPointData
represent and manipulate 3D points
std::vector< vtkCellData * > GridCellData