/usr/include/opencollada/COLLADAFramework/COLLADAFWInstanceKinematicsScene.h is in opencollada-dev 0.1.0~20140703.ddf8f47+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | /*
Copyright (c) 2008-2009 NetAllied Systems GmbH
This file is part of COLLADAFramework.
Licensed under the MIT Open Source License,
for details please see LICENSE file or the website
http://www.opensource.org/licenses/mit-license.php
*/
#ifndef __COLLADAFW_INSTANCEKINEMATICSSCENE_H__
#define __COLLADAFW_INSTANCEKINEMATICSSCENE_H__
#include "COLLADAFWPrerequisites.h"
#include "COLLADAFWInstanceBase.h"
#include "COLLADAFWUniqueId.h"
#include "COLLADAFWPointerArray.h"
namespace COLLADAFW
{
class KinematicsModel;
/** TODO Documentation */
class InstanceKinematicsScene : public InstanceBase<COLLADA_TYPE::INSTANCE_KINEMATICS_SCENE>
{
public:
struct NodeLinkBinding
{
/** The uniqueId of the node within the visual scene, that is bound to a link.*/
COLLADAFW::UniqueId nodeUniqueId;
/** The index of the kinematics model the link the node is bound to belongs to.*/
size_t kinematicsModelId;
/** The number of the link within the kinematics model.*/
size_t linkNumber;
bool operator<(const NodeLinkBinding& rhs)const;
};
typedef Array<NodeLinkBinding> NodeLinkBindingArray;
private:
/** List of all nodes of the visual scene that are bound to the kinematics model.*/
UniqueIdArray mBoundNodes;
/** The node link bindings of the instance kinematics scene.*/
NodeLinkBindingArray mNodeLinkBindings;
/** The id of the COLLADA file the instance kinematics scene belongs to.*/
FileId mFileId;
public:
/** Constructor. */
InstanceKinematicsScene(const UniqueId& uniqueId, const UniqueId& instanciatedObjectId );
/** Destructor. */
virtual ~InstanceKinematicsScene();
UniqueIdArray& getBoundNodes() { return mBoundNodes; }
const UniqueIdArray& getBoundNodes() const { return mBoundNodes; }
/** The node link bindings of the instance kinematics scene.*/
const NodeLinkBindingArray& getNodeLinkBindings() const { return mNodeLinkBindings; }
/** The node link bindings of the instance kinematics scene.*/
NodeLinkBindingArray& getNodeLinkBindings() { return mNodeLinkBindings; }
/** The id of the COLLADA file the instance kinematics scene belongs to.*/
FileId getFileId() const { return mFileId; }
/** The id of the COLLADA file the instance kinematics scene belongs to.*/
void setFileId(FileId fileId) { mFileId = fileId; }
/** Creates a clone of the InstanceKinematicsScene and returns a pointer to it.*/
InstanceKinematicsScene* clone() const { return FW_NEW InstanceKinematicsScene(*this); }
private:
/** Disable default copy ctor. */
InstanceKinematicsScene( const InstanceKinematicsScene& pre );
/** Disable default assignment operator. */
const InstanceKinematicsScene& operator= ( const InstanceKinematicsScene& pre );
};
typedef PointerArray<InstanceKinematicsScene> InstanceKinematicsSceneArray;
} // namespace COLLADAFW
#endif // __COLLADAFW_INSTANCEKINEMATICSSCENE_H__
|