updated COLLADA-DOM to the latest bleeding-edge (1.4.1) SVN version of today

This commit is contained in:
ejcoumans
2006-07-26 18:58:09 +00:00
parent 750af5c197
commit 7038e5c736
353 changed files with 21354 additions and 6259 deletions

View File

@@ -13,6 +13,33 @@
#include <dae/daeDocument.h>
void daeDocument::insertElement( daeElementRef element ) {
daeElement *parent = element->getParentElement();
size_t idx;
while ( parent != NULL ) {
if ( insertedElements.find( parent, idx ) == DAE_OK ) {
//found an ancestor in the list.. this child will already be added to the database
return;
}
parent = parent->getParentElement();
}
//if no ancestors are scheduled to be added then we can add element.
insertedElements.append( element );
}
void daeDocument::removeElement( daeElementRef element ) {
daeElement *parent = element->getParentElement();
size_t idx;
while ( parent != NULL ) {
if ( removedElements.find( parent, idx ) == DAE_OK ) {
//found an ancestor in the list.. this child will already be added to the database
return;
}
parent = parent->getParentElement();
}
removedElements.append( element );
}
void daeDocument::addExternalReference( daeURI &uri ) {
if ( uri.getContainer() == NULL || uri.getContainer()->getDocument() != this ) {
return;
@@ -48,7 +75,7 @@ void daeDocument::removeExternalReference( daeURI &uri ) {
}
void daeDocument::resolveExternals( daeString docURI ) {
size_t idx;
size_t idx(0);
if ( referencedDocuments.find( docURI, idx ) == DAE_OK ) {
for ( unsigned int j = 0; j < externalURIs[idx]->getCount(); j++ ) {
daeURI *tempURI = externalURIs[idx]->get(j);