Radium Engine  1.5.20
Loading...
Searching...
No Matches
HandleArray.cpp
1#include <Core/Animation/HandleArray.hpp>
2
3namespace Ra {
4namespace Core {
5namespace Animation {
6
7HandleArray::HandleArray() : m_pose(), m_name( "" ), m_label() {}
8
9HandleArray::HandleArray( const uint n ) :
10 m_pose( n, Transform::Identity() ), m_name( "" ), m_label( n, "" ) {}
11
12HandleArray::~HandleArray() {}
13
14void HandleArray::clear() {
15 m_pose.clear();
16}
17
18const Pose& HandleArray::getPose( const SpaceType /*MODE*/ ) const {
19 return m_pose;
20}
21
22void HandleArray::setPose( const Pose& pose, const SpaceType /*MODE*/ ) {
23 m_pose = pose;
24}
25
26const Transform& HandleArray::getTransform( const uint i, const SpaceType /*MODE*/ ) const {
27 CORE_ASSERT( ( i < size() ), "Index i out of bound" );
28 return m_pose[i];
29}
30
31void HandleArray::setTransform( const uint i, const Transform& T, const SpaceType /*MODE*/ ) {
32 CORE_ASSERT( ( i < size() ), "Index i out of bound" );
33 m_pose[i] = T;
34}
35
36} // namespace Animation
37} // Namespace Core
38} // Namespace Ra
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3