BTK  0.3dev.0
Open-source library to visualize/process biomechanical data
List of all members | Public Member Functions | Friends
btk::TriangleMesh::Vertex Class Reference

Read-only class used to bridge the content of a Point into a vertex. More...

#include <btkTriangleMesh.h>

Public Member Functions

double GetCoordinateX () const
 
double GetCoordinateY () const
 
double GetCoordinateZ () const
 
int GetId () const
 
int GetRelativeId () const
 
bool IsValid () const
 
 Vertex ()
 

Friends

class TriangleMesh
 

Detailed Description

Read-only class used to bridge the content of a Point into a vertex.

The bridge is only effective when the method TriangleMesh::ConnectPoints is used an valided.

This class should be used only by using the method TriangleMesh::BeginVertex().

Constructor & Destructor Documentation

btk::TriangleMesh::Vertex::Vertex ( )

Constructor.

Member Function Documentation

double btk::TriangleMesh::Vertex::GetCoordinateX ( ) const
inline

Returns the value of the X coordinate for the frame set.

Warning
This method must be used only after connecting of collection of points using the method TriangleMesh::ConnectPoints() and setting the current frame (see TriangleMesh::SetCurrentFrame()).
double btk::TriangleMesh::Vertex::GetCoordinateY ( ) const
inline

Returns the value of the Y coordinate for the frame set.

Warning
This method must be used only after connecting of collection of points using the method TriangleMesh::ConnectPoints() and setting the current frame (see TriangleMesh::SetCurrentFrame()).
double btk::TriangleMesh::Vertex::GetCoordinateZ ( ) const
inline

Returns the value of the Z coordinate for the frame set.

Warning
This method must be used only after connecting of collection of points using the method TriangleMesh::ConnectPoints() and setting the current frame (see TriangleMesh::SetCurrentFrame()).
int btk::TriangleMesh::Vertex::GetId ( ) const
inline

Returns the ID of the corresponding marker.

int btk::TriangleMesh::Vertex::GetRelativeId ( ) const
inline

Returns the relative ID of the corresponding marker. The value of the relative ID corresponds to the order of the given markers in the TriangleMesh constructor.

bool btk::TriangleMesh::Vertex::IsValid ( ) const
inline

Return true if the residual for the current frame is greater or equal to 0. Otherwise, returns false.