~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to COLLADAMaya/src/COLLADAMayaAnimationKeys.cpp

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2008-2009 NetAllied Systems GmbH
 
3
 
 
4
        This file is part of COLLADAMaya.
 
5
 
 
6
    Portions of the code are:
 
7
    Copyright (c) 2005-2007 Feeling Software Inc.
 
8
    Copyright (c) 2005-2007 Sony Computer Entertainment America
 
9
    Copyright (c) 2004-2005 Alias Systems Corp.
 
10
        
 
11
    Licensed under the MIT Open Source License, 
 
12
    for details please see LICENSE file or the website
 
13
    http://www.opensource.org/licenses/mit-license.php
 
14
*/
 
15
 
 
16
#include "COLLADAMayaStableHeaders.h"
 
17
#include "COLLADAMayaAnimationKeys.h"
 
18
 
 
19
 
 
20
namespace COLLADAMaya
 
21
{
 
22
 
 
23
    // --------------------------------------------
 
24
    AnimationMKey::AnimationMKey ( uint _dimension )
 
25
            : BaseAnimationKey (), dimension ( _dimension )
 
26
    {
 
27
        output = new float[dimension];
 
28
    }
 
29
 
 
30
    // --------------------------------------------
 
31
    AnimationMKey::~AnimationMKey()
 
32
    {
 
33
        delete[] output;
 
34
    }
 
35
 
 
36
    // --------------------------------------------
 
37
    AnimationMKeyBezier::AnimationMKeyBezier ( uint dimension )
 
38
            : AnimationMKey ( dimension )
 
39
    {
 
40
        inTangent = new TangentPoint[dimension];
 
41
        outTangent = new TangentPoint[dimension];
 
42
    }
 
43
 
 
44
    // --------------------------------------------
 
45
    AnimationMKeyBezier::~AnimationMKeyBezier()
 
46
    {
 
47
        delete[] inTangent;
 
48
        delete[] outTangent;
 
49
    }
 
50
 
 
51
    // --------------------------------------------
 
52
    AnimationMKeyTCB::AnimationMKeyTCB ( uint dimension )
 
53
            : AnimationMKey ( dimension )
 
54
    {
 
55
        tension = new float[dimension];
 
56
        continuity = new float[dimension];
 
57
        bias = new float[dimension];
 
58
        easeIn = new float[dimension];
 
59
        easeOut = new float[dimension];
 
60
    }
 
61
 
 
62
    // --------------------------------------------
 
63
    AnimationMKeyTCB::~AnimationMKeyTCB()
 
64
    {
 
65
        delete[] tension;
 
66
        delete[] continuity;
 
67
        delete[] bias;
 
68
        delete[] easeIn;
 
69
        delete[] easeOut;
 
70
    }
 
71
}
 
 
b'\\ No newline at end of file'