00001 #ifndef __domCOLLADA_h__ 00002 #define __domCOLLADA_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 #include <dom/domAsset.h> 00009 #include <dom/domLibrary_animations.h> 00010 #include <dom/domLibrary_animation_clips.h> 00011 #include <dom/domLibrary_cameras.h> 00012 #include <dom/domLibrary_controllers.h> 00013 #include <dom/domLibrary_geometries.h> 00014 #include <dom/domLibrary_effects.h> 00015 #include <dom/domLibrary_force_fields.h> 00016 #include <dom/domLibrary_images.h> 00017 #include <dom/domLibrary_lights.h> 00018 #include <dom/domLibrary_materials.h> 00019 #include <dom/domLibrary_nodes.h> 00020 #include <dom/domLibrary_physics_materials.h> 00021 #include <dom/domLibrary_physics_models.h> 00022 #include <dom/domLibrary_physics_scenes.h> 00023 #include <dom/domLibrary_visual_scenes.h> 00024 #include <dom/domLibrary_joints.h> 00025 #include <dom/domLibrary_kinematics_models.h> 00026 #include <dom/domLibrary_articulated_systems.h> 00027 #include <dom/domLibrary_kinematics_scenes.h> 00028 #include <dom/domLibrary_formulas.h> 00029 #include <dom/domInstance_with_extra.h> 00030 #include <dom/domInstance_kinematics_scene.h> 00031 #include <dom/domExtra.h> 00032 class DAE; 00033 00038 class domCOLLADA : public daeElement 00039 { 00040 public: 00041 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLLADA; } 00042 static daeInt ID() { return 966; } 00043 virtual daeInt typeID() const { return ID(); } 00044 public: 00045 class domScene; 00046 00047 typedef daeSmartRef<domScene> domSceneRef; 00048 typedef daeTArray<domSceneRef> domScene_Array; 00049 00057 class domScene : public daeElement 00058 { 00059 public: 00060 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SCENE; } 00061 static daeInt ID() { return 967; } 00062 virtual daeInt typeID() const { return ID(); } 00063 00064 protected: // Elements 00070 domInstance_with_extra_Array elemInstance_physics_scene_array; 00076 domInstance_with_extraRef elemInstance_visual_scene; 00077 domInstance_kinematics_scene_Array elemInstance_kinematics_scene_array; 00081 domExtra_Array elemExtra_array; 00082 00083 public: //Accessors and Mutators 00088 domInstance_with_extra_Array &getInstance_physics_scene_array() { return elemInstance_physics_scene_array; } 00093 const domInstance_with_extra_Array &getInstance_physics_scene_array() const { return elemInstance_physics_scene_array; } 00098 const domInstance_with_extraRef getInstance_visual_scene() const { return elemInstance_visual_scene; } 00103 domInstance_kinematics_scene_Array &getInstance_kinematics_scene_array() { return elemInstance_kinematics_scene_array; } 00108 const domInstance_kinematics_scene_Array &getInstance_kinematics_scene_array() const { return elemInstance_kinematics_scene_array; } 00113 domExtra_Array &getExtra_array() { return elemExtra_array; } 00118 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00119 protected: 00123 domScene(DAE& dae) : daeElement(dae), elemInstance_physics_scene_array(), elemInstance_visual_scene(), elemInstance_kinematics_scene_array(), elemExtra_array() {} 00127 virtual ~domScene() {} 00131 virtual domScene &operator=( const domScene &cpy ) { (void)cpy; return *this; } 00132 00133 public: // STATIC METHODS 00138 static DLLSPEC daeElementRef create(DAE& dae); 00144 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00145 }; 00146 00147 00148 protected: // Attributes 00152 xsAnyURI attrXmlns; 00157 domVersion attrVersion; 00162 xsAnyURI attrXml_base; 00163 00164 protected: // Elements 00168 domAssetRef elemAsset; 00173 domLibrary_animations_Array elemLibrary_animations_array; 00178 domLibrary_animation_clips_Array elemLibrary_animation_clips_array; 00183 domLibrary_cameras_Array elemLibrary_cameras_array; 00188 domLibrary_controllers_Array elemLibrary_controllers_array; 00193 domLibrary_geometries_Array elemLibrary_geometries_array; 00198 domLibrary_effects_Array elemLibrary_effects_array; 00203 domLibrary_force_fields_Array elemLibrary_force_fields_array; 00208 domLibrary_images_Array elemLibrary_images_array; 00213 domLibrary_lights_Array elemLibrary_lights_array; 00218 domLibrary_materials_Array elemLibrary_materials_array; 00223 domLibrary_nodes_Array elemLibrary_nodes_array; 00228 domLibrary_physics_materials_Array elemLibrary_physics_materials_array; 00233 domLibrary_physics_models_Array elemLibrary_physics_models_array; 00238 domLibrary_physics_scenes_Array elemLibrary_physics_scenes_array; 00243 domLibrary_visual_scenes_Array elemLibrary_visual_scenes_array; 00244 domLibrary_joints_Array elemLibrary_joints_array; 00245 domLibrary_kinematics_models_Array elemLibrary_kinematics_models_array; 00246 domLibrary_articulated_systems_Array elemLibrary_articulated_systems_array; 00247 domLibrary_kinematics_scenes_Array elemLibrary_kinematics_scenes_array; 00248 domLibrary_formulas_Array elemLibrary_formulas_array; 00256 domSceneRef elemScene; 00260 domExtra_Array elemExtra_array; 00264 daeElementRefArray _contents; 00268 daeUIntArray _contentsOrder; 00269 00273 daeTArray< daeCharArray * > _CMData; 00274 00275 00276 public: //Accessors and Mutators 00281 xsAnyURI &getXmlns() { return attrXmlns; } 00286 const xsAnyURI &getXmlns() const { return attrXmlns; } 00291 void setXmlns( const xsAnyURI &xmlns ) { attrXmlns = xmlns; 00292 _validAttributeArray[0] = true; } 00293 00298 domVersion getVersion() const { return attrVersion; } 00303 void setVersion( domVersion atVersion ) { attrVersion = atVersion; _validAttributeArray[1] = true; } 00304 00309 xsAnyURI &getXml_base() { return attrXml_base; } 00314 const xsAnyURI &getXml_base() const { return attrXml_base; } 00319 void setXml_base( const xsAnyURI &atXml_base ) { attrXml_base = atXml_base; _validAttributeArray[2] = true; } 00324 void setXml_base( xsString atXml_base ) { attrXml_base = atXml_base; _validAttributeArray[2] = true; } 00325 00330 const domAssetRef getAsset() const { return elemAsset; } 00335 domLibrary_animations_Array &getLibrary_animations_array() { return elemLibrary_animations_array; } 00340 const domLibrary_animations_Array &getLibrary_animations_array() const { return elemLibrary_animations_array; } 00345 domLibrary_animation_clips_Array &getLibrary_animation_clips_array() { return elemLibrary_animation_clips_array; } 00350 const domLibrary_animation_clips_Array &getLibrary_animation_clips_array() const { return elemLibrary_animation_clips_array; } 00355 domLibrary_cameras_Array &getLibrary_cameras_array() { return elemLibrary_cameras_array; } 00360 const domLibrary_cameras_Array &getLibrary_cameras_array() const { return elemLibrary_cameras_array; } 00365 domLibrary_controllers_Array &getLibrary_controllers_array() { return elemLibrary_controllers_array; } 00370 const domLibrary_controllers_Array &getLibrary_controllers_array() const { return elemLibrary_controllers_array; } 00375 domLibrary_geometries_Array &getLibrary_geometries_array() { return elemLibrary_geometries_array; } 00380 const domLibrary_geometries_Array &getLibrary_geometries_array() const { return elemLibrary_geometries_array; } 00385 domLibrary_effects_Array &getLibrary_effects_array() { return elemLibrary_effects_array; } 00390 const domLibrary_effects_Array &getLibrary_effects_array() const { return elemLibrary_effects_array; } 00395 domLibrary_force_fields_Array &getLibrary_force_fields_array() { return elemLibrary_force_fields_array; } 00400 const domLibrary_force_fields_Array &getLibrary_force_fields_array() const { return elemLibrary_force_fields_array; } 00405 domLibrary_images_Array &getLibrary_images_array() { return elemLibrary_images_array; } 00410 const domLibrary_images_Array &getLibrary_images_array() const { return elemLibrary_images_array; } 00415 domLibrary_lights_Array &getLibrary_lights_array() { return elemLibrary_lights_array; } 00420 const domLibrary_lights_Array &getLibrary_lights_array() const { return elemLibrary_lights_array; } 00425 domLibrary_materials_Array &getLibrary_materials_array() { return elemLibrary_materials_array; } 00430 const domLibrary_materials_Array &getLibrary_materials_array() const { return elemLibrary_materials_array; } 00435 domLibrary_nodes_Array &getLibrary_nodes_array() { return elemLibrary_nodes_array; } 00440 const domLibrary_nodes_Array &getLibrary_nodes_array() const { return elemLibrary_nodes_array; } 00445 domLibrary_physics_materials_Array &getLibrary_physics_materials_array() { return elemLibrary_physics_materials_array; } 00450 const domLibrary_physics_materials_Array &getLibrary_physics_materials_array() const { return elemLibrary_physics_materials_array; } 00455 domLibrary_physics_models_Array &getLibrary_physics_models_array() { return elemLibrary_physics_models_array; } 00460 const domLibrary_physics_models_Array &getLibrary_physics_models_array() const { return elemLibrary_physics_models_array; } 00465 domLibrary_physics_scenes_Array &getLibrary_physics_scenes_array() { return elemLibrary_physics_scenes_array; } 00470 const domLibrary_physics_scenes_Array &getLibrary_physics_scenes_array() const { return elemLibrary_physics_scenes_array; } 00475 domLibrary_visual_scenes_Array &getLibrary_visual_scenes_array() { return elemLibrary_visual_scenes_array; } 00480 const domLibrary_visual_scenes_Array &getLibrary_visual_scenes_array() const { return elemLibrary_visual_scenes_array; } 00485 domLibrary_joints_Array &getLibrary_joints_array() { return elemLibrary_joints_array; } 00490 const domLibrary_joints_Array &getLibrary_joints_array() const { return elemLibrary_joints_array; } 00495 domLibrary_kinematics_models_Array &getLibrary_kinematics_models_array() { return elemLibrary_kinematics_models_array; } 00500 const domLibrary_kinematics_models_Array &getLibrary_kinematics_models_array() const { return elemLibrary_kinematics_models_array; } 00505 domLibrary_articulated_systems_Array &getLibrary_articulated_systems_array() { return elemLibrary_articulated_systems_array; } 00510 const domLibrary_articulated_systems_Array &getLibrary_articulated_systems_array() const { return elemLibrary_articulated_systems_array; } 00515 domLibrary_kinematics_scenes_Array &getLibrary_kinematics_scenes_array() { return elemLibrary_kinematics_scenes_array; } 00520 const domLibrary_kinematics_scenes_Array &getLibrary_kinematics_scenes_array() const { return elemLibrary_kinematics_scenes_array; } 00525 domLibrary_formulas_Array &getLibrary_formulas_array() { return elemLibrary_formulas_array; } 00530 const domLibrary_formulas_Array &getLibrary_formulas_array() const { return elemLibrary_formulas_array; } 00535 const domSceneRef getScene() const { return elemScene; } 00540 domExtra_Array &getExtra_array() { return elemExtra_array; } 00545 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00550 daeElementRefArray &getContents() { return _contents; } 00555 const daeElementRefArray &getContents() const { return _contents; } 00556 00557 protected: 00561 domCOLLADA(DAE& dae) : daeElement(dae), attrXmlns(dae, *this), attrVersion(), attrXml_base(dae, *this), elemAsset(), elemLibrary_animations_array(), elemLibrary_animation_clips_array(), elemLibrary_cameras_array(), elemLibrary_controllers_array(), elemLibrary_geometries_array(), elemLibrary_effects_array(), elemLibrary_force_fields_array(), elemLibrary_images_array(), elemLibrary_lights_array(), elemLibrary_materials_array(), elemLibrary_nodes_array(), elemLibrary_physics_materials_array(), elemLibrary_physics_models_array(), elemLibrary_physics_scenes_array(), elemLibrary_visual_scenes_array(), elemLibrary_joints_array(), elemLibrary_kinematics_models_array(), elemLibrary_articulated_systems_array(), elemLibrary_kinematics_scenes_array(), elemLibrary_formulas_array(), elemScene(), elemExtra_array() {} 00565 virtual ~domCOLLADA() { daeElement::deleteCMDataArray(_CMData); } 00569 virtual domCOLLADA &operator=( const domCOLLADA &cpy ) { (void)cpy; return *this; } 00570 00571 public: // STATIC METHODS 00576 static DLLSPEC daeElementRef create(DAE& dae); 00582 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00583 }; 00584 00585 00586 #endif