Chaste Release::3.1
|
#include <BoxCollection.hpp>
Public Member Functions | |
Box (c_vector< double, 2 *DIM > &rMinAndMaxValues) | |
c_vector< double, 2 *DIM > & | rGetMinAndMaxValues () |
void | AddNode (Node< DIM > *pNode) |
void | RemoveNode (Node< DIM > *pNode) |
void | AddElement (Element< DIM, DIM > *pElement) |
std::set< Node< DIM > * > & | rGetNodesContained () |
std::set< Element< DIM, DIM > * > & | rGetElementsContained () |
Private Attributes | |
c_vector< double, 2 *DIM > | mMinAndMaxValues |
std::set< Node< DIM > * > | mNodesContained |
std::set< Element< DIM, DIM > * > | mElementsContained |
A small class for a nD 'box' defined by its min/max x/y/z values which can contains a list of nodes and elements located in that box
Definition at line 48 of file BoxCollection.hpp.
Constructor just takes in the extremal values of the box.
rMinAndMaxValues | the extremal values. Of the from (for 2D, etc): xmin, xmax, ymin, ymax |
Definition at line 44 of file BoxCollection.cpp.
An element to this box.
pElement | address of the element to be added |
Definition at line 74 of file BoxCollection.cpp.
Add a node to this box.
pNode | address of the node to be added |
Definition at line 56 of file BoxCollection.cpp.
Remove a node from this box.
pNode | address of the node to be removed |
Definition at line 62 of file BoxCollection.cpp.
Get all the elements in this box.
Definition at line 80 of file BoxCollection.cpp.
Get the coordinates of the box, in the form (for 2D) (xmin, xmax, ymin, ymax) (etc).
Definition at line 50 of file BoxCollection.cpp.
Get all the nodes in this box.
Definition at line 68 of file BoxCollection.cpp.
std::set< Element<DIM,DIM>* > Box< DIM >::mElementsContained [private] |
Elements contained in this box.
Definition at line 59 of file BoxCollection.hpp.
c_vector<double, 2*DIM> Box< DIM >::mMinAndMaxValues [private] |
Coordinates of the box, in the form (for 2D) (xmin, xmax, ymin, ymax) (etc).
Definition at line 53 of file BoxCollection.hpp.
std::set< Node<DIM>* > Box< DIM >::mNodesContained [private] |
Nodes contained in this box.
Definition at line 56 of file BoxCollection.hpp.