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

« back to all changes in this revision

Viewing changes to dae2ma/include/DAE2MATransformAnimation.h

  • 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 DAE2MA.
 
5
 
 
6
    Licensed under the MIT Open Source License, 
 
7
    for details please see LICENSE file or the website
 
8
    http://www.opensource.org/licenses/mit-license.php
 
9
*/
 
10
 
 
11
#ifndef __DAE2MA_TRANSFORMANIMATION_H__
 
12
#define __DAE2MA_TRANSFORMANIMATION_H__
 
13
 
 
14
#include "DAE2MAPrerequisites.h"
 
15
#include "DAE2MABaseAnimation.h"
 
16
#include "DAE2MAMayaTransform.h"
 
17
 
 
18
#include "COLLADAFWTransformation.h"
 
19
 
 
20
 
 
21
namespace DAE2MA
 
22
{
 
23
 
 
24
    /** Stores the transform node id, the mayaTransform node and the transformation type. */
 
25
    class TransformAnimation : public BaseAnimation
 
26
    {
 
27
        private:
 
28
        
 
29
        const COLLADAFW::Transformation* mTransformation;
 
30
 
 
31
        /** Need to know, which rotation is animted. */
 
32
        MayaTransform::TransformPhase mTransformPhase;
 
33
 
 
34
        bool mIsJointTransform;
 
35
 
 
36
    public:
 
37
 
 
38
        /** Constructor. */
 
39
                TransformAnimation();
 
40
 
 
41
        /** Destructor. */
 
42
                virtual ~TransformAnimation();
 
43
 
 
44
        const COLLADAFW::Transformation* getTransformation () const { return mTransformation; }
 
45
        void setTransformation ( const COLLADAFW::Transformation* val );
 
46
        const COLLADAFW::Transformation::TransformationType getTransformType () const { return mTransformation->getTransformationType (); }
 
47
 
 
48
        const MayaTransform::TransformPhase& getTransformPhase () const { return mTransformPhase; }
 
49
        void setTransformPhase ( const MayaTransform::TransformPhase& val ) { mTransformPhase = val; }
 
50
 
 
51
        const bool& getIsJointTransform () const { return mIsJointTransform; }
 
52
        void setIsJointTransform ( const bool& val ) { mIsJointTransform = val; }
 
53
 
 
54
        };
 
55
 
 
56
} // namespace DAE2MA
 
57
 
 
58
#endif // __DAE2MA_TRANSFORMANIMATION_H__