VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
dox
Filters
Geometry
vtkStructuredAMRNeighbor.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkStructuredAMRNeighbor.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
=========================================================================*/
28
#ifndef VTKSTRUCTUREDAMRNEIGHBOR_H_
29
#define VTKSTRUCTUREDAMRNEIGHBOR_H_
30
31
#include "
vtkFiltersGeometryModule.h
"
// For export macro
32
#include "
vtkStructuredNeighbor.h
"
33
34
class
VTKFILTERSGEOMETRY_EXPORT
vtkStructuredAMRNeighbor
:
35
public
vtkStructuredNeighbor
36
{
37
public
:
38
39
// An enum that defines the neighbor relationship between the 2 grids.
40
enum
NeighborRelationship
41
{
42
PARENT
,
// Neighbor fully contains this grid
43
PARTIALLY_OVERLAPPING_PARENT
,
// Neighbor partially contains this grid
44
CHILD
,
// This grid fully contains the neighbor
45
PARTIALLY_OVERLAPPING_CHILD
,
// This grid partially contains the neighbor
46
SAME_LEVEL_SIBLING
,
// Grids are adjacent at the same level
47
COARSE_TO_FINE_SIBLING
,
// Grid is adjacent with a finer neighbor
48
FINE_TO_COARSE_SIBLING
,
// Grid is adjacent with a coarser neighbor
49
UNDEFINED
50
};
51
52
// NOTE: The OverlapExtent stores the overlap w.r.t. the neighboring grid
53
// Consequently, GridOverlapExtent stores the overlap extent w.r.t. this grid.
54
int
GridOverlapExtent[6];
// The overlap extent w.r.t. this grid
55
int
GridLevel
;
// The level of the grid that has this neighbor
56
int
NeighborLevel
;
// The level of the neighboring grid
57
int
RelationShip
;
// The relationship of the grid with this neighbor
58
60
vtkStructuredAMRNeighbor
();
61
63
67
vtkStructuredAMRNeighbor
(
68
const
int
gridLevel,
69
const
int
neiID,
const
int
neighborLevel,
70
int
gridOverlap[6],
int
neiOverlap[6],
71
int
orient[3],
72
const
int
relationShip);
74
76
77
vtkStructuredAMRNeighbor
(
const
vtkStructuredAMRNeighbor
&N) :
78
vtkStructuredNeighbor
(N) { *
this
= N; }
80
82
~vtkStructuredAMRNeighbor
() {}
83
85
vtkStructuredAMRNeighbor
&
operator=
(
const
vtkStructuredAMRNeighbor
&N);
86
89
void
GetReceiveExtentOnGrid(
const
int
ng,
int
gridExtent[6],
int
ext[6]);
90
93
std::string
GetRelationShipString();
94
96
100
virtual
void
ComputeSendAndReceiveExtent
(
101
int
gridRealExtent[6],
int
gridGhostedExtent[6],
int
neiRealExtent[6],
102
int
WholeExtent[6],
const
int
N);
103
};
105
106
#endif
/* VTKSTRUCTUREDAMRNEIGHBOR_H_ */
107
// VTK-HeaderTest-Exclude: vtkStructuredAMRNeighbor.h
vtkStructuredAMRNeighbor::NeighborLevel
int NeighborLevel
Definition:
vtkStructuredAMRNeighbor.h:56
vtkStructuredAMRNeighbor::vtkStructuredAMRNeighbor
vtkStructuredAMRNeighbor(const vtkStructuredAMRNeighbor &N)
Definition:
vtkStructuredAMRNeighbor.h:77
vtkFiltersGeometryModule.h
vtkStructuredAMRNeighbor::~vtkStructuredAMRNeighbor
~vtkStructuredAMRNeighbor()
Definition:
vtkStructuredAMRNeighbor.h:82
vtkStructuredAMRNeighbor::GridLevel
int GridLevel
Definition:
vtkStructuredAMRNeighbor.h:55
vtkStructuredAMRNeighbor::COARSE_TO_FINE_SIBLING
Definition:
vtkStructuredAMRNeighbor.h:47
vtkStructuredNeighbor::operator=
vtkStructuredNeighbor & operator=(const vtkStructuredNeighbor &N)
Definition:
vtkStructuredNeighbor.h:90
vtkX3D::string
Definition:
vtkX3D.h:490
vtkStructuredAMRNeighbor::PARTIALLY_OVERLAPPING_CHILD
Definition:
vtkStructuredAMRNeighbor.h:45
vtkStructuredNeighbor.h
vtkStructuredNeighbor
Definition:
vtkStructuredNeighbor.h:30
vtkStructuredAMRNeighbor::PARTIALLY_OVERLAPPING_PARENT
Definition:
vtkStructuredAMRNeighbor.h:43
vtkStructuredAMRNeighbor::PARENT
Definition:
vtkStructuredAMRNeighbor.h:42
vtkStructuredAMRNeighbor
Definition:
vtkStructuredAMRNeighbor.h:34
vtkStructuredNeighbor::ComputeSendAndReceiveExtent
virtual void ComputeSendAndReceiveExtent(int gridRealExtent[6], int gridGhostedExtent[6], int neiRealExtent[6], int WholeExtent[6], const int N)
vtkStructuredAMRNeighbor::RelationShip
int RelationShip
Definition:
vtkStructuredAMRNeighbor.h:57
VTKFILTERSGEOMETRY_EXPORT
#define VTKFILTERSGEOMETRY_EXPORT
Definition:
vtkFiltersGeometryModule.h:15
vtkStructuredAMRNeighbor::SAME_LEVEL_SIBLING
Definition:
vtkStructuredAMRNeighbor.h:46
vtkStructuredAMRNeighbor::FINE_TO_COARSE_SIBLING
Definition:
vtkStructuredAMRNeighbor.h:48
vtkStructuredAMRNeighbor::NeighborRelationship
NeighborRelationship
Definition:
vtkStructuredAMRNeighbor.h:40
vtkStructuredAMRNeighbor::CHILD
Definition:
vtkStructuredAMRNeighbor.h:44
Generated by
1.8.9.1