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

« back to all changes in this revision

Viewing changes to COLLADAFramework/include/COLLADAFWSkinController.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 COLLADAFramework.
 
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 __COLLADAFW_SKINCONTROLLER_H__
 
12
#define __COLLADAFW_SKINCONTROLLER_H__
 
13
 
 
14
#include "COLLADAFWPrerequisites.h"
 
15
#include "COLLADAFWController.h"
 
16
 
 
17
#include "COLLADAFWUniqueId.h"
 
18
 
 
19
namespace COLLADAFW
 
20
{
 
21
 
 
22
    /** A skin controller. This class binds the skeleton (the joints ) to the skin data 
 
23
        ( the weights  and the bind matrices). */
 
24
        class SkinController : public Controller 
 
25
        {
 
26
        private:
 
27
 
 
28
                /** The unique id of the skin controller data.*/
 
29
                UniqueId mSkinControllerData;
 
30
 
 
31
                /** The unique ids of the nodes, referenced by the skin controller.*/
 
32
                UniqueIdArray mJoints;
 
33
 
 
34
        public:
 
35
 
 
36
        /** Constructor. */
 
37
                SkinController( const UniqueId& uniqueId );
 
38
 
 
39
        /** Copy-Constructor. */
 
40
                SkinController( const SkinController& pre );
 
41
 
 
42
                /** Destructor. */
 
43
                virtual ~SkinController(){}
 
44
 
 
45
                /** The unique id of the skin controller data.*/
 
46
                const UniqueId& getSkinControllerData() const { return mSkinControllerData; }
 
47
 
 
48
                /** The unique id of the skin controller data.*/
 
49
                void setSkinControllerData( const UniqueId& skinControllerData) { mSkinControllerData = skinControllerData; }
 
50
 
 
51
                /** The unique ids of the nodes, referenced by the skin controller.*/
 
52
                UniqueIdArray& getJoints() { return mJoints; }
 
53
 
 
54
                /** The unique ids of the nodes, referenced by the skin controller.*/
 
55
                const UniqueIdArray& getJoints() const { return mJoints; }
 
56
 
 
57
        private:
 
58
 
 
59
        /** Disable default assignment operator. */
 
60
                const SkinController& operator= ( const SkinController& pre );
 
61
 
 
62
        };
 
63
 
 
64
} // namespace COLLADAFW
 
65
 
 
66
#endif // __COLLADAFW_SKINCONTROLLER_H__