opensurgsim
Public Member Functions | List of all members
MockTetrahedronData Class Reference

Tetrahedron data for testing, storing ID and edge IDs, triangle IDs. More...

#include <MockObjects.h>

Public Member Functions

 MockTetrahedronData (size_t id, const std::array< size_t, 6 > &edges, const std::array< size_t, 4 > &triangles)
 Constructor. More...
 
virtual ~MockTetrahedronData ()
 Destructor.
 
size_t getId () const
 Gets the tetrahedron's unique ID in its mesh.
 
const std::array< size_t, 6 > & getEdges () const
 Gets the IDs of the tetrahedron's edges in its mesh.
 
const std::array< size_t, 4 > & getTriangles () const
 Gets the IDs of the tetrahedron's triangles in its mesh.
 
bool operator== (const MockTetrahedronData &data) const
 Compare the tetrahedron data (equality) More...
 

Detailed Description

Tetrahedron data for testing, storing ID and edge IDs, triangle IDs.

Constructor & Destructor Documentation

§ MockTetrahedronData()

MockTetrahedronData::MockTetrahedronData ( size_t  id,
const std::array< size_t, 6 > &  edges,
const std::array< size_t, 4 > &  triangles 
)
inline

Constructor.

Parameters
idUnique ID of the tetrahedron in its mesh
edgesIDs of the tetrahedron's edges in its mesh (6 edges)
trianglesIDs of the tetrahedron's triangles in its mesh (4 triangles)

Member Function Documentation

§ operator==()

bool MockTetrahedronData::operator== ( const MockTetrahedronData data) const
inline

Compare the tetrahedron data (equality)

Parameters
dataThe MockTetrahedronData to compare it to
Returns
True if the two tetrahedron data are equals, False otherwise

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