Overte C++ Documentation
SkeletonModel Class Reference

A skeleton loaded from a model. More...

#include <SkeletonModel.h>

Inheritance diagram for SkeletonModel:

Public Member Functions

Q_INVOKABLE void setURL (const QUrl &url) override
 Sets the URL of the model to render.
 
int getLeftHandJointIndex () const
 Returns the index of the left hand joint, or -1 if not found.
 
int getRightHandJointIndex () const
 Returns the index of the right hand joint, or -1 if not found.
 
bool getLeftHandPosition (glm::vec3 &position) const
 
bool getRightHandPosition (glm::vec3 &position) const
 
float getLeftArmLength () const
 Returns the extended length from the left hand to its last free ancestor.
 
bool getHeadPosition (glm::vec3 &headPosition) const
 
bool getNeckPosition (glm::vec3 &neckPosition) const
 
bool getEyePositions (glm::vec3 &firstEyePosition, glm::vec3 &secondEyePosition) const
 
glm::vec3 getDefaultEyeModelPosition () const
 

Detailed Description

A skeleton loaded from a model.

Member Function Documentation

◆ getDefaultEyeModelPosition()

glm::vec3 SkeletonModel::getDefaultEyeModelPosition ( ) const

Gets the default position of the mid eye point in model frame coordinates.

Returns
whether or not the head was found.

◆ getEyePositions()

bool SkeletonModel::getEyePositions ( glm::vec3 &  firstEyePosition,
glm::vec3 &  secondEyePosition 
) const

Retrieve the positions of up to two eye meshes.

Returns
whether or not both eye meshes were found

◆ getHeadPosition()

bool SkeletonModel::getHeadPosition ( glm::vec3 &  headPosition) const

Returns the position of the head joint.

Returns
whether or not the head was found

◆ getLeftHandPosition()

bool SkeletonModel::getLeftHandPosition ( glm::vec3 &  position) const

Retrieve the position of the left hand

Returns
true whether or not the position was found

◆ getNeckPosition()

bool SkeletonModel::getNeckPosition ( glm::vec3 &  neckPosition) const

Returns the position of the neck joint.

Returns
whether or not the neck was found

◆ getRightHandPosition()

bool SkeletonModel::getRightHandPosition ( glm::vec3 &  position) const

Retrieve the position of the right hand

Returns
true whether or not the position was found

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