|
OOFEM 3.0
|
#include <octreelocalizert.h>
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. | |
Squared bounding box for templated octree localizer
Definition at line 79 of file octreelocalizert.h.
|
inline |
|
inline |
Destructor.
Definition at line 94 of file octreelocalizert.h.
|
inline |
Definition at line 130 of file octreelocalizert.h.
References oofem::FloatArray::at(), oofem::FloatArray::giveSize(), and spatialMask.
Referenced by oofem::UnstructuredGridField::Cell::containsPoint().
|
inline |
Gives the spatial mask of the bounding box
| answer | the mask of the bounding box |
Definition at line 120 of file octreelocalizert.h.
Referenced by oofem::OctreeSpatialLocalizerT< T > *::init().
|
inline |
Returns the bounding box origin
| answer | the 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().
|
inline |
Gives the size of the bounding box.
Definition at line 115 of file octreelocalizert.h.
References size.
Referenced by oofem::DelaunayTriangulator::buildInitialBBXMesh(), oofem::OctreeSpatialLocalizerT< T > *::init(), and oofem::OctantRecT< T > *::testBoundingBox().
|
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().
|
inline |
Sets the spatial mask.
Definition at line 108 of file octreelocalizert.h.
References spatialMask.
Referenced by oofem::DelaunayTriangulator::computeBBXBasedOnNodeData().
|
inline |
Sets the origin of the bounding box.
Definition at line 97 of file octreelocalizert.h.
References oofem::FloatArray::at(), oofem::FloatArray::giveSize(), and origin.
Referenced by oofem::DelaunayTriangulator::computeBBXBasedOnNodeData(), and oofem::ClosestNode::isBBXStage2Defined().
|
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().
|
protected |
|
protected |
Bounding box size length.
Definition at line 85 of file octreelocalizert.h.
Referenced by BoundingBox(), giveSize(), and setSize().
|
protected |
Spatial dimension mask.
Definition at line 87 of file octreelocalizert.h.
Referenced by BoundingBox(), contains(), and setMask().