[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29290] trunk/lib/windows/opencollada/ include: add missing header files
Nathan Letwory
nathan at letworyinteractive.com
Mon Jun 7 02:20:26 CEST 2010
Revision: 29290
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29290
Author: jesterking
Date: 2010-06-07 02:20:26 +0200 (Mon, 07 Jun 2010)
Log Message:
-----------
add missing header files
Added Paths:
-----------
trunk/lib/windows/opencollada/include/COLLADAFramework/include/COLLADAFWHashFunctions.h
trunk/lib/windows/opencollada/include/COLLADAFramework/include/COLLADAFWInstanceKinematicsScene.h
trunk/lib/windows/opencollada/include/COLLADASaxFrameworkLoader/include/COLLADASaxFWLInstanceArticulatedSystemLoader.h
trunk/lib/windows/opencollada/include/COLLADASaxFrameworkLoader/include/COLLADASaxFWLInstanceKinematicsModelLoader.h
trunk/lib/windows/opencollada/include/COLLADASaxFrameworkLoader/include/COLLADASaxFWLLibraryKinematicsScenesLoader.h
trunk/lib/windows/opencollada/include/COLLADASaxFrameworkLoader/include/generated15/COLLADASaxFWLLibraryKinematicsScenesLoader15.h
Added: trunk/lib/windows/opencollada/include/COLLADAFramework/include/COLLADAFWHashFunctions.h
===================================================================
--- trunk/lib/windows/opencollada/include/COLLADAFramework/include/COLLADAFWHashFunctions.h (rev 0)
+++ trunk/lib/windows/opencollada/include/COLLADAFramework/include/COLLADAFWHashFunctions.h 2010-06-07 00:20:26 UTC (rev 29290)
@@ -0,0 +1,44 @@
+/*
+ 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_HASHFUNCTIONS_H__
+#define __COLLADAFW_HASHFUNCTIONS_H__
+
+#include "COLLADAFWPrerequisites.h"
+#include "COLLADABUPlatform.h"
+
+#ifdef COLLADABU_OS_LINUX
+# include <backward/hash_fun.h>
+# include "COLLADAFWUniqueId.h"
+#elif (defined COLLADABU_OS_MAC)
+# include <ext/hash_fun.h>
+# include "COLLADAFWUniqueId.h"
+#endif
+
+#if defined(COLLADABU_HAVE_TR1_UNORDERED_MAP) || defined(COLLADABU_OS_LINUX) || defined(COLLADABU_OS_MAC)
+#if defined(COLLADABU_HAVE_TR1_UNORDERED_MAP)
+namespace std { namespace tr1
+#else
+namespace __gnu_cxx
+#endif
+{
+ template<>
+ struct hash<COLLADAFW::UniqueId>
+ {
+ size_t
+ operator()(const COLLADAFW::UniqueId& uniqueId) const { return uniqueId; }
+ };
+#if defined(COLLADABU_HAVE_TR1_UNORDERED_MAP)
+}
+#endif
+} // namespace __gnu_cxx
+#endif
+
+#endif // __COLLADAFW_HASHFUNCTIONS_H__
Added: trunk/lib/windows/opencollada/include/COLLADAFramework/include/COLLADAFWInstanceKinematicsScene.h
===================================================================
--- trunk/lib/windows/opencollada/include/COLLADAFramework/include/COLLADAFWInstanceKinematicsScene.h (rev 0)
+++ trunk/lib/windows/opencollada/include/COLLADAFramework/include/COLLADAFWInstanceKinematicsScene.h 2010-06-07 00:20:26 UTC (rev 29290)
@@ -0,0 +1,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__
Added: trunk/lib/windows/opencollada/include/COLLADASaxFrameworkLoader/include/COLLADASaxFWLInstanceArticulatedSystemLoader.h
===================================================================
--- trunk/lib/windows/opencollada/include/COLLADASaxFrameworkLoader/include/COLLADASaxFWLInstanceArticulatedSystemLoader.h (rev 0)
+++ trunk/lib/windows/opencollada/include/COLLADASaxFrameworkLoader/include/COLLADASaxFWLInstanceArticulatedSystemLoader.h 2010-06-07 00:20:26 UTC (rev 29290)
@@ -0,0 +1,62 @@
+/*
+ Copyright (c) 2008-2009 NetAllied Systems GmbH
+
+ This file is part of COLLADASaxFrameworkLoader.
+
+ 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 __COLLADASAXFWL_INSTANCEARTICULATEDSYSTEMLOADER_H__
+#define __COLLADASAXFWL_INSTANCEARTICULATEDSYSTEMLOADER_H__
+
+#include "COLLADASaxFWLPrerequisites.h"
+#include "COLLADASaxFWLKinematicsIntermediateData.h"
+
+
+namespace COLLADASaxFWL
+{
+
+ /** TODO Documentation */
+ class InstanceArticulatedSystemLoader
+ {
+ private:
+ /** The instance articulated system currently being filled.*/
+ KinematicsInstanceArticulatedSystem* mInstanceArticulatedSystem;
+
+ /** The bind currently being filled.*/
+ KinematicsBind* mCurrentBind;
+
+ public:
+
+ /** Constructor. */
+ InstanceArticulatedSystemLoader();
+
+ /** Destructor. */
+ virtual ~InstanceArticulatedSystemLoader();
+
+ void setInstanceArticulatedSystem(KinematicsInstanceArticulatedSystem* instanceArticulatedSystem );
+
+ KinematicsInstanceArticulatedSystem* getInstanceArticulatedSystem();
+
+ virtual bool begin__bind____kinematics_bind_type( const bind____kinematics_bind_type__AttributeData& attributeData );
+ virtual bool end__bind____kinematics_bind_type();
+
+ virtual bool begin__param____kinematics_param_type( const param____kinematics_param_type__AttributeData& attributeData );
+ virtual bool end__param____kinematics_param_type(){return true;}
+
+
+ private:
+
+ /** Disable default copy ctor. */
+ InstanceArticulatedSystemLoader( const InstanceArticulatedSystemLoader& pre );
+
+ /** Disable default assignment operator. */
+ const InstanceArticulatedSystemLoader& operator= ( const InstanceArticulatedSystemLoader& pre );
+
+ };
+
+} // namespace COLLADASAXFWL
+
+#endif // __COLLADASAXFWL_INSTANCEARTICULATEDSYSTEMLOADER_H__
Added: trunk/lib/windows/opencollada/include/COLLADASaxFrameworkLoader/include/COLLADASaxFWLInstanceKinematicsModelLoader.h
===================================================================
--- trunk/lib/windows/opencollada/include/COLLADASaxFrameworkLoader/include/COLLADASaxFWLInstanceKinematicsModelLoader.h (rev 0)
+++ trunk/lib/windows/opencollada/include/COLLADASaxFrameworkLoader/include/COLLADASaxFWLInstanceKinematicsModelLoader.h 2010-06-07 00:20:26 UTC (rev 29290)
@@ -0,0 +1,82 @@
+/*
+ Copyright (c) 2008-2009 NetAllied Systems GmbH
+
+ This file is part of COLLADASaxFrameworkLoader.
+
+ 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 __COLLADASAXFWL_INSTANCEKINEMATICSMODELLOADER_H__
+#define __COLLADASAXFWL_INSTANCEKINEMATICSMODELLOADER_H__
+
+#include "COLLADASaxFWLPrerequisites.h"
+
+
+namespace COLLADASaxFWL
+{
+ class KinematicsInstanceKinematicsModel;
+ class KinematicsNewParam;
+
+ /** TODO Documentation */
+ class InstanceKinematicsModelLoader
+ {
+ private:
+ /** The instance KinematicsModel currently being filled.*/
+ KinematicsInstanceKinematicsModel* mCurrentKinematicsInstanceKinematicsModel;
+
+ /** The formula new param currently being parsed.*/
+ KinematicsNewParam* mCurrentKinematicsNewParam;
+
+ /** The sid of the current new param.*/
+ String mCurrentKinematicsNewParamSid;
+
+ /** Used to gather all the characters of a sid ref.*/
+ String mSidRefString;
+
+
+ public:
+
+ /** Constructor. */
+ InstanceKinematicsModelLoader();
+
+ /** Destructor. */
+ virtual ~InstanceKinematicsModelLoader();
+
+ /** The instance KinematicsModel currently being filled.*/
+ void setCurrentInstanceKinematicsModel(KinematicsInstanceKinematicsModel* val) { mCurrentKinematicsInstanceKinematicsModel = val; }
+
+ bool begin__newparam____kinematics_newparam_type( const newparam____kinematics_newparam_type__AttributeData& attributeData );
+ bool end__newparam____kinematics_newparam_type();
+
+ bool begin__float();
+ bool end__float();
+ bool data__float( float value );
+
+ bool begin__int();
+ bool end__int();
+ bool data__int( int value );
+
+ bool begin__bool();
+ bool end__bool();
+ bool data__bool( bool value );
+
+ bool begin__SIDREF();
+ bool end__SIDREF();
+ bool data__SIDREF( const ParserChar* value, size_t length );
+
+
+ private:
+
+ /** Disable default copy ctor. */
+ InstanceKinematicsModelLoader( const InstanceKinematicsModelLoader& pre );
+
+ /** Disable default assignment operator. */
+ const InstanceKinematicsModelLoader& operator= ( const InstanceKinematicsModelLoader& pre );
+
+ };
+
+} // namespace COLLADASAXFWL
+
+#endif // __COLLADASAXFWL_INSTANCEKINEMATICSMODELLOADER_H__
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list