|
Blender V4.3
|
Handler class for <extra> data, through which different profiles can be handled. More...
#include <ExtraHandler.h>
Inherits COLLADASaxFWL::IExtraDataCallbackHandler.
Public Member Functions | |
| ExtraHandler (DocumentImporter *dimp, AnimationImporter *aimp) | |
| bool | elementBegin (const char *elementName, const char **attributes) |
| bool | elementEnd (const char *elementName) |
| bool | textData (const char *text, size_t textLength) |
| bool | parseElement (const char *profileName, const unsigned long &elementHash, const COLLADAFW::UniqueId &uniqueId, COLLADAFW::Object *object) |
| bool | parseElement (const char *profileName, const unsigned long &elementHash, const COLLADAFW::UniqueId &uniqueId) |
Handler class for <extra> data, through which different profiles can be handled.
Definition at line 26 of file ExtraHandler.h.
| ExtraHandler::ExtraHandler | ( | DocumentImporter * | dimp, |
| AnimationImporter * | aimp ) |
Constructor.
Definition at line 14 of file ExtraHandler.cpp.
| bool ExtraHandler::elementBegin | ( | const char * | elementName, |
| const char ** | attributes ) |
Handle the beginning of an element.
Definition at line 21 of file ExtraHandler.cpp.
| bool ExtraHandler::elementEnd | ( | const char * | elementName | ) |
Handle the end of an element.
Definition at line 29 of file ExtraHandler.cpp.
| bool ExtraHandler::parseElement | ( | const char * | profileName, |
| const unsigned long & | elementHash, | ||
| const COLLADAFW::UniqueId & | uniqueId ) |
For backwards compatibility with older OpenCollada, new version added object parameter
Definition at line 47 of file ExtraHandler.cpp.
References parseElement(), and uniqueId.
| bool ExtraHandler::parseElement | ( | const char * | profileName, |
| const unsigned long & | elementHash, | ||
| const COLLADAFW::UniqueId & | uniqueId, | ||
| COLLADAFW::Object * | object ) |
Method to ask, if the current callback handler want to read the data of the given extra element.
Definition at line 55 of file ExtraHandler.cpp.
References DocumentImporter::addExtraTags(), BLI_strcaseeq(), DocumentImporter::getExtraTags(), printf, and uniqueId.
Referenced by parseElement().
| bool ExtraHandler::textData | ( | const char * | text, |
| size_t | textLength ) |
Receive the data in text format.
Definition at line 34 of file ExtraHandler.cpp.
References ExtraTags::addTag(), and BLI_strncpy().