P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
Loading...
Searching...
No Matches
graphic::IModel Interface Referenceabstract

Model interface. More...

#include <IModel.hpp>

Inheritance diagram for graphic::IModel:

Public Member Functions

virtual ~IModel ()=default
virtual void setTexture (ITexture *texture)=0
virtual void setAnimations (IAnimationSet *animations)=0
virtual int getAnimationsSize () const =0
virtual void setAnimation (int pos)=0
virtual int getAnimation () const =0
virtual bool updateAnimation ()=0
 Steps one frame forward inside the current range.
virtual void setFrameRange (int first, int last)=0
 Restricts playback to [first, last] of the current clip.
virtual int getFirstFrame () const =0
virtual int getLastFrame () const =0
virtual void setFrame (int frame)=0
virtual int getFrame () const =0
virtual Vector3f getPosition () const =0
virtual void setPosition (Vector3f position)=0
virtual Vector3f getRotation () const =0
virtual void setRotation (Vector3f rotation)=0
virtual Vector3f getSize () const =0
virtual void setSize (Vector3f size)=0

Detailed Description

Model interface.

Constructor & Destructor Documentation

◆ ~IModel()

virtual graphic::IModel::~IModel ( )
virtualdefault

Member Function Documentation

◆ getAnimation()

virtual int graphic::IModel::getAnimation ( ) const
pure virtual

Implemented in RayModel.

◆ getAnimationsSize()

virtual int graphic::IModel::getAnimationsSize ( ) const
pure virtual

Implemented in RayModel.

◆ getFirstFrame()

virtual int graphic::IModel::getFirstFrame ( ) const
pure virtual

Implemented in RayModel.

◆ getFrame()

virtual int graphic::IModel::getFrame ( ) const
pure virtual

Implemented in RayModel.

◆ getLastFrame()

virtual int graphic::IModel::getLastFrame ( ) const
pure virtual

Implemented in RayModel.

◆ getPosition()

virtual Vector3f graphic::IModel::getPosition ( ) const
pure virtual

Implemented in RayModel.

◆ getRotation()

virtual Vector3f graphic::IModel::getRotation ( ) const
pure virtual

Implemented in RayModel.

◆ getSize()

virtual Vector3f graphic::IModel::getSize ( ) const
pure virtual

Implemented in RayModel.

◆ setAnimation()

virtual void graphic::IModel::setAnimation ( int pos)
pure virtual

Implemented in RayModel.

◆ setAnimations()

virtual void graphic::IModel::setAnimations ( IAnimationSet * animations)
pure virtual

Implemented in RayModel.

◆ setFrame()

virtual void graphic::IModel::setFrame ( int frame)
pure virtual

Implemented in RayModel.

◆ setFrameRange()

virtual void graphic::IModel::setFrameRange ( int first,
int last )
pure virtual

Restricts playback to [first, last] of the current clip.

A Mixamo export often bakes every move into a single clip : this is where "run" gets cut from "jump". Both bounds are clamped to the clip, and setAnimation() resets them.

Implemented in RayModel.

◆ setPosition()

virtual void graphic::IModel::setPosition ( Vector3f position)
pure virtual

Implemented in RayModel.

◆ setRotation()

virtual void graphic::IModel::setRotation ( Vector3f rotation)
pure virtual

Implemented in RayModel.

◆ setSize()

virtual void graphic::IModel::setSize ( Vector3f size)
pure virtual

Implemented in RayModel.

◆ setTexture()

virtual void graphic::IModel::setTexture ( ITexture * texture)
pure virtual

Implemented in RayModel.

◆ updateAnimation()

virtual bool graphic::IModel::updateAnimation ( )
pure virtual

Steps one frame forward inside the current range.

Returns
true when the range has just wrapped (so "the animation is over") - that is what makes play-once possible.

Implemented in RayModel.


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