Blender V4.5
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) override
bool elementEnd (const char *elementName) override
bool textData (const char *text, size_t textLength) override
bool parseElement (const char *profileName, const unsigned long &elementHash, const COLLADAFW::UniqueId &uniqueId, COLLADAFW::Object *object) override
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 22 of file ExtraHandler.h.

Constructor & Destructor Documentation

◆ ExtraHandler()

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

Constructor.

Definition at line 16 of file ExtraHandler.cpp.

References nullptr.

Member Function Documentation

◆ elementBegin()

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

Handle the beginning of an element.

Definition at line 23 of file ExtraHandler.cpp.

◆ elementEnd()

bool ExtraHandler::elementEnd ( const char * elementName)
override

Handle the end of an element.

Definition at line 31 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 49 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 )
override

Method to ask, if the current callback handler want to read the data of the given extra element.

Definition at line 57 of file ExtraHandler.cpp.

References BLI_strcaseeq(), printf, and uniqueId.

Referenced by parseElement().

◆ textData()

bool ExtraHandler::textData ( const char * text,
size_t textLength )
override

Receive the data in text format.

Definition at line 36 of file ExtraHandler.cpp.

References BLI_strncpy().


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