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

Vertex data for testing, storing ID and surface normal. More...

#include <MockObjects.h>

Public Member Functions

 MockVertexData (size_t id, const SurgSim::Math::Vector3d &normal)
 Constructor. More...
 
 MockVertexData ()
 Constructor.
 
virtual ~MockVertexData ()
 Destructor.
 
size_t getId () const
 Gets the vertex's unique ID in its mesh.
 
const SurgSim::Math::Vector3dgetNormal () const
 Gets the vertex surface normal.
 
bool operator== (const MockVertexData &data) const
 Compare the vertex data to another one (equality) More...
 

Detailed Description

Vertex data for testing, storing ID and surface normal.

Constructor & Destructor Documentation

§ MockVertexData()

MockVertexData::MockVertexData ( size_t  id,
const SurgSim::Math::Vector3d normal 
)
inline

Constructor.

Parameters
idUnique ID of the vertex in its mesh
normalSurface normal of the vertex

Member Function Documentation

§ operator==()

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

Compare the vertex data to another one (equality)

Parameters
dataThe MockVertexData to compare it to
Returns
True if the two vertex data are equal, False otherwise

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