OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::BoundingBox Class Reference

Squared bounding box for templated octree localizer. More...

#include <octreelocalizert.h>

+ Collaboration diagram for oofem::BoundingBox:

Public Member Functions

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

Protected Attributes

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

Detailed Description

Squared bounding box for templated octree localizer.

Author
David Krybus

Definition at line 79 of file octreelocalizert.h.

Constructor & Destructor Documentation

oofem::BoundingBox::BoundingBox ( )
inline

Constructor.

Definition at line 91 of file octreelocalizert.h.

oofem::BoundingBox::~BoundingBox ( )
inline

Destructor.

Definition at line 94 of file octreelocalizert.h.

Member Function Documentation

bool oofem::BoundingBox::contains ( const FloatArray coords) const
inline
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.

References spatialMask.

Referenced by oofem::OctreeSpatialLocalizerT< oofem::UnstructuredGridField::Cell >::init().

void oofem::BoundingBox::giveOrigin ( FloatArray answer)
inline
double oofem::BoundingBox::giveSize ( )
inline
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.

References origin, and size.

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

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

Sets the spatial mask.

Definition at line 108 of file octreelocalizert.h.

References oofem::IntArray::at().

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

void oofem::BoundingBox::setOrigin ( FloatArray coords)
inline
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.

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

Member Data Documentation

IntArray oofem::BoundingBox::spatialMask
protected

Spatial dimension mask.

Definition at line 87 of file octreelocalizert.h.

Referenced by giveMask().


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

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:33 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011