Blender V4.3
ExtraHandler Class Reference

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)
 

Detailed Description

Handler class for <extra> data, through which different profiles can be handled.

Definition at line 26 of file ExtraHandler.h.

Constructor & Destructor Documentation

◆ ExtraHandler()

ExtraHandler::ExtraHandler ( DocumentImporter * dimp,
AnimationImporter * aimp )

Constructor.

Definition at line 14 of file ExtraHandler.cpp.

Member Function Documentation

◆ elementBegin()

bool ExtraHandler::elementBegin ( const char * elementName,
const char ** attributes )

Handle the beginning of an element.

Definition at line 21 of file ExtraHandler.cpp.

◆ elementEnd()

bool ExtraHandler::elementEnd ( const char * elementName)

Handle the end of an element.

Definition at line 29 of file ExtraHandler.cpp.

◆ parseElement() [1/2]

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.

◆ parseElement() [2/2]

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().

◆ textData()

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().


The documentation for this class was generated from the following files: