|
OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
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... | |
Squared bounding box for templated octree localizer.
Definition at line 79 of file octreelocalizert.h.
|
inline |
Constructor.
Definition at line 91 of file octreelocalizert.h.
|
inline |
Destructor.
Definition at line 94 of file octreelocalizert.h.
|
inline |
Definition at line 130 of file octreelocalizert.h.
References oofem::IntArray::at(), oofem::FloatArray::at(), oofem::FloatArray::giveSize(), and size.
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.
References spatialMask.
Referenced by oofem::OctreeSpatialLocalizerT< oofem::UnstructuredGridField::Cell >::init().
|
inline |
Returns the bounding box origin.
| answer | the bounding box origin |
Definition at line 113 of file octreelocalizert.h.
References origin.
Referenced by oofem::DelaunayTriangulator::buildInitialBBXMesh(), oofem::OctreeSpatialLocalizerT< oofem::UnstructuredGridField::Cell >::init(), and oofem::OctantRecT< oofem::UnstructuredGridField::Cell >::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< oofem::UnstructuredGridField::Cell >::init(), and oofem::OctantRecT< oofem::UnstructuredGridField::Cell >::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 oofem::IntArray::at().
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 oofem::FloatArray::resize().
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.
Referenced by oofem::DelaunayTriangulator::computeBBXBasedOnNodeData(), and oofem::ClosestNode::isBBXStage2Defined().
|
protected |
Starting point.
Definition at line 83 of file octreelocalizert.h.
Referenced by giveOrigin(), oofem::OctantRecT< oofem::UnstructuredGridField::Cell >::giveOrigin(), init(), oofem::OctreeSpatialLocalizerT< oofem::UnstructuredGridField::Cell >::init(), oofem::OctantRecT< oofem::UnstructuredGridField::Cell >::OctantRecT(), and oofem::OctantRecT< oofem::UnstructuredGridField::Cell >::testBoundingSphere().
|
protected |
Bounding box size length.
Definition at line 85 of file octreelocalizert.h.
Referenced by contains(), oofem::OctantRecT< oofem::UnstructuredGridField::Cell >::containsPoint(), giveSize(), oofem::OctantRecT< oofem::UnstructuredGridField::Cell >::giveSize(), init(), oofem::OctantRecT< oofem::UnstructuredGridField::Cell >::OctantRecT(), and oofem::OctantRecT< oofem::UnstructuredGridField::Cell >::testBoundingSphere().
|
protected |