1 /* 2 Copyright (c) 2008-2009 NetAllied Systems GmbH 3 4 This file is part of COLLADASaxFrameworkLoader. 5 6 Licensed under the MIT Open Source License, 7 for details please see LICENSE file or the website 8 http://www.opensource.org/licenses/mit-license.php 9 */ 10 11 12 #include "COLLADASaxFWLStableHeaders.h" 13 #include "COLLADASaxFWLLibraryAnimationsLoader14.h" 14 15 16 namespace COLLADASaxFWL 17 { 18 19 end__library_animations()20bool LibraryAnimationsLoader14::end__library_animations() 21 { 22 SaxVirtualFunctionTest14(end__library_animations()); 23 return mLoader->end__library_animations(); 24 } 25 26 begin__source(const COLLADASaxFWL14::source__AttributeData & attributeData)27bool LibraryAnimationsLoader14::begin__source( const COLLADASaxFWL14::source__AttributeData& attributeData ) 28 { 29 SaxVirtualFunctionTest14(begin__source(attributeData)); 30 COLLADASaxFWL::source__AttributeData attrData; 31 attrData.id = attributeData.id; 32 attrData.name = attributeData.name; 33 return mLoader->begin__source(attrData); 34 } 35 36 end__source()37bool LibraryAnimationsLoader14::end__source() 38 { 39 SaxVirtualFunctionTest14(end__source()); 40 return mLoader->end__source(); 41 } 42 43 begin__animation(const COLLADASaxFWL14::animation__AttributeData & attributeData)44bool LibraryAnimationsLoader14::begin__animation( const COLLADASaxFWL14::animation__AttributeData& attributeData ) 45 { 46 SaxVirtualFunctionTest14(begin__animation(attributeData)); 47 COLLADASaxFWL::animation__AttributeData attrData; 48 attrData.id = attributeData.id; 49 attrData.name = attributeData.name; 50 return mLoader->begin__animation(attrData); 51 } 52 53 end__animation()54bool LibraryAnimationsLoader14::end__animation() 55 { 56 SaxVirtualFunctionTest14(end__animation()); 57 return mLoader->end__animation(); 58 } 59 60 begin__sampler(const COLLADASaxFWL14::sampler__AttributeData & attributeData)61bool LibraryAnimationsLoader14::begin__sampler( const COLLADASaxFWL14::sampler__AttributeData& attributeData ) 62 { 63 SaxVirtualFunctionTest14(begin__sampler(attributeData)); 64 COLLADASaxFWL::sampler__AttributeData attrData; 65 attrData.id = attributeData.id; 66 attrData.pre_behavior = COLLADASaxFWL::ENUM__sampler_behavior__NOT_PRESENT; 67 attrData.post_behavior = COLLADASaxFWL::ENUM__sampler_behavior__NOT_PRESENT; 68 return mLoader->begin__sampler(attrData); 69 } 70 71 end__sampler()72bool LibraryAnimationsLoader14::end__sampler() 73 { 74 SaxVirtualFunctionTest14(end__sampler()); 75 return mLoader->end__sampler(); 76 } 77 78 begin__channel(const COLLADASaxFWL14::channel__AttributeData & attributeData)79bool LibraryAnimationsLoader14::begin__channel( const COLLADASaxFWL14::channel__AttributeData& attributeData ) 80 { 81 SaxVirtualFunctionTest14(begin__channel(attributeData)); 82 COLLADASaxFWL::channel__AttributeData attrData; 83 attrData.source = attributeData.source; 84 attrData.target = attributeData.target; 85 return mLoader->begin__channel(attrData); 86 } 87 88 end__channel()89bool LibraryAnimationsLoader14::end__channel() 90 { 91 SaxVirtualFunctionTest14(end__channel()); 92 return mLoader->end__channel(); 93 } 94 95 begin__input____InputLocal(const COLLADASaxFWL14::input____InputLocal__AttributeData & attributeData)96bool LibraryAnimationsLoader14::begin__input____InputLocal( const COLLADASaxFWL14::input____InputLocal__AttributeData& attributeData ) 97 { 98 SaxVirtualFunctionTest14(begin__input____InputLocal(attributeData)); 99 COLLADASaxFWL::input____InputLocal__AttributeData attrData; 100 attrData.semantic = attributeData.semantic; 101 attrData.source = attributeData.source; 102 return mLoader->begin__input____InputLocal(attrData); 103 } 104 105 end__input____InputLocal()106bool LibraryAnimationsLoader14::end__input____InputLocal() 107 { 108 SaxVirtualFunctionTest14(end__input____InputLocal()); 109 return mLoader->end__input____InputLocal(); 110 } 111 112 begin__Name_array(const COLLADASaxFWL14::Name_array__AttributeData & attributeData)113bool LibraryAnimationsLoader14::begin__Name_array( const COLLADASaxFWL14::Name_array__AttributeData& attributeData ) 114 { 115 SaxVirtualFunctionTest14(begin__Name_array(attributeData)); 116 COLLADASaxFWL::Name_array__AttributeData attrData; 117 attrData.present_attributes = 0; 118 attrData.id = attributeData.id; 119 attrData.name = attributeData.name; 120 if ( (attributeData.present_attributes & COLLADASaxFWL14::Name_array__AttributeData::ATTRIBUTE_COUNT_PRESENT) == COLLADASaxFWL14::Name_array__AttributeData::ATTRIBUTE_COUNT_PRESENT ) { 121 attrData.count = attributeData.count; 122 attrData.present_attributes |= COLLADASaxFWL::Name_array__AttributeData::ATTRIBUTE_COUNT_PRESENT; 123 } 124 return mLoader->begin__Name_array(attrData); 125 } 126 127 end__Name_array()128bool LibraryAnimationsLoader14::end__Name_array() 129 { 130 SaxVirtualFunctionTest14(end__Name_array()); 131 return mLoader->end__Name_array(); 132 } 133 134 data__Name_array(const ParserString * data,size_t length)135bool LibraryAnimationsLoader14::data__Name_array( const ParserString* data, size_t length ) 136 { 137 SaxVirtualFunctionTest14(data__Name_array(data, length)); 138 return mLoader->data__Name_array(data, length); 139 } 140 141 begin__technique(const COLLADASaxFWL14::technique__AttributeData & attributeData)142bool LibraryAnimationsLoader14::begin__technique( const COLLADASaxFWL14::technique__AttributeData& attributeData ) 143 { 144 SaxVirtualFunctionTest14(begin__technique(attributeData)); 145 COLLADASaxFWL::technique__AttributeData attrData; 146 attrData.profile = attributeData.profile; 147 return mLoader->begin__technique(attrData); 148 } 149 150 end__technique()151bool LibraryAnimationsLoader14::end__technique() 152 { 153 SaxVirtualFunctionTest14(end__technique()); 154 return mLoader->end__technique(); 155 } 156 157 158 159 } 160