-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #596 from lasalvavida/animation-clip-parsing
Added animation clip parsing and writer callbacks
- Loading branch information
Showing
29 changed files
with
611 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#ifndef __COLLADAFW_ANIMATIONCLIP_H__ | ||
#define __COLLADAFW_ANIMATIONCLIP_H__ | ||
|
||
#include "COLLADAFWPrerequisites.h" | ||
#include "COLLADAFWObject.h" | ||
#include "COLLADAFWUniqueId.h" | ||
|
||
|
||
namespace COLLADAFW | ||
{ | ||
class AnimationClip : public ObjectTemplate<COLLADA_TYPE::ANIMATION_CLIP> | ||
{ | ||
private: | ||
/** | ||
* The original object id, if it in the original file format exist. | ||
*/ | ||
String mOriginalId; | ||
|
||
/** The list of unique animation ids of the instance animations in this clip. */ | ||
UniqueIdArray mInstanceAnimationUniqueIds; | ||
|
||
/** The text string name of this element. Optional. */ | ||
String mName; | ||
|
||
public: | ||
|
||
/** Constructor. */ | ||
AnimationClip ( const UniqueId& uniqueId ); | ||
|
||
/** Destructor. */ | ||
virtual ~AnimationClip(); | ||
|
||
/** | ||
* The original object id, if it in the original file format exist. | ||
*/ | ||
const String& getOriginalId () const { return mOriginalId; } | ||
|
||
/** | ||
* The original object id, if it in the original file format exist. | ||
*/ | ||
void setOriginalId ( const String& val ) { mOriginalId = val; } | ||
|
||
/** The text string name of this element. Optional. */ | ||
const String& getName () const { return mName; } | ||
|
||
/** The text string name of this element. Optional. */ | ||
void setName ( const String& Name ) { mName = Name; } | ||
|
||
/** List of the unique ids of the instance animations in this clip. */ | ||
const UniqueIdArray& getInstanceAnimationUniqueIds() const { return mInstanceAnimationUniqueIds; } | ||
|
||
/** List of the unique ids of the instance animations in this clip. */ | ||
UniqueIdArray& getInstanceAnimationUniqueIds() { return mInstanceAnimationUniqueIds; } | ||
}; | ||
} | ||
|
||
#endif // __COLLADAFW_ANIMATIONCLIP_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "COLLADAFWStableHeaders.h" | ||
#include "COLLADAFWAnimationClip.h" | ||
|
||
|
||
namespace COLLADAFW | ||
{ | ||
|
||
//------------------------------ | ||
AnimationClip::AnimationClip ( const UniqueId& uniqueId ) | ||
: ObjectTemplate<COLLADA_TYPE::ANIMATION_CLIP> ( uniqueId ) | ||
{ | ||
} | ||
|
||
//------------------------------ | ||
AnimationClip::~AnimationClip() | ||
{ | ||
} | ||
|
||
} // namespace COLLADAFW |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.