Public Types | Public Member Functions | Private Attributes | Friends
meshOctreeCubeBasic Class Reference
Inheritance diagram for meshOctreeCubeBasic:
Inheritance graph
[legend]
Collaboration diagram for meshOctreeCubeBasic:
Collaboration graph
[legend]

Public Types

enum  typesOfCubes {
  UNKNOWN = 1, OUTSIDE = 2, DATA = 4, INSIDE = 8,
  ALLPROCS = -2, OTHERPROC = -3
}
 

Public Member Functions

 meshOctreeCubeBasic ()
 Null constructor. More...
 
 meshOctreeCubeBasic (const meshOctreeCubeCoordinates &)
 Construct from coordinates. More...
 
 meshOctreeCubeBasic (const meshOctreeCubeCoordinates &cc, const direction cubeType, const short procNo=ALLPROCS)
 Construct from coordinates and cube type. More...
 
 ~meshOctreeCubeBasic ()
 
direction cubeType () const
 return type More...
 
void setCubeType (const direction)
 set cube type More...
 
short procNo () const
 return processor number More...
 
void setProcNo (const short)
 set processor number More...
 
const meshOctreeCubeCoordinatescoordinates () const
 return coordinates in the octree More...
 
void operator= (const meshOctreeCubeBasic &)
 
- Public Member Functions inherited from meshOctreeCubeCoordinates
 meshOctreeCubeCoordinates ()
 Null constructor. More...
 
 meshOctreeCubeCoordinates (const label posX, const label posY, const label posZ, const direction level)
 Construct from coordinates and level. More...
 
 meshOctreeCubeCoordinates (const meshOctreeCubeCoordinates &)
 copy constructor More...
 
 ~meshOctreeCubeCoordinates ()
 
direction level () const
 return level More...
 
label posX () const
 return x, y, z coordinates More...
 
label posY () const
 
label posZ () const
 
meshOctreeCubeCoordinates refineForPosition (const label) const
 return the coordinates of child cube at the given position More...
 
meshOctreeCubeCoordinates reduceLevelBy (const direction diff) const
 
meshOctreeCubeCoordinates reduceToLevel (const direction) const
 return the coordinates of the parent at the given level More...
 
meshOctreeCubeCoordinates increaseToLevelMin (const direction l) const
 return the minimal coordinates of the child at the given level More...
 
meshOctreeCubeCoordinates increaseToLevelMax (const direction l) const
 return the maximal coordinates of the child at the given level More...
 
void cubeBox (const boundBox &, point &, point &) const
 return min and max points More...
 
void vertices (const boundBox &, FixedList< point, 8 > &) const
 calculate vertices More...
 
point centre (const boundBox &) const
 return centre More...
 
scalar size (const boundBox &) const
 return size More...
 
void edgeVertices (const boundBox &, FixedList< FixedList< point, 2 >, 12 > &) const
 edges of the cube More...
 
bool intersectsTriangle (const triSurf &, const boundBox &, const label) const
 check if the surface triangle intersects the cube More...
 
bool intersectsTriangleExact (const triSurf &, const boundBox &, const label) const
 
bool isVertexInside (const boundBox &, const point &) const
 is a vertex inside the cube More...
 
bool isPositionInside (const meshOctreeCubeCoordinates &) const
 
void neighbourRange (meshOctreeCubeCoordinates &minCoord, meshOctreeCubeCoordinates &maxCoord) const
 
bool intersectsLine (const boundBox &, const point &, const point &) const
 check if the cube intersects a line More...
 
meshOctreeCubeCoordinates operator+ (const meshOctreeCubeCoordinates &) const
 
void operator= (const meshOctreeCubeCoordinates &)
 
bool operator== (const meshOctreeCubeCoordinates &) const
 
bool operator!= (const meshOctreeCubeCoordinates &) const
 
bool operator<= (const meshOctreeCubeCoordinates &) const
 comparison of Morton codes More...
 
bool operator>= (const meshOctreeCubeCoordinates &) const
 
bool operator< (const meshOctreeCubeCoordinates &) const
 
bool operator> (const meshOctreeCubeCoordinates &) const
 

Private Attributes

direction cubeType_
 cube type More...
 
short procNo_
 processor to which the cube belongs to More...
 

Friends

Ostreamoperator<< (Ostream &, const meshOctreeCubeBasic &)
 
Istreamoperator>> (Istream &, meshOctreeCubeBasic &)
 

Additional Inherited Members

- Static Public Attributes inherited from meshOctreeCubeCoordinates
static const label edgeNodes_ [12][2]
 edge nodes for an octree cube More...
 
static const label faceNodes_ [6][4]
 cube nodes making each face More...
 
static const label nodeFaces_ [8][3]
 node-faces addressing for the cube More...
 
static const label faceEdges_ [6][4]
 face-edges addressing for the octree cube More...
 
static const label edgeFaces_ [12][2]
 edge-faces addressing for the octree cube More...
 
static const label oppositeFace_ [6] = {1, 0, 3, 2, 5, 4}
 return the opposite face of each cube face More...
 

Detailed Description

Definition at line 49 of file meshOctreeCubeBasic.H.

Member Enumeration Documentation

◆ typesOfCubes

Enumerator
UNKNOWN 
OUTSIDE 
DATA 
INSIDE 
ALLPROCS 
OTHERPROC 

Definition at line 86 of file meshOctreeCubeBasic.H.

Constructor & Destructor Documentation

◆ meshOctreeCubeBasic() [1/3]

meshOctreeCubeBasic ( )
inline

Null constructor.

Definition at line 38 of file meshOctreeCubeBasicI.H.

◆ meshOctreeCubeBasic() [2/3]

meshOctreeCubeBasic ( const meshOctreeCubeCoordinates cc)
inlineexplicit

Construct from coordinates.

Definition at line 46 of file meshOctreeCubeBasicI.H.

◆ meshOctreeCubeBasic() [3/3]

meshOctreeCubeBasic ( const meshOctreeCubeCoordinates cc,
const direction  cubeType,
const short  procNo = ALLPROCS 
)
inline

Construct from coordinates and cube type.

Definition at line 56 of file meshOctreeCubeBasicI.H.

◆ ~meshOctreeCubeBasic()

~meshOctreeCubeBasic ( )
inline

Definition at line 81 of file meshOctreeCubeBasic.H.

Member Function Documentation

◆ cubeType()

direction cubeType ( ) const
inline

◆ setCubeType()

void setCubeType ( const direction  ct)
inline

set cube type

Definition at line 70 of file meshOctreeCubeBasicI.H.

References meshOctreeCubeBasic::cubeType_.

Referenced by meshOctreeModifier::refineTreeForCoordinates(), and meshOctreeInsideOutside::reviseDataBoxes().

Here is the caller graph for this function:

◆ procNo()

short procNo ( ) const
inline

◆ setProcNo()

void setProcNo ( const short  n)
inline

set processor number

Definition at line 85 of file meshOctreeCubeBasicI.H.

References n, and meshOctreeCubeBasic::procNo_.

Referenced by meshOctreeAddressing::calcGlobalLeafLabels(), meshOctreeCube::purgeProcessorCubes(), and meshOctreeModifier::refineTreeForCoordinates().

Here is the caller graph for this function:

◆ coordinates()

const meshOctreeCubeCoordinates & coordinates ( ) const
inline

◆ operator=()

void operator= ( const meshOctreeCubeBasic ocb)
inline

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream os,
const meshOctreeCubeBasic ocb 
)
friend

Definition at line 105 of file meshOctreeCubeBasicI.H.

◆ operator>>

Istream& operator>> ( Istream is,
meshOctreeCubeBasic ocb 
)
friend

Definition at line 125 of file meshOctreeCubeBasicI.H.

Field Documentation

◆ cubeType_

direction cubeType_
private

◆ procNo_

short procNo_
private

processor to which the cube belongs to

Definition at line 57 of file meshOctreeCubeBasic.H.

Referenced by meshOctreeCubeBasic::operator=(), meshOctreeCubeBasic::procNo(), and meshOctreeCubeBasic::setProcNo().


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