Classes | Public Member Functions | List of all members
treeDataCell Class Reference

Encapsulation of data needed to search in/for cells. Used to find the cell containing a point (e.g. cell-cell mapping). More...

Classes

class  findIntersectOp
 
class  findNearestOp
 

Public Member Functions

 ClassName ("treeDataCell")
 
 treeDataCell (const bool cacheBb, const polyMesh &mesh, const labelUList &cellLabels, const polyMesh::cellDecomposition decompMode)
 
 treeDataCell (const bool cacheBb, const polyMesh &mesh, labelList &&cellLabels, const polyMesh::cellDecomposition decompMode)
 
 treeDataCell (const bool cacheBb, const polyMesh &mesh, const polyMesh::cellDecomposition decompMode)
 
const labelListcellLabels () const
 
const polyMeshmesh () const
 
polyMesh::cellDecomposition decompMode () const
 
label size () const
 
pointField shapePoints () const
 
volumeType getVolumeType (const indexedOctree< treeDataCell > &, const point &) const
 
bool overlaps (const label index, const treeBoundBox &sampleBb) const
 
bool contains (const label index, const point &sample) const
 

Detailed Description

Encapsulation of data needed to search in/for cells. Used to find the cell containing a point (e.g. cell-cell mapping).

Source files

Definition at line 52 of file treeDataCell.H.

Constructor & Destructor Documentation

◆ treeDataCell() [1/3]

treeDataCell ( const bool  cacheBb,
const polyMesh mesh,
const labelUList cellLabels,
const polyMesh::cellDecomposition  decompMode 
)

Definition at line 83 of file treeDataCell.C.

References update().

Here is the call graph for this function:

◆ treeDataCell() [2/3]

treeDataCell ( const bool  cacheBb,
const polyMesh mesh,
labelList &&  cellLabels,
const polyMesh::cellDecomposition  decompMode 
)

Definition at line 100 of file treeDataCell.C.

References update().

Here is the call graph for this function:

◆ treeDataCell() [3/3]

treeDataCell ( const bool  cacheBb,
const polyMesh mesh,
const polyMesh::cellDecomposition  decompMode 
)

Definition at line 117 of file treeDataCell.C.

References update().

Here is the call graph for this function:

Member Function Documentation

◆ ClassName()

ClassName ( "treeDataCell"  )

◆ cellLabels()

const labelList& cellLabels ( ) const
inline

Definition at line 168 of file treeDataCell.H.

Referenced by treeDataCell::findNearestOp::operator()().

Here is the caller graph for this function:

◆ mesh()

const polyMesh& mesh ( ) const
inline

Definition at line 173 of file treeDataCell.H.

Referenced by treeDataCell::findNearestOp::operator()().

Here is the caller graph for this function:

◆ decompMode()

polyMesh::cellDecomposition decompMode ( ) const
inline

Definition at line 178 of file treeDataCell.H.

◆ size()

label size ( ) const
inline

Definition at line 183 of file treeDataCell.H.

◆ shapePoints()

Foam::pointField shapePoints ( ) const

Definition at line 152 of file treeDataCell.C.

References forAll.

◆ getVolumeType()

volumeType getVolumeType ( const indexedOctree< treeDataCell > &  ,
const point  
) const
inline

Definition at line 198 of file treeDataCell.H.

References NotImplemented, and volumeType::UNKNOWN.

◆ overlaps()

bool overlaps ( const label  index,
const treeBoundBox sampleBb 
) const

Definition at line 166 of file treeDataCell.C.

References treeBoundBox::overlaps().

Here is the call graph for this function:

◆ contains()

bool contains ( const label  index,
const point sample 
) const

Definition at line 181 of file treeDataCell.C.


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