#include <ChasteCuboid.hpp>
Inherits AbstractChasteRegion< SPACE_DIM >.
Public Member Functions | |
ChasteCuboid (ChastePoint< SPACE_DIM > &rLowerPoint, ChastePoint< SPACE_DIM > &rUpperPoint) | |
bool | DoesContain (const ChastePoint< SPACE_DIM > &rPointToCheck) const |
const ChastePoint< SPACE_DIM > & | rGetUpperCorner () const |
const ChastePoint< SPACE_DIM > & | rGetLowerCorner () const |
double | GetWidth (unsigned rDimension) const |
unsigned | GetLongestAxis () const |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
ChastePoint< SPACE_DIM > | mLowerCorner |
ChastePoint< SPACE_DIM > | mUpperCorner |
Friends | |
class | boost::serialization::access |
This class defines a 3D cuboid and provides a method to check if a given point is contained in the volume.
Definition at line 44 of file ChasteCuboid.hpp.
ChasteCuboid< SPACE_DIM >::ChasteCuboid | ( | ChastePoint< SPACE_DIM > & | rLowerPoint, | |
ChastePoint< SPACE_DIM > & | rUpperPoint | |||
) | [inline] |
The cuboid is defined by any of its two space-diagonal opposite corners.
rLowerPoint | Lower vertex of the cuboid. | |
rUpperPoint | Upper vertex of the cuboid. |
Definition at line 33 of file ChasteCuboid.cpp.
References EXCEPTION, ChasteCuboid< SPACE_DIM >::mLowerCorner, and ChasteCuboid< SPACE_DIM >::mUpperCorner.
bool ChasteCuboid< SPACE_DIM >::DoesContain | ( | const ChastePoint< SPACE_DIM > & | rPointToCheck | ) | const [inline, virtual] |
Checks if a given point is contained in the cuboid.
rPointToCheck | Point to be checked to be contained in the cuboid. |
Implements AbstractChasteRegion< SPACE_DIM >.
Definition at line 47 of file ChasteCuboid.cpp.
References ChasteCuboid< SPACE_DIM >::mLowerCorner, and ChasteCuboid< SPACE_DIM >::mUpperCorner.
unsigned ChasteCuboid< SPACE_DIM >::GetLongestAxis | ( | ) | const [inline] |
Definition at line 80 of file ChasteCuboid.cpp.
References ChasteCuboid< SPACE_DIM >::mLowerCorner, and ChasteCuboid< SPACE_DIM >::mUpperCorner.
double ChasteCuboid< SPACE_DIM >::GetWidth | ( | unsigned | rDimension | ) | const [inline] |
rDimension | dimension |
Definition at line 73 of file ChasteCuboid.cpp.
References ChasteCuboid< SPACE_DIM >::mLowerCorner, and ChasteCuboid< SPACE_DIM >::mUpperCorner.
Referenced by FineCoarseMeshPair< DIM >::SetUpBoxes().
const ChastePoint< SPACE_DIM > & ChasteCuboid< SPACE_DIM >::rGetLowerCorner | ( | ) | const [inline] |
Definition at line 67 of file ChasteCuboid.cpp.
References ChasteCuboid< SPACE_DIM >::mLowerCorner.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::CalculateBoundingBox(), Electrodes< DIM >::Electrodes(), FineCoarseMeshPair< DIM >::SetUpBoxes(), and Cylindrical2dMesh::UpdateTopAndBottom().
const ChastePoint< SPACE_DIM > & ChasteCuboid< SPACE_DIM >::rGetUpperCorner | ( | ) | const [inline] |
Definition at line 61 of file ChasteCuboid.cpp.
References ChasteCuboid< SPACE_DIM >::mUpperCorner.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::CalculateBoundingBox(), Electrodes< DIM >::Electrodes(), FineCoarseMeshPair< DIM >::SetUpBoxes(), and Cylindrical2dMesh::UpdateTopAndBottom().
void ChasteCuboid< SPACE_DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Archive the member variables.
archive | ||
version |
Reimplemented from AbstractChasteRegion< SPACE_DIM >.
Definition at line 55 of file ChasteCuboid.hpp.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractChasteRegion< SPACE_DIM >.
Definition at line 47 of file ChasteCuboid.hpp.
ChastePoint<SPACE_DIM> ChasteCuboid< SPACE_DIM >::mLowerCorner [private] |
Lower vertex of the cuboid.
Definition at line 62 of file ChasteCuboid.hpp.
Referenced by ChasteCuboid< SPACE_DIM >::ChasteCuboid(), ChasteCuboid< SPACE_DIM >::DoesContain(), ChasteCuboid< SPACE_DIM >::GetLongestAxis(), ChasteCuboid< SPACE_DIM >::GetWidth(), and ChasteCuboid< SPACE_DIM >::rGetLowerCorner().
ChastePoint<SPACE_DIM> ChasteCuboid< SPACE_DIM >::mUpperCorner [private] |
Upper vertex of the cuboid. The space-diagonal opposite corner of mLowerCorner.
Definition at line 65 of file ChasteCuboid.hpp.
Referenced by ChasteCuboid< SPACE_DIM >::ChasteCuboid(), ChasteCuboid< SPACE_DIM >::DoesContain(), ChasteCuboid< SPACE_DIM >::GetLongestAxis(), ChasteCuboid< SPACE_DIM >::GetWidth(), and ChasteCuboid< SPACE_DIM >::rGetUpperCorner().