2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of COLLADAFramework.
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
11
#ifndef __COLLADAFW_SKINCONTROLLER_H__
12
#define __COLLADAFW_SKINCONTROLLER_H__
14
#include "COLLADAFWPrerequisites.h"
15
#include "COLLADAFWController.h"
17
#include "COLLADAFWUniqueId.h"
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
28
/** The unique id of the skin controller data.*/
29
UniqueId mSkinControllerData;
31
/** The unique ids of the nodes, referenced by the skin controller.*/
32
UniqueIdArray mJoints;
37
SkinController( const UniqueId& uniqueId );
39
/** Copy-Constructor. */
40
SkinController( const SkinController& pre );
43
virtual ~SkinController(){}
45
/** The unique id of the skin controller data.*/
46
const UniqueId& getSkinControllerData() const { return mSkinControllerData; }
48
/** The unique id of the skin controller data.*/
49
void setSkinControllerData( const UniqueId& skinControllerData) { mSkinControllerData = skinControllerData; }
51
/** The unique ids of the nodes, referenced by the skin controller.*/
52
UniqueIdArray& getJoints() { return mJoints; }
54
/** The unique ids of the nodes, referenced by the skin controller.*/
55
const UniqueIdArray& getJoints() const { return mJoints; }
59
/** Disable default assignment operator. */
60
const SkinController& operator= ( const SkinController& pre );
64
} // namespace COLLADAFW
66
#endif // __COLLADAFW_SKINCONTROLLER_H__