ChasteCuboid< SPACE_DIM > Class Template Reference

#include <ChasteCuboid.hpp>

Inherits AbstractChasteRegion< SPACE_DIM >.

Collaboration diagram for ChasteCuboid< SPACE_DIM >:
Collaboration graph
[legend]

List of all members.

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 ()

Private Attributes

ChastePoint< SPACE_DIM > mLowerCorner
ChastePoint< SPACE_DIM > mUpperCorner

Detailed Description

template<unsigned SPACE_DIM>
class ChasteCuboid< SPACE_DIM >

This class defines a 3D cuboid and provides a method to check if a given point is contained in the volume.

Definition at line 43 of file ChasteCuboid.hpp.


Constructor & Destructor Documentation

template<unsigned SPACE_DIM>
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.

Parameters:
rLowerPoint Lower vertex of the cuboid.
rUpperPoint Upper vertex of the cuboid.

Definition at line 61 of file ChasteCuboid.hpp.

References ChasteCuboid< SPACE_DIM >::mLowerCorner, and ChasteCuboid< SPACE_DIM >::mUpperCorner.


Member Function Documentation

template<unsigned SPACE_DIM>
bool ChasteCuboid< SPACE_DIM >::DoesContain ( const ChastePoint< SPACE_DIM > &  rPointToCheck  )  const [inline, virtual]

Checks if a given 3D point is contained in the cuboid.

Parameters:
rPointToCheck Point to be checked to be contained in the cuboid.

Implements AbstractChasteRegion< SPACE_DIM >.

Definition at line 81 of file ChasteCuboid.hpp.

References ChasteCuboid< SPACE_DIM >::mLowerCorner, and ChasteCuboid< SPACE_DIM >::mUpperCorner.

template<unsigned SPACE_DIM>
const ChastePoint<SPACE_DIM>& ChasteCuboid< SPACE_DIM >::rGetLowerCorner (  )  [inline]
Returns:
the lower vertex of the cuboid

Definition at line 100 of file ChasteCuboid.hpp.

References ChasteCuboid< SPACE_DIM >::mLowerCorner.

Referenced by StreeterFibreGenerator< SPACE_DIM >::CheckVentricleAlignment().

template<unsigned SPACE_DIM>
const ChastePoint<SPACE_DIM>& ChasteCuboid< SPACE_DIM >::rGetUpperCorner (  )  const [inline]
Returns:
the upper vertex of the cuboid

Definition at line 95 of file ChasteCuboid.hpp.

References ChasteCuboid< SPACE_DIM >::mUpperCorner.

Referenced by StreeterFibreGenerator< SPACE_DIM >::CheckVentricleAlignment().


Member Data Documentation

template<unsigned SPACE_DIM>
ChastePoint<SPACE_DIM> ChasteCuboid< SPACE_DIM >::mLowerCorner [private]
template<unsigned SPACE_DIM>
ChastePoint<SPACE_DIM> ChasteCuboid< SPACE_DIM >::mUpperCorner [private]

Upper vertex of the cuboid. The space-diagonal opposite corner of mLowerCorner.

Definition at line 51 of file ChasteCuboid.hpp.

Referenced by ChasteCuboid< SPACE_DIM >::ChasteCuboid(), ChasteCuboid< SPACE_DIM >::DoesContain(), and ChasteCuboid< SPACE_DIM >::rGetUpperCorner().


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

Generated by  doxygen 1.6.2