OOFEM 3.0
Loading...
Searching...
No Matches
oofem::BoundingBox Class Reference

#include <octreelocalizert.h>

Collaboration diagram for oofem::BoundingBox:

Public Member Functions

 BoundingBox ()
 Constructor.
 ~BoundingBox ()
 Destructor.
void setOrigin (FloatArray &coords)
 Sets the origin of the bounding box.
void setSize (double s)
 Sets the size of the bounding box (all sides are equal).
void setMask (int i, int mask)
 Sets the spatial mask.
void giveOrigin (FloatArray &answer)
double giveSize ()
 Gives the size of the bounding box.
void giveMask (IntArray &answer)
void init (FloatArray &_origin, double _size, IntArray &mask)
bool contains (const FloatArray &coords) const

Protected Attributes

FloatArray origin
 Starting point.
double size
 Bounding box size length.
IntArray spatialMask
 Spatial dimension mask.

Detailed Description

Squared bounding box for templated octree localizer

Author
David Krybus

Definition at line 79 of file octreelocalizert.h.

Constructor & Destructor Documentation

◆ BoundingBox()

oofem::BoundingBox::BoundingBox ( )
inline

Constructor.

Definition at line 91 of file octreelocalizert.h.

References size, and spatialMask.

◆ ~BoundingBox()

oofem::BoundingBox::~BoundingBox ( )
inline

Destructor.

Definition at line 94 of file octreelocalizert.h.

Member Function Documentation

◆ contains()

bool oofem::BoundingBox::contains ( const FloatArray & coords) const
inline

◆ giveMask()

void oofem::BoundingBox::giveMask ( IntArray & answer)
inline

Gives the spatial mask of the bounding box

Parameters
answerthe mask of the bounding box

Definition at line 120 of file octreelocalizert.h.

Referenced by oofem::OctreeSpatialLocalizerT< T > *::init().

◆ giveOrigin()

void oofem::BoundingBox::giveOrigin ( FloatArray & answer)
inline

Returns the bounding box origin

Parameters
answerthe bounding box origin

Definition at line 113 of file octreelocalizert.h.

Referenced by oofem::DelaunayTriangulator::buildInitialBBXMesh(), oofem::OctreeSpatialLocalizerT< T > *::init(), and oofem::OctantRecT< T > *::testBoundingBox().

◆ giveSize()

double oofem::BoundingBox::giveSize ( )
inline

◆ init()

void oofem::BoundingBox::init ( FloatArray & _origin,
double _size,
IntArray & mask )
inline

Sets all BBOx parameters in ince

Definition at line 124 of file octreelocalizert.h.

Referenced by oofem::UnstructuredGridField::Cell::giveBoundingBox(), and oofem::UnstructuredGridField::initOctree().

◆ setMask()

void oofem::BoundingBox::setMask ( int i,
int mask )
inline

Sets the spatial mask.

Definition at line 108 of file octreelocalizert.h.

References spatialMask.

Referenced by oofem::DelaunayTriangulator::computeBBXBasedOnNodeData().

◆ setOrigin()

void oofem::BoundingBox::setOrigin ( FloatArray & coords)
inline

◆ setSize()

void oofem::BoundingBox::setSize ( double s)
inline

Sets the size of the bounding box (all sides are equal).

Definition at line 106 of file octreelocalizert.h.

References size.

Referenced by oofem::DelaunayTriangulator::computeBBXBasedOnNodeData(), and oofem::ClosestNode::isBBXStage2Defined().

Member Data Documentation

◆ origin

FloatArray oofem::BoundingBox::origin
protected

Starting point.

Definition at line 83 of file octreelocalizert.h.

Referenced by setOrigin().

◆ size

double oofem::BoundingBox::size
protected

Bounding box size length.

Definition at line 85 of file octreelocalizert.h.

Referenced by BoundingBox(), giveSize(), and setSize().

◆ spatialMask

IntArray oofem::BoundingBox::spatialMask
protected

Spatial dimension mask.

Definition at line 87 of file octreelocalizert.h.

Referenced by BoundingBox(), contains(), and setMask().


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

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011