SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLAnimKeyframe Class Reference

Base class for all animation keyframes. More...

#include <SLAnimKeyframe.h>

Inheritance diagram for SLAnimKeyframe:
[legend]

Public Member Functions

 SLAnimKeyframe (const SLAnimTrack *parent, SLfloat time)
 
bool operator< (const SLAnimKeyframe &other) const
 
void time (SLfloat t)
 
SLfloat time () const
 
SLbool isValid () const
 

Protected Attributes

const SLAnimTrack_parentTrack
 owning animation track for this keyframe More...
 
SLfloat _time
 temporal position in local time relative to the keyframes parent clip in seconds More...
 
SLbool _isValid
 is this keyframe in use inside its parent track More...
 

Detailed Description

Base class for all animation keyframes.

Definition at line 22 of file SLAnimKeyframe.h.

Constructor & Destructor Documentation

◆ SLAnimKeyframe()

SLAnimKeyframe::SLAnimKeyframe ( const SLAnimTrack parent,
SLfloat  time 
)

Constructor for default keyframes.

Definition at line 15 of file SLAnimKeyframe.cpp.

16  : _parentTrack(parent), _time(time)
17 {
18 }
SLfloat time() const
const SLAnimTrack * _parentTrack
owning animation track for this keyframe
SLfloat _time
temporal position in local time relative to the keyframes parent clip in seconds

Member Function Documentation

◆ isValid()

SLbool SLAnimKeyframe::isValid ( ) const
inline

Definition at line 32 of file SLAnimKeyframe.h.

32 { return _isValid; }
SLbool _isValid
is this keyframe in use inside its parent track

◆ operator<()

bool SLAnimKeyframe::operator< ( const SLAnimKeyframe other) const

Comperator operator.

Definition at line 22 of file SLAnimKeyframe.cpp.

23 {
24  return _time < other._time;
25 }

◆ time() [1/2]

SLfloat SLAnimKeyframe::time ( ) const
inline

Definition at line 31 of file SLAnimKeyframe.h.

31 { return _time; }

◆ time() [2/2]

void SLAnimKeyframe::time ( SLfloat  t)
inline

Definition at line 30 of file SLAnimKeyframe.h.

30 { _time = t; }

Member Data Documentation

◆ _isValid

SLbool SLAnimKeyframe::_isValid
protected

is this keyframe in use inside its parent track

Definition at line 37 of file SLAnimKeyframe.h.

◆ _parentTrack

const SLAnimTrack* SLAnimKeyframe::_parentTrack
protected

owning animation track for this keyframe

Definition at line 35 of file SLAnimKeyframe.h.

◆ _time

SLfloat SLAnimKeyframe::_time
protected

temporal position in local time relative to the keyframes parent clip in seconds

Definition at line 36 of file SLAnimKeyframe.h.


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