Blender  V3.3
Public Member Functions | List of all members
ExtraHandler Class Reference

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

#include <ExtraHandler.h>

Inheritance diagram for ExtraHandler:

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 24 of file ExtraHandler.h.

Constructor & Destructor Documentation

◆ ExtraHandler()

ExtraHandler::ExtraHandler ( DocumentImporter dimp,
AnimationImporter aimp 
)

Constructor.

Definition at line 12 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 19 of file ExtraHandler.cpp.

◆ elementEnd()

bool ExtraHandler::elementEnd ( const char *  elementName)

Handle the end of an element.

Definition at line 27 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 45 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 53 of file ExtraHandler.cpp.

References DocumentImporter::addExtraTags(), BLI_strcaseeq(), DocumentImporter::getExtraTags(), and uniqueId.

Referenced by parseElement().

◆ textData()

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

Receive the data in text format.

Definition at line 32 of file ExtraHandler.cpp.

References ExtraTags::addTag(), and BLI_strncpy().


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