#include <AlCharSnippet.h>
class AlCharSnippet : public AlObject
enum AlCharSnippetIntegerInfo
{
kXPosition,
kYPosition,
kStart,
kEnd,
kPreviewMeasure,
kRunLoops,
kRunExit,
kRunFrames,
kLastStored,
kNodeNumber
};
enum AlCharSnippetStringInfo
{
kStageName,
kSetName,
kBlindData1,
kBlindData2,
kBlindData3,
kBlindData4
};
AlCharSnippet();
virtual ~AlCharSnippet();
virtual AlObject* copyWrapper() const;
AlCharSnippet* copyObject();
virtual statusCode deleteObject();
statusCode create(AlCharacter *, const char *);
virtual AlObjectType type() const;
virtual AlCharSnippet* asCharSnippetPtr();
virtual const char* name() const;
virtual statusCode setName(const char*);
AlCharTransition* firstTransition(void);
AlCharTransition* nextTransition(void);
int setTraversal(int);
statusCode charSnippetIntegerInfo(AlCharSnippetIntegerInfo, int&) const;
statusCode charSnippetStringInfo(AlCharSnippetStringInfo, const char *&)
const;
statusCode setCharSnippetIntegerInfo(AlCharSnippetIntegerInfo, int);
statusCode setCharSnippetStringInfo(AlCharSnippetStringInfo, const
char*);
A Snippet is a sequence or short linear pieces of animation. Snippets are connected by Transitions to form a Character Network.
See the AlCharacter class for more information Character Networks. See the AlCharTransition class for more information on transitions.
Summary
AlCharSnippet::AlCharSnippet()
Description
Default constructor for AlCharSnippet Wrapper object. Use the create() method to initialize an AlCharSnippet object. AlCharSnippet::~AlCharSnippet()
Description
Deletes an AlCharSnippet wrapper object. AlObject* AlCharSnippet::copyWrapper() const
Description
Makes an exact copy of the AlCharSnippet wrapper Return codes
NULL - unable to create new wrapper due to lack of memory AlCharSnippet *AlCharSnippet::copyObject()
Description
Copy this AlCharSnippet returning a pointer to the new copy. Return codes
NULL - unable to create new object or wrapper due to lack of memory statusCode AlCharSnippet::create(AlCharacter *character,const char *snippetName)
Description
Does any initialization and allocation of data for an AlCharSnippet. Allocates room for this AlCharSnippet and adds this Snippet to the character. Arguments
< character - Character Network to create the Snippet in Return codes
sSuccess - if named Character Network Snippet object created statusCode AlCharSnippet::deleteObject()
Description
Deletes an AlCharSnippet object. This method deletes the Character Network Snippet object data. Upon return there will be no Character Network Snippet corresponding to this wrapper or any other wrapper that references the same Character Network Snippet. Return codes
sSuccess - the Character Network Snippet has been deleted AlObjectType AlCharSnippet::type() const
Description
Returns the class identifier kCharSnippetType. Description
This virtual function returns a non-null pointer to itself, indicating that it is safe to cast to an object of this class. const char *AlCharSnippet::name(void) const
Description
Return the name of the CharSnippet. Return codes
NULL - invalid wrapper statusCode AlCharSnippet::setName(const char* newSnippetName)
Description
Rename a Character Network Snippet object. If the new name is already in use then a unique name will be generated. Use the name() method to determine the actual name of the Character Network Snippet object. Arguments
< newCharacterName - the new name of the Character Network object Return codes
sSuccess - the Character Network object has been renamed AlCharTransition* AlCharSnippet::firstTransition(void)
Description
Return a new wrapper to first transition of the Character Network Snippet. Return codes
NULL - wrapper not valid, no transitions or unable to construct the wrapper AlCharTransition* AlCharSnippet::nextTransition(void)
Description
Return a new wrapper to next transition in the Character Network Snippet. Return codes
NULL - wrapper not valid, no more transitions or unable to construct the wrapper int AlCharSnippet::setTraversal(int traversalStatus)
Description
Set the Snippet traversal status and return the previous status. Arguments
< traversalStatus - the new Snippet object traversal status Return codes
the previous traveral status statusCode AlCharSnippet::charSnippetIntegerInfo(AlCharSnippetIntegerInfo dataType,int& iValue) const
Description
Return the specified integer valued Character Transition data. Arguments
< dataType - the type of Character Transition data to return Return codes
sSuccess - the Character Transition data was returned in iValue statusCode AlCharSnippet::charSnippetStringInfo(AlCharSnippetStringInfo dataType,const char *& sValue) const
Description
Return the specified string valued Character Transition data. Arguments
< dataType - the type of Character Transition data to return Return codes
sSuccess - the Character Transition data was returned in sValue statusCode AlCharSnippet::setCharSnippetIntegerInfo(AlCharSnippetIntegerInfo dataType,int iValue)
Description
Set the specified integer valued Character Transition data. Arguments
< dataType - the type of Character Transition data to return Return codes
sSuccess - the Character Transition data was updated from iValue statusCode AlCharSnippet::setCharSnippetStringInfo(AlCharSnippetStringInfo dataType,const char* sValue)
Description
Set the specified string valued Character Transition data. Arguments
< dataType - the type of Character Transition data to return Return codes
sSuccess - the Character Transition data was updated from sValue