diff --git a/Extras/BulletColladaConverter/CMakeLists.txt b/Extras/BulletColladaConverter/CMakeLists.txt deleted file mode 100644 index 43c0abe74..000000000 --- a/Extras/BulletColladaConverter/CMakeLists.txt +++ /dev/null @@ -1,24 +0,0 @@ -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src ${BULLET_PHYSICS_SOURCE_DIR}/Extras/ConvexHull ${BULLET_PHYSICS_SOURCE_DIR}/Extras/BulletColladaConverter ${BULLET_PHYSICS_SOURCE_DIR}/Extras/LibXML/include ${BULLET_PHYSICS_SOURCE_DIR}/Extras/COLLADA_DOM/include ${BULLET_PHYSICS_SOURCE_DIR}/Extras/COLLADA_DOM/include/1.4 -) - -ADD_LIBRARY(BulletColladaConverter - ColladaConverter.h - ColladaConverter.cpp -) - -IF (BUILD_SHARED_LIBS) - TARGET_LINK_LIBRARIES(BulletColladaConverter ColladaDom BulletCollision BulletDynamics) -ENDIF (BUILD_SHARED_LIBS) - -#INSTALL of other files requires CMake 2.6 -IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5) - IF(INSTALL_EXTRA_LIBS) - IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) - INSTALL(TARGETS BulletColladaConverter DESTINATION .) - ELSE (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) - INSTALL(TARGETS BulletColladaConverter DESTINATION lib) - INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include FILES_MATCHING PATTERN "*.h") - ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) - ENDIF (INSTALL_EXTRA_LIBS) -ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5) diff --git a/Extras/BulletColladaConverter/ColladaConverter.cpp b/Extras/BulletColladaConverter/ColladaConverter.cpp deleted file mode 100644 index 36fb4a245..000000000 --- a/Extras/BulletColladaConverter/ColladaConverter.cpp +++ /dev/null @@ -1,3769 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -///@todo fix naming conflicts with BulletUnnamed-* across executions -> need to generate a real unique name. -///@todo double check geometry sharing - -#include "ColladaConverter.h" -#include "btBulletDynamicsCommon.h" - -#include "dae.h" -#include "dom/domCOLLADA.h" -#include "dae/domAny.h" -#include "dom/domConstants.h" -#include - -#include "BulletCollision/CollisionShapes/btShapeHull.h" -#include "BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.h" -#include "BulletCollision/CollisionShapes/btBoxShape.h" -#include "BulletCollision/CollisionShapes/btSphereShape.h" -#include "BulletCollision/CollisionShapes/btCylinderShape.h" -#include "BulletCollision/CollisionShapes/btConeShape.h" -#include "BulletCollision/CollisionShapes/btStaticPlaneShape.h" -#include "BulletCollision/CollisionShapes/btConvexHullShape.h" -#include "BulletCollision/CollisionShapes/btTriangleMesh.h" -#include "BulletCollision/CollisionShapes/btConvexTriangleMeshShape.h" -#include "BulletCollision/CollisionShapes/btTriangleMeshShape.h" -#include "BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.h" -//#include "BulletCollision/CollisionShapes/btTriangleIndexVertexArray.h" -#include "BulletCollision/CollisionShapes/btCompoundShape.h" -#include "LinearMath/btDefaultMotionState.h" -#include "BulletCollision/Gimpact/btGImpactShape.h" - - -#ifdef WIN32 -#define snprintf _snprintf -#endif - -#ifdef __CELLOS_LV2__ -//provide some dummy stubs for getcwd and getenv on PS3 -extern "C" { - int getcwd(char* dir, int maxlen) - { - return 0; - } - int getenv(int bla) - { - return 0; - } -} -#endif - - -struct btRigidBodyInput -{ - domInstance_rigid_bodyRef m_instanceRigidBodyRef; - domRigid_bodyRef m_rigidBodyRef2; - domNodeRef m_nodeRef; - - char* m_bodyName; -}; - -struct ConstraintInput -{ - domInstance_physics_model* m_instance_physicsModelRef; - domPhysics_modelRef m_model; -}; - - -struct btRigidBodyOutput -{ - float m_mass; - bool m_isDynamics; - btCollisionShape* m_colShape; - btCompoundShape* m_compoundShape; -}; - - -int btRigidBodyColladaInfo::getUid() -{ - return m_body->getBroadphaseProxy()->getUid(); -} - - - - - - - - -int btRigidConstraintColladaInfo::getUid() -{ - if (m_typedConstraint->getUid()==-1) - { - static int gConstraintUidGenerator=5; - m_typedConstraint->setUserConstraintId(gConstraintUidGenerator); - gConstraintUidGenerator++; - } - return m_typedConstraint->getUid(); -} - - - -domMatrix_Array emptyMatrixArray; - -///This code is actually wrong: the order of transformations is lost, so we need to rewrite this! -btTransform GetbtTransformFromCOLLADA_DOM(domMatrix_Array& matrixArray, - domRotate_Array& rotateArray, - domTranslate_Array& translateArray, - float meterScaling - ) - -{ - btTransform startTransform; - startTransform.setIdentity(); - - unsigned int i; - //either load the matrix (worldspace) or incrementally build the transform from 'translate'/'rotate' - for (i=0;igetValue(); - btVector3 origin(fl16.get(3),fl16.get(7),fl16.get(11)); - startTransform.setOrigin(origin*meterScaling); - btMatrix3x3 basis(fl16.get(0),fl16.get(1),fl16.get(2), - fl16.get(4),fl16.get(5),fl16.get(6), - fl16.get(8),fl16.get(9),fl16.get(10)); - startTransform.setBasis(basis); - } - - for (i=0;igetValue(); - float angleRad = SIMD_RADS_PER_DEG*fl4.get(3); - btQuaternion rotQuat(btVector3(fl4.get(0),fl4.get(1),fl4.get(2)),angleRad); - startTransform.getBasis() = startTransform.getBasis() * btMatrix3x3(rotQuat); - } - - for (i=0;igetValue(); - btVector3 orgTrans(fl3.get(0),fl3.get(1),fl3.get(2)); - startTransform.getOrigin() += orgTrans*meterScaling; - } - return startTransform; -} - - - - - -ColladaConverter::ColladaConverter(btDynamicsWorld* dynaWorld) -:m_dynamicsWorld(dynaWorld), -m_collada(0), -m_dom(0), -m_filename(0), -m_unitMeterScaling(1.f), -m_use32bitIndices(true), -m_use4componentVertices(true), -m_verbosity(LOUD) -{ -} - -ColladaConverter::~ColladaConverter () -{ - if (m_collada) - delete m_collada; - - DAE::cleanup (); - - m_collada = NULL; - m_dom = NULL; - - int i; - - for(i=0;iload(filename);//,docBuffer); - - if (res != DAE_OK) - { - //some platforms might require different path, try two additional locations - char newname[256]; - sprintf(newname,"../../%s",orgfilename); - filename = fixFileName(newname); - res = m_collada->load(filename); - if (res != DAE_OK) - { - printf("DAE/Collada-m_dom: Couldn't load %s\n",filename); - return false; - } - } - - if (res == DAE_OK) - { - - m_dom = m_collada->getDom(filename); - if ( !m_dom ) - { - printf("COLLADA File loaded to the m_dom, but query for the m_dom assets failed \n" ); - printf("COLLADA Load Aborted! \n" ); - delete m_collada; - return false; - } - } - - convert (); - - return true; -} - - -// resets the collada converter state -void ColladaConverter::reset () -{ - int i; - for(i=0;igetAsset()->getUp_axis(); - int upAxisIndex = upAxis.maxAxis(); - - switch (upAxisIndex) - { - case 0: - { - up->setValue(UPAXISTYPE_X_UP); - break; - } - case 1: - { - up->setValue(UPAXISTYPE_Y_UP); - break; - } - case 2: - { - up->setValue(UPAXISTYPE_Z_UP); - break; - } - default: - { - } - }; - -} - - -bool ColladaConverter::convert() -{ - - unsigned i; - -//succesfully loaded file, now convert data - - if (m_dom->getAsset() && m_dom->getAsset()->getUnit()) - { - domAsset::domUnitRef unit = m_dom->getAsset()->getUnit(); - domFloat meter = unit->getMeter(); - printf("asset unit meter=%f\n",meter); - //m_unitMeterScaling = meter; - - - } - if ( m_dom->getAsset() && m_dom->getAsset()->getUp_axis() ) - { - domAsset::domUp_axis * up = m_dom->getAsset()->getUp_axis(); - switch( up->getValue() ) - { - case UPAXISTYPE_X_UP: - if( getVerbosity() > SILENT ) - { - printf(" X is Up Data and Hiearchies must be converted!\n" ); - printf(" Conversion to X axis Up isn't currently supported!\n" ); - printf(" COLLADA_RT defaulting to Y Up \n" ); - } - setGravity(btVector3(-10,0,0)); - setCameraInfo(btVector3(1,0,0),1); - break; - case UPAXISTYPE_Y_UP: - if( getVerbosity() > SILENT ) - { - printf(" Y Axis is Up for this file \n" ); - printf(" COLLADA_RT set to Y Up \n" ); - } - setGravity(btVector3(0,-10,0)); - setCameraInfo(btVector3(0,1,0),0); - - break; - case UPAXISTYPE_Z_UP: - if( getVerbosity() > SILENT ) - { - printf(" Z Axis is Up for this file \n" ); - printf(" All Geometry and Hiearchies must be converted!\n" ); - } - setGravity(btVector3(0,0,-10)); - break; - default: - - break; - } - } - - - //we don't handle visual objects, physics objects are rered as such - for (unsigned int s=0;sgetLibrary_visual_scenes_array().getCount();s++) - { - domLibrary_visual_scenesRef scenesRef = m_dom->getLibrary_visual_scenes_array()[s]; - for (unsigned int i=0;igetVisual_scene_array().getCount();i++) - { - domVisual_sceneRef sceneRef = scenesRef->getVisual_scene_array()[i]; - for (unsigned int n=0;ngetNode_array().getCount();n++) - { - domNodeRef nodeRef = sceneRef->getNode_array()[n]; - nodeRef->getRotate_array(); - nodeRef->getTranslate_array(); - nodeRef->getScale_array(); - - } - } - } - - - - - // Load all the geometry libraries - for ( i = 0; i < m_dom->getLibrary_geometries_array().getCount(); i++) - { - domLibrary_geometriesRef libgeom = m_dom->getLibrary_geometries_array()[i]; - - if( getVerbosity() > SILENT ) - printf(" CrtScene::Reading Geometry Library \n" ); - for ( unsigned int i = 0; i < libgeom->getGeometry_array().getCount(); i++) - { - //ReadGeometry( ); - domGeometryRef lib = libgeom->getGeometry_array()[i]; - - domMesh *meshElement = lib->getMesh(); - if (meshElement) - { - // Find out how many groups we need to allocate space for - int numTriangleGroups = (int)meshElement->getTriangles_array().getCount(); - int numPolygonGroups = (int)meshElement->getPolygons_array().getCount(); - int numPolyList = (int)meshElement->getPolylist_array().getCount(); - int totalGroups = numTriangleGroups + numPolygonGroups + numPolyList; - if( getVerbosity() > NORMAL ) - { - if (totalGroups == 0) - { - printf("No Triangles or Polygons found int Geometry %s \n", lib->getId() ); - } else - { - printf("Found mesh geometry (%s): numTriangleGroups:%i numPolygonGroups :%i numPolyList=%i\n",lib->getId(),numTriangleGroups,numPolygonGroups,numPolyList); - } - } - - - } - domConvex_mesh *convexMeshElement = lib->getConvex_mesh(); - if (convexMeshElement) - { - if( getVerbosity() > NORMAL ) - printf("found convexmesh element\n"); - // Find out how many groups we need to allocate space for - int numTriangleGroups = (int)convexMeshElement->getTriangles_array().getCount(); - int numPolygonGroups = (int)convexMeshElement->getPolygons_array().getCount(); - - int totalGroups = numTriangleGroups + numPolygonGroups; - if( getVerbosity() > NORMAL ) - { - if (totalGroups == 0) - { - printf("No Triangles or Polygons found in ConvexMesh Geometry %s \n", lib->getId() ); - }else - { - printf("Found convexmesh geometry: numTriangleGroups:%i numPolygonGroups:%i\n",numTriangleGroups,numPolygonGroups); - } - } - }//fi - }//for each geometry - - }//for all geometry libraries - - - //m_dom->getLibrary_physics_models_array() - - for ( i = 0; i < m_dom->getLibrary_physics_scenes_array().getCount(); i++) - { - domLibrary_physics_scenesRef physicsScenesRef = m_dom->getLibrary_physics_scenes_array()[i]; - for (unsigned int s=0;sgetPhysics_scene_array().getCount();s++) - { - domPhysics_sceneRef physicsSceneRef = physicsScenesRef->getPhysics_scene_array()[s]; - - if (physicsSceneRef->getTechnique_common()) - { - if (physicsSceneRef->getTechnique_common()->getGravity()) - { - const domFloat3 grav = physicsSceneRef->getTechnique_common()->getGravity()->getValue(); - if( getVerbosity() > SILENT ) - printf("gravity set to %f,%f,%f\n",grav.get(0),grav.get(1),grav.get(2)); - - setGravity(btVector3(grav.get(0),grav.get(1),grav.get(2))); - } - - } - - for (unsigned int ps=0;psgetInstance_physics_model_array().getCount();ps++) - { - domInstance_physics_modelRef instance_physicsModelRef = physicsSceneRef->getInstance_physics_model_array()[ps]; - - daeElementRef ref = instance_physicsModelRef->getUrl().getElement(); - - domPhysics_modelRef model = *(domPhysics_modelRef*)&ref; - - - unsigned int p,r; - for ( p=0;pgetInstance_physics_model_array().getCount();p++) - { - domInstance_physics_modelRef instancePhysicsModelRef = model->getInstance_physics_model_array()[p]; - - daeElementRef ref = instancePhysicsModelRef->getUrl().getElement(); - - domPhysics_modelRef model = *(domPhysics_modelRef*)&ref; - - ///@todo: group some shared functionality in following 2 'blocks'. - for (r=0;rgetInstance_rigid_body_array().getCount();r++) - { - domInstance_rigid_bodyRef instRigidbodyRef = instancePhysicsModelRef->getInstance_rigid_body_array()[r]; - - btVector3 linearVelocity = btVector3(0.0, 0.0, 0.0); - btVector3 angularVelocity = btVector3(0.0, 0.0, 0.0); - float mass = 1.f; - bool isDynamics = true; - btCollisionShape* colShape = 0; - btCompoundShape* compoundShape = 0; - - xsNCName bodyName = instRigidbodyRef->getBody(); - - domInstance_rigid_body::domTechnique_commonRef techniqueRef = instRigidbodyRef->getTechnique_common(); - if (techniqueRef) - { - if (techniqueRef->getMass()) - { - mass = techniqueRef->getMass()->getValue(); - } - if (techniqueRef->getDynamic()) - { - isDynamics = techniqueRef->getDynamic()->getValue(); - } - if (techniqueRef->getVelocity()) - { - linearVelocity = btVector3( - techniqueRef->getVelocity()->getValue()[0], - techniqueRef->getVelocity()->getValue()[1], - techniqueRef->getVelocity()->getValue()[2]); - - } - if (techniqueRef->getAngular_velocity()) - { - angularVelocity = btVector3( - techniqueRef->getAngular_velocity()->getValue()[0], - techniqueRef->getAngular_velocity()->getValue()[1], - techniqueRef->getAngular_velocity()->getValue()[2]); - - } - } - - if( getVerbosity() > SILENT ) - printf("mass = %f, isDynamics %i\n",mass,isDynamics); - - if (bodyName && model) - { - //try to find the rigid body - - for (unsigned int r=0;rgetRigid_body_array().getCount();r++) - { - domRigid_bodyRef rigidBodyRef = model->getRigid_body_array()[r]; - if (rigidBodyRef->getSid() && !strcmp(rigidBodyRef->getSid(),bodyName)) - { - - - btRigidBodyOutput output; - output.m_colShape = colShape; - output.m_compoundShape = compoundShape; - output.m_mass = 1.f; - output.m_isDynamics = true; - - btRigidBodyInput rbInput; - rbInput.m_rigidBodyRef2 = rigidBodyRef; - rbInput.m_instanceRigidBodyRef = instRigidbodyRef; - printf("1 found body %s\n", bodyName); - /* The instance target points to the graphics node */ - ConvertRigidBodyRef( rbInput , output ); - mass = output.m_mass; - isDynamics = output.m_isDynamics; - colShape = output.m_colShape; - compoundShape = output.m_compoundShape; - - } - } - - ////////////////////// - } - - if (compoundShape) - colShape = compoundShape; - - if (colShape) - { - btRigidBodyInput input; - input.m_instanceRigidBodyRef = instRigidbodyRef; - input.m_bodyName = (char*)bodyName; - printf("1 calling prepare %s\n", bodyName); - PreparePhysicsObject(input, isDynamics,mass,colShape, linearVelocity, angularVelocity); - } - } - } - - - for (r=0;rgetInstance_rigid_body_array().getCount();r++) - { - - domInstance_rigid_bodyRef instRigidbodyRef = instance_physicsModelRef->getInstance_rigid_body_array()[r]; - - btVector3 linearVelocity = btVector3(0.0, 0.0, 0.0); - btVector3 angularVelocity = btVector3(0.0, 0.0, 0.0); - - float mass = 1.f; - bool isDynamics = true; - btCollisionShape* colShape = 0; - btCompoundShape* compoundShape = 0; - - xsNCName bodyName = instRigidbodyRef->getBody(); - - domInstance_rigid_body::domTechnique_commonRef techniqueRef = instRigidbodyRef->getTechnique_common(); - if (techniqueRef) - { - if (techniqueRef->getMass()) - { - mass = techniqueRef->getMass()->getValue(); - } - if (techniqueRef->getDynamic()) - { - isDynamics = techniqueRef->getDynamic()->getValue(); - } - if (techniqueRef->getVelocity()) - { - linearVelocity = btVector3( - techniqueRef->getVelocity()->getValue()[0], - techniqueRef->getVelocity()->getValue()[1], - techniqueRef->getVelocity()->getValue()[2]); - } - if (techniqueRef->getAngular_velocity()) - { - angularVelocity = btVector3( - techniqueRef->getAngular_velocity()->getValue()[0], - techniqueRef->getAngular_velocity()->getValue()[1], - techniqueRef->getAngular_velocity()->getValue()[2]); - } - } - - if( getVerbosity() > SILENT ) - printf("mass = %f, isDynamics %i\n",mass,isDynamics); - - domRigid_bodyRef savedRbRef = NULL; - if (bodyName && model) - { - //try to find the rigid body - - for (unsigned int r=0;rgetRigid_body_array().getCount();r++) - { - domRigid_bodyRef rigidBodyRef = model->getRigid_body_array()[r]; - if (rigidBodyRef->getSid() && !strcmp(rigidBodyRef->getSid(),bodyName)) - { - - - btRigidBodyOutput output; - output.m_colShape = colShape; - output.m_compoundShape = compoundShape; - output.m_mass = 1.f; - output.m_isDynamics = true; - - btRigidBodyInput rbInput; - rbInput.m_rigidBodyRef2 = rigidBodyRef; - savedRbRef = rigidBodyRef; - rbInput.m_instanceRigidBodyRef = instRigidbodyRef; - ConvertRigidBodyRef( rbInput , output ); - if( getVerbosity() > SILENT ) - printf("Found body converting %s\n", bodyName); - - mass = output.m_mass; - isDynamics = output.m_isDynamics; - colShape = output.m_colShape; - compoundShape = output.m_compoundShape; - } - } - - ////////////////////// - } - - if (compoundShape) - colShape = compoundShape; - - if (colShape) - { - btRigidBodyInput input; - input.m_instanceRigidBodyRef = instRigidbodyRef; - input.m_rigidBodyRef2 = savedRbRef; - input.m_bodyName = (char*)bodyName; - PreparePhysicsObject(input, isDynamics,mass,colShape, linearVelocity, angularVelocity); - } - - } //for each instance_rigid_body - - - } //for each physics model - - - //handle constraints - for (unsigned int ma=0;magetInstance_physics_model_array().getCount();ma++) - { - domInstance_physics_modelRef instance_physicsModelRef = physicsSceneRef->getInstance_physics_model_array()[ma]; - - daeElementRef ref = instance_physicsModelRef->getUrl().getElement(); - - domPhysics_modelRef model = *(domPhysics_modelRef*)&ref; - - { - ConstraintInput cInput; - cInput.m_instance_physicsModelRef = instance_physicsModelRef; - cInput.m_model = model; - prepareConstraints(cInput); - } - - //also don't forget the model's 'instance_physics_models! - for ( unsigned int p=0;pgetInstance_physics_model_array().getCount();p++) - { - domInstance_physics_modelRef instancePhysicsModelRef = model->getInstance_physics_model_array()[p]; - - daeElementRef ref = instancePhysicsModelRef->getUrl().getElement(); - - domPhysics_modelRef model = *(domPhysics_modelRef*)&ref; - - ConstraintInput cInput; - cInput.m_instance_physicsModelRef = instancePhysicsModelRef; - cInput.m_model = model; - prepareConstraints(cInput); - } - - - } //2nd time, for each physics model - - } - } - - return true; -} - -domNode* ColladaConverter::findNode (const char* nodeName) -{ - if (!m_dom) - return NULL; - - /* FIXME: We could search all visual scenes but we assume that only one exists */ - domVisual_scene* visualScene = getDefaultVisualScene (); - - - domNode_Array& nodesArray = visualScene->getNode_array (); - for (int i = 0; i < nodesArray.getCount(); i++) - { - domNode* node = nodesArray[i]; - if (!node->getId()) - { - continue; - } - if (!strcmp(node->getId(), nodeName)) - { - return node; - } - } - return NULL; -} - -btRigidBodyColladaInfo* ColladaConverter::findRigidBodyColladaInfo(const btRigidBody* body) -{ -///we assume that the btRigidBody getUid matches btRigidBodyColladaInfo getUid - - if (!body->getBroadphaseProxy()) - return 0; - - int uid = body->getBroadphaseProxy()->getUid(); - btHashKeyPtr tmpKey(uid); - btRigidBodyColladaInfo** rbciPtr = this->m_rbUserInfoHashMap.find(tmpKey); - btRigidBodyColladaInfo* rbci = NULL; - if (rbciPtr) - { - rbci = *rbciPtr; - } - return rbci; -} - -bool ColladaConverter::instantiateDom () -{ - if (!m_collada) - { - m_collada = new DAE; - - //set the default IOPlugin and Database - m_collada->setIOPlugin( NULL ); - m_collada->setDatabase( NULL ); - - daeInt error; - const char* documentName = "bullet snapshot"; - - //create a new document. Calling daeDatabase::insertDocument will create the - //daeDocument for you. This function will also create a domCOLLADA root - //element for you. - daeDocument *doc = NULL; - error = m_collada->getDatabase()->insertDocument(documentName, &doc ); - if ( error != DAE_OK || doc == NULL ) - { - printf("Failed to create new document\n"); - return false; - } - - m_dom = daeSafeCast(doc->getDomRoot()); - - //create the required asset tag - domAssetRef asset = daeSafeCast( m_dom->createAndPlace( COLLADA_ELEMENT_ASSET ) ); - domAsset::domCreatedRef created = daeSafeCast( asset->createAndPlace( COLLADA_ELEMENT_CREATED ) ); - created->setValue("2008-02-12T15:28:54.891550"); - domAsset::domModifiedRef modified = daeSafeCast( asset->createAndPlace( COLLADA_ELEMENT_MODIFIED ) ); - modified->setValue("2008-02-12T15:28:54.891550"); - - domAsset::domContributorRef contrib = daeSafeCast( asset->createAndPlace( COLLADA_TYPE_CONTRIBUTOR ) ); - - domAsset::domContributor::domAuthoring_toolRef authoringtool = daeSafeCast( contrib->createAndPlace( COLLADA_ELEMENT_AUTHORING_TOOL ) ); - char authbuffer[512]; - sprintf(authbuffer,"Bullet Physics SDK %d Snapshot(BulletColladaConverter) http://bulletphysics.com",BT_BULLET_VERSION); - authoringtool->setValue(authbuffer); - - domAsset::domUp_axisRef yup = daeSafeCast( asset->createAndPlace( COLLADA_ELEMENT_UP_AXIS ) ); - yup->setValue(UPAXISTYPE_Y_UP); - - domPhysics_sceneRef physicsScene = getDefaultPhysicsScene (); - domPhysics_scene::domTechnique_commonRef common = daeSafeCast(physicsScene->createAndPlace (COLLADA_ELEMENT_TECHNIQUE_COMMON)); - domTargetableFloat3Ref g = daeSafeCast(common->createAndPlace (COLLADA_ELEMENT_GRAVITY)); - btVector3 btG = getGravity (); - g->getValue().set3 (btG[0], btG[1], btG[2]); - - if (!m_dom->getScene()) - { - domCOLLADA::domScene* scene = daeSafeCast( m_dom->createAndPlace( COLLADA_ELEMENT_SCENE ) ); - { - domInstanceWithExtra* ivs = daeSafeCast( scene->createAndPlace( COLLADA_ELEMENT_INSTANCE_VISUAL_SCENE ) ); - daeURI uri; - uri.setElement( getDefaultVisualScene() ); - uri.resolveURI(); - ivs->setUrl( uri ); - } - { - domInstanceWithExtra* ips = daeSafeCast( scene->createAndPlace( COLLADA_ELEMENT_INSTANCE_PHYSICS_SCENE ) ); - daeURI uri; - uri.setElement( getDefaultPhysicsScene() ); - uri.resolveURI(); - ips->setUrl( uri ); - } - - } - } - return true; -} - -domNode* ColladaConverter::findNode (btRigidBody* rb) -{ - btRigidBodyColladaInfo* rbci = findRigidBodyColladaInfo(rb); - if (rbci) - { - return rbci->m_node; - } - return NULL; -} - -domRigid_body* ColladaConverter::findRigid_body (const char* rigidbodyName) -{ - domLibrary_physics_models_Array& physicsModelsArray = m_dom->getLibrary_physics_models_array(); - for (int i = 0; i < physicsModelsArray.getCount(); i++) - { - domLibrary_physics_models* models = physicsModelsArray[i]; - domPhysics_model_Array& modelArray = models->getPhysics_model_array(); - for (int j = 0; j < modelArray.getCount(); j++) - { - domPhysics_model* model = modelArray[j]; - domRigid_body_Array& rigidBodyArray = model->getRigid_body_array (); - for (int k = 0; k < rigidBodyArray.getCount(); k++) - { - domRigid_body* rigidBody = rigidBodyArray[k]; - if (!strcmp(rigidBody->getSid(), rigidbodyName)) - { - return rigidBody; - } - } - } - } - return NULL; -} - -domRigid_body* ColladaConverter::findRigid_body (const btRigidBody* rb) -{ - btRigidBodyColladaInfo* rbci = findRigidBodyColladaInfo(rb); - if (rbci) - { - return rbci->m_domRigidBody; - } - return NULL; -} - -domInstance_rigid_body* ColladaConverter::findRigid_body_instance (const char* nodeName) -{ - domPhysics_scene* physicsScene = getDefaultPhysicsScene (); - domInstance_physics_model_Array& physicsModelInstances = physicsScene->getInstance_physics_model_array (); - for (int i = 0; i < physicsModelInstances.getCount(); i++) - { - domInstance_physics_model* physicsModelInstance = physicsModelInstances[i]; - domInstance_rigid_body_Array& rigidBodyInstances = physicsModelInstance->getInstance_rigid_body_array (); - for (int j = 0; j < rigidBodyInstances.getCount(); j++) - { - domInstance_rigid_body* rigidBodyInstance = rigidBodyInstances[j]; - if (!strcmp(rigidBodyInstance->getTarget().getID(), nodeName)) - { - return rigidBodyInstance; - } - } - } - return NULL; -} - -domInstance_rigid_body* ColladaConverter::findRigid_body_instance (btRigidBody* rb) -{ - btRigidBodyColladaInfo* rbci = findRigidBodyColladaInfo(rb); - if (rbci) - { - return rbci->m_instanceRigidBody; - } - return NULL; -} - -domRigid_constraint* ColladaConverter::findRigid_constraint (const char* constraintName) -{ - domLibrary_physics_models_Array& physicsModelsArray = m_dom->getLibrary_physics_models_array(); - for (int i = 0; i < physicsModelsArray.getCount(); i++) - { - domLibrary_physics_models* models = physicsModelsArray[i]; - domPhysics_model_Array& modelArray = models->getPhysics_model_array(); - for (int j = 0; j < modelArray.getCount(); j++) - { - domPhysics_model* model = modelArray[j]; - domRigid_constraint_Array& rigidConstraintArray = model->getRigid_constraint_array (); - for (int k = 0; k < rigidConstraintArray.getCount(); k++) - { - domRigid_constraint* rigidConstraint = rigidConstraintArray[k]; - if (!strcmp(rigidConstraint->getSid(), constraintName)) - { - printf("Found rigid constraint in DOM already.\n"); - return rigidConstraint; - } - } - } - } - return NULL; -} - -btRigidConstraintColladaInfo* ColladaConverter::findRigidConstraintColladaInfo(btTypedConstraint* constraint) -{ - ///we assume that the btTypedConstraint getUid matches btRigidConstraintColladaInfo getUid - int uid = constraint->getUid(); - if (uid==-1) - return NULL;//not in the map - - btHashKeyPtr tmpKey(uid); - btRigidConstraintColladaInfo** rbciPtr = this->m_constraintUserInfoHashMap.find(tmpKey); - btRigidConstraintColladaInfo* rbci = NULL; - if (rbciPtr) - { - rbci = *rbciPtr; - } - return rbci; - -} - -domRigid_constraint* ColladaConverter::findRigid_constraint (btTypedConstraint* constraint) -{ - - btRigidConstraintColladaInfo* rcci = findRigidConstraintColladaInfo(constraint); - - if (rcci) - { - return rcci->m_domRigidConstraint; - } - return NULL; -} - -domGeometry* ColladaConverter::findGeometry (const char* shapeName) -{ - domLibrary_geometries* geomLib = getDefaultGeomLib (); - domGeometry_Array& geometryArray = geomLib->getGeometry_array (); - for (int i = 0; i < geometryArray.getCount (); i++) - { - domGeometry* geom = geometryArray[i]; - if (!geom->getId()) - continue; - - if (!strcmp(geom->getId(), shapeName)) - { - return geom; - } - } - return NULL; -} -/* -domGeometry* ColladaConverter::findGeometry (btCollisionShape* shape) -{ - if (shape->getTypedUserInfo ()) - { - btShapeColladaInfo* sci = (btShapeColladaInfo*)tui; - return sci->m_geometry; - } - return 0; -} -*/ - - -void ColladaConverter::prepareConstraints(ConstraintInput& input) -{ - domInstance_physics_model* instance_physicsModelRef = input.m_instance_physicsModelRef; - domPhysics_modelRef model = input.m_model; - - for (unsigned int c=0;cgetInstance_rigid_constraint_array().getCount();c++) - { - domInstance_rigid_constraintRef constraintRef = instance_physicsModelRef->getInstance_rigid_constraint_array().get(c); - xsNCName constraintName = constraintRef->getConstraint(); - - if (constraintName && model) - { - //try to find the rigid body - int numConstraints= model->getRigid_constraint_array().getCount(); - - for (int r=0;rgetRigid_constraint_array()[r]; - - if (rigidConstraintRef->getSid() && !strcmp(rigidConstraintRef->getSid(),constraintName)) - { - - //two bodies - const domRigid_constraint::domRef_attachmentRef attachRefBody = rigidConstraintRef->getRef_attachment(); - const domRigid_constraint::domAttachmentRef attachBody1 = rigidConstraintRef->getAttachment(); - - daeString orgUri0 = attachRefBody ? attachRefBody->getRigid_body().getOriginalURI() : ""; - daeString orgUri1 = attachBody1 ? attachBody1->getRigid_body().getOriginalURI() : ""; - btRigidBody* body0=0,*body1=0; - - for (int i=0;igetSid(); - if (name) - { - if (!strcmp(name, orgUri0)) - { - body0=body; - } - if (!strcmp(name,orgUri1)) - { - body1=body; - } - } - } - - - - const domRigid_constraint::domAttachmentRef attachOtherBody = rigidConstraintRef->getAttachment(); - - - const domRigid_constraint::domTechnique_commonRef commonRef = rigidConstraintRef->getTechnique_common(); - - domFloat3 flMin = commonRef->getLimits()->getLinear()->getMin()->getValue(); - btVector3 minLinearLimit(flMin.get(0),flMin.get(1),flMin.get(2)); - - domFloat3 flMax = commonRef->getLimits()->getLinear()->getMax()->getValue(); - btVector3 maxLinearLimit(flMax.get(0),flMax.get(1),flMax.get(2)); - - domFloat3 coneMinLimit = commonRef->getLimits()->getSwing_cone_and_twist()->getMin()->getValue(); - btVector3 angularMin(coneMinLimit.get(0),coneMinLimit.get(1),coneMinLimit.get(2)); - - domFloat3 coneMaxLimit = commonRef->getLimits()->getSwing_cone_and_twist()->getMax()->getValue(); - btVector3 angularMax(coneMaxLimit.get(0),coneMaxLimit.get(1),coneMaxLimit.get(2)); - - { - - btTransform attachFrameRef0; - attachFrameRef0.setIdentity(); - - if (attachRefBody) - { - attachFrameRef0 = - GetbtTransformFromCOLLADA_DOM - ( - emptyMatrixArray, - attachRefBody->getRotate_array(), - attachRefBody->getTranslate_array(), - m_unitMeterScaling); - } - - btTransform attachFrameOther; - attachFrameOther.setIdentity(); - if (attachBody1) - { - attachFrameOther = - GetbtTransformFromCOLLADA_DOM - ( - emptyMatrixArray, - attachBody1->getRotate_array(), - attachBody1->getTranslate_array(), - m_unitMeterScaling - ); - } - - domBool interpenetrate = false; - if (commonRef->getInterpenetrate()) - interpenetrate = commonRef->getInterpenetrate()->getValue(); - bool disableCollisionsBetweenLinkedBodies = interpenetrate; - //convert INF / -INF into lower > upper - - //currently there is a hack in the DOM to detect INF / -INF - //see daeMetaAttribute.cpp - //INF -> 999999.9 - //-INF -> -999999.9 - float linearCheckThreshold = 999999.0; - float angularCheckThreshold = 180.0;//check this - - - - - //free means upper < lower, - //locked means upper == lower - //limited means upper > lower - //limitIndex: first 3 are linear, next 3 are angular - - btVector3 linearLowerLimits = minLinearLimit; - btVector3 linearUpperLimits = maxLinearLimit; - btVector3 angularLowerLimits = angularMin; - btVector3 angularUpperLimits = angularMax; - { - for (int i=0;i<3;i++) - { - if ((linearLowerLimits[i] < -linearCheckThreshold) || - (linearUpperLimits[i] > linearCheckThreshold)) - { - //disable limits - linearLowerLimits[i] = 1; - linearUpperLimits[i] = 0; - } - - if ((angularLowerLimits[i] < -angularCheckThreshold) || - (angularUpperLimits[i] > angularCheckThreshold)) - { - //disable limits - angularLowerLimits[i] = 1; - angularUpperLimits[i] = 0; - } - } - } - - - if (body0 || body1) - { - //swap so that first body is non-zero - btTypedConstraint* constraint = NULL; - if (!body0) - { - constraint = createUniversalD6Constraint( - body1, - body0, - attachFrameOther, - attachFrameRef0, - linearLowerLimits, - linearUpperLimits, - angularLowerLimits, - angularUpperLimits, - disableCollisionsBetweenLinkedBodies - ); - } else - { - constraint = createUniversalD6Constraint( - body0, - body1, - attachFrameRef0, - attachFrameOther, - linearLowerLimits, - linearUpperLimits, - angularLowerLimits, - angularUpperLimits, - disableCollisionsBetweenLinkedBodies - ); - } - - // XXX: User must free this name before destroy the constraint - btRigidConstraintColladaInfo* tui = new btRigidConstraintColladaInfo (constraint,rigidConstraintRef, constraintRef); - m_constraintUserInfoHashMap.insert(btHashKeyPtr(tui->getUid()),tui); - - printf("Added constraint %s to the world\n", rigidConstraintRef->getSid()); - } else - { - printf("Error: Cannot find Rigidbodies(%s,%s) for constraint %s\n",orgUri0,orgUri1,constraintName); - } - - - } - - - - } - } - } - - } -} - -void ColladaConverter::PreparePhysicsObject(struct btRigidBodyInput& input, bool isDynamics, float mass,btCollisionShape* colShape, const btVector3& linearVelocity, const btVector3& angularVelocity) -{ - btTransform startTransform; - startTransform.setIdentity(); - btVector3 startScale(1.f,1.f,1.f); - - //The 'target' points to a graphics element/node, which contains the start (world) transform - daeElementRef elem = input.m_instanceRigidBodyRef->getTarget().getElement(); - - xsNCName bodyName; - if (elem) - { - domNodeRef node = *(domNodeRef*)&elem; - bodyName = node->getName(); - input.m_nodeRef = node; - - //find transform of the node that this rigidbody maps to - - - startTransform = GetbtTransformFromCOLLADA_DOM( - node->getMatrix_array(), - node->getRotate_array(), - node->getTranslate_array(), - m_unitMeterScaling - ); - - unsigned int i; - for (i=0;igetScale_array().getCount();i++) - { - domScaleRef scaleRef = node->getScale_array()[i]; - domFloat3 fl3 = scaleRef->getValue(); - startScale = btVector3(fl3.get(0),fl3.get(1),fl3.get(2)); - } - - } - - if (startScale.length() < 0.001) - printf("invalid scale\n"); - - colShape->setLocalScaling(startScale); - - btRigidBody* body= createRigidBody(isDynamics,mass,startTransform,colShape); - if (body) - { - btRigidBodyColladaInfo* tui = new btRigidBodyColladaInfo (body,input.m_nodeRef, input.m_rigidBodyRef2, input.m_instanceRigidBodyRef); - m_rbUserInfoHashMap.insert(btHashKeyPtr(tui->getUid()),tui); - - /* if the body is dynamic restore it's velocity */ - if (body->getInvMass() != 0.0) - { - body->setLinearVelocity (linearVelocity); - body->setAngularVelocity (angularVelocity); - } - //body->setName (strdup(bodyName)); - //printf("node = %s\n", body->getName()); - //printf("shape = %s\n", colShape->getShapeName()); - } - -} - -domLibrary_geometries* ColladaConverter::getDefaultGeomLib () -{ - domLibrary_geometries* geometriesLib = NULL; - - if (m_dom->getLibrary_geometries_array().getCount()) - { - return m_dom->getLibrary_geometries_array()[0]; - } else { - geometriesLib = daeSafeCast(m_dom->createAndPlace (COLLADA_ELEMENT_LIBRARY_GEOMETRIES)); - return geometriesLib; - } -} - -domLibrary_physics_materials* ColladaConverter::getDefaultMaterialsLib () -{ - domLibrary_physics_materials* materialsLib = NULL; - - if (m_dom->getLibrary_physics_materials_array().getCount()) - { - domLibrary_physics_materials_Array& physicsMaterialsArray = m_dom->getLibrary_physics_materials_array(); - for (int i = 0; i < physicsMaterialsArray.getCount(); i++) - { - materialsLib = physicsMaterialsArray[i]; - if (!materialsLib->getName()) - { - continue; - } - if (!strcmp("Bullet-PhysicsMaterials", materialsLib->getName())) - { - return materialsLib; - } - } - } - if( getVerbosity() > SILENT ) - printf("No library physics materials. Creating one\n"); - materialsLib = daeSafeCast (m_dom->createAndPlace (COLLADA_ELEMENT_LIBRARY_PHYSICS_MATERIALS)); - materialsLib->setName("Bullet-PhysicsMaterials"); - return materialsLib; -} - -domPhysics_model* ColladaConverter::getDefaultPhysicsModel () -{ - domLibrary_physics_models* modelsLib = NULL; - - if (m_dom->getLibrary_physics_models_array().getCount()) - { - domLibrary_physics_models_Array& physicsModelsArray = m_dom->getLibrary_physics_models_array(); - for (int i = 0; i < physicsModelsArray.getCount(); i++) - { - modelsLib = physicsModelsArray[i]; - domPhysics_model_Array& modelArray = modelsLib->getPhysics_model_array(); - for (int j = 0; j < modelArray.getCount(); j++) - { - domPhysics_model* model = modelArray[j]; - if (!strcmp("Bullet-PhysicsModel", model->getId())) - { - printf("Found Bullet-PhysicsModel\n"); - return model; - } - } - } - } else { - if( getVerbosity() > SILENT ) - printf("No library physics model. Creating one\n"); - modelsLib = daeSafeCast (m_dom->createAndPlace (COLLADA_ELEMENT_LIBRARY_PHYSICS_MODELS )); - } - - /* Always create in first physics models library */ - modelsLib = m_dom->getLibrary_physics_models_array()[0]; - - if( getVerbosity() > SILENT ) - printf("Could not find physics model. Creating one\n"); - - domPhysics_model* physicsModel = daeSafeCast(modelsLib->createAndPlace (COLLADA_ELEMENT_PHYSICS_MODEL)); - - physicsModel->setName("Bullet-PhysicsModel"); - physicsModel->setId("Bullet-PhysicsModel"); - - return physicsModel; -} - - -domInstance_physics_model* ColladaConverter::getDefaultInstancePhysicsModel () -{ - domPhysics_scene* physicsScene = getDefaultPhysicsScene (); - domInstance_physics_model_Array& physicsModelInstances = physicsScene->getInstance_physics_model_array (); - for (int i = 0; i < physicsModelInstances.getCount (); i++) - { - domInstance_physics_model* physicsModelInstance = physicsModelInstances[i]; - if (!strcmp(physicsModelInstance->getUrl().getURI(), "#Bullet-PhysicsModel")) - { - printf("Found Bullet-PhysicsModel instance\n"); - return physicsModelInstance; - } - } - if( getVerbosity() > SILENT ) - printf("Creating Bullet-PhysicsModel instance\n"); - domInstance_physics_model* physicsModelInstance = daeSafeCast(physicsScene->createAndPlace (COLLADA_ELEMENT_INSTANCE_PHYSICS_MODEL)); - physicsModelInstance->setUrl ("#Bullet-PhysicsModel"); - return physicsModelInstance; -} - -domPhysics_scene* ColladaConverter::getDefaultPhysicsScene () -{ - domLibrary_physics_scenes* physicsScenesLib = NULL; - - if (m_dom->getLibrary_physics_scenes_array().getCount ()) - { - /* Always return the first physics scene */ - physicsScenesLib = m_dom->getLibrary_physics_scenes_array()[0]; - if (physicsScenesLib->getPhysics_scene_array().getCount()) - { - return physicsScenesLib->getPhysics_scene_array()[0]; - } - } else { - physicsScenesLib = (domLibrary_physics_scenes*)m_dom->createAndPlace (COLLADA_ELEMENT_LIBRARY_PHYSICS_SCENES); - domPhysics_scene* physicsScene = daeSafeCast(physicsScenesLib->createAndPlace (COLLADA_ELEMENT_PHYSICS_SCENE)); - physicsScene->setId("Scene-Physics"); - physicsScene->setName("MyPhysicsScene"); - return physicsScene; - } - - return 0; - -} - - -domVisual_scene* ColladaConverter::getDefaultVisualScene () -{ - domLibrary_visual_scenes* visualScenesLib = NULL; - - if (m_dom->getLibrary_visual_scenes_array().getCount ()) - { - /* Always return the first visual scene */ - visualScenesLib = m_dom->getLibrary_visual_scenes_array()[0]; - if (visualScenesLib->getVisual_scene_array().getCount()) - { - return visualScenesLib->getVisual_scene_array()[0]; - } - } else { - visualScenesLib = (domLibrary_visual_scenes*)m_dom->createAndPlace (COLLADA_ELEMENT_LIBRARY_VISUAL_SCENES); - domVisual_scene* visualScene = daeSafeCast(visualScenesLib->createAndPlace (COLLADA_ELEMENT_VISUAL_SCENE)); - visualScene->setId("Scene"); - visualScene->setName("MyScene"); - return visualScene; - } - - return 0; -} - - -void ColladaConverter::addConvexHull (btCollisionShape* shape, const char* convexNodeName) -{ - domGeometry* geoConcave = 0; - - { - btConvexShape* hullShape = (btConvexShape*)shape; - btShapeHull* triHull = new btShapeHull (hullShape); - if (triHull->buildHull (0.0) == false) - { - printf("Failed to build triangle mesh of hull\n"); - return; - } - - domLibrary_geometries* geomLib = getDefaultGeomLib (); - - geoConcave = findGeometry (convexNodeName); - - /* Already in the dom */ - if (geoConcave) - return; - - geoConcave = daeSafeCast( geomLib->createAndPlace( COLLADA_ELEMENT_GEOMETRY ) ); - if ( geoConcave == NULL ) - { - printf("Failed to create the geometry element\n"); - return; - } - char nodeName[256]; - sprintf(nodeName,"RenderMesh%s",convexNodeName); - - //set it's id - geoConcave->setId( nodeName ); - geoConcave->setName ( nodeName); - - domMesh *mesh = daeSafeCast( geoConcave->createAndPlace( COLLADA_ELEMENT_MESH ) ); - if ( mesh == NULL ) - { - printf("Failed to create the mesh element\n"); - return; - } - - //we will need 3 sources for this mesh. positions, normals, and UVs - domSource *positionSrc = daeSafeCast( mesh->createAndPlace( COLLADA_ELEMENT_SOURCE ) ); - if (!positionSrc) - { - printf("Failed to create position source\n"); - return; - } - - //create the positions source. - std::string srcName = std::string(nodeName) + std::string("-positions"); - positionSrc->setId( srcName.c_str() ); - domFloat_array *fa = daeSafeCast( positionSrc->createAndPlace( COLLADA_ELEMENT_FLOAT_ARRAY ) ); - if (fa == NULL) - { - printf("Failed to create float array\n"); - return; - } - std::string arrayName = srcName + std::string("-array"); - fa->setId( arrayName.c_str() ); - fa->setCount( triHull->numVertices () * 3); - - domListOfFloats &posSrcArray = fa->getValue(); - for (int i = 0; i < triHull->numVertices (); i++) - { - btVector3 p = triHull->getVertexPointer()[i]; - posSrcArray.append3(p.getX(), p.getY(), p.getZ()); - } - - //create the accessor - domSource::domTechnique_common *srcTeqC = daeSafeCast( positionSrc->createAndPlace( COLLADA_ELEMENT_TECHNIQUE_COMMON ) ); - domAccessor *acc = daeSafeCast( srcTeqC->createAndPlace( COLLADA_ELEMENT_ACCESSOR ) ); - acc->setCount( triHull->numVertices () ); - acc->setStride( 3 ); - daeURI uri; - uri.setElement( fa ); - uri.resolveURI(); - acc->setSource( uri ); - - domParam *param = daeSafeCast( acc->createAndPlace( COLLADA_ELEMENT_PARAM ) ); - param->setName( "X" ); - param->setType( "float" ); - param = daeSafeCast( acc->createAndPlace( COLLADA_ELEMENT_PARAM ) ); - param->setName( "Y" ); - param->setType( "float" ); - param = daeSafeCast( acc->createAndPlace( COLLADA_ELEMENT_PARAM ) ); - param->setName( "Z" ); - param->setType( "float" ); - - domVertices *verts = daeSafeCast( mesh->createAndPlace( COLLADA_ELEMENT_VERTICES ) ); - srcName = std::string(nodeName) + std::string("-vertices"); - verts->setId( srcName.c_str() ); - domInputLocal *inputLocal = daeSafeCast( verts->createAndPlace( COLLADA_ELEMENT_INPUT ) ); - inputLocal->setSemantic( COMMON_PROFILE_INPUT_POSITION ); - uri.setElement( positionSrc ); - uri.resolveURI(); - inputLocal->setSource( uri ); - - domTriangles *tris = daeSafeCast( mesh->createAndPlace( COLLADA_ELEMENT_TRIANGLES ) ); - tris->setCount( triHull->numTriangles() ); - domInputLocalOffset *ilo = daeSafeCast( tris->createAndPlace( COLLADA_ELEMENT_INPUT ) ); - ilo->setSemantic( COMMON_PROFILE_INPUT_VERTEX ); - ilo->setOffset( 0 ); - uri.setElement( verts ); - uri.resolveURI(); - ilo->setSource( uri ); - - domP *p = daeSafeCast( tris->createAndPlace( COLLADA_ELEMENT_P ) ); - - domListOfUInts &indices = p->getValue(); - //each set of three is one number per input-offset. for this example it's vert, normal, uv. - //three sets of three indices per triangle - - const unsigned int* indexBase = triHull->getIndexPointer (); - for (int t = 0; t < triHull->numTriangles(); t++) - { - int* index = (int*)indexBase; - indices.append3( index[0], index[1], index[2]); - indexBase += 3; - } - - delete triHull; - } - { - domLibrary_geometries* geomLib = getDefaultGeomLib (); - domGeometry* geo = daeSafeCast( geomLib->createAndPlace( COLLADA_ELEMENT_GEOMETRY ) ); - - if ( geo == NULL ) - { - printf("Failed to create the geometry element\n"); - return; - } - - //set it's id - geo->setId( convexNodeName ); - geo->setName ( convexNodeName); - // - domConvex_mesh* meshRef = daeSafeCast( geo->createAndPlace( COLLADA_ELEMENT_CONVEX_MESH ) ); - - if ( meshRef == NULL ) - { - printf("Failed to create the mesh element\n"); - return; - } - - daeURI uri; - uri.setElement( geoConcave); - uri.resolveURI(); - - - meshRef->setConvex_hull_of(uri); - - - - - - - - - } - - -} - -void ColladaConverter::addConvexMesh (btCollisionShape* shape, const char* nodeName) -{ - printf("convex Triangle Mesh Shape\n"); - printf("ERROR: Unsupported.\n"); -} - -void ColladaConverter::addScaledConcaveMesh(btCollisionShape* shape, const char* nodeName) -{ - btScaledBvhTriangleMeshShape* scaledShape = (btScaledBvhTriangleMeshShape*)shape; - btBvhTriangleMeshShape* meshShape = scaledShape->getChildShape(); - btStridingMeshInterface* meshInterface = meshShape->getMeshInterface (); - addConcaveMeshInternal(meshInterface,nodeName); -} - - - -void ColladaConverter::addConcaveMesh(btCollisionShape* shape, const char* nodeName) -{ - btTriangleMeshShape* meshShape = (btTriangleMeshShape*)shape; - btStridingMeshInterface* meshInterface = meshShape->getMeshInterface (); - addConcaveMeshInternal(meshInterface,nodeName); - -} - -void ColladaConverter::addGimpactMesh(btCollisionShape* shape, const char* shapeName) -{ - btGImpactShapeInterface* meshShapeInterface = (btGImpactShapeInterface*) shape; - switch (meshShapeInterface->getGImpactShapeType()) - { - case CONST_GIMPACT_TRIMESH_SHAPE: - { - btGImpactMeshShape* meshShape = (btGImpactMeshShape*) shape; - btStridingMeshInterface* meshInterface = meshShape->getMeshInterface (); - addConcaveMeshInternal(meshInterface,shapeName); - break; - } - default: - { - } - }; -} - -void ColladaConverter::addConcaveMeshInternal(btStridingMeshInterface* meshInterface , const char* nodeName) -{ - - domLibrary_geometries* geomLib = getDefaultGeomLib (); - domGeometry* geo = findGeometry (nodeName); - - if (geo) - return; - - geo = daeSafeCast( geomLib->createAndPlace( COLLADA_ELEMENT_GEOMETRY ) ); - if ( geo == NULL ) - { - printf("Failed to create the geometry element\n"); - return; - } - //set it's id - geo->setId( nodeName ); - geo->setName ( nodeName); - - if( getVerbosity() > NORMAL ) - printf("numSubParts = \n",meshInterface->getNumSubParts ()); - - for (int i = 0; i < meshInterface->getNumSubParts (); i++) - { - - - domMesh *mesh = daeSafeCast( geo->createAndPlace( COLLADA_ELEMENT_MESH ) ); - if ( mesh == NULL ) - { - printf("Failed to create the mesh element\n"); - return; - } - - const unsigned char* vertexBase = NULL; - int numVerts; - PHY_ScalarType vertexType; - int vertexStride; - const unsigned char* indexBase = NULL; - int indexStride; - int numFaces; - PHY_ScalarType indexType; - - meshInterface->getLockedReadOnlyVertexIndexBase (&vertexBase, numVerts, vertexType, vertexStride, &indexBase, indexStride, numFaces, indexType, i); - - if( getVerbosity() > NORMAL ) - { - printf("meshInterface subpart[%d].numVerts = %d\n",i,numVerts); - printf("meshInterface subpart[%d].numFaces = %d\n",i,numFaces); - printf("meshInterface subpart[%d].indexType= %d\n",i,indexType); - } - - - btAssert (vertexBase); - btAssert (indexBase); - btAssert (vertexType == PHY_FLOAT); - - - //we will need 3 sources for this mesh. positions, normals, and UVs - domSource *positionSrc = daeSafeCast( mesh->createAndPlace( COLLADA_ELEMENT_SOURCE ) ); - - //create the positions source. - std::string srcName = std::string(nodeName) + std::string("-position"); - positionSrc->setId( srcName.c_str() ); - domFloat_array *fa = daeSafeCast( positionSrc->createAndPlace( COLLADA_ELEMENT_FLOAT_ARRAY ) ); - std::string arrayName = srcName + std::string("-array"); - fa->setId( arrayName.c_str() ); - fa->setCount( numVerts * 3); - - domListOfFloats &posSrcArray = fa->getValue(); - for (int v = 0; v < numVerts; v++) - { - float* p = (float*)vertexBase; - posSrcArray.append3(p[0], p[1], p[2]); - vertexBase += vertexStride; - } - - //create the accessor - domSource::domTechnique_common *srcTeqC = daeSafeCast( positionSrc->createAndPlace( COLLADA_ELEMENT_TECHNIQUE_COMMON ) ); - domAccessor *acc = daeSafeCast( srcTeqC->createAndPlace( COLLADA_ELEMENT_ACCESSOR ) ); - acc->setCount( numVerts ); - acc->setStride( 3 ); - daeURI uri; - uri.setElement( fa ); - uri.resolveURI(); - acc->setSource( uri ); - - domParam *param = daeSafeCast( acc->createAndPlace( COLLADA_ELEMENT_PARAM ) ); - param->setName( "X" ); - param->setType( "float" ); - param = daeSafeCast( acc->createAndPlace( COLLADA_ELEMENT_PARAM ) ); - param->setName( "Y" ); - param->setType( "float" ); - param = daeSafeCast( acc->createAndPlace( COLLADA_ELEMENT_PARAM ) ); - param->setName( "Z" ); - param->setType( "float" ); - - domVertices *verts = daeSafeCast( mesh->createAndPlace( COLLADA_ELEMENT_VERTICES ) ); - srcName = std::string(nodeName) + std::string("-vertex"); - verts->setId( srcName.c_str() ); - domInputLocal *inputLocal = daeSafeCast( verts->createAndPlace( COLLADA_ELEMENT_INPUT ) ); - inputLocal->setSemantic( COMMON_PROFILE_INPUT_POSITION ); - uri.setElement( positionSrc ); - uri.resolveURI(); - inputLocal->setSource( uri ); - - - domTriangles *tris = daeSafeCast( mesh->createAndPlace( COLLADA_ELEMENT_TRIANGLES ) ); - tris->setCount( numFaces ); - domInputLocalOffset *ilo = daeSafeCast( tris->createAndPlace( COLLADA_ELEMENT_INPUT ) ); - ilo->setSemantic( COMMON_PROFILE_INPUT_VERTEX ); - ilo->setOffset( 0 ); - uri.setElement( verts ); - uri.resolveURI(); - ilo->setSource( uri ); - - domP *p = daeSafeCast( tris->createAndPlace( COLLADA_ELEMENT_P ) ); - - domListOfUInts &indices = p->getValue(); - //each set of three is one number per input-offset. for this example it's vert, normal, uv. - //three sets of three indices per triangle - - if (indexType == PHY_SHORT) - { - for (int t = 0; t < numFaces; t++) - { - unsigned short int* index = (unsigned short int*)indexBase; - indices.append3( index[0], index[1], index[2]); - indexBase += indexStride; - } - } else - { - for (int t = 0; t < numFaces; t++) - { - unsigned int* index = (unsigned int*)indexBase; - indices.append3( index[0], index[1], index[2]); - indexBase += indexStride; - } - } - - meshInterface->unLockReadOnlyVertexBase (i); - } -} - -void ColladaConverter::buildShapeNew (btCollisionShape* shape, void* domTechniqueCommon, const char* shapeName,bool isChild,const btTransform& childTrans) -{ - domRigid_body::domTechnique_common* common = (domRigid_body::domTechnique_common*)domTechniqueCommon; - domRigid_body::domTechnique_common::domShape* colladaShape = (domRigid_body::domTechnique_common::domShape*)common->createAndPlace (COLLADA_ELEMENT_SHAPE); - - if (isChild) - { - { - domTranslate* translation = (domTranslate*)colladaShape->createAndPlace (COLLADA_ELEMENT_TRANSLATE); - { - btVector3 np = childTrans.getOrigin(); - translation->getValue().append(np[0]); - translation->getValue().append(np[1]); - translation->getValue().append(np[2]); - } - domRotate* rotation = (domRotate*)colladaShape->createAndPlace (COLLADA_ELEMENT_ROTATE); - { - btQuaternion quat = childTrans.getRotation(); - btVector3 axis(quat.getX(),quat.getY(),quat.getZ()); - axis[3] = 0.f; - //check for axis length - btScalar len = axis.length2(); - if (len < SIMD_EPSILON*SIMD_EPSILON) - axis = btVector3(1.f,0.f,0.f); - else - axis /= btSqrt(len); - rotation->getValue().set(0,axis[0]); - rotation->getValue().set(1,axis[1]); - rotation->getValue().set(2,axis[2]); - rotation->getValue().set(3,quat.getAngle()*SIMD_DEGS_PER_RAD); - } - } - } - switch (shape->getShapeType()) - { - case BOX_SHAPE_PROXYTYPE: - { - addConvexHull (shape, shapeName); - btBoxShape* bs = (btBoxShape*)shape; - btVector3 halfe = bs->getHalfExtentsWithMargin(); - domBox* box = (domBox*)colladaShape->createAndPlace (COLLADA_ELEMENT_BOX); - domBox::domHalf_extents* he = (domBox::domHalf_extents*)box->createAndPlace (COLLADA_ELEMENT_HALF_EXTENTS); - he->getValue().set3 (halfe[0], halfe[1], halfe[2]); - } - break; - case SPHERE_SHAPE_PROXYTYPE: - { - addConvexHull (shape, shapeName); - btSphereShape* ss = (btSphereShape*)shape; - domSphere* sphere = (domSphere*)colladaShape->createAndPlace (COLLADA_ELEMENT_SPHERE); - domSphere::domRadius* radius = (domSphere::domRadius*)sphere->createAndPlace (COLLADA_ELEMENT_RADIUS); - radius->setValue (ss->getRadius()); - } - break; - case CYLINDER_SHAPE_PROXYTYPE: - { - btCylinderShape* cs = (btCylinderShape*)shape; - domCylinder* cylinder = (domCylinder*)colladaShape->createAndPlace (COLLADA_ELEMENT_CYLINDER); - domCylinder::domRadius* radius = (domCylinder::domRadius*)cylinder->createAndPlace (COLLADA_ELEMENT_RADIUS); - domCylinder::domHeight* height = (domCylinder::domHeight*)cylinder->createAndPlace (COLLADA_ELEMENT_HEIGHT); - domFloat2 radius2; - radius2.set2(cs->getRadius(),cs->getRadius()); - radius->setValue (radius2); - height->setValue (cs->getHalfExtentsWithMargin()[1] * 1.0); - } - break; - case STATIC_PLANE_PROXYTYPE: - { - btStaticPlaneShape* ps = (btStaticPlaneShape*)shape; - btVector3 n = ps->getPlaneNormal (); - btScalar d = ps->getPlaneConstant (); - domPlane* plane = (domPlane*)colladaShape->createAndPlace (COLLADA_ELEMENT_PLANE); - domPlane::domEquation* equation = (domPlane::domEquation*)plane->createAndPlace (COLLADA_ELEMENT_EQUATION); - equation->getValue().set4 (n[0], n[1], n[2], d); - } - break; - case CONE_SHAPE_PROXYTYPE: - { - printf("unhandled cone type\n"); - } - break; - case COMPOUND_SHAPE_PROXYTYPE: - { - btCompoundShape* cs = (btCompoundShape*)shape; - for (int i = 0; i < cs->getNumChildShapes (); i++) - { - btCollisionShape* child_shape = cs->getChildShape (i); - char childShapeName[512]; - sprintf(childShapeName,"%s-Child%d",shapeName,i); - buildShapeNew (child_shape, domTechniqueCommon, childShapeName,true, cs->getChildTransform(i)); - } - } - break; - case CONVEX_TRIANGLEMESH_SHAPE_PROXYTYPE: - { - addConvexMesh (shape, shapeName); - char shapeURL[512]; - snprintf(&shapeURL[0], 512, "#%s", shapeName); - domInstance_geometry* gi = (domInstance_geometry*)colladaShape->createAndPlace (COLLADA_ELEMENT_INSTANCE_GEOMETRY); - gi->setUrl (shapeURL); - } - break; - case CONVEX_HULL_SHAPE_PROXYTYPE: - { - addConvexHull (shape, shapeName); - char shapeURL[512]; - snprintf(&shapeURL[0], 512, "#%s", shapeName); - domInstance_geometry* gi = (domInstance_geometry*)colladaShape->createAndPlace (COLLADA_ELEMENT_INSTANCE_GEOMETRY); - gi->setUrl (shapeURL); - } - break; - case GIMPACT_SHAPE_PROXYTYPE: - { - btGImpactShapeInterface* meshShapeInterface = (btGImpactShapeInterface*) shape; - switch (meshShapeInterface->getGImpactShapeType()) - { - case CONST_GIMPACT_TRIMESH_SHAPE: - { - addGimpactMesh (shape, shapeName); - char shapeURL[512]; - snprintf(&shapeURL[0], 512, "#%s", shapeName); - domInstance_geometry* gi = (domInstance_geometry*)colladaShape->createAndPlace (COLLADA_ELEMENT_INSTANCE_GEOMETRY); - gi->setUrl (shapeURL); - break; - } - - case CONST_GIMPACT_COMPOUND_SHAPE: - { - btGImpactCompoundShape* gimpactCompoundShape = (btGImpactCompoundShape*)shape; - - for (int i = 0; i < gimpactCompoundShape->getNumChildShapes (); i++) - { - btCollisionShape* child_shape = gimpactCompoundShape->getChildShape(i); - char childShapeName[512]; - sprintf(childShapeName,"%s-Child%d",shapeName,i); - buildShapeNew (child_shape, domTechniqueCommon, childShapeName,true, gimpactCompoundShape->getChildTransform(i)); - } - break; - } - - default: - { - } - }; - - - } - break; - case SCALED_TRIANGLE_MESH_SHAPE_PROXYTYPE: - { - addScaledConcaveMesh (shape, shapeName); - char shapeURL[512]; - snprintf(&shapeURL[0], 512, "#%s", shapeName); - domInstance_geometry* gi = (domInstance_geometry*)colladaShape->createAndPlace (COLLADA_ELEMENT_INSTANCE_GEOMETRY); - gi->setUrl (shapeURL); - break; - } - case TRIANGLE_MESH_SHAPE_PROXYTYPE: - { - addConcaveMesh (shape, shapeName); - char shapeURL[512]; - snprintf(&shapeURL[0], 512, "#%s", shapeName); - domInstance_geometry* gi = (domInstance_geometry*)colladaShape->createAndPlace (COLLADA_ELEMENT_INSTANCE_GEOMETRY); - gi->setUrl (shapeURL); - } - break; - default: - printf("Unhandled %d\n", shape->getShapeType ()); - break; - } -} - - -domRigid_body* ColladaConverter::addRigidBody (btRigidBody* rb, const char* nodeName, const char* shapeName) -{ - btCollisionShape* shape = rb->getCollisionShape (); - char bodyName[512]; - char material_name[512]; - snprintf(&bodyName[0], 512, "%s-RigidBody", nodeName); - domPhysics_model* physicsModel = getDefaultPhysicsModel (); - domRigid_body* colladaRigidBody = daeSafeCast(physicsModel->createAndPlace (COLLADA_ELEMENT_RIGID_BODY)); - colladaRigidBody->setSid (bodyName); - colladaRigidBody->setName (bodyName); - domRigid_body::domTechnique_common* common = daeSafeCast(colladaRigidBody->createAndPlace (COLLADA_ELEMENT_TECHNIQUE_COMMON)); - domRigid_body::domTechnique_common::domDynamic* dynamic = daeSafeCast(common->createAndPlace (COLLADA_ELEMENT_DYNAMIC)); - domTargetableFloat* mass = daeSafeCast(common->createAndPlace (COLLADA_ELEMENT_MASS)); - domTargetableFloat3* inertia = daeSafeCast(common->createAndPlace (COLLADA_ELEMENT_INERTIA)); - if (rb->getInvMass() == 0.0) - { - domFloat3 inertia_value; - inertia_value.append (0.0); - inertia_value.append (0.0); - inertia_value.append (0.0); - mass->setValue (0.0); - dynamic->setValue (false); - inertia->setValue (inertia_value); - } else { - btVector3 II = rb->getInvInertiaDiagLocal (); - domFloat3 inertia_value; - inertia_value.append (II[0] == 0.0 ? 0.0 : 1.0 / II[0]); - inertia_value.append (II[1] == 0.0 ? 0.0 : 1.0 / II[1]); - inertia_value.append (II[2] == 0.0 ? 0.0 : 1.0 / II[2]); - mass->setValue (1.0/rb->getInvMass()); - dynamic->setValue (true); - inertia->setValue (inertia_value); - } - //domRigid_body::domTechnique_common::domMass_frame* massFrame = daeSafeCast(common->createAndPlace (COLLADA_ELEMENT_MASS_FRAME)); - - // physics material - domInstance_physics_material* mi = (domInstance_physics_material*)common->createAndPlace (COLLADA_ELEMENT_INSTANCE_PHYSICS_MATERIAL); - snprintf(&material_name[0], 512, "#%s-PhysicsMaterial", nodeName); - mi->setUrl (material_name); - // collision shape - - buildShapeNew (shape, common, shapeName); - - return colladaRigidBody; -} - - -domNode* ColladaConverter::addNode (btRigidBody* rb, const char* nodeName, const char* shapeName) -{ - domVisual_scene* vscene = getDefaultVisualScene (); - - domNode* node = (domNode*)vscene->createAndPlace (COLLADA_ELEMENT_NODE); - - node->setId (nodeName); - node->setName (nodeName); - - domTranslate* translation = (domTranslate*)node->createAndPlace (COLLADA_ELEMENT_TRANSLATE); - { - btVector3 np = rb->getWorldTransform().getOrigin(); - translation->getValue().append(np[0]); - translation->getValue().append(np[1]); - translation->getValue().append(np[2]); - } - domRotate* rotation = (domRotate*)node->createAndPlace (COLLADA_ELEMENT_ROTATE); - { - btQuaternion quat = rb->getWorldTransform().getRotation(); - btVector3 axis(quat.getX(),quat.getY(),quat.getZ()); - axis[3] = 0.f; - //check for axis length - btScalar len = axis.length2(); - if (len < SIMD_EPSILON*SIMD_EPSILON) - axis = btVector3(1.f,0.f,0.f); - else - axis /= btSqrt(len); - rotation->getValue().set(0,axis[0]); - rotation->getValue().set(1,axis[1]); - rotation->getValue().set(2,axis[2]); - rotation->getValue().set(3,quat.getAngle()*SIMD_DEGS_PER_RAD); - } - - domInstance_geometryRef gr = daeSafeCast(node->createAndPlace(COLLADA_ELEMENT_INSTANCE_GEOMETRY)); - - char shapeURL[512]; - snprintf(&shapeURL[0], 512, "#%s", shapeName); - gr->setUrl(shapeURL); - gr->createAndPlace(COLLADA_ELEMENT_BIND_MATERIAL)->createAndPlace(COLLADA_ELEMENT_TECHNIQUE_COMMON); - - /* - - - - - */ - - return node; -} - - -domRigid_constraint* ColladaConverter::addConstraint (btTypedConstraint* originalConstraint, const char* constraintName) -{ - btGeneric6DofConstraint* constraint = 0; - btGeneric6DofConstraint* tmpConstraint = 0; - - switch (originalConstraint->getConstraintType()) - { - - case D6_CONSTRAINT_TYPE: - { - constraint = (btGeneric6DofConstraint*)originalConstraint; - break; - } - - case POINT2POINT_CONSTRAINT_TYPE: - { - btPoint2PointConstraint* p2p = (btPoint2PointConstraint*) originalConstraint; - bool useLinearReferenceFrameA = true; - btTransform frameA,frameB; - frameA.setIdentity(); - frameB.setIdentity(); - frameA.setOrigin(p2p->getPivotInA()); - frameB.setOrigin(p2p->getPivotInB()); - tmpConstraint = new btGeneric6DofConstraint(p2p->getRigidBodyA(),p2p->getRigidBodyB(),frameA,frameB,useLinearReferenceFrameA); - tmpConstraint->setLinearLowerLimit(btVector3(0,0,0)); - tmpConstraint->setLinearUpperLimit(btVector3(0,0,0)); - constraint = tmpConstraint; - break; - } - case HINGE_CONSTRAINT_TYPE: - { - btHingeConstraint* hinge = (btHingeConstraint*)originalConstraint; - bool useLinearReferenceFrameA = true; - btTransform frameB = hinge->getBFrame();//todo: remove this flipping - frameB.getBasis()[0][2] *= btScalar(-1.); - frameB.getBasis()[1][2] *= btScalar(-1.); - frameB.getBasis()[2][2] *= btScalar(-1.); - - tmpConstraint = new btGeneric6DofConstraint(hinge->getRigidBodyA(),hinge->getRigidBodyB(),hinge->getAFrame(),frameB,useLinearReferenceFrameA); - tmpConstraint->setLinearLowerLimit(btVector3(0,0,0)); - tmpConstraint->setLinearUpperLimit(btVector3(0,0,0)); - tmpConstraint->setAngularLowerLimit(btVector3(0,0,1)); - tmpConstraint->setAngularUpperLimit(btVector3(0,0,-1));//maxgetConstraintType() != D6_CONSTRAINT_TYPE)) - return NULL; - - btGeneric6DofConstraint* g6c = (btGeneric6DofConstraint*)constraint; - const btRigidBody& rb1 = g6c->getRigidBodyA (); - const btRigidBody& rb2 = g6c->getRigidBodyB (); - - bool single = (findRigid_body(&rb2)==NULL); - - domPhysics_model* physicsModel = getDefaultPhysicsModel (); - domRigid_constraint* domRigidConstraint = (domRigid_constraint*)physicsModel->createAndPlace (COLLADA_ELEMENT_RIGID_CONSTRAINT); - domRigidConstraint->setName (constraintName); - domRigidConstraint->setSid (constraintName); - if (single) - { - domRigid_body* domRigidBody = findRigid_body(&rb1); - btAssert(domRigidBody); - - const char* name = domRigidBody->getName(); - btTransform rb1Frame = g6c->getFrameOffsetA (); - printf("Joint with single body: %s\n", name); - domRigid_constraint::domAttachment* attachment = (domRigid_constraint::domAttachment*)domRigidConstraint->createAndPlace (COLLADA_ELEMENT_ATTACHMENT); - attachment->setRigid_body (name); - { - domTranslate* translation = (domTranslate*)attachment->createAndPlace (COLLADA_ELEMENT_TRANSLATE); - { - btVector3 np = rb1Frame.getOrigin(); - translation->getValue().append(np[0]); - translation->getValue().append(np[1]); - translation->getValue().append(np[2]); - } - domRotate* rotation = (domRotate*)attachment->createAndPlace (COLLADA_ELEMENT_ROTATE); - { - btQuaternion quat = rb1Frame.getRotation(); - btVector3 axis(quat.getX(),quat.getY(),quat.getZ()); - axis[3] = 0.f; - //check for axis length - btScalar len = axis.length2(); - if (len < SIMD_EPSILON*SIMD_EPSILON) - axis = btVector3(1.f,0.f,0.f); - else - axis /= btSqrt(len); - rotation->getValue().set(0,axis[0]); - rotation->getValue().set(1,axis[1]); - rotation->getValue().set(2,axis[2]); - rotation->getValue().set(3,quat.getAngle()*SIMD_DEGS_PER_RAD); - } - - } - } else { - domRigid_body* domRigidBody1 = findRigid_body(&rb1); - domRigid_body* domRigidBody2 = findRigid_body(&rb2); - - const char* name1 = domRigidBody1->getName(); - const char* name2 = domRigidBody2->getName(); - - printf("Joint attached to two bodies %s and %s\n", name1, name2); - - btTransform rb1Frame = g6c->getFrameOffsetA (); - btTransform rb2Frame = g6c->getFrameOffsetB (); - domRigid_constraint::domRef_attachment* refAttachment = (domRigid_constraint::domRef_attachment*)domRigidConstraint->createAndPlace (COLLADA_ELEMENT_REF_ATTACHMENT); - domRigid_constraint::domAttachment* attachment = (domRigid_constraint::domAttachment*)domRigidConstraint->createAndPlace (COLLADA_ELEMENT_ATTACHMENT); - refAttachment->setRigid_body (name1); - attachment->setRigid_body (name2); - { - domTranslate* translation = (domTranslate*)refAttachment->createAndPlace (COLLADA_ELEMENT_TRANSLATE); - { - btVector3 np = rb1Frame.getOrigin(); - translation->getValue().append(np[0]); - translation->getValue().append(np[1]); - translation->getValue().append(np[2]); - } - domRotate* rotation = (domRotate*)refAttachment->createAndPlace (COLLADA_ELEMENT_ROTATE); - { - btQuaternion quat = rb1Frame.getRotation(); - btVector3 axis(quat.getX(),quat.getY(),quat.getZ()); - axis[3] = 0.f; - //check for axis length - btScalar len = axis.length2(); - if (len < SIMD_EPSILON*SIMD_EPSILON) - axis = btVector3(1.f,0.f,0.f); - else - axis /= btSqrt(len); - rotation->getValue().set(0,axis[0]); - rotation->getValue().set(1,axis[1]); - rotation->getValue().set(2,axis[2]); - rotation->getValue().set(3,quat.getAngle()*SIMD_DEGS_PER_RAD); - } - - } - { - domTranslate* translation = (domTranslate*)attachment->createAndPlace (COLLADA_ELEMENT_TRANSLATE); - { - btVector3 np = rb2Frame.getOrigin(); - translation->getValue().append(np[0]); - translation->getValue().append(np[1]); - translation->getValue().append(np[2]); - } - domRotate* rotation = (domRotate*)attachment->createAndPlace (COLLADA_ELEMENT_ROTATE); - { - btQuaternion quat = rb2Frame.getRotation(); - btVector3 axis(quat.getX(),quat.getY(),quat.getZ()); - axis[3] = 0.f; - //check for axis length - btScalar len = axis.length2(); - if (len < SIMD_EPSILON*SIMD_EPSILON) - axis = btVector3(1.f,0.f,0.f); - else - axis /= btSqrt(len); - rotation->getValue().set(0,axis[0]); - rotation->getValue().set(1,axis[1]); - rotation->getValue().set(2,axis[2]); - rotation->getValue().set(3,quat.getAngle()*SIMD_DEGS_PER_RAD); - } - } - } - domRigid_constraint::domTechnique_common* techniqueCommon = (domRigid_constraint::domTechnique_common*)domRigidConstraint->createAndPlace (COLLADA_ELEMENT_TECHNIQUE_COMMON); - domRigid_constraint::domTechnique_common::domEnabled* enabled = (domRigid_constraint::domTechnique_common::domEnabled*)techniqueCommon->createAndPlace (COLLADA_ELEMENT_ENABLED); - enabled->setValue (true); - domRigid_constraint::domTechnique_common::domInterpenetrate* interpenetrate = (domRigid_constraint::domTechnique_common::domInterpenetrate*)techniqueCommon->createAndPlace (COLLADA_ELEMENT_INTERPENETRATE); - interpenetrate->setValue (false); - domRigid_constraint::domTechnique_common::domLimits* limits = (domRigid_constraint::domTechnique_common::domLimits*)techniqueCommon->createAndPlace (COLLADA_ELEMENT_LIMITS); - domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist* swingConeAndTwist = (domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist*)limits->createAndPlace (COLLADA_ELEMENT_SWING_CONE_AND_TWIST); - domRigid_constraint::domTechnique_common::domLimits::domLinear* linear = (domRigid_constraint::domTechnique_common::domLimits::domLinear*)limits->createAndPlace (COLLADA_ELEMENT_LINEAR); - - { - domTargetableFloat3* min = (domTargetableFloat3*)swingConeAndTwist->createAndPlace (COLLADA_ELEMENT_MIN); - domTargetableFloat3* max = (domTargetableFloat3*)swingConeAndTwist->createAndPlace (COLLADA_ELEMENT_MAX); - btRotationalLimitMotor* limit = g6c->getRotationalLimitMotor (0); - min->getValue().set(0, limit->m_loLimit); - max->getValue().set(0, limit->m_hiLimit); - limit = g6c->getRotationalLimitMotor (1); - min->getValue().set(1, limit->m_loLimit); - max->getValue().set(1, limit->m_hiLimit); - limit = g6c->getRotationalLimitMotor (2); - min->getValue().set(2, limit->m_loLimit); - max->getValue().set(2, limit->m_hiLimit); - } - { - domTargetableFloat3* min = (domTargetableFloat3*)linear->createAndPlace (COLLADA_ELEMENT_MIN); - domTargetableFloat3* max = (domTargetableFloat3*)linear->createAndPlace (COLLADA_ELEMENT_MAX); - btTranslationalLimitMotor* limit = g6c->getTranslationalLimitMotor (); - min->getValue().set (0, limit->m_lowerLimit[0]); - min->getValue().set (1, limit->m_lowerLimit[1]); - min->getValue().set (2, limit->m_lowerLimit[2]); - max->getValue().set (0, limit->m_upperLimit[0]); - max->getValue().set (1, limit->m_upperLimit[1]); - max->getValue().set (2, limit->m_upperLimit[2]); - } - if (tmpConstraint) - delete tmpConstraint; - return domRigidConstraint; -} - -domInstance_rigid_constraint* ColladaConverter::addConstraintInstance (btTypedConstraint* constraint, const char* constraintName) -{ - domInstance_physics_model* mi = getDefaultInstancePhysicsModel (); - domInstance_rigid_constraint* rci = (domInstance_rigid_constraint*)mi->createAndPlace (COLLADA_ELEMENT_INSTANCE_RIGID_CONSTRAINT); - rci->setConstraint (constraintName); - return rci; -} - -domInstance_rigid_body* ColladaConverter::addRigidBodyInstance (btRigidBody* rb, const char* nodeName) -{ - char targetName[512]; - char bodyName[512]; - snprintf(&targetName[0], 512, "#%s", nodeName); - snprintf(&bodyName[0], 512, "%s-RigidBody", nodeName); - - domInstance_physics_model* mi = getDefaultInstancePhysicsModel (); - domInstance_rigid_body* rbi = (domInstance_rigid_body*)mi->createAndPlace (COLLADA_ELEMENT_INSTANCE_RIGID_BODY); - domInstance_rigid_body::domTechnique_common* common = (domInstance_rigid_body::domTechnique_common*)rbi->createAndPlace (COLLADA_ELEMENT_TECHNIQUE_COMMON); - - rbi->setBody (bodyName); - rbi->setTarget (targetName); - - domInstance_rigid_body::domTechnique_common::domAngular_velocity* av = (domInstance_rigid_body::domTechnique_common::domAngular_velocity*)common->createAndPlace (COLLADA_ELEMENT_ANGULAR_VELOCITY); - { - btVector3 btAv = rb->getAngularVelocity (); - av->getValue().set3 (btAv[0], btAv[1], btAv[2]); - } - domInstance_rigid_body::domTechnique_common::domVelocity* lv = (domInstance_rigid_body::domTechnique_common::domVelocity*)common->createAndPlace (COLLADA_ELEMENT_VELOCITY); - { - btVector3 btLv = rb->getLinearVelocity (); - lv->getValue().set3 (btLv[0], btLv[1], btLv[2]); - } - return rbi; -} - -void ColladaConverter::addMaterial (btRigidBody* rb, const char* nodeName) -{ - btScalar friction = rb->getFriction (); - btScalar restitution = rb->getRestitution (); - domLibrary_physics_materials* materialsLib = getDefaultMaterialsLib (); - if (!materialsLib) - { - printf("Something has gone terribly wrong.\n"); - return; - } - domPhysics_material* material = (domPhysics_material*)materialsLib->createAndPlace (COLLADA_ELEMENT_PHYSICS_MATERIAL); - char material_name[512]; - snprintf(&material_name[0], 512, "%s-PhysicsMaterial", nodeName); - material->setName (material_name); - material->setId (material_name); - domPhysics_material::domTechnique_common* material_common = (domPhysics_material::domTechnique_common*)material->createAndPlace(COLLADA_ELEMENT_TECHNIQUE_COMMON); - domTargetableFloat* mf = (domTargetableFloat*)material_common->createAndPlace (COLLADA_ELEMENT_DYNAMIC_FRICTION); - mf->setValue (friction); - mf = (domTargetableFloat*)material_common->createAndPlace (COLLADA_ELEMENT_STATIC_FRICTION); - mf->setValue (friction); - mf = (domTargetableFloat*)material_common->createAndPlace (COLLADA_ELEMENT_RESTITUTION); - mf->setValue (restitution); - -} - -void ColladaConverter::updateRigidBodyPosition (btRigidBody* body, domNode* node) -{ - // remove all translations - while (node->getTranslate_array().getCount()) - { - node->removeFromParent(node->getTranslate_array().get(0)); - } - - // remove all rotation matrices - while (node->getMatrix_array().getCount()) - { - node->removeFromParent(node->getMatrix_array().get(0)); - } - - // remove all quaternions - while (node->getRotate_array().getCount()) - { - node->removeFromParent(node->getRotate_array().get(0)); - } - - // update translation - { - domTranslateRef transl = daeSafeCast(node->createAndPlace("translate")); - btVector3 np = body->getWorldTransform().getOrigin(); - domFloat3 newPos = node->getTranslate_array().get(0)->getValue(); - newPos.set(0,np[0]); - newPos.set(1,np[1]); - newPos.set(2,np[2]); - transl->setValue(newPos); - } - - // update rotation - { - domRotateRef rot = daeSafeCast(node->createAndPlace("rotate")); - btQuaternion quat = body->getCenterOfMassTransform().getRotation(); - btVector3 axis(quat.getX(),quat.getY(),quat.getZ()); - axis[3] = 0.f; - //check for axis length - btScalar len = axis.length2(); - if (len < SIMD_EPSILON*SIMD_EPSILON) - axis = btVector3(1.f,0.f,0.f); - else - axis /= btSqrt(len); - rot->getValue().set(0,axis[0]); - rot->getValue().set(1,axis[1]); - rot->getValue().set(2,axis[2]); - rot->getValue().set(3,quat.getAngle()*SIMD_DEGS_PER_RAD); - } -} - -void ColladaConverter::updateRigidBodyVelocity (btRigidBody* body) -{ - domInstance_rigid_bodyRef rigidBodyInstance = findRigid_body_instance (body); - if (!rigidBodyInstance) - return; - - printf("Updating rigid body velocities %ps\n", body); - domInstance_rigid_body::domTechnique_common* common = NULL; - domInstance_rigid_body::domTechnique_common::domAngular_velocity* av = NULL; - domInstance_rigid_body::domTechnique_common::domVelocity* lv = NULL; - - if (rigidBodyInstance->getTechnique_common()) - { - common = rigidBodyInstance->getTechnique_common (); - av = common->getAngular_velocity (); - lv = common->getVelocity (); - if (av) - common->removeFromParent (av); - if (lv) - common->removeFromParent (lv); - - av = NULL; - lv = NULL; - } else { - common = daeSafeCast(rigidBodyInstance->createAndPlace (COLLADA_ELEMENT_TECHNIQUE_COMMON)); - } - av = daeSafeCast(common->createAndPlace (COLLADA_ELEMENT_ANGULAR_VELOCITY)); - lv = daeSafeCast(common->createAndPlace (COLLADA_ELEMENT_VELOCITY)); - - { - btVector3 btAv = body->getAngularVelocity (); - av->getValue().set3 (btAv[0], btAv[1], btAv[2]); - } - { - btVector3 btLv = body->getLinearVelocity (); - lv->getValue().set3 (btLv[0], btLv[1], btLv[2]); - } -} - -void ColladaConverter::updateConstraint (btTypedConstraint* constraint, domRigid_constraint* rigidConstraint) -{ - if (constraint->getConstraintType() != D6_CONSTRAINT_TYPE) - return; - - btGeneric6DofConstraint* g6c = (btGeneric6DofConstraint*)constraint; - const btRigidBody& rb1 = g6c->getRigidBodyA (); - const btRigidBody& rb2 = g6c->getRigidBodyB (); - bool single = (findRigid_body(&rb2)==NULL); - - if (single) - { - printf("Joint with single body\n"); - domRigid_body* domRigidBody = findRigid_body(&rb1); - const char* name = domRigidBody->getSid(); - btTransform rb1Frame = g6c->getFrameOffsetA (); - domRigid_constraint::domAttachmentRef attachment = daeSafeCast(rigidConstraint->createAndPlace (COLLADA_ELEMENT_ATTACHMENT)); - attachment->setRigid_body (name); - { - domTranslateRef translation = daeSafeCast(attachment->createAndPlace (COLLADA_ELEMENT_TRANSLATE)); - { - btVector3 np = rb1Frame.getOrigin(); - translation->getValue().append(np[0]); - translation->getValue().append(np[1]); - translation->getValue().append(np[2]); - } - domRotateRef rotation = daeSafeCast(attachment->createAndPlace (COLLADA_ELEMENT_ROTATE)); - { - btQuaternion quat = rb1Frame.getRotation(); - btVector3 axis(quat.getX(),quat.getY(),quat.getZ()); - axis[3] = 0.f; - //check for axis length - btScalar len = axis.length2(); - if (len < SIMD_EPSILON*SIMD_EPSILON) - axis = btVector3(1.f,0.f,0.f); - else - axis /= btSqrt(len); - rotation->getValue().set(0,axis[0]); - rotation->getValue().set(1,axis[1]); - rotation->getValue().set(2,axis[2]); - rotation->getValue().set(3,quat.getAngle()*SIMD_DEGS_PER_RAD); - } - - } - } else { - printf("Joint attached to two bodies\n"); - domRigid_body* domRigidBody1 = findRigid_body(&rb1); - domRigid_body* domRigidBody2 = findRigid_body(&rb2); - - const char* name1 = domRigidBody1->getSid(); - const char* name2 = domRigidBody2->getSid(); - - btTransform rb1Frame = g6c->getFrameOffsetA (); - btTransform rb2Frame = g6c->getFrameOffsetB (); - domRigid_constraint::domRef_attachmentRef refAttachment = daeSafeCast(rigidConstraint->createAndPlace (COLLADA_ELEMENT_REF_ATTACHMENT)); - domRigid_constraint::domAttachmentRef attachment = daeSafeCast(rigidConstraint->createAndPlace (COLLADA_ELEMENT_ATTACHMENT)); - refAttachment->setRigid_body (name1); - attachment->setRigid_body (name2); - { - domTranslate* translation = (domTranslate*)refAttachment->createAndPlace (COLLADA_ELEMENT_TRANSLATE); - { - btVector3 np = rb1Frame.getOrigin(); - translation->getValue().append(np[0]); - translation->getValue().append(np[1]); - translation->getValue().append(np[2]); - } - domRotate* rotation = (domRotate*)refAttachment->createAndPlace (COLLADA_ELEMENT_ROTATE); - { - btQuaternion quat = rb1Frame.getRotation(); - btVector3 axis(quat.getX(),quat.getY(),quat.getZ()); - axis[3] = 0.f; - //check for axis length - btScalar len = axis.length2(); - if (len < SIMD_EPSILON*SIMD_EPSILON) - axis = btVector3(1.f,0.f,0.f); - else - axis /= btSqrt(len); - rotation->getValue().set(0,axis[0]); - rotation->getValue().set(1,axis[1]); - rotation->getValue().set(2,axis[2]); - rotation->getValue().set(3,quat.getAngle()*SIMD_DEGS_PER_RAD); - } - - } - { - domTranslate* translation = (domTranslate*)attachment->createAndPlace (COLLADA_ELEMENT_TRANSLATE); - { - btVector3 np = rb2Frame.getOrigin(); - translation->getValue().append(np[0]); - translation->getValue().append(np[1]); - translation->getValue().append(np[2]); - } - domRotate* rotation = (domRotate*)attachment->createAndPlace (COLLADA_ELEMENT_ROTATE); - { - btQuaternion quat = rb2Frame.getRotation(); - btVector3 axis(quat.getX(),quat.getY(),quat.getZ()); - axis[3] = 0.f; - //check for axis length - btScalar len = axis.length2(); - if (len < SIMD_EPSILON*SIMD_EPSILON) - axis = btVector3(1.f,0.f,0.f); - else - axis /= btSqrt(len); - rotation->getValue().set(0,axis[0]); - rotation->getValue().set(1,axis[1]); - rotation->getValue().set(2,axis[2]); - rotation->getValue().set(3,quat.getAngle()*SIMD_DEGS_PER_RAD); - } - } - } - domRigid_constraint::domTechnique_commonRef techniqueCommon = daeSafeCast(rigidConstraint->createAndPlace (COLLADA_ELEMENT_TECHNIQUE_COMMON)); - domRigid_constraint::domTechnique_common::domEnabledRef enabled = daeSafeCast(techniqueCommon->createAndPlace (COLLADA_ELEMENT_ENABLED)); - enabled->setValue (true); - domRigid_constraint::domTechnique_common::domInterpenetrateRef interpenetrate = daeSafeCast(techniqueCommon->createAndPlace (COLLADA_ELEMENT_INTERPENETRATE)); - interpenetrate->setValue (false); - domRigid_constraint::domTechnique_common::domLimitsRef limits = daeSafeCast(techniqueCommon->createAndPlace (COLLADA_ELEMENT_LIMITS)); - domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twistRef swingConeAndTwist = daeSafeCast(limits->createAndPlace (COLLADA_ELEMENT_SWING_CONE_AND_TWIST)); - domRigid_constraint::domTechnique_common::domLimits::domLinearRef linear = daeSafeCast(limits->createAndPlace (COLLADA_ELEMENT_LINEAR)); - - { - domTargetableFloat3* min = (domTargetableFloat3*)swingConeAndTwist->createAndPlace (COLLADA_ELEMENT_MIN); - domTargetableFloat3* max = (domTargetableFloat3*)swingConeAndTwist->createAndPlace (COLLADA_ELEMENT_MAX); - btRotationalLimitMotor* limit = g6c->getRotationalLimitMotor (0); - min->getValue().set(0, limit->m_loLimit); - max->getValue().set(0, limit->m_hiLimit); - limit = g6c->getRotationalLimitMotor (1); - min->getValue().set(1, limit->m_loLimit); - max->getValue().set(1, limit->m_hiLimit); - limit = g6c->getRotationalLimitMotor (2); - min->getValue().set(2, limit->m_loLimit); - max->getValue().set(2, limit->m_hiLimit); - } - { - domTargetableFloat3* min = (domTargetableFloat3*)linear->createAndPlace (COLLADA_ELEMENT_MIN); - domTargetableFloat3* max = (domTargetableFloat3*)linear->createAndPlace (COLLADA_ELEMENT_MAX); - btTranslationalLimitMotor* limit = g6c->getTranslationalLimitMotor (); - min->getValue().set (0, limit->m_lowerLimit[0]); - min->getValue().set (1, limit->m_lowerLimit[1]); - min->getValue().set (2, limit->m_lowerLimit[2]); - max->getValue().set (0, limit->m_upperLimit[0]); - max->getValue().set (1, limit->m_upperLimit[1]); - max->getValue().set (2, limit->m_upperLimit[2]); - } -} - -void ColladaConverter::syncOrAddGeometry (btCollisionShape* shape, const char* nodeName) -{ -} - -void ColladaConverter::syncOrAddRigidBody (btRigidBody* body) -{ - domNodeRef nodeRef = findNode (body); - domLibrary_geometriesRef geomLib = getDefaultGeomLib (); - - static int random_node_name_key = 0; - if (nodeRef != NULL) - { - updateRigidBodyPosition (body, nodeRef); - updateRigidBodyVelocity (body); - printf("Updating %s in the COLLADA DOM.\n", nodeRef->getId() ? nodeRef->getId() : ""); - } else { - /* This is a new body. */ - const char* shapeName = NULL; - const char* nodeName = NULL; - char nodeNameGen[512]; - char shapeNameGen[512]; - - domNode* dNode=NULL; - domRigid_body* dRigidBody=NULL; - domInstance_rigid_body* dInstanceRigidBody=NULL; - - if( getVerbosity() > SILENT ) - printf("New body\n"); - btCollisionShape* shape = body->getCollisionShape (); - - if (!nodeName) - { - //repeat until we have a unique name - do - { - snprintf(&nodeNameGen[0], 512, "BulletUnnamed-%d", random_node_name_key++); - } - while (findNode(&nodeNameGen[0])); - - nodeName = &nodeNameGen[0]; - } - if (!shapeName) - { - snprintf(&shapeNameGen[0], 512, "%s-Geometry", nodeName); - shapeName = &shapeNameGen[0]; - } - - if( getVerbosity() > SILENT ) - printf("Adding %s to COLLADA DOM.\n", nodeName); - - - switch (shape->getShapeType()) - { - case STATIC_PLANE_PROXYTYPE: - case BOX_SHAPE_PROXYTYPE: - case SPHERE_SHAPE_PROXYTYPE: - case CYLINDER_SHAPE_PROXYTYPE: - case CONVEX_TRIANGLEMESH_SHAPE_PROXYTYPE: - case CONVEX_HULL_SHAPE_PROXYTYPE: - { - char concaveShapeName[256]; - sprintf(concaveShapeName,"RenderMesh%s",shapeName); - dNode = addNode (body, nodeName, concaveShapeName); - break; - } - case SCALED_TRIANGLE_MESH_SHAPE_PROXYTYPE: - { - addScaledConcaveMesh (shape, shapeName); - btScaledBvhTriangleMeshShape* scaledShape = (btScaledBvhTriangleMeshShape*)shape; - dNode = addNode (body, nodeName, shapeName); - //add scaling - domScale* scale= (domScale*)dNode->createAndPlace (COLLADA_ELEMENT_SCALE); - { - btVector3 localScaling = scaledShape->getLocalScaling(); - scale->getValue().append(localScaling[0]); - scale->getValue().append(localScaling[1]); - scale->getValue().append(localScaling[2]); - } - - - break; - } - case TRIANGLE_MESH_SHAPE_PROXYTYPE: - { - addConcaveMesh (shape, shapeName); - dNode = addNode (body, nodeName, shapeName); - break; - } - case GIMPACT_SHAPE_PROXYTYPE: - { - addGimpactMesh (shape, shapeName); - dNode = addNode (body, nodeName, shapeName); - break; - } - default: - { - if (!shape->isConvex () && !shape->isCompound() && (shape->getShapeType()!=STATIC_PLANE_PROXYTYPE)) - { - printf("Unknown shape type. %d Skipping rigidbody.\n", shape->getShapeType()); - return; - } - dNode = addNode (body, nodeName, shapeName); - }; - - }; - - - - addMaterial (body, nodeName); - - dRigidBody = addRigidBody (body, nodeName, shapeName); - dInstanceRigidBody = addRigidBodyInstance (body, nodeName); - - - btRigidBodyColladaInfo* value = new btRigidBodyColladaInfo(body,dNode,dRigidBody,dInstanceRigidBody); - m_rbUserInfoHashMap.insert(btHashKeyPtr(value->getUid()),value); - } -} - -void ColladaConverter::syncOrAddConstraint (btTypedConstraint* constraint) -{ - domRigid_constraintRef rigidConstraint = findRigid_constraint (constraint); - - static int random_node_name_key = 0; - if (rigidConstraint) - { - updateConstraint (constraint, rigidConstraint); - } else { - - - char namebuf[512]; - const char* constraintName = NULL; - if (!constraintName) - { - // generate one, and repeat until we have a unique name - do - { - sprintf(&namebuf[0], "BulletUnnamedConstraint-%d", random_node_name_key++); - } - while (findNode(&namebuf[0])); - - constraintName = &namebuf[0]; - } - - domRigid_constraint* dRigidConstraint = addConstraint (constraint, constraintName); - if (!dRigidConstraint) - return; - - domInstance_rigid_constraint* dInstanceRigidConstraint = addConstraintInstance (constraint, constraintName); - - btRigidConstraintColladaInfo* value = new btRigidConstraintColladaInfo(constraint,dRigidConstraint,dInstanceRigidConstraint); - this->m_constraintUserInfoHashMap.insert(btHashKeyPtr(value->getUid()),value); - - - } -} - -bool ColladaConverter::save(const char* filename) -{ - if (!instantiateDom ()) - { - return false; - } - - int i; - - /* Dump the scene */ - for (i = 0; i < getNumRigidBodies (); i++) - { - syncOrAddRigidBody (getRigidBody(i)); - } - - /* Dump the constraints */ - for (i = 0; i < getNumConstraints (); i++) - { - syncOrAddConstraint (getConstraint(i)); - } - - { - m_collada->saveAs (filename); - } -#if 0 - if (m_collada) - { - for (int i=0;igetTranslate_array().getCount()) - { - domTranslate* transl = (domTranslate*) m_colladadomNodes[i]->createAndPlace("translate"); - transl->getValue().append(0.); - transl->getValue().append(0.); - transl->getValue().append(0.); - } - - while (m_colladadomNodes[i]->getTranslate_array().getCount() > 1) - { - m_colladadomNodes[i]->removeFromParent(m_colladadomNodes[i]->getTranslate_array().get(1)); - //m_colladadomNodes[i]->getTranslate_array().removeIndex(1); - } - - { - - btVector3 np = m_rigidBodies[i]->getWorldTransform().getOrigin(); - domFloat3 newPos = m_colladadomNodes[i]->getTranslate_array().get(0)->getValue(); - newPos.set(0,np[0]); - newPos.set(1,np[1]); - newPos.set(2,np[2]); - m_colladadomNodes[i]->getTranslate_array().get(0)->setValue(newPos); - - } - - - if (!m_colladadomNodes[i]->getRotate_array().getCount()) - { - domRotate* rot = (domRotate*)m_colladadomNodes[i]->createAndPlace("rotate"); - rot->getValue().append(1.0); - rot->getValue().append(0.0); - rot->getValue().append(0.0); - rot->getValue().append(0.0); - } - - while (m_colladadomNodes[i]->getRotate_array().getCount()>1) - { - m_colladadomNodes[i]->removeFromParent(m_colladadomNodes[i]->getRotate_array().get(1)); - //m_colladadomNodes[i]->getRotate_array().removeIndex(1); - - } - - { - btQuaternion quat = m_rigidBodies[i]->getCenterOfMassTransform().getRotation(); - btVector3 axis(quat.getX(),quat.getY(),quat.getZ()); - axis[3] = 0.f; - //check for axis length - btScalar len = axis.length2(); - if (len < SIMD_EPSILON*SIMD_EPSILON) - axis = btVector3(1.f,0.f,0.f); - else - axis /= btSqrt(len); - m_colladadomNodes[i]->getRotate_array().get(0)->getValue().set(0,axis[0]); - m_colladadomNodes[i]->getRotate_array().get(0)->getValue().set(1,axis[1]); - m_colladadomNodes[i]->getRotate_array().get(0)->getValue().set(2,axis[2]); - m_colladadomNodes[i]->getRotate_array().get(0)->getValue().set(3,quat.getAngle()*SIMD_DEGS_PER_RAD); - } - - while (m_colladadomNodes[i]->getMatrix_array().getCount()) - { - m_colladadomNodes[i]->removeFromParent(m_colladadomNodes[i]->getMatrix_array().get(0)); - //m_colladadomNodes[i]->getMatrix_array().removeIndex(0); - } - } - char saveName[550]; - static int saveCount=1; - sprintf(saveName,"%s%i",getLastFileName(),saveCount++); - char* name = &saveName[0]; - if (name[0] == '/') - { - name = &saveName[1]; - } - - if (m_dom->getAsset()->getContributor_array().getCount()) - { - if (!m_dom->getAsset()->getContributor_array().get(0)->getAuthor()) - { - m_dom->getAsset()->getContributor_array().get(0)->createAndPlace("author"); - } - - m_dom->getAsset()->getContributor_array().get(0)->getAuthor()->setValue - ("http://bulletphysics.com Erwin Coumans"); - - if (!m_dom->getAsset()->getContributor_array().get(0)->getAuthoring_tool()) - { - m_dom->getAsset()->getContributor_array().get(0)->createAndPlace("authoring_tool"); - } - - m_dom->getAsset()->getContributor_array().get(0)->getAuthoring_tool()->setValue -#ifdef WIN32 - ("Bullet ColladaPhysicsViewer-Win32-0.8"); -#else -#ifdef __APPLE__ - ("Bullet ColladaPhysicsViewer-MacOSX-0.8"); -#else - ("Bullet ColladaPhysicsViewer-UnknownPlatform-0.8"); -#endif -#endif - if (!m_dom->getAsset()->getContributor_array().get(0)->getComments()) - { - m_dom->getAsset()->getContributor_array().get(0)->createAndPlace("comments"); - } - m_dom->getAsset()->getContributor_array().get(0)->getComments()->setValue - ("Comments to Physics Forum at http://www.continuousphysics.com/Bullet/phpBB2/index.php"); - } - - m_collada->saveAs(name); - return true; - - } -#endif - return false; -} - -//some code that de-mangles the windows filename passed in as argument - - -char* ColladaConverter::getLastFileName() -{ - return m_cleaned_filename; -} - - -char* ColladaConverter::fixFileName(const char* lpCmdLine) -{ - - int i; - for (i=0;i<513;i++) - { - m_cleaned_filename[i]=0; - } - - // We might get a windows-style path on the command line, this can mess up the DOM which expects - // all paths to be URI's. This block of code does some conversion to try and make the input - // compliant without breaking the ability to accept a properly formatted URI. Right now this only - // displays the first filename - const char *in = lpCmdLine; - char* out = m_cleaned_filename; - *out = '\0'; - // If the first character is a ", skip it (filenames with spaces in them are quoted) - if(*in == '\"') - { - in++; - } - if(*(in+1) == ':') - { - // Second character is a :, assume we have a path with a drive letter and add a slash at the beginning - *(out++) = '/'; - } - - for(i =0; i<512; i++) - { - // If we hit a null or a quote, stop copying. This will get just the first filename. - if(*in == '\0' || *in == '\"') - break; - // Copy while swapping backslashes for forward ones - if(*in == '\\') - { - *out = '/'; - } - else - { - *out = *in; - } - in++; - out++; - } - - - return m_cleaned_filename; -} - -btCollisionShape* ColladaConverter::createPlaneShape(const btVector3& planeNormal,btScalar planeConstant) -{ - btCollisionShape* planeShape = new btStaticPlaneShape(planeNormal,planeConstant); - m_allocatedCollisionShapes.push_back(planeShape); - - return planeShape; -} - -btCollisionShape* ColladaConverter::createBoxShape(const btVector3& halfExtents) -{ - btCollisionShape* shape = new btBoxShape(halfExtents); - m_allocatedCollisionShapes.push_back(shape); - return shape; -} - -btCollisionShape* ColladaConverter::createSphereShape(btScalar radius) -{ - btCollisionShape* shape = new btSphereShape(radius); - m_allocatedCollisionShapes.push_back(shape); - return shape; -} - -btCompoundShape* ColladaConverter::createCompoundShape() -{ - btCompoundShape* shape = new btCompoundShape(); - m_allocatedCollisionShapes.push_back(shape); - return shape; -} - - - - -btCollisionShape* ColladaConverter::createCylinderShapeY(btScalar radius,btScalar height) -{ - btCollisionShape* shape = new btCylinderShape(btVector3(radius,height,radius)); - m_allocatedCollisionShapes.push_back(shape); - return shape; -} - -btTriangleMesh* ColladaConverter::createTriangleMeshContainer() -{ - btTriangleMesh* meshContainer = new btTriangleMesh(m_use32bitIndices,m_use4componentVertices); - m_allocatedTriangleMeshContainers.push_back(meshContainer); - return meshContainer; -} - -btConvexHullShape* ColladaConverter::createConvexHullShape() -{ - btConvexHullShape* shape = new btConvexHullShape(); - m_allocatedCollisionShapes.push_back(shape); - return shape; -} - -btCollisionShape* ColladaConverter::createBvhTriangleMeshShape(btTriangleMesh* trimesh) -{ - bool useQuantizedAabbCompression = true; - btCollisionShape* shape = new btBvhTriangleMeshShape(trimesh,useQuantizedAabbCompression); - m_allocatedCollisionShapes.push_back(shape); - return shape; -} - -btCollisionShape* ColladaConverter::createGimpactShape(btTriangleMesh* trimesh) -{ - btGImpactMeshShape* shape = new btGImpactMeshShape(trimesh); - shape->setMargin(0.f); - shape->updateBound(); - m_allocatedCollisionShapes.push_back(shape); - return shape; -} - -btCollisionShape* ColladaConverter::createConvexTriangleMeshShape(btTriangleMesh* trimesh) -{ - btCollisionShape* shape = new btConvexTriangleMeshShape(trimesh); - m_allocatedCollisionShapes.push_back(shape); - return shape; -} - - -int ColladaConverter::getNumCollisionShapes() const -{ - return m_allocatedCollisionShapes.size(); -} - -btCollisionShape* ColladaConverter::getCollisionShape(int shapeIndex) -{ - return m_allocatedCollisionShapes[shapeIndex]; -} - - -void ColladaConverter::deleteAllocatedCollisionShapes() -{ - int i; - for (i=0;igetTechnique_common(); - if (techniqueRef) - { - - if (techniqueRef->getMass()) - { - rbOutput.m_mass = techniqueRef->getMass()->getValue(); - } - if (techniqueRef->getDynamic()) - { - rbOutput.m_isDynamics = techniqueRef->getDynamic()->getValue(); - } - //a hack to interpret PhysX profile: - //when is true, make false... - //using the DOM is a pain... - const domExtra_Array& extraArray = rbInput.m_rigidBodyRef2->getExtra_array(); - unsigned int s=0; - - for (s = 0;s< extraArray.getCount();s++) - { - const domExtraRef extraRef = extraArray[s]; - const domTechnique_Array techniqueArray = extraRef->getTechnique_array(); - unsigned int t=0; - for (t=0;tgetContents(); - unsigned int u = 0; - for (u=0;ugetElementName(); - if (elemName && !strcmp(elemName,"kinematic")) - { - //daeMemoryRef memRef = elemRef->getValuePointer(); - - //daeBool hasVal = elemRef->hasValue(); - - //COLLADA_TYPE::TypeEnum mytype = elemRef->getElementType(); - //how can I make this cast safe? - const domAny* myAny = (const domAny*)elemRef.cast(); - daeString myVal = myAny->getValue(); - if (myVal) - { - if (!strcmp(myVal,"true")) - { - printf("revert bug in PhysX .dae export -> true means false\n"); - rbOutput.m_isDynamics = false; - } - } - } - } - } - } - -// -// -// 0.399999976 -// false - - - - //shapes - for (s=0;sgetShape_array().getCount();s++) - { - domRigid_body::domTechnique_common::domShapeRef shapeRef = techniqueRef->getShape_array()[s]; - - rbOutput.m_colShape = 0; - //future shape instancing - //rbOutput.m_colShape = findShapeForShapeRef(&shapeRef) - - - if (rbOutput.m_colShape) - { - - } else - { - - - - - if (shapeRef->getPlane()) - { - domPlaneRef planeRef = shapeRef->getPlane(); - if (planeRef->getEquation()) - { - const domFloat4 planeEq = planeRef->getEquation()->getValue(); - btVector3 planeNormal(planeEq.get(0),planeEq.get(1),planeEq.get(2)); - btScalar planeConstant = planeEq.get(3)*m_unitMeterScaling; - rbOutput.m_colShape = createPlaneShape(planeNormal,planeConstant); - } - - } - - if (shapeRef->getBox()) - { - domBoxRef boxRef = shapeRef->getBox(); - domBox::domHalf_extentsRef domHalfExtentsRef = boxRef->getHalf_extents(); - domFloat3& halfExtents = domHalfExtentsRef->getValue(); - float x = halfExtents.get(0)*m_unitMeterScaling; - float y = halfExtents.get(1)*m_unitMeterScaling; - float z = halfExtents.get(2)*m_unitMeterScaling; - rbOutput.m_colShape = createBoxShape(btVector3(x,y,z)); - } - if (shapeRef->getSphere()) - { - domSphereRef sphereRef = shapeRef->getSphere(); - domSphere::domRadiusRef radiusRef = sphereRef->getRadius(); - domFloat radius = radiusRef->getValue()*m_unitMeterScaling; - rbOutput.m_colShape = createSphereShape(radius); - } - - if (shapeRef->getCylinder()) - { - domCylinderRef cylinderRef = shapeRef->getCylinder(); - domFloat height = cylinderRef->getHeight()->getValue()*m_unitMeterScaling; - domFloat2 radius2 = cylinderRef->getRadius()->getValue(); - domFloat radius0 = radius2.get(0)*m_unitMeterScaling; - - //Cylinder around the local Y axis - rbOutput.m_colShape = createCylinderShapeY(radius0,height); - } - - if (shapeRef->getInstance_geometry()) - { - const domInstance_geometryRef geomInstRef = shapeRef->getInstance_geometry(); - daeElement* geomElem = geomInstRef->getUrl().getElement(); - //elemRef->getTypeName(); - domGeometry* geom = (domGeometry*) geomElem; - if (geom && geom->getMesh()) - { - const domMeshRef meshRef = geom->getMesh(); - - //it can be either triangle mesh, or we just pick the vertices/positions - - if (meshRef->getTriangles_array().getCount()) - { - - btTriangleMesh* trimesh = createTriangleMeshContainer(); - - - for (unsigned int tg = 0;tggetTriangles_array().getCount();tg++) - { - - - domTrianglesRef triRef = meshRef->getTriangles_array()[tg]; - const domPRef pRef = triRef->getP(); - btIndexedMesh meshPart; - meshPart.m_triangleIndexStride=0; - - - - int vertexoffset = -1; - domInputLocalOffsetRef indexOffsetRef; - - - for (unsigned int w=0;wgetInput_array().getCount();w++) - { - int offset = triRef->getInput_array()[w]->getOffset(); - daeString str = triRef->getInput_array()[w]->getSemantic(); - if (!strcmp(str,"VERTEX")) - { - indexOffsetRef = triRef->getInput_array()[w]; - vertexoffset = offset; - } - if (offset > meshPart.m_triangleIndexStride) - { - meshPart.m_triangleIndexStride = offset; - } - } - meshPart.m_triangleIndexStride++; - domListOfUInts indexArray =triRef->getP()->getValue(); - - //int* m_triangleIndexBase; - - - - meshPart.m_numTriangles = triRef->getCount(); - - const domVerticesRef vertsRef = meshRef->getVertices(); - int numInputs = vertsRef->getInput_array().getCount(); - for (int i=0;igetInput_array()[i]; - daeString str = localRef->getSemantic(); - if ( !strcmp(str,"POSITION")) - { - const domURIFragmentType& frag = localRef->getSource(); - - daeElementConstRef constElem = frag.getElement(); - - const domSourceRef node = *(const domSourceRef*)&constElem; - const domFloat_arrayRef flArray = node->getFloat_array(); - if (flArray) - { - const domListOfFloats& listFloats = flArray->getValue(); - - int k=vertexoffset; - int t=0; - int vertexStride = 3;//instead of hardcoded stride, should use the 'accessor' - for (;taddTriangle(verts[0],verts[1],verts[2]); - } - } - } - } - - } - - if (rbOutput.m_isDynamics) - { - if( getVerbosity() > NORMAL ) - printf("moving concave added\n"); - //rbOutput.m_colShape = createConvexTriangleMeshShape(trimesh); - rbOutput.m_colShape = createGimpactShape(trimesh); - } else - { - if( getVerbosity() > NORMAL ) - printf("static concave triangle added\n"); - - rbOutput.m_colShape = createBvhTriangleMeshShape(trimesh); - - //rbOutput.m_colShape = new btBvhTriangleMeshShape(trimesh); - //rbOutput.m_colShape = new btConvexTriangleMeshShape(trimesh); - - //btTriangleMeshShape - } - //rbOutput.m_colShape->setTypedUserInfo (new btShapeColladaInfo (geom)); - - } else - { - - btConvexHullShape* convexHull = createConvexHullShape(); - int numAddedVerts = 0; - - const domVerticesRef vertsRef = meshRef->getVertices(); - int numInputs = vertsRef->getInput_array().getCount(); - for (int i=0;igetInput_array()[i]; - daeString str = localRef->getSemantic(); - if ( !strcmp(str,"POSITION")) - { - const domURIFragmentType& frag = localRef->getSource(); - - daeElementConstRef constElem = frag.getElement(); - - const domSourceRef node = *(const domSourceRef*)&constElem; - const domFloat_arrayRef flArray = node->getFloat_array(); - if (flArray) - { - const domListOfFloats& listFloats = flArray->getValue(); - int vertexStride = 3;//instead of hardcoded stride, should use the 'accessor' - unsigned int vertIndex = 0; - for (vertIndex = 0;vertIndex < listFloats.getCount();vertIndex+=vertexStride) - { - //btVector3 verts[3]; - domFloat fl0 = listFloats.get(vertIndex); - domFloat fl1 = listFloats.get(vertIndex+1); - domFloat fl2 = listFloats.get(vertIndex+2); - convexHull->addPoint(btVector3(fl0,fl1,fl2) * m_unitMeterScaling); - } - } - } - } - //convexHull->addPoint(); - if (numAddedVerts > 0) - { - rbOutput.m_colShape = convexHull; - //rbOutput.m_colShape->setTypedUserInfo (new btShapeColladaInfo (geom)); - } else - { - deleteShape( convexHull); - printf("no vertices found for convex hull\n"); - } - - } - - - } - - if (geom && geom->getConvex_mesh()) - { - - { - const domConvex_meshRef convexRef = geom->getConvex_mesh(); - daeElementRef otherElemRef = convexRef->getConvex_hull_of().getElement(); - if ( otherElemRef != NULL ) - { - domGeometryRef linkedGeom = *(domGeometryRef*)&otherElemRef; - if( getVerbosity() > NORMAL ) - printf( "otherLinked\n"); - } else - { - if( getVerbosity() > NORMAL ) - { - printf("convexMesh polyCount = %i\n",convexRef->getPolygons_array().getCount()); - printf("convexMesh triCount = %i\n",convexRef->getTriangles_array().getCount()); - } - - } - } - - - - btConvexHullShape* convexHullShape = createConvexHullShape(); - - //it is quite a trick to get to the vertices, using Collada. - //we are not there yet... - - const domConvex_meshRef convexRef = geom->getConvex_mesh(); - //daeString urlref = convexRef->getConvex_hull_of().getURI(); - daeString urlref2 = convexRef->getConvex_hull_of().getOriginalURI(); - if (urlref2) - { - daeElementRef otherElemRef = convexRef->getConvex_hull_of().getElement(); - // if ( otherElemRef != NULL ) - // domGeometryRef linkedGeom = *(domGeometryRef*)&otherElemRef; - - // Load all the geometry libraries - for ( unsigned int i = 0; i < m_dom->getLibrary_geometries_array().getCount(); i++) - { - domLibrary_geometriesRef libgeom = m_dom->getLibrary_geometries_array()[i]; - //int index = libgeom->findLastIndexOf(urlref2); - //can't find it - - for ( unsigned int i = 0; i < libgeom->getGeometry_array().getCount(); i++) - { - //ReadGeometry( ); - domGeometryRef lib = libgeom->getGeometry_array()[i]; - if (!strcmp(lib->getId(),urlref2+1)) // skip the # at the front of urlref2 - { - //found convex_hull geometry - domMesh *meshElement = lib->getMesh();//linkedGeom->getMesh(); - if (meshElement) - { - const domVerticesRef vertsRef = meshElement->getVertices(); - int numInputs = vertsRef->getInput_array().getCount(); - for (int i=0;igetInput_array()[i]; - daeString str = localRef->getSemantic(); - if ( !strcmp(str,"POSITION")) - { - const domURIFragmentType& frag = localRef->getSource(); - - daeElementConstRef constElem = frag.getElement(); - - const domSourceRef node = *(const domSourceRef*)&constElem; - const domFloat_arrayRef flArray = node->getFloat_array(); - if (flArray) - { - int numElem = flArray->getCount(); - const domListOfFloats& listFloats = flArray->getValue(); - - for (int k=0;k+2addPoint(btVector3(fl0,fl1,fl2) * m_unitMeterScaling); - } - - } - - } - - - } - - } - } - - - - } - } - } else { - //no getConvex_hull_of but direct vertices - const domVerticesRef vertsRef = convexRef->getVertices(); - int numInputs = vertsRef->getInput_array().getCount(); - for (int i=0;igetInput_array()[i]; - daeString str = localRef->getSemantic(); - if ( !strcmp(str,"POSITION")) - { - const domURIFragmentType& frag = localRef->getSource(); - - daeElementConstRef constElem = frag.getElement(); - - const domSourceRef node = *(const domSourceRef*)&constElem; - const domFloat_arrayRef flArray = node->getFloat_array(); - if (flArray) - { - int numElem = flArray->getCount(); - const domListOfFloats& listFloats = flArray->getValue(); - - for (int k=0;k+2addPoint(btVector3(fl0,fl1,fl2)*m_unitMeterScaling); - } - - } - } - - } - - - } - - if (convexHullShape->getNumVertices()) - { - rbOutput.m_colShape = convexHullShape; - //rbOutput.m_colShape->setTypedUserInfo (new btShapeColladaInfo (geom)); - if( getVerbosity() > NORMAL ) - printf("created convexHullShape with %i points\n",convexHullShape->getNumVertices()); - } else - { - deleteShape( convexHullShape); - if( getVerbosity() > NORMAL ) - printf("failed to create convexHullShape\n"); - } - - - //domGeometryRef linkedGeom = *(domGeometryRef*)&otherElemRef; - - if( getVerbosity() > NORMAL ) - printf("convexmesh\n"); - - } - } - - //if more then 1 shape, or a non-identity local shapetransform - //use a compound - - bool hasShapeLocalTransform = ((shapeRef->getRotate_array().getCount() > 0) || - (shapeRef->getTranslate_array().getCount() > 0)); - - if (rbOutput.m_colShape) - { - if ((techniqueRef->getShape_array().getCount()>1) || - (hasShapeLocalTransform)) - { - - if (!rbOutput.m_compoundShape) - { - rbOutput.m_compoundShape = createCompoundShape(); - } - - btTransform localTransform; - localTransform.setIdentity(); - if (hasShapeLocalTransform) - { - localTransform = GetbtTransformFromCOLLADA_DOM( - emptyMatrixArray, - shapeRef->getRotate_array(), - shapeRef->getTranslate_array(), - m_unitMeterScaling - ); - } - - rbOutput.m_compoundShape->addChildShape(localTransform,rbOutput.m_colShape); - rbOutput.m_colShape = 0; - } - } - - } - - - //for future shape instancing - //storeShapeRef(shapeRef,rbOutput.m_colShape); - - - }//for each shape - } - - -} - - - - -///those 2 virtuals are called for each constraint/physics object -btTypedConstraint* ColladaConverter::createUniversalD6Constraint( - class btRigidBody* bodyRef,class btRigidBody* bodyOther, - btTransform& localAttachmentFrameRef, - btTransform& localAttachmentOther, - const btVector3& linearMinLimits, - const btVector3& linearMaxLimits, - const btVector3& angularMinLimits, - const btVector3& angularMaxLimits, - bool disableCollisionsBetweenLinkedBodies - ) - { - if (bodyRef) - { - if (!bodyOther) - { - btRigidBody::btRigidBodyConstructionInfo cinfo(0,0,0); - bodyOther = new btRigidBody(cinfo); - //needs to be in the world! - m_dynamicsWorld->addRigidBody(bodyOther); - - bodyOther->setWorldTransform(bodyRef->getWorldTransform()); - localAttachmentOther = localAttachmentFrameRef; - - } - - bool useReferenceFrameA = true; - btGeneric6DofConstraint* genericConstraint = new btGeneric6DofConstraint( - *bodyRef,*bodyOther, - localAttachmentFrameRef,localAttachmentOther,useReferenceFrameA); - - genericConstraint->setLinearLowerLimit(linearMinLimits); - genericConstraint->setLinearUpperLimit(linearMaxLimits); - genericConstraint->setAngularLowerLimit(angularMinLimits); - genericConstraint->setAngularUpperLimit(angularMaxLimits); - - m_dynamicsWorld->addConstraint( genericConstraint,disableCollisionsBetweenLinkedBodies ); - - return genericConstraint; - } - return 0; - } - -btRigidBody* ColladaConverter::createRigidBody(bool isDynamic, - float mass, - const btTransform& startTransform, - btCollisionShape* shape) -{ - - if (!isDynamic && (mass != 0.f)) - { - printf("Warning: non-dynamic objects needs to have zero mass!\n"); - mass = 0.f; - } - - if (isDynamic && (mass == 0.f)) - { - printf("Warning: dynamic rigidbodies needs nonzero mass!\n"); - mass = 1.f; - } - - btVector3 localInertia(0,0,0); - if (isDynamic) - shape->calculateLocalInertia(mass,localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); - btRigidBody::btRigidBodyConstructionInfo cInfo(mass,myMotionState,shape,localInertia); - btRigidBody* body = new btRigidBody(cInfo); - - m_dynamicsWorld->addRigidBody(body); - return body; -} - -int ColladaConverter::getNumRigidBodies () -{ - return m_dynamicsWorld->getNumCollisionObjects(); -} - -btRigidBody* ColladaConverter::getRigidBody (int i) -{ - return btRigidBody::upcast(m_dynamicsWorld->getCollisionObjectArray ()[i]); -} - -int ColladaConverter::getNumConstraints () -{ - return m_dynamicsWorld->getNumConstraints (); -} - -btTypedConstraint* ColladaConverter::getConstraint (int i) -{ - return m_dynamicsWorld->getConstraint (i); -} - -void ColladaConverter::setGravity(const btVector3& grav) -{ - m_dynamicsWorld->setGravity(grav); -} - -btVector3 ColladaConverter::getGravity () -{ - return m_dynamicsWorld->getGravity (); -} - - -void ColladaConverter::registerRigidBody(btRigidBody* body, const char* name) -{ - if (!instantiateDom ()) - { - return; - } - - btRigidBodyColladaInfo* rbci = findRigidBodyColladaInfo(body); - - if (!rbci) - { - syncOrAddRigidBody (body); - rbci = findRigidBodyColladaInfo(body); - btAssert (rbci); - } - - // update dom - char bodyName[512]; - snprintf(&bodyName[0], 512, "%s-RigidBody", name); - rbci->m_domRigidBody->setSid (bodyName); - rbci->m_domRigidBody->setName (bodyName); - rbci->m_node->setId (name); - rbci->m_node->setName (name); - rbci->m_instanceRigidBody->setBody (bodyName); - daeURI uri; - uri.setElement( rbci->m_node ); - uri.resolveURI(); - rbci->m_instanceRigidBody->setTarget (uri); - - - int i; - for (i = 0; i < body->getNumConstraintRefs(); i++) - { - btTypedConstraint* constraint = body->getConstraintRef (i); - - // not support by the dom - if (constraint->getConstraintType() != D6_CONSTRAINT_TYPE) - continue; - - btRigidConstraintColladaInfo* rcci = findRigidConstraintColladaInfo(constraint); - - // not added to the dom yet - if (!rcci) - continue; - - domRigid_constraint* rigidConstraint = rcci->m_domRigidConstraint; - - if (&constraint->getRigidBodyA() == body) - { - domRigid_constraint::domRef_attachment* refAttachment = (domRigid_constraint::domRef_attachment*)rigidConstraint->getRef_attachment(); - refAttachment->setRigid_body (bodyName); - } else if (&constraint->getRigidBodyB() == body) { - domRigid_constraint::domAttachment* attachment = (domRigid_constraint::domAttachment*)rigidConstraint->getAttachment (); - attachment->setRigid_body (bodyName); - } - } - - -} - -void ColladaConverter::deRegisterRigidBody(btRigidBody* body) -{ - btRigidBodyColladaInfo* rbci = findRigidBodyColladaInfo (body); - - if (!rbci) - return; - - daeElement::removeFromParent (rbci->m_instanceRigidBody); - daeElement::removeFromParent (rbci->m_domRigidBody); - daeElement::removeFromParent (rbci->m_node); - - delete rbci; - - // remove from map - int uid = body->getBroadphaseProxy()->getUid(); - btHashKeyPtr tmpKey(uid); - m_rbUserInfoHashMap.remove (tmpKey); -} - -const char* ColladaConverter::getName (btRigidBody* body) -{ - btRigidBodyColladaInfo* rbci = findRigidBodyColladaInfo (body); - - if (!rbci) - return NULL; - - if (rbci->m_node->getId()) - return rbci->m_node->getId(); - else - return rbci->m_node->getSid(); -} - -void ColladaConverter::registerConstraint(btTypedConstraint* constraint, const char* name) -{ - if (!instantiateDom ()) - { - return; - } - - btRigidConstraintColladaInfo* rcci = findRigidConstraintColladaInfo(constraint); - if (!rcci) - { - syncOrAddConstraint (constraint); - rcci = findRigidConstraintColladaInfo(constraint); - } - - rcci->m_domRigidConstraint->setName(name); - rcci->m_domRigidConstraint->setSid(name); - rcci->m_domInstanceRigidConstraint->setConstraint (name); -} - -void ColladaConverter::deRegisterConstraint(btTypedConstraint* constraint) -{ - if (constraint->getConstraintType () != D6_CONSTRAINT_TYPE) - { - return; - } - - btRigidConstraintColladaInfo* rcci = findRigidConstraintColladaInfo(constraint); - - if (!rcci) - { - return; - } - - daeElement::removeFromParent (rcci->m_domInstanceRigidConstraint); - daeElement::removeFromParent (rcci->m_domRigidConstraint); - delete rcci; - - // remove from map - int uid = constraint->getUid(); - btHashKeyPtr tmpKey(uid); - m_constraintUserInfoHashMap.remove (tmpKey); -} - - -const char* ColladaConverter::getName (btTypedConstraint* constraint) -{ - btRigidConstraintColladaInfo* rcci = findRigidConstraintColladaInfo (constraint); - - if (!rcci) - return NULL; - - return rcci->m_domRigidConstraint->getSid(); -} diff --git a/Extras/BulletColladaConverter/ColladaConverter.h b/Extras/BulletColladaConverter/ColladaConverter.h deleted file mode 100644 index 5da9e4593..000000000 --- a/Extras/BulletColladaConverter/ColladaConverter.h +++ /dev/null @@ -1,269 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - - -#ifndef COLLADA_CONVERTER_H -#define COLLADA_CONVERTER_H - -#include "LinearMath/btTransform.h" -#include "LinearMath/btVector3.h" -#include "LinearMath/btAlignedObjectArray.h" -#include "LinearMath/btHashMap.h" - -class btCollisionShape; -class btRigidBody; -class btTypedConstraint; -class btDynamicsWorld; -struct ConstraintInput; -class btRigidBodyColladaInfo; - -class btRigidBodyColladaInfo -{ -public: - class domNode* m_node; - class domRigid_body* m_domRigidBody; - class domInstance_rigid_body* m_instanceRigidBody; - btRigidBody* m_body; - - int getUid(); - - btRigidBodyColladaInfo (btRigidBody* body, domNode* node, domRigid_body* rigidBody, domInstance_rigid_body* instanceRigidBody) - { - m_body = body; - m_node = node; - m_domRigidBody = rigidBody; - m_instanceRigidBody = instanceRigidBody; - } -}; - - - - -class btRigidConstraintColladaInfo -{ -public: - btTypedConstraint* m_typedConstraint; - class domRigid_constraint* m_domRigidConstraint; - class domInstance_rigid_constraint* m_domInstanceRigidConstraint; - - int getUid(); - - btRigidConstraintColladaInfo (btTypedConstraint* constraint, domRigid_constraint* rigidConstraint, domInstance_rigid_constraint* domInstanceRigidConstraint) - { - m_typedConstraint = constraint; - m_domRigidConstraint = rigidConstraint; - m_domInstanceRigidConstraint = domInstanceRigidConstraint; - } - - -}; - - - - - -///ColladaConverter helps converting the physics assets from COLLADA DOM into physics objects -class ColladaConverter -{ -public: - typedef enum { - SILENT, - NORMAL, - LOUD - } VerbosityLevel; - void setVerbosity( VerbosityLevel verbosity ) - { - m_verbosity = verbosity; - } - VerbosityLevel getVerbosity() const - { - return( m_verbosity ); - } - -private: - char m_cleaned_filename[513]; - - -protected: - - btDynamicsWorld* m_dynamicsWorld; - - btAlignedObjectArray m_allocatedCollisionShapes; - btAlignedObjectArray m_allocatedTriangleMeshContainers; - - btHashMap,btRigidBodyColladaInfo*> m_rbUserInfoHashMap; - btHashMap,btRigidConstraintColladaInfo*> m_constraintUserInfoHashMap; - - class DAE* m_collada; - class domCOLLADA* m_dom; - char* m_filename; - - float m_unitMeterScaling; - bool m_use32bitIndices; - bool m_use4componentVertices; - - VerbosityLevel m_verbosity; - - void PreparePhysicsObject(struct btRigidBodyInput& input, bool isDynamics, float mass,btCollisionShape* colShape, const btVector3& linearVelocity, const btVector3& angularVelocity); - - void prepareConstraints(ConstraintInput& input); - - void ConvertRigidBodyRef( struct btRigidBodyInput& , struct btRigidBodyOutput& output ); - - bool convert (); - - btRigidBodyColladaInfo* findRigidBodyColladaInfo(const btRigidBody* body); - btRigidConstraintColladaInfo* findRigidConstraintColladaInfo(btTypedConstraint* constraint); - - bool instantiateDom (); - - /* Searches based on matching name/id */ - class domNode* findNode (const char* nodeName); - class domRigid_body* findRigid_body (const char* rigidBodyName); - class domInstance_rigid_body* findRigid_body_instance (const char* nodeName); - class domRigid_constraint* findRigid_constraint (const char* constraintName); - class domGeometry* findGeometry (const char* shapeName); - - class domNode* findNode (btRigidBody* rb); - class domRigid_body* findRigid_body (const btRigidBody* rb); - class domInstance_rigid_body* findRigid_body_instance (btRigidBody* rb); - class domRigid_constraint* findRigid_constraint (btTypedConstraint* constraint); - //class domGeometry* findGeometry (btCollisionShape* shape); - - /* These are the locations that NEW elements will be added to */ - class domLibrary_geometries* getDefaultGeomLib (); - class domLibrary_physics_materials* getDefaultMaterialsLib (); - class domPhysics_model* getDefaultPhysicsModel (); - class domInstance_physics_model* getDefaultInstancePhysicsModel (); - - /* Currently we assume that there is only a single physics and visual scene */ - class domPhysics_scene* getDefaultPhysicsScene (); - class domVisual_scene* getDefaultVisualScene (); - - void buildShapeNew(btCollisionShape* shape, void* domTechniqueCommon, const char* shapeName, bool isChild=false,const btTransform& childTrans=btTransform::getIdentity()); - - - void addConvexHull (btCollisionShape* shape, const char* nodeName); - void addConvexMesh (btCollisionShape* shape, const char* nodeName); - void addConcaveMesh(btCollisionShape* shape, const char* nodeName); - void addScaledConcaveMesh(btCollisionShape* shape, const char* nodeName); - void addGimpactMesh(btCollisionShape* shape, const char* nodeName); - - void addConcaveMeshInternal(class btStridingMeshInterface* meshInterface , const char* nodeName); - - class domNode* addNode (btRigidBody* body, const char* nodeName, const char* shapeName); - class domRigid_constraint* addConstraint (btTypedConstraint* constraint, const char* constraintName); - class domInstance_rigid_constraint* addConstraintInstance (btTypedConstraint* constraint, const char* constraintName); - void addMaterial (btRigidBody* body, const char* nodeName); - class domRigid_body* addRigidBody (btRigidBody* body, const char* nodeName, const char* shapeName); - class domInstance_rigid_body* addRigidBodyInstance (btRigidBody* body, const char* nodeName); - - void updateRigidBodyPosition (btRigidBody* body, class domNode* node); - void updateRigidBodyVelocity (btRigidBody* body); - void updateConstraint (btTypedConstraint* constraint, class domRigid_constraint* rigidConstraint); - - void syncOrAddGeometry (btCollisionShape* shape, const char* nodeName); - void syncOrAddRigidBody (btRigidBody* body); - void syncOrAddConstraint (btTypedConstraint* constraint); -public: - ColladaConverter(btDynamicsWorld* dynaWorld); - virtual ~ColladaConverter (); - - ///load a COLLADA .dae file - bool load(const char* filename); - - // resets the collada converter state - void reset (); - - ///save a snapshot in COLLADA physics .dae format. - ///if the filename is left empty, modify the filename used during loading - bool save(const char* filename = 0); - - void setUse32bitIndices(bool use32bitIndices) - { - m_use32bitIndices = use32bitIndices; - } - bool setUse32bitIndices() const - { - return m_use32bitIndices; - } - - void setUse4componentVertices(bool use4componentVertices) - { - m_use4componentVertices = use4componentVertices; - } - bool getUse4componentVertices() const - { - return m_use4componentVertices; - } - - void registerRigidBody(btRigidBody* body, const char* name); - void deRegisterRigidBody(btRigidBody* body); - const char* getName (btRigidBody* body); - - void registerConstraint(btTypedConstraint* constraint, const char* name); - void deRegisterConstraint(btTypedConstraint* constraint); - const char* getName (btTypedConstraint* constraint); - - ///those virtuals are called by load and save. - virtual btTypedConstraint* createUniversalD6Constraint( - class btRigidBody* body0,class btRigidBody* otherBody, - btTransform& localAttachmentFrameRef, - btTransform& localAttachmentOther, - const btVector3& linearMinLimits, - const btVector3& linearMaxLimits, - const btVector3& angularMinLimits, - const btVector3& angularMaxLimits, - bool disableCollisionsBetweenLinkedBodies - ); - virtual btRigidBody* createRigidBody(bool isDynamic, - float mass, - const btTransform& startTransform, - btCollisionShape* shape); - virtual int getNumRigidBodies (); - virtual btRigidBody* getRigidBody (int i); - virtual int getNumConstraints (); - virtual btTypedConstraint* getConstraint (int i); - virtual void setGravity(const btVector3& gravity); - virtual btVector3 getGravity (); - virtual void setCameraInfo(const btVector3& up, int forwardAxis); - - virtual btCollisionShape* createPlaneShape(const btVector3& planeNormal,btScalar planeConstant); - virtual btCollisionShape* createBoxShape(const btVector3& halfExtents); - virtual btCollisionShape* createSphereShape(btScalar radius); - virtual btCollisionShape* createCylinderShapeY(btScalar radius,btScalar height); - virtual class btTriangleMesh* createTriangleMeshContainer(); - virtual btCollisionShape* createBvhTriangleMeshShape(btTriangleMesh* trimesh); - virtual btCollisionShape* createConvexTriangleMeshShape(btTriangleMesh* trimesh); - virtual btCollisionShape* createGimpactShape(btTriangleMesh* trimesh); - virtual class btConvexHullShape* createConvexHullShape(); - virtual class btCompoundShape* createCompoundShape(); - - int getNumCollisionShapes() const; - btCollisionShape* getCollisionShape(int shapeIndex); - void deleteAllocatedCollisionShapes(); - void deleteShape(btCollisionShape* shape); - - - char* getLastFileName(); - - char* fixFileName(const char* lpCmdLine); - -}; - -#endif //COLLADA_CONVERTER_H - - diff --git a/Extras/BulletColladaConverter/Jamfile b/Extras/BulletColladaConverter/Jamfile deleted file mode 100644 index 021efd18f..000000000 --- a/Extras/BulletColladaConverter/Jamfile +++ /dev/null @@ -1,20 +0,0 @@ -SubDir TOP Extras BulletColladaConverter ; - -#IncludeDir Extras/BulletColladaConverter ; - -Library BulletColladaConverter : [ Wildcard . : *.h *.cpp ] : noinstall ; -CFlags BulletColladaConverter : [ FIncludes $(TOP)/Extras/BulletColladaConverter ] [ FIncludes $(TOP)/Extras/COLLADA_DOM/include ] [ FIncludes $(TOP)/Extras/COLLADA_DOM/include/1.4 ] [ FIncludes $(TOP)/Extras/LibXML ] [ FIncludes $(TOP)/Extras/LibXML/include ] [ FIncludes $(TOP)/Extras/ConvexHull ] ; - -LibDepends BulletColladaConverter : colladadom libxml ; - - MsvcIncDirs BulletColladaConverter : - "../../Extras/BulletColladaConverter" - "../../Extras/COLLADA_DOM/include" - "../../Extras/COLLADA_DOM/include/1.4" - "../../Extras/LibXML" - "../../Extras/LibXML/include" - "../../Extras/ConvexHull" - -; - -InstallHeader [ Wildcard *.h ] : BulletColladaConverter ; diff --git a/Extras/COLLADA_DOM/CMakeLists.txt b/Extras/COLLADA_DOM/CMakeLists.txt deleted file mode 100644 index 92533d23e..000000000 --- a/Extras/COLLADA_DOM/CMakeLists.txt +++ /dev/null @@ -1,227 +0,0 @@ -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/Extras/LibXML/include ${BULLET_PHYSICS_SOURCE_DIR}/Extras/COLLADA_DOM/include ${BULLET_PHYSICS_SOURCE_DIR}/Extras/COLLADA_DOM/include/1.4 -) - -ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS) -ADD_DEFINITIONS( -D_CRT_SECURE_NO_DEPRECATE) - - -ADD_LIBRARY(ColladaDom - src/1.4/dom/domAccessor.cpp - src/1.4/dom/domAnimation.cpp - src/1.4/dom/domAnimation_clip.cpp - src/1.4/dom/domAsset.cpp - src/1.4/dom/domBind_material.cpp - src/1.4/dom/domBool_array.cpp - src/1.4/dom/domBox.cpp - src/1.4/dom/domCamera.cpp - src/1.4/dom/domCapsule.cpp - src/1.4/dom/domCg_connect_param.cpp - src/1.4/dom/domCg_newarray_type.cpp - src/1.4/dom/domCg_newparam.cpp - src/1.4/dom/domCg_param_type.cpp - src/1.4/dom/domCg_sampler1D.cpp - src/1.4/dom/domCg_sampler2D.cpp - src/1.4/dom/domCg_sampler3D.cpp - src/1.4/dom/domCg_samplerCUBE.cpp - src/1.4/dom/domCg_samplerDEPTH.cpp - src/1.4/dom/domCg_samplerRECT.cpp - src/1.4/dom/domCg_setarray_type.cpp - src/1.4/dom/domCg_setparam.cpp - src/1.4/dom/domCg_setparam_simple.cpp - src/1.4/dom/domCg_setuser_type.cpp - src/1.4/dom/domCg_surface_type.cpp - src/1.4/dom/domChannel.cpp - src/1.4/dom/domCOLLADA.cpp - src/1.4/dom/domCommon_color_or_texture_type.cpp - src/1.4/dom/domCommon_float_or_param_type.cpp - src/1.4/dom/domCommon_newparam_type.cpp - src/1.4/dom/domCommon_transparent_type.cpp - src/1.4/dom/domConstants.cpp - src/1.4/dom/domController.cpp - src/1.4/dom/domConvex_mesh.cpp - src/1.4/dom/domCylinder.cpp - src/1.4/dom/domEffect.cpp - src/1.4/dom/domEllipsoid.cpp - src/1.4/dom/domExtra.cpp - src/1.4/dom/domFloat_array.cpp - src/1.4/dom/domForce_field.cpp - src/1.4/dom/domFx_annotate_common.cpp - src/1.4/dom/domFx_annotate_type_common.cpp - src/1.4/dom/domFx_basic_type_common.cpp - src/1.4/dom/domFx_clearcolor_common.cpp - src/1.4/dom/domFx_cleardepth_common.cpp - src/1.4/dom/domFx_clearstencil_common.cpp - src/1.4/dom/domFx_code_profile.cpp - src/1.4/dom/domFx_colortarget_common.cpp - src/1.4/dom/domFx_depthtarget_common.cpp - src/1.4/dom/domFx_include_common.cpp - src/1.4/dom/domFx_newparam_common.cpp - src/1.4/dom/domFx_profile_abstract.cpp - src/1.4/dom/domFx_sampler1D_common.cpp - src/1.4/dom/domFx_sampler2D_common.cpp - src/1.4/dom/domFx_sampler3D_common.cpp - src/1.4/dom/domFx_samplerCUBE_common.cpp - src/1.4/dom/domFx_samplerDEPTH_common.cpp - src/1.4/dom/domFx_samplerRECT_common.cpp - src/1.4/dom/domFx_stenciltarget_common.cpp - src/1.4/dom/domFx_surface_common.cpp - src/1.4/dom/domFx_surface_format_hint_common.cpp - src/1.4/dom/domFx_surface_init_common.cpp - src/1.4/dom/domFx_surface_init_cube_common.cpp - src/1.4/dom/domFx_surface_init_from_common.cpp - src/1.4/dom/domFx_surface_init_planar_common.cpp - src/1.4/dom/domFx_surface_init_volume_common.cpp - src/1.4/dom/domGeometry.cpp - src/1.4/dom/domGl_hook_abstract.cpp - src/1.4/dom/domGl_pipeline_settings.cpp - src/1.4/dom/domGl_sampler1D.cpp - src/1.4/dom/domGl_sampler2D.cpp - src/1.4/dom/domGl_sampler3D.cpp - src/1.4/dom/domGl_samplerCUBE.cpp - src/1.4/dom/domGl_samplerDEPTH.cpp - src/1.4/dom/domGl_samplerRECT.cpp - src/1.4/dom/domGles_basic_type_common.cpp - src/1.4/dom/domGles_newparam.cpp - src/1.4/dom/domGles_pipeline_settings.cpp - src/1.4/dom/domGles_sampler_state.cpp - src/1.4/dom/domGles_texcombiner_argumentAlpha_type.cpp - src/1.4/dom/domGles_texcombiner_argumentRGB_type.cpp - src/1.4/dom/domGles_texcombiner_command_type.cpp - src/1.4/dom/domGles_texcombiner_commandAlpha_type.cpp - src/1.4/dom/domGles_texcombiner_commandRGB_type.cpp - src/1.4/dom/domGles_texenv_command_type.cpp - src/1.4/dom/domGles_texture_constant_type.cpp - src/1.4/dom/domGles_texture_pipeline.cpp - src/1.4/dom/domGles_texture_unit.cpp - src/1.4/dom/domGlsl_newarray_type.cpp - src/1.4/dom/domGlsl_newparam.cpp - src/1.4/dom/domGlsl_param_type.cpp - src/1.4/dom/domGlsl_setarray_type.cpp - src/1.4/dom/domGlsl_setparam.cpp - src/1.4/dom/domGlsl_setparam_simple.cpp - src/1.4/dom/domGlsl_surface_type.cpp - src/1.4/dom/domIDREF_array.cpp - src/1.4/dom/domImage.cpp - src/1.4/dom/domInputGlobal.cpp - src/1.4/dom/domInputLocal.cpp - src/1.4/dom/domInputLocalOffset.cpp - src/1.4/dom/domInstance_camera.cpp - src/1.4/dom/domInstance_controller.cpp - src/1.4/dom/domInstance_effect.cpp - src/1.4/dom/domInstance_force_field.cpp - src/1.4/dom/domInstance_geometry.cpp - src/1.4/dom/domInstance_light.cpp - src/1.4/dom/domInstance_material.cpp - src/1.4/dom/domInstance_node.cpp - src/1.4/dom/domInstance_physics_material.cpp - src/1.4/dom/domInstance_physics_model.cpp - src/1.4/dom/domInstance_rigid_body.cpp - src/1.4/dom/domInstance_rigid_constraint.cpp - src/1.4/dom/domInstanceWithExtra.cpp - src/1.4/dom/domInt_array.cpp - src/1.4/dom/domLibrary_animation_clips.cpp - src/1.4/dom/domLibrary_animations.cpp - src/1.4/dom/domLibrary_cameras.cpp - src/1.4/dom/domLibrary_controllers.cpp - src/1.4/dom/domLibrary_effects.cpp - src/1.4/dom/domLibrary_force_fields.cpp - src/1.4/dom/domLibrary_geometries.cpp - src/1.4/dom/domLibrary_images.cpp - src/1.4/dom/domLibrary_lights.cpp - src/1.4/dom/domLibrary_materials.cpp - src/1.4/dom/domLibrary_nodes.cpp - src/1.4/dom/domLibrary_physics_materials.cpp - src/1.4/dom/domLibrary_physics_models.cpp - src/1.4/dom/domLibrary_physics_scenes.cpp - src/1.4/dom/domLibrary_visual_scenes.cpp - src/1.4/dom/domLight.cpp - src/1.4/dom/domLines.cpp - src/1.4/dom/domLinestrips.cpp - src/1.4/dom/domLookat.cpp - src/1.4/dom/domMaterial.cpp - src/1.4/dom/domMatrix.cpp - src/1.4/dom/domMesh.cpp - src/1.4/dom/domMorph.cpp - src/1.4/dom/domName_array.cpp - src/1.4/dom/domNode.cpp - src/1.4/dom/domP.cpp - src/1.4/dom/domParam.cpp - src/1.4/dom/domPhysics_material.cpp - src/1.4/dom/domPhysics_model.cpp - src/1.4/dom/domPhysics_scene.cpp - src/1.4/dom/domPlane.cpp - src/1.4/dom/domPolygons.cpp - src/1.4/dom/domPolylist.cpp - src/1.4/dom/domProfile_CG.cpp - src/1.4/dom/domProfile_COMMON.cpp - src/1.4/dom/domProfile_GLES.cpp - src/1.4/dom/domProfile_GLSL.cpp - src/1.4/dom/domRigid_body.cpp - src/1.4/dom/domRigid_constraint.cpp - src/1.4/dom/domRotate.cpp - src/1.4/dom/domSampler.cpp - src/1.4/dom/domScale.cpp - src/1.4/dom/domSkew.cpp - src/1.4/dom/domSkin.cpp - src/1.4/dom/domSource.cpp - src/1.4/dom/domSphere.cpp - src/1.4/dom/domSpline.cpp - src/1.4/dom/domTapered_capsule.cpp - src/1.4/dom/domTapered_cylinder.cpp - src/1.4/dom/domTargetableFloat.cpp - src/1.4/dom/domTargetableFloat3.cpp - src/1.4/dom/domTechnique.cpp - src/1.4/dom/domTranslate.cpp - src/1.4/dom/domTriangles.cpp - src/1.4/dom/domTrifans.cpp - src/1.4/dom/domTristrips.cpp - src/1.4/dom/domTypes.cpp - src/1.4/dom/domVertices.cpp - src/1.4/dom/domVisual_scene.cpp - src/dae/dae.cpp - src/dae/daeArray.cpp - src/dae/daeAtomicType.cpp - src/dae/daeDocument.cpp - src/dae/daeDom.cpp - src/dae/daeElement.cpp - src/dae/daeError.cpp - src/dae/daeErrorHandler.cpp - src/dae/daeIDRef.cpp - src/dae/daeMemorySystem.cpp - src/dae/daeMetaAny.cpp - src/dae/daeMetaAttribute.cpp - src/dae/daeMetaChoice.cpp - src/dae/daeMetaCMPolicy.cpp - src/dae/daeMetaElement.cpp - src/dae/daeMetaElementAttribute.cpp - src/dae/daeMetaGroup.cpp - src/dae/daeMetaSequence.cpp - src/dae/daeSIDResolver.cpp - src/dae/daeStringRef.cpp - src/dae/daeStringTable.cpp - src/dae/daeURI.cpp - src/dae/domAny.cpp - src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp - src/modules/LIBXMLPlugin/daeLIBXMLResolver.cpp - src/modules/stdErrPlugin/stdErrPlugin.cpp - src/modules/STLDatabase/daeSTLDatabase.cpp -) - -IF (BUILD_SHARED_LIBS) - TARGET_LINK_LIBRARIES(ColladaDom XML) -ENDIF (BUILD_SHARED_LIBS) - -#INSTALL of other files requires CMake 2.6 -IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5) - IF(INSTALL_EXTRA_LIBS) - IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) - INSTALL(TARGETS ColladaDom DESTINATION .) - ELSE (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) - INSTALL(TARGETS ColladaDom DESTINATION lib) - INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/1.4 DESTINATION include/1.4 FILES_MATCHING PATTERN "*.h") - INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/dae DESTINATION include/dae FILES_MATCHING PATTERN "*.h") - INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/modules DESTINATION include/modules FILES_MATCHING PATTERN "*.h") - ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) - ENDIF (INSTALL_EXTRA_LIBS) -ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5) diff --git a/Extras/COLLADA_DOM/Jamfile b/Extras/COLLADA_DOM/Jamfile deleted file mode 100644 index 6d3afbd5f..000000000 --- a/Extras/COLLADA_DOM/Jamfile +++ /dev/null @@ -1,38 +0,0 @@ -SubDir TOP Extras COLLADA_DOM ; - - -#IncludeDir Extras/COLLADA_DOM/include ; -#IncludeDir Extras/COLLADA_DOM/include/1.4 ; -#IncludeDir Extras/LibXML/include ; - -Library colladadom : - [ Wildcard src/dae : *.h *.cpp ] - [ Wildcard src/1.4/dom : *.h *.cpp ] - [ Wildcard src/modules/LIBXMLPlugin : *.h *.cpp ] - [ Wildcard src/modules/stdErrPlugin : *.h *.cpp ] - [ Wildcard src/modules/STLDatabase : *.h *.cpp ] -: noinstall - - ; - -CFlags colladadom : -[ FIncludes $(TOP)/Extras/COLLADA_DOM/include ] -[ FIncludes $(TOP)/Extras/COLLADA_DOM/include/1.4 ] -[ FIncludes $(TOP)/Extras/LibXML/include ] -; - - - MsvcIncDirs colladadom : "../../Extras/Demos/OpenGL" - "../../Extras/COLLADA_DOM/include" - "../../Extras/COLLADA_DOM/include/1.4" - "../../Extras/LibXML" - "../../Extras/LibXML/include" ; - -MsvcGenConfig colladadom.INCDIRS : $(TOP)/Extras/COLLADA_DOM/include ; -MsvcGenConfig colladadom.CFLAGS : $(TOP)/Extras/COLLADA_DOM/include ; - -LibDepends colladadom : libxml ; - - -InstallHeader [ Wildcard *.h ] : COLLADA_DOM ; - diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domAccessor.h b/Extras/COLLADA_DOM/include/1.4/dom/domAccessor.h deleted file mode 100644 index 6e389cf57..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domAccessor.h +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domAccessor_h__ -#define __domAccessor_h__ - -#include -#include - -#include - -/** - * The accessor element declares an access pattern to one of the array elements: - * float_array, int_array, Name_array, bool_array, and IDREF_array. The accessor - * element describes access to arrays that are organized in either an interleaved - * or non-interleaved manner, depending on the offset and stride attributes. - */ -class domAccessor : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ACCESSOR; } -protected: // Attributes -/** - * The count attribute indicates the number of times the array is accessed. - * Required attribute. - */ - domUint attrCount; -/** - * The offset attribute indicates the index of the first value to be read - * from the array. The default value is 0. Optional attribute. - */ - domUint attrOffset; -/** - * The source attribute indicates the location of the array to access using - * a URL expression. Required attribute. - */ - xsAnyURI attrSource; -/** - * The stride attribute indicates number of values to be considered a unit - * during each access to the array. The default value is 1, indicating that - * a single value is accessed. Optional attribute. - */ - domUint attrStride; - -protected: // Element -/** - * The accessor element may have any number of param elements. @see domParam - */ - domParam_Array elemParam_array; - -public: //Accessors and Mutators - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[0] = true; } - - /** - * Gets the offset attribute. - * @return Returns a domUint of the offset attribute. - */ - domUint getOffset() const { return attrOffset; } - /** - * Sets the offset attribute. - * @param atOffset The new value for the offset attribute. - */ - void setOffset( domUint atOffset ) { attrOffset = atOffset; - _validAttributeArray[1] = true; } - - /** - * Gets the source attribute. - * @return Returns a xsAnyURI reference of the source attribute. - */ - xsAnyURI &getSource() { return attrSource; } - /** - * Gets the source attribute. - * @return Returns a constant xsAnyURI reference of the source attribute. - */ - const xsAnyURI &getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( const xsAnyURI &atSource ) { attrSource = atSource; - _validAttributeArray[2] = true; } - - /** - * Gets the stride attribute. - * @return Returns a domUint of the stride attribute. - */ - domUint getStride() const { return attrStride; } - /** - * Sets the stride attribute. - * @param atStride The new value for the stride attribute. - */ - void setStride( domUint atStride ) { attrStride = atStride; - _validAttributeArray[3] = true; } - - /** - * Gets the param element array. - * @return Returns a reference to the array of param elements. - */ - domParam_Array &getParam_array() { return elemParam_array; } - /** - * Gets the param element array. - * @return Returns a constant reference to the array of param elements. - */ - const domParam_Array &getParam_array() const { return elemParam_array; } -protected: - /** - * Constructor - */ - domAccessor() : attrCount(), attrOffset(), attrSource(), attrStride(), elemParam_array() {} - /** - * Destructor - */ - virtual ~domAccessor() {} - /** - * Copy Constructor - */ - domAccessor( const domAccessor &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAccessor &operator=( const domAccessor &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domAnimation.h b/Extras/COLLADA_DOM/include/1.4/dom/domAnimation.h deleted file mode 100644 index f796c270b..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domAnimation.h +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domAnimation_h__ -#define __domAnimation_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include - -/** - * The animation element categorizes the declaration of animation information. - * The animation hierarchy contains elements that describe the animation’s - * key-frame data and sampler functions, ordered in such a way to group together - * animations that should be executed together. - */ -class domAnimation : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ANIMATION; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The animation element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The animation element may contain any number of source elements. @see - * domSource - */ - domSource_Array elemSource_array; -/** - * The animation element may contain any number of sampler elements. @see - * domSampler - */ - domSampler_Array elemSampler_array; -/** - * The animation element may contain any number of channel elements. @see - * domChannel - */ - domChannel_Array elemChannel_array; -/** - * The animation may be hierarchical and may contain any number of other - * animation elements. @see domAnimation - */ - domAnimation_Array elemAnimation_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the source element array. - * @return Returns a reference to the array of source elements. - */ - domSource_Array &getSource_array() { return elemSource_array; } - /** - * Gets the source element array. - * @return Returns a constant reference to the array of source elements. - */ - const domSource_Array &getSource_array() const { return elemSource_array; } - /** - * Gets the sampler element array. - * @return Returns a reference to the array of sampler elements. - */ - domSampler_Array &getSampler_array() { return elemSampler_array; } - /** - * Gets the sampler element array. - * @return Returns a constant reference to the array of sampler elements. - */ - const domSampler_Array &getSampler_array() const { return elemSampler_array; } - /** - * Gets the channel element array. - * @return Returns a reference to the array of channel elements. - */ - domChannel_Array &getChannel_array() { return elemChannel_array; } - /** - * Gets the channel element array. - * @return Returns a constant reference to the array of channel elements. - */ - const domChannel_Array &getChannel_array() const { return elemChannel_array; } - /** - * Gets the animation element array. - * @return Returns a reference to the array of animation elements. - */ - domAnimation_Array &getAnimation_array() { return elemAnimation_array; } - /** - * Gets the animation element array. - * @return Returns a constant reference to the array of animation elements. - */ - const domAnimation_Array &getAnimation_array() const { return elemAnimation_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domAnimation() : attrId(), attrName(), elemAsset(), elemSource_array(), elemSampler_array(), elemChannel_array(), elemAnimation_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domAnimation() {} - /** - * Copy Constructor - */ - domAnimation( const domAnimation &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAnimation &operator=( const domAnimation &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domAnimation_clip.h b/Extras/COLLADA_DOM/include/1.4/dom/domAnimation_clip.h deleted file mode 100644 index e8e816442..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domAnimation_clip.h +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domAnimation_clip_h__ -#define __domAnimation_clip_h__ - -#include -#include - -#include -#include -#include - -/** - * The animation_clip element defines a section of the animation curves to - * be used together as an animation clip. - */ -class domAnimation_clip : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ANIMATION_CLIP; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The start attribute is the time in seconds of the beginning of the clip. - * This time is the same as that used in the key-frame data and is used to - * determine which set of key-frames will be included in the clip. The start - * time does not specify when the clip will be played. If the time falls - * between two keyframes of a referenced animation, an interpolated value - * should be used. The default value is 0.0. Optional attribute. - */ - xsDouble attrStart; -/** - * The end attribute is the time in seconds of the end of the clip. This - * is used in the same way as the start time. If end is not specified, the - * value is taken to be the end time of the longest animation. Optional - * attribute. - */ - xsDouble attrEnd; - -protected: // Elements -/** - * The animation_clip element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The animation_clip must instance at least one animation element. @see domInstance_animation - */ - domInstanceWithExtra_Array elemInstance_animation_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the start attribute. - * @return Returns a xsDouble of the start attribute. - */ - xsDouble getStart() const { return attrStart; } - /** - * Sets the start attribute. - * @param atStart The new value for the start attribute. - */ - void setStart( xsDouble atStart ) { attrStart = atStart; - _validAttributeArray[2] = true; } - - /** - * Gets the end attribute. - * @return Returns a xsDouble of the end attribute. - */ - xsDouble getEnd() const { return attrEnd; } - /** - * Sets the end attribute. - * @param atEnd The new value for the end attribute. - */ - void setEnd( xsDouble atEnd ) { attrEnd = atEnd; - _validAttributeArray[3] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the instance_animation element array. - * @return Returns a reference to the array of instance_animation elements. - */ - domInstanceWithExtra_Array &getInstance_animation_array() { return elemInstance_animation_array; } - /** - * Gets the instance_animation element array. - * @return Returns a constant reference to the array of instance_animation elements. - */ - const domInstanceWithExtra_Array &getInstance_animation_array() const { return elemInstance_animation_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domAnimation_clip() : attrId(), attrName(), attrStart(), attrEnd(), elemAsset(), elemInstance_animation_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domAnimation_clip() {} - /** - * Copy Constructor - */ - domAnimation_clip( const domAnimation_clip &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAnimation_clip &operator=( const domAnimation_clip &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domAsset.h b/Extras/COLLADA_DOM/include/1.4/dom/domAsset.h deleted file mode 100644 index e07e57cc7..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domAsset.h +++ /dev/null @@ -1,1235 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domAsset_h__ -#define __domAsset_h__ - -#include -#include - - -/** - * The asset element defines asset management information regarding its parent - * element. - */ -class domAsset : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ASSET; } -public: - class domContributor; - - typedef daeSmartRef domContributorRef; - typedef daeTArray domContributor_Array; - -/** - * The contributor element defines authoring information for asset management - */ - class domContributor : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CONTRIBUTOR; } - public: - class domAuthor; - - typedef daeSmartRef domAuthorRef; - typedef daeTArray domAuthor_Array; - -/** - * The author element contains a string with the author's name. There may - * be only one author element. - */ - class domAuthor : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::AUTHOR; } - - protected: // Value - /** - * The xsString value of the text data of this element. - */ - xsString _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsString of the value. - */ - xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsString val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domAuthor() : _value() {} - /** - * Destructor - */ - virtual ~domAuthor() {} - /** - * Copy Constructor - */ - domAuthor( const domAuthor &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAuthor &operator=( const domAuthor &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domAuthoring_tool; - - typedef daeSmartRef domAuthoring_toolRef; - typedef daeTArray domAuthoring_tool_Array; - -/** - * The authoring_tool element contains a string with the authoring tool's - * name. There may be only one authoring_tool element. - */ - class domAuthoring_tool : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::AUTHORING_TOOL; } - - protected: // Value - /** - * The xsString value of the text data of this element. - */ - xsString _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsString of the value. - */ - xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsString val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domAuthoring_tool() : _value() {} - /** - * Destructor - */ - virtual ~domAuthoring_tool() {} - /** - * Copy Constructor - */ - domAuthoring_tool( const domAuthoring_tool &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAuthoring_tool &operator=( const domAuthoring_tool &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domComments; - - typedef daeSmartRef domCommentsRef; - typedef daeTArray domComments_Array; - -/** - * The comments element contains a string with comments from this contributor. - * There may be only one comments element. - */ - class domComments : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMMENTS; } - - protected: // Value - /** - * The xsString value of the text data of this element. - */ - xsString _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsString of the value. - */ - xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsString val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domComments() : _value() {} - /** - * Destructor - */ - virtual ~domComments() {} - /** - * Copy Constructor - */ - domComments( const domComments &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domComments &operator=( const domComments &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domCopyright; - - typedef daeSmartRef domCopyrightRef; - typedef daeTArray domCopyright_Array; - -/** - * The copyright element contains a string with copyright information. There - * may be only one copyright element. - */ - class domCopyright : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COPYRIGHT; } - - protected: // Value - /** - * The xsString value of the text data of this element. - */ - xsString _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsString of the value. - */ - xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsString val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domCopyright() : _value() {} - /** - * Destructor - */ - virtual ~domCopyright() {} - /** - * Copy Constructor - */ - domCopyright( const domCopyright &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCopyright &operator=( const domCopyright &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSource_data; - - typedef daeSmartRef domSource_dataRef; - typedef daeTArray domSource_data_Array; - -/** - * The source_data element contains a URI reference to the source data used - * for this asset. There may be only one source_data element. - */ - class domSource_data : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE_DATA; } - - protected: // Value - /** - * The xsAnyURI value of the text data of this element. - */ - xsAnyURI _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsAnyURI of the value. - */ - xsAnyURI &getValue() { return _value; } - /** - * Gets the value of this element. - * @return Returns a constant xsAnyURI of the value. - */ - const xsAnyURI &getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( const xsAnyURI &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domSource_data() : _value() {} - /** - * Destructor - */ - virtual ~domSource_data() {} - /** - * Copy Constructor - */ - domSource_data( const domSource_data &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSource_data &operator=( const domSource_data &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements -/** - * The author element contains a string with the author's name. There may - * be only one author element. @see domAuthor - */ - domAuthorRef elemAuthor; -/** - * The authoring_tool element contains a string with the authoring tool's - * name. There may be only one authoring_tool element. @see domAuthoring_tool - */ - domAuthoring_toolRef elemAuthoring_tool; -/** - * The comments element contains a string with comments from this contributor. - * There may be only one comments element. @see domComments - */ - domCommentsRef elemComments; -/** - * The copyright element contains a string with copyright information. There - * may be only one copyright element. @see domCopyright - */ - domCopyrightRef elemCopyright; -/** - * The source_data element contains a URI reference to the source data used - * for this asset. There may be only one source_data element. @see domSource_data - */ - domSource_dataRef elemSource_data; - - public: //Accessors and Mutators - /** - * Gets the author element. - * @return a daeSmartRef to the author element. - */ - const domAuthorRef getAuthor() const { return elemAuthor; } - /** - * Gets the authoring_tool element. - * @return a daeSmartRef to the authoring_tool element. - */ - const domAuthoring_toolRef getAuthoring_tool() const { return elemAuthoring_tool; } - /** - * Gets the comments element. - * @return a daeSmartRef to the comments element. - */ - const domCommentsRef getComments() const { return elemComments; } - /** - * Gets the copyright element. - * @return a daeSmartRef to the copyright element. - */ - const domCopyrightRef getCopyright() const { return elemCopyright; } - /** - * Gets the source_data element. - * @return a daeSmartRef to the source_data element. - */ - const domSource_dataRef getSource_data() const { return elemSource_data; } - protected: - /** - * Constructor - */ - domContributor() : elemAuthor(), elemAuthoring_tool(), elemComments(), elemCopyright(), elemSource_data() {} - /** - * Destructor - */ - virtual ~domContributor() {} - /** - * Copy Constructor - */ - domContributor( const domContributor &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domContributor &operator=( const domContributor &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domCreated; - - typedef daeSmartRef domCreatedRef; - typedef daeTArray domCreated_Array; - -/** - * The created element contains the date and time that the parent element - * was created and is represented in an ISO 8601 format. The created element - * may appear zero or one time. - */ - class domCreated : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CREATED; } - - protected: // Value - /** - * The xsDateTime value of the text data of this element. - */ - xsDateTime _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsDateTime of the value. - */ - xsDateTime getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsDateTime val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domCreated() : _value() {} - /** - * Destructor - */ - virtual ~domCreated() {} - /** - * Copy Constructor - */ - domCreated( const domCreated &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCreated &operator=( const domCreated &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domKeywords; - - typedef daeSmartRef domKeywordsRef; - typedef daeTArray domKeywords_Array; - -/** - * The keywords element contains a list of words used as search criteria for - * the parent element. The keywords element may appear zero or more times. - */ - class domKeywords : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::KEYWORDS; } - - protected: // Value - /** - * The xsString value of the text data of this element. - */ - xsString _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsString of the value. - */ - xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsString val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domKeywords() : _value() {} - /** - * Destructor - */ - virtual ~domKeywords() {} - /** - * Copy Constructor - */ - domKeywords( const domKeywords &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domKeywords &operator=( const domKeywords &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domModified; - - typedef daeSmartRef domModifiedRef; - typedef daeTArray domModified_Array; - -/** - * The modified element contains the date and time that the parent element - * was last modified and represented in an ISO 8601 format. The modified - * element may appear zero or one time. - */ - class domModified : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODIFIED; } - - protected: // Value - /** - * The xsDateTime value of the text data of this element. - */ - xsDateTime _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsDateTime of the value. - */ - xsDateTime getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsDateTime val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domModified() : _value() {} - /** - * Destructor - */ - virtual ~domModified() {} - /** - * Copy Constructor - */ - domModified( const domModified &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domModified &operator=( const domModified &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domRevision; - - typedef daeSmartRef domRevisionRef; - typedef daeTArray domRevision_Array; - -/** - * The revision element contains the revision information for the parent element. - * The revision element may appear zero or one time. - */ - class domRevision : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::REVISION; } - - protected: // Value - /** - * The xsString value of the text data of this element. - */ - xsString _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsString of the value. - */ - xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsString val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domRevision() : _value() {} - /** - * Destructor - */ - virtual ~domRevision() {} - /** - * Copy Constructor - */ - domRevision( const domRevision &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRevision &operator=( const domRevision &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSubject; - - typedef daeSmartRef domSubjectRef; - typedef daeTArray domSubject_Array; - -/** - * The subject element contains a description of the topical subject of the - * parent element. The subject element may appear zero or one time. - */ - class domSubject : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SUBJECT; } - - protected: // Value - /** - * The xsString value of the text data of this element. - */ - xsString _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsString of the value. - */ - xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsString val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSubject() : _value() {} - /** - * Destructor - */ - virtual ~domSubject() {} - /** - * Copy Constructor - */ - domSubject( const domSubject &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSubject &operator=( const domSubject &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTitle; - - typedef daeSmartRef domTitleRef; - typedef daeTArray domTitle_Array; - -/** - * The title element contains the title information for the parent element. - * The title element may appear zero or one time. - */ - class domTitle : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TITLE; } - - protected: // Value - /** - * The xsString value of the text data of this element. - */ - xsString _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsString of the value. - */ - xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsString val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domTitle() : _value() {} - /** - * Destructor - */ - virtual ~domTitle() {} - /** - * Copy Constructor - */ - domTitle( const domTitle &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTitle &operator=( const domTitle &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domUnit; - - typedef daeSmartRef domUnitRef; - typedef daeTArray domUnit_Array; - -/** - * The unit element contains descriptive information about unit of measure. - * It has attributes for the name of the unit and the measurement with respect - * to the meter. The unit element may appear zero or one time. - */ - class domUnit : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::UNIT; } - protected: // Attributes -/** - * The meter attribute specifies the measurement with respect to the meter. - * The default value for the meter attribute is “1.0â€. - */ - domFloat attrMeter; -/** - * The name attribute specifies the name of the unit. The default value for - * the name attribute is “meterâ€. - */ - xsNMTOKEN attrName; - - - public: //Accessors and Mutators - /** - * Gets the meter attribute. - * @return Returns a domFloat of the meter attribute. - */ - domFloat getMeter() const { return attrMeter; } - /** - * Sets the meter attribute. - * @param atMeter The new value for the meter attribute. - */ - void setMeter( domFloat atMeter ) { attrMeter = atMeter; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNMTOKEN of the name attribute. - */ - xsNMTOKEN getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNMTOKEN atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domUnit() : attrMeter(), attrName() {} - /** - * Destructor - */ - virtual ~domUnit() {} - /** - * Copy Constructor - */ - domUnit( const domUnit &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domUnit &operator=( const domUnit &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domUp_axis; - - typedef daeSmartRef domUp_axisRef; - typedef daeTArray domUp_axis_Array; - -/** - * The up_axis element contains descriptive information about coordinate system - * of the geometric data. All coordinates are right-handed by definition. - * This element specifies which axis is considered up. The default is the - * Y-axis. The up_axis element may appear zero or one time. - */ - class domUp_axis : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::UP_AXIS; } - - protected: // Value - /** - * The domUpAxisType value of the text data of this element. - */ - domUpAxisType _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domUpAxisType of the value. - */ - domUpAxisType getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domUpAxisType val ) { _value = val; } - - protected: - /** - * Constructor - */ - domUp_axis() : _value() {} - /** - * Destructor - */ - virtual ~domUp_axis() {} - /** - * Copy Constructor - */ - domUp_axis( const domUp_axis &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domUp_axis &operator=( const domUp_axis &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements -/** - * The contributor element defines authoring information for asset management - * @see domContributor - */ - domContributor_Array elemContributor_array; -/** - * The created element contains the date and time that the parent element - * was created and is represented in an ISO 8601 format. The created element - * may appear zero or one time. @see domCreated - */ - domCreatedRef elemCreated; -/** - * The keywords element contains a list of words used as search criteria for - * the parent element. The keywords element may appear zero or more times. - * @see domKeywords - */ - domKeywordsRef elemKeywords; -/** - * The modified element contains the date and time that the parent element - * was last modified and represented in an ISO 8601 format. The modified - * element may appear zero or one time. @see domModified - */ - domModifiedRef elemModified; -/** - * The revision element contains the revision information for the parent element. - * The revision element may appear zero or one time. @see domRevision - */ - domRevisionRef elemRevision; -/** - * The subject element contains a description of the topical subject of the - * parent element. The subject element may appear zero or one time. @see - * domSubject - */ - domSubjectRef elemSubject; -/** - * The title element contains the title information for the parent element. - * The title element may appear zero or one time. @see domTitle - */ - domTitleRef elemTitle; -/** - * The unit element contains descriptive information about unit of measure. - * It has attributes for the name of the unit and the measurement with respect - * to the meter. The unit element may appear zero or one time. @see domUnit - */ - domUnitRef elemUnit; -/** - * The up_axis element contains descriptive information about coordinate system - * of the geometric data. All coordinates are right-handed by definition. - * This element specifies which axis is considered up. The default is the - * Y-axis. The up_axis element may appear zero or one time. @see domUp_axis - */ - domUp_axisRef elemUp_axis; - -public: //Accessors and Mutators - /** - * Gets the contributor element array. - * @return Returns a reference to the array of contributor elements. - */ - domContributor_Array &getContributor_array() { return elemContributor_array; } - /** - * Gets the contributor element array. - * @return Returns a constant reference to the array of contributor elements. - */ - const domContributor_Array &getContributor_array() const { return elemContributor_array; } - /** - * Gets the created element. - * @return a daeSmartRef to the created element. - */ - const domCreatedRef getCreated() const { return elemCreated; } - /** - * Gets the keywords element. - * @return a daeSmartRef to the keywords element. - */ - const domKeywordsRef getKeywords() const { return elemKeywords; } - /** - * Gets the modified element. - * @return a daeSmartRef to the modified element. - */ - const domModifiedRef getModified() const { return elemModified; } - /** - * Gets the revision element. - * @return a daeSmartRef to the revision element. - */ - const domRevisionRef getRevision() const { return elemRevision; } - /** - * Gets the subject element. - * @return a daeSmartRef to the subject element. - */ - const domSubjectRef getSubject() const { return elemSubject; } - /** - * Gets the title element. - * @return a daeSmartRef to the title element. - */ - const domTitleRef getTitle() const { return elemTitle; } - /** - * Gets the unit element. - * @return a daeSmartRef to the unit element. - */ - const domUnitRef getUnit() const { return elemUnit; } - /** - * Gets the up_axis element. - * @return a daeSmartRef to the up_axis element. - */ - const domUp_axisRef getUp_axis() const { return elemUp_axis; } -protected: - /** - * Constructor - */ - domAsset() : elemContributor_array(), elemCreated(), elemKeywords(), elemModified(), elemRevision(), elemSubject(), elemTitle(), elemUnit(), elemUp_axis() {} - /** - * Destructor - */ - virtual ~domAsset() {} - /** - * Copy Constructor - */ - domAsset( const domAsset &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAsset &operator=( const domAsset &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domBind_material.h b/Extras/COLLADA_DOM/include/1.4/dom/domBind_material.h deleted file mode 100644 index 8db3f836f..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domBind_material.h +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domBind_material_h__ -#define __domBind_material_h__ - -#include -#include - -#include -#include -#include -#include - -/** - * Bind a specific material to a piece of geometry, binding varying and uniform - * parameters at the same time. - */ -class domBind_material : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BIND_MATERIAL; } -public: - class domTechnique_common; - - typedef daeSmartRef domTechnique_commonRef; - typedef daeTArray domTechnique_common_Array; - -/** - * The technique_common element specifies the bind_material information for - * the common profile which all COLLADA implementations need to support. - */ - class domTechnique_common : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_COMMON; } - - protected: // Element -/** - * The instance_material element specifies the information needed to bind - * a geometry to a material. This element must appear at least once. @see - * domInstance_material - */ - domInstance_material_Array elemInstance_material_array; - - public: //Accessors and Mutators - /** - * Gets the instance_material element array. - * @return Returns a reference to the array of instance_material elements. - */ - domInstance_material_Array &getInstance_material_array() { return elemInstance_material_array; } - /** - * Gets the instance_material element array. - * @return Returns a constant reference to the array of instance_material elements. - */ - const domInstance_material_Array &getInstance_material_array() const { return elemInstance_material_array; } - protected: - /** - * Constructor - */ - domTechnique_common() : elemInstance_material_array() {} - /** - * Destructor - */ - virtual ~domTechnique_common() {} - /** - * Copy Constructor - */ - domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique_common &operator=( const domTechnique_common &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements -/** - * The bind_material element may contain any number of param elements. @see - * domParam - */ - domParam_Array elemParam_array; -/** - * The technique_common element specifies the bind_material information for - * the common profile which all COLLADA implementations need to support. - * @see domTechnique_common - */ - domTechnique_commonRef elemTechnique_common; -/** - * This element may contain any number of non-common profile techniques. - * @see domTechnique - */ - domTechnique_Array elemTechnique_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the param element array. - * @return Returns a reference to the array of param elements. - */ - domParam_Array &getParam_array() { return elemParam_array; } - /** - * Gets the param element array. - * @return Returns a constant reference to the array of param elements. - */ - const domParam_Array &getParam_array() const { return elemParam_array; } - /** - * Gets the technique_common element. - * @return a daeSmartRef to the technique_common element. - */ - const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domBind_material() : elemParam_array(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domBind_material() {} - /** - * Copy Constructor - */ - domBind_material( const domBind_material &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBind_material &operator=( const domBind_material &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domBool_array.h b/Extras/COLLADA_DOM/include/1.4/dom/domBool_array.h deleted file mode 100644 index 1b2b2d410..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domBool_array.h +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domBool_array_h__ -#define __domBool_array_h__ - -#include -#include - - -/** - * The bool_array element declares the storage for a homogenous array of boolean - * values. - */ -class domBool_array : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL_ARRAY; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The count attribute indicates the number of values in the array. Required - * attribute. - */ - domUint attrCount; - -protected: // Value - /** - * The domListOfBools value of the text data of this element. - */ - domListOfBools _value; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[2] = true; } - - /** - * Gets the _value array. - * @return Returns a domListOfBools reference of the _value array. - */ - domListOfBools &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domListOfBools reference of the _value array. - */ - const domListOfBools &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domListOfBools &val ) { _value = val; } - -protected: - /** - * Constructor - */ - domBool_array() : attrId(), attrName(), attrCount(), _value() {} - /** - * Destructor - */ - virtual ~domBool_array() {} - /** - * Copy Constructor - */ - domBool_array( const domBool_array &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool_array &operator=( const domBool_array &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domBox.h b/Extras/COLLADA_DOM/include/1.4/dom/domBox.h deleted file mode 100644 index ea1be916d..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domBox.h +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domBox_h__ -#define __domBox_h__ - -#include -#include - -#include - -/** - * An axis-aligned, centered box primitive. - */ -class domBox : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOX; } -public: - class domHalf_extents; - - typedef daeSmartRef domHalf_extentsRef; - typedef daeTArray domHalf_extents_Array; - -/** - * 3 float values that represent the extents of the box - */ - class domHalf_extents : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF_EXTENTS; } - - protected: // Value - /** - * The domFloat3 value of the text data of this element. - */ - domFloat3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFloat3 reference of the _value array. - */ - domFloat3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat3 reference of the _value array. - */ - const domFloat3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf_extents() : _value() {} - /** - * Destructor - */ - virtual ~domHalf_extents() {} - /** - * Copy Constructor - */ - domHalf_extents( const domHalf_extents &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf_extents &operator=( const domHalf_extents &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements -/** - * 3 float values that represent the extents of the box @see domHalf_extents - */ - domHalf_extentsRef elemHalf_extents; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the half_extents element. - * @return a daeSmartRef to the half_extents element. - */ - const domHalf_extentsRef getHalf_extents() const { return elemHalf_extents; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domBox() : elemHalf_extents(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domBox() {} - /** - * Copy Constructor - */ - domBox( const domBox &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBox &operator=( const domBox &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCOLLADA.h b/Extras/COLLADA_DOM/include/1.4/dom/domCOLLADA.h deleted file mode 100644 index e114e7f89..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCOLLADA.h +++ /dev/null @@ -1,534 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCOLLADA_h__ -#define __domCOLLADA_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/** - * The COLLADA element declares the root of the document that comprises some - * of the content in the COLLADA schema. - */ -class domCOLLADA : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLLADA; } -public: - class domScene; - - typedef daeSmartRef domSceneRef; - typedef daeTArray domScene_Array; - -/** - * The scene embodies the entire set of information that can be visualized - * from the contents of a COLLADA resource. The scene element declares the - * base of the scene hierarchy or scene graph. The scene contains elements - * that comprise much of the visual and transformational information content - * as created by the authoring tools. - */ - class domScene : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SCENE; } - - protected: // Elements -/** - * The instance_physics_scene element declares the instantiation of a COLLADA - * physics_scene resource. The instance_physics_scene element may appear any - * number of times. @see domInstance_physics_scene - */ - domInstanceWithExtra_Array elemInstance_physics_scene_array; -/** - * The instance_visual_scene element declares the instantiation of a COLLADA - * visual_scene resource. The instance_visual_scene element may only appear - * once. @see domInstance_visual_scene - */ - domInstanceWithExtraRef elemInstance_visual_scene; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - - public: //Accessors and Mutators - /** - * Gets the instance_physics_scene element array. - * @return Returns a reference to the array of instance_physics_scene elements. - */ - domInstanceWithExtra_Array &getInstance_physics_scene_array() { return elemInstance_physics_scene_array; } - /** - * Gets the instance_physics_scene element array. - * @return Returns a constant reference to the array of instance_physics_scene elements. - */ - const domInstanceWithExtra_Array &getInstance_physics_scene_array() const { return elemInstance_physics_scene_array; } - /** - * Gets the instance_visual_scene element. - * @return a daeSmartRef to the instance_visual_scene element. - */ - const domInstanceWithExtraRef getInstance_visual_scene() const { return elemInstance_visual_scene; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - protected: - /** - * Constructor - */ - domScene() : elemInstance_physics_scene_array(), elemInstance_visual_scene(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domScene() {} - /** - * Copy Constructor - */ - domScene( const domScene &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domScene &operator=( const domScene &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes - /** - * This element may specify its own xmlns. - */ - xsAnyURI attrXmlns; -/** - * The version attribute is the COLLADA schema revision with which the instance - * document conforms. Required Attribute. - */ - domVersionType attrVersion; -/** - * The xml:base attribute allows you to define the base URI for this COLLADA - * document. See http://www.w3.org/TR/xmlbase/ for more information. - */ - xsAnyURI attrXml_base; - -protected: // Elements -/** - * The COLLADA element must contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The COLLADA element may contain any number of library_animations elements. - * @see domLibrary_animations - */ - domLibrary_animations_Array elemLibrary_animations_array; -/** - * The COLLADA element may contain any number of library_animation_clips - * elements. @see domLibrary_animation_clips - */ - domLibrary_animation_clips_Array elemLibrary_animation_clips_array; -/** - * The COLLADA element may contain any number of library_cameras elements. - * @see domLibrary_cameras - */ - domLibrary_cameras_Array elemLibrary_cameras_array; -/** - * The COLLADA element may contain any number of library_controllerss elements. - * @see domLibrary_controllers - */ - domLibrary_controllers_Array elemLibrary_controllers_array; -/** - * The COLLADA element may contain any number of library_geometriess elements. - * @see domLibrary_geometries - */ - domLibrary_geometries_Array elemLibrary_geometries_array; -/** - * The COLLADA element may contain any number of library_effects elements. - * @see domLibrary_effects - */ - domLibrary_effects_Array elemLibrary_effects_array; -/** - * The COLLADA element may contain any number of library_force_fields elements. - * @see domLibrary_force_fields - */ - domLibrary_force_fields_Array elemLibrary_force_fields_array; -/** - * The COLLADA element may contain any number of library_images elements. - * @see domLibrary_images - */ - domLibrary_images_Array elemLibrary_images_array; -/** - * The COLLADA element may contain any number of library_lights elements. - * @see domLibrary_lights - */ - domLibrary_lights_Array elemLibrary_lights_array; -/** - * The COLLADA element may contain any number of library_materials elements. - * @see domLibrary_materials - */ - domLibrary_materials_Array elemLibrary_materials_array; -/** - * The COLLADA element may contain any number of library_nodes elements. - * @see domLibrary_nodes - */ - domLibrary_nodes_Array elemLibrary_nodes_array; -/** - * The COLLADA element may contain any number of library_materials elements. - * @see domLibrary_physics_materials - */ - domLibrary_physics_materials_Array elemLibrary_physics_materials_array; -/** - * The COLLADA element may contain any number of library_physics_models elements. - * @see domLibrary_physics_models - */ - domLibrary_physics_models_Array elemLibrary_physics_models_array; -/** - * The COLLADA element may contain any number of library_physics_scenes elements. - * @see domLibrary_physics_scenes - */ - domLibrary_physics_scenes_Array elemLibrary_physics_scenes_array; -/** - * The COLLADA element may contain any number of library_visual_scenes elements. - * @see domLibrary_visual_scenes - */ - domLibrary_visual_scenes_Array elemLibrary_visual_scenes_array; -/** - * The scene embodies the entire set of information that can be visualized - * from the contents of a COLLADA resource. The scene element declares the - * base of the scene hierarchy or scene graph. The scene contains elements - * that comprise much of the visual and transformational information content - * as created by the authoring tools. @see domScene - */ - domSceneRef elemScene; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the xmlns attribute. - * @return Returns a xsAnyURI reference of the xmlns attribute. - */ - xsAnyURI &getXmlns() { return attrXmlns; } - /** - * Gets the xmlns attribute. - * @return Returns a constant xsAnyURI reference of the xmlns attribute. - */ - const xsAnyURI &getXmlns() const { return attrXmlns; } - /** - * Sets the xmlns attribute. - * @param xmlns The new value for the xmlns attribute. - */ - void setXmlns( const xsAnyURI &xmlns ) { attrXmlns = xmlns; - _validAttributeArray[0] = true; } - - /** - * Gets the version attribute. - * @return Returns a domVersionType of the version attribute. - */ - domVersionType getVersion() const { return attrVersion; } - /** - * Sets the version attribute. - * @param atVersion The new value for the version attribute. - */ - void setVersion( domVersionType atVersion ) { attrVersion = atVersion; - _validAttributeArray[1] = true; } - - /** - * Gets the xml_base attribute. - * @return Returns a xsAnyURI reference of the xml_base attribute. - */ - xsAnyURI &getXml_base() { return attrXml_base; } - /** - * Gets the xml_base attribute. - * @return Returns a constant xsAnyURI reference of the xml_base attribute. - */ - const xsAnyURI &getXml_base() const { return attrXml_base; } - /** - * Sets the xml_base attribute. - * @param atXml_base The new value for the xml_base attribute. - */ - void setXml_base( const xsAnyURI &atXml_base ) { attrXml_base = atXml_base; - _validAttributeArray[2] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the library_animations element array. - * @return Returns a reference to the array of library_animations elements. - */ - domLibrary_animations_Array &getLibrary_animations_array() { return elemLibrary_animations_array; } - /** - * Gets the library_animations element array. - * @return Returns a constant reference to the array of library_animations elements. - */ - const domLibrary_animations_Array &getLibrary_animations_array() const { return elemLibrary_animations_array; } - /** - * Gets the library_animation_clips element array. - * @return Returns a reference to the array of library_animation_clips elements. - */ - domLibrary_animation_clips_Array &getLibrary_animation_clips_array() { return elemLibrary_animation_clips_array; } - /** - * Gets the library_animation_clips element array. - * @return Returns a constant reference to the array of library_animation_clips elements. - */ - const domLibrary_animation_clips_Array &getLibrary_animation_clips_array() const { return elemLibrary_animation_clips_array; } - /** - * Gets the library_cameras element array. - * @return Returns a reference to the array of library_cameras elements. - */ - domLibrary_cameras_Array &getLibrary_cameras_array() { return elemLibrary_cameras_array; } - /** - * Gets the library_cameras element array. - * @return Returns a constant reference to the array of library_cameras elements. - */ - const domLibrary_cameras_Array &getLibrary_cameras_array() const { return elemLibrary_cameras_array; } - /** - * Gets the library_controllers element array. - * @return Returns a reference to the array of library_controllers elements. - */ - domLibrary_controllers_Array &getLibrary_controllers_array() { return elemLibrary_controllers_array; } - /** - * Gets the library_controllers element array. - * @return Returns a constant reference to the array of library_controllers elements. - */ - const domLibrary_controllers_Array &getLibrary_controllers_array() const { return elemLibrary_controllers_array; } - /** - * Gets the library_geometries element array. - * @return Returns a reference to the array of library_geometries elements. - */ - domLibrary_geometries_Array &getLibrary_geometries_array() { return elemLibrary_geometries_array; } - /** - * Gets the library_geometries element array. - * @return Returns a constant reference to the array of library_geometries elements. - */ - const domLibrary_geometries_Array &getLibrary_geometries_array() const { return elemLibrary_geometries_array; } - /** - * Gets the library_effects element array. - * @return Returns a reference to the array of library_effects elements. - */ - domLibrary_effects_Array &getLibrary_effects_array() { return elemLibrary_effects_array; } - /** - * Gets the library_effects element array. - * @return Returns a constant reference to the array of library_effects elements. - */ - const domLibrary_effects_Array &getLibrary_effects_array() const { return elemLibrary_effects_array; } - /** - * Gets the library_force_fields element array. - * @return Returns a reference to the array of library_force_fields elements. - */ - domLibrary_force_fields_Array &getLibrary_force_fields_array() { return elemLibrary_force_fields_array; } - /** - * Gets the library_force_fields element array. - * @return Returns a constant reference to the array of library_force_fields elements. - */ - const domLibrary_force_fields_Array &getLibrary_force_fields_array() const { return elemLibrary_force_fields_array; } - /** - * Gets the library_images element array. - * @return Returns a reference to the array of library_images elements. - */ - domLibrary_images_Array &getLibrary_images_array() { return elemLibrary_images_array; } - /** - * Gets the library_images element array. - * @return Returns a constant reference to the array of library_images elements. - */ - const domLibrary_images_Array &getLibrary_images_array() const { return elemLibrary_images_array; } - /** - * Gets the library_lights element array. - * @return Returns a reference to the array of library_lights elements. - */ - domLibrary_lights_Array &getLibrary_lights_array() { return elemLibrary_lights_array; } - /** - * Gets the library_lights element array. - * @return Returns a constant reference to the array of library_lights elements. - */ - const domLibrary_lights_Array &getLibrary_lights_array() const { return elemLibrary_lights_array; } - /** - * Gets the library_materials element array. - * @return Returns a reference to the array of library_materials elements. - */ - domLibrary_materials_Array &getLibrary_materials_array() { return elemLibrary_materials_array; } - /** - * Gets the library_materials element array. - * @return Returns a constant reference to the array of library_materials elements. - */ - const domLibrary_materials_Array &getLibrary_materials_array() const { return elemLibrary_materials_array; } - /** - * Gets the library_nodes element array. - * @return Returns a reference to the array of library_nodes elements. - */ - domLibrary_nodes_Array &getLibrary_nodes_array() { return elemLibrary_nodes_array; } - /** - * Gets the library_nodes element array. - * @return Returns a constant reference to the array of library_nodes elements. - */ - const domLibrary_nodes_Array &getLibrary_nodes_array() const { return elemLibrary_nodes_array; } - /** - * Gets the library_physics_materials element array. - * @return Returns a reference to the array of library_physics_materials elements. - */ - domLibrary_physics_materials_Array &getLibrary_physics_materials_array() { return elemLibrary_physics_materials_array; } - /** - * Gets the library_physics_materials element array. - * @return Returns a constant reference to the array of library_physics_materials elements. - */ - const domLibrary_physics_materials_Array &getLibrary_physics_materials_array() const { return elemLibrary_physics_materials_array; } - /** - * Gets the library_physics_models element array. - * @return Returns a reference to the array of library_physics_models elements. - */ - domLibrary_physics_models_Array &getLibrary_physics_models_array() { return elemLibrary_physics_models_array; } - /** - * Gets the library_physics_models element array. - * @return Returns a constant reference to the array of library_physics_models elements. - */ - const domLibrary_physics_models_Array &getLibrary_physics_models_array() const { return elemLibrary_physics_models_array; } - /** - * Gets the library_physics_scenes element array. - * @return Returns a reference to the array of library_physics_scenes elements. - */ - domLibrary_physics_scenes_Array &getLibrary_physics_scenes_array() { return elemLibrary_physics_scenes_array; } - /** - * Gets the library_physics_scenes element array. - * @return Returns a constant reference to the array of library_physics_scenes elements. - */ - const domLibrary_physics_scenes_Array &getLibrary_physics_scenes_array() const { return elemLibrary_physics_scenes_array; } - /** - * Gets the library_visual_scenes element array. - * @return Returns a reference to the array of library_visual_scenes elements. - */ - domLibrary_visual_scenes_Array &getLibrary_visual_scenes_array() { return elemLibrary_visual_scenes_array; } - /** - * Gets the library_visual_scenes element array. - * @return Returns a constant reference to the array of library_visual_scenes elements. - */ - const domLibrary_visual_scenes_Array &getLibrary_visual_scenes_array() const { return elemLibrary_visual_scenes_array; } - /** - * Gets the scene element. - * @return a daeSmartRef to the scene element. - */ - const domSceneRef getScene() const { return elemScene; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domCOLLADA() : attrVersion(), attrXml_base(), 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(), elemScene(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domCOLLADA() {} - /** - * Copy Constructor - */ - domCOLLADA( const domCOLLADA &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCOLLADA &operator=( const domCOLLADA &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCamera.h b/Extras/COLLADA_DOM/include/1.4/dom/domCamera.h deleted file mode 100644 index a61681be6..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCamera.h +++ /dev/null @@ -1,694 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCamera_h__ -#define __domCamera_h__ - -#include -#include - -#include -#include -#include -#include - -/** - * The camera element declares a view into the scene hierarchy or scene graph. - * The camera contains elements that describe the camera’s optics and imager. - */ -class domCamera : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CAMERA; } -public: - class domOptics; - - typedef daeSmartRef domOpticsRef; - typedef daeTArray domOptics_Array; - -/** - * Optics represents the apparatus on a camera that projects the image onto - * the image sensor. - */ - class domOptics : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::OPTICS; } - public: - class domTechnique_common; - - typedef daeSmartRef domTechnique_commonRef; - typedef daeTArray domTechnique_common_Array; - -/** - * The technique_common element specifies the optics information for the common - * profile which all COLLADA implementations need to support. - */ - class domTechnique_common : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_COMMON; } - public: - class domOrthographic; - - typedef daeSmartRef domOrthographicRef; - typedef daeTArray domOrthographic_Array; - -/** - * The orthographic element describes the field of view of an orthographic - * camera. - */ - class domOrthographic : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ORTHOGRAPHIC; } - - protected: // Elements -/** - * The xmag element contains a floating point number describing the horizontal - * magnification of the view. @see domXmag - */ - domTargetableFloatRef elemXmag; -/** - * The ymag element contains a floating point number describing the vertical - * magnification of the view. It can also have a sid. @see domYmag - */ - domTargetableFloatRef elemYmag; -/** - * The aspect_ratio element contains a floating point number describing the - * aspect ratio of the field of view. If the aspect_ratio element is not - * present the aspect ratio is to be calculated from the xmag or ymag elements - * and the current viewport. @see domAspect_ratio - */ - domTargetableFloatRef elemAspect_ratio; -/** - * The znear element contains a floating point number that describes the distance - * to the near clipping plane. The znear element must occur exactly once. - * @see domZnear - */ - domTargetableFloatRef elemZnear; -/** - * The zfar element contains a floating point number that describes the distance - * to the far clipping plane. The zfar element must occur exactly once. @see - * domZfar - */ - domTargetableFloatRef elemZfar; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the xmag element. - * @return a daeSmartRef to the xmag element. - */ - const domTargetableFloatRef getXmag() const { return elemXmag; } - /** - * Gets the ymag element. - * @return a daeSmartRef to the ymag element. - */ - const domTargetableFloatRef getYmag() const { return elemYmag; } - /** - * Gets the aspect_ratio element. - * @return a daeSmartRef to the aspect_ratio element. - */ - const domTargetableFloatRef getAspect_ratio() const { return elemAspect_ratio; } - /** - * Gets the znear element. - * @return a daeSmartRef to the znear element. - */ - const domTargetableFloatRef getZnear() const { return elemZnear; } - /** - * Gets the zfar element. - * @return a daeSmartRef to the zfar element. - */ - const domTargetableFloatRef getZfar() const { return elemZfar; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domOrthographic() : elemXmag(), elemYmag(), elemAspect_ratio(), elemZnear(), elemZfar() {} - /** - * Destructor - */ - virtual ~domOrthographic() {} - /** - * Copy Constructor - */ - domOrthographic( const domOrthographic &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domOrthographic &operator=( const domOrthographic &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPerspective; - - typedef daeSmartRef domPerspectiveRef; - typedef daeTArray domPerspective_Array; - -/** - * The perspective element describes the optics of a perspective camera. - */ - class domPerspective : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PERSPECTIVE; } - - protected: // Elements -/** - * The xfov element contains a floating point number describing the horizontal - * field of view in degrees. @see domXfov - */ - domTargetableFloatRef elemXfov; -/** - * The yfov element contains a floating point number describing the verticle - * field of view in degrees. @see domYfov - */ - domTargetableFloatRef elemYfov; -/** - * The aspect_ratio element contains a floating point number describing the - * aspect ratio of the field of view. If the aspect_ratio element is not - * present the aspect ratio is to be calculated from the xfov or yfov elements - * and the current viewport. @see domAspect_ratio - */ - domTargetableFloatRef elemAspect_ratio; -/** - * The znear element contains a floating point number that describes the distance - * to the near clipping plane. The znear element must occur exactly once. - * @see domZnear - */ - domTargetableFloatRef elemZnear; -/** - * The zfar element contains a floating point number that describes the distance - * to the far clipping plane. The zfar element must occur exactly once. @see - * domZfar - */ - domTargetableFloatRef elemZfar; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the xfov element. - * @return a daeSmartRef to the xfov element. - */ - const domTargetableFloatRef getXfov() const { return elemXfov; } - /** - * Gets the yfov element. - * @return a daeSmartRef to the yfov element. - */ - const domTargetableFloatRef getYfov() const { return elemYfov; } - /** - * Gets the aspect_ratio element. - * @return a daeSmartRef to the aspect_ratio element. - */ - const domTargetableFloatRef getAspect_ratio() const { return elemAspect_ratio; } - /** - * Gets the znear element. - * @return a daeSmartRef to the znear element. - */ - const domTargetableFloatRef getZnear() const { return elemZnear; } - /** - * Gets the zfar element. - * @return a daeSmartRef to the zfar element. - */ - const domTargetableFloatRef getZfar() const { return elemZfar; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domPerspective() : elemXfov(), elemYfov(), elemAspect_ratio(), elemZnear(), elemZfar() {} - /** - * Destructor - */ - virtual ~domPerspective() {} - /** - * Copy Constructor - */ - domPerspective( const domPerspective &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPerspective &operator=( const domPerspective &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements -/** - * The orthographic element describes the field of view of an orthographic - * camera. @see domOrthographic - */ - domOrthographicRef elemOrthographic; -/** - * The perspective element describes the optics of a perspective camera. @see - * domPerspective - */ - domPerspectiveRef elemPerspective; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the orthographic element. - * @return a daeSmartRef to the orthographic element. - */ - const domOrthographicRef getOrthographic() const { return elemOrthographic; } - /** - * Gets the perspective element. - * @return a daeSmartRef to the perspective element. - */ - const domPerspectiveRef getPerspective() const { return elemPerspective; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTechnique_common() : elemOrthographic(), elemPerspective() {} - /** - * Destructor - */ - virtual ~domTechnique_common() {} - /** - * Copy Constructor - */ - domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique_common &operator=( const domTechnique_common &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements -/** - * The technique_common element specifies the optics information for the common - * profile which all COLLADA implementations need to support. @see domTechnique_common - */ - domTechnique_commonRef elemTechnique_common; -/** - * This element may contain any number of non-common profile techniques. - * @see domTechnique - */ - domTechnique_Array elemTechnique_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - - public: //Accessors and Mutators - /** - * Gets the technique_common element. - * @return a daeSmartRef to the technique_common element. - */ - const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - protected: - /** - * Constructor - */ - domOptics() : elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domOptics() {} - /** - * Copy Constructor - */ - domOptics( const domOptics &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domOptics &operator=( const domOptics &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domImager; - - typedef daeSmartRef domImagerRef; - typedef daeTArray domImager_Array; - -/** - * Imagers represent the image sensor of a camera (for example film or CCD). - */ - class domImager : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::IMAGER; } - - protected: // Elements -/** - * This element may contain any number of non-common profile techniques. - * There is no common technique for imager. @see domTechnique - */ - domTechnique_Array elemTechnique_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - - public: //Accessors and Mutators - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - protected: - /** - * Constructor - */ - domImager() : elemTechnique_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domImager() {} - /** - * Copy Constructor - */ - domImager( const domImager &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domImager &operator=( const domImager &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The camera element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * Optics represents the apparatus on a camera that projects the image onto - * the image sensor. @see domOptics - */ - domOpticsRef elemOptics; -/** - * Imagers represent the image sensor of a camera (for example film or CCD). - * @see domImager - */ - domImagerRef elemImager; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the optics element. - * @return a daeSmartRef to the optics element. - */ - const domOpticsRef getOptics() const { return elemOptics; } - /** - * Gets the imager element. - * @return a daeSmartRef to the imager element. - */ - const domImagerRef getImager() const { return elemImager; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domCamera() : attrId(), attrName(), elemAsset(), elemOptics(), elemImager(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domCamera() {} - /** - * Copy Constructor - */ - domCamera( const domCamera &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCamera &operator=( const domCamera &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCapsule.h b/Extras/COLLADA_DOM/include/1.4/dom/domCapsule.h deleted file mode 100644 index 9b1efeb74..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCapsule.h +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCapsule_h__ -#define __domCapsule_h__ - -#include -#include - -#include - -/** - * A capsule primitive that is centered on and aligned with the local Y axis. - */ -class domCapsule : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CAPSULE; } -public: - class domHeight; - - typedef daeSmartRef domHeightRef; - typedef daeTArray domHeight_Array; - -/** - * A float value that represents the length of the line segment connecting - * the centers of the capping hemispheres. - */ - class domHeight : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HEIGHT; } - - protected: // Value - /** - * The domFloat value of the text data of this element. - */ - domFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFloat of the value. - */ - domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHeight() : _value() {} - /** - * Destructor - */ - virtual ~domHeight() {} - /** - * Copy Constructor - */ - domHeight( const domHeight &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHeight &operator=( const domHeight &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domRadius; - - typedef daeSmartRef domRadiusRef; - typedef daeTArray domRadius_Array; - -/** - * Two float values that represent the radii of the capsule (it may be elliptical) - */ - class domRadius : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RADIUS; } - - protected: // Value - /** - * The domFloat2 value of the text data of this element. - */ - domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFloat2 reference of the _value array. - */ - domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat2 reference of the _value array. - */ - const domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domRadius() : _value() {} - /** - * Destructor - */ - virtual ~domRadius() {} - /** - * Copy Constructor - */ - domRadius( const domRadius &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRadius &operator=( const domRadius &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements -/** - * A float value that represents the length of the line segment connecting - * the centers of the capping hemispheres. @see domHeight - */ - domHeightRef elemHeight; -/** - * Two float values that represent the radii of the capsule (it may be elliptical) - * @see domRadius - */ - domRadiusRef elemRadius; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the height element. - * @return a daeSmartRef to the height element. - */ - const domHeightRef getHeight() const { return elemHeight; } - /** - * Gets the radius element. - * @return a daeSmartRef to the radius element. - */ - const domRadiusRef getRadius() const { return elemRadius; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domCapsule() : elemHeight(), elemRadius(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domCapsule() {} - /** - * Copy Constructor - */ - domCapsule( const domCapsule &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCapsule &operator=( const domCapsule &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_connect_param.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_connect_param.h deleted file mode 100644 index 7165067f5..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_connect_param.h +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_connect_param_h__ -#define __domCg_connect_param_h__ - -#include -#include - - -/** - * Creates a symbolic connection between two previously defined parameters. - */ -class domCg_connect_param_complexType -{ -protected: // Attribute - domCg_identifier attrRef; - - -public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a domCg_identifier of the ref attribute. - */ - domCg_identifier getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( domCg_identifier atRef ) { attrRef = atRef; } - -protected: - /** - * Constructor - */ - domCg_connect_param_complexType() : attrRef() {} - /** - * Destructor - */ - virtual ~domCg_connect_param_complexType() {} - /** - * Copy Constructor - */ - domCg_connect_param_complexType( const domCg_connect_param_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_connect_param_complexType &operator=( const domCg_connect_param_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_connect_param_complexType. - */ -class domCg_connect_param : public daeElement, public domCg_connect_param_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_CONNECT_PARAM; } - -public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a domCg_identifier of the ref attribute. - */ - domCg_identifier getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( domCg_identifier atRef ) { attrRef = atRef; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domCg_connect_param() {} - /** - * Destructor - */ - virtual ~domCg_connect_param() {} - /** - * Copy Constructor - */ - domCg_connect_param( const domCg_connect_param &cpy ) : daeElement(), domCg_connect_param_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_connect_param &operator=( const domCg_connect_param &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_newarray_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_newarray_type.h deleted file mode 100644 index 2fddb73b1..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_newarray_type.h +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_newarray_type_h__ -#define __domCg_newarray_type_h__ - -#include -#include - -#include -#include -#include -#include - -/** - * Creates a parameter of a one-dimensional array type. - */ -class domCg_newarray_type_complexType -{ -protected: // Attribute -/** - * The length attribute specifies the length of the array. - */ - xsPositiveInteger attrLength; - -protected: // Elements - domCg_param_type_Array elemCg_param_type_array; -/** - * Nested array elements allow you to create multidemensional arrays. @see - * domArray - */ - domCg_newarray_type_Array elemArray_array; -/** - * The usertype element allows you to create arrays of usertypes. @see domUsertype - */ - domCg_setuser_type_Array elemUsertype_array; - domCg_connect_param_Array elemConnect_param_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the length attribute. - * @return Returns a xsPositiveInteger of the length attribute. - */ - xsPositiveInteger getLength() const { return attrLength; } - /** - * Sets the length attribute. - * @param atLength The new value for the length attribute. - */ - void setLength( xsPositiveInteger atLength ) { attrLength = atLength; } - - /** - * Gets the cg_param_type element array. - * @return Returns a reference to the array of cg_param_type elements. - */ - domCg_param_type_Array &getCg_param_type_array() { return elemCg_param_type_array; } - /** - * Gets the cg_param_type element array. - * @return Returns a constant reference to the array of cg_param_type elements. - */ - const domCg_param_type_Array &getCg_param_type_array() const { return elemCg_param_type_array; } - /** - * Gets the array element array. - * @return Returns a reference to the array of array elements. - */ - domCg_newarray_type_Array &getArray_array() { return elemArray_array; } - /** - * Gets the array element array. - * @return Returns a constant reference to the array of array elements. - */ - const domCg_newarray_type_Array &getArray_array() const { return elemArray_array; } - /** - * Gets the usertype element array. - * @return Returns a reference to the array of usertype elements. - */ - domCg_setuser_type_Array &getUsertype_array() { return elemUsertype_array; } - /** - * Gets the usertype element array. - * @return Returns a constant reference to the array of usertype elements. - */ - const domCg_setuser_type_Array &getUsertype_array() const { return elemUsertype_array; } - /** - * Gets the connect_param element array. - * @return Returns a reference to the array of connect_param elements. - */ - domCg_connect_param_Array &getConnect_param_array() { return elemConnect_param_array; } - /** - * Gets the connect_param element array. - * @return Returns a constant reference to the array of connect_param elements. - */ - const domCg_connect_param_Array &getConnect_param_array() const { return elemConnect_param_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domCg_newarray_type_complexType() : attrLength(), elemCg_param_type_array(), elemArray_array(), elemUsertype_array(), elemConnect_param_array() {} - /** - * Destructor - */ - virtual ~domCg_newarray_type_complexType() {} - /** - * Copy Constructor - */ - domCg_newarray_type_complexType( const domCg_newarray_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_newarray_type_complexType &operator=( const domCg_newarray_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_newarray_type_complexType. - */ -class domCg_newarray_type : public daeElement, public domCg_newarray_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_NEWARRAY_TYPE; } - -public: //Accessors and Mutators - /** - * Gets the length attribute. - * @return Returns a xsPositiveInteger of the length attribute. - */ - xsPositiveInteger getLength() const { return attrLength; } - /** - * Sets the length attribute. - * @param atLength The new value for the length attribute. - */ - void setLength( xsPositiveInteger atLength ) { attrLength = atLength; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domCg_newarray_type() {} - /** - * Destructor - */ - virtual ~domCg_newarray_type() {} - /** - * Copy Constructor - */ - domCg_newarray_type( const domCg_newarray_type &cpy ) : daeElement(), domCg_newarray_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_newarray_type &operator=( const domCg_newarray_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_newparam.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_newparam.h deleted file mode 100644 index 08f35239f..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_newparam.h +++ /dev/null @@ -1,342 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_newparam_h__ -#define __domCg_newparam_h__ - -#include -#include - -#include -#include -#include -#include - -/** - * Create a new, named param object in the CG Runtime, assign it a type, an - * initial value, and additional attributes at declaration time. - */ -class domCg_newparam_complexType -{ -public: - class domSemantic; - - typedef daeSmartRef domSemanticRef; - typedef daeTArray domSemantic_Array; - -/** - * The semantic element allows you to specify a semantic for this new param. - */ - class domSemantic : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SEMANTIC; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSemantic() : _value() {} - /** - * Destructor - */ - virtual ~domSemantic() {} - /** - * Copy Constructor - */ - domSemantic( const domSemantic &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSemantic &operator=( const domSemantic &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domModifier; - - typedef daeSmartRef domModifierRef; - typedef daeTArray domModifier_Array; - -/** - * The modifier element allows you to specify a modifier for this new param. - */ - class domModifier : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODIFIER; } - - protected: // Value - /** - * The domFx_modifier_enum_common value of the text data of this element. - */ - domFx_modifier_enum_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_modifier_enum_common of the value. - */ - domFx_modifier_enum_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_modifier_enum_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domModifier() : _value() {} - /** - * Destructor - */ - virtual ~domModifier() {} - /** - * Copy Constructor - */ - domModifier( const domModifier &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domModifier &operator=( const domModifier &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attribute - domCg_identifier attrSid; - -protected: // Elements -/** - * The annotate element allows you to specify an annotation for this new param. - * @see domAnnotate - */ - domFx_annotate_common_Array elemAnnotate_array; -/** - * The semantic element allows you to specify a semantic for this new param. - * @see domSemantic - */ - domSemanticRef elemSemantic; -/** - * The modifier element allows you to specify a modifier for this new param. - * @see domModifier - */ - domModifierRef elemModifier; - domCg_param_typeRef elemCg_param_type; - domCg_setuser_typeRef elemUsertype; - domCg_newarray_typeRef elemArray; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a domCg_identifier of the sid attribute. - */ - domCg_identifier getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( domCg_identifier atSid ) { attrSid = atSid; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the semantic element. - * @return a daeSmartRef to the semantic element. - */ - const domSemanticRef getSemantic() const { return elemSemantic; } - /** - * Gets the modifier element. - * @return a daeSmartRef to the modifier element. - */ - const domModifierRef getModifier() const { return elemModifier; } - /** - * Gets the cg_param_type element. - * @return a daeSmartRef to the cg_param_type element. - */ - const domCg_param_typeRef getCg_param_type() const { return elemCg_param_type; } - /** - * Gets the usertype element. - * @return a daeSmartRef to the usertype element. - */ - const domCg_setuser_typeRef getUsertype() const { return elemUsertype; } - /** - * Gets the array element. - * @return a daeSmartRef to the array element. - */ - const domCg_newarray_typeRef getArray() const { return elemArray; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domCg_newparam_complexType() : attrSid(), elemAnnotate_array(), elemSemantic(), elemModifier(), elemCg_param_type(), elemUsertype(), elemArray() {} - /** - * Destructor - */ - virtual ~domCg_newparam_complexType() {} - /** - * Copy Constructor - */ - domCg_newparam_complexType( const domCg_newparam_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_newparam_complexType &operator=( const domCg_newparam_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_newparam_complexType. - */ -class domCg_newparam : public daeElement, public domCg_newparam_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_NEWPARAM; } - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a domCg_identifier of the sid attribute. - */ - domCg_identifier getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( domCg_identifier atSid ) { attrSid = atSid; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domCg_newparam() {} - /** - * Destructor - */ - virtual ~domCg_newparam() {} - /** - * Copy Constructor - */ - domCg_newparam( const domCg_newparam &cpy ) : daeElement(), domCg_newparam_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_newparam &operator=( const domCg_newparam &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_param_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_param_type.h deleted file mode 100644 index 372daf65d..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_param_type.h +++ /dev/null @@ -1,8428 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_param_type_h__ -#define __domCg_param_type_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -/** - * A group that specifies the allowable types for CG profile parameters. - */ -class domCg_param_type : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_PARAM_TYPE; } -public: - class domBool; - - typedef daeSmartRef domBoolRef; - typedef daeTArray domBool_Array; - - class domBool : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL; } - - protected: // Value - /** - * The domCg_bool value of the text data of this element. - */ - domCg_bool _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domCg_bool of the value. - */ - domCg_bool getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domCg_bool val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool() : _value() {} - /** - * Destructor - */ - virtual ~domBool() {} - /** - * Copy Constructor - */ - domBool( const domBool &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool &operator=( const domBool &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool1; - - typedef daeSmartRef domBool1Ref; - typedef daeTArray domBool1_Array; - - class domBool1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL1; } - - protected: // Value - /** - * The domCg_bool1 value of the text data of this element. - */ - domCg_bool1 _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domCg_bool1 of the value. - */ - domCg_bool1 getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domCg_bool1 val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool1() : _value() {} - /** - * Destructor - */ - virtual ~domBool1() {} - /** - * Copy Constructor - */ - domBool1( const domBool1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool1 &operator=( const domBool1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool2; - - typedef daeSmartRef domBool2Ref; - typedef daeTArray domBool2_Array; - - class domBool2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL2; } - - protected: // Value - /** - * The domCg_bool2 value of the text data of this element. - */ - domCg_bool2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool2 reference of the _value array. - */ - domCg_bool2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool2 reference of the _value array. - */ - const domCg_bool2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool2() : _value() {} - /** - * Destructor - */ - virtual ~domBool2() {} - /** - * Copy Constructor - */ - domBool2( const domBool2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool2 &operator=( const domBool2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool3; - - typedef daeSmartRef domBool3Ref; - typedef daeTArray domBool3_Array; - - class domBool3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL3; } - - protected: // Value - /** - * The domCg_bool3 value of the text data of this element. - */ - domCg_bool3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool3 reference of the _value array. - */ - domCg_bool3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool3 reference of the _value array. - */ - const domCg_bool3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool3() : _value() {} - /** - * Destructor - */ - virtual ~domBool3() {} - /** - * Copy Constructor - */ - domBool3( const domBool3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool3 &operator=( const domBool3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool4; - - typedef daeSmartRef domBool4Ref; - typedef daeTArray domBool4_Array; - - class domBool4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL4; } - - protected: // Value - /** - * The domCg_bool4 value of the text data of this element. - */ - domCg_bool4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool4 reference of the _value array. - */ - domCg_bool4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool4 reference of the _value array. - */ - const domCg_bool4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool4() : _value() {} - /** - * Destructor - */ - virtual ~domBool4() {} - /** - * Copy Constructor - */ - domBool4( const domBool4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool4 &operator=( const domBool4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool1x1; - - typedef daeSmartRef domBool1x1Ref; - typedef daeTArray domBool1x1_Array; - - class domBool1x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL1X1; } - - protected: // Value - /** - * The domCg_bool1x1 value of the text data of this element. - */ - domCg_bool1x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool1x1 reference of the _value array. - */ - domCg_bool1x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool1x1 reference of the _value array. - */ - const domCg_bool1x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool1x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool1x1() : _value() {} - /** - * Destructor - */ - virtual ~domBool1x1() {} - /** - * Copy Constructor - */ - domBool1x1( const domBool1x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool1x1 &operator=( const domBool1x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool1x2; - - typedef daeSmartRef domBool1x2Ref; - typedef daeTArray domBool1x2_Array; - - class domBool1x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL1X2; } - - protected: // Value - /** - * The domCg_bool1x2 value of the text data of this element. - */ - domCg_bool1x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool1x2 reference of the _value array. - */ - domCg_bool1x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool1x2 reference of the _value array. - */ - const domCg_bool1x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool1x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool1x2() : _value() {} - /** - * Destructor - */ - virtual ~domBool1x2() {} - /** - * Copy Constructor - */ - domBool1x2( const domBool1x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool1x2 &operator=( const domBool1x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool1x3; - - typedef daeSmartRef domBool1x3Ref; - typedef daeTArray domBool1x3_Array; - - class domBool1x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL1X3; } - - protected: // Value - /** - * The domCg_bool1x3 value of the text data of this element. - */ - domCg_bool1x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool1x3 reference of the _value array. - */ - domCg_bool1x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool1x3 reference of the _value array. - */ - const domCg_bool1x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool1x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool1x3() : _value() {} - /** - * Destructor - */ - virtual ~domBool1x3() {} - /** - * Copy Constructor - */ - domBool1x3( const domBool1x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool1x3 &operator=( const domBool1x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool1x4; - - typedef daeSmartRef domBool1x4Ref; - typedef daeTArray domBool1x4_Array; - - class domBool1x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL1X4; } - - protected: // Value - /** - * The domCg_bool1x4 value of the text data of this element. - */ - domCg_bool1x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool1x4 reference of the _value array. - */ - domCg_bool1x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool1x4 reference of the _value array. - */ - const domCg_bool1x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool1x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool1x4() : _value() {} - /** - * Destructor - */ - virtual ~domBool1x4() {} - /** - * Copy Constructor - */ - domBool1x4( const domBool1x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool1x4 &operator=( const domBool1x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool2x1; - - typedef daeSmartRef domBool2x1Ref; - typedef daeTArray domBool2x1_Array; - - class domBool2x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL2X1; } - - protected: // Value - /** - * The domCg_bool2x1 value of the text data of this element. - */ - domCg_bool2x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool2x1 reference of the _value array. - */ - domCg_bool2x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool2x1 reference of the _value array. - */ - const domCg_bool2x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool2x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool2x1() : _value() {} - /** - * Destructor - */ - virtual ~domBool2x1() {} - /** - * Copy Constructor - */ - domBool2x1( const domBool2x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool2x1 &operator=( const domBool2x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool2x2; - - typedef daeSmartRef domBool2x2Ref; - typedef daeTArray domBool2x2_Array; - - class domBool2x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL2X2; } - - protected: // Value - /** - * The domCg_bool2x2 value of the text data of this element. - */ - domCg_bool2x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool2x2 reference of the _value array. - */ - domCg_bool2x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool2x2 reference of the _value array. - */ - const domCg_bool2x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool2x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool2x2() : _value() {} - /** - * Destructor - */ - virtual ~domBool2x2() {} - /** - * Copy Constructor - */ - domBool2x2( const domBool2x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool2x2 &operator=( const domBool2x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool2x3; - - typedef daeSmartRef domBool2x3Ref; - typedef daeTArray domBool2x3_Array; - - class domBool2x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL2X3; } - - protected: // Value - /** - * The domCg_bool2x3 value of the text data of this element. - */ - domCg_bool2x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool2x3 reference of the _value array. - */ - domCg_bool2x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool2x3 reference of the _value array. - */ - const domCg_bool2x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool2x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool2x3() : _value() {} - /** - * Destructor - */ - virtual ~domBool2x3() {} - /** - * Copy Constructor - */ - domBool2x3( const domBool2x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool2x3 &operator=( const domBool2x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool2x4; - - typedef daeSmartRef domBool2x4Ref; - typedef daeTArray domBool2x4_Array; - - class domBool2x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL2X4; } - - protected: // Value - /** - * The domCg_bool2x4 value of the text data of this element. - */ - domCg_bool2x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool2x4 reference of the _value array. - */ - domCg_bool2x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool2x4 reference of the _value array. - */ - const domCg_bool2x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool2x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool2x4() : _value() {} - /** - * Destructor - */ - virtual ~domBool2x4() {} - /** - * Copy Constructor - */ - domBool2x4( const domBool2x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool2x4 &operator=( const domBool2x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool3x1; - - typedef daeSmartRef domBool3x1Ref; - typedef daeTArray domBool3x1_Array; - - class domBool3x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL3X1; } - - protected: // Value - /** - * The domCg_bool3x1 value of the text data of this element. - */ - domCg_bool3x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool3x1 reference of the _value array. - */ - domCg_bool3x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool3x1 reference of the _value array. - */ - const domCg_bool3x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool3x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool3x1() : _value() {} - /** - * Destructor - */ - virtual ~domBool3x1() {} - /** - * Copy Constructor - */ - domBool3x1( const domBool3x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool3x1 &operator=( const domBool3x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool3x2; - - typedef daeSmartRef domBool3x2Ref; - typedef daeTArray domBool3x2_Array; - - class domBool3x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL3X2; } - - protected: // Value - /** - * The domCg_bool3x2 value of the text data of this element. - */ - domCg_bool3x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool3x2 reference of the _value array. - */ - domCg_bool3x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool3x2 reference of the _value array. - */ - const domCg_bool3x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool3x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool3x2() : _value() {} - /** - * Destructor - */ - virtual ~domBool3x2() {} - /** - * Copy Constructor - */ - domBool3x2( const domBool3x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool3x2 &operator=( const domBool3x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool3x3; - - typedef daeSmartRef domBool3x3Ref; - typedef daeTArray domBool3x3_Array; - - class domBool3x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL3X3; } - - protected: // Value - /** - * The domCg_bool3x3 value of the text data of this element. - */ - domCg_bool3x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool3x3 reference of the _value array. - */ - domCg_bool3x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool3x3 reference of the _value array. - */ - const domCg_bool3x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool3x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool3x3() : _value() {} - /** - * Destructor - */ - virtual ~domBool3x3() {} - /** - * Copy Constructor - */ - domBool3x3( const domBool3x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool3x3 &operator=( const domBool3x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool3x4; - - typedef daeSmartRef domBool3x4Ref; - typedef daeTArray domBool3x4_Array; - - class domBool3x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL3X4; } - - protected: // Value - /** - * The domCg_bool3x4 value of the text data of this element. - */ - domCg_bool3x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool3x4 reference of the _value array. - */ - domCg_bool3x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool3x4 reference of the _value array. - */ - const domCg_bool3x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool3x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool3x4() : _value() {} - /** - * Destructor - */ - virtual ~domBool3x4() {} - /** - * Copy Constructor - */ - domBool3x4( const domBool3x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool3x4 &operator=( const domBool3x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool4x1; - - typedef daeSmartRef domBool4x1Ref; - typedef daeTArray domBool4x1_Array; - - class domBool4x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL4X1; } - - protected: // Value - /** - * The domCg_bool4x1 value of the text data of this element. - */ - domCg_bool4x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool4x1 reference of the _value array. - */ - domCg_bool4x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool4x1 reference of the _value array. - */ - const domCg_bool4x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool4x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool4x1() : _value() {} - /** - * Destructor - */ - virtual ~domBool4x1() {} - /** - * Copy Constructor - */ - domBool4x1( const domBool4x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool4x1 &operator=( const domBool4x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool4x2; - - typedef daeSmartRef domBool4x2Ref; - typedef daeTArray domBool4x2_Array; - - class domBool4x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL4X2; } - - protected: // Value - /** - * The domCg_bool4x2 value of the text data of this element. - */ - domCg_bool4x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool4x2 reference of the _value array. - */ - domCg_bool4x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool4x2 reference of the _value array. - */ - const domCg_bool4x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool4x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool4x2() : _value() {} - /** - * Destructor - */ - virtual ~domBool4x2() {} - /** - * Copy Constructor - */ - domBool4x2( const domBool4x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool4x2 &operator=( const domBool4x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool4x3; - - typedef daeSmartRef domBool4x3Ref; - typedef daeTArray domBool4x3_Array; - - class domBool4x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL4X3; } - - protected: // Value - /** - * The domCg_bool4x3 value of the text data of this element. - */ - domCg_bool4x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool4x3 reference of the _value array. - */ - domCg_bool4x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool4x3 reference of the _value array. - */ - const domCg_bool4x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool4x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool4x3() : _value() {} - /** - * Destructor - */ - virtual ~domBool4x3() {} - /** - * Copy Constructor - */ - domBool4x3( const domBool4x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool4x3 &operator=( const domBool4x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool4x4; - - typedef daeSmartRef domBool4x4Ref; - typedef daeTArray domBool4x4_Array; - - class domBool4x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL4X4; } - - protected: // Value - /** - * The domCg_bool4x4 value of the text data of this element. - */ - domCg_bool4x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_bool4x4 reference of the _value array. - */ - domCg_bool4x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_bool4x4 reference of the _value array. - */ - const domCg_bool4x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_bool4x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool4x4() : _value() {} - /** - * Destructor - */ - virtual ~domBool4x4() {} - /** - * Copy Constructor - */ - domBool4x4( const domBool4x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool4x4 &operator=( const domBool4x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat; - - typedef daeSmartRef domFloatRef; - typedef daeTArray domFloat_Array; - - class domFloat : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT; } - - protected: // Value - /** - * The domCg_float value of the text data of this element. - */ - domCg_float _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domCg_float of the value. - */ - domCg_float getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domCg_float val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat() : _value() {} - /** - * Destructor - */ - virtual ~domFloat() {} - /** - * Copy Constructor - */ - domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat &operator=( const domFloat &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat1; - - typedef daeSmartRef domFloat1Ref; - typedef daeTArray domFloat1_Array; - - class domFloat1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT1; } - - protected: // Value - /** - * The domCg_float1 value of the text data of this element. - */ - domCg_float1 _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domCg_float1 of the value. - */ - domCg_float1 getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domCg_float1 val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat1() : _value() {} - /** - * Destructor - */ - virtual ~domFloat1() {} - /** - * Copy Constructor - */ - domFloat1( const domFloat1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat1 &operator=( const domFloat1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2; - - typedef daeSmartRef domFloat2Ref; - typedef daeTArray domFloat2_Array; - - class domFloat2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2; } - - protected: // Value - /** - * The domCg_float2 value of the text data of this element. - */ - domCg_float2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float2 reference of the _value array. - */ - domCg_float2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float2 reference of the _value array. - */ - const domCg_float2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2() {} - /** - * Copy Constructor - */ - domFloat2( const domFloat2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2 &operator=( const domFloat2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3; - - typedef daeSmartRef domFloat3Ref; - typedef daeTArray domFloat3_Array; - - class domFloat3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3; } - - protected: // Value - /** - * The domCg_float3 value of the text data of this element. - */ - domCg_float3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float3 reference of the _value array. - */ - domCg_float3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float3 reference of the _value array. - */ - const domCg_float3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3() {} - /** - * Copy Constructor - */ - domFloat3( const domFloat3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3 &operator=( const domFloat3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4; - - typedef daeSmartRef domFloat4Ref; - typedef daeTArray domFloat4_Array; - - class domFloat4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4; } - - protected: // Value - /** - * The domCg_float4 value of the text data of this element. - */ - domCg_float4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float4 reference of the _value array. - */ - domCg_float4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float4 reference of the _value array. - */ - const domCg_float4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4() {} - /** - * Copy Constructor - */ - domFloat4( const domFloat4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4 &operator=( const domFloat4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat1x1; - - typedef daeSmartRef domFloat1x1Ref; - typedef daeTArray domFloat1x1_Array; - - class domFloat1x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT1X1; } - - protected: // Value - /** - * The domCg_float1x1 value of the text data of this element. - */ - domCg_float1x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float1x1 reference of the _value array. - */ - domCg_float1x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float1x1 reference of the _value array. - */ - const domCg_float1x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float1x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat1x1() : _value() {} - /** - * Destructor - */ - virtual ~domFloat1x1() {} - /** - * Copy Constructor - */ - domFloat1x1( const domFloat1x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat1x1 &operator=( const domFloat1x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat1x2; - - typedef daeSmartRef domFloat1x2Ref; - typedef daeTArray domFloat1x2_Array; - - class domFloat1x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT1X2; } - - protected: // Value - /** - * The domCg_float1x2 value of the text data of this element. - */ - domCg_float1x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float1x2 reference of the _value array. - */ - domCg_float1x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float1x2 reference of the _value array. - */ - const domCg_float1x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float1x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat1x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat1x2() {} - /** - * Copy Constructor - */ - domFloat1x2( const domFloat1x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat1x2 &operator=( const domFloat1x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat1x3; - - typedef daeSmartRef domFloat1x3Ref; - typedef daeTArray domFloat1x3_Array; - - class domFloat1x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT1X3; } - - protected: // Value - /** - * The domCg_float1x3 value of the text data of this element. - */ - domCg_float1x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float1x3 reference of the _value array. - */ - domCg_float1x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float1x3 reference of the _value array. - */ - const domCg_float1x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float1x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat1x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat1x3() {} - /** - * Copy Constructor - */ - domFloat1x3( const domFloat1x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat1x3 &operator=( const domFloat1x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat1x4; - - typedef daeSmartRef domFloat1x4Ref; - typedef daeTArray domFloat1x4_Array; - - class domFloat1x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT1X4; } - - protected: // Value - /** - * The domCg_float1x4 value of the text data of this element. - */ - domCg_float1x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float1x4 reference of the _value array. - */ - domCg_float1x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float1x4 reference of the _value array. - */ - const domCg_float1x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float1x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat1x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat1x4() {} - /** - * Copy Constructor - */ - domFloat1x4( const domFloat1x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat1x4 &operator=( const domFloat1x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x1; - - typedef daeSmartRef domFloat2x1Ref; - typedef daeTArray domFloat2x1_Array; - - class domFloat2x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X1; } - - protected: // Value - /** - * The domCg_float2x1 value of the text data of this element. - */ - domCg_float2x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float2x1 reference of the _value array. - */ - domCg_float2x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float2x1 reference of the _value array. - */ - const domCg_float2x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float2x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x1() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x1() {} - /** - * Copy Constructor - */ - domFloat2x1( const domFloat2x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x1 &operator=( const domFloat2x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x2; - - typedef daeSmartRef domFloat2x2Ref; - typedef daeTArray domFloat2x2_Array; - - class domFloat2x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X2; } - - protected: // Value - /** - * The domCg_float2x2 value of the text data of this element. - */ - domCg_float2x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float2x2 reference of the _value array. - */ - domCg_float2x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float2x2 reference of the _value array. - */ - const domCg_float2x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float2x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x2() {} - /** - * Copy Constructor - */ - domFloat2x2( const domFloat2x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x2 &operator=( const domFloat2x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x3; - - typedef daeSmartRef domFloat2x3Ref; - typedef daeTArray domFloat2x3_Array; - - class domFloat2x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X3; } - - protected: // Value - /** - * The domCg_float2x3 value of the text data of this element. - */ - domCg_float2x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float2x3 reference of the _value array. - */ - domCg_float2x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float2x3 reference of the _value array. - */ - const domCg_float2x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float2x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x3() {} - /** - * Copy Constructor - */ - domFloat2x3( const domFloat2x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x3 &operator=( const domFloat2x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x4; - - typedef daeSmartRef domFloat2x4Ref; - typedef daeTArray domFloat2x4_Array; - - class domFloat2x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X4; } - - protected: // Value - /** - * The domCg_float2x4 value of the text data of this element. - */ - domCg_float2x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float2x4 reference of the _value array. - */ - domCg_float2x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float2x4 reference of the _value array. - */ - const domCg_float2x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float2x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x4() {} - /** - * Copy Constructor - */ - domFloat2x4( const domFloat2x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x4 &operator=( const domFloat2x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x1; - - typedef daeSmartRef domFloat3x1Ref; - typedef daeTArray domFloat3x1_Array; - - class domFloat3x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X1; } - - protected: // Value - /** - * The domCg_float3x1 value of the text data of this element. - */ - domCg_float3x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float3x1 reference of the _value array. - */ - domCg_float3x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float3x1 reference of the _value array. - */ - const domCg_float3x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float3x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x1() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x1() {} - /** - * Copy Constructor - */ - domFloat3x1( const domFloat3x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x1 &operator=( const domFloat3x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x2; - - typedef daeSmartRef domFloat3x2Ref; - typedef daeTArray domFloat3x2_Array; - - class domFloat3x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X2; } - - protected: // Value - /** - * The domCg_float3x2 value of the text data of this element. - */ - domCg_float3x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float3x2 reference of the _value array. - */ - domCg_float3x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float3x2 reference of the _value array. - */ - const domCg_float3x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float3x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x2() {} - /** - * Copy Constructor - */ - domFloat3x2( const domFloat3x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x2 &operator=( const domFloat3x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x3; - - typedef daeSmartRef domFloat3x3Ref; - typedef daeTArray domFloat3x3_Array; - - class domFloat3x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X3; } - - protected: // Value - /** - * The domCg_float3x3 value of the text data of this element. - */ - domCg_float3x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float3x3 reference of the _value array. - */ - domCg_float3x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float3x3 reference of the _value array. - */ - const domCg_float3x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float3x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x3() {} - /** - * Copy Constructor - */ - domFloat3x3( const domFloat3x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x3 &operator=( const domFloat3x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x4; - - typedef daeSmartRef domFloat3x4Ref; - typedef daeTArray domFloat3x4_Array; - - class domFloat3x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X4; } - - protected: // Value - /** - * The domCg_float3x4 value of the text data of this element. - */ - domCg_float3x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float3x4 reference of the _value array. - */ - domCg_float3x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float3x4 reference of the _value array. - */ - const domCg_float3x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float3x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x4() {} - /** - * Copy Constructor - */ - domFloat3x4( const domFloat3x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x4 &operator=( const domFloat3x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x1; - - typedef daeSmartRef domFloat4x1Ref; - typedef daeTArray domFloat4x1_Array; - - class domFloat4x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X1; } - - protected: // Value - /** - * The domCg_float4x1 value of the text data of this element. - */ - domCg_float4x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float4x1 reference of the _value array. - */ - domCg_float4x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float4x1 reference of the _value array. - */ - const domCg_float4x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float4x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x1() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x1() {} - /** - * Copy Constructor - */ - domFloat4x1( const domFloat4x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x1 &operator=( const domFloat4x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x2; - - typedef daeSmartRef domFloat4x2Ref; - typedef daeTArray domFloat4x2_Array; - - class domFloat4x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X2; } - - protected: // Value - /** - * The domCg_float4x2 value of the text data of this element. - */ - domCg_float4x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float4x2 reference of the _value array. - */ - domCg_float4x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float4x2 reference of the _value array. - */ - const domCg_float4x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float4x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x2() {} - /** - * Copy Constructor - */ - domFloat4x2( const domFloat4x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x2 &operator=( const domFloat4x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x3; - - typedef daeSmartRef domFloat4x3Ref; - typedef daeTArray domFloat4x3_Array; - - class domFloat4x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X3; } - - protected: // Value - /** - * The domCg_float4x3 value of the text data of this element. - */ - domCg_float4x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float4x3 reference of the _value array. - */ - domCg_float4x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float4x3 reference of the _value array. - */ - const domCg_float4x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float4x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x3() {} - /** - * Copy Constructor - */ - domFloat4x3( const domFloat4x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x3 &operator=( const domFloat4x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x4; - - typedef daeSmartRef domFloat4x4Ref; - typedef daeTArray domFloat4x4_Array; - - class domFloat4x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X4; } - - protected: // Value - /** - * The domCg_float4x4 value of the text data of this element. - */ - domCg_float4x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_float4x4 reference of the _value array. - */ - domCg_float4x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_float4x4 reference of the _value array. - */ - const domCg_float4x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_float4x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x4() {} - /** - * Copy Constructor - */ - domFloat4x4( const domFloat4x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x4 &operator=( const domFloat4x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt; - - typedef daeSmartRef domIntRef; - typedef daeTArray domInt_Array; - - class domInt : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT; } - - protected: // Value - /** - * The domCg_int value of the text data of this element. - */ - domCg_int _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domCg_int of the value. - */ - domCg_int getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domCg_int val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt() : _value() {} - /** - * Destructor - */ - virtual ~domInt() {} - /** - * Copy Constructor - */ - domInt( const domInt &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt &operator=( const domInt &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt1; - - typedef daeSmartRef domInt1Ref; - typedef daeTArray domInt1_Array; - - class domInt1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT1; } - - protected: // Value - /** - * The domCg_int1 value of the text data of this element. - */ - domCg_int1 _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domCg_int1 of the value. - */ - domCg_int1 getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domCg_int1 val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt1() : _value() {} - /** - * Destructor - */ - virtual ~domInt1() {} - /** - * Copy Constructor - */ - domInt1( const domInt1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt1 &operator=( const domInt1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt2; - - typedef daeSmartRef domInt2Ref; - typedef daeTArray domInt2_Array; - - class domInt2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT2; } - - protected: // Value - /** - * The domCg_int2 value of the text data of this element. - */ - domCg_int2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int2 reference of the _value array. - */ - domCg_int2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int2 reference of the _value array. - */ - const domCg_int2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt2() : _value() {} - /** - * Destructor - */ - virtual ~domInt2() {} - /** - * Copy Constructor - */ - domInt2( const domInt2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt2 &operator=( const domInt2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt3; - - typedef daeSmartRef domInt3Ref; - typedef daeTArray domInt3_Array; - - class domInt3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT3; } - - protected: // Value - /** - * The domCg_int3 value of the text data of this element. - */ - domCg_int3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int3 reference of the _value array. - */ - domCg_int3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int3 reference of the _value array. - */ - const domCg_int3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt3() : _value() {} - /** - * Destructor - */ - virtual ~domInt3() {} - /** - * Copy Constructor - */ - domInt3( const domInt3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt3 &operator=( const domInt3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt4; - - typedef daeSmartRef domInt4Ref; - typedef daeTArray domInt4_Array; - - class domInt4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT4; } - - protected: // Value - /** - * The domCg_int4 value of the text data of this element. - */ - domCg_int4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int4 reference of the _value array. - */ - domCg_int4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int4 reference of the _value array. - */ - const domCg_int4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt4() : _value() {} - /** - * Destructor - */ - virtual ~domInt4() {} - /** - * Copy Constructor - */ - domInt4( const domInt4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt4 &operator=( const domInt4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt1x1; - - typedef daeSmartRef domInt1x1Ref; - typedef daeTArray domInt1x1_Array; - - class domInt1x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT1X1; } - - protected: // Value - /** - * The domCg_int1x1 value of the text data of this element. - */ - domCg_int1x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int1x1 reference of the _value array. - */ - domCg_int1x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int1x1 reference of the _value array. - */ - const domCg_int1x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int1x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt1x1() : _value() {} - /** - * Destructor - */ - virtual ~domInt1x1() {} - /** - * Copy Constructor - */ - domInt1x1( const domInt1x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt1x1 &operator=( const domInt1x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt1x2; - - typedef daeSmartRef domInt1x2Ref; - typedef daeTArray domInt1x2_Array; - - class domInt1x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT1X2; } - - protected: // Value - /** - * The domCg_int1x2 value of the text data of this element. - */ - domCg_int1x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int1x2 reference of the _value array. - */ - domCg_int1x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int1x2 reference of the _value array. - */ - const domCg_int1x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int1x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt1x2() : _value() {} - /** - * Destructor - */ - virtual ~domInt1x2() {} - /** - * Copy Constructor - */ - domInt1x2( const domInt1x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt1x2 &operator=( const domInt1x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt1x3; - - typedef daeSmartRef domInt1x3Ref; - typedef daeTArray domInt1x3_Array; - - class domInt1x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT1X3; } - - protected: // Value - /** - * The domCg_int1x3 value of the text data of this element. - */ - domCg_int1x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int1x3 reference of the _value array. - */ - domCg_int1x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int1x3 reference of the _value array. - */ - const domCg_int1x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int1x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt1x3() : _value() {} - /** - * Destructor - */ - virtual ~domInt1x3() {} - /** - * Copy Constructor - */ - domInt1x3( const domInt1x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt1x3 &operator=( const domInt1x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt1x4; - - typedef daeSmartRef domInt1x4Ref; - typedef daeTArray domInt1x4_Array; - - class domInt1x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT1X4; } - - protected: // Value - /** - * The domCg_int1x4 value of the text data of this element. - */ - domCg_int1x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int1x4 reference of the _value array. - */ - domCg_int1x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int1x4 reference of the _value array. - */ - const domCg_int1x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int1x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt1x4() : _value() {} - /** - * Destructor - */ - virtual ~domInt1x4() {} - /** - * Copy Constructor - */ - domInt1x4( const domInt1x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt1x4 &operator=( const domInt1x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt2x1; - - typedef daeSmartRef domInt2x1Ref; - typedef daeTArray domInt2x1_Array; - - class domInt2x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT2X1; } - - protected: // Value - /** - * The domCg_int2x1 value of the text data of this element. - */ - domCg_int2x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int2x1 reference of the _value array. - */ - domCg_int2x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int2x1 reference of the _value array. - */ - const domCg_int2x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int2x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt2x1() : _value() {} - /** - * Destructor - */ - virtual ~domInt2x1() {} - /** - * Copy Constructor - */ - domInt2x1( const domInt2x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt2x1 &operator=( const domInt2x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt2x2; - - typedef daeSmartRef domInt2x2Ref; - typedef daeTArray domInt2x2_Array; - - class domInt2x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT2X2; } - - protected: // Value - /** - * The domCg_int2x2 value of the text data of this element. - */ - domCg_int2x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int2x2 reference of the _value array. - */ - domCg_int2x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int2x2 reference of the _value array. - */ - const domCg_int2x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int2x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt2x2() : _value() {} - /** - * Destructor - */ - virtual ~domInt2x2() {} - /** - * Copy Constructor - */ - domInt2x2( const domInt2x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt2x2 &operator=( const domInt2x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt2x3; - - typedef daeSmartRef domInt2x3Ref; - typedef daeTArray domInt2x3_Array; - - class domInt2x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT2X3; } - - protected: // Value - /** - * The domCg_int2x3 value of the text data of this element. - */ - domCg_int2x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int2x3 reference of the _value array. - */ - domCg_int2x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int2x3 reference of the _value array. - */ - const domCg_int2x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int2x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt2x3() : _value() {} - /** - * Destructor - */ - virtual ~domInt2x3() {} - /** - * Copy Constructor - */ - domInt2x3( const domInt2x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt2x3 &operator=( const domInt2x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt2x4; - - typedef daeSmartRef domInt2x4Ref; - typedef daeTArray domInt2x4_Array; - - class domInt2x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT2X4; } - - protected: // Value - /** - * The domCg_int2x4 value of the text data of this element. - */ - domCg_int2x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int2x4 reference of the _value array. - */ - domCg_int2x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int2x4 reference of the _value array. - */ - const domCg_int2x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int2x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt2x4() : _value() {} - /** - * Destructor - */ - virtual ~domInt2x4() {} - /** - * Copy Constructor - */ - domInt2x4( const domInt2x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt2x4 &operator=( const domInt2x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt3x1; - - typedef daeSmartRef domInt3x1Ref; - typedef daeTArray domInt3x1_Array; - - class domInt3x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT3X1; } - - protected: // Value - /** - * The domCg_int3x1 value of the text data of this element. - */ - domCg_int3x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int3x1 reference of the _value array. - */ - domCg_int3x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int3x1 reference of the _value array. - */ - const domCg_int3x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int3x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt3x1() : _value() {} - /** - * Destructor - */ - virtual ~domInt3x1() {} - /** - * Copy Constructor - */ - domInt3x1( const domInt3x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt3x1 &operator=( const domInt3x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt3x2; - - typedef daeSmartRef domInt3x2Ref; - typedef daeTArray domInt3x2_Array; - - class domInt3x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT3X2; } - - protected: // Value - /** - * The domCg_int3x2 value of the text data of this element. - */ - domCg_int3x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int3x2 reference of the _value array. - */ - domCg_int3x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int3x2 reference of the _value array. - */ - const domCg_int3x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int3x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt3x2() : _value() {} - /** - * Destructor - */ - virtual ~domInt3x2() {} - /** - * Copy Constructor - */ - domInt3x2( const domInt3x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt3x2 &operator=( const domInt3x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt3x3; - - typedef daeSmartRef domInt3x3Ref; - typedef daeTArray domInt3x3_Array; - - class domInt3x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT3X3; } - - protected: // Value - /** - * The domCg_int3x3 value of the text data of this element. - */ - domCg_int3x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int3x3 reference of the _value array. - */ - domCg_int3x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int3x3 reference of the _value array. - */ - const domCg_int3x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int3x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt3x3() : _value() {} - /** - * Destructor - */ - virtual ~domInt3x3() {} - /** - * Copy Constructor - */ - domInt3x3( const domInt3x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt3x3 &operator=( const domInt3x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt3x4; - - typedef daeSmartRef domInt3x4Ref; - typedef daeTArray domInt3x4_Array; - - class domInt3x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT3X4; } - - protected: // Value - /** - * The domCg_int3x4 value of the text data of this element. - */ - domCg_int3x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int3x4 reference of the _value array. - */ - domCg_int3x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int3x4 reference of the _value array. - */ - const domCg_int3x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int3x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt3x4() : _value() {} - /** - * Destructor - */ - virtual ~domInt3x4() {} - /** - * Copy Constructor - */ - domInt3x4( const domInt3x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt3x4 &operator=( const domInt3x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt4x1; - - typedef daeSmartRef domInt4x1Ref; - typedef daeTArray domInt4x1_Array; - - class domInt4x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT4X1; } - - protected: // Value - /** - * The domCg_int4x1 value of the text data of this element. - */ - domCg_int4x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int4x1 reference of the _value array. - */ - domCg_int4x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int4x1 reference of the _value array. - */ - const domCg_int4x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int4x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt4x1() : _value() {} - /** - * Destructor - */ - virtual ~domInt4x1() {} - /** - * Copy Constructor - */ - domInt4x1( const domInt4x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt4x1 &operator=( const domInt4x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt4x2; - - typedef daeSmartRef domInt4x2Ref; - typedef daeTArray domInt4x2_Array; - - class domInt4x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT4X2; } - - protected: // Value - /** - * The domCg_int4x2 value of the text data of this element. - */ - domCg_int4x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int4x2 reference of the _value array. - */ - domCg_int4x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int4x2 reference of the _value array. - */ - const domCg_int4x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int4x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt4x2() : _value() {} - /** - * Destructor - */ - virtual ~domInt4x2() {} - /** - * Copy Constructor - */ - domInt4x2( const domInt4x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt4x2 &operator=( const domInt4x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt4x3; - - typedef daeSmartRef domInt4x3Ref; - typedef daeTArray domInt4x3_Array; - - class domInt4x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT4X3; } - - protected: // Value - /** - * The domCg_int4x3 value of the text data of this element. - */ - domCg_int4x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int4x3 reference of the _value array. - */ - domCg_int4x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int4x3 reference of the _value array. - */ - const domCg_int4x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int4x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt4x3() : _value() {} - /** - * Destructor - */ - virtual ~domInt4x3() {} - /** - * Copy Constructor - */ - domInt4x3( const domInt4x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt4x3 &operator=( const domInt4x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt4x4; - - typedef daeSmartRef domInt4x4Ref; - typedef daeTArray domInt4x4_Array; - - class domInt4x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT4X4; } - - protected: // Value - /** - * The domCg_int4x4 value of the text data of this element. - */ - domCg_int4x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_int4x4 reference of the _value array. - */ - domCg_int4x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_int4x4 reference of the _value array. - */ - const domCg_int4x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_int4x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt4x4() : _value() {} - /** - * Destructor - */ - virtual ~domInt4x4() {} - /** - * Copy Constructor - */ - domInt4x4( const domInt4x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt4x4 &operator=( const domInt4x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf; - - typedef daeSmartRef domHalfRef; - typedef daeTArray domHalf_Array; - - class domHalf : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF; } - - protected: // Value - /** - * The domCg_half value of the text data of this element. - */ - domCg_half _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domCg_half of the value. - */ - domCg_half getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domCg_half val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf() : _value() {} - /** - * Destructor - */ - virtual ~domHalf() {} - /** - * Copy Constructor - */ - domHalf( const domHalf &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf &operator=( const domHalf &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf1; - - typedef daeSmartRef domHalf1Ref; - typedef daeTArray domHalf1_Array; - - class domHalf1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF1; } - - protected: // Value - /** - * The domCg_half1 value of the text data of this element. - */ - domCg_half1 _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domCg_half1 of the value. - */ - domCg_half1 getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domCg_half1 val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf1() : _value() {} - /** - * Destructor - */ - virtual ~domHalf1() {} - /** - * Copy Constructor - */ - domHalf1( const domHalf1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf1 &operator=( const domHalf1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf2; - - typedef daeSmartRef domHalf2Ref; - typedef daeTArray domHalf2_Array; - - class domHalf2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF2; } - - protected: // Value - /** - * The domCg_half2 value of the text data of this element. - */ - domCg_half2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half2 reference of the _value array. - */ - domCg_half2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half2 reference of the _value array. - */ - const domCg_half2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf2() : _value() {} - /** - * Destructor - */ - virtual ~domHalf2() {} - /** - * Copy Constructor - */ - domHalf2( const domHalf2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf2 &operator=( const domHalf2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf3; - - typedef daeSmartRef domHalf3Ref; - typedef daeTArray domHalf3_Array; - - class domHalf3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF3; } - - protected: // Value - /** - * The domCg_half3 value of the text data of this element. - */ - domCg_half3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half3 reference of the _value array. - */ - domCg_half3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half3 reference of the _value array. - */ - const domCg_half3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf3() : _value() {} - /** - * Destructor - */ - virtual ~domHalf3() {} - /** - * Copy Constructor - */ - domHalf3( const domHalf3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf3 &operator=( const domHalf3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf4; - - typedef daeSmartRef domHalf4Ref; - typedef daeTArray domHalf4_Array; - - class domHalf4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF4; } - - protected: // Value - /** - * The domCg_half4 value of the text data of this element. - */ - domCg_half4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half4 reference of the _value array. - */ - domCg_half4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half4 reference of the _value array. - */ - const domCg_half4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf4() : _value() {} - /** - * Destructor - */ - virtual ~domHalf4() {} - /** - * Copy Constructor - */ - domHalf4( const domHalf4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf4 &operator=( const domHalf4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf1x1; - - typedef daeSmartRef domHalf1x1Ref; - typedef daeTArray domHalf1x1_Array; - - class domHalf1x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF1X1; } - - protected: // Value - /** - * The domCg_half1x1 value of the text data of this element. - */ - domCg_half1x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half1x1 reference of the _value array. - */ - domCg_half1x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half1x1 reference of the _value array. - */ - const domCg_half1x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half1x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf1x1() : _value() {} - /** - * Destructor - */ - virtual ~domHalf1x1() {} - /** - * Copy Constructor - */ - domHalf1x1( const domHalf1x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf1x1 &operator=( const domHalf1x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf1x2; - - typedef daeSmartRef domHalf1x2Ref; - typedef daeTArray domHalf1x2_Array; - - class domHalf1x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF1X2; } - - protected: // Value - /** - * The domCg_half1x2 value of the text data of this element. - */ - domCg_half1x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half1x2 reference of the _value array. - */ - domCg_half1x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half1x2 reference of the _value array. - */ - const domCg_half1x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half1x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf1x2() : _value() {} - /** - * Destructor - */ - virtual ~domHalf1x2() {} - /** - * Copy Constructor - */ - domHalf1x2( const domHalf1x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf1x2 &operator=( const domHalf1x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf1x3; - - typedef daeSmartRef domHalf1x3Ref; - typedef daeTArray domHalf1x3_Array; - - class domHalf1x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF1X3; } - - protected: // Value - /** - * The domCg_half1x3 value of the text data of this element. - */ - domCg_half1x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half1x3 reference of the _value array. - */ - domCg_half1x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half1x3 reference of the _value array. - */ - const domCg_half1x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half1x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf1x3() : _value() {} - /** - * Destructor - */ - virtual ~domHalf1x3() {} - /** - * Copy Constructor - */ - domHalf1x3( const domHalf1x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf1x3 &operator=( const domHalf1x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf1x4; - - typedef daeSmartRef domHalf1x4Ref; - typedef daeTArray domHalf1x4_Array; - - class domHalf1x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF1X4; } - - protected: // Value - /** - * The domCg_half1x4 value of the text data of this element. - */ - domCg_half1x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half1x4 reference of the _value array. - */ - domCg_half1x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half1x4 reference of the _value array. - */ - const domCg_half1x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half1x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf1x4() : _value() {} - /** - * Destructor - */ - virtual ~domHalf1x4() {} - /** - * Copy Constructor - */ - domHalf1x4( const domHalf1x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf1x4 &operator=( const domHalf1x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf2x1; - - typedef daeSmartRef domHalf2x1Ref; - typedef daeTArray domHalf2x1_Array; - - class domHalf2x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF2X1; } - - protected: // Value - /** - * The domCg_half2x1 value of the text data of this element. - */ - domCg_half2x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half2x1 reference of the _value array. - */ - domCg_half2x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half2x1 reference of the _value array. - */ - const domCg_half2x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half2x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf2x1() : _value() {} - /** - * Destructor - */ - virtual ~domHalf2x1() {} - /** - * Copy Constructor - */ - domHalf2x1( const domHalf2x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf2x1 &operator=( const domHalf2x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf2x2; - - typedef daeSmartRef domHalf2x2Ref; - typedef daeTArray domHalf2x2_Array; - - class domHalf2x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF2X2; } - - protected: // Value - /** - * The domCg_half2x2 value of the text data of this element. - */ - domCg_half2x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half2x2 reference of the _value array. - */ - domCg_half2x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half2x2 reference of the _value array. - */ - const domCg_half2x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half2x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf2x2() : _value() {} - /** - * Destructor - */ - virtual ~domHalf2x2() {} - /** - * Copy Constructor - */ - domHalf2x2( const domHalf2x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf2x2 &operator=( const domHalf2x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf2x3; - - typedef daeSmartRef domHalf2x3Ref; - typedef daeTArray domHalf2x3_Array; - - class domHalf2x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF2X3; } - - protected: // Value - /** - * The domCg_half2x3 value of the text data of this element. - */ - domCg_half2x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half2x3 reference of the _value array. - */ - domCg_half2x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half2x3 reference of the _value array. - */ - const domCg_half2x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half2x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf2x3() : _value() {} - /** - * Destructor - */ - virtual ~domHalf2x3() {} - /** - * Copy Constructor - */ - domHalf2x3( const domHalf2x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf2x3 &operator=( const domHalf2x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf2x4; - - typedef daeSmartRef domHalf2x4Ref; - typedef daeTArray domHalf2x4_Array; - - class domHalf2x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF2X4; } - - protected: // Value - /** - * The domCg_half2x4 value of the text data of this element. - */ - domCg_half2x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half2x4 reference of the _value array. - */ - domCg_half2x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half2x4 reference of the _value array. - */ - const domCg_half2x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half2x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf2x4() : _value() {} - /** - * Destructor - */ - virtual ~domHalf2x4() {} - /** - * Copy Constructor - */ - domHalf2x4( const domHalf2x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf2x4 &operator=( const domHalf2x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf3x1; - - typedef daeSmartRef domHalf3x1Ref; - typedef daeTArray domHalf3x1_Array; - - class domHalf3x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF3X1; } - - protected: // Value - /** - * The domCg_half3x1 value of the text data of this element. - */ - domCg_half3x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half3x1 reference of the _value array. - */ - domCg_half3x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half3x1 reference of the _value array. - */ - const domCg_half3x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half3x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf3x1() : _value() {} - /** - * Destructor - */ - virtual ~domHalf3x1() {} - /** - * Copy Constructor - */ - domHalf3x1( const domHalf3x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf3x1 &operator=( const domHalf3x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf3x2; - - typedef daeSmartRef domHalf3x2Ref; - typedef daeTArray domHalf3x2_Array; - - class domHalf3x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF3X2; } - - protected: // Value - /** - * The domCg_half3x2 value of the text data of this element. - */ - domCg_half3x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half3x2 reference of the _value array. - */ - domCg_half3x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half3x2 reference of the _value array. - */ - const domCg_half3x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half3x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf3x2() : _value() {} - /** - * Destructor - */ - virtual ~domHalf3x2() {} - /** - * Copy Constructor - */ - domHalf3x2( const domHalf3x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf3x2 &operator=( const domHalf3x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf3x3; - - typedef daeSmartRef domHalf3x3Ref; - typedef daeTArray domHalf3x3_Array; - - class domHalf3x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF3X3; } - - protected: // Value - /** - * The domCg_half3x3 value of the text data of this element. - */ - domCg_half3x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half3x3 reference of the _value array. - */ - domCg_half3x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half3x3 reference of the _value array. - */ - const domCg_half3x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half3x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf3x3() : _value() {} - /** - * Destructor - */ - virtual ~domHalf3x3() {} - /** - * Copy Constructor - */ - domHalf3x3( const domHalf3x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf3x3 &operator=( const domHalf3x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf3x4; - - typedef daeSmartRef domHalf3x4Ref; - typedef daeTArray domHalf3x4_Array; - - class domHalf3x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF3X4; } - - protected: // Value - /** - * The domCg_half3x4 value of the text data of this element. - */ - domCg_half3x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half3x4 reference of the _value array. - */ - domCg_half3x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half3x4 reference of the _value array. - */ - const domCg_half3x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half3x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf3x4() : _value() {} - /** - * Destructor - */ - virtual ~domHalf3x4() {} - /** - * Copy Constructor - */ - domHalf3x4( const domHalf3x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf3x4 &operator=( const domHalf3x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf4x1; - - typedef daeSmartRef domHalf4x1Ref; - typedef daeTArray domHalf4x1_Array; - - class domHalf4x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF4X1; } - - protected: // Value - /** - * The domCg_half4x1 value of the text data of this element. - */ - domCg_half4x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half4x1 reference of the _value array. - */ - domCg_half4x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half4x1 reference of the _value array. - */ - const domCg_half4x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half4x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf4x1() : _value() {} - /** - * Destructor - */ - virtual ~domHalf4x1() {} - /** - * Copy Constructor - */ - domHalf4x1( const domHalf4x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf4x1 &operator=( const domHalf4x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf4x2; - - typedef daeSmartRef domHalf4x2Ref; - typedef daeTArray domHalf4x2_Array; - - class domHalf4x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF4X2; } - - protected: // Value - /** - * The domCg_half4x2 value of the text data of this element. - */ - domCg_half4x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half4x2 reference of the _value array. - */ - domCg_half4x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half4x2 reference of the _value array. - */ - const domCg_half4x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half4x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf4x2() : _value() {} - /** - * Destructor - */ - virtual ~domHalf4x2() {} - /** - * Copy Constructor - */ - domHalf4x2( const domHalf4x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf4x2 &operator=( const domHalf4x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf4x3; - - typedef daeSmartRef domHalf4x3Ref; - typedef daeTArray domHalf4x3_Array; - - class domHalf4x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF4X3; } - - protected: // Value - /** - * The domCg_half4x3 value of the text data of this element. - */ - domCg_half4x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half4x3 reference of the _value array. - */ - domCg_half4x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half4x3 reference of the _value array. - */ - const domCg_half4x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half4x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf4x3() : _value() {} - /** - * Destructor - */ - virtual ~domHalf4x3() {} - /** - * Copy Constructor - */ - domHalf4x3( const domHalf4x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf4x3 &operator=( const domHalf4x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domHalf4x4; - - typedef daeSmartRef domHalf4x4Ref; - typedef daeTArray domHalf4x4_Array; - - class domHalf4x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HALF4X4; } - - protected: // Value - /** - * The domCg_half4x4 value of the text data of this element. - */ - domCg_half4x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_half4x4 reference of the _value array. - */ - domCg_half4x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_half4x4 reference of the _value array. - */ - const domCg_half4x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_half4x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHalf4x4() : _value() {} - /** - * Destructor - */ - virtual ~domHalf4x4() {} - /** - * Copy Constructor - */ - domHalf4x4( const domHalf4x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHalf4x4 &operator=( const domHalf4x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed; - - typedef daeSmartRef domFixedRef; - typedef daeTArray domFixed_Array; - - class domFixed : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED; } - - protected: // Value - /** - * The domCg_fixed value of the text data of this element. - */ - domCg_fixed _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domCg_fixed of the value. - */ - domCg_fixed getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domCg_fixed val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed() : _value() {} - /** - * Destructor - */ - virtual ~domFixed() {} - /** - * Copy Constructor - */ - domFixed( const domFixed &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed &operator=( const domFixed &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed1; - - typedef daeSmartRef domFixed1Ref; - typedef daeTArray domFixed1_Array; - - class domFixed1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED1; } - - protected: // Value - /** - * The domCg_fixed1 value of the text data of this element. - */ - domCg_fixed1 _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domCg_fixed1 of the value. - */ - domCg_fixed1 getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domCg_fixed1 val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed1() : _value() {} - /** - * Destructor - */ - virtual ~domFixed1() {} - /** - * Copy Constructor - */ - domFixed1( const domFixed1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed1 &operator=( const domFixed1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed2; - - typedef daeSmartRef domFixed2Ref; - typedef daeTArray domFixed2_Array; - - class domFixed2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED2; } - - protected: // Value - /** - * The domCg_fixed2 value of the text data of this element. - */ - domCg_fixed2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed2 reference of the _value array. - */ - domCg_fixed2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed2 reference of the _value array. - */ - const domCg_fixed2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed2() : _value() {} - /** - * Destructor - */ - virtual ~domFixed2() {} - /** - * Copy Constructor - */ - domFixed2( const domFixed2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed2 &operator=( const domFixed2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed3; - - typedef daeSmartRef domFixed3Ref; - typedef daeTArray domFixed3_Array; - - class domFixed3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED3; } - - protected: // Value - /** - * The domCg_fixed3 value of the text data of this element. - */ - domCg_fixed3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed3 reference of the _value array. - */ - domCg_fixed3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed3 reference of the _value array. - */ - const domCg_fixed3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed3() : _value() {} - /** - * Destructor - */ - virtual ~domFixed3() {} - /** - * Copy Constructor - */ - domFixed3( const domFixed3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed3 &operator=( const domFixed3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed4; - - typedef daeSmartRef domFixed4Ref; - typedef daeTArray domFixed4_Array; - - class domFixed4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED4; } - - protected: // Value - /** - * The domCg_fixed4 value of the text data of this element. - */ - domCg_fixed4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed4 reference of the _value array. - */ - domCg_fixed4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed4 reference of the _value array. - */ - const domCg_fixed4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed4() : _value() {} - /** - * Destructor - */ - virtual ~domFixed4() {} - /** - * Copy Constructor - */ - domFixed4( const domFixed4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed4 &operator=( const domFixed4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed1x1; - - typedef daeSmartRef domFixed1x1Ref; - typedef daeTArray domFixed1x1_Array; - - class domFixed1x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED1X1; } - - protected: // Value - /** - * The domCg_fixed1x1 value of the text data of this element. - */ - domCg_fixed1x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed1x1 reference of the _value array. - */ - domCg_fixed1x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed1x1 reference of the _value array. - */ - const domCg_fixed1x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed1x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed1x1() : _value() {} - /** - * Destructor - */ - virtual ~domFixed1x1() {} - /** - * Copy Constructor - */ - domFixed1x1( const domFixed1x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed1x1 &operator=( const domFixed1x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed1x2; - - typedef daeSmartRef domFixed1x2Ref; - typedef daeTArray domFixed1x2_Array; - - class domFixed1x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED1X2; } - - protected: // Value - /** - * The domCg_fixed1x2 value of the text data of this element. - */ - domCg_fixed1x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed1x2 reference of the _value array. - */ - domCg_fixed1x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed1x2 reference of the _value array. - */ - const domCg_fixed1x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed1x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed1x2() : _value() {} - /** - * Destructor - */ - virtual ~domFixed1x2() {} - /** - * Copy Constructor - */ - domFixed1x2( const domFixed1x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed1x2 &operator=( const domFixed1x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed1x3; - - typedef daeSmartRef domFixed1x3Ref; - typedef daeTArray domFixed1x3_Array; - - class domFixed1x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED1X3; } - - protected: // Value - /** - * The domCg_fixed1x3 value of the text data of this element. - */ - domCg_fixed1x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed1x3 reference of the _value array. - */ - domCg_fixed1x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed1x3 reference of the _value array. - */ - const domCg_fixed1x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed1x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed1x3() : _value() {} - /** - * Destructor - */ - virtual ~domFixed1x3() {} - /** - * Copy Constructor - */ - domFixed1x3( const domFixed1x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed1x3 &operator=( const domFixed1x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed1x4; - - typedef daeSmartRef domFixed1x4Ref; - typedef daeTArray domFixed1x4_Array; - - class domFixed1x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED1X4; } - - protected: // Value - /** - * The domCg_fixed1x4 value of the text data of this element. - */ - domCg_fixed1x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed1x4 reference of the _value array. - */ - domCg_fixed1x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed1x4 reference of the _value array. - */ - const domCg_fixed1x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed1x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed1x4() : _value() {} - /** - * Destructor - */ - virtual ~domFixed1x4() {} - /** - * Copy Constructor - */ - domFixed1x4( const domFixed1x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed1x4 &operator=( const domFixed1x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed2x1; - - typedef daeSmartRef domFixed2x1Ref; - typedef daeTArray domFixed2x1_Array; - - class domFixed2x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED2X1; } - - protected: // Value - /** - * The domCg_fixed2x1 value of the text data of this element. - */ - domCg_fixed2x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed2x1 reference of the _value array. - */ - domCg_fixed2x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed2x1 reference of the _value array. - */ - const domCg_fixed2x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed2x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed2x1() : _value() {} - /** - * Destructor - */ - virtual ~domFixed2x1() {} - /** - * Copy Constructor - */ - domFixed2x1( const domFixed2x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed2x1 &operator=( const domFixed2x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed2x2; - - typedef daeSmartRef domFixed2x2Ref; - typedef daeTArray domFixed2x2_Array; - - class domFixed2x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED2X2; } - - protected: // Value - /** - * The domCg_fixed2x2 value of the text data of this element. - */ - domCg_fixed2x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed2x2 reference of the _value array. - */ - domCg_fixed2x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed2x2 reference of the _value array. - */ - const domCg_fixed2x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed2x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed2x2() : _value() {} - /** - * Destructor - */ - virtual ~domFixed2x2() {} - /** - * Copy Constructor - */ - domFixed2x2( const domFixed2x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed2x2 &operator=( const domFixed2x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed2x3; - - typedef daeSmartRef domFixed2x3Ref; - typedef daeTArray domFixed2x3_Array; - - class domFixed2x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED2X3; } - - protected: // Value - /** - * The domCg_fixed2x3 value of the text data of this element. - */ - domCg_fixed2x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed2x3 reference of the _value array. - */ - domCg_fixed2x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed2x3 reference of the _value array. - */ - const domCg_fixed2x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed2x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed2x3() : _value() {} - /** - * Destructor - */ - virtual ~domFixed2x3() {} - /** - * Copy Constructor - */ - domFixed2x3( const domFixed2x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed2x3 &operator=( const domFixed2x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed2x4; - - typedef daeSmartRef domFixed2x4Ref; - typedef daeTArray domFixed2x4_Array; - - class domFixed2x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED2X4; } - - protected: // Value - /** - * The domCg_fixed2x4 value of the text data of this element. - */ - domCg_fixed2x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed2x4 reference of the _value array. - */ - domCg_fixed2x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed2x4 reference of the _value array. - */ - const domCg_fixed2x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed2x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed2x4() : _value() {} - /** - * Destructor - */ - virtual ~domFixed2x4() {} - /** - * Copy Constructor - */ - domFixed2x4( const domFixed2x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed2x4 &operator=( const domFixed2x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed3x1; - - typedef daeSmartRef domFixed3x1Ref; - typedef daeTArray domFixed3x1_Array; - - class domFixed3x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED3X1; } - - protected: // Value - /** - * The domCg_fixed3x1 value of the text data of this element. - */ - domCg_fixed3x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed3x1 reference of the _value array. - */ - domCg_fixed3x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed3x1 reference of the _value array. - */ - const domCg_fixed3x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed3x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed3x1() : _value() {} - /** - * Destructor - */ - virtual ~domFixed3x1() {} - /** - * Copy Constructor - */ - domFixed3x1( const domFixed3x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed3x1 &operator=( const domFixed3x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed3x2; - - typedef daeSmartRef domFixed3x2Ref; - typedef daeTArray domFixed3x2_Array; - - class domFixed3x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED3X2; } - - protected: // Value - /** - * The domCg_fixed3x2 value of the text data of this element. - */ - domCg_fixed3x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed3x2 reference of the _value array. - */ - domCg_fixed3x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed3x2 reference of the _value array. - */ - const domCg_fixed3x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed3x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed3x2() : _value() {} - /** - * Destructor - */ - virtual ~domFixed3x2() {} - /** - * Copy Constructor - */ - domFixed3x2( const domFixed3x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed3x2 &operator=( const domFixed3x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed3x3; - - typedef daeSmartRef domFixed3x3Ref; - typedef daeTArray domFixed3x3_Array; - - class domFixed3x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED3X3; } - - protected: // Value - /** - * The domCg_fixed3x3 value of the text data of this element. - */ - domCg_fixed3x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed3x3 reference of the _value array. - */ - domCg_fixed3x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed3x3 reference of the _value array. - */ - const domCg_fixed3x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed3x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed3x3() : _value() {} - /** - * Destructor - */ - virtual ~domFixed3x3() {} - /** - * Copy Constructor - */ - domFixed3x3( const domFixed3x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed3x3 &operator=( const domFixed3x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed3x4; - - typedef daeSmartRef domFixed3x4Ref; - typedef daeTArray domFixed3x4_Array; - - class domFixed3x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED3X4; } - - protected: // Value - /** - * The domCg_fixed3x4 value of the text data of this element. - */ - domCg_fixed3x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed3x4 reference of the _value array. - */ - domCg_fixed3x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed3x4 reference of the _value array. - */ - const domCg_fixed3x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed3x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed3x4() : _value() {} - /** - * Destructor - */ - virtual ~domFixed3x4() {} - /** - * Copy Constructor - */ - domFixed3x4( const domFixed3x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed3x4 &operator=( const domFixed3x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed4x1; - - typedef daeSmartRef domFixed4x1Ref; - typedef daeTArray domFixed4x1_Array; - - class domFixed4x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED4X1; } - - protected: // Value - /** - * The domCg_fixed4x1 value of the text data of this element. - */ - domCg_fixed4x1 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed4x1 reference of the _value array. - */ - domCg_fixed4x1 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed4x1 reference of the _value array. - */ - const domCg_fixed4x1 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed4x1 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed4x1() : _value() {} - /** - * Destructor - */ - virtual ~domFixed4x1() {} - /** - * Copy Constructor - */ - domFixed4x1( const domFixed4x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed4x1 &operator=( const domFixed4x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed4x2; - - typedef daeSmartRef domFixed4x2Ref; - typedef daeTArray domFixed4x2_Array; - - class domFixed4x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED4X2; } - - protected: // Value - /** - * The domCg_fixed4x2 value of the text data of this element. - */ - domCg_fixed4x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed4x2 reference of the _value array. - */ - domCg_fixed4x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed4x2 reference of the _value array. - */ - const domCg_fixed4x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed4x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed4x2() : _value() {} - /** - * Destructor - */ - virtual ~domFixed4x2() {} - /** - * Copy Constructor - */ - domFixed4x2( const domFixed4x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed4x2 &operator=( const domFixed4x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed4x3; - - typedef daeSmartRef domFixed4x3Ref; - typedef daeTArray domFixed4x3_Array; - - class domFixed4x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED4X3; } - - protected: // Value - /** - * The domCg_fixed4x3 value of the text data of this element. - */ - domCg_fixed4x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed4x3 reference of the _value array. - */ - domCg_fixed4x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed4x3 reference of the _value array. - */ - const domCg_fixed4x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed4x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed4x3() : _value() {} - /** - * Destructor - */ - virtual ~domFixed4x3() {} - /** - * Copy Constructor - */ - domFixed4x3( const domFixed4x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed4x3 &operator=( const domFixed4x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFixed4x4; - - typedef daeSmartRef domFixed4x4Ref; - typedef daeTArray domFixed4x4_Array; - - class domFixed4x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FIXED4X4; } - - protected: // Value - /** - * The domCg_fixed4x4 value of the text data of this element. - */ - domCg_fixed4x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domCg_fixed4x4 reference of the _value array. - */ - domCg_fixed4x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domCg_fixed4x4 reference of the _value array. - */ - const domCg_fixed4x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domCg_fixed4x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFixed4x4() : _value() {} - /** - * Destructor - */ - virtual ~domFixed4x4() {} - /** - * Copy Constructor - */ - domFixed4x4( const domFixed4x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFixed4x4 &operator=( const domFixed4x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domString; - - typedef daeSmartRef domStringRef; - typedef daeTArray domString_Array; - - class domString : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STRING; } - - protected: // Value - /** - * The ::xsString value of the text data of this element. - */ - ::xsString _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a ::xsString of the value. - */ - ::xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::xsString val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domString() : _value() {} - /** - * Destructor - */ - virtual ~domString() {} - /** - * Copy Constructor - */ - domString( const domString &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domString &operator=( const domString &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domEnum; - - typedef daeSmartRef domEnumRef; - typedef daeTArray domEnum_Array; - - class domEnum : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ENUM; } - - protected: // Value - /** - * The domGl_enumeration value of the text data of this element. - */ - domGl_enumeration _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domGl_enumeration of the value. - */ - domGl_enumeration getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domGl_enumeration val ) { _value = val; } - - protected: - /** - * Constructor - */ - domEnum() : _value() {} - /** - * Destructor - */ - virtual ~domEnum() {} - /** - * Copy Constructor - */ - domEnum( const domEnum &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domEnum &operator=( const domEnum &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domBoolRef elemBool; - domBool1Ref elemBool1; - domBool2Ref elemBool2; - domBool3Ref elemBool3; - domBool4Ref elemBool4; - domBool1x1Ref elemBool1x1; - domBool1x2Ref elemBool1x2; - domBool1x3Ref elemBool1x3; - domBool1x4Ref elemBool1x4; - domBool2x1Ref elemBool2x1; - domBool2x2Ref elemBool2x2; - domBool2x3Ref elemBool2x3; - domBool2x4Ref elemBool2x4; - domBool3x1Ref elemBool3x1; - domBool3x2Ref elemBool3x2; - domBool3x3Ref elemBool3x3; - domBool3x4Ref elemBool3x4; - domBool4x1Ref elemBool4x1; - domBool4x2Ref elemBool4x2; - domBool4x3Ref elemBool4x3; - domBool4x4Ref elemBool4x4; - domFloatRef elemFloat; - domFloat1Ref elemFloat1; - domFloat2Ref elemFloat2; - domFloat3Ref elemFloat3; - domFloat4Ref elemFloat4; - domFloat1x1Ref elemFloat1x1; - domFloat1x2Ref elemFloat1x2; - domFloat1x3Ref elemFloat1x3; - domFloat1x4Ref elemFloat1x4; - domFloat2x1Ref elemFloat2x1; - domFloat2x2Ref elemFloat2x2; - domFloat2x3Ref elemFloat2x3; - domFloat2x4Ref elemFloat2x4; - domFloat3x1Ref elemFloat3x1; - domFloat3x2Ref elemFloat3x2; - domFloat3x3Ref elemFloat3x3; - domFloat3x4Ref elemFloat3x4; - domFloat4x1Ref elemFloat4x1; - domFloat4x2Ref elemFloat4x2; - domFloat4x3Ref elemFloat4x3; - domFloat4x4Ref elemFloat4x4; - domIntRef elemInt; - domInt1Ref elemInt1; - domInt2Ref elemInt2; - domInt3Ref elemInt3; - domInt4Ref elemInt4; - domInt1x1Ref elemInt1x1; - domInt1x2Ref elemInt1x2; - domInt1x3Ref elemInt1x3; - domInt1x4Ref elemInt1x4; - domInt2x1Ref elemInt2x1; - domInt2x2Ref elemInt2x2; - domInt2x3Ref elemInt2x3; - domInt2x4Ref elemInt2x4; - domInt3x1Ref elemInt3x1; - domInt3x2Ref elemInt3x2; - domInt3x3Ref elemInt3x3; - domInt3x4Ref elemInt3x4; - domInt4x1Ref elemInt4x1; - domInt4x2Ref elemInt4x2; - domInt4x3Ref elemInt4x3; - domInt4x4Ref elemInt4x4; - domHalfRef elemHalf; - domHalf1Ref elemHalf1; - domHalf2Ref elemHalf2; - domHalf3Ref elemHalf3; - domHalf4Ref elemHalf4; - domHalf1x1Ref elemHalf1x1; - domHalf1x2Ref elemHalf1x2; - domHalf1x3Ref elemHalf1x3; - domHalf1x4Ref elemHalf1x4; - domHalf2x1Ref elemHalf2x1; - domHalf2x2Ref elemHalf2x2; - domHalf2x3Ref elemHalf2x3; - domHalf2x4Ref elemHalf2x4; - domHalf3x1Ref elemHalf3x1; - domHalf3x2Ref elemHalf3x2; - domHalf3x3Ref elemHalf3x3; - domHalf3x4Ref elemHalf3x4; - domHalf4x1Ref elemHalf4x1; - domHalf4x2Ref elemHalf4x2; - domHalf4x3Ref elemHalf4x3; - domHalf4x4Ref elemHalf4x4; - domFixedRef elemFixed; - domFixed1Ref elemFixed1; - domFixed2Ref elemFixed2; - domFixed3Ref elemFixed3; - domFixed4Ref elemFixed4; - domFixed1x1Ref elemFixed1x1; - domFixed1x2Ref elemFixed1x2; - domFixed1x3Ref elemFixed1x3; - domFixed1x4Ref elemFixed1x4; - domFixed2x1Ref elemFixed2x1; - domFixed2x2Ref elemFixed2x2; - domFixed2x3Ref elemFixed2x3; - domFixed2x4Ref elemFixed2x4; - domFixed3x1Ref elemFixed3x1; - domFixed3x2Ref elemFixed3x2; - domFixed3x3Ref elemFixed3x3; - domFixed3x4Ref elemFixed3x4; - domFixed4x1Ref elemFixed4x1; - domFixed4x2Ref elemFixed4x2; - domFixed4x3Ref elemFixed4x3; - domFixed4x4Ref elemFixed4x4; - domCg_surface_typeRef elemSurface; - domCg_sampler1DRef elemSampler1D; - domCg_sampler2DRef elemSampler2D; - domCg_sampler3DRef elemSampler3D; - domCg_samplerRECTRef elemSamplerRECT; - domCg_samplerCUBERef elemSamplerCUBE; - domCg_samplerDEPTHRef elemSamplerDEPTH; - domStringRef elemString; - domEnumRef elemEnum; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the bool element. - * @return a daeSmartRef to the bool element. - */ - const domBoolRef getBool() const { return elemBool; } - /** - * Gets the bool1 element. - * @return a daeSmartRef to the bool1 element. - */ - const domBool1Ref getBool1() const { return elemBool1; } - /** - * Gets the bool2 element. - * @return a daeSmartRef to the bool2 element. - */ - const domBool2Ref getBool2() const { return elemBool2; } - /** - * Gets the bool3 element. - * @return a daeSmartRef to the bool3 element. - */ - const domBool3Ref getBool3() const { return elemBool3; } - /** - * Gets the bool4 element. - * @return a daeSmartRef to the bool4 element. - */ - const domBool4Ref getBool4() const { return elemBool4; } - /** - * Gets the bool1x1 element. - * @return a daeSmartRef to the bool1x1 element. - */ - const domBool1x1Ref getBool1x1() const { return elemBool1x1; } - /** - * Gets the bool1x2 element. - * @return a daeSmartRef to the bool1x2 element. - */ - const domBool1x2Ref getBool1x2() const { return elemBool1x2; } - /** - * Gets the bool1x3 element. - * @return a daeSmartRef to the bool1x3 element. - */ - const domBool1x3Ref getBool1x3() const { return elemBool1x3; } - /** - * Gets the bool1x4 element. - * @return a daeSmartRef to the bool1x4 element. - */ - const domBool1x4Ref getBool1x4() const { return elemBool1x4; } - /** - * Gets the bool2x1 element. - * @return a daeSmartRef to the bool2x1 element. - */ - const domBool2x1Ref getBool2x1() const { return elemBool2x1; } - /** - * Gets the bool2x2 element. - * @return a daeSmartRef to the bool2x2 element. - */ - const domBool2x2Ref getBool2x2() const { return elemBool2x2; } - /** - * Gets the bool2x3 element. - * @return a daeSmartRef to the bool2x3 element. - */ - const domBool2x3Ref getBool2x3() const { return elemBool2x3; } - /** - * Gets the bool2x4 element. - * @return a daeSmartRef to the bool2x4 element. - */ - const domBool2x4Ref getBool2x4() const { return elemBool2x4; } - /** - * Gets the bool3x1 element. - * @return a daeSmartRef to the bool3x1 element. - */ - const domBool3x1Ref getBool3x1() const { return elemBool3x1; } - /** - * Gets the bool3x2 element. - * @return a daeSmartRef to the bool3x2 element. - */ - const domBool3x2Ref getBool3x2() const { return elemBool3x2; } - /** - * Gets the bool3x3 element. - * @return a daeSmartRef to the bool3x3 element. - */ - const domBool3x3Ref getBool3x3() const { return elemBool3x3; } - /** - * Gets the bool3x4 element. - * @return a daeSmartRef to the bool3x4 element. - */ - const domBool3x4Ref getBool3x4() const { return elemBool3x4; } - /** - * Gets the bool4x1 element. - * @return a daeSmartRef to the bool4x1 element. - */ - const domBool4x1Ref getBool4x1() const { return elemBool4x1; } - /** - * Gets the bool4x2 element. - * @return a daeSmartRef to the bool4x2 element. - */ - const domBool4x2Ref getBool4x2() const { return elemBool4x2; } - /** - * Gets the bool4x3 element. - * @return a daeSmartRef to the bool4x3 element. - */ - const domBool4x3Ref getBool4x3() const { return elemBool4x3; } - /** - * Gets the bool4x4 element. - * @return a daeSmartRef to the bool4x4 element. - */ - const domBool4x4Ref getBool4x4() const { return elemBool4x4; } - /** - * Gets the float element. - * @return a daeSmartRef to the float element. - */ - const domFloatRef getFloat() const { return elemFloat; } - /** - * Gets the float1 element. - * @return a daeSmartRef to the float1 element. - */ - const domFloat1Ref getFloat1() const { return elemFloat1; } - /** - * Gets the float2 element. - * @return a daeSmartRef to the float2 element. - */ - const domFloat2Ref getFloat2() const { return elemFloat2; } - /** - * Gets the float3 element. - * @return a daeSmartRef to the float3 element. - */ - const domFloat3Ref getFloat3() const { return elemFloat3; } - /** - * Gets the float4 element. - * @return a daeSmartRef to the float4 element. - */ - const domFloat4Ref getFloat4() const { return elemFloat4; } - /** - * Gets the float1x1 element. - * @return a daeSmartRef to the float1x1 element. - */ - const domFloat1x1Ref getFloat1x1() const { return elemFloat1x1; } - /** - * Gets the float1x2 element. - * @return a daeSmartRef to the float1x2 element. - */ - const domFloat1x2Ref getFloat1x2() const { return elemFloat1x2; } - /** - * Gets the float1x3 element. - * @return a daeSmartRef to the float1x3 element. - */ - const domFloat1x3Ref getFloat1x3() const { return elemFloat1x3; } - /** - * Gets the float1x4 element. - * @return a daeSmartRef to the float1x4 element. - */ - const domFloat1x4Ref getFloat1x4() const { return elemFloat1x4; } - /** - * Gets the float2x1 element. - * @return a daeSmartRef to the float2x1 element. - */ - const domFloat2x1Ref getFloat2x1() const { return elemFloat2x1; } - /** - * Gets the float2x2 element. - * @return a daeSmartRef to the float2x2 element. - */ - const domFloat2x2Ref getFloat2x2() const { return elemFloat2x2; } - /** - * Gets the float2x3 element. - * @return a daeSmartRef to the float2x3 element. - */ - const domFloat2x3Ref getFloat2x3() const { return elemFloat2x3; } - /** - * Gets the float2x4 element. - * @return a daeSmartRef to the float2x4 element. - */ - const domFloat2x4Ref getFloat2x4() const { return elemFloat2x4; } - /** - * Gets the float3x1 element. - * @return a daeSmartRef to the float3x1 element. - */ - const domFloat3x1Ref getFloat3x1() const { return elemFloat3x1; } - /** - * Gets the float3x2 element. - * @return a daeSmartRef to the float3x2 element. - */ - const domFloat3x2Ref getFloat3x2() const { return elemFloat3x2; } - /** - * Gets the float3x3 element. - * @return a daeSmartRef to the float3x3 element. - */ - const domFloat3x3Ref getFloat3x3() const { return elemFloat3x3; } - /** - * Gets the float3x4 element. - * @return a daeSmartRef to the float3x4 element. - */ - const domFloat3x4Ref getFloat3x4() const { return elemFloat3x4; } - /** - * Gets the float4x1 element. - * @return a daeSmartRef to the float4x1 element. - */ - const domFloat4x1Ref getFloat4x1() const { return elemFloat4x1; } - /** - * Gets the float4x2 element. - * @return a daeSmartRef to the float4x2 element. - */ - const domFloat4x2Ref getFloat4x2() const { return elemFloat4x2; } - /** - * Gets the float4x3 element. - * @return a daeSmartRef to the float4x3 element. - */ - const domFloat4x3Ref getFloat4x3() const { return elemFloat4x3; } - /** - * Gets the float4x4 element. - * @return a daeSmartRef to the float4x4 element. - */ - const domFloat4x4Ref getFloat4x4() const { return elemFloat4x4; } - /** - * Gets the int element. - * @return a daeSmartRef to the int element. - */ - const domIntRef getInt() const { return elemInt; } - /** - * Gets the int1 element. - * @return a daeSmartRef to the int1 element. - */ - const domInt1Ref getInt1() const { return elemInt1; } - /** - * Gets the int2 element. - * @return a daeSmartRef to the int2 element. - */ - const domInt2Ref getInt2() const { return elemInt2; } - /** - * Gets the int3 element. - * @return a daeSmartRef to the int3 element. - */ - const domInt3Ref getInt3() const { return elemInt3; } - /** - * Gets the int4 element. - * @return a daeSmartRef to the int4 element. - */ - const domInt4Ref getInt4() const { return elemInt4; } - /** - * Gets the int1x1 element. - * @return a daeSmartRef to the int1x1 element. - */ - const domInt1x1Ref getInt1x1() const { return elemInt1x1; } - /** - * Gets the int1x2 element. - * @return a daeSmartRef to the int1x2 element. - */ - const domInt1x2Ref getInt1x2() const { return elemInt1x2; } - /** - * Gets the int1x3 element. - * @return a daeSmartRef to the int1x3 element. - */ - const domInt1x3Ref getInt1x3() const { return elemInt1x3; } - /** - * Gets the int1x4 element. - * @return a daeSmartRef to the int1x4 element. - */ - const domInt1x4Ref getInt1x4() const { return elemInt1x4; } - /** - * Gets the int2x1 element. - * @return a daeSmartRef to the int2x1 element. - */ - const domInt2x1Ref getInt2x1() const { return elemInt2x1; } - /** - * Gets the int2x2 element. - * @return a daeSmartRef to the int2x2 element. - */ - const domInt2x2Ref getInt2x2() const { return elemInt2x2; } - /** - * Gets the int2x3 element. - * @return a daeSmartRef to the int2x3 element. - */ - const domInt2x3Ref getInt2x3() const { return elemInt2x3; } - /** - * Gets the int2x4 element. - * @return a daeSmartRef to the int2x4 element. - */ - const domInt2x4Ref getInt2x4() const { return elemInt2x4; } - /** - * Gets the int3x1 element. - * @return a daeSmartRef to the int3x1 element. - */ - const domInt3x1Ref getInt3x1() const { return elemInt3x1; } - /** - * Gets the int3x2 element. - * @return a daeSmartRef to the int3x2 element. - */ - const domInt3x2Ref getInt3x2() const { return elemInt3x2; } - /** - * Gets the int3x3 element. - * @return a daeSmartRef to the int3x3 element. - */ - const domInt3x3Ref getInt3x3() const { return elemInt3x3; } - /** - * Gets the int3x4 element. - * @return a daeSmartRef to the int3x4 element. - */ - const domInt3x4Ref getInt3x4() const { return elemInt3x4; } - /** - * Gets the int4x1 element. - * @return a daeSmartRef to the int4x1 element. - */ - const domInt4x1Ref getInt4x1() const { return elemInt4x1; } - /** - * Gets the int4x2 element. - * @return a daeSmartRef to the int4x2 element. - */ - const domInt4x2Ref getInt4x2() const { return elemInt4x2; } - /** - * Gets the int4x3 element. - * @return a daeSmartRef to the int4x3 element. - */ - const domInt4x3Ref getInt4x3() const { return elemInt4x3; } - /** - * Gets the int4x4 element. - * @return a daeSmartRef to the int4x4 element. - */ - const domInt4x4Ref getInt4x4() const { return elemInt4x4; } - /** - * Gets the half element. - * @return a daeSmartRef to the half element. - */ - const domHalfRef getHalf() const { return elemHalf; } - /** - * Gets the half1 element. - * @return a daeSmartRef to the half1 element. - */ - const domHalf1Ref getHalf1() const { return elemHalf1; } - /** - * Gets the half2 element. - * @return a daeSmartRef to the half2 element. - */ - const domHalf2Ref getHalf2() const { return elemHalf2; } - /** - * Gets the half3 element. - * @return a daeSmartRef to the half3 element. - */ - const domHalf3Ref getHalf3() const { return elemHalf3; } - /** - * Gets the half4 element. - * @return a daeSmartRef to the half4 element. - */ - const domHalf4Ref getHalf4() const { return elemHalf4; } - /** - * Gets the half1x1 element. - * @return a daeSmartRef to the half1x1 element. - */ - const domHalf1x1Ref getHalf1x1() const { return elemHalf1x1; } - /** - * Gets the half1x2 element. - * @return a daeSmartRef to the half1x2 element. - */ - const domHalf1x2Ref getHalf1x2() const { return elemHalf1x2; } - /** - * Gets the half1x3 element. - * @return a daeSmartRef to the half1x3 element. - */ - const domHalf1x3Ref getHalf1x3() const { return elemHalf1x3; } - /** - * Gets the half1x4 element. - * @return a daeSmartRef to the half1x4 element. - */ - const domHalf1x4Ref getHalf1x4() const { return elemHalf1x4; } - /** - * Gets the half2x1 element. - * @return a daeSmartRef to the half2x1 element. - */ - const domHalf2x1Ref getHalf2x1() const { return elemHalf2x1; } - /** - * Gets the half2x2 element. - * @return a daeSmartRef to the half2x2 element. - */ - const domHalf2x2Ref getHalf2x2() const { return elemHalf2x2; } - /** - * Gets the half2x3 element. - * @return a daeSmartRef to the half2x3 element. - */ - const domHalf2x3Ref getHalf2x3() const { return elemHalf2x3; } - /** - * Gets the half2x4 element. - * @return a daeSmartRef to the half2x4 element. - */ - const domHalf2x4Ref getHalf2x4() const { return elemHalf2x4; } - /** - * Gets the half3x1 element. - * @return a daeSmartRef to the half3x1 element. - */ - const domHalf3x1Ref getHalf3x1() const { return elemHalf3x1; } - /** - * Gets the half3x2 element. - * @return a daeSmartRef to the half3x2 element. - */ - const domHalf3x2Ref getHalf3x2() const { return elemHalf3x2; } - /** - * Gets the half3x3 element. - * @return a daeSmartRef to the half3x3 element. - */ - const domHalf3x3Ref getHalf3x3() const { return elemHalf3x3; } - /** - * Gets the half3x4 element. - * @return a daeSmartRef to the half3x4 element. - */ - const domHalf3x4Ref getHalf3x4() const { return elemHalf3x4; } - /** - * Gets the half4x1 element. - * @return a daeSmartRef to the half4x1 element. - */ - const domHalf4x1Ref getHalf4x1() const { return elemHalf4x1; } - /** - * Gets the half4x2 element. - * @return a daeSmartRef to the half4x2 element. - */ - const domHalf4x2Ref getHalf4x2() const { return elemHalf4x2; } - /** - * Gets the half4x3 element. - * @return a daeSmartRef to the half4x3 element. - */ - const domHalf4x3Ref getHalf4x3() const { return elemHalf4x3; } - /** - * Gets the half4x4 element. - * @return a daeSmartRef to the half4x4 element. - */ - const domHalf4x4Ref getHalf4x4() const { return elemHalf4x4; } - /** - * Gets the fixed element. - * @return a daeSmartRef to the fixed element. - */ - const domFixedRef getFixed() const { return elemFixed; } - /** - * Gets the fixed1 element. - * @return a daeSmartRef to the fixed1 element. - */ - const domFixed1Ref getFixed1() const { return elemFixed1; } - /** - * Gets the fixed2 element. - * @return a daeSmartRef to the fixed2 element. - */ - const domFixed2Ref getFixed2() const { return elemFixed2; } - /** - * Gets the fixed3 element. - * @return a daeSmartRef to the fixed3 element. - */ - const domFixed3Ref getFixed3() const { return elemFixed3; } - /** - * Gets the fixed4 element. - * @return a daeSmartRef to the fixed4 element. - */ - const domFixed4Ref getFixed4() const { return elemFixed4; } - /** - * Gets the fixed1x1 element. - * @return a daeSmartRef to the fixed1x1 element. - */ - const domFixed1x1Ref getFixed1x1() const { return elemFixed1x1; } - /** - * Gets the fixed1x2 element. - * @return a daeSmartRef to the fixed1x2 element. - */ - const domFixed1x2Ref getFixed1x2() const { return elemFixed1x2; } - /** - * Gets the fixed1x3 element. - * @return a daeSmartRef to the fixed1x3 element. - */ - const domFixed1x3Ref getFixed1x3() const { return elemFixed1x3; } - /** - * Gets the fixed1x4 element. - * @return a daeSmartRef to the fixed1x4 element. - */ - const domFixed1x4Ref getFixed1x4() const { return elemFixed1x4; } - /** - * Gets the fixed2x1 element. - * @return a daeSmartRef to the fixed2x1 element. - */ - const domFixed2x1Ref getFixed2x1() const { return elemFixed2x1; } - /** - * Gets the fixed2x2 element. - * @return a daeSmartRef to the fixed2x2 element. - */ - const domFixed2x2Ref getFixed2x2() const { return elemFixed2x2; } - /** - * Gets the fixed2x3 element. - * @return a daeSmartRef to the fixed2x3 element. - */ - const domFixed2x3Ref getFixed2x3() const { return elemFixed2x3; } - /** - * Gets the fixed2x4 element. - * @return a daeSmartRef to the fixed2x4 element. - */ - const domFixed2x4Ref getFixed2x4() const { return elemFixed2x4; } - /** - * Gets the fixed3x1 element. - * @return a daeSmartRef to the fixed3x1 element. - */ - const domFixed3x1Ref getFixed3x1() const { return elemFixed3x1; } - /** - * Gets the fixed3x2 element. - * @return a daeSmartRef to the fixed3x2 element. - */ - const domFixed3x2Ref getFixed3x2() const { return elemFixed3x2; } - /** - * Gets the fixed3x3 element. - * @return a daeSmartRef to the fixed3x3 element. - */ - const domFixed3x3Ref getFixed3x3() const { return elemFixed3x3; } - /** - * Gets the fixed3x4 element. - * @return a daeSmartRef to the fixed3x4 element. - */ - const domFixed3x4Ref getFixed3x4() const { return elemFixed3x4; } - /** - * Gets the fixed4x1 element. - * @return a daeSmartRef to the fixed4x1 element. - */ - const domFixed4x1Ref getFixed4x1() const { return elemFixed4x1; } - /** - * Gets the fixed4x2 element. - * @return a daeSmartRef to the fixed4x2 element. - */ - const domFixed4x2Ref getFixed4x2() const { return elemFixed4x2; } - /** - * Gets the fixed4x3 element. - * @return a daeSmartRef to the fixed4x3 element. - */ - const domFixed4x3Ref getFixed4x3() const { return elemFixed4x3; } - /** - * Gets the fixed4x4 element. - * @return a daeSmartRef to the fixed4x4 element. - */ - const domFixed4x4Ref getFixed4x4() const { return elemFixed4x4; } - /** - * Gets the surface element. - * @return a daeSmartRef to the surface element. - */ - const domCg_surface_typeRef getSurface() const { return elemSurface; } - /** - * Gets the sampler1D element. - * @return a daeSmartRef to the sampler1D element. - */ - const domCg_sampler1DRef getSampler1D() const { return elemSampler1D; } - /** - * Gets the sampler2D element. - * @return a daeSmartRef to the sampler2D element. - */ - const domCg_sampler2DRef getSampler2D() const { return elemSampler2D; } - /** - * Gets the sampler3D element. - * @return a daeSmartRef to the sampler3D element. - */ - const domCg_sampler3DRef getSampler3D() const { return elemSampler3D; } - /** - * Gets the samplerRECT element. - * @return a daeSmartRef to the samplerRECT element. - */ - const domCg_samplerRECTRef getSamplerRECT() const { return elemSamplerRECT; } - /** - * Gets the samplerCUBE element. - * @return a daeSmartRef to the samplerCUBE element. - */ - const domCg_samplerCUBERef getSamplerCUBE() const { return elemSamplerCUBE; } - /** - * Gets the samplerDEPTH element. - * @return a daeSmartRef to the samplerDEPTH element. - */ - const domCg_samplerDEPTHRef getSamplerDEPTH() const { return elemSamplerDEPTH; } - /** - * Gets the string element. - * @return a daeSmartRef to the string element. - */ - const domStringRef getString() const { return elemString; } - /** - * Gets the enum element. - * @return a daeSmartRef to the enum element. - */ - const domEnumRef getEnum() const { return elemEnum; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domCg_param_type() : elemBool(), elemBool1(), elemBool2(), elemBool3(), elemBool4(), elemBool1x1(), elemBool1x2(), elemBool1x3(), elemBool1x4(), elemBool2x1(), elemBool2x2(), elemBool2x3(), elemBool2x4(), elemBool3x1(), elemBool3x2(), elemBool3x3(), elemBool3x4(), elemBool4x1(), elemBool4x2(), elemBool4x3(), elemBool4x4(), elemFloat(), elemFloat1(), elemFloat2(), elemFloat3(), elemFloat4(), elemFloat1x1(), elemFloat1x2(), elemFloat1x3(), elemFloat1x4(), elemFloat2x1(), elemFloat2x2(), elemFloat2x3(), elemFloat2x4(), elemFloat3x1(), elemFloat3x2(), elemFloat3x3(), elemFloat3x4(), elemFloat4x1(), elemFloat4x2(), elemFloat4x3(), elemFloat4x4(), elemInt(), elemInt1(), elemInt2(), elemInt3(), elemInt4(), elemInt1x1(), elemInt1x2(), elemInt1x3(), elemInt1x4(), elemInt2x1(), elemInt2x2(), elemInt2x3(), elemInt2x4(), elemInt3x1(), elemInt3x2(), elemInt3x3(), elemInt3x4(), elemInt4x1(), elemInt4x2(), elemInt4x3(), elemInt4x4(), elemHalf(), elemHalf1(), elemHalf2(), elemHalf3(), elemHalf4(), elemHalf1x1(), elemHalf1x2(), elemHalf1x3(), elemHalf1x4(), elemHalf2x1(), elemHalf2x2(), elemHalf2x3(), elemHalf2x4(), elemHalf3x1(), elemHalf3x2(), elemHalf3x3(), elemHalf3x4(), elemHalf4x1(), elemHalf4x2(), elemHalf4x3(), elemHalf4x4(), elemFixed(), elemFixed1(), elemFixed2(), elemFixed3(), elemFixed4(), elemFixed1x1(), elemFixed1x2(), elemFixed1x3(), elemFixed1x4(), elemFixed2x1(), elemFixed2x2(), elemFixed2x3(), elemFixed2x4(), elemFixed3x1(), elemFixed3x2(), elemFixed3x3(), elemFixed3x4(), elemFixed4x1(), elemFixed4x2(), elemFixed4x3(), elemFixed4x4(), elemSurface(), elemSampler1D(), elemSampler2D(), elemSampler3D(), elemSamplerRECT(), elemSamplerCUBE(), elemSamplerDEPTH(), elemString(), elemEnum() {} - /** - * Destructor - */ - virtual ~domCg_param_type() {} - /** - * Copy Constructor - */ - domCg_param_type( const domCg_param_type &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_param_type &operator=( const domCg_param_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler1D.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler1D.h deleted file mode 100644 index 5ff31651a..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler1D.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_sampler1D_h__ -#define __domCg_sampler1D_h__ - -#include -#include - -#include - -class domCg_sampler1D_complexType : public domFx_sampler1D_common_complexType -{ - -protected: - /** - * Constructor - */ - domCg_sampler1D_complexType() {} - /** - * Destructor - */ - virtual ~domCg_sampler1D_complexType() {} - /** - * Copy Constructor - */ - domCg_sampler1D_complexType( const domCg_sampler1D_complexType &cpy ) : domFx_sampler1D_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_sampler1D_complexType &operator=( const domCg_sampler1D_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_sampler1D_complexType. - */ -class domCg_sampler1D : public daeElement, public domCg_sampler1D_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SAMPLER1D; } -protected: - /** - * Constructor - */ - domCg_sampler1D() {} - /** - * Destructor - */ - virtual ~domCg_sampler1D() {} - /** - * Copy Constructor - */ - domCg_sampler1D( const domCg_sampler1D &cpy ) : daeElement(), domCg_sampler1D_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_sampler1D &operator=( const domCg_sampler1D &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler2D.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler2D.h deleted file mode 100644 index 187c8b543..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler2D.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_sampler2D_h__ -#define __domCg_sampler2D_h__ - -#include -#include - -#include - -class domCg_sampler2D_complexType : public domFx_sampler2D_common_complexType -{ - -protected: - /** - * Constructor - */ - domCg_sampler2D_complexType() {} - /** - * Destructor - */ - virtual ~domCg_sampler2D_complexType() {} - /** - * Copy Constructor - */ - domCg_sampler2D_complexType( const domCg_sampler2D_complexType &cpy ) : domFx_sampler2D_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_sampler2D_complexType &operator=( const domCg_sampler2D_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_sampler2D_complexType. - */ -class domCg_sampler2D : public daeElement, public domCg_sampler2D_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SAMPLER2D; } -protected: - /** - * Constructor - */ - domCg_sampler2D() {} - /** - * Destructor - */ - virtual ~domCg_sampler2D() {} - /** - * Copy Constructor - */ - domCg_sampler2D( const domCg_sampler2D &cpy ) : daeElement(), domCg_sampler2D_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_sampler2D &operator=( const domCg_sampler2D &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler3D.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler3D.h deleted file mode 100644 index 64bbeff0a..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_sampler3D.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_sampler3D_h__ -#define __domCg_sampler3D_h__ - -#include -#include - -#include - -class domCg_sampler3D_complexType : public domFx_sampler3D_common_complexType -{ - -protected: - /** - * Constructor - */ - domCg_sampler3D_complexType() {} - /** - * Destructor - */ - virtual ~domCg_sampler3D_complexType() {} - /** - * Copy Constructor - */ - domCg_sampler3D_complexType( const domCg_sampler3D_complexType &cpy ) : domFx_sampler3D_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_sampler3D_complexType &operator=( const domCg_sampler3D_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_sampler3D_complexType. - */ -class domCg_sampler3D : public daeElement, public domCg_sampler3D_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SAMPLER3D; } -protected: - /** - * Constructor - */ - domCg_sampler3D() {} - /** - * Destructor - */ - virtual ~domCg_sampler3D() {} - /** - * Copy Constructor - */ - domCg_sampler3D( const domCg_sampler3D &cpy ) : daeElement(), domCg_sampler3D_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_sampler3D &operator=( const domCg_sampler3D &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerCUBE.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerCUBE.h deleted file mode 100644 index 84f6062f8..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerCUBE.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_samplerCUBE_h__ -#define __domCg_samplerCUBE_h__ - -#include -#include - -#include - -class domCg_samplerCUBE_complexType : public domFx_samplerCUBE_common_complexType -{ - -protected: - /** - * Constructor - */ - domCg_samplerCUBE_complexType() {} - /** - * Destructor - */ - virtual ~domCg_samplerCUBE_complexType() {} - /** - * Copy Constructor - */ - domCg_samplerCUBE_complexType( const domCg_samplerCUBE_complexType &cpy ) : domFx_samplerCUBE_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_samplerCUBE_complexType &operator=( const domCg_samplerCUBE_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_samplerCUBE_complexType. - */ -class domCg_samplerCUBE : public daeElement, public domCg_samplerCUBE_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SAMPLERCUBE; } -protected: - /** - * Constructor - */ - domCg_samplerCUBE() {} - /** - * Destructor - */ - virtual ~domCg_samplerCUBE() {} - /** - * Copy Constructor - */ - domCg_samplerCUBE( const domCg_samplerCUBE &cpy ) : daeElement(), domCg_samplerCUBE_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_samplerCUBE &operator=( const domCg_samplerCUBE &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerDEPTH.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerDEPTH.h deleted file mode 100644 index 9801f6210..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerDEPTH.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_samplerDEPTH_h__ -#define __domCg_samplerDEPTH_h__ - -#include -#include - -#include - -class domCg_samplerDEPTH_complexType : public domFx_samplerDEPTH_common_complexType -{ - -protected: - /** - * Constructor - */ - domCg_samplerDEPTH_complexType() {} - /** - * Destructor - */ - virtual ~domCg_samplerDEPTH_complexType() {} - /** - * Copy Constructor - */ - domCg_samplerDEPTH_complexType( const domCg_samplerDEPTH_complexType &cpy ) : domFx_samplerDEPTH_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_samplerDEPTH_complexType &operator=( const domCg_samplerDEPTH_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_samplerDEPTH_complexType. - */ -class domCg_samplerDEPTH : public daeElement, public domCg_samplerDEPTH_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SAMPLERDEPTH; } -protected: - /** - * Constructor - */ - domCg_samplerDEPTH() {} - /** - * Destructor - */ - virtual ~domCg_samplerDEPTH() {} - /** - * Copy Constructor - */ - domCg_samplerDEPTH( const domCg_samplerDEPTH &cpy ) : daeElement(), domCg_samplerDEPTH_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_samplerDEPTH &operator=( const domCg_samplerDEPTH &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerRECT.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerRECT.h deleted file mode 100644 index d9b19c1de..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_samplerRECT.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_samplerRECT_h__ -#define __domCg_samplerRECT_h__ - -#include -#include - -#include - -class domCg_samplerRECT_complexType : public domFx_samplerRECT_common_complexType -{ - -protected: - /** - * Constructor - */ - domCg_samplerRECT_complexType() {} - /** - * Destructor - */ - virtual ~domCg_samplerRECT_complexType() {} - /** - * Copy Constructor - */ - domCg_samplerRECT_complexType( const domCg_samplerRECT_complexType &cpy ) : domFx_samplerRECT_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_samplerRECT_complexType &operator=( const domCg_samplerRECT_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_samplerRECT_complexType. - */ -class domCg_samplerRECT : public daeElement, public domCg_samplerRECT_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SAMPLERRECT; } -protected: - /** - * Constructor - */ - domCg_samplerRECT() {} - /** - * Destructor - */ - virtual ~domCg_samplerRECT() {} - /** - * Copy Constructor - */ - domCg_samplerRECT( const domCg_samplerRECT &cpy ) : daeElement(), domCg_samplerRECT_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_samplerRECT &operator=( const domCg_samplerRECT &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_setarray_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_setarray_type.h deleted file mode 100644 index d7c0ed418..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_setarray_type.h +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_setarray_type_h__ -#define __domCg_setarray_type_h__ - -#include -#include - -#include -#include -#include - -/** - * Creates a parameter of a one-dimensional array type. - */ -class domCg_setarray_type_complexType -{ -protected: // Attribute -/** - * The length attribute specifies the length of the array. - */ - xsPositiveInteger attrLength; - -protected: // Elements - domCg_param_type_Array elemCg_param_type_array; -/** - * Nested array elements allow you to create multidemensional arrays. @see - * domArray - */ - domCg_setarray_type_Array elemArray_array; -/** - * The usertype element allows you to create arrays of usertypes. @see domUsertype - */ - domCg_setuser_type_Array elemUsertype_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the length attribute. - * @return Returns a xsPositiveInteger of the length attribute. - */ - xsPositiveInteger getLength() const { return attrLength; } - /** - * Sets the length attribute. - * @param atLength The new value for the length attribute. - */ - void setLength( xsPositiveInteger atLength ) { attrLength = atLength; } - - /** - * Gets the cg_param_type element array. - * @return Returns a reference to the array of cg_param_type elements. - */ - domCg_param_type_Array &getCg_param_type_array() { return elemCg_param_type_array; } - /** - * Gets the cg_param_type element array. - * @return Returns a constant reference to the array of cg_param_type elements. - */ - const domCg_param_type_Array &getCg_param_type_array() const { return elemCg_param_type_array; } - /** - * Gets the array element array. - * @return Returns a reference to the array of array elements. - */ - domCg_setarray_type_Array &getArray_array() { return elemArray_array; } - /** - * Gets the array element array. - * @return Returns a constant reference to the array of array elements. - */ - const domCg_setarray_type_Array &getArray_array() const { return elemArray_array; } - /** - * Gets the usertype element array. - * @return Returns a reference to the array of usertype elements. - */ - domCg_setuser_type_Array &getUsertype_array() { return elemUsertype_array; } - /** - * Gets the usertype element array. - * @return Returns a constant reference to the array of usertype elements. - */ - const domCg_setuser_type_Array &getUsertype_array() const { return elemUsertype_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domCg_setarray_type_complexType() : attrLength(), elemCg_param_type_array(), elemArray_array(), elemUsertype_array() {} - /** - * Destructor - */ - virtual ~domCg_setarray_type_complexType() {} - /** - * Copy Constructor - */ - domCg_setarray_type_complexType( const domCg_setarray_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_setarray_type_complexType &operator=( const domCg_setarray_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_setarray_type_complexType. - */ -class domCg_setarray_type : public daeElement, public domCg_setarray_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SETARRAY_TYPE; } - -public: //Accessors and Mutators - /** - * Gets the length attribute. - * @return Returns a xsPositiveInteger of the length attribute. - */ - xsPositiveInteger getLength() const { return attrLength; } - /** - * Sets the length attribute. - * @param atLength The new value for the length attribute. - */ - void setLength( xsPositiveInteger atLength ) { attrLength = atLength; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domCg_setarray_type() {} - /** - * Destructor - */ - virtual ~domCg_setarray_type() {} - /** - * Copy Constructor - */ - domCg_setarray_type( const domCg_setarray_type &cpy ) : daeElement(), domCg_setarray_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_setarray_type &operator=( const domCg_setarray_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_setparam.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_setparam.h deleted file mode 100644 index 2f8c61729..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_setparam.h +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_setparam_h__ -#define __domCg_setparam_h__ - -#include -#include - -#include -#include -#include -#include - -/** - * Assigns a new value to a previously defined parameter. - */ -class domCg_setparam_complexType -{ -protected: // Attributes - domCg_identifier attrRef; - xsNCName attrProgram; - -protected: // Elements - domCg_param_typeRef elemCg_param_type; - domCg_setuser_typeRef elemUsertype; - domCg_setarray_typeRef elemArray; - domCg_connect_paramRef elemConnect_param; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a domCg_identifier of the ref attribute. - */ - domCg_identifier getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( domCg_identifier atRef ) { attrRef = atRef; } - - /** - * Gets the program attribute. - * @return Returns a xsNCName of the program attribute. - */ - xsNCName getProgram() const { return attrProgram; } - /** - * Sets the program attribute. - * @param atProgram The new value for the program attribute. - */ - void setProgram( xsNCName atProgram ) { *(daeStringRef*)&attrProgram = atProgram; } - - /** - * Gets the cg_param_type element. - * @return a daeSmartRef to the cg_param_type element. - */ - const domCg_param_typeRef getCg_param_type() const { return elemCg_param_type; } - /** - * Gets the usertype element. - * @return a daeSmartRef to the usertype element. - */ - const domCg_setuser_typeRef getUsertype() const { return elemUsertype; } - /** - * Gets the array element. - * @return a daeSmartRef to the array element. - */ - const domCg_setarray_typeRef getArray() const { return elemArray; } - /** - * Gets the connect_param element. - * @return a daeSmartRef to the connect_param element. - */ - const domCg_connect_paramRef getConnect_param() const { return elemConnect_param; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domCg_setparam_complexType() : attrRef(), attrProgram(), elemCg_param_type(), elemUsertype(), elemArray(), elemConnect_param() {} - /** - * Destructor - */ - virtual ~domCg_setparam_complexType() {} - /** - * Copy Constructor - */ - domCg_setparam_complexType( const domCg_setparam_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_setparam_complexType &operator=( const domCg_setparam_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_setparam_complexType. - */ -class domCg_setparam : public daeElement, public domCg_setparam_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SETPARAM; } - -public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a domCg_identifier of the ref attribute. - */ - domCg_identifier getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( domCg_identifier atRef ) { attrRef = atRef; - _validAttributeArray[0] = true; } - - /** - * Gets the program attribute. - * @return Returns a xsNCName of the program attribute. - */ - xsNCName getProgram() const { return attrProgram; } - /** - * Sets the program attribute. - * @param atProgram The new value for the program attribute. - */ - void setProgram( xsNCName atProgram ) { *(daeStringRef*)&attrProgram = atProgram; - _validAttributeArray[1] = true; } - -protected: - /** - * Constructor - */ - domCg_setparam() {} - /** - * Destructor - */ - virtual ~domCg_setparam() {} - /** - * Copy Constructor - */ - domCg_setparam( const domCg_setparam &cpy ) : daeElement(), domCg_setparam_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_setparam &operator=( const domCg_setparam &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_setparam_simple.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_setparam_simple.h deleted file mode 100644 index 3cec00ed9..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_setparam_simple.h +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_setparam_simple_h__ -#define __domCg_setparam_simple_h__ - -#include -#include - -#include -#include - -class domCg_setparam_simple_complexType -{ -protected: // Attribute - domCg_identifier attrRef; - -protected: // Elements - domFx_annotate_common_Array elemAnnotate_array; - domCg_param_typeRef elemCg_param_type; - -public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a domCg_identifier of the ref attribute. - */ - domCg_identifier getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( domCg_identifier atRef ) { attrRef = atRef; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the cg_param_type element. - * @return a daeSmartRef to the cg_param_type element. - */ - const domCg_param_typeRef getCg_param_type() const { return elemCg_param_type; } -protected: - /** - * Constructor - */ - domCg_setparam_simple_complexType() : attrRef(), elemAnnotate_array(), elemCg_param_type() {} - /** - * Destructor - */ - virtual ~domCg_setparam_simple_complexType() {} - /** - * Copy Constructor - */ - domCg_setparam_simple_complexType( const domCg_setparam_simple_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_setparam_simple_complexType &operator=( const domCg_setparam_simple_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_setparam_simple_complexType. - */ -class domCg_setparam_simple : public daeElement, public domCg_setparam_simple_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SETPARAM_SIMPLE; } - -public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a domCg_identifier of the ref attribute. - */ - domCg_identifier getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( domCg_identifier atRef ) { attrRef = atRef; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domCg_setparam_simple() {} - /** - * Destructor - */ - virtual ~domCg_setparam_simple() {} - /** - * Copy Constructor - */ - domCg_setparam_simple( const domCg_setparam_simple &cpy ) : daeElement(), domCg_setparam_simple_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_setparam_simple &operator=( const domCg_setparam_simple &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_setuser_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_setuser_type.h deleted file mode 100644 index 731e7b4e3..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_setuser_type.h +++ /dev/null @@ -1,233 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_setuser_type_h__ -#define __domCg_setuser_type_h__ - -#include -#include - -#include -#include -#include -#include -#include - -/** - * Creates an instance of a structured class. - */ -class domCg_setuser_type_complexType -{ -protected: // Attributes - domCg_identifier attrName; -/** - * Reference a code or include element which defines the usertype - */ - xsNCName attrSource; - -protected: // Elements - domCg_param_type_Array elemCg_param_type_array; - domCg_setarray_type_Array elemArray_array; - domCg_setuser_type_Array elemUsertype_array; - domCg_connect_param_Array elemConnect_param_array; -/** - * Use a series of these to set the members by name. The ref attribute will - * be relative to the usertype you are in right now. @see domSetparam - */ - domCg_setparam_Array elemSetparam_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the name attribute. - * @return Returns a domCg_identifier of the name attribute. - */ - domCg_identifier getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( domCg_identifier atName ) { attrName = atName; } - - /** - * Gets the source attribute. - * @return Returns a xsNCName of the source attribute. - */ - xsNCName getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( xsNCName atSource ) { *(daeStringRef*)&attrSource = atSource; } - - /** - * Gets the cg_param_type element array. - * @return Returns a reference to the array of cg_param_type elements. - */ - domCg_param_type_Array &getCg_param_type_array() { return elemCg_param_type_array; } - /** - * Gets the cg_param_type element array. - * @return Returns a constant reference to the array of cg_param_type elements. - */ - const domCg_param_type_Array &getCg_param_type_array() const { return elemCg_param_type_array; } - /** - * Gets the array element array. - * @return Returns a reference to the array of array elements. - */ - domCg_setarray_type_Array &getArray_array() { return elemArray_array; } - /** - * Gets the array element array. - * @return Returns a constant reference to the array of array elements. - */ - const domCg_setarray_type_Array &getArray_array() const { return elemArray_array; } - /** - * Gets the usertype element array. - * @return Returns a reference to the array of usertype elements. - */ - domCg_setuser_type_Array &getUsertype_array() { return elemUsertype_array; } - /** - * Gets the usertype element array. - * @return Returns a constant reference to the array of usertype elements. - */ - const domCg_setuser_type_Array &getUsertype_array() const { return elemUsertype_array; } - /** - * Gets the connect_param element array. - * @return Returns a reference to the array of connect_param elements. - */ - domCg_connect_param_Array &getConnect_param_array() { return elemConnect_param_array; } - /** - * Gets the connect_param element array. - * @return Returns a constant reference to the array of connect_param elements. - */ - const domCg_connect_param_Array &getConnect_param_array() const { return elemConnect_param_array; } - /** - * Gets the setparam element array. - * @return Returns a reference to the array of setparam elements. - */ - domCg_setparam_Array &getSetparam_array() { return elemSetparam_array; } - /** - * Gets the setparam element array. - * @return Returns a constant reference to the array of setparam elements. - */ - const domCg_setparam_Array &getSetparam_array() const { return elemSetparam_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domCg_setuser_type_complexType() : attrName(), attrSource(), elemCg_param_type_array(), elemArray_array(), elemUsertype_array(), elemConnect_param_array(), elemSetparam_array() {} - /** - * Destructor - */ - virtual ~domCg_setuser_type_complexType() {} - /** - * Copy Constructor - */ - domCg_setuser_type_complexType( const domCg_setuser_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_setuser_type_complexType &operator=( const domCg_setuser_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_setuser_type_complexType. - */ -class domCg_setuser_type : public daeElement, public domCg_setuser_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SETUSER_TYPE; } - -public: //Accessors and Mutators - /** - * Gets the name attribute. - * @return Returns a domCg_identifier of the name attribute. - */ - domCg_identifier getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( domCg_identifier atName ) { attrName = atName; - _validAttributeArray[0] = true; } - - /** - * Gets the source attribute. - * @return Returns a xsNCName of the source attribute. - */ - xsNCName getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( xsNCName atSource ) { *(daeStringRef*)&attrSource = atSource; - _validAttributeArray[1] = true; } - -protected: - /** - * Constructor - */ - domCg_setuser_type() {} - /** - * Destructor - */ - virtual ~domCg_setuser_type() {} - /** - * Copy Constructor - */ - domCg_setuser_type( const domCg_setuser_type &cpy ) : daeElement(), domCg_setuser_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_setuser_type &operator=( const domCg_setuser_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCg_surface_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCg_surface_type.h deleted file mode 100644 index 88dbf7a92..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCg_surface_type.h +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCg_surface_type_h__ -#define __domCg_surface_type_h__ - -#include -#include - -#include -#include -#include -#include -#include - -/** - * Declares a resource that can be used both as the source for texture samples - * and as the target of a rendering pass. - */ -class domCg_surface_type_complexType : public domFx_surface_common_complexType -{ -public: - class domGenerator; - - typedef daeSmartRef domGeneratorRef; - typedef daeTArray domGenerator_Array; - -/** - * A procedural surface generator for the cg profile. - */ - class domGenerator : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GENERATOR; } - public: - class domName; - - typedef daeSmartRef domNameRef; - typedef daeTArray domName_Array; - -/** - * The entry symbol for the shader function. - */ - class domName : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::NAME; } - protected: // Attribute - xsNCName attrSource; - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the source attribute. - * @return Returns a xsNCName of the source attribute. - */ - xsNCName getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( xsNCName atSource ) { *(daeStringRef*)&attrSource = atSource; - _validAttributeArray[0] = true; } - - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domName() : attrSource(), _value() {} - /** - * Destructor - */ - virtual ~domName() {} - /** - * Copy Constructor - */ - domName( const domName &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domName &operator=( const domName &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements -/** - * The annotate element allows you to specify an annotation for this generator. - * @see domAnnotate - */ - domFx_annotate_common_Array elemAnnotate_array; -/** - * The code element allows you to embed cg sourcecode for the surface generator. - * @see domCode - */ - domFx_code_profile_Array elemCode_array; -/** - * The include element imports cg source code or precompiled binary shaders - * into the FX Runtime by referencing an external resource. @see domInclude - */ - domFx_include_common_Array elemInclude_array; -/** - * The entry symbol for the shader function. @see domName - */ - domNameRef elemName; -/** - * Assigns a new value to a previously defined parameter. @see domSetparam - */ - domCg_setparam_simple_Array elemSetparam_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the code element array. - * @return Returns a reference to the array of code elements. - */ - domFx_code_profile_Array &getCode_array() { return elemCode_array; } - /** - * Gets the code element array. - * @return Returns a constant reference to the array of code elements. - */ - const domFx_code_profile_Array &getCode_array() const { return elemCode_array; } - /** - * Gets the include element array. - * @return Returns a reference to the array of include elements. - */ - domFx_include_common_Array &getInclude_array() { return elemInclude_array; } - /** - * Gets the include element array. - * @return Returns a constant reference to the array of include elements. - */ - const domFx_include_common_Array &getInclude_array() const { return elemInclude_array; } - /** - * Gets the name element. - * @return a daeSmartRef to the name element. - */ - const domNameRef getName() const { return elemName; } - /** - * Gets the setparam element array. - * @return Returns a reference to the array of setparam elements. - */ - domCg_setparam_simple_Array &getSetparam_array() { return elemSetparam_array; } - /** - * Gets the setparam element array. - * @return Returns a constant reference to the array of setparam elements. - */ - const domCg_setparam_simple_Array &getSetparam_array() const { return elemSetparam_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domGenerator() : elemAnnotate_array(), elemCode_array(), elemInclude_array(), elemName(), elemSetparam_array() {} - /** - * Destructor - */ - virtual ~domGenerator() {} - /** - * Copy Constructor - */ - domGenerator( const domGenerator &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGenerator &operator=( const domGenerator &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Element -/** - * A procedural surface generator for the cg profile. @see domGenerator - */ - domGeneratorRef elemGenerator; - -public: //Accessors and Mutators - /** - * Gets the generator element. - * @return a daeSmartRef to the generator element. - */ - const domGeneratorRef getGenerator() const { return elemGenerator; } -protected: - /** - * Constructor - */ - domCg_surface_type_complexType() : elemGenerator() {} - /** - * Destructor - */ - virtual ~domCg_surface_type_complexType() {} - /** - * Copy Constructor - */ - domCg_surface_type_complexType( const domCg_surface_type_complexType &cpy ) : domFx_surface_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_surface_type_complexType &operator=( const domCg_surface_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCg_surface_type_complexType. - */ -class domCg_surface_type : public daeElement, public domCg_surface_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CG_SURFACE_TYPE; } -protected: - /** - * Constructor - */ - domCg_surface_type() {} - /** - * Destructor - */ - virtual ~domCg_surface_type() {} - /** - * Copy Constructor - */ - domCg_surface_type( const domCg_surface_type &cpy ) : daeElement(), domCg_surface_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCg_surface_type &operator=( const domCg_surface_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domChannel.h b/Extras/COLLADA_DOM/include/1.4/dom/domChannel.h deleted file mode 100644 index 5e936f56f..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domChannel.h +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domChannel_h__ -#define __domChannel_h__ - -#include -#include - - -/** - * The channel element declares an output channel of an animation. - */ -class domChannel : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CHANNEL; } -protected: // Attributes -/** - * The source attribute indicates the location of the sampler using a URL - * expression. The sampler must be declared within the same document. Required - * attribute. - */ - domURIFragmentType attrSource; -/** - * The target attribute indicates the location of the element bound to the - * output of the sampler. This text string is a path-name following a simple - * syntax described in Address Syntax. Required attribute. - */ - xsToken attrTarget; - - -public: //Accessors and Mutators - /** - * Gets the source attribute. - * @return Returns a domURIFragmentType reference of the source attribute. - */ - domURIFragmentType &getSource() { return attrSource; } - /** - * Gets the source attribute. - * @return Returns a constant domURIFragmentType reference of the source attribute. - */ - const domURIFragmentType &getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( const domURIFragmentType &atSource ) { attrSource = atSource; - _validAttributeArray[0] = true; } - - /** - * Gets the target attribute. - * @return Returns a xsToken of the target attribute. - */ - xsToken getTarget() const { return attrTarget; } - /** - * Sets the target attribute. - * @param atTarget The new value for the target attribute. - */ - void setTarget( xsToken atTarget ) { *(daeStringRef*)&attrTarget = atTarget; - _validAttributeArray[1] = true; } - -protected: - /** - * Constructor - */ - domChannel() : attrSource(), attrTarget() {} - /** - * Destructor - */ - virtual ~domChannel() {} - /** - * Copy Constructor - */ - domChannel( const domChannel &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domChannel &operator=( const domChannel &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCommon_color_or_texture_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCommon_color_or_texture_type.h deleted file mode 100644 index af6945193..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCommon_color_or_texture_type.h +++ /dev/null @@ -1,369 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCommon_color_or_texture_type_h__ -#define __domCommon_color_or_texture_type_h__ - -#include -#include - -#include - -class domCommon_color_or_texture_type_complexType -{ -public: - class domColor; - - typedef daeSmartRef domColorRef; - typedef daeTArray domColor_Array; - - class domColor : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLOR; } - protected: // Attribute - xsNCName attrSid; - - protected: // Value - /** - * The domFx_color_common value of the text data of this element. - */ - domFx_color_common _value; - - public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the _value array. - * @return Returns a domFx_color_common reference of the _value array. - */ - domFx_color_common &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFx_color_common reference of the _value array. - */ - const domFx_color_common &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFx_color_common &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domColor() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domColor() {} - /** - * Copy Constructor - */ - domColor( const domColor &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domColor &operator=( const domColor &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domParam; - - typedef daeSmartRef domParamRef; - typedef daeTArray domParam_Array; - - class domParam : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; } - protected: // Attribute - xsNCName attrRef; - - - public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a xsNCName of the ref attribute. - */ - xsNCName getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( xsNCName atRef ) { *(daeStringRef*)&attrRef = atRef; - _validAttributeArray[0] = true; } - - protected: - /** - * Constructor - */ - domParam() : attrRef() {} - /** - * Destructor - */ - virtual ~domParam() {} - /** - * Copy Constructor - */ - domParam( const domParam &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domParam &operator=( const domParam &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTexture; - - typedef daeSmartRef domTextureRef; - typedef daeTArray domTexture_Array; - - class domTexture : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURE; } - protected: // Attributes - xsNCName attrTexture; - xsNCName attrTexcoord; - - protected: // Element - domExtraRef elemExtra; - - public: //Accessors and Mutators - /** - * Gets the texture attribute. - * @return Returns a xsNCName of the texture attribute. - */ - xsNCName getTexture() const { return attrTexture; } - /** - * Sets the texture attribute. - * @param atTexture The new value for the texture attribute. - */ - void setTexture( xsNCName atTexture ) { *(daeStringRef*)&attrTexture = atTexture; - _validAttributeArray[0] = true; } - - /** - * Gets the texcoord attribute. - * @return Returns a xsNCName of the texcoord attribute. - */ - xsNCName getTexcoord() const { return attrTexcoord; } - /** - * Sets the texcoord attribute. - * @param atTexcoord The new value for the texcoord attribute. - */ - void setTexcoord( xsNCName atTexcoord ) { *(daeStringRef*)&attrTexcoord = atTexcoord; - _validAttributeArray[1] = true; } - - /** - * Gets the extra element. - * @return a daeSmartRef to the extra element. - */ - const domExtraRef getExtra() const { return elemExtra; } - protected: - /** - * Constructor - */ - domTexture() : attrTexture(), attrTexcoord(), elemExtra() {} - /** - * Destructor - */ - virtual ~domTexture() {} - /** - * Copy Constructor - */ - domTexture( const domTexture &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTexture &operator=( const domTexture &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domColorRef elemColor; - domParamRef elemParam; - domTextureRef elemTexture; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the color element. - * @return a daeSmartRef to the color element. - */ - const domColorRef getColor() const { return elemColor; } - /** - * Gets the param element. - * @return a daeSmartRef to the param element. - */ - const domParamRef getParam() const { return elemParam; } - /** - * Gets the texture element. - * @return a daeSmartRef to the texture element. - */ - const domTextureRef getTexture() const { return elemTexture; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domCommon_color_or_texture_type_complexType() : elemColor(), elemParam(), elemTexture() {} - /** - * Destructor - */ - virtual ~domCommon_color_or_texture_type_complexType() {} - /** - * Copy Constructor - */ - domCommon_color_or_texture_type_complexType( const domCommon_color_or_texture_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCommon_color_or_texture_type_complexType &operator=( const domCommon_color_or_texture_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCommon_color_or_texture_type_complexType. - */ -class domCommon_color_or_texture_type : public daeElement, public domCommon_color_or_texture_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMMON_COLOR_OR_TEXTURE_TYPE; } -protected: - /** - * Constructor - */ - domCommon_color_or_texture_type() {} - /** - * Destructor - */ - virtual ~domCommon_color_or_texture_type() {} - /** - * Copy Constructor - */ - domCommon_color_or_texture_type( const domCommon_color_or_texture_type &cpy ) : daeElement(), domCommon_color_or_texture_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCommon_color_or_texture_type &operator=( const domCommon_color_or_texture_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCommon_float_or_param_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCommon_float_or_param_type.h deleted file mode 100644 index 0422f5896..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCommon_float_or_param_type.h +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCommon_float_or_param_type_h__ -#define __domCommon_float_or_param_type_h__ - -#include -#include - - -class domCommon_float_or_param_type_complexType -{ -public: - class domFloat; - - typedef daeSmartRef domFloatRef; - typedef daeTArray domFloat_Array; - - class domFloat : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT; } - protected: // Attribute - xsNCName attrSid; - - protected: // Value - /** - * The ::domFloat value of the text data of this element. - */ - ::domFloat _value; - - public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the value of this element. - * @return a ::domFloat of the value. - */ - ::domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::domFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domFloat() {} - /** - * Copy Constructor - */ - domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat &operator=( const domFloat &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domParam; - - typedef daeSmartRef domParamRef; - typedef daeTArray domParam_Array; - - class domParam : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; } - protected: // Attribute - xsNCName attrRef; - - - public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a xsNCName of the ref attribute. - */ - xsNCName getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( xsNCName atRef ) { *(daeStringRef*)&attrRef = atRef; - _validAttributeArray[0] = true; } - - protected: - /** - * Constructor - */ - domParam() : attrRef() {} - /** - * Destructor - */ - virtual ~domParam() {} - /** - * Copy Constructor - */ - domParam( const domParam &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domParam &operator=( const domParam &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domFloatRef elemFloat; - domParamRef elemParam; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the float element. - * @return a daeSmartRef to the float element. - */ - const domFloatRef getFloat() const { return elemFloat; } - /** - * Gets the param element. - * @return a daeSmartRef to the param element. - */ - const domParamRef getParam() const { return elemParam; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domCommon_float_or_param_type_complexType() : elemFloat(), elemParam() {} - /** - * Destructor - */ - virtual ~domCommon_float_or_param_type_complexType() {} - /** - * Copy Constructor - */ - domCommon_float_or_param_type_complexType( const domCommon_float_or_param_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCommon_float_or_param_type_complexType &operator=( const domCommon_float_or_param_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCommon_float_or_param_type_complexType. - */ -class domCommon_float_or_param_type : public daeElement, public domCommon_float_or_param_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMMON_FLOAT_OR_PARAM_TYPE; } -protected: - /** - * Constructor - */ - domCommon_float_or_param_type() {} - /** - * Destructor - */ - virtual ~domCommon_float_or_param_type() {} - /** - * Copy Constructor - */ - domCommon_float_or_param_type( const domCommon_float_or_param_type &cpy ) : daeElement(), domCommon_float_or_param_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCommon_float_or_param_type &operator=( const domCommon_float_or_param_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCommon_newparam_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCommon_newparam_type.h deleted file mode 100644 index 70da2346e..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCommon_newparam_type.h +++ /dev/null @@ -1,540 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCommon_newparam_type_h__ -#define __domCommon_newparam_type_h__ - -#include -#include - -#include -#include - -class domCommon_newparam_type_complexType -{ -public: - class domSemantic; - - typedef daeSmartRef domSemanticRef; - typedef daeTArray domSemantic_Array; - - class domSemantic : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SEMANTIC; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSemantic() : _value() {} - /** - * Destructor - */ - virtual ~domSemantic() {} - /** - * Copy Constructor - */ - domSemantic( const domSemantic &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSemantic &operator=( const domSemantic &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat; - - typedef daeSmartRef domFloatRef; - typedef daeTArray domFloat_Array; - - class domFloat : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT; } - - protected: // Value - /** - * The ::domFloat value of the text data of this element. - */ - ::domFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a ::domFloat of the value. - */ - ::domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::domFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat() : _value() {} - /** - * Destructor - */ - virtual ~domFloat() {} - /** - * Copy Constructor - */ - domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat &operator=( const domFloat &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2; - - typedef daeSmartRef domFloat2Ref; - typedef daeTArray domFloat2_Array; - - class domFloat2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2; } - - protected: // Value - /** - * The ::domFloat2 value of the text data of this element. - */ - ::domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2 reference of the _value array. - */ - ::domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2 reference of the _value array. - */ - const ::domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2() {} - /** - * Copy Constructor - */ - domFloat2( const domFloat2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2 &operator=( const domFloat2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3; - - typedef daeSmartRef domFloat3Ref; - typedef daeTArray domFloat3_Array; - - class domFloat3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3; } - - protected: // Value - /** - * The ::domFloat3 value of the text data of this element. - */ - ::domFloat3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3 reference of the _value array. - */ - ::domFloat3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3 reference of the _value array. - */ - const ::domFloat3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3() {} - /** - * Copy Constructor - */ - domFloat3( const domFloat3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3 &operator=( const domFloat3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4; - - typedef daeSmartRef domFloat4Ref; - typedef daeTArray domFloat4_Array; - - class domFloat4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4; } - - protected: // Value - /** - * The ::domFloat4 value of the text data of this element. - */ - ::domFloat4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4 reference of the _value array. - */ - ::domFloat4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4 reference of the _value array. - */ - const ::domFloat4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4() {} - /** - * Copy Constructor - */ - domFloat4( const domFloat4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4 &operator=( const domFloat4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - -protected: // Elements - domSemanticRef elemSemantic; - domFloatRef elemFloat; - domFloat2Ref elemFloat2; - domFloat3Ref elemFloat3; - domFloat4Ref elemFloat4; - domFx_surface_commonRef elemSurface; - domFx_sampler2D_commonRef elemSampler2D; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; } - - /** - * Gets the semantic element. - * @return a daeSmartRef to the semantic element. - */ - const domSemanticRef getSemantic() const { return elemSemantic; } - /** - * Gets the float element. - * @return a daeSmartRef to the float element. - */ - const domFloatRef getFloat() const { return elemFloat; } - /** - * Gets the float2 element. - * @return a daeSmartRef to the float2 element. - */ - const domFloat2Ref getFloat2() const { return elemFloat2; } - /** - * Gets the float3 element. - * @return a daeSmartRef to the float3 element. - */ - const domFloat3Ref getFloat3() const { return elemFloat3; } - /** - * Gets the float4 element. - * @return a daeSmartRef to the float4 element. - */ - const domFloat4Ref getFloat4() const { return elemFloat4; } - /** - * Gets the surface element. - * @return a daeSmartRef to the surface element. - */ - const domFx_surface_commonRef getSurface() const { return elemSurface; } - /** - * Gets the sampler2D element. - * @return a daeSmartRef to the sampler2D element. - */ - const domFx_sampler2D_commonRef getSampler2D() const { return elemSampler2D; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domCommon_newparam_type_complexType() : attrSid(), elemSemantic(), elemFloat(), elemFloat2(), elemFloat3(), elemFloat4(), elemSurface(), elemSampler2D() {} - /** - * Destructor - */ - virtual ~domCommon_newparam_type_complexType() {} - /** - * Copy Constructor - */ - domCommon_newparam_type_complexType( const domCommon_newparam_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCommon_newparam_type_complexType &operator=( const domCommon_newparam_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domCommon_newparam_type_complexType. - */ -class domCommon_newparam_type : public daeElement, public domCommon_newparam_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMMON_NEWPARAM_TYPE; } - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domCommon_newparam_type() {} - /** - * Destructor - */ - virtual ~domCommon_newparam_type() {} - /** - * Copy Constructor - */ - domCommon_newparam_type( const domCommon_newparam_type &cpy ) : daeElement(), domCommon_newparam_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCommon_newparam_type &operator=( const domCommon_newparam_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCommon_transparent_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domCommon_transparent_type.h deleted file mode 100644 index 53819a3a6..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCommon_transparent_type.h +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCommon_transparent_type_h__ -#define __domCommon_transparent_type_h__ - -#include -#include - -#include - -/** - * An element of type domCommon_transparent_type_complexType. - */ -class domCommon_transparent_type : public domCommon_color_or_texture_type -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMMON_TRANSPARENT_TYPE; } - -protected: // Attribute - domFx_opaque_enum attrOpaque; - -public: //Accessors and Mutators - /** - * Gets the opaque attribute. - * @return Returns a domFx_opaque_enum of the opaque attribute. - */ - domFx_opaque_enum getOpaque() const { return attrOpaque; } - /** - * Sets the opaque attribute. - * @param atOpaque The new value for the opaque attribute. - */ - void setOpaque( domFx_opaque_enum atOpaque ) { attrOpaque = atOpaque; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domCommon_transparent_type() {} - /** - * Destructor - */ - virtual ~domCommon_transparent_type() {} - /** - * Copy Constructor - */ - domCommon_transparent_type( const domCommon_transparent_type &cpy ) : domCommon_color_or_texture_type() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCommon_transparent_type &operator=( const domCommon_transparent_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domConstants.h b/Extras/COLLADA_DOM/include/1.4/dom/domConstants.h deleted file mode 100644 index 15f05709b..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domConstants.h +++ /dev/null @@ -1,1093 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DOM_CONSTANTS_H__ -#define __DOM_CONSTANTS_H__ - -#include - -extern DLLSPEC daeString COLLADA_VERSION; -extern DLLSPEC daeString COLLADA_NAMESPACE; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_BINORMAL; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_COLOR; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_CONTINUITY; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_IMAGE; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_IN_TANGENT; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_INPUT; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_INTERPOLATION; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_INV_BIND_MATRIX; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_JOINT; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_LINEAR_STEPS; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_MORPH_TARGET; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_MORPH_WEIGHT; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_NORMAL; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_OUTPUT; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_OUT_TANGENT; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_POSITION; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_TANGENT; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_TEXBINORMAL; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_TEXCOORD; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_TEXTANGENT; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_UV; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_VERTEX; -extern DLLSPEC daeString COMMON_PROFILE_INPUT_WEIGHT; - -extern DLLSPEC daeString COMMON_PROFILE_PARAM_A; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_ANGLE; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_B; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_DOUBLE_SIDED; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_G; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_P; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_Q; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_R; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_S; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_T; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_TIME; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_U; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_V; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_W; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_X; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_Y; -extern DLLSPEC daeString COMMON_PROFILE_PARAM_Z; - - -extern DLLSPEC daeString COLLADA_TYPE_INPUTGLOBAL; -extern DLLSPEC daeString COLLADA_TYPE_INPUTLOCAL; -extern DLLSPEC daeString COLLADA_TYPE_INPUTLOCALOFFSET; -extern DLLSPEC daeString COLLADA_TYPE_INSTANCEWITHEXTRA; -extern DLLSPEC daeString COLLADA_TYPE_TARGETABLEFLOAT; -extern DLLSPEC daeString COLLADA_TYPE_TARGETABLEFLOAT3; -extern DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_FORMAT_HINT_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_CHANNELS; -extern DLLSPEC daeString COLLADA_TYPE_RANGE; -extern DLLSPEC daeString COLLADA_TYPE_PRECISION; -extern DLLSPEC daeString COLLADA_TYPE_OPTION; -extern DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_INIT_PLANAR_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_ALL; -extern DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_INIT_VOLUME_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_PRIMARY; -extern DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_INIT_CUBE_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_ORDER; -extern DLLSPEC daeString COLLADA_TYPE_FACE; -extern DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_INIT_FROM_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FORMAT; -extern DLLSPEC daeString COLLADA_TYPE_SIZE; -extern DLLSPEC daeString COLLADA_TYPE_VIEWPORT_RATIO; -extern DLLSPEC daeString COLLADA_TYPE_MIP_LEVELS; -extern DLLSPEC daeString COLLADA_TYPE_MIPMAP_GENERATE; -extern DLLSPEC daeString COLLADA_TYPE_FX_SAMPLER1D_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_SOURCE; -extern DLLSPEC daeString COLLADA_TYPE_WRAP_S; -extern DLLSPEC daeString COLLADA_TYPE_MINFILTER; -extern DLLSPEC daeString COLLADA_TYPE_MAGFILTER; -extern DLLSPEC daeString COLLADA_TYPE_MIPFILTER; -extern DLLSPEC daeString COLLADA_TYPE_BORDER_COLOR; -extern DLLSPEC daeString COLLADA_TYPE_MIPMAP_MAXLEVEL; -extern DLLSPEC daeString COLLADA_TYPE_MIPMAP_BIAS; -extern DLLSPEC daeString COLLADA_TYPE_FX_SAMPLER2D_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_WRAP_T; -extern DLLSPEC daeString COLLADA_TYPE_FX_SAMPLER3D_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_WRAP_P; -extern DLLSPEC daeString COLLADA_TYPE_FX_SAMPLERCUBE_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FX_SAMPLERRECT_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FX_SAMPLERDEPTH_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FX_COLORTARGET_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FX_DEPTHTARGET_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FX_STENCILTARGET_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FX_CLEARCOLOR_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FX_CLEARDEPTH_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FX_CLEARSTENCIL_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FX_ANNOTATE_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FX_INCLUDE_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FX_NEWPARAM_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_SEMANTIC; -extern DLLSPEC daeString COLLADA_TYPE_MODIFIER; -extern DLLSPEC daeString COLLADA_TYPE_FX_CODE_PROFILE; -extern DLLSPEC daeString COLLADA_TYPE_GL_SAMPLER1D; -extern DLLSPEC daeString COLLADA_TYPE_GL_SAMPLER2D; -extern DLLSPEC daeString COLLADA_TYPE_GL_SAMPLER3D; -extern DLLSPEC daeString COLLADA_TYPE_GL_SAMPLERCUBE; -extern DLLSPEC daeString COLLADA_TYPE_GL_SAMPLERRECT; -extern DLLSPEC daeString COLLADA_TYPE_GL_SAMPLERDEPTH; -extern DLLSPEC daeString COLLADA_TYPE_GLSL_NEWARRAY_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_GLSL_SETARRAY_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_GLSL_SURFACE_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_GENERATOR; -extern DLLSPEC daeString COLLADA_TYPE_NAME; -extern DLLSPEC daeString COLLADA_TYPE_GLSL_NEWPARAM; -extern DLLSPEC daeString COLLADA_TYPE_GLSL_SETPARAM_SIMPLE; -extern DLLSPEC daeString COLLADA_TYPE_GLSL_SETPARAM; -extern DLLSPEC daeString COLLADA_TYPE_COMMON_FLOAT_OR_PARAM_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT; -extern DLLSPEC daeString COLLADA_TYPE_PARAM; -extern DLLSPEC daeString COLLADA_TYPE_COMMON_COLOR_OR_TEXTURE_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_COLOR; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURE; -extern DLLSPEC daeString COLLADA_TYPE_COMMON_TRANSPARENT_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_COMMON_NEWPARAM_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT2; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT3; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT4; -extern DLLSPEC daeString COLLADA_TYPE_CG_SAMPLER1D; -extern DLLSPEC daeString COLLADA_TYPE_CG_SAMPLER2D; -extern DLLSPEC daeString COLLADA_TYPE_CG_SAMPLER3D; -extern DLLSPEC daeString COLLADA_TYPE_CG_SAMPLERCUBE; -extern DLLSPEC daeString COLLADA_TYPE_CG_SAMPLERRECT; -extern DLLSPEC daeString COLLADA_TYPE_CG_SAMPLERDEPTH; -extern DLLSPEC daeString COLLADA_TYPE_CG_CONNECT_PARAM; -extern DLLSPEC daeString COLLADA_TYPE_CG_NEWARRAY_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_CG_SETARRAY_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_CG_SETUSER_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_CG_SURFACE_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_CG_NEWPARAM; -extern DLLSPEC daeString COLLADA_TYPE_CG_SETPARAM_SIMPLE; -extern DLLSPEC daeString COLLADA_TYPE_CG_SETPARAM; -extern DLLSPEC daeString COLLADA_TYPE_GLES_TEXTURE_CONSTANT_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_GLES_TEXENV_COMMAND_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_GLES_TEXCOMBINER_ARGUMENTRGB_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_GLES_TEXCOMBINER_ARGUMENTALPHA_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_GLES_TEXCOMBINER_COMMANDRGB_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_GLES_TEXCOMBINER_COMMANDALPHA_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_GLES_TEXCOMBINER_COMMAND_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_GLES_TEXTURE_PIPELINE; -extern DLLSPEC daeString COLLADA_TYPE_GLES_TEXTURE_UNIT; -extern DLLSPEC daeString COLLADA_TYPE_SURFACE; -extern DLLSPEC daeString COLLADA_TYPE_SAMPLER_STATE; -extern DLLSPEC daeString COLLADA_TYPE_TEXCOORD; -extern DLLSPEC daeString COLLADA_TYPE_GLES_SAMPLER_STATE; -extern DLLSPEC daeString COLLADA_TYPE_GLES_NEWPARAM; -extern DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_INIT_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_INIT_AS_NULL; -extern DLLSPEC daeString COLLADA_TYPE_INIT_AS_TARGET; -extern DLLSPEC daeString COLLADA_TYPE_FX_ANNOTATE_TYPE_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_BOOL; -extern DLLSPEC daeString COLLADA_TYPE_BOOL2; -extern DLLSPEC daeString COLLADA_TYPE_BOOL3; -extern DLLSPEC daeString COLLADA_TYPE_BOOL4; -extern DLLSPEC daeString COLLADA_TYPE_INT; -extern DLLSPEC daeString COLLADA_TYPE_INT2; -extern DLLSPEC daeString COLLADA_TYPE_INT3; -extern DLLSPEC daeString COLLADA_TYPE_INT4; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT2X2; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT3X3; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT4X4; -extern DLLSPEC daeString COLLADA_TYPE_STRING; -extern DLLSPEC daeString COLLADA_TYPE_FX_BASIC_TYPE_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT1X1; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT1X2; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT1X3; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT1X4; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT2X1; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT2X3; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT2X4; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT3X1; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT3X2; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT3X4; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT4X1; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT4X2; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT4X3; -extern DLLSPEC daeString COLLADA_TYPE_ENUM; -extern DLLSPEC daeString COLLADA_TYPE_GL_PIPELINE_SETTINGS; -extern DLLSPEC daeString COLLADA_TYPE_ALPHA_FUNC; -extern DLLSPEC daeString COLLADA_TYPE_FUNC; -extern DLLSPEC daeString COLLADA_TYPE_VALUE; -extern DLLSPEC daeString COLLADA_TYPE_BLEND_FUNC; -extern DLLSPEC daeString COLLADA_TYPE_SRC; -extern DLLSPEC daeString COLLADA_TYPE_DEST; -extern DLLSPEC daeString COLLADA_TYPE_BLEND_FUNC_SEPARATE; -extern DLLSPEC daeString COLLADA_TYPE_SRC_RGB; -extern DLLSPEC daeString COLLADA_TYPE_DEST_RGB; -extern DLLSPEC daeString COLLADA_TYPE_SRC_ALPHA; -extern DLLSPEC daeString COLLADA_TYPE_DEST_ALPHA; -extern DLLSPEC daeString COLLADA_TYPE_BLEND_EQUATION; -extern DLLSPEC daeString COLLADA_TYPE_BLEND_EQUATION_SEPARATE; -extern DLLSPEC daeString COLLADA_TYPE_RGB; -extern DLLSPEC daeString COLLADA_TYPE_ALPHA; -extern DLLSPEC daeString COLLADA_TYPE_COLOR_MATERIAL; -extern DLLSPEC daeString COLLADA_TYPE_MODE; -extern DLLSPEC daeString COLLADA_TYPE_CULL_FACE; -extern DLLSPEC daeString COLLADA_TYPE_DEPTH_FUNC; -extern DLLSPEC daeString COLLADA_TYPE_FOG_MODE; -extern DLLSPEC daeString COLLADA_TYPE_FOG_COORD_SRC; -extern DLLSPEC daeString COLLADA_TYPE_FRONT_FACE; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_MODEL_COLOR_CONTROL; -extern DLLSPEC daeString COLLADA_TYPE_LOGIC_OP; -extern DLLSPEC daeString COLLADA_TYPE_POLYGON_MODE; -extern DLLSPEC daeString COLLADA_TYPE_SHADE_MODEL; -extern DLLSPEC daeString COLLADA_TYPE_STENCIL_FUNC; -extern DLLSPEC daeString COLLADA_TYPE_REF; -extern DLLSPEC daeString COLLADA_TYPE_MASK; -extern DLLSPEC daeString COLLADA_TYPE_STENCIL_OP; -extern DLLSPEC daeString COLLADA_TYPE_FAIL; -extern DLLSPEC daeString COLLADA_TYPE_ZFAIL; -extern DLLSPEC daeString COLLADA_TYPE_ZPASS; -extern DLLSPEC daeString COLLADA_TYPE_STENCIL_FUNC_SEPARATE; -extern DLLSPEC daeString COLLADA_TYPE_FRONT; -extern DLLSPEC daeString COLLADA_TYPE_BACK; -extern DLLSPEC daeString COLLADA_TYPE_STENCIL_OP_SEPARATE; -extern DLLSPEC daeString COLLADA_TYPE_STENCIL_MASK_SEPARATE; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_AMBIENT; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_DIFFUSE; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_SPECULAR; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_POSITION; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_CONSTANT_ATTENUATION; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_LINEAR_ATTENUATION; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_QUADRATIC_ATTENUATION; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_SPOT_CUTOFF; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_SPOT_DIRECTION; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_SPOT_EXPONENT; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURE1D; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURE2D; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURE3D; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURECUBE; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURERECT; -extern DLLSPEC daeString COLLADA_TYPE_TEXTUREDEPTH; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURE1D_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURE2D_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURE3D_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURECUBE_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURERECT_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_TEXTUREDEPTH_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURE_ENV_COLOR; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURE_ENV_MODE; -extern DLLSPEC daeString COLLADA_TYPE_CLIP_PLANE; -extern DLLSPEC daeString COLLADA_TYPE_CLIP_PLANE_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_BLEND_COLOR; -extern DLLSPEC daeString COLLADA_TYPE_CLEAR_COLOR; -extern DLLSPEC daeString COLLADA_TYPE_CLEAR_STENCIL; -extern DLLSPEC daeString COLLADA_TYPE_CLEAR_DEPTH; -extern DLLSPEC daeString COLLADA_TYPE_COLOR_MASK; -extern DLLSPEC daeString COLLADA_TYPE_DEPTH_BOUNDS; -extern DLLSPEC daeString COLLADA_TYPE_DEPTH_MASK; -extern DLLSPEC daeString COLLADA_TYPE_DEPTH_RANGE; -extern DLLSPEC daeString COLLADA_TYPE_FOG_DENSITY; -extern DLLSPEC daeString COLLADA_TYPE_FOG_START; -extern DLLSPEC daeString COLLADA_TYPE_FOG_END; -extern DLLSPEC daeString COLLADA_TYPE_FOG_COLOR; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_MODEL_AMBIENT; -extern DLLSPEC daeString COLLADA_TYPE_LIGHTING_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_LINE_STIPPLE; -extern DLLSPEC daeString COLLADA_TYPE_LINE_WIDTH; -extern DLLSPEC daeString COLLADA_TYPE_MATERIAL_AMBIENT; -extern DLLSPEC daeString COLLADA_TYPE_MATERIAL_DIFFUSE; -extern DLLSPEC daeString COLLADA_TYPE_MATERIAL_EMISSION; -extern DLLSPEC daeString COLLADA_TYPE_MATERIAL_SHININESS; -extern DLLSPEC daeString COLLADA_TYPE_MATERIAL_SPECULAR; -extern DLLSPEC daeString COLLADA_TYPE_MODEL_VIEW_MATRIX; -extern DLLSPEC daeString COLLADA_TYPE_POINT_DISTANCE_ATTENUATION; -extern DLLSPEC daeString COLLADA_TYPE_POINT_FADE_THRESHOLD_SIZE; -extern DLLSPEC daeString COLLADA_TYPE_POINT_SIZE; -extern DLLSPEC daeString COLLADA_TYPE_POINT_SIZE_MIN; -extern DLLSPEC daeString COLLADA_TYPE_POINT_SIZE_MAX; -extern DLLSPEC daeString COLLADA_TYPE_POLYGON_OFFSET; -extern DLLSPEC daeString COLLADA_TYPE_PROJECTION_MATRIX; -extern DLLSPEC daeString COLLADA_TYPE_SCISSOR; -extern DLLSPEC daeString COLLADA_TYPE_STENCIL_MASK; -extern DLLSPEC daeString COLLADA_TYPE_ALPHA_TEST_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_AUTO_NORMAL_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_BLEND_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_COLOR_LOGIC_OP_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_COLOR_MATERIAL_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_CULL_FACE_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_DEPTH_BOUNDS_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_DEPTH_CLAMP_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_DEPTH_TEST_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_DITHER_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_FOG_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_MODEL_LOCAL_VIEWER_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_MODEL_TWO_SIDE_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_LINE_SMOOTH_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_LINE_STIPPLE_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_LOGIC_OP_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_MULTISAMPLE_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_NORMALIZE_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_POINT_SMOOTH_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_POLYGON_OFFSET_FILL_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_POLYGON_OFFSET_LINE_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_POLYGON_OFFSET_POINT_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_POLYGON_SMOOTH_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_POLYGON_STIPPLE_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_RESCALE_NORMAL_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_SAMPLE_ALPHA_TO_COVERAGE_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_SAMPLE_ALPHA_TO_ONE_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_SAMPLE_COVERAGE_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_SCISSOR_TEST_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_STENCIL_TEST_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_GLSL_PARAM_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_CG_PARAM_TYPE; -extern DLLSPEC daeString COLLADA_TYPE_BOOL1; -extern DLLSPEC daeString COLLADA_TYPE_BOOL1X1; -extern DLLSPEC daeString COLLADA_TYPE_BOOL1X2; -extern DLLSPEC daeString COLLADA_TYPE_BOOL1X3; -extern DLLSPEC daeString COLLADA_TYPE_BOOL1X4; -extern DLLSPEC daeString COLLADA_TYPE_BOOL2X1; -extern DLLSPEC daeString COLLADA_TYPE_BOOL2X2; -extern DLLSPEC daeString COLLADA_TYPE_BOOL2X3; -extern DLLSPEC daeString COLLADA_TYPE_BOOL2X4; -extern DLLSPEC daeString COLLADA_TYPE_BOOL3X1; -extern DLLSPEC daeString COLLADA_TYPE_BOOL3X2; -extern DLLSPEC daeString COLLADA_TYPE_BOOL3X3; -extern DLLSPEC daeString COLLADA_TYPE_BOOL3X4; -extern DLLSPEC daeString COLLADA_TYPE_BOOL4X1; -extern DLLSPEC daeString COLLADA_TYPE_BOOL4X2; -extern DLLSPEC daeString COLLADA_TYPE_BOOL4X3; -extern DLLSPEC daeString COLLADA_TYPE_BOOL4X4; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT1; -extern DLLSPEC daeString COLLADA_TYPE_INT1; -extern DLLSPEC daeString COLLADA_TYPE_INT1X1; -extern DLLSPEC daeString COLLADA_TYPE_INT1X2; -extern DLLSPEC daeString COLLADA_TYPE_INT1X3; -extern DLLSPEC daeString COLLADA_TYPE_INT1X4; -extern DLLSPEC daeString COLLADA_TYPE_INT2X1; -extern DLLSPEC daeString COLLADA_TYPE_INT2X2; -extern DLLSPEC daeString COLLADA_TYPE_INT2X3; -extern DLLSPEC daeString COLLADA_TYPE_INT2X4; -extern DLLSPEC daeString COLLADA_TYPE_INT3X1; -extern DLLSPEC daeString COLLADA_TYPE_INT3X2; -extern DLLSPEC daeString COLLADA_TYPE_INT3X3; -extern DLLSPEC daeString COLLADA_TYPE_INT3X4; -extern DLLSPEC daeString COLLADA_TYPE_INT4X1; -extern DLLSPEC daeString COLLADA_TYPE_INT4X2; -extern DLLSPEC daeString COLLADA_TYPE_INT4X3; -extern DLLSPEC daeString COLLADA_TYPE_INT4X4; -extern DLLSPEC daeString COLLADA_TYPE_HALF; -extern DLLSPEC daeString COLLADA_TYPE_HALF1; -extern DLLSPEC daeString COLLADA_TYPE_HALF2; -extern DLLSPEC daeString COLLADA_TYPE_HALF3; -extern DLLSPEC daeString COLLADA_TYPE_HALF4; -extern DLLSPEC daeString COLLADA_TYPE_HALF1X1; -extern DLLSPEC daeString COLLADA_TYPE_HALF1X2; -extern DLLSPEC daeString COLLADA_TYPE_HALF1X3; -extern DLLSPEC daeString COLLADA_TYPE_HALF1X4; -extern DLLSPEC daeString COLLADA_TYPE_HALF2X1; -extern DLLSPEC daeString COLLADA_TYPE_HALF2X2; -extern DLLSPEC daeString COLLADA_TYPE_HALF2X3; -extern DLLSPEC daeString COLLADA_TYPE_HALF2X4; -extern DLLSPEC daeString COLLADA_TYPE_HALF3X1; -extern DLLSPEC daeString COLLADA_TYPE_HALF3X2; -extern DLLSPEC daeString COLLADA_TYPE_HALF3X3; -extern DLLSPEC daeString COLLADA_TYPE_HALF3X4; -extern DLLSPEC daeString COLLADA_TYPE_HALF4X1; -extern DLLSPEC daeString COLLADA_TYPE_HALF4X2; -extern DLLSPEC daeString COLLADA_TYPE_HALF4X3; -extern DLLSPEC daeString COLLADA_TYPE_HALF4X4; -extern DLLSPEC daeString COLLADA_TYPE_FIXED; -extern DLLSPEC daeString COLLADA_TYPE_FIXED1; -extern DLLSPEC daeString COLLADA_TYPE_FIXED2; -extern DLLSPEC daeString COLLADA_TYPE_FIXED3; -extern DLLSPEC daeString COLLADA_TYPE_FIXED4; -extern DLLSPEC daeString COLLADA_TYPE_FIXED1X1; -extern DLLSPEC daeString COLLADA_TYPE_FIXED1X2; -extern DLLSPEC daeString COLLADA_TYPE_FIXED1X3; -extern DLLSPEC daeString COLLADA_TYPE_FIXED1X4; -extern DLLSPEC daeString COLLADA_TYPE_FIXED2X1; -extern DLLSPEC daeString COLLADA_TYPE_FIXED2X2; -extern DLLSPEC daeString COLLADA_TYPE_FIXED2X3; -extern DLLSPEC daeString COLLADA_TYPE_FIXED2X4; -extern DLLSPEC daeString COLLADA_TYPE_FIXED3X1; -extern DLLSPEC daeString COLLADA_TYPE_FIXED3X2; -extern DLLSPEC daeString COLLADA_TYPE_FIXED3X3; -extern DLLSPEC daeString COLLADA_TYPE_FIXED3X4; -extern DLLSPEC daeString COLLADA_TYPE_FIXED4X1; -extern DLLSPEC daeString COLLADA_TYPE_FIXED4X2; -extern DLLSPEC daeString COLLADA_TYPE_FIXED4X3; -extern DLLSPEC daeString COLLADA_TYPE_FIXED4X4; -extern DLLSPEC daeString COLLADA_TYPE_GLES_PIPELINE_SETTINGS; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURE_PIPELINE; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT_LINEAR_ATTENUTATION; -extern DLLSPEC daeString COLLADA_TYPE_TEXTURE_PIPELINE_ENABLE; -extern DLLSPEC daeString COLLADA_TYPE_GLES_BASIC_TYPE_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_COLLADA; -extern DLLSPEC daeString COLLADA_TYPE_SCENE; -extern DLLSPEC daeString COLLADA_TYPE_IDREF_ARRAY; -extern DLLSPEC daeString COLLADA_TYPE_NAME_ARRAY; -extern DLLSPEC daeString COLLADA_TYPE_BOOL_ARRAY; -extern DLLSPEC daeString COLLADA_TYPE_FLOAT_ARRAY; -extern DLLSPEC daeString COLLADA_TYPE_INT_ARRAY; -extern DLLSPEC daeString COLLADA_TYPE_ACCESSOR; -extern DLLSPEC daeString COLLADA_TYPE_TECHNIQUE_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_GEOMETRY; -extern DLLSPEC daeString COLLADA_TYPE_MESH; -extern DLLSPEC daeString COLLADA_TYPE_SPLINE; -extern DLLSPEC daeString COLLADA_TYPE_CONTROL_VERTICES; -extern DLLSPEC daeString COLLADA_TYPE_P; -extern DLLSPEC daeString COLLADA_TYPE_LINES; -extern DLLSPEC daeString COLLADA_TYPE_LINESTRIPS; -extern DLLSPEC daeString COLLADA_TYPE_POLYGONS; -extern DLLSPEC daeString COLLADA_TYPE_PH; -extern DLLSPEC daeString COLLADA_TYPE_H; -extern DLLSPEC daeString COLLADA_TYPE_POLYLIST; -extern DLLSPEC daeString COLLADA_TYPE_VCOUNT; -extern DLLSPEC daeString COLLADA_TYPE_TRIANGLES; -extern DLLSPEC daeString COLLADA_TYPE_TRIFANS; -extern DLLSPEC daeString COLLADA_TYPE_TRISTRIPS; -extern DLLSPEC daeString COLLADA_TYPE_VERTICES; -extern DLLSPEC daeString COLLADA_TYPE_LOOKAT; -extern DLLSPEC daeString COLLADA_TYPE_MATRIX; -extern DLLSPEC daeString COLLADA_TYPE_ROTATE; -extern DLLSPEC daeString COLLADA_TYPE_SCALE; -extern DLLSPEC daeString COLLADA_TYPE_SKEW; -extern DLLSPEC daeString COLLADA_TYPE_TRANSLATE; -extern DLLSPEC daeString COLLADA_TYPE_IMAGE; -extern DLLSPEC daeString COLLADA_TYPE_DATA; -extern DLLSPEC daeString COLLADA_TYPE_INIT_FROM; -extern DLLSPEC daeString COLLADA_TYPE_LIGHT; -extern DLLSPEC daeString COLLADA_TYPE_AMBIENT; -extern DLLSPEC daeString COLLADA_TYPE_DIRECTIONAL; -extern DLLSPEC daeString COLLADA_TYPE_POINT; -extern DLLSPEC daeString COLLADA_TYPE_SPOT; -extern DLLSPEC daeString COLLADA_TYPE_MATERIAL; -extern DLLSPEC daeString COLLADA_TYPE_CAMERA; -extern DLLSPEC daeString COLLADA_TYPE_OPTICS; -extern DLLSPEC daeString COLLADA_TYPE_ORTHOGRAPHIC; -extern DLLSPEC daeString COLLADA_TYPE_PERSPECTIVE; -extern DLLSPEC daeString COLLADA_TYPE_IMAGER; -extern DLLSPEC daeString COLLADA_TYPE_ANIMATION; -extern DLLSPEC daeString COLLADA_TYPE_ANIMATION_CLIP; -extern DLLSPEC daeString COLLADA_TYPE_CHANNEL; -extern DLLSPEC daeString COLLADA_TYPE_SAMPLER; -extern DLLSPEC daeString COLLADA_TYPE_CONTROLLER; -extern DLLSPEC daeString COLLADA_TYPE_SKIN; -extern DLLSPEC daeString COLLADA_TYPE_BIND_SHAPE_MATRIX; -extern DLLSPEC daeString COLLADA_TYPE_JOINTS; -extern DLLSPEC daeString COLLADA_TYPE_VERTEX_WEIGHTS; -extern DLLSPEC daeString COLLADA_TYPE_V; -extern DLLSPEC daeString COLLADA_TYPE_MORPH; -extern DLLSPEC daeString COLLADA_TYPE_TARGETS; -extern DLLSPEC daeString COLLADA_TYPE_ASSET; -extern DLLSPEC daeString COLLADA_TYPE_CONTRIBUTOR; -extern DLLSPEC daeString COLLADA_TYPE_AUTHOR; -extern DLLSPEC daeString COLLADA_TYPE_AUTHORING_TOOL; -extern DLLSPEC daeString COLLADA_TYPE_COMMENTS; -extern DLLSPEC daeString COLLADA_TYPE_COPYRIGHT; -extern DLLSPEC daeString COLLADA_TYPE_SOURCE_DATA; -extern DLLSPEC daeString COLLADA_TYPE_CREATED; -extern DLLSPEC daeString COLLADA_TYPE_KEYWORDS; -extern DLLSPEC daeString COLLADA_TYPE_MODIFIED; -extern DLLSPEC daeString COLLADA_TYPE_REVISION; -extern DLLSPEC daeString COLLADA_TYPE_SUBJECT; -extern DLLSPEC daeString COLLADA_TYPE_TITLE; -extern DLLSPEC daeString COLLADA_TYPE_UNIT; -extern DLLSPEC daeString COLLADA_TYPE_UP_AXIS; -extern DLLSPEC daeString COLLADA_TYPE_EXTRA; -extern DLLSPEC daeString COLLADA_TYPE_TECHNIQUE; -extern DLLSPEC daeString COLLADA_TYPE_NODE; -extern DLLSPEC daeString COLLADA_TYPE_VISUAL_SCENE; -extern DLLSPEC daeString COLLADA_TYPE_EVALUATE_SCENE; -extern DLLSPEC daeString COLLADA_TYPE_RENDER; -extern DLLSPEC daeString COLLADA_TYPE_LAYER; -extern DLLSPEC daeString COLLADA_TYPE_BIND_MATERIAL; -extern DLLSPEC daeString COLLADA_TYPE_INSTANCE_CAMERA; -extern DLLSPEC daeString COLLADA_TYPE_INSTANCE_CONTROLLER; -extern DLLSPEC daeString COLLADA_TYPE_SKELETON; -extern DLLSPEC daeString COLLADA_TYPE_INSTANCE_EFFECT; -extern DLLSPEC daeString COLLADA_TYPE_TECHNIQUE_HINT; -extern DLLSPEC daeString COLLADA_TYPE_SETPARAM; -extern DLLSPEC daeString COLLADA_TYPE_INSTANCE_FORCE_FIELD; -extern DLLSPEC daeString COLLADA_TYPE_INSTANCE_GEOMETRY; -extern DLLSPEC daeString COLLADA_TYPE_INSTANCE_LIGHT; -extern DLLSPEC daeString COLLADA_TYPE_INSTANCE_MATERIAL; -extern DLLSPEC daeString COLLADA_TYPE_BIND; -extern DLLSPEC daeString COLLADA_TYPE_BIND_VERTEX_INPUT; -extern DLLSPEC daeString COLLADA_TYPE_INSTANCE_NODE; -extern DLLSPEC daeString COLLADA_TYPE_INSTANCE_PHYSICS_MATERIAL; -extern DLLSPEC daeString COLLADA_TYPE_INSTANCE_PHYSICS_MODEL; -extern DLLSPEC daeString COLLADA_TYPE_INSTANCE_RIGID_BODY; -extern DLLSPEC daeString COLLADA_TYPE_ANGULAR_VELOCITY; -extern DLLSPEC daeString COLLADA_TYPE_VELOCITY; -extern DLLSPEC daeString COLLADA_TYPE_DYNAMIC; -extern DLLSPEC daeString COLLADA_TYPE_MASS_FRAME; -extern DLLSPEC daeString COLLADA_TYPE_SHAPE; -extern DLLSPEC daeString COLLADA_TYPE_HOLLOW; -extern DLLSPEC daeString COLLADA_TYPE_INSTANCE_RIGID_CONSTRAINT; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_ANIMATIONS; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_ANIMATION_CLIPS; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_CAMERAS; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_CONTROLLERS; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_GEOMETRIES; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_EFFECTS; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_FORCE_FIELDS; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_IMAGES; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_LIGHTS; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_MATERIALS; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_NODES; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_PHYSICS_MATERIALS; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_PHYSICS_MODELS; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_PHYSICS_SCENES; -extern DLLSPEC daeString COLLADA_TYPE_LIBRARY_VISUAL_SCENES; -extern DLLSPEC daeString COLLADA_TYPE_FX_PROFILE_ABSTRACT; -extern DLLSPEC daeString COLLADA_TYPE_EFFECT; -extern DLLSPEC daeString COLLADA_TYPE_GL_HOOK_ABSTRACT; -extern DLLSPEC daeString COLLADA_TYPE_PROFILE_GLSL; -extern DLLSPEC daeString COLLADA_TYPE_PASS; -extern DLLSPEC daeString COLLADA_TYPE_DRAW; -extern DLLSPEC daeString COLLADA_TYPE_SHADER; -extern DLLSPEC daeString COLLADA_TYPE_COMPILER_TARGET; -extern DLLSPEC daeString COLLADA_TYPE_COMPILER_OPTIONS; -extern DLLSPEC daeString COLLADA_TYPE_PROFILE_COMMON; -extern DLLSPEC daeString COLLADA_TYPE_CONSTANT; -extern DLLSPEC daeString COLLADA_TYPE_LAMBERT; -extern DLLSPEC daeString COLLADA_TYPE_PHONG; -extern DLLSPEC daeString COLLADA_TYPE_BLINN; -extern DLLSPEC daeString COLLADA_TYPE_PROFILE_CG; -extern DLLSPEC daeString COLLADA_TYPE_PROFILE_GLES; -extern DLLSPEC daeString COLLADA_TYPE_COLOR_TARGET; -extern DLLSPEC daeString COLLADA_TYPE_DEPTH_TARGET; -extern DLLSPEC daeString COLLADA_TYPE_STENCIL_TARGET; -extern DLLSPEC daeString COLLADA_TYPE_COLOR_CLEAR; -extern DLLSPEC daeString COLLADA_TYPE_DEPTH_CLEAR; -extern DLLSPEC daeString COLLADA_TYPE_STENCIL_CLEAR; -extern DLLSPEC daeString COLLADA_TYPE_BOX; -extern DLLSPEC daeString COLLADA_TYPE_HALF_EXTENTS; -extern DLLSPEC daeString COLLADA_TYPE_PLANE; -extern DLLSPEC daeString COLLADA_TYPE_EQUATION; -extern DLLSPEC daeString COLLADA_TYPE_SPHERE; -extern DLLSPEC daeString COLLADA_TYPE_RADIUS; -extern DLLSPEC daeString COLLADA_TYPE_ELLIPSOID; -extern DLLSPEC daeString COLLADA_TYPE_CYLINDER; -extern DLLSPEC daeString COLLADA_TYPE_HEIGHT; -extern DLLSPEC daeString COLLADA_TYPE_TAPERED_CYLINDER; -extern DLLSPEC daeString COLLADA_TYPE_RADIUS1; -extern DLLSPEC daeString COLLADA_TYPE_RADIUS2; -extern DLLSPEC daeString COLLADA_TYPE_CAPSULE; -extern DLLSPEC daeString COLLADA_TYPE_TAPERED_CAPSULE; -extern DLLSPEC daeString COLLADA_TYPE_CONVEX_MESH; -extern DLLSPEC daeString COLLADA_TYPE_FORCE_FIELD; -extern DLLSPEC daeString COLLADA_TYPE_PHYSICS_MATERIAL; -extern DLLSPEC daeString COLLADA_TYPE_PHYSICS_SCENE; -extern DLLSPEC daeString COLLADA_TYPE_RIGID_BODY; -extern DLLSPEC daeString COLLADA_TYPE_RIGID_CONSTRAINT; -extern DLLSPEC daeString COLLADA_TYPE_REF_ATTACHMENT; -extern DLLSPEC daeString COLLADA_TYPE_ATTACHMENT; -extern DLLSPEC daeString COLLADA_TYPE_ENABLED; -extern DLLSPEC daeString COLLADA_TYPE_INTERPENETRATE; -extern DLLSPEC daeString COLLADA_TYPE_LIMITS; -extern DLLSPEC daeString COLLADA_TYPE_SWING_CONE_AND_TWIST; -extern DLLSPEC daeString COLLADA_TYPE_LINEAR; -extern DLLSPEC daeString COLLADA_TYPE_SPRING; -extern DLLSPEC daeString COLLADA_TYPE_ANGULAR; -extern DLLSPEC daeString COLLADA_TYPE_PHYSICS_MODEL; - -extern DLLSPEC daeString COLLADA_ELEMENT_COLLADA; -extern DLLSPEC daeString COLLADA_ELEMENT_EXTRA; -extern DLLSPEC daeString COLLADA_ELEMENT_CHANNELS; -extern DLLSPEC daeString COLLADA_ELEMENT_RANGE; -extern DLLSPEC daeString COLLADA_ELEMENT_PRECISION; -extern DLLSPEC daeString COLLADA_ELEMENT_OPTION; -extern DLLSPEC daeString COLLADA_ELEMENT_ALL; -extern DLLSPEC daeString COLLADA_ELEMENT_PRIMARY; -extern DLLSPEC daeString COLLADA_ELEMENT_FACE; -extern DLLSPEC daeString COLLADA_ELEMENT_ORDER; -extern DLLSPEC daeString COLLADA_ELEMENT_FX_SURFACE_INIT_COMMON; -extern DLLSPEC daeString COLLADA_ELEMENT_FORMAT; -extern DLLSPEC daeString COLLADA_ELEMENT_FORMAT_HINT; -extern DLLSPEC daeString COLLADA_ELEMENT_SIZE; -extern DLLSPEC daeString COLLADA_ELEMENT_VIEWPORT_RATIO; -extern DLLSPEC daeString COLLADA_ELEMENT_MIP_LEVELS; -extern DLLSPEC daeString COLLADA_ELEMENT_MIPMAP_GENERATE; -extern DLLSPEC daeString COLLADA_ELEMENT_SOURCE; -extern DLLSPEC daeString COLLADA_ELEMENT_WRAP_S; -extern DLLSPEC daeString COLLADA_ELEMENT_MINFILTER; -extern DLLSPEC daeString COLLADA_ELEMENT_MAGFILTER; -extern DLLSPEC daeString COLLADA_ELEMENT_MIPFILTER; -extern DLLSPEC daeString COLLADA_ELEMENT_BORDER_COLOR; -extern DLLSPEC daeString COLLADA_ELEMENT_MIPMAP_MAXLEVEL; -extern DLLSPEC daeString COLLADA_ELEMENT_MIPMAP_BIAS; -extern DLLSPEC daeString COLLADA_ELEMENT_WRAP_T; -extern DLLSPEC daeString COLLADA_ELEMENT_WRAP_P; -extern DLLSPEC daeString COLLADA_ELEMENT_FX_ANNOTATE_TYPE_COMMON; -extern DLLSPEC daeString COLLADA_ELEMENT_ANNOTATE; -extern DLLSPEC daeString COLLADA_ELEMENT_SEMANTIC; -extern DLLSPEC daeString COLLADA_ELEMENT_MODIFIER; -extern DLLSPEC daeString COLLADA_ELEMENT_FX_BASIC_TYPE_COMMON; -extern DLLSPEC daeString COLLADA_ELEMENT_GLSL_PARAM_TYPE; -extern DLLSPEC daeString COLLADA_ELEMENT_ARRAY; -extern DLLSPEC daeString COLLADA_ELEMENT_GENERATOR; -extern DLLSPEC daeString COLLADA_ELEMENT_CODE; -extern DLLSPEC daeString COLLADA_ELEMENT_INCLUDE; -extern DLLSPEC daeString COLLADA_ELEMENT_NAME; -extern DLLSPEC daeString COLLADA_ELEMENT_SETPARAM; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT; -extern DLLSPEC daeString COLLADA_ELEMENT_PARAM; -extern DLLSPEC daeString COLLADA_ELEMENT_COLOR; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURE; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT2; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT3; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT4; -extern DLLSPEC daeString COLLADA_ELEMENT_SURFACE; -extern DLLSPEC daeString COLLADA_ELEMENT_SAMPLER2D; -extern DLLSPEC daeString COLLADA_ELEMENT_CG_PARAM_TYPE; -extern DLLSPEC daeString COLLADA_ELEMENT_USERTYPE; -extern DLLSPEC daeString COLLADA_ELEMENT_CONNECT_PARAM; -extern DLLSPEC daeString COLLADA_ELEMENT_CONSTANT; -extern DLLSPEC daeString COLLADA_ELEMENT_ARGUMENT; -extern DLLSPEC daeString COLLADA_ELEMENT_rgb; -extern DLLSPEC daeString COLLADA_ELEMENT_ALPHA; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXCOMBINER; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXENV; -extern DLLSPEC daeString COLLADA_ELEMENT_SAMPLER_STATE; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXCOORD; -extern DLLSPEC daeString COLLADA_ELEMENT_GLES_BASIC_TYPE_COMMON; -extern DLLSPEC daeString COLLADA_ELEMENT_INIT_AS_NULL; -extern DLLSPEC daeString COLLADA_ELEMENT_INIT_AS_TARGET; -extern DLLSPEC daeString COLLADA_ELEMENT_INIT_CUBE; -extern DLLSPEC daeString COLLADA_ELEMENT_INIT_VOLUME; -extern DLLSPEC daeString COLLADA_ELEMENT_INIT_PLANAR; -extern DLLSPEC daeString COLLADA_ELEMENT_INIT_FROM; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL2; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL3; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL4; -extern DLLSPEC daeString COLLADA_ELEMENT_INT; -extern DLLSPEC daeString COLLADA_ELEMENT_INT2; -extern DLLSPEC daeString COLLADA_ELEMENT_INT3; -extern DLLSPEC daeString COLLADA_ELEMENT_INT4; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT2X2; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT3X3; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT4X4; -extern DLLSPEC daeString COLLADA_ELEMENT_STRING; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT1X1; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT1X2; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT1X3; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT1X4; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT2X1; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT2X3; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT2X4; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT3X1; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT3X2; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT3X4; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT4X1; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT4X2; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT4X3; -extern DLLSPEC daeString COLLADA_ELEMENT_SAMPLER1D; -extern DLLSPEC daeString COLLADA_ELEMENT_SAMPLER3D; -extern DLLSPEC daeString COLLADA_ELEMENT_SAMPLERCUBE; -extern DLLSPEC daeString COLLADA_ELEMENT_SAMPLERRECT; -extern DLLSPEC daeString COLLADA_ELEMENT_SAMPLERDEPTH; -extern DLLSPEC daeString COLLADA_ELEMENT_ENUM; -extern DLLSPEC daeString COLLADA_ELEMENT_ALPHA_FUNC; -extern DLLSPEC daeString COLLADA_ELEMENT_BLEND_FUNC; -extern DLLSPEC daeString COLLADA_ELEMENT_BLEND_FUNC_SEPARATE; -extern DLLSPEC daeString COLLADA_ELEMENT_BLEND_EQUATION; -extern DLLSPEC daeString COLLADA_ELEMENT_BLEND_EQUATION_SEPARATE; -extern DLLSPEC daeString COLLADA_ELEMENT_COLOR_MATERIAL; -extern DLLSPEC daeString COLLADA_ELEMENT_CULL_FACE; -extern DLLSPEC daeString COLLADA_ELEMENT_DEPTH_FUNC; -extern DLLSPEC daeString COLLADA_ELEMENT_FOG_MODE; -extern DLLSPEC daeString COLLADA_ELEMENT_FOG_COORD_SRC; -extern DLLSPEC daeString COLLADA_ELEMENT_FRONT_FACE; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_MODEL_COLOR_CONTROL; -extern DLLSPEC daeString COLLADA_ELEMENT_LOGIC_OP; -extern DLLSPEC daeString COLLADA_ELEMENT_POLYGON_MODE; -extern DLLSPEC daeString COLLADA_ELEMENT_SHADE_MODEL; -extern DLLSPEC daeString COLLADA_ELEMENT_STENCIL_FUNC; -extern DLLSPEC daeString COLLADA_ELEMENT_STENCIL_OP; -extern DLLSPEC daeString COLLADA_ELEMENT_STENCIL_FUNC_SEPARATE; -extern DLLSPEC daeString COLLADA_ELEMENT_STENCIL_OP_SEPARATE; -extern DLLSPEC daeString COLLADA_ELEMENT_STENCIL_MASK_SEPARATE; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_AMBIENT; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_DIFFUSE; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_SPECULAR; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_POSITION; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_CONSTANT_ATTENUATION; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_LINEAR_ATTENUATION; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_QUADRATIC_ATTENUATION; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_SPOT_CUTOFF; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_SPOT_DIRECTION; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_SPOT_EXPONENT; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURE1D; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURE2D; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURE3D; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURECUBE; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURERECT; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTUREDEPTH; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURE1D_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURE2D_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURE3D_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURECUBE_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURERECT_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTUREDEPTH_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURE_ENV_COLOR; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURE_ENV_MODE; -extern DLLSPEC daeString COLLADA_ELEMENT_CLIP_PLANE; -extern DLLSPEC daeString COLLADA_ELEMENT_CLIP_PLANE_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_BLEND_COLOR; -extern DLLSPEC daeString COLLADA_ELEMENT_CLEAR_COLOR; -extern DLLSPEC daeString COLLADA_ELEMENT_CLEAR_STENCIL; -extern DLLSPEC daeString COLLADA_ELEMENT_CLEAR_DEPTH; -extern DLLSPEC daeString COLLADA_ELEMENT_COLOR_MASK; -extern DLLSPEC daeString COLLADA_ELEMENT_DEPTH_BOUNDS; -extern DLLSPEC daeString COLLADA_ELEMENT_DEPTH_MASK; -extern DLLSPEC daeString COLLADA_ELEMENT_DEPTH_RANGE; -extern DLLSPEC daeString COLLADA_ELEMENT_FOG_DENSITY; -extern DLLSPEC daeString COLLADA_ELEMENT_FOG_START; -extern DLLSPEC daeString COLLADA_ELEMENT_FOG_END; -extern DLLSPEC daeString COLLADA_ELEMENT_FOG_COLOR; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_MODEL_AMBIENT; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHTING_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_LINE_STIPPLE; -extern DLLSPEC daeString COLLADA_ELEMENT_LINE_WIDTH; -extern DLLSPEC daeString COLLADA_ELEMENT_MATERIAL_AMBIENT; -extern DLLSPEC daeString COLLADA_ELEMENT_MATERIAL_DIFFUSE; -extern DLLSPEC daeString COLLADA_ELEMENT_MATERIAL_EMISSION; -extern DLLSPEC daeString COLLADA_ELEMENT_MATERIAL_SHININESS; -extern DLLSPEC daeString COLLADA_ELEMENT_MATERIAL_SPECULAR; -extern DLLSPEC daeString COLLADA_ELEMENT_MODEL_VIEW_MATRIX; -extern DLLSPEC daeString COLLADA_ELEMENT_POINT_DISTANCE_ATTENUATION; -extern DLLSPEC daeString COLLADA_ELEMENT_POINT_FADE_THRESHOLD_SIZE; -extern DLLSPEC daeString COLLADA_ELEMENT_POINT_SIZE; -extern DLLSPEC daeString COLLADA_ELEMENT_POINT_SIZE_MIN; -extern DLLSPEC daeString COLLADA_ELEMENT_POINT_SIZE_MAX; -extern DLLSPEC daeString COLLADA_ELEMENT_POLYGON_OFFSET; -extern DLLSPEC daeString COLLADA_ELEMENT_PROJECTION_MATRIX; -extern DLLSPEC daeString COLLADA_ELEMENT_SCISSOR; -extern DLLSPEC daeString COLLADA_ELEMENT_STENCIL_MASK; -extern DLLSPEC daeString COLLADA_ELEMENT_ALPHA_TEST_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_AUTO_NORMAL_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_BLEND_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_COLOR_LOGIC_OP_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_COLOR_MATERIAL_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_CULL_FACE_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_DEPTH_BOUNDS_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_DEPTH_CLAMP_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_DEPTH_TEST_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_DITHER_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_FOG_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_MODEL_LOCAL_VIEWER_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_MODEL_TWO_SIDE_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_LINE_SMOOTH_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_LINE_STIPPLE_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_LOGIC_OP_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_MULTISAMPLE_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_NORMALIZE_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_POINT_SMOOTH_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_POLYGON_OFFSET_FILL_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_POLYGON_OFFSET_LINE_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_POLYGON_OFFSET_POINT_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_POLYGON_SMOOTH_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_POLYGON_STIPPLE_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_RESCALE_NORMAL_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_SAMPLE_ALPHA_TO_COVERAGE_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_SAMPLE_ALPHA_TO_ONE_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_SAMPLE_COVERAGE_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_SCISSOR_TEST_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_STENCIL_TEST_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_GL_HOOK_ABSTRACT; -extern DLLSPEC daeString COLLADA_ELEMENT_FUNC; -extern DLLSPEC daeString COLLADA_ELEMENT_VALUE; -extern DLLSPEC daeString COLLADA_ELEMENT_SRC; -extern DLLSPEC daeString COLLADA_ELEMENT_DEST; -extern DLLSPEC daeString COLLADA_ELEMENT_SRC_RGB; -extern DLLSPEC daeString COLLADA_ELEMENT_DEST_RGB; -extern DLLSPEC daeString COLLADA_ELEMENT_SRC_ALPHA; -extern DLLSPEC daeString COLLADA_ELEMENT_DEST_ALPHA; -extern DLLSPEC daeString COLLADA_ELEMENT_RGB; -extern DLLSPEC daeString COLLADA_ELEMENT_MODE; -extern DLLSPEC daeString COLLADA_ELEMENT_REF; -extern DLLSPEC daeString COLLADA_ELEMENT_MASK; -extern DLLSPEC daeString COLLADA_ELEMENT_FAIL; -extern DLLSPEC daeString COLLADA_ELEMENT_ZFAIL; -extern DLLSPEC daeString COLLADA_ELEMENT_ZPASS; -extern DLLSPEC daeString COLLADA_ELEMENT_FRONT; -extern DLLSPEC daeString COLLADA_ELEMENT_BACK; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL1; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL1X1; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL1X2; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL1X3; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL1X4; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL2X1; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL2X2; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL2X3; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL2X4; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL3X1; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL3X2; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL3X3; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL3X4; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL4X1; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL4X2; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL4X3; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL4X4; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT1; -extern DLLSPEC daeString COLLADA_ELEMENT_INT1; -extern DLLSPEC daeString COLLADA_ELEMENT_INT1X1; -extern DLLSPEC daeString COLLADA_ELEMENT_INT1X2; -extern DLLSPEC daeString COLLADA_ELEMENT_INT1X3; -extern DLLSPEC daeString COLLADA_ELEMENT_INT1X4; -extern DLLSPEC daeString COLLADA_ELEMENT_INT2X1; -extern DLLSPEC daeString COLLADA_ELEMENT_INT2X2; -extern DLLSPEC daeString COLLADA_ELEMENT_INT2X3; -extern DLLSPEC daeString COLLADA_ELEMENT_INT2X4; -extern DLLSPEC daeString COLLADA_ELEMENT_INT3X1; -extern DLLSPEC daeString COLLADA_ELEMENT_INT3X2; -extern DLLSPEC daeString COLLADA_ELEMENT_INT3X3; -extern DLLSPEC daeString COLLADA_ELEMENT_INT3X4; -extern DLLSPEC daeString COLLADA_ELEMENT_INT4X1; -extern DLLSPEC daeString COLLADA_ELEMENT_INT4X2; -extern DLLSPEC daeString COLLADA_ELEMENT_INT4X3; -extern DLLSPEC daeString COLLADA_ELEMENT_INT4X4; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF1; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF2; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF3; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF4; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF1X1; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF1X2; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF1X3; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF1X4; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF2X1; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF2X2; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF2X3; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF2X4; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF3X1; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF3X2; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF3X3; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF3X4; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF4X1; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF4X2; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF4X3; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF4X4; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED1; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED2; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED3; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED4; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED1X1; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED1X2; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED1X3; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED1X4; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED2X1; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED2X2; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED2X3; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED2X4; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED3X1; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED3X2; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED3X3; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED3X4; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED4X1; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED4X2; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED4X3; -extern DLLSPEC daeString COLLADA_ELEMENT_FIXED4X4; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURE_PIPELINE; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT_LINEAR_ATTENUTATION; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURE_PIPELINE_ENABLE; -extern DLLSPEC daeString COLLADA_ELEMENT_TEXTURE_UNIT; -extern DLLSPEC daeString COLLADA_ELEMENT_ASSET; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_ANIMATIONS; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_ANIMATION_CLIPS; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_CAMERAS; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_CONTROLLERS; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_GEOMETRIES; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_EFFECTS; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_FORCE_FIELDS; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_IMAGES; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_LIGHTS; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_MATERIALS; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_NODES; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_PHYSICS_MATERIALS; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_PHYSICS_MODELS; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_PHYSICS_SCENES; -extern DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_VISUAL_SCENES; -extern DLLSPEC daeString COLLADA_ELEMENT_SCENE; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_PHYSICS_SCENE; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_VISUAL_SCENE; -extern DLLSPEC daeString COLLADA_ELEMENT_IDREF_ARRAY; -extern DLLSPEC daeString COLLADA_ELEMENT_NAME_ARRAY; -extern DLLSPEC daeString COLLADA_ELEMENT_BOOL_ARRAY; -extern DLLSPEC daeString COLLADA_ELEMENT_FLOAT_ARRAY; -extern DLLSPEC daeString COLLADA_ELEMENT_INT_ARRAY; -extern DLLSPEC daeString COLLADA_ELEMENT_TECHNIQUE_COMMON; -extern DLLSPEC daeString COLLADA_ELEMENT_TECHNIQUE; -extern DLLSPEC daeString COLLADA_ELEMENT_ACCESSOR; -extern DLLSPEC daeString COLLADA_ELEMENT_CONVEX_MESH; -extern DLLSPEC daeString COLLADA_ELEMENT_MESH; -extern DLLSPEC daeString COLLADA_ELEMENT_SPLINE; -extern DLLSPEC daeString COLLADA_ELEMENT_VERTICES; -extern DLLSPEC daeString COLLADA_ELEMENT_LINES; -extern DLLSPEC daeString COLLADA_ELEMENT_LINESTRIPS; -extern DLLSPEC daeString COLLADA_ELEMENT_POLYGONS; -extern DLLSPEC daeString COLLADA_ELEMENT_POLYLIST; -extern DLLSPEC daeString COLLADA_ELEMENT_TRIANGLES; -extern DLLSPEC daeString COLLADA_ELEMENT_TRIFANS; -extern DLLSPEC daeString COLLADA_ELEMENT_TRISTRIPS; -extern DLLSPEC daeString COLLADA_ELEMENT_CONTROL_VERTICES; -extern DLLSPEC daeString COLLADA_ELEMENT_INPUT; -extern DLLSPEC daeString COLLADA_ELEMENT_P; -extern DLLSPEC daeString COLLADA_ELEMENT_PH; -extern DLLSPEC daeString COLLADA_ELEMENT_H; -extern DLLSPEC daeString COLLADA_ELEMENT_VCOUNT; -extern DLLSPEC daeString COLLADA_ELEMENT_DATA; -extern DLLSPEC daeString COLLADA_ELEMENT_AMBIENT; -extern DLLSPEC daeString COLLADA_ELEMENT_DIRECTIONAL; -extern DLLSPEC daeString COLLADA_ELEMENT_POINT; -extern DLLSPEC daeString COLLADA_ELEMENT_SPOT; -extern DLLSPEC daeString COLLADA_ELEMENT_CONSTANT_ATTENUATION; -extern DLLSPEC daeString COLLADA_ELEMENT_LINEAR_ATTENUATION; -extern DLLSPEC daeString COLLADA_ELEMENT_QUADRATIC_ATTENUATION; -extern DLLSPEC daeString COLLADA_ELEMENT_FALLOFF_ANGLE; -extern DLLSPEC daeString COLLADA_ELEMENT_FALLOFF_EXPONENT; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_EFFECT; -extern DLLSPEC daeString COLLADA_ELEMENT_OPTICS; -extern DLLSPEC daeString COLLADA_ELEMENT_IMAGER; -extern DLLSPEC daeString COLLADA_ELEMENT_ORTHOGRAPHIC; -extern DLLSPEC daeString COLLADA_ELEMENT_PERSPECTIVE; -extern DLLSPEC daeString COLLADA_ELEMENT_XMAG; -extern DLLSPEC daeString COLLADA_ELEMENT_YMAG; -extern DLLSPEC daeString COLLADA_ELEMENT_ASPECT_RATIO; -extern DLLSPEC daeString COLLADA_ELEMENT_ZNEAR; -extern DLLSPEC daeString COLLADA_ELEMENT_ZFAR; -extern DLLSPEC daeString COLLADA_ELEMENT_XFOV; -extern DLLSPEC daeString COLLADA_ELEMENT_YFOV; -extern DLLSPEC daeString COLLADA_ELEMENT_SAMPLER; -extern DLLSPEC daeString COLLADA_ELEMENT_CHANNEL; -extern DLLSPEC daeString COLLADA_ELEMENT_ANIMATION; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_ANIMATION; -extern DLLSPEC daeString COLLADA_ELEMENT_SKIN; -extern DLLSPEC daeString COLLADA_ELEMENT_MORPH; -extern DLLSPEC daeString COLLADA_ELEMENT_BIND_SHAPE_MATRIX; -extern DLLSPEC daeString COLLADA_ELEMENT_JOINTS; -extern DLLSPEC daeString COLLADA_ELEMENT_VERTEX_WEIGHTS; -extern DLLSPEC daeString COLLADA_ELEMENT_V; -extern DLLSPEC daeString COLLADA_ELEMENT_TARGETS; -extern DLLSPEC daeString COLLADA_ELEMENT_CONTRIBUTOR; -extern DLLSPEC daeString COLLADA_ELEMENT_CREATED; -extern DLLSPEC daeString COLLADA_ELEMENT_KEYWORDS; -extern DLLSPEC daeString COLLADA_ELEMENT_MODIFIED; -extern DLLSPEC daeString COLLADA_ELEMENT_REVISION; -extern DLLSPEC daeString COLLADA_ELEMENT_SUBJECT; -extern DLLSPEC daeString COLLADA_ELEMENT_TITLE; -extern DLLSPEC daeString COLLADA_ELEMENT_UNIT; -extern DLLSPEC daeString COLLADA_ELEMENT_UP_AXIS; -extern DLLSPEC daeString COLLADA_ELEMENT_AUTHOR; -extern DLLSPEC daeString COLLADA_ELEMENT_AUTHORING_TOOL; -extern DLLSPEC daeString COLLADA_ELEMENT_COMMENTS; -extern DLLSPEC daeString COLLADA_ELEMENT_COPYRIGHT; -extern DLLSPEC daeString COLLADA_ELEMENT_SOURCE_DATA; -extern DLLSPEC daeString COLLADA_ELEMENT_LOOKAT; -extern DLLSPEC daeString COLLADA_ELEMENT_MATRIX; -extern DLLSPEC daeString COLLADA_ELEMENT_ROTATE; -extern DLLSPEC daeString COLLADA_ELEMENT_SCALE; -extern DLLSPEC daeString COLLADA_ELEMENT_SKEW; -extern DLLSPEC daeString COLLADA_ELEMENT_TRANSLATE; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_CAMERA; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_CONTROLLER; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_GEOMETRY; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_LIGHT; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_NODE; -extern DLLSPEC daeString COLLADA_ELEMENT_NODE; -extern DLLSPEC daeString COLLADA_ELEMENT_EVALUATE_SCENE; -extern DLLSPEC daeString COLLADA_ELEMENT_RENDER; -extern DLLSPEC daeString COLLADA_ELEMENT_LAYER; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_MATERIAL; -extern DLLSPEC daeString COLLADA_ELEMENT_SKELETON; -extern DLLSPEC daeString COLLADA_ELEMENT_BIND_MATERIAL; -extern DLLSPEC daeString COLLADA_ELEMENT_TECHNIQUE_HINT; -extern DLLSPEC daeString COLLADA_ELEMENT_BIND; -extern DLLSPEC daeString COLLADA_ELEMENT_BIND_VERTEX_INPUT; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_FORCE_FIELD; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_RIGID_BODY; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_RIGID_CONSTRAINT; -extern DLLSPEC daeString COLLADA_ELEMENT_ANGULAR_VELOCITY; -extern DLLSPEC daeString COLLADA_ELEMENT_VELOCITY; -extern DLLSPEC daeString COLLADA_ELEMENT_DYNAMIC; -extern DLLSPEC daeString COLLADA_ELEMENT_MASS; -extern DLLSPEC daeString COLLADA_ELEMENT_MASS_FRAME; -extern DLLSPEC daeString COLLADA_ELEMENT_INERTIA; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_PHYSICS_MATERIAL; -extern DLLSPEC daeString COLLADA_ELEMENT_PHYSICS_MATERIAL; -extern DLLSPEC daeString COLLADA_ELEMENT_SHAPE; -extern DLLSPEC daeString COLLADA_ELEMENT_HOLLOW; -extern DLLSPEC daeString COLLADA_ELEMENT_DENSITY; -extern DLLSPEC daeString COLLADA_ELEMENT_PLANE; -extern DLLSPEC daeString COLLADA_ELEMENT_BOX; -extern DLLSPEC daeString COLLADA_ELEMENT_SPHERE; -extern DLLSPEC daeString COLLADA_ELEMENT_CYLINDER; -extern DLLSPEC daeString COLLADA_ELEMENT_TAPERED_CYLINDER; -extern DLLSPEC daeString COLLADA_ELEMENT_CAPSULE; -extern DLLSPEC daeString COLLADA_ELEMENT_TAPERED_CAPSULE; -extern DLLSPEC daeString COLLADA_ELEMENT_ANIMATION_CLIP; -extern DLLSPEC daeString COLLADA_ELEMENT_CAMERA; -extern DLLSPEC daeString COLLADA_ELEMENT_CONTROLLER; -extern DLLSPEC daeString COLLADA_ELEMENT_GEOMETRY; -extern DLLSPEC daeString COLLADA_ELEMENT_EFFECT; -extern DLLSPEC daeString COLLADA_ELEMENT_FORCE_FIELD; -extern DLLSPEC daeString COLLADA_ELEMENT_IMAGE; -extern DLLSPEC daeString COLLADA_ELEMENT_LIGHT; -extern DLLSPEC daeString COLLADA_ELEMENT_MATERIAL; -extern DLLSPEC daeString COLLADA_ELEMENT_PHYSICS_MODEL; -extern DLLSPEC daeString COLLADA_ELEMENT_PHYSICS_SCENE; -extern DLLSPEC daeString COLLADA_ELEMENT_VISUAL_SCENE; -extern DLLSPEC daeString COLLADA_ELEMENT_NEWPARAM; -extern DLLSPEC daeString COLLADA_ELEMENT_FX_PROFILE_ABSTRACT; -extern DLLSPEC daeString COLLADA_ELEMENT_PROFILE_GLSL; -extern DLLSPEC daeString COLLADA_ELEMENT_PASS; -extern DLLSPEC daeString COLLADA_ELEMENT_COLOR_TARGET; -extern DLLSPEC daeString COLLADA_ELEMENT_DEPTH_TARGET; -extern DLLSPEC daeString COLLADA_ELEMENT_STENCIL_TARGET; -extern DLLSPEC daeString COLLADA_ELEMENT_COLOR_CLEAR; -extern DLLSPEC daeString COLLADA_ELEMENT_DEPTH_CLEAR; -extern DLLSPEC daeString COLLADA_ELEMENT_STENCIL_CLEAR; -extern DLLSPEC daeString COLLADA_ELEMENT_DRAW; -extern DLLSPEC daeString COLLADA_ELEMENT_GL_PIPELINE_SETTINGS; -extern DLLSPEC daeString COLLADA_ELEMENT_SHADER; -extern DLLSPEC daeString COLLADA_ELEMENT_COMPILER_TARGET; -extern DLLSPEC daeString COLLADA_ELEMENT_COMPILER_OPTIONS; -extern DLLSPEC daeString COLLADA_ELEMENT_PROFILE_COMMON; -extern DLLSPEC daeString COLLADA_ELEMENT_LAMBERT; -extern DLLSPEC daeString COLLADA_ELEMENT_PHONG; -extern DLLSPEC daeString COLLADA_ELEMENT_BLINN; -extern DLLSPEC daeString COLLADA_ELEMENT_EMISSION; -extern DLLSPEC daeString COLLADA_ELEMENT_REFLECTIVE; -extern DLLSPEC daeString COLLADA_ELEMENT_REFLECTIVITY; -extern DLLSPEC daeString COLLADA_ELEMENT_TRANSPARENT; -extern DLLSPEC daeString COLLADA_ELEMENT_TRANSPARENCY; -extern DLLSPEC daeString COLLADA_ELEMENT_INDEX_OF_REFRACTION; -extern DLLSPEC daeString COLLADA_ELEMENT_DIFFUSE; -extern DLLSPEC daeString COLLADA_ELEMENT_SPECULAR; -extern DLLSPEC daeString COLLADA_ELEMENT_SHININESS; -extern DLLSPEC daeString COLLADA_ELEMENT_PROFILE_CG; -extern DLLSPEC daeString COLLADA_ELEMENT_PROFILE_GLES; -extern DLLSPEC daeString COLLADA_ELEMENT_GLES_PIPELINE_SETTINGS; -extern DLLSPEC daeString COLLADA_ELEMENT_HALF_EXTENTS; -extern DLLSPEC daeString COLLADA_ELEMENT_EQUATION; -extern DLLSPEC daeString COLLADA_ELEMENT_RADIUS; -extern DLLSPEC daeString COLLADA_ELEMENT_HEIGHT; -extern DLLSPEC daeString COLLADA_ELEMENT_RADIUS1; -extern DLLSPEC daeString COLLADA_ELEMENT_RADIUS2; -extern DLLSPEC daeString COLLADA_ELEMENT_DYNAMIC_FRICTION; -extern DLLSPEC daeString COLLADA_ELEMENT_RESTITUTION; -extern DLLSPEC daeString COLLADA_ELEMENT_STATIC_FRICTION; -extern DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_PHYSICS_MODEL; -extern DLLSPEC daeString COLLADA_ELEMENT_GRAVITY; -extern DLLSPEC daeString COLLADA_ELEMENT_TIME_STEP; -extern DLLSPEC daeString COLLADA_ELEMENT_REF_ATTACHMENT; -extern DLLSPEC daeString COLLADA_ELEMENT_ATTACHMENT; -extern DLLSPEC daeString COLLADA_ELEMENT_ENABLED; -extern DLLSPEC daeString COLLADA_ELEMENT_INTERPENETRATE; -extern DLLSPEC daeString COLLADA_ELEMENT_LIMITS; -extern DLLSPEC daeString COLLADA_ELEMENT_SPRING; -extern DLLSPEC daeString COLLADA_ELEMENT_SWING_CONE_AND_TWIST; -extern DLLSPEC daeString COLLADA_ELEMENT_LINEAR; -extern DLLSPEC daeString COLLADA_ELEMENT_MIN; -extern DLLSPEC daeString COLLADA_ELEMENT_MAX; -extern DLLSPEC daeString COLLADA_ELEMENT_ANGULAR; -extern DLLSPEC daeString COLLADA_ELEMENT_STIFFNESS; -extern DLLSPEC daeString COLLADA_ELEMENT_DAMPING; -extern DLLSPEC daeString COLLADA_ELEMENT_TARGET_VALUE; -extern DLLSPEC daeString COLLADA_ELEMENT_RIGID_BODY; -extern DLLSPEC daeString COLLADA_ELEMENT_RIGID_CONSTRAINT; - -#endif //__DOM_CONSTANTS_H__ - diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domController.h b/Extras/COLLADA_DOM/include/1.4/dom/domController.h deleted file mode 100644 index 6a453c3a3..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domController.h +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domController_h__ -#define __domController_h__ - -#include -#include - -#include -#include -#include -#include - -/** - * The controller element categorizes the declaration of generic control information. - * A controller is a device or mechanism that manages and directs the operations - * of another object. - */ -class domController : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CONTROLLER; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The controller element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The controller element may contain either a skin element or a morph element. - * @see domSkin - */ - domSkinRef elemSkin; -/** - * The controller element may contain either a skin element or a morph element. - * @see domMorph - */ - domMorphRef elemMorph; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the skin element. - * @return a daeSmartRef to the skin element. - */ - const domSkinRef getSkin() const { return elemSkin; } - /** - * Gets the morph element. - * @return a daeSmartRef to the morph element. - */ - const domMorphRef getMorph() const { return elemMorph; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domController() : attrId(), attrName(), elemAsset(), elemSkin(), elemMorph(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domController() {} - /** - * Copy Constructor - */ - domController( const domController &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domController &operator=( const domController &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domConvex_mesh.h b/Extras/COLLADA_DOM/include/1.4/dom/domConvex_mesh.h deleted file mode 100644 index 06b85b458..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domConvex_mesh.h +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domConvex_mesh_h__ -#define __domConvex_mesh_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/** - * The definition of the convex_mesh element is identical to the mesh element - * with the exception that instead of a complete description (source, vertices, - * polygons etc.), it may simply point to another geometry to derive its - * shape. The latter case means that the convex hull of that geometry should - * be computed and is indicated by the optional “convex_hull_of†attribute. - */ -class domConvex_mesh : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CONVEX_MESH; } -protected: // Attribute -/** - * The convex_hull_of attribute is a URI string of geometry to compute the - * convex hull of. Optional attribute. - */ - xsAnyURI attrConvex_hull_of; - -protected: // Elements - domSource_Array elemSource_array; - domVerticesRef elemVertices; - domLines_Array elemLines_array; - domLinestrips_Array elemLinestrips_array; - domPolygons_Array elemPolygons_array; - domPolylist_Array elemPolylist_array; - domTriangles_Array elemTriangles_array; - domTrifans_Array elemTrifans_array; - domTristrips_Array elemTristrips_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the convex_hull_of attribute. - * @return Returns a xsAnyURI reference of the convex_hull_of attribute. - */ - xsAnyURI &getConvex_hull_of() { return attrConvex_hull_of; } - /** - * Gets the convex_hull_of attribute. - * @return Returns a constant xsAnyURI reference of the convex_hull_of attribute. - */ - const xsAnyURI &getConvex_hull_of() const { return attrConvex_hull_of; } - /** - * Sets the convex_hull_of attribute. - * @param atConvex_hull_of The new value for the convex_hull_of attribute. - */ - void setConvex_hull_of( const xsAnyURI &atConvex_hull_of ) { attrConvex_hull_of = atConvex_hull_of; - _validAttributeArray[0] = true; } - - /** - * Gets the source element array. - * @return Returns a reference to the array of source elements. - */ - domSource_Array &getSource_array() { return elemSource_array; } - /** - * Gets the source element array. - * @return Returns a constant reference to the array of source elements. - */ - const domSource_Array &getSource_array() const { return elemSource_array; } - /** - * Gets the vertices element. - * @return a daeSmartRef to the vertices element. - */ - const domVerticesRef getVertices() const { return elemVertices; } - /** - * Gets the lines element array. - * @return Returns a reference to the array of lines elements. - */ - domLines_Array &getLines_array() { return elemLines_array; } - /** - * Gets the lines element array. - * @return Returns a constant reference to the array of lines elements. - */ - const domLines_Array &getLines_array() const { return elemLines_array; } - /** - * Gets the linestrips element array. - * @return Returns a reference to the array of linestrips elements. - */ - domLinestrips_Array &getLinestrips_array() { return elemLinestrips_array; } - /** - * Gets the linestrips element array. - * @return Returns a constant reference to the array of linestrips elements. - */ - const domLinestrips_Array &getLinestrips_array() const { return elemLinestrips_array; } - /** - * Gets the polygons element array. - * @return Returns a reference to the array of polygons elements. - */ - domPolygons_Array &getPolygons_array() { return elemPolygons_array; } - /** - * Gets the polygons element array. - * @return Returns a constant reference to the array of polygons elements. - */ - const domPolygons_Array &getPolygons_array() const { return elemPolygons_array; } - /** - * Gets the polylist element array. - * @return Returns a reference to the array of polylist elements. - */ - domPolylist_Array &getPolylist_array() { return elemPolylist_array; } - /** - * Gets the polylist element array. - * @return Returns a constant reference to the array of polylist elements. - */ - const domPolylist_Array &getPolylist_array() const { return elemPolylist_array; } - /** - * Gets the triangles element array. - * @return Returns a reference to the array of triangles elements. - */ - domTriangles_Array &getTriangles_array() { return elemTriangles_array; } - /** - * Gets the triangles element array. - * @return Returns a constant reference to the array of triangles elements. - */ - const domTriangles_Array &getTriangles_array() const { return elemTriangles_array; } - /** - * Gets the trifans element array. - * @return Returns a reference to the array of trifans elements. - */ - domTrifans_Array &getTrifans_array() { return elemTrifans_array; } - /** - * Gets the trifans element array. - * @return Returns a constant reference to the array of trifans elements. - */ - const domTrifans_Array &getTrifans_array() const { return elemTrifans_array; } - /** - * Gets the tristrips element array. - * @return Returns a reference to the array of tristrips elements. - */ - domTristrips_Array &getTristrips_array() { return elemTristrips_array; } - /** - * Gets the tristrips element array. - * @return Returns a constant reference to the array of tristrips elements. - */ - const domTristrips_Array &getTristrips_array() const { return elemTristrips_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domConvex_mesh() : attrConvex_hull_of(), elemSource_array(), elemVertices(), elemLines_array(), elemLinestrips_array(), elemPolygons_array(), elemPolylist_array(), elemTriangles_array(), elemTrifans_array(), elemTristrips_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domConvex_mesh() {} - /** - * Copy Constructor - */ - domConvex_mesh( const domConvex_mesh &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domConvex_mesh &operator=( const domConvex_mesh &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domCylinder.h b/Extras/COLLADA_DOM/include/1.4/dom/domCylinder.h deleted file mode 100644 index 905a36aa9..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domCylinder.h +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domCylinder_h__ -#define __domCylinder_h__ - -#include -#include - -#include - -/** - * A cylinder primitive that is centered on, and aligned with. the local Y - * axis. - */ -class domCylinder : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CYLINDER; } -public: - class domHeight; - - typedef daeSmartRef domHeightRef; - typedef daeTArray domHeight_Array; - -/** - * A float value that represents the length of the cylinder along the Y axis. - */ - class domHeight : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HEIGHT; } - - protected: // Value - /** - * The domFloat value of the text data of this element. - */ - domFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFloat of the value. - */ - domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHeight() : _value() {} - /** - * Destructor - */ - virtual ~domHeight() {} - /** - * Copy Constructor - */ - domHeight( const domHeight &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHeight &operator=( const domHeight &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domRadius; - - typedef daeSmartRef domRadiusRef; - typedef daeTArray domRadius_Array; - -/** - * float2 values that represent the radii of the cylinder. - */ - class domRadius : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RADIUS; } - - protected: // Value - /** - * The domFloat2 value of the text data of this element. - */ - domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFloat2 reference of the _value array. - */ - domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat2 reference of the _value array. - */ - const domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domRadius() : _value() {} - /** - * Destructor - */ - virtual ~domRadius() {} - /** - * Copy Constructor - */ - domRadius( const domRadius &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRadius &operator=( const domRadius &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements -/** - * A float value that represents the length of the cylinder along the Y axis. - * @see domHeight - */ - domHeightRef elemHeight; -/** - * float2 values that represent the radii of the cylinder. @see domRadius - */ - domRadiusRef elemRadius; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the height element. - * @return a daeSmartRef to the height element. - */ - const domHeightRef getHeight() const { return elemHeight; } - /** - * Gets the radius element. - * @return a daeSmartRef to the radius element. - */ - const domRadiusRef getRadius() const { return elemRadius; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domCylinder() : elemHeight(), elemRadius(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domCylinder() {} - /** - * Copy Constructor - */ - domCylinder( const domCylinder &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCylinder &operator=( const domCylinder &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domEffect.h b/Extras/COLLADA_DOM/include/1.4/dom/domEffect.h deleted file mode 100644 index 64c02caa3..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domEffect.h +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domEffect_h__ -#define __domEffect_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include - -/** - * A self contained description of a shader effect. - */ -class domEffect : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::EFFECT; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The effect element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The annotate element allows you to specify an annotation on this effect. - * @see domAnnotate - */ - domFx_annotate_common_Array elemAnnotate_array; -/** - * The image element allows you to create image resources which can be shared - * by multipe profiles. @see domImage - */ - domImage_Array elemImage_array; -/** - * The newparam element allows you to create new effect parameters which can - * be shared by multipe profiles. @see domNewparam - */ - domFx_newparam_common_Array elemNewparam_array; -/** - * This is the substituion group hook which allows you to swap in other COLLADA - * FX profiles. @see domFx_profile_abstract - */ - domFx_profile_abstract_Array elemFx_profile_abstract_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the image element array. - * @return Returns a reference to the array of image elements. - */ - domImage_Array &getImage_array() { return elemImage_array; } - /** - * Gets the image element array. - * @return Returns a constant reference to the array of image elements. - */ - const domImage_Array &getImage_array() const { return elemImage_array; } - /** - * Gets the newparam element array. - * @return Returns a reference to the array of newparam elements. - */ - domFx_newparam_common_Array &getNewparam_array() { return elemNewparam_array; } - /** - * Gets the newparam element array. - * @return Returns a constant reference to the array of newparam elements. - */ - const domFx_newparam_common_Array &getNewparam_array() const { return elemNewparam_array; } - /** - * Gets the fx_profile_abstract element array. - * @return Returns a reference to the array of fx_profile_abstract elements. - */ - domFx_profile_abstract_Array &getFx_profile_abstract_array() { return elemFx_profile_abstract_array; } - /** - * Gets the fx_profile_abstract element array. - * @return Returns a constant reference to the array of fx_profile_abstract elements. - */ - const domFx_profile_abstract_Array &getFx_profile_abstract_array() const { return elemFx_profile_abstract_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domEffect() : attrId(), attrName(), elemAsset(), elemAnnotate_array(), elemImage_array(), elemNewparam_array(), elemFx_profile_abstract_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domEffect() {} - /** - * Copy Constructor - */ - domEffect( const domEffect &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domEffect &operator=( const domEffect &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domElements.h b/Extras/COLLADA_DOM/include/1.4/dom/domElements.h deleted file mode 100644 index 17dcf2041..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domElements.h +++ /dev/null @@ -1,871 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DOM_ELEMENTS_H__ -#define __DOM_ELEMENTS_H__ - -#include - -class domInputGlobal; - -typedef daeSmartRef domInputGlobalRef; -typedef daeTArray domInputGlobal_Array; - -class domInputLocal; - -typedef daeSmartRef domInputLocalRef; -typedef daeTArray domInputLocal_Array; - -class domInputLocalOffset; - -typedef daeSmartRef domInputLocalOffsetRef; -typedef daeTArray domInputLocalOffset_Array; - -class domInstanceWithExtra; - -typedef daeSmartRef domInstanceWithExtraRef; -typedef daeTArray domInstanceWithExtra_Array; - -class domTargetableFloat; - -typedef daeSmartRef domTargetableFloatRef; -typedef daeTArray domTargetableFloat_Array; - -class domTargetableFloat3; - -typedef daeSmartRef domTargetableFloat3Ref; -typedef daeTArray domTargetableFloat3_Array; - -class domFx_surface_format_hint_common; - -typedef daeSmartRef domFx_surface_format_hint_commonRef; -typedef daeTArray domFx_surface_format_hint_common_Array; - -class domFx_surface_init_planar_common; - -typedef daeSmartRef domFx_surface_init_planar_commonRef; -typedef daeTArray domFx_surface_init_planar_common_Array; - -class domFx_surface_init_volume_common; - -typedef daeSmartRef domFx_surface_init_volume_commonRef; -typedef daeTArray domFx_surface_init_volume_common_Array; - -class domFx_surface_init_cube_common; - -typedef daeSmartRef domFx_surface_init_cube_commonRef; -typedef daeTArray domFx_surface_init_cube_common_Array; - -class domFx_surface_init_from_common; - -typedef daeSmartRef domFx_surface_init_from_commonRef; -typedef daeTArray domFx_surface_init_from_common_Array; - -class domFx_surface_common; - -typedef daeSmartRef domFx_surface_commonRef; -typedef daeTArray domFx_surface_common_Array; - -class domFx_sampler1D_common; - -typedef daeSmartRef domFx_sampler1D_commonRef; -typedef daeTArray domFx_sampler1D_common_Array; - -class domFx_sampler2D_common; - -typedef daeSmartRef domFx_sampler2D_commonRef; -typedef daeTArray domFx_sampler2D_common_Array; - -class domFx_sampler3D_common; - -typedef daeSmartRef domFx_sampler3D_commonRef; -typedef daeTArray domFx_sampler3D_common_Array; - -class domFx_samplerCUBE_common; - -typedef daeSmartRef domFx_samplerCUBE_commonRef; -typedef daeTArray domFx_samplerCUBE_common_Array; - -class domFx_samplerRECT_common; - -typedef daeSmartRef domFx_samplerRECT_commonRef; -typedef daeTArray domFx_samplerRECT_common_Array; - -class domFx_samplerDEPTH_common; - -typedef daeSmartRef domFx_samplerDEPTH_commonRef; -typedef daeTArray domFx_samplerDEPTH_common_Array; - -class domFx_colortarget_common; - -typedef daeSmartRef domFx_colortarget_commonRef; -typedef daeTArray domFx_colortarget_common_Array; - -class domFx_depthtarget_common; - -typedef daeSmartRef domFx_depthtarget_commonRef; -typedef daeTArray domFx_depthtarget_common_Array; - -class domFx_stenciltarget_common; - -typedef daeSmartRef domFx_stenciltarget_commonRef; -typedef daeTArray domFx_stenciltarget_common_Array; - -class domFx_clearcolor_common; - -typedef daeSmartRef domFx_clearcolor_commonRef; -typedef daeTArray domFx_clearcolor_common_Array; - -class domFx_cleardepth_common; - -typedef daeSmartRef domFx_cleardepth_commonRef; -typedef daeTArray domFx_cleardepth_common_Array; - -class domFx_clearstencil_common; - -typedef daeSmartRef domFx_clearstencil_commonRef; -typedef daeTArray domFx_clearstencil_common_Array; - -class domFx_annotate_common; - -typedef daeSmartRef domFx_annotate_commonRef; -typedef daeTArray domFx_annotate_common_Array; - -class domFx_include_common; - -typedef daeSmartRef domFx_include_commonRef; -typedef daeTArray domFx_include_common_Array; - -class domFx_newparam_common; - -typedef daeSmartRef domFx_newparam_commonRef; -typedef daeTArray domFx_newparam_common_Array; - -class domFx_code_profile; - -typedef daeSmartRef domFx_code_profileRef; -typedef daeTArray domFx_code_profile_Array; - -class domGl_sampler1D; - -typedef daeSmartRef domGl_sampler1DRef; -typedef daeTArray domGl_sampler1D_Array; - -class domGl_sampler2D; - -typedef daeSmartRef domGl_sampler2DRef; -typedef daeTArray domGl_sampler2D_Array; - -class domGl_sampler3D; - -typedef daeSmartRef domGl_sampler3DRef; -typedef daeTArray domGl_sampler3D_Array; - -class domGl_samplerCUBE; - -typedef daeSmartRef domGl_samplerCUBERef; -typedef daeTArray domGl_samplerCUBE_Array; - -class domGl_samplerRECT; - -typedef daeSmartRef domGl_samplerRECTRef; -typedef daeTArray domGl_samplerRECT_Array; - -class domGl_samplerDEPTH; - -typedef daeSmartRef domGl_samplerDEPTHRef; -typedef daeTArray domGl_samplerDEPTH_Array; - -class domGlsl_newarray_type; - -typedef daeSmartRef domGlsl_newarray_typeRef; -typedef daeTArray domGlsl_newarray_type_Array; - -class domGlsl_setarray_type; - -typedef daeSmartRef domGlsl_setarray_typeRef; -typedef daeTArray domGlsl_setarray_type_Array; - -class domGlsl_surface_type; - -typedef daeSmartRef domGlsl_surface_typeRef; -typedef daeTArray domGlsl_surface_type_Array; - -class domGlsl_newparam; - -typedef daeSmartRef domGlsl_newparamRef; -typedef daeTArray domGlsl_newparam_Array; - -class domGlsl_setparam_simple; - -typedef daeSmartRef domGlsl_setparam_simpleRef; -typedef daeTArray domGlsl_setparam_simple_Array; - -class domGlsl_setparam; - -typedef daeSmartRef domGlsl_setparamRef; -typedef daeTArray domGlsl_setparam_Array; - -class domCommon_float_or_param_type; - -typedef daeSmartRef domCommon_float_or_param_typeRef; -typedef daeTArray domCommon_float_or_param_type_Array; - -class domCommon_color_or_texture_type; - -typedef daeSmartRef domCommon_color_or_texture_typeRef; -typedef daeTArray domCommon_color_or_texture_type_Array; - -class domCommon_transparent_type; - -typedef daeSmartRef domCommon_transparent_typeRef; -typedef daeTArray domCommon_transparent_type_Array; - -class domCommon_newparam_type; - -typedef daeSmartRef domCommon_newparam_typeRef; -typedef daeTArray domCommon_newparam_type_Array; - -class domCg_sampler1D; - -typedef daeSmartRef domCg_sampler1DRef; -typedef daeTArray domCg_sampler1D_Array; - -class domCg_sampler2D; - -typedef daeSmartRef domCg_sampler2DRef; -typedef daeTArray domCg_sampler2D_Array; - -class domCg_sampler3D; - -typedef daeSmartRef domCg_sampler3DRef; -typedef daeTArray domCg_sampler3D_Array; - -class domCg_samplerCUBE; - -typedef daeSmartRef domCg_samplerCUBERef; -typedef daeTArray domCg_samplerCUBE_Array; - -class domCg_samplerRECT; - -typedef daeSmartRef domCg_samplerRECTRef; -typedef daeTArray domCg_samplerRECT_Array; - -class domCg_samplerDEPTH; - -typedef daeSmartRef domCg_samplerDEPTHRef; -typedef daeTArray domCg_samplerDEPTH_Array; - -class domCg_connect_param; - -typedef daeSmartRef domCg_connect_paramRef; -typedef daeTArray domCg_connect_param_Array; - -class domCg_newarray_type; - -typedef daeSmartRef domCg_newarray_typeRef; -typedef daeTArray domCg_newarray_type_Array; - -class domCg_setarray_type; - -typedef daeSmartRef domCg_setarray_typeRef; -typedef daeTArray domCg_setarray_type_Array; - -class domCg_setuser_type; - -typedef daeSmartRef domCg_setuser_typeRef; -typedef daeTArray domCg_setuser_type_Array; - -class domCg_surface_type; - -typedef daeSmartRef domCg_surface_typeRef; -typedef daeTArray domCg_surface_type_Array; - -class domCg_newparam; - -typedef daeSmartRef domCg_newparamRef; -typedef daeTArray domCg_newparam_Array; - -class domCg_setparam_simple; - -typedef daeSmartRef domCg_setparam_simpleRef; -typedef daeTArray domCg_setparam_simple_Array; - -class domCg_setparam; - -typedef daeSmartRef domCg_setparamRef; -typedef daeTArray domCg_setparam_Array; - -class domGles_texture_constant_type; - -typedef daeSmartRef domGles_texture_constant_typeRef; -typedef daeTArray domGles_texture_constant_type_Array; - -class domGles_texenv_command_type; - -typedef daeSmartRef domGles_texenv_command_typeRef; -typedef daeTArray domGles_texenv_command_type_Array; - -class domGles_texcombiner_argumentRGB_type; - -typedef daeSmartRef domGles_texcombiner_argumentRGB_typeRef; -typedef daeTArray domGles_texcombiner_argumentRGB_type_Array; - -class domGles_texcombiner_argumentAlpha_type; - -typedef daeSmartRef domGles_texcombiner_argumentAlpha_typeRef; -typedef daeTArray domGles_texcombiner_argumentAlpha_type_Array; - -class domGles_texcombiner_commandRGB_type; - -typedef daeSmartRef domGles_texcombiner_commandRGB_typeRef; -typedef daeTArray domGles_texcombiner_commandRGB_type_Array; - -class domGles_texcombiner_commandAlpha_type; - -typedef daeSmartRef domGles_texcombiner_commandAlpha_typeRef; -typedef daeTArray domGles_texcombiner_commandAlpha_type_Array; - -class domGles_texcombiner_command_type; - -typedef daeSmartRef domGles_texcombiner_command_typeRef; -typedef daeTArray domGles_texcombiner_command_type_Array; - -class domGles_texture_pipeline; - -typedef daeSmartRef domGles_texture_pipelineRef; -typedef daeTArray domGles_texture_pipeline_Array; - -class domGles_texture_unit; - -typedef daeSmartRef domGles_texture_unitRef; -typedef daeTArray domGles_texture_unit_Array; - -class domGles_sampler_state; - -typedef daeSmartRef domGles_sampler_stateRef; -typedef daeTArray domGles_sampler_state_Array; - -class domGles_newparam; - -typedef daeSmartRef domGles_newparamRef; -typedef daeTArray domGles_newparam_Array; - -class domFx_surface_init_common; - -typedef daeSmartRef domFx_surface_init_commonRef; -typedef daeTArray domFx_surface_init_common_Array; - -class domFx_annotate_type_common; - -typedef daeSmartRef domFx_annotate_type_commonRef; -typedef daeTArray domFx_annotate_type_common_Array; - -class domFx_basic_type_common; - -typedef daeSmartRef domFx_basic_type_commonRef; -typedef daeTArray domFx_basic_type_common_Array; - -class domGl_pipeline_settings; - -typedef daeSmartRef domGl_pipeline_settingsRef; -typedef daeTArray domGl_pipeline_settings_Array; - -class domGlsl_param_type; - -typedef daeSmartRef domGlsl_param_typeRef; -typedef daeTArray domGlsl_param_type_Array; - -class domCg_param_type; - -typedef daeSmartRef domCg_param_typeRef; -typedef daeTArray domCg_param_type_Array; - -class domGles_pipeline_settings; - -typedef daeSmartRef domGles_pipeline_settingsRef; -typedef daeTArray domGles_pipeline_settings_Array; - -class domGles_basic_type_common; - -typedef daeSmartRef domGles_basic_type_commonRef; -typedef daeTArray domGles_basic_type_common_Array; - -class domCOLLADA; - -typedef daeSmartRef domCOLLADARef; -typedef daeTArray domCOLLADA_Array; - -class domIDREF_array; - -typedef daeSmartRef domIDREF_arrayRef; -typedef daeTArray domIDREF_array_Array; - -class domName_array; - -typedef daeSmartRef domName_arrayRef; -typedef daeTArray domName_array_Array; - -class domBool_array; - -typedef daeSmartRef domBool_arrayRef; -typedef daeTArray domBool_array_Array; - -class domFloat_array; - -typedef daeSmartRef domFloat_arrayRef; -typedef daeTArray domFloat_array_Array; - -class domInt_array; - -typedef daeSmartRef domInt_arrayRef; -typedef daeTArray domInt_array_Array; - -class domAccessor; - -typedef daeSmartRef domAccessorRef; -typedef daeTArray domAccessor_Array; - -class domParam; - -typedef daeSmartRef domParamRef; -typedef daeTArray domParam_Array; - -class domSource; - -typedef daeSmartRef domSourceRef; -typedef daeTArray domSource_Array; - -class domGeometry; - -typedef daeSmartRef domGeometryRef; -typedef daeTArray domGeometry_Array; - -class domMesh; - -typedef daeSmartRef domMeshRef; -typedef daeTArray domMesh_Array; - -class domSpline; - -typedef daeSmartRef domSplineRef; -typedef daeTArray domSpline_Array; - -class domP; - -typedef daeSmartRef domPRef; -typedef daeTArray domP_Array; - -class domLines; - -typedef daeSmartRef domLinesRef; -typedef daeTArray domLines_Array; - -class domLinestrips; - -typedef daeSmartRef domLinestripsRef; -typedef daeTArray domLinestrips_Array; - -class domPolygons; - -typedef daeSmartRef domPolygonsRef; -typedef daeTArray domPolygons_Array; - -class domPolylist; - -typedef daeSmartRef domPolylistRef; -typedef daeTArray domPolylist_Array; - -class domTriangles; - -typedef daeSmartRef domTrianglesRef; -typedef daeTArray domTriangles_Array; - -class domTrifans; - -typedef daeSmartRef domTrifansRef; -typedef daeTArray domTrifans_Array; - -class domTristrips; - -typedef daeSmartRef domTristripsRef; -typedef daeTArray domTristrips_Array; - -class domVertices; - -typedef daeSmartRef domVerticesRef; -typedef daeTArray domVertices_Array; - -class domLookat; - -typedef daeSmartRef domLookatRef; -typedef daeTArray domLookat_Array; - -class domMatrix; - -typedef daeSmartRef domMatrixRef; -typedef daeTArray domMatrix_Array; - -class domRotate; - -typedef daeSmartRef domRotateRef; -typedef daeTArray domRotate_Array; - -class domScale; - -typedef daeSmartRef domScaleRef; -typedef daeTArray domScale_Array; - -class domSkew; - -typedef daeSmartRef domSkewRef; -typedef daeTArray domSkew_Array; - -class domTranslate; - -typedef daeSmartRef domTranslateRef; -typedef daeTArray domTranslate_Array; - -class domImage; - -typedef daeSmartRef domImageRef; -typedef daeTArray domImage_Array; - -class domLight; - -typedef daeSmartRef domLightRef; -typedef daeTArray domLight_Array; - -class domMaterial; - -typedef daeSmartRef domMaterialRef; -typedef daeTArray domMaterial_Array; - -class domCamera; - -typedef daeSmartRef domCameraRef; -typedef daeTArray domCamera_Array; - -class domAnimation; - -typedef daeSmartRef domAnimationRef; -typedef daeTArray domAnimation_Array; - -class domAnimation_clip; - -typedef daeSmartRef domAnimation_clipRef; -typedef daeTArray domAnimation_clip_Array; - -class domChannel; - -typedef daeSmartRef domChannelRef; -typedef daeTArray domChannel_Array; - -class domSampler; - -typedef daeSmartRef domSamplerRef; -typedef daeTArray domSampler_Array; - -class domController; - -typedef daeSmartRef domControllerRef; -typedef daeTArray domController_Array; - -class domSkin; - -typedef daeSmartRef domSkinRef; -typedef daeTArray domSkin_Array; - -class domMorph; - -typedef daeSmartRef domMorphRef; -typedef daeTArray domMorph_Array; - -class domAsset; - -typedef daeSmartRef domAssetRef; -typedef daeTArray domAsset_Array; - -class domExtra; - -typedef daeSmartRef domExtraRef; -typedef daeTArray domExtra_Array; - -class domTechnique; - -typedef daeSmartRef domTechniqueRef; -typedef daeTArray domTechnique_Array; - -class domNode; - -typedef daeSmartRef domNodeRef; -typedef daeTArray domNode_Array; - -class domVisual_scene; - -typedef daeSmartRef domVisual_sceneRef; -typedef daeTArray domVisual_scene_Array; - -class domBind_material; - -typedef daeSmartRef domBind_materialRef; -typedef daeTArray domBind_material_Array; - -class domInstance_camera; - -typedef daeSmartRef domInstance_cameraRef; -typedef daeTArray domInstance_camera_Array; - -class domInstance_controller; - -typedef daeSmartRef domInstance_controllerRef; -typedef daeTArray domInstance_controller_Array; - -class domInstance_effect; - -typedef daeSmartRef domInstance_effectRef; -typedef daeTArray domInstance_effect_Array; - -class domInstance_force_field; - -typedef daeSmartRef domInstance_force_fieldRef; -typedef daeTArray domInstance_force_field_Array; - -class domInstance_geometry; - -typedef daeSmartRef domInstance_geometryRef; -typedef daeTArray domInstance_geometry_Array; - -class domInstance_light; - -typedef daeSmartRef domInstance_lightRef; -typedef daeTArray domInstance_light_Array; - -class domInstance_material; - -typedef daeSmartRef domInstance_materialRef; -typedef daeTArray domInstance_material_Array; - -class domInstance_node; - -typedef daeSmartRef domInstance_nodeRef; -typedef daeTArray domInstance_node_Array; - -class domInstance_physics_material; - -typedef daeSmartRef domInstance_physics_materialRef; -typedef daeTArray domInstance_physics_material_Array; - -class domInstance_physics_model; - -typedef daeSmartRef domInstance_physics_modelRef; -typedef daeTArray domInstance_physics_model_Array; - -class domInstance_rigid_body; - -typedef daeSmartRef domInstance_rigid_bodyRef; -typedef daeTArray domInstance_rigid_body_Array; - -class domInstance_rigid_constraint; - -typedef daeSmartRef domInstance_rigid_constraintRef; -typedef daeTArray domInstance_rigid_constraint_Array; - -class domLibrary_animations; - -typedef daeSmartRef domLibrary_animationsRef; -typedef daeTArray domLibrary_animations_Array; - -class domLibrary_animation_clips; - -typedef daeSmartRef domLibrary_animation_clipsRef; -typedef daeTArray domLibrary_animation_clips_Array; - -class domLibrary_cameras; - -typedef daeSmartRef domLibrary_camerasRef; -typedef daeTArray domLibrary_cameras_Array; - -class domLibrary_controllers; - -typedef daeSmartRef domLibrary_controllersRef; -typedef daeTArray domLibrary_controllers_Array; - -class domLibrary_geometries; - -typedef daeSmartRef domLibrary_geometriesRef; -typedef daeTArray domLibrary_geometries_Array; - -class domLibrary_effects; - -typedef daeSmartRef domLibrary_effectsRef; -typedef daeTArray domLibrary_effects_Array; - -class domLibrary_force_fields; - -typedef daeSmartRef domLibrary_force_fieldsRef; -typedef daeTArray domLibrary_force_fields_Array; - -class domLibrary_images; - -typedef daeSmartRef domLibrary_imagesRef; -typedef daeTArray domLibrary_images_Array; - -class domLibrary_lights; - -typedef daeSmartRef domLibrary_lightsRef; -typedef daeTArray domLibrary_lights_Array; - -class domLibrary_materials; - -typedef daeSmartRef domLibrary_materialsRef; -typedef daeTArray domLibrary_materials_Array; - -class domLibrary_nodes; - -typedef daeSmartRef domLibrary_nodesRef; -typedef daeTArray domLibrary_nodes_Array; - -class domLibrary_physics_materials; - -typedef daeSmartRef domLibrary_physics_materialsRef; -typedef daeTArray domLibrary_physics_materials_Array; - -class domLibrary_physics_models; - -typedef daeSmartRef domLibrary_physics_modelsRef; -typedef daeTArray domLibrary_physics_models_Array; - -class domLibrary_physics_scenes; - -typedef daeSmartRef domLibrary_physics_scenesRef; -typedef daeTArray domLibrary_physics_scenes_Array; - -class domLibrary_visual_scenes; - -typedef daeSmartRef domLibrary_visual_scenesRef; -typedef daeTArray domLibrary_visual_scenes_Array; - -class domFx_profile_abstract; - -typedef daeSmartRef domFx_profile_abstractRef; -typedef daeTArray domFx_profile_abstract_Array; - -class domEffect; - -typedef daeSmartRef domEffectRef; -typedef daeTArray domEffect_Array; - -class domGl_hook_abstract; - -typedef daeSmartRef domGl_hook_abstractRef; -typedef daeTArray domGl_hook_abstract_Array; - -class domProfile_GLSL; - -typedef daeSmartRef domProfile_GLSLRef; -typedef daeTArray domProfile_GLSL_Array; - -class domProfile_COMMON; - -typedef daeSmartRef domProfile_COMMONRef; -typedef daeTArray domProfile_COMMON_Array; - -class domProfile_CG; - -typedef daeSmartRef domProfile_CGRef; -typedef daeTArray domProfile_CG_Array; - -class domProfile_GLES; - -typedef daeSmartRef domProfile_GLESRef; -typedef daeTArray domProfile_GLES_Array; - -class domBox; - -typedef daeSmartRef domBoxRef; -typedef daeTArray domBox_Array; - -class domPlane; - -typedef daeSmartRef domPlaneRef; -typedef daeTArray domPlane_Array; - -class domSphere; - -typedef daeSmartRef domSphereRef; -typedef daeTArray domSphere_Array; - -class domEllipsoid; - -typedef daeSmartRef domEllipsoidRef; -typedef daeTArray domEllipsoid_Array; - -class domCylinder; - -typedef daeSmartRef domCylinderRef; -typedef daeTArray domCylinder_Array; - -class domTapered_cylinder; - -typedef daeSmartRef domTapered_cylinderRef; -typedef daeTArray domTapered_cylinder_Array; - -class domCapsule; - -typedef daeSmartRef domCapsuleRef; -typedef daeTArray domCapsule_Array; - -class domTapered_capsule; - -typedef daeSmartRef domTapered_capsuleRef; -typedef daeTArray domTapered_capsule_Array; - -class domConvex_mesh; - -typedef daeSmartRef domConvex_meshRef; -typedef daeTArray domConvex_mesh_Array; - -class domForce_field; - -typedef daeSmartRef domForce_fieldRef; -typedef daeTArray domForce_field_Array; - -class domPhysics_material; - -typedef daeSmartRef domPhysics_materialRef; -typedef daeTArray domPhysics_material_Array; - -class domPhysics_scene; - -typedef daeSmartRef domPhysics_sceneRef; -typedef daeTArray domPhysics_scene_Array; - -class domRigid_body; - -typedef daeSmartRef domRigid_bodyRef; -typedef daeTArray domRigid_body_Array; - -class domRigid_constraint; - -typedef daeSmartRef domRigid_constraintRef; -typedef daeTArray domRigid_constraint_Array; - -class domPhysics_model; - -typedef daeSmartRef domPhysics_modelRef; -typedef daeTArray domPhysics_model_Array; - - -#endif //__DOM_ELEMENTS_H__ - diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domEllipsoid.h b/Extras/COLLADA_DOM/include/1.4/dom/domEllipsoid.h deleted file mode 100644 index 29465264f..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domEllipsoid.h +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domEllipsoid_h__ -#define __domEllipsoid_h__ - -#include -#include - - -class domEllipsoid : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ELLIPSOID; } -public: - class domSize; - - typedef daeSmartRef domSizeRef; - typedef daeTArray domSize_Array; - - class domSize : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SIZE; } - - protected: // Value - /** - * The domFloat3 value of the text data of this element. - */ - domFloat3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFloat3 reference of the _value array. - */ - domFloat3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat3 reference of the _value array. - */ - const domFloat3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domSize() : _value() {} - /** - * Destructor - */ - virtual ~domSize() {} - /** - * Copy Constructor - */ - domSize( const domSize &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSize &operator=( const domSize &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Element - domSizeRef elemSize; - -public: //Accessors and Mutators - /** - * Gets the size element. - * @return a daeSmartRef to the size element. - */ - const domSizeRef getSize() const { return elemSize; } -protected: - /** - * Constructor - */ - domEllipsoid() : elemSize() {} - /** - * Destructor - */ - virtual ~domEllipsoid() {} - /** - * Copy Constructor - */ - domEllipsoid( const domEllipsoid &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domEllipsoid &operator=( const domEllipsoid &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domExtra.h b/Extras/COLLADA_DOM/include/1.4/dom/domExtra.h deleted file mode 100644 index b5eab322b..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domExtra.h +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domExtra_h__ -#define __domExtra_h__ - -#include -#include - -#include -#include - -/** - * The extra element declares additional information regarding its parent - * element. - */ -class domExtra : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::EXTRA; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The type attribute indicates the type of the value data. This text string - * must be understood by the application. Optional attribute. - */ - xsNMTOKEN attrType; - -protected: // Elements -/** - * The extra element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * This element must contain at least one non-common profile technique. - * @see domTechnique - */ - domTechnique_Array elemTechnique_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the type attribute. - * @return Returns a xsNMTOKEN of the type attribute. - */ - xsNMTOKEN getType() const { return attrType; } - /** - * Sets the type attribute. - * @param atType The new value for the type attribute. - */ - void setType( xsNMTOKEN atType ) { *(daeStringRef*)&attrType = atType; - _validAttributeArray[2] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } -protected: - /** - * Constructor - */ - domExtra() : attrId(), attrName(), attrType(), elemAsset(), elemTechnique_array() {} - /** - * Destructor - */ - virtual ~domExtra() {} - /** - * Copy Constructor - */ - domExtra( const domExtra &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domExtra &operator=( const domExtra &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFloat_array.h b/Extras/COLLADA_DOM/include/1.4/dom/domFloat_array.h deleted file mode 100644 index 9fc1267d8..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFloat_array.h +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFloat_array_h__ -#define __domFloat_array_h__ - -#include -#include - - -/** - * The float_array element declares the storage for a homogenous array of - * floating point values. - */ -class domFloat_array : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT_ARRAY; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The count attribute indicates the number of values in the array. Required - * attribute. - */ - domUint attrCount; -/** - * The digits attribute indicates the number of significant decimal digits - * of the float values that can be contained in the array. The default value - * is 6. Optional attribute. - */ - xsShort attrDigits; -/** - * The magnitude attribute indicates the largest exponent of the float values - * that can be contained in the array. The default value is 38. Optional - * attribute. - */ - xsShort attrMagnitude; - -protected: // Value - /** - * The domListOfFloats value of the text data of this element. - */ - domListOfFloats _value; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[2] = true; } - - /** - * Gets the digits attribute. - * @return Returns a xsShort of the digits attribute. - */ - xsShort getDigits() const { return attrDigits; } - /** - * Sets the digits attribute. - * @param atDigits The new value for the digits attribute. - */ - void setDigits( xsShort atDigits ) { attrDigits = atDigits; - _validAttributeArray[3] = true; } - - /** - * Gets the magnitude attribute. - * @return Returns a xsShort of the magnitude attribute. - */ - xsShort getMagnitude() const { return attrMagnitude; } - /** - * Sets the magnitude attribute. - * @param atMagnitude The new value for the magnitude attribute. - */ - void setMagnitude( xsShort atMagnitude ) { attrMagnitude = atMagnitude; - _validAttributeArray[4] = true; } - - /** - * Gets the _value array. - * @return Returns a domListOfFloats reference of the _value array. - */ - domListOfFloats &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domListOfFloats reference of the _value array. - */ - const domListOfFloats &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domListOfFloats &val ) { _value = val; } - -protected: - /** - * Constructor - */ - domFloat_array() : attrId(), attrName(), attrCount(), attrDigits(), attrMagnitude(), _value() {} - /** - * Destructor - */ - virtual ~domFloat_array() {} - /** - * Copy Constructor - */ - domFloat_array( const domFloat_array &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat_array &operator=( const domFloat_array &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domForce_field.h b/Extras/COLLADA_DOM/include/1.4/dom/domForce_field.h deleted file mode 100644 index ee0a4f7c1..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domForce_field.h +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domForce_field_h__ -#define __domForce_field_h__ - -#include -#include - -#include -#include -#include - -/** - * A general container for force-fields. At the moment, it only has techniques - * and extra elements. - */ -class domForce_field : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FORCE_FIELD; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The force_field element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * This element must contain at least one non-common profile technique. - * @see domTechnique - */ - domTechnique_Array elemTechnique_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domForce_field() : attrId(), attrName(), elemAsset(), elemTechnique_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domForce_field() {} - /** - * Copy Constructor - */ - domForce_field( const domForce_field &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domForce_field &operator=( const domForce_field &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_annotate_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_annotate_common.h deleted file mode 100644 index 9e8b0c6d2..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_annotate_common.h +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_annotate_common_h__ -#define __domFx_annotate_common_h__ - -#include -#include - -#include - -class domFx_annotate_common_complexType -{ -protected: // Attribute - xsNCName attrName; - -protected: // Element - domFx_annotate_type_commonRef elemFx_annotate_type_common; - -public: //Accessors and Mutators - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; } - - /** - * Gets the fx_annotate_type_common element. - * @return a daeSmartRef to the fx_annotate_type_common element. - */ - const domFx_annotate_type_commonRef getFx_annotate_type_common() const { return elemFx_annotate_type_common; } -protected: - /** - * Constructor - */ - domFx_annotate_common_complexType() : attrName(), elemFx_annotate_type_common() {} - /** - * Destructor - */ - virtual ~domFx_annotate_common_complexType() {} - /** - * Copy Constructor - */ - domFx_annotate_common_complexType( const domFx_annotate_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_annotate_common_complexType &operator=( const domFx_annotate_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_annotate_common_complexType. - */ -class domFx_annotate_common : public daeElement, public domFx_annotate_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_ANNOTATE_COMMON; } - -public: //Accessors and Mutators - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domFx_annotate_common() {} - /** - * Destructor - */ - virtual ~domFx_annotate_common() {} - /** - * Copy Constructor - */ - domFx_annotate_common( const domFx_annotate_common &cpy ) : daeElement(), domFx_annotate_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_annotate_common &operator=( const domFx_annotate_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_annotate_type_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_annotate_type_common.h deleted file mode 100644 index 87431c0d5..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_annotate_type_common.h +++ /dev/null @@ -1,1321 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_annotate_type_common_h__ -#define __domFx_annotate_type_common_h__ - -#include -#include - - -/** - * A group that specifies the allowable types for an annotation. - */ -class domFx_annotate_type_common : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_ANNOTATE_TYPE_COMMON; } -public: - class domBool; - - typedef daeSmartRef domBoolRef; - typedef daeTArray domBool_Array; - - class domBool : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL; } - - protected: // Value - /** - * The ::domBool value of the text data of this element. - */ - ::domBool _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a ::domBool of the value. - */ - ::domBool getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::domBool val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool() : _value() {} - /** - * Destructor - */ - virtual ~domBool() {} - /** - * Copy Constructor - */ - domBool( const domBool &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool &operator=( const domBool &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool2; - - typedef daeSmartRef domBool2Ref; - typedef daeTArray domBool2_Array; - - class domBool2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL2; } - - protected: // Value - /** - * The ::domBool2 value of the text data of this element. - */ - ::domBool2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domBool2 reference of the _value array. - */ - ::domBool2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domBool2 reference of the _value array. - */ - const ::domBool2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domBool2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool2() : _value() {} - /** - * Destructor - */ - virtual ~domBool2() {} - /** - * Copy Constructor - */ - domBool2( const domBool2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool2 &operator=( const domBool2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool3; - - typedef daeSmartRef domBool3Ref; - typedef daeTArray domBool3_Array; - - class domBool3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL3; } - - protected: // Value - /** - * The ::domBool3 value of the text data of this element. - */ - ::domBool3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domBool3 reference of the _value array. - */ - ::domBool3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domBool3 reference of the _value array. - */ - const ::domBool3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domBool3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool3() : _value() {} - /** - * Destructor - */ - virtual ~domBool3() {} - /** - * Copy Constructor - */ - domBool3( const domBool3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool3 &operator=( const domBool3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool4; - - typedef daeSmartRef domBool4Ref; - typedef daeTArray domBool4_Array; - - class domBool4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL4; } - - protected: // Value - /** - * The ::domBool4 value of the text data of this element. - */ - ::domBool4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domBool4 reference of the _value array. - */ - ::domBool4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domBool4 reference of the _value array. - */ - const ::domBool4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domBool4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool4() : _value() {} - /** - * Destructor - */ - virtual ~domBool4() {} - /** - * Copy Constructor - */ - domBool4( const domBool4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool4 &operator=( const domBool4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt; - - typedef daeSmartRef domIntRef; - typedef daeTArray domInt_Array; - - class domInt : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT; } - - protected: // Value - /** - * The ::domInt value of the text data of this element. - */ - ::domInt _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a ::domInt of the value. - */ - ::domInt getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::domInt val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt() : _value() {} - /** - * Destructor - */ - virtual ~domInt() {} - /** - * Copy Constructor - */ - domInt( const domInt &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt &operator=( const domInt &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt2; - - typedef daeSmartRef domInt2Ref; - typedef daeTArray domInt2_Array; - - class domInt2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT2; } - - protected: // Value - /** - * The ::domInt2 value of the text data of this element. - */ - ::domInt2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domInt2 reference of the _value array. - */ - ::domInt2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domInt2 reference of the _value array. - */ - const ::domInt2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domInt2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt2() : _value() {} - /** - * Destructor - */ - virtual ~domInt2() {} - /** - * Copy Constructor - */ - domInt2( const domInt2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt2 &operator=( const domInt2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt3; - - typedef daeSmartRef domInt3Ref; - typedef daeTArray domInt3_Array; - - class domInt3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT3; } - - protected: // Value - /** - * The ::domInt3 value of the text data of this element. - */ - ::domInt3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domInt3 reference of the _value array. - */ - ::domInt3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domInt3 reference of the _value array. - */ - const ::domInt3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domInt3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt3() : _value() {} - /** - * Destructor - */ - virtual ~domInt3() {} - /** - * Copy Constructor - */ - domInt3( const domInt3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt3 &operator=( const domInt3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt4; - - typedef daeSmartRef domInt4Ref; - typedef daeTArray domInt4_Array; - - class domInt4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT4; } - - protected: // Value - /** - * The ::domInt4 value of the text data of this element. - */ - ::domInt4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domInt4 reference of the _value array. - */ - ::domInt4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domInt4 reference of the _value array. - */ - const ::domInt4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domInt4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt4() : _value() {} - /** - * Destructor - */ - virtual ~domInt4() {} - /** - * Copy Constructor - */ - domInt4( const domInt4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt4 &operator=( const domInt4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat; - - typedef daeSmartRef domFloatRef; - typedef daeTArray domFloat_Array; - - class domFloat : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT; } - - protected: // Value - /** - * The ::domFloat value of the text data of this element. - */ - ::domFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a ::domFloat of the value. - */ - ::domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::domFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat() : _value() {} - /** - * Destructor - */ - virtual ~domFloat() {} - /** - * Copy Constructor - */ - domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat &operator=( const domFloat &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2; - - typedef daeSmartRef domFloat2Ref; - typedef daeTArray domFloat2_Array; - - class domFloat2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2; } - - protected: // Value - /** - * The ::domFloat2 value of the text data of this element. - */ - ::domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2 reference of the _value array. - */ - ::domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2 reference of the _value array. - */ - const ::domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2() {} - /** - * Copy Constructor - */ - domFloat2( const domFloat2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2 &operator=( const domFloat2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3; - - typedef daeSmartRef domFloat3Ref; - typedef daeTArray domFloat3_Array; - - class domFloat3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3; } - - protected: // Value - /** - * The ::domFloat3 value of the text data of this element. - */ - ::domFloat3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3 reference of the _value array. - */ - ::domFloat3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3 reference of the _value array. - */ - const ::domFloat3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3() {} - /** - * Copy Constructor - */ - domFloat3( const domFloat3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3 &operator=( const domFloat3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4; - - typedef daeSmartRef domFloat4Ref; - typedef daeTArray domFloat4_Array; - - class domFloat4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4; } - - protected: // Value - /** - * The ::domFloat4 value of the text data of this element. - */ - ::domFloat4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4 reference of the _value array. - */ - ::domFloat4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4 reference of the _value array. - */ - const ::domFloat4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4() {} - /** - * Copy Constructor - */ - domFloat4( const domFloat4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4 &operator=( const domFloat4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x2; - - typedef daeSmartRef domFloat2x2Ref; - typedef daeTArray domFloat2x2_Array; - - class domFloat2x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X2; } - - protected: // Value - /** - * The ::domFloat2x2 value of the text data of this element. - */ - ::domFloat2x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2x2 reference of the _value array. - */ - ::domFloat2x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2x2 reference of the _value array. - */ - const ::domFloat2x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x2() {} - /** - * Copy Constructor - */ - domFloat2x2( const domFloat2x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x2 &operator=( const domFloat2x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x3; - - typedef daeSmartRef domFloat3x3Ref; - typedef daeTArray domFloat3x3_Array; - - class domFloat3x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X3; } - - protected: // Value - /** - * The ::domFloat3x3 value of the text data of this element. - */ - ::domFloat3x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3x3 reference of the _value array. - */ - ::domFloat3x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3x3 reference of the _value array. - */ - const ::domFloat3x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x3() {} - /** - * Copy Constructor - */ - domFloat3x3( const domFloat3x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x3 &operator=( const domFloat3x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x4; - - typedef daeSmartRef domFloat4x4Ref; - typedef daeTArray domFloat4x4_Array; - - class domFloat4x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X4; } - - protected: // Value - /** - * The ::domFloat4x4 value of the text data of this element. - */ - ::domFloat4x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4x4 reference of the _value array. - */ - ::domFloat4x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4x4 reference of the _value array. - */ - const ::domFloat4x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x4() {} - /** - * Copy Constructor - */ - domFloat4x4( const domFloat4x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x4 &operator=( const domFloat4x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domString; - - typedef daeSmartRef domStringRef; - typedef daeTArray domString_Array; - - class domString : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STRING; } - - protected: // Value - /** - * The ::xsString value of the text data of this element. - */ - ::xsString _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a ::xsString of the value. - */ - ::xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::xsString val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domString() : _value() {} - /** - * Destructor - */ - virtual ~domString() {} - /** - * Copy Constructor - */ - domString( const domString &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domString &operator=( const domString &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domBoolRef elemBool; - domBool2Ref elemBool2; - domBool3Ref elemBool3; - domBool4Ref elemBool4; - domIntRef elemInt; - domInt2Ref elemInt2; - domInt3Ref elemInt3; - domInt4Ref elemInt4; - domFloatRef elemFloat; - domFloat2Ref elemFloat2; - domFloat3Ref elemFloat3; - domFloat4Ref elemFloat4; - domFloat2x2Ref elemFloat2x2; - domFloat3x3Ref elemFloat3x3; - domFloat4x4Ref elemFloat4x4; - domStringRef elemString; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the bool element. - * @return a daeSmartRef to the bool element. - */ - const domBoolRef getBool() const { return elemBool; } - /** - * Gets the bool2 element. - * @return a daeSmartRef to the bool2 element. - */ - const domBool2Ref getBool2() const { return elemBool2; } - /** - * Gets the bool3 element. - * @return a daeSmartRef to the bool3 element. - */ - const domBool3Ref getBool3() const { return elemBool3; } - /** - * Gets the bool4 element. - * @return a daeSmartRef to the bool4 element. - */ - const domBool4Ref getBool4() const { return elemBool4; } - /** - * Gets the int element. - * @return a daeSmartRef to the int element. - */ - const domIntRef getInt() const { return elemInt; } - /** - * Gets the int2 element. - * @return a daeSmartRef to the int2 element. - */ - const domInt2Ref getInt2() const { return elemInt2; } - /** - * Gets the int3 element. - * @return a daeSmartRef to the int3 element. - */ - const domInt3Ref getInt3() const { return elemInt3; } - /** - * Gets the int4 element. - * @return a daeSmartRef to the int4 element. - */ - const domInt4Ref getInt4() const { return elemInt4; } - /** - * Gets the float element. - * @return a daeSmartRef to the float element. - */ - const domFloatRef getFloat() const { return elemFloat; } - /** - * Gets the float2 element. - * @return a daeSmartRef to the float2 element. - */ - const domFloat2Ref getFloat2() const { return elemFloat2; } - /** - * Gets the float3 element. - * @return a daeSmartRef to the float3 element. - */ - const domFloat3Ref getFloat3() const { return elemFloat3; } - /** - * Gets the float4 element. - * @return a daeSmartRef to the float4 element. - */ - const domFloat4Ref getFloat4() const { return elemFloat4; } - /** - * Gets the float2x2 element. - * @return a daeSmartRef to the float2x2 element. - */ - const domFloat2x2Ref getFloat2x2() const { return elemFloat2x2; } - /** - * Gets the float3x3 element. - * @return a daeSmartRef to the float3x3 element. - */ - const domFloat3x3Ref getFloat3x3() const { return elemFloat3x3; } - /** - * Gets the float4x4 element. - * @return a daeSmartRef to the float4x4 element. - */ - const domFloat4x4Ref getFloat4x4() const { return elemFloat4x4; } - /** - * Gets the string element. - * @return a daeSmartRef to the string element. - */ - const domStringRef getString() const { return elemString; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domFx_annotate_type_common() : elemBool(), elemBool2(), elemBool3(), elemBool4(), elemInt(), elemInt2(), elemInt3(), elemInt4(), elemFloat(), elemFloat2(), elemFloat3(), elemFloat4(), elemFloat2x2(), elemFloat3x3(), elemFloat4x4(), elemString() {} - /** - * Destructor - */ - virtual ~domFx_annotate_type_common() {} - /** - * Copy Constructor - */ - domFx_annotate_type_common( const domFx_annotate_type_common &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_annotate_type_common &operator=( const domFx_annotate_type_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_basic_type_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_basic_type_common.h deleted file mode 100644 index 5a55a7a7d..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_basic_type_common.h +++ /dev/null @@ -1,2379 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_basic_type_common_h__ -#define __domFx_basic_type_common_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -/** - * A group that specifies the allowable types for effect scoped parameters. - */ -class domFx_basic_type_common : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_BASIC_TYPE_COMMON; } -public: - class domBool; - - typedef daeSmartRef domBoolRef; - typedef daeTArray domBool_Array; - - class domBool : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL; } - - protected: // Value - /** - * The ::domBool value of the text data of this element. - */ - ::domBool _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a ::domBool of the value. - */ - ::domBool getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::domBool val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool() : _value() {} - /** - * Destructor - */ - virtual ~domBool() {} - /** - * Copy Constructor - */ - domBool( const domBool &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool &operator=( const domBool &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool2; - - typedef daeSmartRef domBool2Ref; - typedef daeTArray domBool2_Array; - - class domBool2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL2; } - - protected: // Value - /** - * The ::domBool2 value of the text data of this element. - */ - ::domBool2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domBool2 reference of the _value array. - */ - ::domBool2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domBool2 reference of the _value array. - */ - const ::domBool2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domBool2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool2() : _value() {} - /** - * Destructor - */ - virtual ~domBool2() {} - /** - * Copy Constructor - */ - domBool2( const domBool2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool2 &operator=( const domBool2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool3; - - typedef daeSmartRef domBool3Ref; - typedef daeTArray domBool3_Array; - - class domBool3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL3; } - - protected: // Value - /** - * The ::domBool3 value of the text data of this element. - */ - ::domBool3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domBool3 reference of the _value array. - */ - ::domBool3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domBool3 reference of the _value array. - */ - const ::domBool3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domBool3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool3() : _value() {} - /** - * Destructor - */ - virtual ~domBool3() {} - /** - * Copy Constructor - */ - domBool3( const domBool3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool3 &operator=( const domBool3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool4; - - typedef daeSmartRef domBool4Ref; - typedef daeTArray domBool4_Array; - - class domBool4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL4; } - - protected: // Value - /** - * The ::domBool4 value of the text data of this element. - */ - ::domBool4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domBool4 reference of the _value array. - */ - ::domBool4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domBool4 reference of the _value array. - */ - const ::domBool4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domBool4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool4() : _value() {} - /** - * Destructor - */ - virtual ~domBool4() {} - /** - * Copy Constructor - */ - domBool4( const domBool4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool4 &operator=( const domBool4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt; - - typedef daeSmartRef domIntRef; - typedef daeTArray domInt_Array; - - class domInt : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT; } - - protected: // Value - /** - * The ::domInt value of the text data of this element. - */ - ::domInt _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a ::domInt of the value. - */ - ::domInt getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::domInt val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt() : _value() {} - /** - * Destructor - */ - virtual ~domInt() {} - /** - * Copy Constructor - */ - domInt( const domInt &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt &operator=( const domInt &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt2; - - typedef daeSmartRef domInt2Ref; - typedef daeTArray domInt2_Array; - - class domInt2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT2; } - - protected: // Value - /** - * The ::domInt2 value of the text data of this element. - */ - ::domInt2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domInt2 reference of the _value array. - */ - ::domInt2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domInt2 reference of the _value array. - */ - const ::domInt2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domInt2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt2() : _value() {} - /** - * Destructor - */ - virtual ~domInt2() {} - /** - * Copy Constructor - */ - domInt2( const domInt2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt2 &operator=( const domInt2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt3; - - typedef daeSmartRef domInt3Ref; - typedef daeTArray domInt3_Array; - - class domInt3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT3; } - - protected: // Value - /** - * The ::domInt3 value of the text data of this element. - */ - ::domInt3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domInt3 reference of the _value array. - */ - ::domInt3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domInt3 reference of the _value array. - */ - const ::domInt3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domInt3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt3() : _value() {} - /** - * Destructor - */ - virtual ~domInt3() {} - /** - * Copy Constructor - */ - domInt3( const domInt3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt3 &operator=( const domInt3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt4; - - typedef daeSmartRef domInt4Ref; - typedef daeTArray domInt4_Array; - - class domInt4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT4; } - - protected: // Value - /** - * The ::domInt4 value of the text data of this element. - */ - ::domInt4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domInt4 reference of the _value array. - */ - ::domInt4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domInt4 reference of the _value array. - */ - const ::domInt4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domInt4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt4() : _value() {} - /** - * Destructor - */ - virtual ~domInt4() {} - /** - * Copy Constructor - */ - domInt4( const domInt4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt4 &operator=( const domInt4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat; - - typedef daeSmartRef domFloatRef; - typedef daeTArray domFloat_Array; - - class domFloat : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT; } - - protected: // Value - /** - * The ::domFloat value of the text data of this element. - */ - ::domFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a ::domFloat of the value. - */ - ::domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::domFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat() : _value() {} - /** - * Destructor - */ - virtual ~domFloat() {} - /** - * Copy Constructor - */ - domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat &operator=( const domFloat &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2; - - typedef daeSmartRef domFloat2Ref; - typedef daeTArray domFloat2_Array; - - class domFloat2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2; } - - protected: // Value - /** - * The ::domFloat2 value of the text data of this element. - */ - ::domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2 reference of the _value array. - */ - ::domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2 reference of the _value array. - */ - const ::domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2() {} - /** - * Copy Constructor - */ - domFloat2( const domFloat2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2 &operator=( const domFloat2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3; - - typedef daeSmartRef domFloat3Ref; - typedef daeTArray domFloat3_Array; - - class domFloat3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3; } - - protected: // Value - /** - * The ::domFloat3 value of the text data of this element. - */ - ::domFloat3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3 reference of the _value array. - */ - ::domFloat3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3 reference of the _value array. - */ - const ::domFloat3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3() {} - /** - * Copy Constructor - */ - domFloat3( const domFloat3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3 &operator=( const domFloat3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4; - - typedef daeSmartRef domFloat4Ref; - typedef daeTArray domFloat4_Array; - - class domFloat4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4; } - - protected: // Value - /** - * The ::domFloat4 value of the text data of this element. - */ - ::domFloat4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4 reference of the _value array. - */ - ::domFloat4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4 reference of the _value array. - */ - const ::domFloat4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4() {} - /** - * Copy Constructor - */ - domFloat4( const domFloat4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4 &operator=( const domFloat4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat1x1; - - typedef daeSmartRef domFloat1x1Ref; - typedef daeTArray domFloat1x1_Array; - - class domFloat1x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT1X1; } - - protected: // Value - /** - * The ::domFloat value of the text data of this element. - */ - ::domFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a ::domFloat of the value. - */ - ::domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::domFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat1x1() : _value() {} - /** - * Destructor - */ - virtual ~domFloat1x1() {} - /** - * Copy Constructor - */ - domFloat1x1( const domFloat1x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat1x1 &operator=( const domFloat1x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat1x2; - - typedef daeSmartRef domFloat1x2Ref; - typedef daeTArray domFloat1x2_Array; - - class domFloat1x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT1X2; } - - protected: // Value - /** - * The ::domFloat2 value of the text data of this element. - */ - ::domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2 reference of the _value array. - */ - ::domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2 reference of the _value array. - */ - const ::domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat1x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat1x2() {} - /** - * Copy Constructor - */ - domFloat1x2( const domFloat1x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat1x2 &operator=( const domFloat1x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat1x3; - - typedef daeSmartRef domFloat1x3Ref; - typedef daeTArray domFloat1x3_Array; - - class domFloat1x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT1X3; } - - protected: // Value - /** - * The ::domFloat3 value of the text data of this element. - */ - ::domFloat3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3 reference of the _value array. - */ - ::domFloat3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3 reference of the _value array. - */ - const ::domFloat3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat1x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat1x3() {} - /** - * Copy Constructor - */ - domFloat1x3( const domFloat1x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat1x3 &operator=( const domFloat1x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat1x4; - - typedef daeSmartRef domFloat1x4Ref; - typedef daeTArray domFloat1x4_Array; - - class domFloat1x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT1X4; } - - protected: // Value - /** - * The ::domFloat4 value of the text data of this element. - */ - ::domFloat4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4 reference of the _value array. - */ - ::domFloat4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4 reference of the _value array. - */ - const ::domFloat4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat1x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat1x4() {} - /** - * Copy Constructor - */ - domFloat1x4( const domFloat1x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat1x4 &operator=( const domFloat1x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x1; - - typedef daeSmartRef domFloat2x1Ref; - typedef daeTArray domFloat2x1_Array; - - class domFloat2x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X1; } - - protected: // Value - /** - * The ::domFloat2 value of the text data of this element. - */ - ::domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2 reference of the _value array. - */ - ::domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2 reference of the _value array. - */ - const ::domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x1() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x1() {} - /** - * Copy Constructor - */ - domFloat2x1( const domFloat2x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x1 &operator=( const domFloat2x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x2; - - typedef daeSmartRef domFloat2x2Ref; - typedef daeTArray domFloat2x2_Array; - - class domFloat2x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X2; } - - protected: // Value - /** - * The ::domFloat2x2 value of the text data of this element. - */ - ::domFloat2x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2x2 reference of the _value array. - */ - ::domFloat2x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2x2 reference of the _value array. - */ - const ::domFloat2x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x2() {} - /** - * Copy Constructor - */ - domFloat2x2( const domFloat2x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x2 &operator=( const domFloat2x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x3; - - typedef daeSmartRef domFloat2x3Ref; - typedef daeTArray domFloat2x3_Array; - - class domFloat2x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X3; } - - protected: // Value - /** - * The ::domFloat2x3 value of the text data of this element. - */ - ::domFloat2x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2x3 reference of the _value array. - */ - ::domFloat2x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2x3 reference of the _value array. - */ - const ::domFloat2x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x3() {} - /** - * Copy Constructor - */ - domFloat2x3( const domFloat2x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x3 &operator=( const domFloat2x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x4; - - typedef daeSmartRef domFloat2x4Ref; - typedef daeTArray domFloat2x4_Array; - - class domFloat2x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X4; } - - protected: // Value - /** - * The ::domFloat2x4 value of the text data of this element. - */ - ::domFloat2x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2x4 reference of the _value array. - */ - ::domFloat2x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2x4 reference of the _value array. - */ - const ::domFloat2x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x4() {} - /** - * Copy Constructor - */ - domFloat2x4( const domFloat2x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x4 &operator=( const domFloat2x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x1; - - typedef daeSmartRef domFloat3x1Ref; - typedef daeTArray domFloat3x1_Array; - - class domFloat3x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X1; } - - protected: // Value - /** - * The ::domFloat3 value of the text data of this element. - */ - ::domFloat3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3 reference of the _value array. - */ - ::domFloat3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3 reference of the _value array. - */ - const ::domFloat3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x1() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x1() {} - /** - * Copy Constructor - */ - domFloat3x1( const domFloat3x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x1 &operator=( const domFloat3x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x2; - - typedef daeSmartRef domFloat3x2Ref; - typedef daeTArray domFloat3x2_Array; - - class domFloat3x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X2; } - - protected: // Value - /** - * The ::domFloat3x2 value of the text data of this element. - */ - ::domFloat3x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3x2 reference of the _value array. - */ - ::domFloat3x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3x2 reference of the _value array. - */ - const ::domFloat3x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x2() {} - /** - * Copy Constructor - */ - domFloat3x2( const domFloat3x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x2 &operator=( const domFloat3x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x3; - - typedef daeSmartRef domFloat3x3Ref; - typedef daeTArray domFloat3x3_Array; - - class domFloat3x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X3; } - - protected: // Value - /** - * The ::domFloat3x3 value of the text data of this element. - */ - ::domFloat3x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3x3 reference of the _value array. - */ - ::domFloat3x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3x3 reference of the _value array. - */ - const ::domFloat3x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x3() {} - /** - * Copy Constructor - */ - domFloat3x3( const domFloat3x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x3 &operator=( const domFloat3x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x4; - - typedef daeSmartRef domFloat3x4Ref; - typedef daeTArray domFloat3x4_Array; - - class domFloat3x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X4; } - - protected: // Value - /** - * The ::domFloat3x4 value of the text data of this element. - */ - ::domFloat3x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3x4 reference of the _value array. - */ - ::domFloat3x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3x4 reference of the _value array. - */ - const ::domFloat3x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x4() {} - /** - * Copy Constructor - */ - domFloat3x4( const domFloat3x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x4 &operator=( const domFloat3x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x1; - - typedef daeSmartRef domFloat4x1Ref; - typedef daeTArray domFloat4x1_Array; - - class domFloat4x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X1; } - - protected: // Value - /** - * The ::domFloat4 value of the text data of this element. - */ - ::domFloat4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4 reference of the _value array. - */ - ::domFloat4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4 reference of the _value array. - */ - const ::domFloat4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x1() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x1() {} - /** - * Copy Constructor - */ - domFloat4x1( const domFloat4x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x1 &operator=( const domFloat4x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x2; - - typedef daeSmartRef domFloat4x2Ref; - typedef daeTArray domFloat4x2_Array; - - class domFloat4x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X2; } - - protected: // Value - /** - * The ::domFloat4x2 value of the text data of this element. - */ - ::domFloat4x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4x2 reference of the _value array. - */ - ::domFloat4x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4x2 reference of the _value array. - */ - const ::domFloat4x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x2() {} - /** - * Copy Constructor - */ - domFloat4x2( const domFloat4x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x2 &operator=( const domFloat4x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x3; - - typedef daeSmartRef domFloat4x3Ref; - typedef daeTArray domFloat4x3_Array; - - class domFloat4x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X3; } - - protected: // Value - /** - * The ::domFloat4x3 value of the text data of this element. - */ - ::domFloat4x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4x3 reference of the _value array. - */ - ::domFloat4x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4x3 reference of the _value array. - */ - const ::domFloat4x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x3() {} - /** - * Copy Constructor - */ - domFloat4x3( const domFloat4x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x3 &operator=( const domFloat4x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x4; - - typedef daeSmartRef domFloat4x4Ref; - typedef daeTArray domFloat4x4_Array; - - class domFloat4x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X4; } - - protected: // Value - /** - * The ::domFloat4x4 value of the text data of this element. - */ - ::domFloat4x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4x4 reference of the _value array. - */ - ::domFloat4x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4x4 reference of the _value array. - */ - const ::domFloat4x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x4() {} - /** - * Copy Constructor - */ - domFloat4x4( const domFloat4x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x4 &operator=( const domFloat4x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domEnum; - - typedef daeSmartRef domEnumRef; - typedef daeTArray domEnum_Array; - - class domEnum : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ENUM; } - - protected: // Value - /** - * The xsString value of the text data of this element. - */ - xsString _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsString of the value. - */ - xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsString val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domEnum() : _value() {} - /** - * Destructor - */ - virtual ~domEnum() {} - /** - * Copy Constructor - */ - domEnum( const domEnum &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domEnum &operator=( const domEnum &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domBoolRef elemBool; - domBool2Ref elemBool2; - domBool3Ref elemBool3; - domBool4Ref elemBool4; - domIntRef elemInt; - domInt2Ref elemInt2; - domInt3Ref elemInt3; - domInt4Ref elemInt4; - domFloatRef elemFloat; - domFloat2Ref elemFloat2; - domFloat3Ref elemFloat3; - domFloat4Ref elemFloat4; - domFloat1x1Ref elemFloat1x1; - domFloat1x2Ref elemFloat1x2; - domFloat1x3Ref elemFloat1x3; - domFloat1x4Ref elemFloat1x4; - domFloat2x1Ref elemFloat2x1; - domFloat2x2Ref elemFloat2x2; - domFloat2x3Ref elemFloat2x3; - domFloat2x4Ref elemFloat2x4; - domFloat3x1Ref elemFloat3x1; - domFloat3x2Ref elemFloat3x2; - domFloat3x3Ref elemFloat3x3; - domFloat3x4Ref elemFloat3x4; - domFloat4x1Ref elemFloat4x1; - domFloat4x2Ref elemFloat4x2; - domFloat4x3Ref elemFloat4x3; - domFloat4x4Ref elemFloat4x4; - domFx_surface_commonRef elemSurface; - domFx_sampler1D_commonRef elemSampler1D; - domFx_sampler2D_commonRef elemSampler2D; - domFx_sampler3D_commonRef elemSampler3D; - domFx_samplerCUBE_commonRef elemSamplerCUBE; - domFx_samplerRECT_commonRef elemSamplerRECT; - domFx_samplerDEPTH_commonRef elemSamplerDEPTH; - domEnumRef elemEnum; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the bool element. - * @return a daeSmartRef to the bool element. - */ - const domBoolRef getBool() const { return elemBool; } - /** - * Gets the bool2 element. - * @return a daeSmartRef to the bool2 element. - */ - const domBool2Ref getBool2() const { return elemBool2; } - /** - * Gets the bool3 element. - * @return a daeSmartRef to the bool3 element. - */ - const domBool3Ref getBool3() const { return elemBool3; } - /** - * Gets the bool4 element. - * @return a daeSmartRef to the bool4 element. - */ - const domBool4Ref getBool4() const { return elemBool4; } - /** - * Gets the int element. - * @return a daeSmartRef to the int element. - */ - const domIntRef getInt() const { return elemInt; } - /** - * Gets the int2 element. - * @return a daeSmartRef to the int2 element. - */ - const domInt2Ref getInt2() const { return elemInt2; } - /** - * Gets the int3 element. - * @return a daeSmartRef to the int3 element. - */ - const domInt3Ref getInt3() const { return elemInt3; } - /** - * Gets the int4 element. - * @return a daeSmartRef to the int4 element. - */ - const domInt4Ref getInt4() const { return elemInt4; } - /** - * Gets the float element. - * @return a daeSmartRef to the float element. - */ - const domFloatRef getFloat() const { return elemFloat; } - /** - * Gets the float2 element. - * @return a daeSmartRef to the float2 element. - */ - const domFloat2Ref getFloat2() const { return elemFloat2; } - /** - * Gets the float3 element. - * @return a daeSmartRef to the float3 element. - */ - const domFloat3Ref getFloat3() const { return elemFloat3; } - /** - * Gets the float4 element. - * @return a daeSmartRef to the float4 element. - */ - const domFloat4Ref getFloat4() const { return elemFloat4; } - /** - * Gets the float1x1 element. - * @return a daeSmartRef to the float1x1 element. - */ - const domFloat1x1Ref getFloat1x1() const { return elemFloat1x1; } - /** - * Gets the float1x2 element. - * @return a daeSmartRef to the float1x2 element. - */ - const domFloat1x2Ref getFloat1x2() const { return elemFloat1x2; } - /** - * Gets the float1x3 element. - * @return a daeSmartRef to the float1x3 element. - */ - const domFloat1x3Ref getFloat1x3() const { return elemFloat1x3; } - /** - * Gets the float1x4 element. - * @return a daeSmartRef to the float1x4 element. - */ - const domFloat1x4Ref getFloat1x4() const { return elemFloat1x4; } - /** - * Gets the float2x1 element. - * @return a daeSmartRef to the float2x1 element. - */ - const domFloat2x1Ref getFloat2x1() const { return elemFloat2x1; } - /** - * Gets the float2x2 element. - * @return a daeSmartRef to the float2x2 element. - */ - const domFloat2x2Ref getFloat2x2() const { return elemFloat2x2; } - /** - * Gets the float2x3 element. - * @return a daeSmartRef to the float2x3 element. - */ - const domFloat2x3Ref getFloat2x3() const { return elemFloat2x3; } - /** - * Gets the float2x4 element. - * @return a daeSmartRef to the float2x4 element. - */ - const domFloat2x4Ref getFloat2x4() const { return elemFloat2x4; } - /** - * Gets the float3x1 element. - * @return a daeSmartRef to the float3x1 element. - */ - const domFloat3x1Ref getFloat3x1() const { return elemFloat3x1; } - /** - * Gets the float3x2 element. - * @return a daeSmartRef to the float3x2 element. - */ - const domFloat3x2Ref getFloat3x2() const { return elemFloat3x2; } - /** - * Gets the float3x3 element. - * @return a daeSmartRef to the float3x3 element. - */ - const domFloat3x3Ref getFloat3x3() const { return elemFloat3x3; } - /** - * Gets the float3x4 element. - * @return a daeSmartRef to the float3x4 element. - */ - const domFloat3x4Ref getFloat3x4() const { return elemFloat3x4; } - /** - * Gets the float4x1 element. - * @return a daeSmartRef to the float4x1 element. - */ - const domFloat4x1Ref getFloat4x1() const { return elemFloat4x1; } - /** - * Gets the float4x2 element. - * @return a daeSmartRef to the float4x2 element. - */ - const domFloat4x2Ref getFloat4x2() const { return elemFloat4x2; } - /** - * Gets the float4x3 element. - * @return a daeSmartRef to the float4x3 element. - */ - const domFloat4x3Ref getFloat4x3() const { return elemFloat4x3; } - /** - * Gets the float4x4 element. - * @return a daeSmartRef to the float4x4 element. - */ - const domFloat4x4Ref getFloat4x4() const { return elemFloat4x4; } - /** - * Gets the surface element. - * @return a daeSmartRef to the surface element. - */ - const domFx_surface_commonRef getSurface() const { return elemSurface; } - /** - * Gets the sampler1D element. - * @return a daeSmartRef to the sampler1D element. - */ - const domFx_sampler1D_commonRef getSampler1D() const { return elemSampler1D; } - /** - * Gets the sampler2D element. - * @return a daeSmartRef to the sampler2D element. - */ - const domFx_sampler2D_commonRef getSampler2D() const { return elemSampler2D; } - /** - * Gets the sampler3D element. - * @return a daeSmartRef to the sampler3D element. - */ - const domFx_sampler3D_commonRef getSampler3D() const { return elemSampler3D; } - /** - * Gets the samplerCUBE element. - * @return a daeSmartRef to the samplerCUBE element. - */ - const domFx_samplerCUBE_commonRef getSamplerCUBE() const { return elemSamplerCUBE; } - /** - * Gets the samplerRECT element. - * @return a daeSmartRef to the samplerRECT element. - */ - const domFx_samplerRECT_commonRef getSamplerRECT() const { return elemSamplerRECT; } - /** - * Gets the samplerDEPTH element. - * @return a daeSmartRef to the samplerDEPTH element. - */ - const domFx_samplerDEPTH_commonRef getSamplerDEPTH() const { return elemSamplerDEPTH; } - /** - * Gets the enum element. - * @return a daeSmartRef to the enum element. - */ - const domEnumRef getEnum() const { return elemEnum; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domFx_basic_type_common() : elemBool(), elemBool2(), elemBool3(), elemBool4(), elemInt(), elemInt2(), elemInt3(), elemInt4(), elemFloat(), elemFloat2(), elemFloat3(), elemFloat4(), elemFloat1x1(), elemFloat1x2(), elemFloat1x3(), elemFloat1x4(), elemFloat2x1(), elemFloat2x2(), elemFloat2x3(), elemFloat2x4(), elemFloat3x1(), elemFloat3x2(), elemFloat3x3(), elemFloat3x4(), elemFloat4x1(), elemFloat4x2(), elemFloat4x3(), elemFloat4x4(), elemSurface(), elemSampler1D(), elemSampler2D(), elemSampler3D(), elemSamplerCUBE(), elemSamplerRECT(), elemSamplerDEPTH(), elemEnum() {} - /** - * Destructor - */ - virtual ~domFx_basic_type_common() {} - /** - * Copy Constructor - */ - domFx_basic_type_common( const domFx_basic_type_common &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_basic_type_common &operator=( const domFx_basic_type_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_clearcolor_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_clearcolor_common.h deleted file mode 100644 index a557d9c33..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_clearcolor_common.h +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_clearcolor_common_h__ -#define __domFx_clearcolor_common_h__ - -#include -#include - - -class domFx_clearcolor_common_complexType -{ -protected: // Attribute - xsNonNegativeInteger attrIndex; - -protected: // Value - /** - * The domFx_color_common value of the text data of this element. - */ - domFx_color_common _value; - -public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a xsNonNegativeInteger of the index attribute. - */ - xsNonNegativeInteger getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } - - /** - * Gets the _value array. - * @return Returns a domFx_color_common reference of the _value array. - */ - domFx_color_common &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFx_color_common reference of the _value array. - */ - const domFx_color_common &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFx_color_common &val ) { _value = val; } - -protected: - /** - * Constructor - */ - domFx_clearcolor_common_complexType() : attrIndex(), _value() {} - /** - * Destructor - */ - virtual ~domFx_clearcolor_common_complexType() {} - /** - * Copy Constructor - */ - domFx_clearcolor_common_complexType( const domFx_clearcolor_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_clearcolor_common_complexType &operator=( const domFx_clearcolor_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_clearcolor_common_complexType. - */ -class domFx_clearcolor_common : public daeElement, public domFx_clearcolor_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_CLEARCOLOR_COMMON; } - -public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a xsNonNegativeInteger of the index attribute. - */ - xsNonNegativeInteger getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domFx_clearcolor_common() {} - /** - * Destructor - */ - virtual ~domFx_clearcolor_common() {} - /** - * Copy Constructor - */ - domFx_clearcolor_common( const domFx_clearcolor_common &cpy ) : daeElement(), domFx_clearcolor_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_clearcolor_common &operator=( const domFx_clearcolor_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_cleardepth_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_cleardepth_common.h deleted file mode 100644 index d3e2e7989..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_cleardepth_common.h +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_cleardepth_common_h__ -#define __domFx_cleardepth_common_h__ - -#include -#include - - -class domFx_cleardepth_common_complexType -{ -protected: // Attribute - xsNonNegativeInteger attrIndex; - -protected: // Value - /** - * The domFloat value of the text data of this element. - */ - domFloat _value; - -public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a xsNonNegativeInteger of the index attribute. - */ - xsNonNegativeInteger getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } - - /** - * Gets the value of this element. - * @return a domFloat of the value. - */ - domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFloat val ) { _value = val; } - -protected: - /** - * Constructor - */ - domFx_cleardepth_common_complexType() : attrIndex(), _value() {} - /** - * Destructor - */ - virtual ~domFx_cleardepth_common_complexType() {} - /** - * Copy Constructor - */ - domFx_cleardepth_common_complexType( const domFx_cleardepth_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_cleardepth_common_complexType &operator=( const domFx_cleardepth_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_cleardepth_common_complexType. - */ -class domFx_cleardepth_common : public daeElement, public domFx_cleardepth_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_CLEARDEPTH_COMMON; } - -public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a xsNonNegativeInteger of the index attribute. - */ - xsNonNegativeInteger getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domFx_cleardepth_common() {} - /** - * Destructor - */ - virtual ~domFx_cleardepth_common() {} - /** - * Copy Constructor - */ - domFx_cleardepth_common( const domFx_cleardepth_common &cpy ) : daeElement(), domFx_cleardepth_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_cleardepth_common &operator=( const domFx_cleardepth_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_clearstencil_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_clearstencil_common.h deleted file mode 100644 index e40a073f8..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_clearstencil_common.h +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_clearstencil_common_h__ -#define __domFx_clearstencil_common_h__ - -#include -#include - - -class domFx_clearstencil_common_complexType -{ -protected: // Attribute - xsNonNegativeInteger attrIndex; - -protected: // Value - /** - * The xsByte value of the text data of this element. - */ - xsByte _value; - -public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a xsNonNegativeInteger of the index attribute. - */ - xsNonNegativeInteger getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } - - /** - * Gets the value of this element. - * @return a xsByte of the value. - */ - xsByte getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsByte val ) { _value = val; } - -protected: - /** - * Constructor - */ - domFx_clearstencil_common_complexType() : attrIndex(), _value() {} - /** - * Destructor - */ - virtual ~domFx_clearstencil_common_complexType() {} - /** - * Copy Constructor - */ - domFx_clearstencil_common_complexType( const domFx_clearstencil_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_clearstencil_common_complexType &operator=( const domFx_clearstencil_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_clearstencil_common_complexType. - */ -class domFx_clearstencil_common : public daeElement, public domFx_clearstencil_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_CLEARSTENCIL_COMMON; } - -public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a xsNonNegativeInteger of the index attribute. - */ - xsNonNegativeInteger getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domFx_clearstencil_common() {} - /** - * Destructor - */ - virtual ~domFx_clearstencil_common() {} - /** - * Copy Constructor - */ - domFx_clearstencil_common( const domFx_clearstencil_common &cpy ) : daeElement(), domFx_clearstencil_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_clearstencil_common &operator=( const domFx_clearstencil_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_code_profile.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_code_profile.h deleted file mode 100644 index 40d435dfe..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_code_profile.h +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_code_profile_h__ -#define __domFx_code_profile_h__ - -#include -#include - - -/** - * The fx_code_profile type allows you to specify an inline block of source - * code. - */ -class domFx_code_profile_complexType -{ -protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - -protected: // Value - /** - * The xsString value of the text data of this element. - */ - xsString _value; - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; } - - /** - * Gets the value of this element. - * @return Returns a xsString of the value. - */ - xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsString val ) { *(daeStringRef*)&_value = val; } - -protected: - /** - * Constructor - */ - domFx_code_profile_complexType() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domFx_code_profile_complexType() {} - /** - * Copy Constructor - */ - domFx_code_profile_complexType( const domFx_code_profile_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_code_profile_complexType &operator=( const domFx_code_profile_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_code_profile_complexType. - */ -class domFx_code_profile : public daeElement, public domFx_code_profile_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_CODE_PROFILE; } - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domFx_code_profile() {} - /** - * Destructor - */ - virtual ~domFx_code_profile() {} - /** - * Copy Constructor - */ - domFx_code_profile( const domFx_code_profile &cpy ) : daeElement(), domFx_code_profile_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_code_profile &operator=( const domFx_code_profile &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_colortarget_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_colortarget_common.h deleted file mode 100644 index be3e11856..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_colortarget_common.h +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_colortarget_common_h__ -#define __domFx_colortarget_common_h__ - -#include -#include - - -class domFx_colortarget_common_complexType -{ -protected: // Attributes - xsNonNegativeInteger attrIndex; - domFx_surface_face_enum attrFace; - xsNonNegativeInteger attrMip; - xsNonNegativeInteger attrSlice; - -protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - -public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a xsNonNegativeInteger of the index attribute. - */ - xsNonNegativeInteger getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } - - /** - * Gets the face attribute. - * @return Returns a domFx_surface_face_enum of the face attribute. - */ - domFx_surface_face_enum getFace() const { return attrFace; } - /** - * Sets the face attribute. - * @param atFace The new value for the face attribute. - */ - void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; } - - /** - * Gets the mip attribute. - * @return Returns a xsNonNegativeInteger of the mip attribute. - */ - xsNonNegativeInteger getMip() const { return attrMip; } - /** - * Sets the mip attribute. - * @param atMip The new value for the mip attribute. - */ - void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; } - - /** - * Gets the slice attribute. - * @return Returns a xsNonNegativeInteger of the slice attribute. - */ - xsNonNegativeInteger getSlice() const { return attrSlice; } - /** - * Sets the slice attribute. - * @param atSlice The new value for the slice attribute. - */ - void setSlice( xsNonNegativeInteger atSlice ) { attrSlice = atSlice; } - - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - -protected: - /** - * Constructor - */ - domFx_colortarget_common_complexType() : attrIndex(), attrFace(), attrMip(), attrSlice(), _value() {} - /** - * Destructor - */ - virtual ~domFx_colortarget_common_complexType() {} - /** - * Copy Constructor - */ - domFx_colortarget_common_complexType( const domFx_colortarget_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_colortarget_common_complexType &operator=( const domFx_colortarget_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_colortarget_common_complexType. - */ -class domFx_colortarget_common : public daeElement, public domFx_colortarget_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_COLORTARGET_COMMON; } - -public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a xsNonNegativeInteger of the index attribute. - */ - xsNonNegativeInteger getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; - _validAttributeArray[0] = true; } - - /** - * Gets the face attribute. - * @return Returns a domFx_surface_face_enum of the face attribute. - */ - domFx_surface_face_enum getFace() const { return attrFace; } - /** - * Sets the face attribute. - * @param atFace The new value for the face attribute. - */ - void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; - _validAttributeArray[1] = true; } - - /** - * Gets the mip attribute. - * @return Returns a xsNonNegativeInteger of the mip attribute. - */ - xsNonNegativeInteger getMip() const { return attrMip; } - /** - * Sets the mip attribute. - * @param atMip The new value for the mip attribute. - */ - void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; - _validAttributeArray[2] = true; } - - /** - * Gets the slice attribute. - * @return Returns a xsNonNegativeInteger of the slice attribute. - */ - xsNonNegativeInteger getSlice() const { return attrSlice; } - /** - * Sets the slice attribute. - * @param atSlice The new value for the slice attribute. - */ - void setSlice( xsNonNegativeInteger atSlice ) { attrSlice = atSlice; - _validAttributeArray[3] = true; } - -protected: - /** - * Constructor - */ - domFx_colortarget_common() {} - /** - * Destructor - */ - virtual ~domFx_colortarget_common() {} - /** - * Copy Constructor - */ - domFx_colortarget_common( const domFx_colortarget_common &cpy ) : daeElement(), domFx_colortarget_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_colortarget_common &operator=( const domFx_colortarget_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_depthtarget_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_depthtarget_common.h deleted file mode 100644 index 277957afb..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_depthtarget_common.h +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_depthtarget_common_h__ -#define __domFx_depthtarget_common_h__ - -#include -#include - - -class domFx_depthtarget_common_complexType -{ -protected: // Attributes - xsNonNegativeInteger attrIndex; - domFx_surface_face_enum attrFace; - xsNonNegativeInteger attrMip; - xsNonNegativeInteger attrSlice; - -protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - -public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a xsNonNegativeInteger of the index attribute. - */ - xsNonNegativeInteger getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } - - /** - * Gets the face attribute. - * @return Returns a domFx_surface_face_enum of the face attribute. - */ - domFx_surface_face_enum getFace() const { return attrFace; } - /** - * Sets the face attribute. - * @param atFace The new value for the face attribute. - */ - void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; } - - /** - * Gets the mip attribute. - * @return Returns a xsNonNegativeInteger of the mip attribute. - */ - xsNonNegativeInteger getMip() const { return attrMip; } - /** - * Sets the mip attribute. - * @param atMip The new value for the mip attribute. - */ - void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; } - - /** - * Gets the slice attribute. - * @return Returns a xsNonNegativeInteger of the slice attribute. - */ - xsNonNegativeInteger getSlice() const { return attrSlice; } - /** - * Sets the slice attribute. - * @param atSlice The new value for the slice attribute. - */ - void setSlice( xsNonNegativeInteger atSlice ) { attrSlice = atSlice; } - - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - -protected: - /** - * Constructor - */ - domFx_depthtarget_common_complexType() : attrIndex(), attrFace(), attrMip(), attrSlice(), _value() {} - /** - * Destructor - */ - virtual ~domFx_depthtarget_common_complexType() {} - /** - * Copy Constructor - */ - domFx_depthtarget_common_complexType( const domFx_depthtarget_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_depthtarget_common_complexType &operator=( const domFx_depthtarget_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_depthtarget_common_complexType. - */ -class domFx_depthtarget_common : public daeElement, public domFx_depthtarget_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_DEPTHTARGET_COMMON; } - -public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a xsNonNegativeInteger of the index attribute. - */ - xsNonNegativeInteger getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; - _validAttributeArray[0] = true; } - - /** - * Gets the face attribute. - * @return Returns a domFx_surface_face_enum of the face attribute. - */ - domFx_surface_face_enum getFace() const { return attrFace; } - /** - * Sets the face attribute. - * @param atFace The new value for the face attribute. - */ - void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; - _validAttributeArray[1] = true; } - - /** - * Gets the mip attribute. - * @return Returns a xsNonNegativeInteger of the mip attribute. - */ - xsNonNegativeInteger getMip() const { return attrMip; } - /** - * Sets the mip attribute. - * @param atMip The new value for the mip attribute. - */ - void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; - _validAttributeArray[2] = true; } - - /** - * Gets the slice attribute. - * @return Returns a xsNonNegativeInteger of the slice attribute. - */ - xsNonNegativeInteger getSlice() const { return attrSlice; } - /** - * Sets the slice attribute. - * @param atSlice The new value for the slice attribute. - */ - void setSlice( xsNonNegativeInteger atSlice ) { attrSlice = atSlice; - _validAttributeArray[3] = true; } - -protected: - /** - * Constructor - */ - domFx_depthtarget_common() {} - /** - * Destructor - */ - virtual ~domFx_depthtarget_common() {} - /** - * Copy Constructor - */ - domFx_depthtarget_common( const domFx_depthtarget_common &cpy ) : daeElement(), domFx_depthtarget_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_depthtarget_common &operator=( const domFx_depthtarget_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_include_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_include_common.h deleted file mode 100644 index c9f7f6855..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_include_common.h +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_include_common_h__ -#define __domFx_include_common_h__ - -#include -#include - - -/** - * The include element is used to import source code or precompiled binary - * shaders into the FX Runtime by referencing an external resource. - */ -class domFx_include_common_complexType -{ -protected: // Attributes -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; -/** - * The url attribute refers to resource. This may refer to a local resource - * using a relative URL fragment identifier that begins with the “#†- * character. The url attribute may refer to an external resource using an - * absolute or relative URL. - */ - xsAnyURI attrUrl; - - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; } - - /** - * Gets the url attribute. - * @return Returns a xsAnyURI reference of the url attribute. - */ - xsAnyURI &getUrl() { return attrUrl; } - /** - * Gets the url attribute. - * @return Returns a constant xsAnyURI reference of the url attribute. - */ - const xsAnyURI &getUrl() const { return attrUrl; } - /** - * Sets the url attribute. - * @param atUrl The new value for the url attribute. - */ - void setUrl( const xsAnyURI &atUrl ) { attrUrl = atUrl; } - -protected: - /** - * Constructor - */ - domFx_include_common_complexType() : attrSid(), attrUrl() {} - /** - * Destructor - */ - virtual ~domFx_include_common_complexType() {} - /** - * Copy Constructor - */ - domFx_include_common_complexType( const domFx_include_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_include_common_complexType &operator=( const domFx_include_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_include_common_complexType. - */ -class domFx_include_common : public daeElement, public domFx_include_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_INCLUDE_COMMON; } - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the url attribute. - * @return Returns a xsAnyURI reference of the url attribute. - */ - xsAnyURI &getUrl() { return attrUrl; } - /** - * Gets the url attribute. - * @return Returns a constant xsAnyURI reference of the url attribute. - */ - const xsAnyURI &getUrl() const { return attrUrl; } - /** - * Sets the url attribute. - * @param atUrl The new value for the url attribute. - */ - void setUrl( const xsAnyURI &atUrl ) { attrUrl = atUrl; - _validAttributeArray[1] = true; } - -protected: - /** - * Constructor - */ - domFx_include_common() {} - /** - * Destructor - */ - virtual ~domFx_include_common() {} - /** - * Copy Constructor - */ - domFx_include_common( const domFx_include_common &cpy ) : daeElement(), domFx_include_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_include_common &operator=( const domFx_include_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_newparam_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_newparam_common.h deleted file mode 100644 index 555cfbece..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_newparam_common.h +++ /dev/null @@ -1,313 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_newparam_common_h__ -#define __domFx_newparam_common_h__ - -#include -#include - -#include -#include - -/** - * This element creates a new, named param object in the FX Runtime, assigns - * it a type, an initial value, and additional attributes at declaration time. - */ -class domFx_newparam_common_complexType -{ -public: - class domSemantic; - - typedef daeSmartRef domSemanticRef; - typedef daeTArray domSemantic_Array; - -/** - * The semantic element allows you to specify a semantic for this new param. - */ - class domSemantic : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SEMANTIC; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSemantic() : _value() {} - /** - * Destructor - */ - virtual ~domSemantic() {} - /** - * Copy Constructor - */ - domSemantic( const domSemantic &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSemantic &operator=( const domSemantic &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domModifier; - - typedef daeSmartRef domModifierRef; - typedef daeTArray domModifier_Array; - -/** - * The modifier element allows you to specify a modifier for this new param. - */ - class domModifier : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODIFIER; } - - protected: // Value - /** - * The domFx_modifier_enum_common value of the text data of this element. - */ - domFx_modifier_enum_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_modifier_enum_common of the value. - */ - domFx_modifier_enum_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_modifier_enum_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domModifier() : _value() {} - /** - * Destructor - */ - virtual ~domModifier() {} - /** - * Copy Constructor - */ - domModifier( const domModifier &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domModifier &operator=( const domModifier &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - -protected: // Elements -/** - * The annotate element allows you to specify an annotation for this new param. - * @see domAnnotate - */ - domFx_annotate_common_Array elemAnnotate_array; -/** - * The semantic element allows you to specify a semantic for this new param. - * @see domSemantic - */ - domSemanticRef elemSemantic; -/** - * The modifier element allows you to specify a modifier for this new param. - * @see domModifier - */ - domModifierRef elemModifier; - domFx_basic_type_commonRef elemFx_basic_type_common; - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the semantic element. - * @return a daeSmartRef to the semantic element. - */ - const domSemanticRef getSemantic() const { return elemSemantic; } - /** - * Gets the modifier element. - * @return a daeSmartRef to the modifier element. - */ - const domModifierRef getModifier() const { return elemModifier; } - /** - * Gets the fx_basic_type_common element. - * @return a daeSmartRef to the fx_basic_type_common element. - */ - const domFx_basic_type_commonRef getFx_basic_type_common() const { return elemFx_basic_type_common; } -protected: - /** - * Constructor - */ - domFx_newparam_common_complexType() : attrSid(), elemAnnotate_array(), elemSemantic(), elemModifier(), elemFx_basic_type_common() {} - /** - * Destructor - */ - virtual ~domFx_newparam_common_complexType() {} - /** - * Copy Constructor - */ - domFx_newparam_common_complexType( const domFx_newparam_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_newparam_common_complexType &operator=( const domFx_newparam_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_newparam_common_complexType. - */ -class domFx_newparam_common : public daeElement, public domFx_newparam_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_NEWPARAM_COMMON; } - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domFx_newparam_common() {} - /** - * Destructor - */ - virtual ~domFx_newparam_common() {} - /** - * Copy Constructor - */ - domFx_newparam_common( const domFx_newparam_common &cpy ) : daeElement(), domFx_newparam_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_newparam_common &operator=( const domFx_newparam_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_profile_abstract.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_profile_abstract.h deleted file mode 100644 index d7e29d7d9..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_profile_abstract.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_profile_abstract_h__ -#define __domFx_profile_abstract_h__ - -#include -#include - - -/** - * The fx_profile_abstract element is only used as a substitution group hook - * for COLLADA FX profiles. - */ -class domFx_profile_abstract : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_PROFILE_ABSTRACT; } - -protected: - /** - * Constructor - */ - domFx_profile_abstract() {} - /** - * Destructor - */ - virtual ~domFx_profile_abstract() {} - /** - * Copy Constructor - */ - domFx_profile_abstract( const domFx_profile_abstract &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_profile_abstract &operator=( const domFx_profile_abstract &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler1D_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler1D_common.h deleted file mode 100644 index ad398aca2..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler1D_common.h +++ /dev/null @@ -1,698 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_sampler1D_common_h__ -#define __domFx_sampler1D_common_h__ - -#include -#include - -#include - -/** - * A one-dimensional texture sampler. - */ -class domFx_sampler1D_common_complexType -{ -public: - class domSource; - - typedef daeSmartRef domSourceRef; - typedef daeTArray domSource_Array; - - class domSource : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSource() : _value() {} - /** - * Destructor - */ - virtual ~domSource() {} - /** - * Copy Constructor - */ - domSource( const domSource &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSource &operator=( const domSource &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_s; - - typedef daeSmartRef domWrap_sRef; - typedef daeTArray domWrap_s_Array; - - class domWrap_s : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; } - - protected: // Value - /** - * The domFx_sampler_wrap_common value of the text data of this element. - */ - domFx_sampler_wrap_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_wrap_common of the value. - */ - domFx_sampler_wrap_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_wrap_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_s() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_s() {} - /** - * Copy Constructor - */ - domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_s &operator=( const domWrap_s &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMinfilter; - - typedef daeSmartRef domMinfilterRef; - typedef daeTArray domMinfilter_Array; - - class domMinfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMinfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMinfilter() {} - /** - * Copy Constructor - */ - domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMinfilter &operator=( const domMinfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMagfilter; - - typedef daeSmartRef domMagfilterRef; - typedef daeTArray domMagfilter_Array; - - class domMagfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMagfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMagfilter() {} - /** - * Copy Constructor - */ - domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMagfilter &operator=( const domMagfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipfilter; - - typedef daeSmartRef domMipfilterRef; - typedef daeTArray domMipfilter_Array; - - class domMipfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMipfilter() {} - /** - * Copy Constructor - */ - domMipfilter( const domMipfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipfilter &operator=( const domMipfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBorder_color; - - typedef daeSmartRef domBorder_colorRef; - typedef daeTArray domBorder_color_Array; - - class domBorder_color : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BORDER_COLOR; } - - protected: // Value - /** - * The domFx_color_common value of the text data of this element. - */ - domFx_color_common _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFx_color_common reference of the _value array. - */ - domFx_color_common &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFx_color_common reference of the _value array. - */ - const domFx_color_common &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFx_color_common &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBorder_color() : _value() {} - /** - * Destructor - */ - virtual ~domBorder_color() {} - /** - * Copy Constructor - */ - domBorder_color( const domBorder_color &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBorder_color &operator=( const domBorder_color &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipmap_maxlevel; - - typedef daeSmartRef domMipmap_maxlevelRef; - typedef daeTArray domMipmap_maxlevel_Array; - - class domMipmap_maxlevel : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; } - - protected: // Value - /** - * The xsUnsignedByte value of the text data of this element. - */ - xsUnsignedByte _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsUnsignedByte of the value. - */ - xsUnsignedByte getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsUnsignedByte val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipmap_maxlevel() : _value() {} - /** - * Destructor - */ - virtual ~domMipmap_maxlevel() {} - /** - * Copy Constructor - */ - domMipmap_maxlevel( const domMipmap_maxlevel &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipmap_bias; - - typedef daeSmartRef domMipmap_biasRef; - typedef daeTArray domMipmap_bias_Array; - - class domMipmap_bias : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; } - - protected: // Value - /** - * The xsFloat value of the text data of this element. - */ - xsFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsFloat of the value. - */ - xsFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipmap_bias() : _value() {} - /** - * Destructor - */ - virtual ~domMipmap_bias() {} - /** - * Copy Constructor - */ - domMipmap_bias( const domMipmap_bias &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipmap_bias &operator=( const domMipmap_bias &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domSourceRef elemSource; - domWrap_sRef elemWrap_s; - domMinfilterRef elemMinfilter; - domMagfilterRef elemMagfilter; - domMipfilterRef elemMipfilter; - domBorder_colorRef elemBorder_color; - domMipmap_maxlevelRef elemMipmap_maxlevel; - domMipmap_biasRef elemMipmap_bias; - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the source element. - * @return a daeSmartRef to the source element. - */ - const domSourceRef getSource() const { return elemSource; } - /** - * Gets the wrap_s element. - * @return a daeSmartRef to the wrap_s element. - */ - const domWrap_sRef getWrap_s() const { return elemWrap_s; } - /** - * Gets the minfilter element. - * @return a daeSmartRef to the minfilter element. - */ - const domMinfilterRef getMinfilter() const { return elemMinfilter; } - /** - * Gets the magfilter element. - * @return a daeSmartRef to the magfilter element. - */ - const domMagfilterRef getMagfilter() const { return elemMagfilter; } - /** - * Gets the mipfilter element. - * @return a daeSmartRef to the mipfilter element. - */ - const domMipfilterRef getMipfilter() const { return elemMipfilter; } - /** - * Gets the border_color element. - * @return a daeSmartRef to the border_color element. - */ - const domBorder_colorRef getBorder_color() const { return elemBorder_color; } - /** - * Gets the mipmap_maxlevel element. - * @return a daeSmartRef to the mipmap_maxlevel element. - */ - const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } - /** - * Gets the mipmap_bias element. - * @return a daeSmartRef to the mipmap_bias element. - */ - const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domFx_sampler1D_common_complexType() : elemSource(), elemWrap_s(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domFx_sampler1D_common_complexType() {} - /** - * Copy Constructor - */ - domFx_sampler1D_common_complexType( const domFx_sampler1D_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_sampler1D_common_complexType &operator=( const domFx_sampler1D_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_sampler1D_common_complexType. - */ -class domFx_sampler1D_common : public daeElement, public domFx_sampler1D_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLER1D_COMMON; } -protected: - /** - * Constructor - */ - domFx_sampler1D_common() {} - /** - * Destructor - */ - virtual ~domFx_sampler1D_common() {} - /** - * Copy Constructor - */ - domFx_sampler1D_common( const domFx_sampler1D_common &cpy ) : daeElement(), domFx_sampler1D_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_sampler1D_common &operator=( const domFx_sampler1D_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler2D_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler2D_common.h deleted file mode 100644 index 8b09caafc..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler2D_common.h +++ /dev/null @@ -1,771 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_sampler2D_common_h__ -#define __domFx_sampler2D_common_h__ - -#include -#include - -#include - -/** - * A two-dimensional texture sampler. - */ -class domFx_sampler2D_common_complexType -{ -public: - class domSource; - - typedef daeSmartRef domSourceRef; - typedef daeTArray domSource_Array; - - class domSource : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSource() : _value() {} - /** - * Destructor - */ - virtual ~domSource() {} - /** - * Copy Constructor - */ - domSource( const domSource &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSource &operator=( const domSource &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_s; - - typedef daeSmartRef domWrap_sRef; - typedef daeTArray domWrap_s_Array; - - class domWrap_s : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; } - - protected: // Value - /** - * The domFx_sampler_wrap_common value of the text data of this element. - */ - domFx_sampler_wrap_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_wrap_common of the value. - */ - domFx_sampler_wrap_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_wrap_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_s() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_s() {} - /** - * Copy Constructor - */ - domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_s &operator=( const domWrap_s &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_t; - - typedef daeSmartRef domWrap_tRef; - typedef daeTArray domWrap_t_Array; - - class domWrap_t : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; } - - protected: // Value - /** - * The domFx_sampler_wrap_common value of the text data of this element. - */ - domFx_sampler_wrap_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_wrap_common of the value. - */ - domFx_sampler_wrap_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_wrap_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_t() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_t() {} - /** - * Copy Constructor - */ - domWrap_t( const domWrap_t &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_t &operator=( const domWrap_t &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMinfilter; - - typedef daeSmartRef domMinfilterRef; - typedef daeTArray domMinfilter_Array; - - class domMinfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMinfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMinfilter() {} - /** - * Copy Constructor - */ - domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMinfilter &operator=( const domMinfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMagfilter; - - typedef daeSmartRef domMagfilterRef; - typedef daeTArray domMagfilter_Array; - - class domMagfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMagfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMagfilter() {} - /** - * Copy Constructor - */ - domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMagfilter &operator=( const domMagfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipfilter; - - typedef daeSmartRef domMipfilterRef; - typedef daeTArray domMipfilter_Array; - - class domMipfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMipfilter() {} - /** - * Copy Constructor - */ - domMipfilter( const domMipfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipfilter &operator=( const domMipfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBorder_color; - - typedef daeSmartRef domBorder_colorRef; - typedef daeTArray domBorder_color_Array; - - class domBorder_color : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BORDER_COLOR; } - - protected: // Value - /** - * The domFx_color_common value of the text data of this element. - */ - domFx_color_common _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFx_color_common reference of the _value array. - */ - domFx_color_common &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFx_color_common reference of the _value array. - */ - const domFx_color_common &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFx_color_common &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBorder_color() : _value() {} - /** - * Destructor - */ - virtual ~domBorder_color() {} - /** - * Copy Constructor - */ - domBorder_color( const domBorder_color &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBorder_color &operator=( const domBorder_color &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipmap_maxlevel; - - typedef daeSmartRef domMipmap_maxlevelRef; - typedef daeTArray domMipmap_maxlevel_Array; - - class domMipmap_maxlevel : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; } - - protected: // Value - /** - * The xsUnsignedByte value of the text data of this element. - */ - xsUnsignedByte _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsUnsignedByte of the value. - */ - xsUnsignedByte getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsUnsignedByte val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipmap_maxlevel() : _value() {} - /** - * Destructor - */ - virtual ~domMipmap_maxlevel() {} - /** - * Copy Constructor - */ - domMipmap_maxlevel( const domMipmap_maxlevel &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipmap_bias; - - typedef daeSmartRef domMipmap_biasRef; - typedef daeTArray domMipmap_bias_Array; - - class domMipmap_bias : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; } - - protected: // Value - /** - * The xsFloat value of the text data of this element. - */ - xsFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsFloat of the value. - */ - xsFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipmap_bias() : _value() {} - /** - * Destructor - */ - virtual ~domMipmap_bias() {} - /** - * Copy Constructor - */ - domMipmap_bias( const domMipmap_bias &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipmap_bias &operator=( const domMipmap_bias &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domSourceRef elemSource; - domWrap_sRef elemWrap_s; - domWrap_tRef elemWrap_t; - domMinfilterRef elemMinfilter; - domMagfilterRef elemMagfilter; - domMipfilterRef elemMipfilter; - domBorder_colorRef elemBorder_color; - domMipmap_maxlevelRef elemMipmap_maxlevel; - domMipmap_biasRef elemMipmap_bias; - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the source element. - * @return a daeSmartRef to the source element. - */ - const domSourceRef getSource() const { return elemSource; } - /** - * Gets the wrap_s element. - * @return a daeSmartRef to the wrap_s element. - */ - const domWrap_sRef getWrap_s() const { return elemWrap_s; } - /** - * Gets the wrap_t element. - * @return a daeSmartRef to the wrap_t element. - */ - const domWrap_tRef getWrap_t() const { return elemWrap_t; } - /** - * Gets the minfilter element. - * @return a daeSmartRef to the minfilter element. - */ - const domMinfilterRef getMinfilter() const { return elemMinfilter; } - /** - * Gets the magfilter element. - * @return a daeSmartRef to the magfilter element. - */ - const domMagfilterRef getMagfilter() const { return elemMagfilter; } - /** - * Gets the mipfilter element. - * @return a daeSmartRef to the mipfilter element. - */ - const domMipfilterRef getMipfilter() const { return elemMipfilter; } - /** - * Gets the border_color element. - * @return a daeSmartRef to the border_color element. - */ - const domBorder_colorRef getBorder_color() const { return elemBorder_color; } - /** - * Gets the mipmap_maxlevel element. - * @return a daeSmartRef to the mipmap_maxlevel element. - */ - const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } - /** - * Gets the mipmap_bias element. - * @return a daeSmartRef to the mipmap_bias element. - */ - const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domFx_sampler2D_common_complexType() : elemSource(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domFx_sampler2D_common_complexType() {} - /** - * Copy Constructor - */ - domFx_sampler2D_common_complexType( const domFx_sampler2D_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_sampler2D_common_complexType &operator=( const domFx_sampler2D_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_sampler2D_common_complexType. - */ -class domFx_sampler2D_common : public daeElement, public domFx_sampler2D_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLER2D_COMMON; } -protected: - /** - * Constructor - */ - domFx_sampler2D_common() {} - /** - * Destructor - */ - virtual ~domFx_sampler2D_common() {} - /** - * Copy Constructor - */ - domFx_sampler2D_common( const domFx_sampler2D_common &cpy ) : daeElement(), domFx_sampler2D_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_sampler2D_common &operator=( const domFx_sampler2D_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler3D_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler3D_common.h deleted file mode 100644 index f96b59b10..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_sampler3D_common.h +++ /dev/null @@ -1,844 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_sampler3D_common_h__ -#define __domFx_sampler3D_common_h__ - -#include -#include - -#include - -/** - * A three-dimensional texture sampler. - */ -class domFx_sampler3D_common_complexType -{ -public: - class domSource; - - typedef daeSmartRef domSourceRef; - typedef daeTArray domSource_Array; - - class domSource : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSource() : _value() {} - /** - * Destructor - */ - virtual ~domSource() {} - /** - * Copy Constructor - */ - domSource( const domSource &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSource &operator=( const domSource &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_s; - - typedef daeSmartRef domWrap_sRef; - typedef daeTArray domWrap_s_Array; - - class domWrap_s : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; } - - protected: // Value - /** - * The domFx_sampler_wrap_common value of the text data of this element. - */ - domFx_sampler_wrap_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_wrap_common of the value. - */ - domFx_sampler_wrap_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_wrap_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_s() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_s() {} - /** - * Copy Constructor - */ - domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_s &operator=( const domWrap_s &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_t; - - typedef daeSmartRef domWrap_tRef; - typedef daeTArray domWrap_t_Array; - - class domWrap_t : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; } - - protected: // Value - /** - * The domFx_sampler_wrap_common value of the text data of this element. - */ - domFx_sampler_wrap_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_wrap_common of the value. - */ - domFx_sampler_wrap_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_wrap_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_t() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_t() {} - /** - * Copy Constructor - */ - domWrap_t( const domWrap_t &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_t &operator=( const domWrap_t &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_p; - - typedef daeSmartRef domWrap_pRef; - typedef daeTArray domWrap_p_Array; - - class domWrap_p : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_P; } - - protected: // Value - /** - * The domFx_sampler_wrap_common value of the text data of this element. - */ - domFx_sampler_wrap_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_wrap_common of the value. - */ - domFx_sampler_wrap_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_wrap_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_p() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_p() {} - /** - * Copy Constructor - */ - domWrap_p( const domWrap_p &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_p &operator=( const domWrap_p &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMinfilter; - - typedef daeSmartRef domMinfilterRef; - typedef daeTArray domMinfilter_Array; - - class domMinfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMinfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMinfilter() {} - /** - * Copy Constructor - */ - domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMinfilter &operator=( const domMinfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMagfilter; - - typedef daeSmartRef domMagfilterRef; - typedef daeTArray domMagfilter_Array; - - class domMagfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMagfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMagfilter() {} - /** - * Copy Constructor - */ - domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMagfilter &operator=( const domMagfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipfilter; - - typedef daeSmartRef domMipfilterRef; - typedef daeTArray domMipfilter_Array; - - class domMipfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMipfilter() {} - /** - * Copy Constructor - */ - domMipfilter( const domMipfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipfilter &operator=( const domMipfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBorder_color; - - typedef daeSmartRef domBorder_colorRef; - typedef daeTArray domBorder_color_Array; - - class domBorder_color : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BORDER_COLOR; } - - protected: // Value - /** - * The domFx_color_common value of the text data of this element. - */ - domFx_color_common _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFx_color_common reference of the _value array. - */ - domFx_color_common &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFx_color_common reference of the _value array. - */ - const domFx_color_common &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFx_color_common &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBorder_color() : _value() {} - /** - * Destructor - */ - virtual ~domBorder_color() {} - /** - * Copy Constructor - */ - domBorder_color( const domBorder_color &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBorder_color &operator=( const domBorder_color &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipmap_maxlevel; - - typedef daeSmartRef domMipmap_maxlevelRef; - typedef daeTArray domMipmap_maxlevel_Array; - - class domMipmap_maxlevel : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; } - - protected: // Value - /** - * The xsUnsignedByte value of the text data of this element. - */ - xsUnsignedByte _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsUnsignedByte of the value. - */ - xsUnsignedByte getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsUnsignedByte val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipmap_maxlevel() : _value() {} - /** - * Destructor - */ - virtual ~domMipmap_maxlevel() {} - /** - * Copy Constructor - */ - domMipmap_maxlevel( const domMipmap_maxlevel &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipmap_bias; - - typedef daeSmartRef domMipmap_biasRef; - typedef daeTArray domMipmap_bias_Array; - - class domMipmap_bias : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; } - - protected: // Value - /** - * The xsFloat value of the text data of this element. - */ - xsFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsFloat of the value. - */ - xsFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipmap_bias() : _value() {} - /** - * Destructor - */ - virtual ~domMipmap_bias() {} - /** - * Copy Constructor - */ - domMipmap_bias( const domMipmap_bias &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipmap_bias &operator=( const domMipmap_bias &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domSourceRef elemSource; - domWrap_sRef elemWrap_s; - domWrap_tRef elemWrap_t; - domWrap_pRef elemWrap_p; - domMinfilterRef elemMinfilter; - domMagfilterRef elemMagfilter; - domMipfilterRef elemMipfilter; - domBorder_colorRef elemBorder_color; - domMipmap_maxlevelRef elemMipmap_maxlevel; - domMipmap_biasRef elemMipmap_bias; - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the source element. - * @return a daeSmartRef to the source element. - */ - const domSourceRef getSource() const { return elemSource; } - /** - * Gets the wrap_s element. - * @return a daeSmartRef to the wrap_s element. - */ - const domWrap_sRef getWrap_s() const { return elemWrap_s; } - /** - * Gets the wrap_t element. - * @return a daeSmartRef to the wrap_t element. - */ - const domWrap_tRef getWrap_t() const { return elemWrap_t; } - /** - * Gets the wrap_p element. - * @return a daeSmartRef to the wrap_p element. - */ - const domWrap_pRef getWrap_p() const { return elemWrap_p; } - /** - * Gets the minfilter element. - * @return a daeSmartRef to the minfilter element. - */ - const domMinfilterRef getMinfilter() const { return elemMinfilter; } - /** - * Gets the magfilter element. - * @return a daeSmartRef to the magfilter element. - */ - const domMagfilterRef getMagfilter() const { return elemMagfilter; } - /** - * Gets the mipfilter element. - * @return a daeSmartRef to the mipfilter element. - */ - const domMipfilterRef getMipfilter() const { return elemMipfilter; } - /** - * Gets the border_color element. - * @return a daeSmartRef to the border_color element. - */ - const domBorder_colorRef getBorder_color() const { return elemBorder_color; } - /** - * Gets the mipmap_maxlevel element. - * @return a daeSmartRef to the mipmap_maxlevel element. - */ - const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } - /** - * Gets the mipmap_bias element. - * @return a daeSmartRef to the mipmap_bias element. - */ - const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domFx_sampler3D_common_complexType() : elemSource(), elemWrap_s(), elemWrap_t(), elemWrap_p(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domFx_sampler3D_common_complexType() {} - /** - * Copy Constructor - */ - domFx_sampler3D_common_complexType( const domFx_sampler3D_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_sampler3D_common_complexType &operator=( const domFx_sampler3D_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_sampler3D_common_complexType. - */ -class domFx_sampler3D_common : public daeElement, public domFx_sampler3D_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLER3D_COMMON; } -protected: - /** - * Constructor - */ - domFx_sampler3D_common() {} - /** - * Destructor - */ - virtual ~domFx_sampler3D_common() {} - /** - * Copy Constructor - */ - domFx_sampler3D_common( const domFx_sampler3D_common &cpy ) : daeElement(), domFx_sampler3D_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_sampler3D_common &operator=( const domFx_sampler3D_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerCUBE_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerCUBE_common.h deleted file mode 100644 index 71d58c63d..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerCUBE_common.h +++ /dev/null @@ -1,844 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_samplerCUBE_common_h__ -#define __domFx_samplerCUBE_common_h__ - -#include -#include - -#include - -/** - * A texture sampler for cube maps. - */ -class domFx_samplerCUBE_common_complexType -{ -public: - class domSource; - - typedef daeSmartRef domSourceRef; - typedef daeTArray domSource_Array; - - class domSource : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSource() : _value() {} - /** - * Destructor - */ - virtual ~domSource() {} - /** - * Copy Constructor - */ - domSource( const domSource &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSource &operator=( const domSource &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_s; - - typedef daeSmartRef domWrap_sRef; - typedef daeTArray domWrap_s_Array; - - class domWrap_s : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; } - - protected: // Value - /** - * The domFx_sampler_wrap_common value of the text data of this element. - */ - domFx_sampler_wrap_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_wrap_common of the value. - */ - domFx_sampler_wrap_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_wrap_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_s() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_s() {} - /** - * Copy Constructor - */ - domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_s &operator=( const domWrap_s &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_t; - - typedef daeSmartRef domWrap_tRef; - typedef daeTArray domWrap_t_Array; - - class domWrap_t : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; } - - protected: // Value - /** - * The domFx_sampler_wrap_common value of the text data of this element. - */ - domFx_sampler_wrap_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_wrap_common of the value. - */ - domFx_sampler_wrap_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_wrap_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_t() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_t() {} - /** - * Copy Constructor - */ - domWrap_t( const domWrap_t &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_t &operator=( const domWrap_t &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_p; - - typedef daeSmartRef domWrap_pRef; - typedef daeTArray domWrap_p_Array; - - class domWrap_p : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_P; } - - protected: // Value - /** - * The domFx_sampler_wrap_common value of the text data of this element. - */ - domFx_sampler_wrap_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_wrap_common of the value. - */ - domFx_sampler_wrap_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_wrap_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_p() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_p() {} - /** - * Copy Constructor - */ - domWrap_p( const domWrap_p &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_p &operator=( const domWrap_p &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMinfilter; - - typedef daeSmartRef domMinfilterRef; - typedef daeTArray domMinfilter_Array; - - class domMinfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMinfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMinfilter() {} - /** - * Copy Constructor - */ - domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMinfilter &operator=( const domMinfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMagfilter; - - typedef daeSmartRef domMagfilterRef; - typedef daeTArray domMagfilter_Array; - - class domMagfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMagfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMagfilter() {} - /** - * Copy Constructor - */ - domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMagfilter &operator=( const domMagfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipfilter; - - typedef daeSmartRef domMipfilterRef; - typedef daeTArray domMipfilter_Array; - - class domMipfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMipfilter() {} - /** - * Copy Constructor - */ - domMipfilter( const domMipfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipfilter &operator=( const domMipfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBorder_color; - - typedef daeSmartRef domBorder_colorRef; - typedef daeTArray domBorder_color_Array; - - class domBorder_color : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BORDER_COLOR; } - - protected: // Value - /** - * The domFx_color_common value of the text data of this element. - */ - domFx_color_common _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFx_color_common reference of the _value array. - */ - domFx_color_common &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFx_color_common reference of the _value array. - */ - const domFx_color_common &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFx_color_common &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBorder_color() : _value() {} - /** - * Destructor - */ - virtual ~domBorder_color() {} - /** - * Copy Constructor - */ - domBorder_color( const domBorder_color &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBorder_color &operator=( const domBorder_color &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipmap_maxlevel; - - typedef daeSmartRef domMipmap_maxlevelRef; - typedef daeTArray domMipmap_maxlevel_Array; - - class domMipmap_maxlevel : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; } - - protected: // Value - /** - * The xsUnsignedByte value of the text data of this element. - */ - xsUnsignedByte _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsUnsignedByte of the value. - */ - xsUnsignedByte getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsUnsignedByte val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipmap_maxlevel() : _value() {} - /** - * Destructor - */ - virtual ~domMipmap_maxlevel() {} - /** - * Copy Constructor - */ - domMipmap_maxlevel( const domMipmap_maxlevel &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipmap_bias; - - typedef daeSmartRef domMipmap_biasRef; - typedef daeTArray domMipmap_bias_Array; - - class domMipmap_bias : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; } - - protected: // Value - /** - * The xsFloat value of the text data of this element. - */ - xsFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsFloat of the value. - */ - xsFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipmap_bias() : _value() {} - /** - * Destructor - */ - virtual ~domMipmap_bias() {} - /** - * Copy Constructor - */ - domMipmap_bias( const domMipmap_bias &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipmap_bias &operator=( const domMipmap_bias &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domSourceRef elemSource; - domWrap_sRef elemWrap_s; - domWrap_tRef elemWrap_t; - domWrap_pRef elemWrap_p; - domMinfilterRef elemMinfilter; - domMagfilterRef elemMagfilter; - domMipfilterRef elemMipfilter; - domBorder_colorRef elemBorder_color; - domMipmap_maxlevelRef elemMipmap_maxlevel; - domMipmap_biasRef elemMipmap_bias; - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the source element. - * @return a daeSmartRef to the source element. - */ - const domSourceRef getSource() const { return elemSource; } - /** - * Gets the wrap_s element. - * @return a daeSmartRef to the wrap_s element. - */ - const domWrap_sRef getWrap_s() const { return elemWrap_s; } - /** - * Gets the wrap_t element. - * @return a daeSmartRef to the wrap_t element. - */ - const domWrap_tRef getWrap_t() const { return elemWrap_t; } - /** - * Gets the wrap_p element. - * @return a daeSmartRef to the wrap_p element. - */ - const domWrap_pRef getWrap_p() const { return elemWrap_p; } - /** - * Gets the minfilter element. - * @return a daeSmartRef to the minfilter element. - */ - const domMinfilterRef getMinfilter() const { return elemMinfilter; } - /** - * Gets the magfilter element. - * @return a daeSmartRef to the magfilter element. - */ - const domMagfilterRef getMagfilter() const { return elemMagfilter; } - /** - * Gets the mipfilter element. - * @return a daeSmartRef to the mipfilter element. - */ - const domMipfilterRef getMipfilter() const { return elemMipfilter; } - /** - * Gets the border_color element. - * @return a daeSmartRef to the border_color element. - */ - const domBorder_colorRef getBorder_color() const { return elemBorder_color; } - /** - * Gets the mipmap_maxlevel element. - * @return a daeSmartRef to the mipmap_maxlevel element. - */ - const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } - /** - * Gets the mipmap_bias element. - * @return a daeSmartRef to the mipmap_bias element. - */ - const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domFx_samplerCUBE_common_complexType() : elemSource(), elemWrap_s(), elemWrap_t(), elemWrap_p(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domFx_samplerCUBE_common_complexType() {} - /** - * Copy Constructor - */ - domFx_samplerCUBE_common_complexType( const domFx_samplerCUBE_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_samplerCUBE_common_complexType &operator=( const domFx_samplerCUBE_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_samplerCUBE_common_complexType. - */ -class domFx_samplerCUBE_common : public daeElement, public domFx_samplerCUBE_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLERCUBE_COMMON; } -protected: - /** - * Constructor - */ - domFx_samplerCUBE_common() {} - /** - * Destructor - */ - virtual ~domFx_samplerCUBE_common() {} - /** - * Copy Constructor - */ - domFx_samplerCUBE_common( const domFx_samplerCUBE_common &cpy ) : daeElement(), domFx_samplerCUBE_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_samplerCUBE_common &operator=( const domFx_samplerCUBE_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerDEPTH_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerDEPTH_common.h deleted file mode 100644 index cf9ba77ac..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerDEPTH_common.h +++ /dev/null @@ -1,474 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_samplerDEPTH_common_h__ -#define __domFx_samplerDEPTH_common_h__ - -#include -#include - -#include - -/** - * A texture sampler for depth maps. - */ -class domFx_samplerDEPTH_common_complexType -{ -public: - class domSource; - - typedef daeSmartRef domSourceRef; - typedef daeTArray domSource_Array; - - class domSource : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSource() : _value() {} - /** - * Destructor - */ - virtual ~domSource() {} - /** - * Copy Constructor - */ - domSource( const domSource &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSource &operator=( const domSource &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_s; - - typedef daeSmartRef domWrap_sRef; - typedef daeTArray domWrap_s_Array; - - class domWrap_s : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; } - - protected: // Value - /** - * The domFx_sampler_wrap_common value of the text data of this element. - */ - domFx_sampler_wrap_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_wrap_common of the value. - */ - domFx_sampler_wrap_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_wrap_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_s() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_s() {} - /** - * Copy Constructor - */ - domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_s &operator=( const domWrap_s &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_t; - - typedef daeSmartRef domWrap_tRef; - typedef daeTArray domWrap_t_Array; - - class domWrap_t : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; } - - protected: // Value - /** - * The domFx_sampler_wrap_common value of the text data of this element. - */ - domFx_sampler_wrap_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_wrap_common of the value. - */ - domFx_sampler_wrap_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_wrap_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_t() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_t() {} - /** - * Copy Constructor - */ - domWrap_t( const domWrap_t &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_t &operator=( const domWrap_t &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMinfilter; - - typedef daeSmartRef domMinfilterRef; - typedef daeTArray domMinfilter_Array; - - class domMinfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMinfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMinfilter() {} - /** - * Copy Constructor - */ - domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMinfilter &operator=( const domMinfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMagfilter; - - typedef daeSmartRef domMagfilterRef; - typedef daeTArray domMagfilter_Array; - - class domMagfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMagfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMagfilter() {} - /** - * Copy Constructor - */ - domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMagfilter &operator=( const domMagfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domSourceRef elemSource; - domWrap_sRef elemWrap_s; - domWrap_tRef elemWrap_t; - domMinfilterRef elemMinfilter; - domMagfilterRef elemMagfilter; - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the source element. - * @return a daeSmartRef to the source element. - */ - const domSourceRef getSource() const { return elemSource; } - /** - * Gets the wrap_s element. - * @return a daeSmartRef to the wrap_s element. - */ - const domWrap_sRef getWrap_s() const { return elemWrap_s; } - /** - * Gets the wrap_t element. - * @return a daeSmartRef to the wrap_t element. - */ - const domWrap_tRef getWrap_t() const { return elemWrap_t; } - /** - * Gets the minfilter element. - * @return a daeSmartRef to the minfilter element. - */ - const domMinfilterRef getMinfilter() const { return elemMinfilter; } - /** - * Gets the magfilter element. - * @return a daeSmartRef to the magfilter element. - */ - const domMagfilterRef getMagfilter() const { return elemMagfilter; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domFx_samplerDEPTH_common_complexType() : elemSource(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domFx_samplerDEPTH_common_complexType() {} - /** - * Copy Constructor - */ - domFx_samplerDEPTH_common_complexType( const domFx_samplerDEPTH_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_samplerDEPTH_common_complexType &operator=( const domFx_samplerDEPTH_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_samplerDEPTH_common_complexType. - */ -class domFx_samplerDEPTH_common : public daeElement, public domFx_samplerDEPTH_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLERDEPTH_COMMON; } -protected: - /** - * Constructor - */ - domFx_samplerDEPTH_common() {} - /** - * Destructor - */ - virtual ~domFx_samplerDEPTH_common() {} - /** - * Copy Constructor - */ - domFx_samplerDEPTH_common( const domFx_samplerDEPTH_common &cpy ) : daeElement(), domFx_samplerDEPTH_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_samplerDEPTH_common &operator=( const domFx_samplerDEPTH_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerRECT_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerRECT_common.h deleted file mode 100644 index dfa2cd9f9..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_samplerRECT_common.h +++ /dev/null @@ -1,771 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_samplerRECT_common_h__ -#define __domFx_samplerRECT_common_h__ - -#include -#include - -#include - -/** - * A two-dimensional texture sampler. - */ -class domFx_samplerRECT_common_complexType -{ -public: - class domSource; - - typedef daeSmartRef domSourceRef; - typedef daeTArray domSource_Array; - - class domSource : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSource() : _value() {} - /** - * Destructor - */ - virtual ~domSource() {} - /** - * Copy Constructor - */ - domSource( const domSource &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSource &operator=( const domSource &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_s; - - typedef daeSmartRef domWrap_sRef; - typedef daeTArray domWrap_s_Array; - - class domWrap_s : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; } - - protected: // Value - /** - * The domFx_sampler_wrap_common value of the text data of this element. - */ - domFx_sampler_wrap_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_wrap_common of the value. - */ - domFx_sampler_wrap_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_wrap_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_s() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_s() {} - /** - * Copy Constructor - */ - domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_s &operator=( const domWrap_s &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_t; - - typedef daeSmartRef domWrap_tRef; - typedef daeTArray domWrap_t_Array; - - class domWrap_t : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; } - - protected: // Value - /** - * The domFx_sampler_wrap_common value of the text data of this element. - */ - domFx_sampler_wrap_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_wrap_common of the value. - */ - domFx_sampler_wrap_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_wrap_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_t() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_t() {} - /** - * Copy Constructor - */ - domWrap_t( const domWrap_t &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_t &operator=( const domWrap_t &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMinfilter; - - typedef daeSmartRef domMinfilterRef; - typedef daeTArray domMinfilter_Array; - - class domMinfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMinfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMinfilter() {} - /** - * Copy Constructor - */ - domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMinfilter &operator=( const domMinfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMagfilter; - - typedef daeSmartRef domMagfilterRef; - typedef daeTArray domMagfilter_Array; - - class domMagfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMagfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMagfilter() {} - /** - * Copy Constructor - */ - domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMagfilter &operator=( const domMagfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipfilter; - - typedef daeSmartRef domMipfilterRef; - typedef daeTArray domMipfilter_Array; - - class domMipfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMipfilter() {} - /** - * Copy Constructor - */ - domMipfilter( const domMipfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipfilter &operator=( const domMipfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBorder_color; - - typedef daeSmartRef domBorder_colorRef; - typedef daeTArray domBorder_color_Array; - - class domBorder_color : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BORDER_COLOR; } - - protected: // Value - /** - * The domFx_color_common value of the text data of this element. - */ - domFx_color_common _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFx_color_common reference of the _value array. - */ - domFx_color_common &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFx_color_common reference of the _value array. - */ - const domFx_color_common &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFx_color_common &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBorder_color() : _value() {} - /** - * Destructor - */ - virtual ~domBorder_color() {} - /** - * Copy Constructor - */ - domBorder_color( const domBorder_color &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBorder_color &operator=( const domBorder_color &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipmap_maxlevel; - - typedef daeSmartRef domMipmap_maxlevelRef; - typedef daeTArray domMipmap_maxlevel_Array; - - class domMipmap_maxlevel : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; } - - protected: // Value - /** - * The xsUnsignedByte value of the text data of this element. - */ - xsUnsignedByte _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsUnsignedByte of the value. - */ - xsUnsignedByte getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsUnsignedByte val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipmap_maxlevel() : _value() {} - /** - * Destructor - */ - virtual ~domMipmap_maxlevel() {} - /** - * Copy Constructor - */ - domMipmap_maxlevel( const domMipmap_maxlevel &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipmap_bias; - - typedef daeSmartRef domMipmap_biasRef; - typedef daeTArray domMipmap_bias_Array; - - class domMipmap_bias : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; } - - protected: // Value - /** - * The xsFloat value of the text data of this element. - */ - xsFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsFloat of the value. - */ - xsFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipmap_bias() : _value() {} - /** - * Destructor - */ - virtual ~domMipmap_bias() {} - /** - * Copy Constructor - */ - domMipmap_bias( const domMipmap_bias &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipmap_bias &operator=( const domMipmap_bias &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domSourceRef elemSource; - domWrap_sRef elemWrap_s; - domWrap_tRef elemWrap_t; - domMinfilterRef elemMinfilter; - domMagfilterRef elemMagfilter; - domMipfilterRef elemMipfilter; - domBorder_colorRef elemBorder_color; - domMipmap_maxlevelRef elemMipmap_maxlevel; - domMipmap_biasRef elemMipmap_bias; - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the source element. - * @return a daeSmartRef to the source element. - */ - const domSourceRef getSource() const { return elemSource; } - /** - * Gets the wrap_s element. - * @return a daeSmartRef to the wrap_s element. - */ - const domWrap_sRef getWrap_s() const { return elemWrap_s; } - /** - * Gets the wrap_t element. - * @return a daeSmartRef to the wrap_t element. - */ - const domWrap_tRef getWrap_t() const { return elemWrap_t; } - /** - * Gets the minfilter element. - * @return a daeSmartRef to the minfilter element. - */ - const domMinfilterRef getMinfilter() const { return elemMinfilter; } - /** - * Gets the magfilter element. - * @return a daeSmartRef to the magfilter element. - */ - const domMagfilterRef getMagfilter() const { return elemMagfilter; } - /** - * Gets the mipfilter element. - * @return a daeSmartRef to the mipfilter element. - */ - const domMipfilterRef getMipfilter() const { return elemMipfilter; } - /** - * Gets the border_color element. - * @return a daeSmartRef to the border_color element. - */ - const domBorder_colorRef getBorder_color() const { return elemBorder_color; } - /** - * Gets the mipmap_maxlevel element. - * @return a daeSmartRef to the mipmap_maxlevel element. - */ - const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } - /** - * Gets the mipmap_bias element. - * @return a daeSmartRef to the mipmap_bias element. - */ - const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domFx_samplerRECT_common_complexType() : elemSource(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domFx_samplerRECT_common_complexType() {} - /** - * Copy Constructor - */ - domFx_samplerRECT_common_complexType( const domFx_samplerRECT_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_samplerRECT_common_complexType &operator=( const domFx_samplerRECT_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_samplerRECT_common_complexType. - */ -class domFx_samplerRECT_common : public daeElement, public domFx_samplerRECT_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLERRECT_COMMON; } -protected: - /** - * Constructor - */ - domFx_samplerRECT_common() {} - /** - * Destructor - */ - virtual ~domFx_samplerRECT_common() {} - /** - * Copy Constructor - */ - domFx_samplerRECT_common( const domFx_samplerRECT_common &cpy ) : daeElement(), domFx_samplerRECT_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_samplerRECT_common &operator=( const domFx_samplerRECT_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_setparam_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_setparam_common.h deleted file mode 100644 index 41ff2415d..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_setparam_common.h +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_setparam_common_h__ -#define __domFx_setparam_common_h__ - -#include -#include - -#include -#include - -class domFx_setparam_common_complexType -{ -protected: // Attribute - xsNCName attrRef; - -protected: // Elements - domFx_annotate_common_Array elemAnnotate_array; - domFx_basic_type_commonRef elemFx_basic_type_common; - -public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a xsNCName of the ref attribute. - */ - xsNCName getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( xsNCName atRef ) { attrRef = atRef; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the fx_basic_type_common element. - * @return a daeSmartRef to the fx_basic_type_common element. - */ - const domFx_basic_type_commonRef getFx_basic_type_common() const { return elemFx_basic_type_common; } -protected: - /** - * Constructor - */ - domFx_setparam_common_complexType() : attrRef(), elemAnnotate_array(), elemFx_basic_type_common() {} - /** - * Destructor - */ - virtual ~domFx_setparam_common_complexType() {} - /** - * Copy Constructor - */ - domFx_setparam_common_complexType( const domFx_setparam_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_setparam_common_complexType &operator=( const domFx_setparam_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_setparam_common_complexType. - */ -class domFx_setparam_common : public daeElement, public domFx_setparam_common_complexType -{ -protected: - /** - * Constructor - */ - domFx_setparam_common() {} - /** - * Destructor - */ - virtual ~domFx_setparam_common() {} - /** - * Copy Constructor - */ - domFx_setparam_common( const domFx_setparam_common &cpy ) : daeElement(), domFx_setparam_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_setparam_common &operator=( const domFx_setparam_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_stenciltarget_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_stenciltarget_common.h deleted file mode 100644 index e56c02976..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_stenciltarget_common.h +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_stenciltarget_common_h__ -#define __domFx_stenciltarget_common_h__ - -#include -#include - - -class domFx_stenciltarget_common_complexType -{ -protected: // Attributes - xsNonNegativeInteger attrIndex; - domFx_surface_face_enum attrFace; - xsNonNegativeInteger attrMip; - xsNonNegativeInteger attrSlice; - -protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - -public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a xsNonNegativeInteger of the index attribute. - */ - xsNonNegativeInteger getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } - - /** - * Gets the face attribute. - * @return Returns a domFx_surface_face_enum of the face attribute. - */ - domFx_surface_face_enum getFace() const { return attrFace; } - /** - * Sets the face attribute. - * @param atFace The new value for the face attribute. - */ - void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; } - - /** - * Gets the mip attribute. - * @return Returns a xsNonNegativeInteger of the mip attribute. - */ - xsNonNegativeInteger getMip() const { return attrMip; } - /** - * Sets the mip attribute. - * @param atMip The new value for the mip attribute. - */ - void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; } - - /** - * Gets the slice attribute. - * @return Returns a xsNonNegativeInteger of the slice attribute. - */ - xsNonNegativeInteger getSlice() const { return attrSlice; } - /** - * Sets the slice attribute. - * @param atSlice The new value for the slice attribute. - */ - void setSlice( xsNonNegativeInteger atSlice ) { attrSlice = atSlice; } - - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - -protected: - /** - * Constructor - */ - domFx_stenciltarget_common_complexType() : attrIndex(), attrFace(), attrMip(), attrSlice(), _value() {} - /** - * Destructor - */ - virtual ~domFx_stenciltarget_common_complexType() {} - /** - * Copy Constructor - */ - domFx_stenciltarget_common_complexType( const domFx_stenciltarget_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_stenciltarget_common_complexType &operator=( const domFx_stenciltarget_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_stenciltarget_common_complexType. - */ -class domFx_stenciltarget_common : public daeElement, public domFx_stenciltarget_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_STENCILTARGET_COMMON; } - -public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a xsNonNegativeInteger of the index attribute. - */ - xsNonNegativeInteger getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; - _validAttributeArray[0] = true; } - - /** - * Gets the face attribute. - * @return Returns a domFx_surface_face_enum of the face attribute. - */ - domFx_surface_face_enum getFace() const { return attrFace; } - /** - * Sets the face attribute. - * @param atFace The new value for the face attribute. - */ - void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; - _validAttributeArray[1] = true; } - - /** - * Gets the mip attribute. - * @return Returns a xsNonNegativeInteger of the mip attribute. - */ - xsNonNegativeInteger getMip() const { return attrMip; } - /** - * Sets the mip attribute. - * @param atMip The new value for the mip attribute. - */ - void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; - _validAttributeArray[2] = true; } - - /** - * Gets the slice attribute. - * @return Returns a xsNonNegativeInteger of the slice attribute. - */ - xsNonNegativeInteger getSlice() const { return attrSlice; } - /** - * Sets the slice attribute. - * @param atSlice The new value for the slice attribute. - */ - void setSlice( xsNonNegativeInteger atSlice ) { attrSlice = atSlice; - _validAttributeArray[3] = true; } - -protected: - /** - * Constructor - */ - domFx_stenciltarget_common() {} - /** - * Destructor - */ - virtual ~domFx_stenciltarget_common() {} - /** - * Copy Constructor - */ - domFx_stenciltarget_common( const domFx_stenciltarget_common &cpy ) : daeElement(), domFx_stenciltarget_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_stenciltarget_common &operator=( const domFx_stenciltarget_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_common.h deleted file mode 100644 index 6f0f6e3a1..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_common.h +++ /dev/null @@ -1,638 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_surface_common_h__ -#define __domFx_surface_common_h__ - -#include -#include - -#include -#include -#include - -/** - * The fx_surface_common type is used to declare a resource that can be used - * both as the source for texture samples and as the target of a rendering - * pass. - */ -class domFx_surface_common_complexType -{ -public: - class domFormat; - - typedef daeSmartRef domFormatRef; - typedef daeTArray domFormat_Array; - -/** - * Contains a string representing the profile and platform specific texel - * format that the author would like this surface to use. If this element - * is not specified then the application will use a common format R8G8B8A8 - * with linear color gradient, not sRGB. - */ - class domFormat : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FORMAT; } - - protected: // Value - /** - * The xsToken value of the text data of this element. - */ - xsToken _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsToken of the value. - */ - xsToken getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsToken val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domFormat() : _value() {} - /** - * Destructor - */ - virtual ~domFormat() {} - /** - * Copy Constructor - */ - domFormat( const domFormat &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFormat &operator=( const domFormat &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSize; - - typedef daeSmartRef domSizeRef; - typedef daeTArray domSize_Array; - -/** - * The surface should be sized to these exact dimensions - */ - class domSize : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SIZE; } - - protected: // Value - /** - * The domInt3 value of the text data of this element. - */ - domInt3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domInt3 reference of the _value array. - */ - domInt3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domInt3 reference of the _value array. - */ - const domInt3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domInt3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domSize() : _value() {} - /** - * Destructor - */ - virtual ~domSize() {} - /** - * Copy Constructor - */ - domSize( const domSize &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSize &operator=( const domSize &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domViewport_ratio; - - typedef daeSmartRef domViewport_ratioRef; - typedef daeTArray domViewport_ratio_Array; - -/** - * The surface should be sized to a dimension based on this ratio of the viewport's - * dimensions in pixels - */ - class domViewport_ratio : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VIEWPORT_RATIO; } - - protected: // Value - /** - * The domFloat2 value of the text data of this element. - */ - domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFloat2 reference of the _value array. - */ - domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat2 reference of the _value array. - */ - const domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domViewport_ratio() : _value() {} - /** - * Destructor - */ - virtual ~domViewport_ratio() {} - /** - * Copy Constructor - */ - domViewport_ratio( const domViewport_ratio &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domViewport_ratio &operator=( const domViewport_ratio &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMip_levels; - - typedef daeSmartRef domMip_levelsRef; - typedef daeTArray domMip_levels_Array; - -/** - * the surface should contain the following number of MIP levels. If this - * element is not present it is assumed that all miplevels exist until a dimension - * becomes 1 texel. To create a surface that has only one level of mip maps - * (mip=0) set this to 1. If the value is 0 the result is the same as if - * mip_levels was unspecified, all possible mip_levels will exist. - */ - class domMip_levels : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIP_LEVELS; } - - protected: // Value - /** - * The xsUnsignedInt value of the text data of this element. - */ - xsUnsignedInt _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsUnsignedInt of the value. - */ - xsUnsignedInt getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsUnsignedInt val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMip_levels() : _value() {} - /** - * Destructor - */ - virtual ~domMip_levels() {} - /** - * Copy Constructor - */ - domMip_levels( const domMip_levels &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMip_levels &operator=( const domMip_levels &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipmap_generate; - - typedef daeSmartRef domMipmap_generateRef; - typedef daeTArray domMipmap_generate_Array; - -/** - * By default it is assumed that mipmaps are supplied by the author so, if - * not all subsurfaces are initialized, it is invalid and will result in profile - * and platform specific behavior unless mipmap_generate is responsible for - * initializing the remainder of the sub-surfaces - */ - class domMipmap_generate : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_GENERATE; } - - protected: // Value - /** - * The xsBoolean value of the text data of this element. - */ - xsBoolean _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsBoolean of the value. - */ - xsBoolean getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsBoolean val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipmap_generate() : _value() {} - /** - * Destructor - */ - virtual ~domMipmap_generate() {} - /** - * Copy Constructor - */ - domMipmap_generate( const domMipmap_generate &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipmap_generate &operator=( const domMipmap_generate &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attribute -/** - * Specifying the type of a surface is mandatory though the type may be "UNTYPED". - * When a surface is typed as UNTYPED, it is said to be temporarily untyped - * and instead will be typed later by the context it is used in such as which - * samplers reference it in that are used in a particular technique or pass. - * If there is a type mismatch between what is set into it later and what - * the runtime decides the type should be the result in profile and platform - * specific behavior. - */ - domFx_surface_type_enum attrType; - -protected: // Elements -/** - * The common set of initalization options for surfaces. Choose which is - * appropriate for your surface based on the type attribute and other characteristics - * described by the annotation docs on the choiced child elements of this - * type. @see domFx_surface_init_common - */ - domFx_surface_init_commonRef elemFx_surface_init_common; -/** - * Contains a string representing the profile and platform specific texel - * format that the author would like this surface to use. If this element - * is not specified then the application will use a common format R8G8B8A8 - * with linear color gradient, not sRGB. @see domFormat - */ - domFormatRef elemFormat; -/** - * If the exact format cannot be resolved via the "format" element then the - * format_hint will describe the important features of the format so that - * the application may select a compatable or close format @see domFormat_hint - */ - domFx_surface_format_hint_commonRef elemFormat_hint; -/** - * The surface should be sized to these exact dimensions @see domSize - */ - domSizeRef elemSize; -/** - * The surface should be sized to a dimension based on this ratio of the viewport's - * dimensions in pixels @see domViewport_ratio - */ - domViewport_ratioRef elemViewport_ratio; -/** - * the surface should contain the following number of MIP levels. If this - * element is not present it is assumed that all miplevels exist until a dimension - * becomes 1 texel. To create a surface that has only one level of mip maps - * (mip=0) set this to 1. If the value is 0 the result is the same as if - * mip_levels was unspecified, all possible mip_levels will exist. @see domMip_levels - */ - domMip_levelsRef elemMip_levels; -/** - * By default it is assumed that mipmaps are supplied by the author so, if - * not all subsurfaces are initialized, it is invalid and will result in profile - * and platform specific behavior unless mipmap_generate is responsible for - * initializing the remainder of the sub-surfaces @see domMipmap_generate - */ - domMipmap_generateRef elemMipmap_generate; - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the type attribute. - * @return Returns a domFx_surface_type_enum of the type attribute. - */ - domFx_surface_type_enum getType() const { return attrType; } - /** - * Sets the type attribute. - * @param atType The new value for the type attribute. - */ - void setType( domFx_surface_type_enum atType ) { attrType = atType; } - - /** - * Gets the fx_surface_init_common element. - * @return a daeSmartRef to the fx_surface_init_common element. - */ - const domFx_surface_init_commonRef getFx_surface_init_common() const { return elemFx_surface_init_common; } - /** - * Gets the format element. - * @return a daeSmartRef to the format element. - */ - const domFormatRef getFormat() const { return elemFormat; } - /** - * Gets the format_hint element. - * @return a daeSmartRef to the format_hint element. - */ - const domFx_surface_format_hint_commonRef getFormat_hint() const { return elemFormat_hint; } - /** - * Gets the size element. - * @return a daeSmartRef to the size element. - */ - const domSizeRef getSize() const { return elemSize; } - /** - * Gets the viewport_ratio element. - * @return a daeSmartRef to the viewport_ratio element. - */ - const domViewport_ratioRef getViewport_ratio() const { return elemViewport_ratio; } - /** - * Gets the mip_levels element. - * @return a daeSmartRef to the mip_levels element. - */ - const domMip_levelsRef getMip_levels() const { return elemMip_levels; } - /** - * Gets the mipmap_generate element. - * @return a daeSmartRef to the mipmap_generate element. - */ - const domMipmap_generateRef getMipmap_generate() const { return elemMipmap_generate; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domFx_surface_common_complexType() : attrType(), elemFx_surface_init_common(), elemFormat(), elemFormat_hint(), elemSize(), elemViewport_ratio(), elemMip_levels(), elemMipmap_generate(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domFx_surface_common_complexType() {} - /** - * Copy Constructor - */ - domFx_surface_common_complexType( const domFx_surface_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_surface_common_complexType &operator=( const domFx_surface_common_complexType &cpy ) { (void)cpy; return *this; } - -public: //Backwards Compatibility - typedef domFx_surface_init_from_common domInit_from; - typedef domFx_surface_init_from_commonRef domInit_fromRef; - typedef domFx_surface_init_from_common_Array domInit_from_Array; - - /** - * Gets the init_from element array. - * @return Returns a reference to the array of init_from elements. - */ - DLLSPEC domInit_from_Array &getInit_from_array(); - /** - * Gets the init_from element array. - * @return Returns a constant reference to the array of init_from elements. - */ - DLLSPEC const domInit_from_Array &getInit_from_array() const; - -private: - domInit_from_Array emptyArray; -}; - -/** - * An element of type domFx_surface_common_complexType. - */ -class domFx_surface_common : public daeElement, public domFx_surface_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_COMMON; } - -public: //Accessors and Mutators - /** - * Gets the type attribute. - * @return Returns a domFx_surface_type_enum of the type attribute. - */ - domFx_surface_type_enum getType() const { return attrType; } - /** - * Sets the type attribute. - * @param atType The new value for the type attribute. - */ - void setType( domFx_surface_type_enum atType ) { attrType = atType; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domFx_surface_common() {} - /** - * Destructor - */ - virtual ~domFx_surface_common() {} - /** - * Copy Constructor - */ - domFx_surface_common( const domFx_surface_common &cpy ) : daeElement(), domFx_surface_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_surface_common &operator=( const domFx_surface_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_format_hint_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_format_hint_common.h deleted file mode 100644 index e41189b7c..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_format_hint_common.h +++ /dev/null @@ -1,448 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_surface_format_hint_common_h__ -#define __domFx_surface_format_hint_common_h__ - -#include -#include - -#include - -/** - * If the exact format cannot be resolve via other methods then the format_hint - * will describe the important features of the format so that the application - * may select a compatable or close format - */ -class domFx_surface_format_hint_common_complexType -{ -public: - class domChannels; - - typedef daeSmartRef domChannelsRef; - typedef daeTArray domChannels_Array; - -/** - * The per-texel layout of the format. The length of the string indicate - * how many channels there are and the letter respresents the name of the - * channel. There are typically 0 to 4 channels. - */ - class domChannels : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CHANNELS; } - - protected: // Value - /** - * The domFx_surface_format_hint_channels_enum value of the text data of this element. - */ - domFx_surface_format_hint_channels_enum _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_surface_format_hint_channels_enum of the value. - */ - domFx_surface_format_hint_channels_enum getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_surface_format_hint_channels_enum val ) { _value = val; } - - protected: - /** - * Constructor - */ - domChannels() : _value() {} - /** - * Destructor - */ - virtual ~domChannels() {} - /** - * Copy Constructor - */ - domChannels( const domChannels &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domChannels &operator=( const domChannels &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domRange; - - typedef daeSmartRef domRangeRef; - typedef daeTArray domRange_Array; - -/** - * Each channel represents a range of values. Some example ranges are signed - * or unsigned integers, or between between a clamped range such as 0.0f to - * 1.0f, or high dynamic range via floating point - */ - class domRange : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RANGE; } - - protected: // Value - /** - * The domFx_surface_format_hint_range_enum value of the text data of this element. - */ - domFx_surface_format_hint_range_enum _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_surface_format_hint_range_enum of the value. - */ - domFx_surface_format_hint_range_enum getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_surface_format_hint_range_enum val ) { _value = val; } - - protected: - /** - * Constructor - */ - domRange() : _value() {} - /** - * Destructor - */ - virtual ~domRange() {} - /** - * Copy Constructor - */ - domRange( const domRange &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRange &operator=( const domRange &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPrecision; - - typedef daeSmartRef domPrecisionRef; - typedef daeTArray domPrecision_Array; - -/** - * Each channel of the texel has a precision. Typically these are all linked - * together. An exact format lay lower the precision of an individual channel - * but applying a higher precision by linking the channels together may still - * convey the same information. - */ - class domPrecision : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PRECISION; } - - protected: // Value - /** - * The domFx_surface_format_hint_precision_enum value of the text data of this element. - */ - domFx_surface_format_hint_precision_enum _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_surface_format_hint_precision_enum of the value. - */ - domFx_surface_format_hint_precision_enum getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_surface_format_hint_precision_enum val ) { _value = val; } - - protected: - /** - * Constructor - */ - domPrecision() : _value() {} - /** - * Destructor - */ - virtual ~domPrecision() {} - /** - * Copy Constructor - */ - domPrecision( const domPrecision &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPrecision &operator=( const domPrecision &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domOption; - - typedef daeSmartRef domOptionRef; - typedef daeTArray domOption_Array; - -/** - * Additional hints about data relationships and other things to help the - * application pick the best format. - */ - class domOption : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::OPTION; } - - protected: // Value - /** - * The domFx_surface_format_hint_option_enum value of the text data of this element. - */ - domFx_surface_format_hint_option_enum _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_surface_format_hint_option_enum of the value. - */ - domFx_surface_format_hint_option_enum getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_surface_format_hint_option_enum val ) { _value = val; } - - protected: - /** - * Constructor - */ - domOption() : _value() {} - /** - * Destructor - */ - virtual ~domOption() {} - /** - * Copy Constructor - */ - domOption( const domOption &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domOption &operator=( const domOption &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements -/** - * The per-texel layout of the format. The length of the string indicate - * how many channels there are and the letter respresents the name of the - * channel. There are typically 0 to 4 channels. @see domChannels - */ - domChannelsRef elemChannels; -/** - * Each channel represents a range of values. Some example ranges are signed - * or unsigned integers, or between between a clamped range such as 0.0f to - * 1.0f, or high dynamic range via floating point @see domRange - */ - domRangeRef elemRange; -/** - * Each channel of the texel has a precision. Typically these are all linked - * together. An exact format lay lower the precision of an individual channel - * but applying a higher precision by linking the channels together may still - * convey the same information. @see domPrecision - */ - domPrecisionRef elemPrecision; -/** - * Additional hints about data relationships and other things to help the - * application pick the best format. @see domOption - */ - domOption_Array elemOption_array; - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the channels element. - * @return a daeSmartRef to the channels element. - */ - const domChannelsRef getChannels() const { return elemChannels; } - /** - * Gets the range element. - * @return a daeSmartRef to the range element. - */ - const domRangeRef getRange() const { return elemRange; } - /** - * Gets the precision element. - * @return a daeSmartRef to the precision element. - */ - const domPrecisionRef getPrecision() const { return elemPrecision; } - /** - * Gets the option element array. - * @return Returns a reference to the array of option elements. - */ - domOption_Array &getOption_array() { return elemOption_array; } - /** - * Gets the option element array. - * @return Returns a constant reference to the array of option elements. - */ - const domOption_Array &getOption_array() const { return elemOption_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domFx_surface_format_hint_common_complexType() : elemChannels(), elemRange(), elemPrecision(), elemOption_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domFx_surface_format_hint_common_complexType() {} - /** - * Copy Constructor - */ - domFx_surface_format_hint_common_complexType( const domFx_surface_format_hint_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_surface_format_hint_common_complexType &operator=( const domFx_surface_format_hint_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_surface_format_hint_common_complexType. - */ -class domFx_surface_format_hint_common : public daeElement, public domFx_surface_format_hint_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_FORMAT_HINT_COMMON; } -protected: - /** - * Constructor - */ - domFx_surface_format_hint_common() {} - /** - * Destructor - */ - virtual ~domFx_surface_format_hint_common() {} - /** - * Copy Constructor - */ - domFx_surface_format_hint_common( const domFx_surface_format_hint_common &cpy ) : daeElement(), domFx_surface_format_hint_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_surface_format_hint_common &operator=( const domFx_surface_format_hint_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_common.h deleted file mode 100644 index 170275537..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_common.h +++ /dev/null @@ -1,278 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_surface_init_common_h__ -#define __domFx_surface_init_common_h__ - -#include -#include - -#include -#include -#include -#include - -/** - * The common set of initalization options for surfaces. Choose which is - * appropriate for your surface based on type and other characteristics. described - * by the annotation docs on the child elements. - */ -class domFx_surface_init_common : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_INIT_COMMON; } -public: - class domInit_as_null; - - typedef daeSmartRef domInit_as_nullRef; - typedef daeTArray domInit_as_null_Array; - -/** - * This surface is intended to be initialized later externally by a "setparam" - * element. If it is used before being initialized there is profile and platform - * specific behavior. Most elements on the surface element containing this - * will be ignored including mip_levels, mipmap_generate, size, viewport_ratio, - * and format. - */ - class domInit_as_null : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INIT_AS_NULL; } - - protected: - /** - * Constructor - */ - domInit_as_null() {} - /** - * Destructor - */ - virtual ~domInit_as_null() {} - /** - * Copy Constructor - */ - domInit_as_null( const domInit_as_null &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInit_as_null &operator=( const domInit_as_null &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInit_as_target; - - typedef daeSmartRef domInit_as_targetRef; - typedef daeTArray domInit_as_target_Array; - -/** - * Init as a target for depth, stencil, or color. It does not need image - * data. Surface should not have mipmap_generate when using this. - */ - class domInit_as_target : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INIT_AS_TARGET; } - - protected: - /** - * Constructor - */ - domInit_as_target() {} - /** - * Destructor - */ - virtual ~domInit_as_target() {} - /** - * Copy Constructor - */ - domInit_as_target( const domInit_as_target &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInit_as_target &operator=( const domInit_as_target &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements -/** - * This surface is intended to be initialized later externally by a "setparam" - * element. If it is used before being initialized there is profile and platform - * specific behavior. Most elements on the surface element containing this - * will be ignored including mip_levels, mipmap_generate, size, viewport_ratio, - * and format. @see domInit_as_null - */ - domInit_as_nullRef elemInit_as_null; -/** - * Init as a target for depth, stencil, or color. It does not need image - * data. Surface should not have mipmap_generate when using this. @see domInit_as_target - */ - domInit_as_targetRef elemInit_as_target; -/** - * Init a CUBE from a compound image such as DDS @see domInit_cube - */ - domFx_surface_init_cube_commonRef elemInit_cube; -/** - * Init a 3D from a compound image such as DDS @see domInit_volume - */ - domFx_surface_init_volume_commonRef elemInit_volume; -/** - * Init a 1D,2D,RECT,DEPTH from a compound image such as DDS @see domInit_planar - */ - domFx_surface_init_planar_commonRef elemInit_planar; -/** - * Initialize the surface one sub-surface at a time by specifying combinations - * of mip, face, and slice which make sense for a particular surface type. - * Each sub-surface is initialized by a common 2D image, not a complex compound - * image such as DDS. If not all subsurfaces are initialized, it is invalid - * and will result in profile and platform specific behavior unless mipmap_generate - * is responsible for initializing the remainder of the sub-surfaces @see - * domInit_from - */ - domFx_surface_init_from_common_Array elemInit_from_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the init_as_null element. - * @return a daeSmartRef to the init_as_null element. - */ - const domInit_as_nullRef getInit_as_null() const { return elemInit_as_null; } - /** - * Gets the init_as_target element. - * @return a daeSmartRef to the init_as_target element. - */ - const domInit_as_targetRef getInit_as_target() const { return elemInit_as_target; } - /** - * Gets the init_cube element. - * @return a daeSmartRef to the init_cube element. - */ - const domFx_surface_init_cube_commonRef getInit_cube() const { return elemInit_cube; } - /** - * Gets the init_volume element. - * @return a daeSmartRef to the init_volume element. - */ - const domFx_surface_init_volume_commonRef getInit_volume() const { return elemInit_volume; } - /** - * Gets the init_planar element. - * @return a daeSmartRef to the init_planar element. - */ - const domFx_surface_init_planar_commonRef getInit_planar() const { return elemInit_planar; } - /** - * Gets the init_from element array. - * @return Returns a reference to the array of init_from elements. - */ - domFx_surface_init_from_common_Array &getInit_from_array() { return elemInit_from_array; } - /** - * Gets the init_from element array. - * @return Returns a constant reference to the array of init_from elements. - */ - const domFx_surface_init_from_common_Array &getInit_from_array() const { return elemInit_from_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domFx_surface_init_common() : elemInit_as_null(), elemInit_as_target(), elemInit_cube(), elemInit_volume(), elemInit_planar(), elemInit_from_array() {} - /** - * Destructor - */ - virtual ~domFx_surface_init_common() {} - /** - * Copy Constructor - */ - domFx_surface_init_common( const domFx_surface_init_common &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_surface_init_common &operator=( const domFx_surface_init_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_cube_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_cube_common.h deleted file mode 100644 index 5c92f0947..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_cube_common.h +++ /dev/null @@ -1,458 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_surface_init_cube_common_h__ -#define __domFx_surface_init_cube_common_h__ - -#include -#include - - -class domFx_surface_init_cube_common_complexType -{ -public: - class domAll; - - typedef daeSmartRef domAllRef; - typedef daeTArray domAll_Array; - -/** - * Init the entire surface with one compound image such as DDS - */ - class domAll : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ALL; } - protected: // Attribute - xsIDREF attrRef; - - - public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a xsIDREF reference of the ref attribute. - */ - xsIDREF &getRef() { return attrRef; } - /** - * Gets the ref attribute. - * @return Returns a constant xsIDREF reference of the ref attribute. - */ - const xsIDREF &getRef() const{ return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( const xsIDREF &atRef ) { attrRef = atRef; - _validAttributeArray[0] = true; } - - protected: - /** - * Constructor - */ - domAll() : attrRef() {} - /** - * Destructor - */ - virtual ~domAll() {} - /** - * Copy Constructor - */ - domAll( const domAll &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAll &operator=( const domAll &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPrimary; - - typedef daeSmartRef domPrimaryRef; - typedef daeTArray domPrimary_Array; - -/** - * Init all primary mip level 0 subsurfaces with one compound image such as - * DDS. Use of this element expects that the surface has element mip_levels=0 - * or mipmap_generate. - */ - class domPrimary : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PRIMARY; } - public: - class domOrder; - - typedef daeSmartRef domOrderRef; - typedef daeTArray domOrder_Array; - -/** - * If the image dues not natively describe the face ordering then this series - * of order elements will describe which face the index belongs too - */ - class domOrder : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ORDER; } - - protected: // Value - /** - * The domFx_surface_face_enum value of the text data of this element. - */ - domFx_surface_face_enum _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_surface_face_enum of the value. - */ - domFx_surface_face_enum getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_surface_face_enum val ) { _value = val; } - - protected: - /** - * Constructor - */ - domOrder() : _value() {} - /** - * Destructor - */ - virtual ~domOrder() {} - /** - * Copy Constructor - */ - domOrder( const domOrder &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domOrder &operator=( const domOrder &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute - xsIDREF attrRef; - - protected: // Element -/** - * If the image dues not natively describe the face ordering then this series - * of order elements will describe which face the index belongs too @see domOrder - */ - domOrder_Array elemOrder_array; - - public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a xsIDREF reference of the ref attribute. - */ - xsIDREF &getRef() { return attrRef; } - /** - * Gets the ref attribute. - * @return Returns a constant xsIDREF reference of the ref attribute. - */ - const xsIDREF &getRef() const{ return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( const xsIDREF &atRef ) { attrRef = atRef; - _validAttributeArray[0] = true; } - - /** - * Gets the order element array. - * @return Returns a reference to the array of order elements. - */ - domOrder_Array &getOrder_array() { return elemOrder_array; } - /** - * Gets the order element array. - * @return Returns a constant reference to the array of order elements. - */ - const domOrder_Array &getOrder_array() const { return elemOrder_array; } - protected: - /** - * Constructor - */ - domPrimary() : attrRef(), elemOrder_array() {} - /** - * Destructor - */ - virtual ~domPrimary() {} - /** - * Copy Constructor - */ - domPrimary( const domPrimary &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPrimary &operator=( const domPrimary &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFace; - - typedef daeSmartRef domFaceRef; - typedef daeTArray domFace_Array; - -/** - * Init each face mipchain with one compound image such as DDS - */ - class domFace : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FACE; } - protected: // Attribute - xsIDREF attrRef; - - - public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a xsIDREF reference of the ref attribute. - */ - xsIDREF &getRef() { return attrRef; } - /** - * Gets the ref attribute. - * @return Returns a constant xsIDREF reference of the ref attribute. - */ - const xsIDREF &getRef() const{ return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( const xsIDREF &atRef ) { attrRef = atRef; - _validAttributeArray[0] = true; } - - protected: - /** - * Constructor - */ - domFace() : attrRef() {} - /** - * Destructor - */ - virtual ~domFace() {} - /** - * Copy Constructor - */ - domFace( const domFace &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFace &operator=( const domFace &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements -/** - * Init the entire surface with one compound image such as DDS @see domAll - */ - domAllRef elemAll; -/** - * Init all primary mip level 0 subsurfaces with one compound image such as - * DDS. Use of this element expects that the surface has element mip_levels=0 - * or mipmap_generate. @see domPrimary - */ - domPrimaryRef elemPrimary; -/** - * Init each face mipchain with one compound image such as DDS @see domFace - */ - domFace_Array elemFace_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the all element. - * @return a daeSmartRef to the all element. - */ - const domAllRef getAll() const { return elemAll; } - /** - * Gets the primary element. - * @return a daeSmartRef to the primary element. - */ - const domPrimaryRef getPrimary() const { return elemPrimary; } - /** - * Gets the face element array. - * @return Returns a reference to the array of face elements. - */ - domFace_Array &getFace_array() { return elemFace_array; } - /** - * Gets the face element array. - * @return Returns a constant reference to the array of face elements. - */ - const domFace_Array &getFace_array() const { return elemFace_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domFx_surface_init_cube_common_complexType() : elemAll(), elemPrimary(), elemFace_array() {} - /** - * Destructor - */ - virtual ~domFx_surface_init_cube_common_complexType() {} - /** - * Copy Constructor - */ - domFx_surface_init_cube_common_complexType( const domFx_surface_init_cube_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_surface_init_cube_common_complexType &operator=( const domFx_surface_init_cube_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_surface_init_cube_common_complexType. - */ -class domFx_surface_init_cube_common : public daeElement, public domFx_surface_init_cube_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_INIT_CUBE_COMMON; } -protected: - /** - * Constructor - */ - domFx_surface_init_cube_common() {} - /** - * Destructor - */ - virtual ~domFx_surface_init_cube_common() {} - /** - * Copy Constructor - */ - domFx_surface_init_cube_common( const domFx_surface_init_cube_common &cpy ) : daeElement(), domFx_surface_init_cube_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_surface_init_cube_common &operator=( const domFx_surface_init_cube_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_from_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_from_common.h deleted file mode 100644 index 4e4e36f12..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_from_common.h +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_surface_init_from_common_h__ -#define __domFx_surface_init_from_common_h__ - -#include -#include - - -/** - * This element is an IDREF which specifies the image to use to initialize - * a specific mip of a 1D or 2D surface, 3D slice, or Cube face. - */ -class domFx_surface_init_from_common_complexType -{ -protected: // Attributes - xsUnsignedInt attrMip; - xsUnsignedInt attrSlice; - domFx_surface_face_enum attrFace; - -protected: // Value - /** - * The xsIDREF value of the text data of this element. - */ - xsIDREF _value; - -public: //Accessors and Mutators - /** - * Gets the mip attribute. - * @return Returns a xsUnsignedInt of the mip attribute. - */ - xsUnsignedInt getMip() const { return attrMip; } - /** - * Sets the mip attribute. - * @param atMip The new value for the mip attribute. - */ - void setMip( xsUnsignedInt atMip ) { attrMip = atMip; } - - /** - * Gets the slice attribute. - * @return Returns a xsUnsignedInt of the slice attribute. - */ - xsUnsignedInt getSlice() const { return attrSlice; } - /** - * Sets the slice attribute. - * @param atSlice The new value for the slice attribute. - */ - void setSlice( xsUnsignedInt atSlice ) { attrSlice = atSlice; } - - /** - * Gets the face attribute. - * @return Returns a domFx_surface_face_enum of the face attribute. - */ - domFx_surface_face_enum getFace() const { return attrFace; } - /** - * Sets the face attribute. - * @param atFace The new value for the face attribute. - */ - void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; } - - /** - * Gets the value of this element. - * @return Returns a xsIDREF of the value. - */ - xsIDREF &getValue() { return _value; } - /** - * Gets the value of this element. - * @return Returns a constant xsIDREF of the value. - */ - const xsIDREF &getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( const xsIDREF &val ) { _value = val; } - -protected: - /** - * Constructor - */ - domFx_surface_init_from_common_complexType() : attrMip(), attrSlice(), attrFace(), _value() {} - /** - * Destructor - */ - virtual ~domFx_surface_init_from_common_complexType() {} - /** - * Copy Constructor - */ - domFx_surface_init_from_common_complexType( const domFx_surface_init_from_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_surface_init_from_common_complexType &operator=( const domFx_surface_init_from_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_surface_init_from_common_complexType. - */ -class domFx_surface_init_from_common : public daeElement, public domFx_surface_init_from_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_INIT_FROM_COMMON; } - -public: //Accessors and Mutators - /** - * Gets the mip attribute. - * @return Returns a xsUnsignedInt of the mip attribute. - */ - xsUnsignedInt getMip() const { return attrMip; } - /** - * Sets the mip attribute. - * @param atMip The new value for the mip attribute. - */ - void setMip( xsUnsignedInt atMip ) { attrMip = atMip; - _validAttributeArray[0] = true; } - - /** - * Gets the slice attribute. - * @return Returns a xsUnsignedInt of the slice attribute. - */ - xsUnsignedInt getSlice() const { return attrSlice; } - /** - * Sets the slice attribute. - * @param atSlice The new value for the slice attribute. - */ - void setSlice( xsUnsignedInt atSlice ) { attrSlice = atSlice; - _validAttributeArray[1] = true; } - - /** - * Gets the face attribute. - * @return Returns a domFx_surface_face_enum of the face attribute. - */ - domFx_surface_face_enum getFace() const { return attrFace; } - /** - * Sets the face attribute. - * @param atFace The new value for the face attribute. - */ - void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; - _validAttributeArray[2] = true; } - -protected: - /** - * Constructor - */ - domFx_surface_init_from_common() {} - /** - * Destructor - */ - virtual ~domFx_surface_init_from_common() {} - /** - * Copy Constructor - */ - domFx_surface_init_from_common( const domFx_surface_init_from_common &cpy ) : daeElement(), domFx_surface_init_from_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_surface_init_from_common &operator=( const domFx_surface_init_from_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_planar_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_planar_common.h deleted file mode 100644 index 26dd6d42f..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_planar_common.h +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_surface_init_planar_common_h__ -#define __domFx_surface_init_planar_common_h__ - -#include -#include - - -/** - * For 1D, 2D, RECT surface types - */ -class domFx_surface_init_planar_common_complexType -{ -public: - class domAll; - - typedef daeSmartRef domAllRef; - typedef daeTArray domAll_Array; - -/** - * Init the entire surface with one compound image such as DDS - */ - class domAll : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ALL; } - protected: // Attribute - xsIDREF attrRef; - - - public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a xsIDREF reference of the ref attribute. - */ - xsIDREF &getRef() { return attrRef; } - /** - * Gets the ref attribute. - * @return Returns a constant xsIDREF reference of the ref attribute. - */ - const xsIDREF &getRef() const{ return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( const xsIDREF &atRef ) { attrRef = atRef; - _validAttributeArray[0] = true; } - - protected: - /** - * Constructor - */ - domAll() : attrRef() {} - /** - * Destructor - */ - virtual ~domAll() {} - /** - * Copy Constructor - */ - domAll( const domAll &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAll &operator=( const domAll &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Element -/** - * Init the entire surface with one compound image such as DDS @see domAll - */ - domAllRef elemAll; - -public: //Accessors and Mutators - /** - * Gets the all element. - * @return a daeSmartRef to the all element. - */ - const domAllRef getAll() const { return elemAll; } -protected: - /** - * Constructor - */ - domFx_surface_init_planar_common_complexType() : elemAll() {} - /** - * Destructor - */ - virtual ~domFx_surface_init_planar_common_complexType() {} - /** - * Copy Constructor - */ - domFx_surface_init_planar_common_complexType( const domFx_surface_init_planar_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_surface_init_planar_common_complexType &operator=( const domFx_surface_init_planar_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_surface_init_planar_common_complexType. - */ -class domFx_surface_init_planar_common : public daeElement, public domFx_surface_init_planar_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_INIT_PLANAR_COMMON; } -protected: - /** - * Constructor - */ - domFx_surface_init_planar_common() {} - /** - * Destructor - */ - virtual ~domFx_surface_init_planar_common() {} - /** - * Copy Constructor - */ - domFx_surface_init_planar_common( const domFx_surface_init_planar_common &cpy ) : daeElement(), domFx_surface_init_planar_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_surface_init_planar_common &operator=( const domFx_surface_init_planar_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_volume_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_volume_common.h deleted file mode 100644 index 7ff0f7ba7..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domFx_surface_init_volume_common.h +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domFx_surface_init_volume_common_h__ -#define __domFx_surface_init_volume_common_h__ - -#include -#include - - -class domFx_surface_init_volume_common_complexType -{ -public: - class domAll; - - typedef daeSmartRef domAllRef; - typedef daeTArray domAll_Array; - -/** - * Init the entire surface with one compound image such as DDS - */ - class domAll : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ALL; } - protected: // Attribute - xsIDREF attrRef; - - - public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a xsIDREF reference of the ref attribute. - */ - xsIDREF &getRef() { return attrRef; } - /** - * Gets the ref attribute. - * @return Returns a constant xsIDREF reference of the ref attribute. - */ - const xsIDREF &getRef() const{ return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( const xsIDREF &atRef ) { attrRef = atRef; - _validAttributeArray[0] = true; } - - protected: - /** - * Constructor - */ - domAll() : attrRef() {} - /** - * Destructor - */ - virtual ~domAll() {} - /** - * Copy Constructor - */ - domAll( const domAll &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAll &operator=( const domAll &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPrimary; - - typedef daeSmartRef domPrimaryRef; - typedef daeTArray domPrimary_Array; - -/** - * Init mip level 0 of the surface with one compound image such as DDS. Use - * of this element expects that the surface has element mip_levels=0 or mipmap_generate. - */ - class domPrimary : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PRIMARY; } - protected: // Attribute - xsIDREF attrRef; - - - public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a xsIDREF reference of the ref attribute. - */ - xsIDREF &getRef() { return attrRef; } - /** - * Gets the ref attribute. - * @return Returns a constant xsIDREF reference of the ref attribute. - */ - const xsIDREF &getRef() const{ return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( const xsIDREF &atRef ) { attrRef = atRef; - _validAttributeArray[0] = true; } - - protected: - /** - * Constructor - */ - domPrimary() : attrRef() {} - /** - * Destructor - */ - virtual ~domPrimary() {} - /** - * Copy Constructor - */ - domPrimary( const domPrimary &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPrimary &operator=( const domPrimary &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements -/** - * Init the entire surface with one compound image such as DDS @see domAll - */ - domAllRef elemAll; -/** - * Init mip level 0 of the surface with one compound image such as DDS. Use - * of this element expects that the surface has element mip_levels=0 or mipmap_generate. - * @see domPrimary - */ - domPrimaryRef elemPrimary; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the all element. - * @return a daeSmartRef to the all element. - */ - const domAllRef getAll() const { return elemAll; } - /** - * Gets the primary element. - * @return a daeSmartRef to the primary element. - */ - const domPrimaryRef getPrimary() const { return elemPrimary; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domFx_surface_init_volume_common_complexType() : elemAll(), elemPrimary() {} - /** - * Destructor - */ - virtual ~domFx_surface_init_volume_common_complexType() {} - /** - * Copy Constructor - */ - domFx_surface_init_volume_common_complexType( const domFx_surface_init_volume_common_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_surface_init_volume_common_complexType &operator=( const domFx_surface_init_volume_common_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domFx_surface_init_volume_common_complexType. - */ -class domFx_surface_init_volume_common : public daeElement, public domFx_surface_init_volume_common_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_INIT_VOLUME_COMMON; } -protected: - /** - * Constructor - */ - domFx_surface_init_volume_common() {} - /** - * Destructor - */ - virtual ~domFx_surface_init_volume_common() {} - /** - * Copy Constructor - */ - domFx_surface_init_volume_common( const domFx_surface_init_volume_common &cpy ) : daeElement(), domFx_surface_init_volume_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFx_surface_init_volume_common &operator=( const domFx_surface_init_volume_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGeometry.h b/Extras/COLLADA_DOM/include/1.4/dom/domGeometry.h deleted file mode 100644 index 1b58f3d7b..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGeometry.h +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGeometry_h__ -#define __domGeometry_h__ - -#include -#include - -#include -#include -#include -#include -#include - -/** - * Geometry describes the visual shape and appearance of an object in the - * scene. The geometry element categorizes the declaration of geometric information. - * Geometry is a branch of mathematics that deals with the measurement, properties, - * and relationships of points, lines, angles, surfaces, and solids. - */ -class domGeometry : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GEOMETRY; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The geometry element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The geometry element may contain only one mesh or convex_mesh. @see domConvex_mesh - */ - domConvex_meshRef elemConvex_mesh; -/** - * The geometry element may contain only one mesh or convex_mesh. @see domMesh - */ - domMeshRef elemMesh; - domSplineRef elemSpline; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the convex_mesh element. - * @return a daeSmartRef to the convex_mesh element. - */ - const domConvex_meshRef getConvex_mesh() const { return elemConvex_mesh; } - /** - * Gets the mesh element. - * @return a daeSmartRef to the mesh element. - */ - const domMeshRef getMesh() const { return elemMesh; } - /** - * Gets the spline element. - * @return a daeSmartRef to the spline element. - */ - const domSplineRef getSpline() const { return elemSpline; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domGeometry() : attrId(), attrName(), elemAsset(), elemConvex_mesh(), elemMesh(), elemSpline(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domGeometry() {} - /** - * Copy Constructor - */ - domGeometry( const domGeometry &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGeometry &operator=( const domGeometry &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_hook_abstract.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_hook_abstract.h deleted file mode 100644 index 6ab613dbf..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGl_hook_abstract.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGl_hook_abstract_h__ -#define __domGl_hook_abstract_h__ - -#include -#include - - -class domGl_hook_abstract : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_HOOK_ABSTRACT; } - -protected: - /** - * Constructor - */ - domGl_hook_abstract() {} - /** - * Destructor - */ - virtual ~domGl_hook_abstract() {} - /** - * Copy Constructor - */ - domGl_hook_abstract( const domGl_hook_abstract &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_hook_abstract &operator=( const domGl_hook_abstract &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_pipeline_settings.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_pipeline_settings.h deleted file mode 100644 index cfd867ddb..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGl_pipeline_settings.h +++ /dev/null @@ -1,12361 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGl_pipeline_settings_h__ -#define __domGl_pipeline_settings_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -/** - * A group that defines all of the renderstates used for the CG and GLSL profiles. - */ -class domGl_pipeline_settings : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_PIPELINE_SETTINGS; } -public: - class domAlpha_func; - - typedef daeSmartRef domAlpha_funcRef; - typedef daeTArray domAlpha_func_Array; - - class domAlpha_func : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ALPHA_FUNC; } - public: - class domFunc; - - typedef daeSmartRef domFuncRef; - typedef daeTArray domFunc_Array; - - class domFunc : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FUNC; } - protected: // Attributes - domGl_func_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_func_type of the value attribute. - */ - domGl_func_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_func_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFunc() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFunc() {} - /** - * Copy Constructor - */ - domFunc( const domFunc &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFunc &operator=( const domFunc &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domValue; - - typedef daeSmartRef domValueRef; - typedef daeTArray domValue_Array; - - class domValue : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VALUE; } - protected: // Attributes - domGl_alpha_value_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_alpha_value_type of the value attribute. - */ - domGl_alpha_value_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_alpha_value_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domValue() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domValue() {} - /** - * Copy Constructor - */ - domValue( const domValue &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domValue &operator=( const domValue &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domFuncRef elemFunc; - domValueRef elemValue; - - public: //Accessors and Mutators - /** - * Gets the func element. - * @return a daeSmartRef to the func element. - */ - const domFuncRef getFunc() const { return elemFunc; } - /** - * Gets the value element. - * @return a daeSmartRef to the value element. - */ - const domValueRef getValue() const { return elemValue; } - protected: - /** - * Constructor - */ - domAlpha_func() : elemFunc(), elemValue() {} - /** - * Destructor - */ - virtual ~domAlpha_func() {} - /** - * Copy Constructor - */ - domAlpha_func( const domAlpha_func &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAlpha_func &operator=( const domAlpha_func &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBlend_func; - - typedef daeSmartRef domBlend_funcRef; - typedef daeTArray domBlend_func_Array; - - class domBlend_func : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BLEND_FUNC; } - public: - class domSrc; - - typedef daeSmartRef domSrcRef; - typedef daeTArray domSrc_Array; - - class domSrc : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SRC; } - protected: // Attributes - domGl_blend_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_blend_type of the value attribute. - */ - domGl_blend_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_blend_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domSrc() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domSrc() {} - /** - * Copy Constructor - */ - domSrc( const domSrc &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSrc &operator=( const domSrc &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDest; - - typedef daeSmartRef domDestRef; - typedef daeTArray domDest_Array; - - class domDest : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEST; } - protected: // Attributes - domGl_blend_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_blend_type of the value attribute. - */ - domGl_blend_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_blend_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDest() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDest() {} - /** - * Copy Constructor - */ - domDest( const domDest &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDest &operator=( const domDest &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domSrcRef elemSrc; - domDestRef elemDest; - - public: //Accessors and Mutators - /** - * Gets the src element. - * @return a daeSmartRef to the src element. - */ - const domSrcRef getSrc() const { return elemSrc; } - /** - * Gets the dest element. - * @return a daeSmartRef to the dest element. - */ - const domDestRef getDest() const { return elemDest; } - protected: - /** - * Constructor - */ - domBlend_func() : elemSrc(), elemDest() {} - /** - * Destructor - */ - virtual ~domBlend_func() {} - /** - * Copy Constructor - */ - domBlend_func( const domBlend_func &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBlend_func &operator=( const domBlend_func &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBlend_func_separate; - - typedef daeSmartRef domBlend_func_separateRef; - typedef daeTArray domBlend_func_separate_Array; - - class domBlend_func_separate : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BLEND_FUNC_SEPARATE; } - public: - class domSrc_rgb; - - typedef daeSmartRef domSrc_rgbRef; - typedef daeTArray domSrc_rgb_Array; - - class domSrc_rgb : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SRC_RGB; } - protected: // Attributes - domGl_blend_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_blend_type of the value attribute. - */ - domGl_blend_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_blend_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domSrc_rgb() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domSrc_rgb() {} - /** - * Copy Constructor - */ - domSrc_rgb( const domSrc_rgb &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSrc_rgb &operator=( const domSrc_rgb &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDest_rgb; - - typedef daeSmartRef domDest_rgbRef; - typedef daeTArray domDest_rgb_Array; - - class domDest_rgb : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEST_RGB; } - protected: // Attributes - domGl_blend_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_blend_type of the value attribute. - */ - domGl_blend_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_blend_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDest_rgb() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDest_rgb() {} - /** - * Copy Constructor - */ - domDest_rgb( const domDest_rgb &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDest_rgb &operator=( const domDest_rgb &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSrc_alpha; - - typedef daeSmartRef domSrc_alphaRef; - typedef daeTArray domSrc_alpha_Array; - - class domSrc_alpha : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SRC_ALPHA; } - protected: // Attributes - domGl_blend_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_blend_type of the value attribute. - */ - domGl_blend_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_blend_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domSrc_alpha() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domSrc_alpha() {} - /** - * Copy Constructor - */ - domSrc_alpha( const domSrc_alpha &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSrc_alpha &operator=( const domSrc_alpha &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDest_alpha; - - typedef daeSmartRef domDest_alphaRef; - typedef daeTArray domDest_alpha_Array; - - class domDest_alpha : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEST_ALPHA; } - protected: // Attributes - domGl_blend_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_blend_type of the value attribute. - */ - domGl_blend_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_blend_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDest_alpha() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDest_alpha() {} - /** - * Copy Constructor - */ - domDest_alpha( const domDest_alpha &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDest_alpha &operator=( const domDest_alpha &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domSrc_rgbRef elemSrc_rgb; - domDest_rgbRef elemDest_rgb; - domSrc_alphaRef elemSrc_alpha; - domDest_alphaRef elemDest_alpha; - - public: //Accessors and Mutators - /** - * Gets the src_rgb element. - * @return a daeSmartRef to the src_rgb element. - */ - const domSrc_rgbRef getSrc_rgb() const { return elemSrc_rgb; } - /** - * Gets the dest_rgb element. - * @return a daeSmartRef to the dest_rgb element. - */ - const domDest_rgbRef getDest_rgb() const { return elemDest_rgb; } - /** - * Gets the src_alpha element. - * @return a daeSmartRef to the src_alpha element. - */ - const domSrc_alphaRef getSrc_alpha() const { return elemSrc_alpha; } - /** - * Gets the dest_alpha element. - * @return a daeSmartRef to the dest_alpha element. - */ - const domDest_alphaRef getDest_alpha() const { return elemDest_alpha; } - protected: - /** - * Constructor - */ - domBlend_func_separate() : elemSrc_rgb(), elemDest_rgb(), elemSrc_alpha(), elemDest_alpha() {} - /** - * Destructor - */ - virtual ~domBlend_func_separate() {} - /** - * Copy Constructor - */ - domBlend_func_separate( const domBlend_func_separate &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBlend_func_separate &operator=( const domBlend_func_separate &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBlend_equation; - - typedef daeSmartRef domBlend_equationRef; - typedef daeTArray domBlend_equation_Array; - - class domBlend_equation : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BLEND_EQUATION; } - protected: // Attributes - domGl_blend_equation_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_blend_equation_type of the value attribute. - */ - domGl_blend_equation_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_blend_equation_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domBlend_equation() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domBlend_equation() {} - /** - * Copy Constructor - */ - domBlend_equation( const domBlend_equation &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBlend_equation &operator=( const domBlend_equation &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBlend_equation_separate; - - typedef daeSmartRef domBlend_equation_separateRef; - typedef daeTArray domBlend_equation_separate_Array; - - class domBlend_equation_separate : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BLEND_EQUATION_SEPARATE; } - public: - class domRgb; - - typedef daeSmartRef domRgbRef; - typedef daeTArray domRgb_Array; - - class domRgb : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RGB; } - protected: // Attributes - domGl_blend_equation_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_blend_equation_type of the value attribute. - */ - domGl_blend_equation_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_blend_equation_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domRgb() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domRgb() {} - /** - * Copy Constructor - */ - domRgb( const domRgb &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRgb &operator=( const domRgb &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domAlpha; - - typedef daeSmartRef domAlphaRef; - typedef daeTArray domAlpha_Array; - - class domAlpha : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ALPHA; } - protected: // Attributes - domGl_blend_equation_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_blend_equation_type of the value attribute. - */ - domGl_blend_equation_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_blend_equation_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domAlpha() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domAlpha() {} - /** - * Copy Constructor - */ - domAlpha( const domAlpha &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAlpha &operator=( const domAlpha &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domRgbRef elemRgb; - domAlphaRef elemAlpha; - - public: //Accessors and Mutators - /** - * Gets the rgb element. - * @return a daeSmartRef to the rgb element. - */ - const domRgbRef getRgb() const { return elemRgb; } - /** - * Gets the alpha element. - * @return a daeSmartRef to the alpha element. - */ - const domAlphaRef getAlpha() const { return elemAlpha; } - protected: - /** - * Constructor - */ - domBlend_equation_separate() : elemRgb(), elemAlpha() {} - /** - * Destructor - */ - virtual ~domBlend_equation_separate() {} - /** - * Copy Constructor - */ - domBlend_equation_separate( const domBlend_equation_separate &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBlend_equation_separate &operator=( const domBlend_equation_separate &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domColor_material; - - typedef daeSmartRef domColor_materialRef; - typedef daeTArray domColor_material_Array; - - class domColor_material : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLOR_MATERIAL; } - public: - class domFace; - - typedef daeSmartRef domFaceRef; - typedef daeTArray domFace_Array; - - class domFace : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FACE; } - protected: // Attributes - domGl_face_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_face_type of the value attribute. - */ - domGl_face_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_face_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFace() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFace() {} - /** - * Copy Constructor - */ - domFace( const domFace &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFace &operator=( const domFace &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMode; - - typedef daeSmartRef domModeRef; - typedef daeTArray domMode_Array; - - class domMode : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODE; } - protected: // Attributes - domGl_material_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_material_type of the value attribute. - */ - domGl_material_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_material_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMode() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMode() {} - /** - * Copy Constructor - */ - domMode( const domMode &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMode &operator=( const domMode &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domFaceRef elemFace; - domModeRef elemMode; - - public: //Accessors and Mutators - /** - * Gets the face element. - * @return a daeSmartRef to the face element. - */ - const domFaceRef getFace() const { return elemFace; } - /** - * Gets the mode element. - * @return a daeSmartRef to the mode element. - */ - const domModeRef getMode() const { return elemMode; } - protected: - /** - * Constructor - */ - domColor_material() : elemFace(), elemMode() {} - /** - * Destructor - */ - virtual ~domColor_material() {} - /** - * Copy Constructor - */ - domColor_material( const domColor_material &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domColor_material &operator=( const domColor_material &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domCull_face; - - typedef daeSmartRef domCull_faceRef; - typedef daeTArray domCull_face_Array; - - class domCull_face : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CULL_FACE; } - protected: // Attributes - domGl_face_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_face_type of the value attribute. - */ - domGl_face_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_face_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domCull_face() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domCull_face() {} - /** - * Copy Constructor - */ - domCull_face( const domCull_face &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCull_face &operator=( const domCull_face &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDepth_func; - - typedef daeSmartRef domDepth_funcRef; - typedef daeTArray domDepth_func_Array; - - class domDepth_func : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_FUNC; } - protected: // Attributes - domGl_func_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_func_type of the value attribute. - */ - domGl_func_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_func_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDepth_func() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDepth_func() {} - /** - * Copy Constructor - */ - domDepth_func( const domDepth_func &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDepth_func &operator=( const domDepth_func &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFog_mode; - - typedef daeSmartRef domFog_modeRef; - typedef daeTArray domFog_mode_Array; - - class domFog_mode : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOG_MODE; } - protected: // Attributes - domGl_fog_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_fog_type of the value attribute. - */ - domGl_fog_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_fog_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFog_mode() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFog_mode() {} - /** - * Copy Constructor - */ - domFog_mode( const domFog_mode &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFog_mode &operator=( const domFog_mode &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFog_coord_src; - - typedef daeSmartRef domFog_coord_srcRef; - typedef daeTArray domFog_coord_src_Array; - - class domFog_coord_src : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOG_COORD_SRC; } - protected: // Attributes - domGl_fog_coord_src_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_fog_coord_src_type of the value attribute. - */ - domGl_fog_coord_src_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_fog_coord_src_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFog_coord_src() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFog_coord_src() {} - /** - * Copy Constructor - */ - domFog_coord_src( const domFog_coord_src &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFog_coord_src &operator=( const domFog_coord_src &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFront_face; - - typedef daeSmartRef domFront_faceRef; - typedef daeTArray domFront_face_Array; - - class domFront_face : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FRONT_FACE; } - protected: // Attributes - domGl_front_face_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_front_face_type of the value attribute. - */ - domGl_front_face_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_front_face_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFront_face() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFront_face() {} - /** - * Copy Constructor - */ - domFront_face( const domFront_face &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFront_face &operator=( const domFront_face &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_model_color_control; - - typedef daeSmartRef domLight_model_color_controlRef; - typedef daeTArray domLight_model_color_control_Array; - - class domLight_model_color_control : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_MODEL_COLOR_CONTROL; } - protected: // Attributes - domGl_light_model_color_control_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_light_model_color_control_type of the value attribute. - */ - domGl_light_model_color_control_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_light_model_color_control_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLight_model_color_control() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLight_model_color_control() {} - /** - * Copy Constructor - */ - domLight_model_color_control( const domLight_model_color_control &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_model_color_control &operator=( const domLight_model_color_control &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLogic_op; - - typedef daeSmartRef domLogic_opRef; - typedef daeTArray domLogic_op_Array; - - class domLogic_op : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LOGIC_OP; } - protected: // Attributes - domGl_logic_op_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_logic_op_type of the value attribute. - */ - domGl_logic_op_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_logic_op_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLogic_op() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLogic_op() {} - /** - * Copy Constructor - */ - domLogic_op( const domLogic_op &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLogic_op &operator=( const domLogic_op &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPolygon_mode; - - typedef daeSmartRef domPolygon_modeRef; - typedef daeTArray domPolygon_mode_Array; - - class domPolygon_mode : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POLYGON_MODE; } - public: - class domFace; - - typedef daeSmartRef domFaceRef; - typedef daeTArray domFace_Array; - - class domFace : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FACE; } - protected: // Attributes - domGl_face_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_face_type of the value attribute. - */ - domGl_face_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_face_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFace() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFace() {} - /** - * Copy Constructor - */ - domFace( const domFace &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFace &operator=( const domFace &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMode; - - typedef daeSmartRef domModeRef; - typedef daeTArray domMode_Array; - - class domMode : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODE; } - protected: // Attributes - domGl_polygon_mode_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_polygon_mode_type of the value attribute. - */ - domGl_polygon_mode_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_polygon_mode_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMode() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMode() {} - /** - * Copy Constructor - */ - domMode( const domMode &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMode &operator=( const domMode &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domFaceRef elemFace; - domModeRef elemMode; - - public: //Accessors and Mutators - /** - * Gets the face element. - * @return a daeSmartRef to the face element. - */ - const domFaceRef getFace() const { return elemFace; } - /** - * Gets the mode element. - * @return a daeSmartRef to the mode element. - */ - const domModeRef getMode() const { return elemMode; } - protected: - /** - * Constructor - */ - domPolygon_mode() : elemFace(), elemMode() {} - /** - * Destructor - */ - virtual ~domPolygon_mode() {} - /** - * Copy Constructor - */ - domPolygon_mode( const domPolygon_mode &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPolygon_mode &operator=( const domPolygon_mode &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domShade_model; - - typedef daeSmartRef domShade_modelRef; - typedef daeTArray domShade_model_Array; - - class domShade_model : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SHADE_MODEL; } - protected: // Attributes - domGl_shade_model_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_shade_model_type of the value attribute. - */ - domGl_shade_model_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_shade_model_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domShade_model() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domShade_model() {} - /** - * Copy Constructor - */ - domShade_model( const domShade_model &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domShade_model &operator=( const domShade_model &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domStencil_func; - - typedef daeSmartRef domStencil_funcRef; - typedef daeTArray domStencil_func_Array; - - class domStencil_func : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_FUNC; } - public: - class domFunc; - - typedef daeSmartRef domFuncRef; - typedef daeTArray domFunc_Array; - - class domFunc : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FUNC; } - protected: // Attributes - domGl_func_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_func_type of the value attribute. - */ - domGl_func_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_func_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFunc() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFunc() {} - /** - * Copy Constructor - */ - domFunc( const domFunc &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFunc &operator=( const domFunc &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domRef; - - typedef daeSmartRef domRefRef; - typedef daeTArray domRef_Array; - - class domRef : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::REF; } - protected: // Attributes - xsUnsignedByte attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a xsUnsignedByte of the value attribute. - */ - xsUnsignedByte getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( xsUnsignedByte atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domRef() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domRef() {} - /** - * Copy Constructor - */ - domRef( const domRef &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRef &operator=( const domRef &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMask; - - typedef daeSmartRef domMaskRef; - typedef daeTArray domMask_Array; - - class domMask : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MASK; } - protected: // Attributes - xsUnsignedByte attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a xsUnsignedByte of the value attribute. - */ - xsUnsignedByte getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( xsUnsignedByte atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMask() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMask() {} - /** - * Copy Constructor - */ - domMask( const domMask &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMask &operator=( const domMask &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domFuncRef elemFunc; - domRefRef elemRef; - domMaskRef elemMask; - - public: //Accessors and Mutators - /** - * Gets the func element. - * @return a daeSmartRef to the func element. - */ - const domFuncRef getFunc() const { return elemFunc; } - /** - * Gets the ref element. - * @return a daeSmartRef to the ref element. - */ - const domRefRef getRef() const { return elemRef; } - /** - * Gets the mask element. - * @return a daeSmartRef to the mask element. - */ - const domMaskRef getMask() const { return elemMask; } - protected: - /** - * Constructor - */ - domStencil_func() : elemFunc(), elemRef(), elemMask() {} - /** - * Destructor - */ - virtual ~domStencil_func() {} - /** - * Copy Constructor - */ - domStencil_func( const domStencil_func &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domStencil_func &operator=( const domStencil_func &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domStencil_op; - - typedef daeSmartRef domStencil_opRef; - typedef daeTArray domStencil_op_Array; - - class domStencil_op : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_OP; } - public: - class domFail; - - typedef daeSmartRef domFailRef; - typedef daeTArray domFail_Array; - - class domFail : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FAIL; } - protected: // Attributes - domGl_stencil_op_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_stencil_op_type of the value attribute. - */ - domGl_stencil_op_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_stencil_op_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFail() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFail() {} - /** - * Copy Constructor - */ - domFail( const domFail &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFail &operator=( const domFail &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domZfail; - - typedef daeSmartRef domZfailRef; - typedef daeTArray domZfail_Array; - - class domZfail : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ZFAIL; } - protected: // Attributes - domGl_stencil_op_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_stencil_op_type of the value attribute. - */ - domGl_stencil_op_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_stencil_op_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domZfail() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domZfail() {} - /** - * Copy Constructor - */ - domZfail( const domZfail &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domZfail &operator=( const domZfail &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domZpass; - - typedef daeSmartRef domZpassRef; - typedef daeTArray domZpass_Array; - - class domZpass : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ZPASS; } - protected: // Attributes - domGl_stencil_op_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_stencil_op_type of the value attribute. - */ - domGl_stencil_op_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_stencil_op_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domZpass() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domZpass() {} - /** - * Copy Constructor - */ - domZpass( const domZpass &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domZpass &operator=( const domZpass &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domFailRef elemFail; - domZfailRef elemZfail; - domZpassRef elemZpass; - - public: //Accessors and Mutators - /** - * Gets the fail element. - * @return a daeSmartRef to the fail element. - */ - const domFailRef getFail() const { return elemFail; } - /** - * Gets the zfail element. - * @return a daeSmartRef to the zfail element. - */ - const domZfailRef getZfail() const { return elemZfail; } - /** - * Gets the zpass element. - * @return a daeSmartRef to the zpass element. - */ - const domZpassRef getZpass() const { return elemZpass; } - protected: - /** - * Constructor - */ - domStencil_op() : elemFail(), elemZfail(), elemZpass() {} - /** - * Destructor - */ - virtual ~domStencil_op() {} - /** - * Copy Constructor - */ - domStencil_op( const domStencil_op &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domStencil_op &operator=( const domStencil_op &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domStencil_func_separate; - - typedef daeSmartRef domStencil_func_separateRef; - typedef daeTArray domStencil_func_separate_Array; - - class domStencil_func_separate : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_FUNC_SEPARATE; } - public: - class domFront; - - typedef daeSmartRef domFrontRef; - typedef daeTArray domFront_Array; - - class domFront : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FRONT; } - protected: // Attributes - domGl_func_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_func_type of the value attribute. - */ - domGl_func_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_func_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFront() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFront() {} - /** - * Copy Constructor - */ - domFront( const domFront &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFront &operator=( const domFront &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBack; - - typedef daeSmartRef domBackRef; - typedef daeTArray domBack_Array; - - class domBack : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BACK; } - protected: // Attributes - domGl_func_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_func_type of the value attribute. - */ - domGl_func_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_func_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domBack() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domBack() {} - /** - * Copy Constructor - */ - domBack( const domBack &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBack &operator=( const domBack &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domRef; - - typedef daeSmartRef domRefRef; - typedef daeTArray domRef_Array; - - class domRef : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::REF; } - protected: // Attributes - xsUnsignedByte attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a xsUnsignedByte of the value attribute. - */ - xsUnsignedByte getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( xsUnsignedByte atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domRef() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domRef() {} - /** - * Copy Constructor - */ - domRef( const domRef &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRef &operator=( const domRef &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMask; - - typedef daeSmartRef domMaskRef; - typedef daeTArray domMask_Array; - - class domMask : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MASK; } - protected: // Attributes - xsUnsignedByte attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a xsUnsignedByte of the value attribute. - */ - xsUnsignedByte getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( xsUnsignedByte atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMask() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMask() {} - /** - * Copy Constructor - */ - domMask( const domMask &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMask &operator=( const domMask &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domFrontRef elemFront; - domBackRef elemBack; - domRefRef elemRef; - domMaskRef elemMask; - - public: //Accessors and Mutators - /** - * Gets the front element. - * @return a daeSmartRef to the front element. - */ - const domFrontRef getFront() const { return elemFront; } - /** - * Gets the back element. - * @return a daeSmartRef to the back element. - */ - const domBackRef getBack() const { return elemBack; } - /** - * Gets the ref element. - * @return a daeSmartRef to the ref element. - */ - const domRefRef getRef() const { return elemRef; } - /** - * Gets the mask element. - * @return a daeSmartRef to the mask element. - */ - const domMaskRef getMask() const { return elemMask; } - protected: - /** - * Constructor - */ - domStencil_func_separate() : elemFront(), elemBack(), elemRef(), elemMask() {} - /** - * Destructor - */ - virtual ~domStencil_func_separate() {} - /** - * Copy Constructor - */ - domStencil_func_separate( const domStencil_func_separate &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domStencil_func_separate &operator=( const domStencil_func_separate &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domStencil_op_separate; - - typedef daeSmartRef domStencil_op_separateRef; - typedef daeTArray domStencil_op_separate_Array; - - class domStencil_op_separate : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_OP_SEPARATE; } - public: - class domFace; - - typedef daeSmartRef domFaceRef; - typedef daeTArray domFace_Array; - - class domFace : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FACE; } - protected: // Attributes - domGl_face_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_face_type of the value attribute. - */ - domGl_face_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_face_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFace() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFace() {} - /** - * Copy Constructor - */ - domFace( const domFace &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFace &operator=( const domFace &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFail; - - typedef daeSmartRef domFailRef; - typedef daeTArray domFail_Array; - - class domFail : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FAIL; } - protected: // Attributes - domGl_stencil_op_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_stencil_op_type of the value attribute. - */ - domGl_stencil_op_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_stencil_op_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFail() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFail() {} - /** - * Copy Constructor - */ - domFail( const domFail &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFail &operator=( const domFail &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domZfail; - - typedef daeSmartRef domZfailRef; - typedef daeTArray domZfail_Array; - - class domZfail : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ZFAIL; } - protected: // Attributes - domGl_stencil_op_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_stencil_op_type of the value attribute. - */ - domGl_stencil_op_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_stencil_op_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domZfail() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domZfail() {} - /** - * Copy Constructor - */ - domZfail( const domZfail &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domZfail &operator=( const domZfail &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domZpass; - - typedef daeSmartRef domZpassRef; - typedef daeTArray domZpass_Array; - - class domZpass : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ZPASS; } - protected: // Attributes - domGl_stencil_op_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_stencil_op_type of the value attribute. - */ - domGl_stencil_op_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_stencil_op_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domZpass() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domZpass() {} - /** - * Copy Constructor - */ - domZpass( const domZpass &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domZpass &operator=( const domZpass &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domFaceRef elemFace; - domFailRef elemFail; - domZfailRef elemZfail; - domZpassRef elemZpass; - - public: //Accessors and Mutators - /** - * Gets the face element. - * @return a daeSmartRef to the face element. - */ - const domFaceRef getFace() const { return elemFace; } - /** - * Gets the fail element. - * @return a daeSmartRef to the fail element. - */ - const domFailRef getFail() const { return elemFail; } - /** - * Gets the zfail element. - * @return a daeSmartRef to the zfail element. - */ - const domZfailRef getZfail() const { return elemZfail; } - /** - * Gets the zpass element. - * @return a daeSmartRef to the zpass element. - */ - const domZpassRef getZpass() const { return elemZpass; } - protected: - /** - * Constructor - */ - domStencil_op_separate() : elemFace(), elemFail(), elemZfail(), elemZpass() {} - /** - * Destructor - */ - virtual ~domStencil_op_separate() {} - /** - * Copy Constructor - */ - domStencil_op_separate( const domStencil_op_separate &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domStencil_op_separate &operator=( const domStencil_op_separate &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domStencil_mask_separate; - - typedef daeSmartRef domStencil_mask_separateRef; - typedef daeTArray domStencil_mask_separate_Array; - - class domStencil_mask_separate : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_MASK_SEPARATE; } - public: - class domFace; - - typedef daeSmartRef domFaceRef; - typedef daeTArray domFace_Array; - - class domFace : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FACE; } - protected: // Attributes - domGl_face_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_face_type of the value attribute. - */ - domGl_face_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_face_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFace() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFace() {} - /** - * Copy Constructor - */ - domFace( const domFace &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFace &operator=( const domFace &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMask; - - typedef daeSmartRef domMaskRef; - typedef daeTArray domMask_Array; - - class domMask : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MASK; } - protected: // Attributes - xsUnsignedByte attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a xsUnsignedByte of the value attribute. - */ - xsUnsignedByte getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( xsUnsignedByte atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMask() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMask() {} - /** - * Copy Constructor - */ - domMask( const domMask &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMask &operator=( const domMask &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domFaceRef elemFace; - domMaskRef elemMask; - - public: //Accessors and Mutators - /** - * Gets the face element. - * @return a daeSmartRef to the face element. - */ - const domFaceRef getFace() const { return elemFace; } - /** - * Gets the mask element. - * @return a daeSmartRef to the mask element. - */ - const domMaskRef getMask() const { return elemMask; } - protected: - /** - * Constructor - */ - domStencil_mask_separate() : elemFace(), elemMask() {} - /** - * Destructor - */ - virtual ~domStencil_mask_separate() {} - /** - * Copy Constructor - */ - domStencil_mask_separate( const domStencil_mask_separate &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domStencil_mask_separate &operator=( const domStencil_mask_separate &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_enable; - - typedef daeSmartRef domLight_enableRef; - typedef daeTArray domLight_enable_Array; - - class domLight_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - domGL_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. - */ - domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_enable() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_enable() {} - /** - * Copy Constructor - */ - domLight_enable( const domLight_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_enable &operator=( const domLight_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_ambient; - - typedef daeSmartRef domLight_ambientRef; - typedef daeTArray domLight_ambient_Array; - - class domLight_ambient : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_AMBIENT; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - domGL_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. - */ - domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_ambient() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_ambient() {} - /** - * Copy Constructor - */ - domLight_ambient( const domLight_ambient &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_ambient &operator=( const domLight_ambient &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_diffuse; - - typedef daeSmartRef domLight_diffuseRef; - typedef daeTArray domLight_diffuse_Array; - - class domLight_diffuse : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_DIFFUSE; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - domGL_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. - */ - domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_diffuse() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_diffuse() {} - /** - * Copy Constructor - */ - domLight_diffuse( const domLight_diffuse &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_diffuse &operator=( const domLight_diffuse &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_specular; - - typedef daeSmartRef domLight_specularRef; - typedef daeTArray domLight_specular_Array; - - class domLight_specular : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_SPECULAR; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - domGL_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. - */ - domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_specular() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_specular() {} - /** - * Copy Constructor - */ - domLight_specular( const domLight_specular &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_specular &operator=( const domLight_specular &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_position; - - typedef daeSmartRef domLight_positionRef; - typedef daeTArray domLight_position_Array; - - class domLight_position : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_POSITION; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - domGL_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. - */ - domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_position() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_position() {} - /** - * Copy Constructor - */ - domLight_position( const domLight_position &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_position &operator=( const domLight_position &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_constant_attenuation; - - typedef daeSmartRef domLight_constant_attenuationRef; - typedef daeTArray domLight_constant_attenuation_Array; - - class domLight_constant_attenuation : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_CONSTANT_ATTENUATION; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - domGL_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. - */ - domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_constant_attenuation() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_constant_attenuation() {} - /** - * Copy Constructor - */ - domLight_constant_attenuation( const domLight_constant_attenuation &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_constant_attenuation &operator=( const domLight_constant_attenuation &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_linear_attenuation; - - typedef daeSmartRef domLight_linear_attenuationRef; - typedef daeTArray domLight_linear_attenuation_Array; - - class domLight_linear_attenuation : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_LINEAR_ATTENUATION; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - domGL_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. - */ - domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_linear_attenuation() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_linear_attenuation() {} - /** - * Copy Constructor - */ - domLight_linear_attenuation( const domLight_linear_attenuation &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_linear_attenuation &operator=( const domLight_linear_attenuation &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_quadratic_attenuation; - - typedef daeSmartRef domLight_quadratic_attenuationRef; - typedef daeTArray domLight_quadratic_attenuation_Array; - - class domLight_quadratic_attenuation : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_QUADRATIC_ATTENUATION; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - domGL_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. - */ - domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_quadratic_attenuation() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_quadratic_attenuation() {} - /** - * Copy Constructor - */ - domLight_quadratic_attenuation( const domLight_quadratic_attenuation &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_quadratic_attenuation &operator=( const domLight_quadratic_attenuation &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_spot_cutoff; - - typedef daeSmartRef domLight_spot_cutoffRef; - typedef daeTArray domLight_spot_cutoff_Array; - - class domLight_spot_cutoff : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_SPOT_CUTOFF; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - domGL_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. - */ - domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_spot_cutoff() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_spot_cutoff() {} - /** - * Copy Constructor - */ - domLight_spot_cutoff( const domLight_spot_cutoff &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_spot_cutoff &operator=( const domLight_spot_cutoff &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_spot_direction; - - typedef daeSmartRef domLight_spot_directionRef; - typedef daeTArray domLight_spot_direction_Array; - - class domLight_spot_direction : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_SPOT_DIRECTION; } - protected: // Attributes - domFloat3 attrValue; - xsNCName attrParam; - domGL_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat3 reference of the value array attribute. - */ - domFloat3 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat3 reference of the value array attribute. - */ - const domFloat3 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat3 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. - */ - domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_spot_direction() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_spot_direction() {} - /** - * Copy Constructor - */ - domLight_spot_direction( const domLight_spot_direction &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_spot_direction &operator=( const domLight_spot_direction &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_spot_exponent; - - typedef daeSmartRef domLight_spot_exponentRef; - typedef daeTArray domLight_spot_exponent_Array; - - class domLight_spot_exponent : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_SPOT_EXPONENT; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - domGL_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_LIGHTS_index of the index attribute. - */ - domGL_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_spot_exponent() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_spot_exponent() {} - /** - * Copy Constructor - */ - domLight_spot_exponent( const domLight_spot_exponent &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_spot_exponent &operator=( const domLight_spot_exponent &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTexture1D; - - typedef daeSmartRef domTexture1DRef; - typedef daeTArray domTexture1D_Array; - - class domTexture1D : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURE1D; } - public: - class domParam; - - typedef daeSmartRef domParamRef; - typedef daeTArray domParam_Array; - - class domParam : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domParam() : _value() {} - /** - * Destructor - */ - virtual ~domParam() {} - /** - * Copy Constructor - */ - domParam( const domParam &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domParam &operator=( const domParam &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - protected: // Elements - domGl_sampler1DRef elemValue; - domParamRef elemParam; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[0] = true; } - - /** - * Gets the value element. - * @return a daeSmartRef to the value element. - */ - const domGl_sampler1DRef getValue() const { return elemValue; } - /** - * Gets the param element. - * @return a daeSmartRef to the param element. - */ - const domParamRef getParam() const { return elemParam; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTexture1D() : attrIndex(), elemValue(), elemParam() {} - /** - * Destructor - */ - virtual ~domTexture1D() {} - /** - * Copy Constructor - */ - domTexture1D( const domTexture1D &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTexture1D &operator=( const domTexture1D &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTexture2D; - - typedef daeSmartRef domTexture2DRef; - typedef daeTArray domTexture2D_Array; - - class domTexture2D : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURE2D; } - public: - class domParam; - - typedef daeSmartRef domParamRef; - typedef daeTArray domParam_Array; - - class domParam : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domParam() : _value() {} - /** - * Destructor - */ - virtual ~domParam() {} - /** - * Copy Constructor - */ - domParam( const domParam &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domParam &operator=( const domParam &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - protected: // Elements - domGl_sampler2DRef elemValue; - domParamRef elemParam; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[0] = true; } - - /** - * Gets the value element. - * @return a daeSmartRef to the value element. - */ - const domGl_sampler2DRef getValue() const { return elemValue; } - /** - * Gets the param element. - * @return a daeSmartRef to the param element. - */ - const domParamRef getParam() const { return elemParam; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTexture2D() : attrIndex(), elemValue(), elemParam() {} - /** - * Destructor - */ - virtual ~domTexture2D() {} - /** - * Copy Constructor - */ - domTexture2D( const domTexture2D &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTexture2D &operator=( const domTexture2D &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTexture3D; - - typedef daeSmartRef domTexture3DRef; - typedef daeTArray domTexture3D_Array; - - class domTexture3D : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURE3D; } - public: - class domParam; - - typedef daeSmartRef domParamRef; - typedef daeTArray domParam_Array; - - class domParam : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domParam() : _value() {} - /** - * Destructor - */ - virtual ~domParam() {} - /** - * Copy Constructor - */ - domParam( const domParam &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domParam &operator=( const domParam &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - protected: // Elements - domGl_sampler3DRef elemValue; - domParamRef elemParam; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[0] = true; } - - /** - * Gets the value element. - * @return a daeSmartRef to the value element. - */ - const domGl_sampler3DRef getValue() const { return elemValue; } - /** - * Gets the param element. - * @return a daeSmartRef to the param element. - */ - const domParamRef getParam() const { return elemParam; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTexture3D() : attrIndex(), elemValue(), elemParam() {} - /** - * Destructor - */ - virtual ~domTexture3D() {} - /** - * Copy Constructor - */ - domTexture3D( const domTexture3D &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTexture3D &operator=( const domTexture3D &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTextureCUBE; - - typedef daeSmartRef domTextureCUBERef; - typedef daeTArray domTextureCUBE_Array; - - class domTextureCUBE : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURECUBE; } - public: - class domParam; - - typedef daeSmartRef domParamRef; - typedef daeTArray domParam_Array; - - class domParam : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domParam() : _value() {} - /** - * Destructor - */ - virtual ~domParam() {} - /** - * Copy Constructor - */ - domParam( const domParam &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domParam &operator=( const domParam &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - protected: // Elements - domGl_samplerCUBERef elemValue; - domParamRef elemParam; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[0] = true; } - - /** - * Gets the value element. - * @return a daeSmartRef to the value element. - */ - const domGl_samplerCUBERef getValue() const { return elemValue; } - /** - * Gets the param element. - * @return a daeSmartRef to the param element. - */ - const domParamRef getParam() const { return elemParam; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTextureCUBE() : attrIndex(), elemValue(), elemParam() {} - /** - * Destructor - */ - virtual ~domTextureCUBE() {} - /** - * Copy Constructor - */ - domTextureCUBE( const domTextureCUBE &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTextureCUBE &operator=( const domTextureCUBE &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTextureRECT; - - typedef daeSmartRef domTextureRECTRef; - typedef daeTArray domTextureRECT_Array; - - class domTextureRECT : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURERECT; } - public: - class domParam; - - typedef daeSmartRef domParamRef; - typedef daeTArray domParam_Array; - - class domParam : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domParam() : _value() {} - /** - * Destructor - */ - virtual ~domParam() {} - /** - * Copy Constructor - */ - domParam( const domParam &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domParam &operator=( const domParam &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - protected: // Elements - domGl_samplerRECTRef elemValue; - domParamRef elemParam; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[0] = true; } - - /** - * Gets the value element. - * @return a daeSmartRef to the value element. - */ - const domGl_samplerRECTRef getValue() const { return elemValue; } - /** - * Gets the param element. - * @return a daeSmartRef to the param element. - */ - const domParamRef getParam() const { return elemParam; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTextureRECT() : attrIndex(), elemValue(), elemParam() {} - /** - * Destructor - */ - virtual ~domTextureRECT() {} - /** - * Copy Constructor - */ - domTextureRECT( const domTextureRECT &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTextureRECT &operator=( const domTextureRECT &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTextureDEPTH; - - typedef daeSmartRef domTextureDEPTHRef; - typedef daeTArray domTextureDEPTH_Array; - - class domTextureDEPTH : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTUREDEPTH; } - public: - class domParam; - - typedef daeSmartRef domParamRef; - typedef daeTArray domParam_Array; - - class domParam : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domParam() : _value() {} - /** - * Destructor - */ - virtual ~domParam() {} - /** - * Copy Constructor - */ - domParam( const domParam &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domParam &operator=( const domParam &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - protected: // Elements - domGl_samplerDEPTHRef elemValue; - domParamRef elemParam; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[0] = true; } - - /** - * Gets the value element. - * @return a daeSmartRef to the value element. - */ - const domGl_samplerDEPTHRef getValue() const { return elemValue; } - /** - * Gets the param element. - * @return a daeSmartRef to the param element. - */ - const domParamRef getParam() const { return elemParam; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTextureDEPTH() : attrIndex(), elemValue(), elemParam() {} - /** - * Destructor - */ - virtual ~domTextureDEPTH() {} - /** - * Copy Constructor - */ - domTextureDEPTH( const domTextureDEPTH &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTextureDEPTH &operator=( const domTextureDEPTH &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTexture1D_enable; - - typedef daeSmartRef domTexture1D_enableRef; - typedef daeTArray domTexture1D_enable_Array; - - class domTexture1D_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURE1D_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domTexture1D_enable() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domTexture1D_enable() {} - /** - * Copy Constructor - */ - domTexture1D_enable( const domTexture1D_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTexture1D_enable &operator=( const domTexture1D_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTexture2D_enable; - - typedef daeSmartRef domTexture2D_enableRef; - typedef daeTArray domTexture2D_enable_Array; - - class domTexture2D_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURE2D_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domTexture2D_enable() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domTexture2D_enable() {} - /** - * Copy Constructor - */ - domTexture2D_enable( const domTexture2D_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTexture2D_enable &operator=( const domTexture2D_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTexture3D_enable; - - typedef daeSmartRef domTexture3D_enableRef; - typedef daeTArray domTexture3D_enable_Array; - - class domTexture3D_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURE3D_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domTexture3D_enable() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domTexture3D_enable() {} - /** - * Copy Constructor - */ - domTexture3D_enable( const domTexture3D_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTexture3D_enable &operator=( const domTexture3D_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTextureCUBE_enable; - - typedef daeSmartRef domTextureCUBE_enableRef; - typedef daeTArray domTextureCUBE_enable_Array; - - class domTextureCUBE_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURECUBE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domTextureCUBE_enable() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domTextureCUBE_enable() {} - /** - * Copy Constructor - */ - domTextureCUBE_enable( const domTextureCUBE_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTextureCUBE_enable &operator=( const domTextureCUBE_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTextureRECT_enable; - - typedef daeSmartRef domTextureRECT_enableRef; - typedef daeTArray domTextureRECT_enable_Array; - - class domTextureRECT_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURERECT_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domTextureRECT_enable() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domTextureRECT_enable() {} - /** - * Copy Constructor - */ - domTextureRECT_enable( const domTextureRECT_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTextureRECT_enable &operator=( const domTextureRECT_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTextureDEPTH_enable; - - typedef daeSmartRef domTextureDEPTH_enableRef; - typedef daeTArray domTextureDEPTH_enable_Array; - - class domTextureDEPTH_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTUREDEPTH_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domTextureDEPTH_enable() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domTextureDEPTH_enable() {} - /** - * Copy Constructor - */ - domTextureDEPTH_enable( const domTextureDEPTH_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTextureDEPTH_enable &operator=( const domTextureDEPTH_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTexture_env_color; - - typedef daeSmartRef domTexture_env_colorRef; - typedef daeTArray domTexture_env_color_Array; - - class domTexture_env_color : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURE_ENV_COLOR; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domTexture_env_color() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domTexture_env_color() {} - /** - * Copy Constructor - */ - domTexture_env_color( const domTexture_env_color &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTexture_env_color &operator=( const domTexture_env_color &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTexture_env_mode; - - typedef daeSmartRef domTexture_env_modeRef; - typedef daeTArray domTexture_env_mode_Array; - - class domTexture_env_mode : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURE_ENV_MODE; } - protected: // Attributes - domString attrValue; - xsNCName attrParam; - domGL_MAX_TEXTURE_IMAGE_UNITS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domString of the value attribute. - */ - domString getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domString atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_TEXTURE_IMAGE_UNITS_index of the index attribute. - */ - domGL_MAX_TEXTURE_IMAGE_UNITS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_TEXTURE_IMAGE_UNITS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domTexture_env_mode() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domTexture_env_mode() {} - /** - * Copy Constructor - */ - domTexture_env_mode( const domTexture_env_mode &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTexture_env_mode &operator=( const domTexture_env_mode &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domClip_plane; - - typedef daeSmartRef domClip_planeRef; - typedef daeTArray domClip_plane_Array; - - class domClip_plane : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CLIP_PLANE; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - domGL_MAX_CLIP_PLANES_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_CLIP_PLANES_index of the index attribute. - */ - domGL_MAX_CLIP_PLANES_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_CLIP_PLANES_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domClip_plane() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domClip_plane() {} - /** - * Copy Constructor - */ - domClip_plane( const domClip_plane &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domClip_plane &operator=( const domClip_plane &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domClip_plane_enable; - - typedef daeSmartRef domClip_plane_enableRef; - typedef daeTArray domClip_plane_enable_Array; - - class domClip_plane_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CLIP_PLANE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - domGL_MAX_CLIP_PLANES_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGL_MAX_CLIP_PLANES_index of the index attribute. - */ - domGL_MAX_CLIP_PLANES_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGL_MAX_CLIP_PLANES_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domClip_plane_enable() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domClip_plane_enable() {} - /** - * Copy Constructor - */ - domClip_plane_enable( const domClip_plane_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domClip_plane_enable &operator=( const domClip_plane_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBlend_color; - - typedef daeSmartRef domBlend_colorRef; - typedef daeTArray domBlend_color_Array; - - class domBlend_color : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BLEND_COLOR; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domBlend_color() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domBlend_color() {} - /** - * Copy Constructor - */ - domBlend_color( const domBlend_color &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBlend_color &operator=( const domBlend_color &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domClear_color; - - typedef daeSmartRef domClear_colorRef; - typedef daeTArray domClear_color_Array; - - class domClear_color : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CLEAR_COLOR; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domClear_color() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domClear_color() {} - /** - * Copy Constructor - */ - domClear_color( const domClear_color &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domClear_color &operator=( const domClear_color &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domClear_stencil; - - typedef daeSmartRef domClear_stencilRef; - typedef daeTArray domClear_stencil_Array; - - class domClear_stencil : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CLEAR_STENCIL; } - protected: // Attributes - domInt attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domInt of the value attribute. - */ - domInt getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domInt atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domClear_stencil() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domClear_stencil() {} - /** - * Copy Constructor - */ - domClear_stencil( const domClear_stencil &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domClear_stencil &operator=( const domClear_stencil &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domClear_depth; - - typedef daeSmartRef domClear_depthRef; - typedef daeTArray domClear_depth_Array; - - class domClear_depth : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CLEAR_DEPTH; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domClear_depth() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domClear_depth() {} - /** - * Copy Constructor - */ - domClear_depth( const domClear_depth &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domClear_depth &operator=( const domClear_depth &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domColor_mask; - - typedef daeSmartRef domColor_maskRef; - typedef daeTArray domColor_mask_Array; - - class domColor_mask : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLOR_MASK; } - protected: // Attributes - domBool4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domBool4 reference of the value array attribute. - */ - domBool4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domBool4 reference of the value array attribute. - */ - const domBool4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domBool4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domColor_mask() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domColor_mask() {} - /** - * Copy Constructor - */ - domColor_mask( const domColor_mask &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domColor_mask &operator=( const domColor_mask &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDepth_bounds; - - typedef daeSmartRef domDepth_boundsRef; - typedef daeTArray domDepth_bounds_Array; - - class domDepth_bounds : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_BOUNDS; } - protected: // Attributes - domFloat2 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat2 reference of the value array attribute. - */ - domFloat2 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat2 reference of the value array attribute. - */ - const domFloat2 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat2 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDepth_bounds() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDepth_bounds() {} - /** - * Copy Constructor - */ - domDepth_bounds( const domDepth_bounds &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDepth_bounds &operator=( const domDepth_bounds &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDepth_mask; - - typedef daeSmartRef domDepth_maskRef; - typedef daeTArray domDepth_mask_Array; - - class domDepth_mask : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_MASK; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDepth_mask() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDepth_mask() {} - /** - * Copy Constructor - */ - domDepth_mask( const domDepth_mask &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDepth_mask &operator=( const domDepth_mask &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDepth_range; - - typedef daeSmartRef domDepth_rangeRef; - typedef daeTArray domDepth_range_Array; - - class domDepth_range : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_RANGE; } - protected: // Attributes - domFloat2 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat2 reference of the value array attribute. - */ - domFloat2 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat2 reference of the value array attribute. - */ - const domFloat2 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat2 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDepth_range() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDepth_range() {} - /** - * Copy Constructor - */ - domDepth_range( const domDepth_range &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDepth_range &operator=( const domDepth_range &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFog_density; - - typedef daeSmartRef domFog_densityRef; - typedef daeTArray domFog_density_Array; - - class domFog_density : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOG_DENSITY; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFog_density() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFog_density() {} - /** - * Copy Constructor - */ - domFog_density( const domFog_density &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFog_density &operator=( const domFog_density &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFog_start; - - typedef daeSmartRef domFog_startRef; - typedef daeTArray domFog_start_Array; - - class domFog_start : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOG_START; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFog_start() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFog_start() {} - /** - * Copy Constructor - */ - domFog_start( const domFog_start &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFog_start &operator=( const domFog_start &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFog_end; - - typedef daeSmartRef domFog_endRef; - typedef daeTArray domFog_end_Array; - - class domFog_end : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOG_END; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFog_end() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFog_end() {} - /** - * Copy Constructor - */ - domFog_end( const domFog_end &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFog_end &operator=( const domFog_end &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFog_color; - - typedef daeSmartRef domFog_colorRef; - typedef daeTArray domFog_color_Array; - - class domFog_color : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOG_COLOR; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFog_color() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFog_color() {} - /** - * Copy Constructor - */ - domFog_color( const domFog_color &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFog_color &operator=( const domFog_color &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_model_ambient; - - typedef daeSmartRef domLight_model_ambientRef; - typedef daeTArray domLight_model_ambient_Array; - - class domLight_model_ambient : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_MODEL_AMBIENT; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLight_model_ambient() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLight_model_ambient() {} - /** - * Copy Constructor - */ - domLight_model_ambient( const domLight_model_ambient &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_model_ambient &operator=( const domLight_model_ambient &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLighting_enable; - - typedef daeSmartRef domLighting_enableRef; - typedef daeTArray domLighting_enable_Array; - - class domLighting_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHTING_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLighting_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLighting_enable() {} - /** - * Copy Constructor - */ - domLighting_enable( const domLighting_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLighting_enable &operator=( const domLighting_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLine_stipple; - - typedef daeSmartRef domLine_stippleRef; - typedef daeTArray domLine_stipple_Array; - - class domLine_stipple : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LINE_STIPPLE; } - protected: // Attributes - domInt2 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domInt2 reference of the value array attribute. - */ - domInt2 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domInt2 reference of the value array attribute. - */ - const domInt2 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domInt2 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLine_stipple() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLine_stipple() {} - /** - * Copy Constructor - */ - domLine_stipple( const domLine_stipple &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLine_stipple &operator=( const domLine_stipple &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLine_width; - - typedef daeSmartRef domLine_widthRef; - typedef daeTArray domLine_width_Array; - - class domLine_width : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LINE_WIDTH; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLine_width() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLine_width() {} - /** - * Copy Constructor - */ - domLine_width( const domLine_width &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLine_width &operator=( const domLine_width &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMaterial_ambient; - - typedef daeSmartRef domMaterial_ambientRef; - typedef daeTArray domMaterial_ambient_Array; - - class domMaterial_ambient : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MATERIAL_AMBIENT; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMaterial_ambient() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMaterial_ambient() {} - /** - * Copy Constructor - */ - domMaterial_ambient( const domMaterial_ambient &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMaterial_ambient &operator=( const domMaterial_ambient &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMaterial_diffuse; - - typedef daeSmartRef domMaterial_diffuseRef; - typedef daeTArray domMaterial_diffuse_Array; - - class domMaterial_diffuse : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MATERIAL_DIFFUSE; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMaterial_diffuse() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMaterial_diffuse() {} - /** - * Copy Constructor - */ - domMaterial_diffuse( const domMaterial_diffuse &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMaterial_diffuse &operator=( const domMaterial_diffuse &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMaterial_emission; - - typedef daeSmartRef domMaterial_emissionRef; - typedef daeTArray domMaterial_emission_Array; - - class domMaterial_emission : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MATERIAL_EMISSION; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMaterial_emission() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMaterial_emission() {} - /** - * Copy Constructor - */ - domMaterial_emission( const domMaterial_emission &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMaterial_emission &operator=( const domMaterial_emission &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMaterial_shininess; - - typedef daeSmartRef domMaterial_shininessRef; - typedef daeTArray domMaterial_shininess_Array; - - class domMaterial_shininess : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MATERIAL_SHININESS; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMaterial_shininess() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMaterial_shininess() {} - /** - * Copy Constructor - */ - domMaterial_shininess( const domMaterial_shininess &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMaterial_shininess &operator=( const domMaterial_shininess &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMaterial_specular; - - typedef daeSmartRef domMaterial_specularRef; - typedef daeTArray domMaterial_specular_Array; - - class domMaterial_specular : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MATERIAL_SPECULAR; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMaterial_specular() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMaterial_specular() {} - /** - * Copy Constructor - */ - domMaterial_specular( const domMaterial_specular &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMaterial_specular &operator=( const domMaterial_specular &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domModel_view_matrix; - - typedef daeSmartRef domModel_view_matrixRef; - typedef daeTArray domModel_view_matrix_Array; - - class domModel_view_matrix : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODEL_VIEW_MATRIX; } - protected: // Attributes - domFloat4x4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4x4 reference of the value array attribute. - */ - domFloat4x4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4x4 reference of the value array attribute. - */ - const domFloat4x4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4x4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domModel_view_matrix() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domModel_view_matrix() {} - /** - * Copy Constructor - */ - domModel_view_matrix( const domModel_view_matrix &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domModel_view_matrix &operator=( const domModel_view_matrix &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPoint_distance_attenuation; - - typedef daeSmartRef domPoint_distance_attenuationRef; - typedef daeTArray domPoint_distance_attenuation_Array; - - class domPoint_distance_attenuation : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT_DISTANCE_ATTENUATION; } - protected: // Attributes - domFloat3 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat3 reference of the value array attribute. - */ - domFloat3 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat3 reference of the value array attribute. - */ - const domFloat3 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat3 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPoint_distance_attenuation() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPoint_distance_attenuation() {} - /** - * Copy Constructor - */ - domPoint_distance_attenuation( const domPoint_distance_attenuation &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPoint_distance_attenuation &operator=( const domPoint_distance_attenuation &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPoint_fade_threshold_size; - - typedef daeSmartRef domPoint_fade_threshold_sizeRef; - typedef daeTArray domPoint_fade_threshold_size_Array; - - class domPoint_fade_threshold_size : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT_FADE_THRESHOLD_SIZE; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPoint_fade_threshold_size() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPoint_fade_threshold_size() {} - /** - * Copy Constructor - */ - domPoint_fade_threshold_size( const domPoint_fade_threshold_size &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPoint_fade_threshold_size &operator=( const domPoint_fade_threshold_size &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPoint_size; - - typedef daeSmartRef domPoint_sizeRef; - typedef daeTArray domPoint_size_Array; - - class domPoint_size : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT_SIZE; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPoint_size() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPoint_size() {} - /** - * Copy Constructor - */ - domPoint_size( const domPoint_size &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPoint_size &operator=( const domPoint_size &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPoint_size_min; - - typedef daeSmartRef domPoint_size_minRef; - typedef daeTArray domPoint_size_min_Array; - - class domPoint_size_min : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT_SIZE_MIN; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPoint_size_min() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPoint_size_min() {} - /** - * Copy Constructor - */ - domPoint_size_min( const domPoint_size_min &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPoint_size_min &operator=( const domPoint_size_min &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPoint_size_max; - - typedef daeSmartRef domPoint_size_maxRef; - typedef daeTArray domPoint_size_max_Array; - - class domPoint_size_max : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT_SIZE_MAX; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPoint_size_max() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPoint_size_max() {} - /** - * Copy Constructor - */ - domPoint_size_max( const domPoint_size_max &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPoint_size_max &operator=( const domPoint_size_max &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPolygon_offset; - - typedef daeSmartRef domPolygon_offsetRef; - typedef daeTArray domPolygon_offset_Array; - - class domPolygon_offset : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POLYGON_OFFSET; } - protected: // Attributes - domFloat2 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat2 reference of the value array attribute. - */ - domFloat2 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat2 reference of the value array attribute. - */ - const domFloat2 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat2 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPolygon_offset() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPolygon_offset() {} - /** - * Copy Constructor - */ - domPolygon_offset( const domPolygon_offset &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPolygon_offset &operator=( const domPolygon_offset &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domProjection_matrix; - - typedef daeSmartRef domProjection_matrixRef; - typedef daeTArray domProjection_matrix_Array; - - class domProjection_matrix : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PROJECTION_MATRIX; } - protected: // Attributes - domFloat4x4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4x4 reference of the value array attribute. - */ - domFloat4x4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4x4 reference of the value array attribute. - */ - const domFloat4x4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4x4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domProjection_matrix() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domProjection_matrix() {} - /** - * Copy Constructor - */ - domProjection_matrix( const domProjection_matrix &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domProjection_matrix &operator=( const domProjection_matrix &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domScissor; - - typedef daeSmartRef domScissorRef; - typedef daeTArray domScissor_Array; - - class domScissor : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SCISSOR; } - protected: // Attributes - domInt4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domInt4 reference of the value array attribute. - */ - domInt4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domInt4 reference of the value array attribute. - */ - const domInt4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domInt4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domScissor() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domScissor() {} - /** - * Copy Constructor - */ - domScissor( const domScissor &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domScissor &operator=( const domScissor &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domStencil_mask; - - typedef daeSmartRef domStencil_maskRef; - typedef daeTArray domStencil_mask_Array; - - class domStencil_mask : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_MASK; } - protected: // Attributes - domInt attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domInt of the value attribute. - */ - domInt getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domInt atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domStencil_mask() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domStencil_mask() {} - /** - * Copy Constructor - */ - domStencil_mask( const domStencil_mask &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domStencil_mask &operator=( const domStencil_mask &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domAlpha_test_enable; - - typedef daeSmartRef domAlpha_test_enableRef; - typedef daeTArray domAlpha_test_enable_Array; - - class domAlpha_test_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ALPHA_TEST_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domAlpha_test_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domAlpha_test_enable() {} - /** - * Copy Constructor - */ - domAlpha_test_enable( const domAlpha_test_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAlpha_test_enable &operator=( const domAlpha_test_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domAuto_normal_enable; - - typedef daeSmartRef domAuto_normal_enableRef; - typedef daeTArray domAuto_normal_enable_Array; - - class domAuto_normal_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::AUTO_NORMAL_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domAuto_normal_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domAuto_normal_enable() {} - /** - * Copy Constructor - */ - domAuto_normal_enable( const domAuto_normal_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAuto_normal_enable &operator=( const domAuto_normal_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBlend_enable; - - typedef daeSmartRef domBlend_enableRef; - typedef daeTArray domBlend_enable_Array; - - class domBlend_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BLEND_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domBlend_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domBlend_enable() {} - /** - * Copy Constructor - */ - domBlend_enable( const domBlend_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBlend_enable &operator=( const domBlend_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domColor_logic_op_enable; - - typedef daeSmartRef domColor_logic_op_enableRef; - typedef daeTArray domColor_logic_op_enable_Array; - - class domColor_logic_op_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLOR_LOGIC_OP_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domColor_logic_op_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domColor_logic_op_enable() {} - /** - * Copy Constructor - */ - domColor_logic_op_enable( const domColor_logic_op_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domColor_logic_op_enable &operator=( const domColor_logic_op_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domColor_material_enable; - - typedef daeSmartRef domColor_material_enableRef; - typedef daeTArray domColor_material_enable_Array; - - class domColor_material_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLOR_MATERIAL_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domColor_material_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domColor_material_enable() {} - /** - * Copy Constructor - */ - domColor_material_enable( const domColor_material_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domColor_material_enable &operator=( const domColor_material_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domCull_face_enable; - - typedef daeSmartRef domCull_face_enableRef; - typedef daeTArray domCull_face_enable_Array; - - class domCull_face_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CULL_FACE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domCull_face_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domCull_face_enable() {} - /** - * Copy Constructor - */ - domCull_face_enable( const domCull_face_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCull_face_enable &operator=( const domCull_face_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDepth_bounds_enable; - - typedef daeSmartRef domDepth_bounds_enableRef; - typedef daeTArray domDepth_bounds_enable_Array; - - class domDepth_bounds_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_BOUNDS_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDepth_bounds_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDepth_bounds_enable() {} - /** - * Copy Constructor - */ - domDepth_bounds_enable( const domDepth_bounds_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDepth_bounds_enable &operator=( const domDepth_bounds_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDepth_clamp_enable; - - typedef daeSmartRef domDepth_clamp_enableRef; - typedef daeTArray domDepth_clamp_enable_Array; - - class domDepth_clamp_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_CLAMP_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDepth_clamp_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDepth_clamp_enable() {} - /** - * Copy Constructor - */ - domDepth_clamp_enable( const domDepth_clamp_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDepth_clamp_enable &operator=( const domDepth_clamp_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDepth_test_enable; - - typedef daeSmartRef domDepth_test_enableRef; - typedef daeTArray domDepth_test_enable_Array; - - class domDepth_test_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_TEST_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDepth_test_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDepth_test_enable() {} - /** - * Copy Constructor - */ - domDepth_test_enable( const domDepth_test_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDepth_test_enable &operator=( const domDepth_test_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDither_enable; - - typedef daeSmartRef domDither_enableRef; - typedef daeTArray domDither_enable_Array; - - class domDither_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DITHER_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDither_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDither_enable() {} - /** - * Copy Constructor - */ - domDither_enable( const domDither_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDither_enable &operator=( const domDither_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFog_enable; - - typedef daeSmartRef domFog_enableRef; - typedef daeTArray domFog_enable_Array; - - class domFog_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOG_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFog_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFog_enable() {} - /** - * Copy Constructor - */ - domFog_enable( const domFog_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFog_enable &operator=( const domFog_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_model_local_viewer_enable; - - typedef daeSmartRef domLight_model_local_viewer_enableRef; - typedef daeTArray domLight_model_local_viewer_enable_Array; - - class domLight_model_local_viewer_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_MODEL_LOCAL_VIEWER_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLight_model_local_viewer_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLight_model_local_viewer_enable() {} - /** - * Copy Constructor - */ - domLight_model_local_viewer_enable( const domLight_model_local_viewer_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_model_local_viewer_enable &operator=( const domLight_model_local_viewer_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_model_two_side_enable; - - typedef daeSmartRef domLight_model_two_side_enableRef; - typedef daeTArray domLight_model_two_side_enable_Array; - - class domLight_model_two_side_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_MODEL_TWO_SIDE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLight_model_two_side_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLight_model_two_side_enable() {} - /** - * Copy Constructor - */ - domLight_model_two_side_enable( const domLight_model_two_side_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_model_two_side_enable &operator=( const domLight_model_two_side_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLine_smooth_enable; - - typedef daeSmartRef domLine_smooth_enableRef; - typedef daeTArray domLine_smooth_enable_Array; - - class domLine_smooth_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LINE_SMOOTH_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLine_smooth_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLine_smooth_enable() {} - /** - * Copy Constructor - */ - domLine_smooth_enable( const domLine_smooth_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLine_smooth_enable &operator=( const domLine_smooth_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLine_stipple_enable; - - typedef daeSmartRef domLine_stipple_enableRef; - typedef daeTArray domLine_stipple_enable_Array; - - class domLine_stipple_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LINE_STIPPLE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLine_stipple_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLine_stipple_enable() {} - /** - * Copy Constructor - */ - domLine_stipple_enable( const domLine_stipple_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLine_stipple_enable &operator=( const domLine_stipple_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLogic_op_enable; - - typedef daeSmartRef domLogic_op_enableRef; - typedef daeTArray domLogic_op_enable_Array; - - class domLogic_op_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LOGIC_OP_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLogic_op_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLogic_op_enable() {} - /** - * Copy Constructor - */ - domLogic_op_enable( const domLogic_op_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLogic_op_enable &operator=( const domLogic_op_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMultisample_enable; - - typedef daeSmartRef domMultisample_enableRef; - typedef daeTArray domMultisample_enable_Array; - - class domMultisample_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MULTISAMPLE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMultisample_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMultisample_enable() {} - /** - * Copy Constructor - */ - domMultisample_enable( const domMultisample_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMultisample_enable &operator=( const domMultisample_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domNormalize_enable; - - typedef daeSmartRef domNormalize_enableRef; - typedef daeTArray domNormalize_enable_Array; - - class domNormalize_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::NORMALIZE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domNormalize_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domNormalize_enable() {} - /** - * Copy Constructor - */ - domNormalize_enable( const domNormalize_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domNormalize_enable &operator=( const domNormalize_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPoint_smooth_enable; - - typedef daeSmartRef domPoint_smooth_enableRef; - typedef daeTArray domPoint_smooth_enable_Array; - - class domPoint_smooth_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT_SMOOTH_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPoint_smooth_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPoint_smooth_enable() {} - /** - * Copy Constructor - */ - domPoint_smooth_enable( const domPoint_smooth_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPoint_smooth_enable &operator=( const domPoint_smooth_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPolygon_offset_fill_enable; - - typedef daeSmartRef domPolygon_offset_fill_enableRef; - typedef daeTArray domPolygon_offset_fill_enable_Array; - - class domPolygon_offset_fill_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POLYGON_OFFSET_FILL_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPolygon_offset_fill_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPolygon_offset_fill_enable() {} - /** - * Copy Constructor - */ - domPolygon_offset_fill_enable( const domPolygon_offset_fill_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPolygon_offset_fill_enable &operator=( const domPolygon_offset_fill_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPolygon_offset_line_enable; - - typedef daeSmartRef domPolygon_offset_line_enableRef; - typedef daeTArray domPolygon_offset_line_enable_Array; - - class domPolygon_offset_line_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POLYGON_OFFSET_LINE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPolygon_offset_line_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPolygon_offset_line_enable() {} - /** - * Copy Constructor - */ - domPolygon_offset_line_enable( const domPolygon_offset_line_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPolygon_offset_line_enable &operator=( const domPolygon_offset_line_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPolygon_offset_point_enable; - - typedef daeSmartRef domPolygon_offset_point_enableRef; - typedef daeTArray domPolygon_offset_point_enable_Array; - - class domPolygon_offset_point_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POLYGON_OFFSET_POINT_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPolygon_offset_point_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPolygon_offset_point_enable() {} - /** - * Copy Constructor - */ - domPolygon_offset_point_enable( const domPolygon_offset_point_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPolygon_offset_point_enable &operator=( const domPolygon_offset_point_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPolygon_smooth_enable; - - typedef daeSmartRef domPolygon_smooth_enableRef; - typedef daeTArray domPolygon_smooth_enable_Array; - - class domPolygon_smooth_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POLYGON_SMOOTH_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPolygon_smooth_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPolygon_smooth_enable() {} - /** - * Copy Constructor - */ - domPolygon_smooth_enable( const domPolygon_smooth_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPolygon_smooth_enable &operator=( const domPolygon_smooth_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPolygon_stipple_enable; - - typedef daeSmartRef domPolygon_stipple_enableRef; - typedef daeTArray domPolygon_stipple_enable_Array; - - class domPolygon_stipple_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POLYGON_STIPPLE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPolygon_stipple_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPolygon_stipple_enable() {} - /** - * Copy Constructor - */ - domPolygon_stipple_enable( const domPolygon_stipple_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPolygon_stipple_enable &operator=( const domPolygon_stipple_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domRescale_normal_enable; - - typedef daeSmartRef domRescale_normal_enableRef; - typedef daeTArray domRescale_normal_enable_Array; - - class domRescale_normal_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RESCALE_NORMAL_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domRescale_normal_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domRescale_normal_enable() {} - /** - * Copy Constructor - */ - domRescale_normal_enable( const domRescale_normal_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRescale_normal_enable &operator=( const domRescale_normal_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSample_alpha_to_coverage_enable; - - typedef daeSmartRef domSample_alpha_to_coverage_enableRef; - typedef daeTArray domSample_alpha_to_coverage_enable_Array; - - class domSample_alpha_to_coverage_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SAMPLE_ALPHA_TO_COVERAGE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domSample_alpha_to_coverage_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domSample_alpha_to_coverage_enable() {} - /** - * Copy Constructor - */ - domSample_alpha_to_coverage_enable( const domSample_alpha_to_coverage_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSample_alpha_to_coverage_enable &operator=( const domSample_alpha_to_coverage_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSample_alpha_to_one_enable; - - typedef daeSmartRef domSample_alpha_to_one_enableRef; - typedef daeTArray domSample_alpha_to_one_enable_Array; - - class domSample_alpha_to_one_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SAMPLE_ALPHA_TO_ONE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domSample_alpha_to_one_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domSample_alpha_to_one_enable() {} - /** - * Copy Constructor - */ - domSample_alpha_to_one_enable( const domSample_alpha_to_one_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSample_alpha_to_one_enable &operator=( const domSample_alpha_to_one_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSample_coverage_enable; - - typedef daeSmartRef domSample_coverage_enableRef; - typedef daeTArray domSample_coverage_enable_Array; - - class domSample_coverage_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SAMPLE_COVERAGE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domSample_coverage_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domSample_coverage_enable() {} - /** - * Copy Constructor - */ - domSample_coverage_enable( const domSample_coverage_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSample_coverage_enable &operator=( const domSample_coverage_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domScissor_test_enable; - - typedef daeSmartRef domScissor_test_enableRef; - typedef daeTArray domScissor_test_enable_Array; - - class domScissor_test_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SCISSOR_TEST_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domScissor_test_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domScissor_test_enable() {} - /** - * Copy Constructor - */ - domScissor_test_enable( const domScissor_test_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domScissor_test_enable &operator=( const domScissor_test_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domStencil_test_enable; - - typedef daeSmartRef domStencil_test_enableRef; - typedef daeTArray domStencil_test_enable_Array; - - class domStencil_test_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_TEST_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domStencil_test_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domStencil_test_enable() {} - /** - * Copy Constructor - */ - domStencil_test_enable( const domStencil_test_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domStencil_test_enable &operator=( const domStencil_test_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domAlpha_funcRef elemAlpha_func; - domBlend_funcRef elemBlend_func; - domBlend_func_separateRef elemBlend_func_separate; - domBlend_equationRef elemBlend_equation; - domBlend_equation_separateRef elemBlend_equation_separate; - domColor_materialRef elemColor_material; - domCull_faceRef elemCull_face; - domDepth_funcRef elemDepth_func; - domFog_modeRef elemFog_mode; - domFog_coord_srcRef elemFog_coord_src; - domFront_faceRef elemFront_face; - domLight_model_color_controlRef elemLight_model_color_control; - domLogic_opRef elemLogic_op; - domPolygon_modeRef elemPolygon_mode; - domShade_modelRef elemShade_model; - domStencil_funcRef elemStencil_func; - domStencil_opRef elemStencil_op; - domStencil_func_separateRef elemStencil_func_separate; - domStencil_op_separateRef elemStencil_op_separate; - domStencil_mask_separateRef elemStencil_mask_separate; - domLight_enableRef elemLight_enable; - domLight_ambientRef elemLight_ambient; - domLight_diffuseRef elemLight_diffuse; - domLight_specularRef elemLight_specular; - domLight_positionRef elemLight_position; - domLight_constant_attenuationRef elemLight_constant_attenuation; - domLight_linear_attenuationRef elemLight_linear_attenuation; - domLight_quadratic_attenuationRef elemLight_quadratic_attenuation; - domLight_spot_cutoffRef elemLight_spot_cutoff; - domLight_spot_directionRef elemLight_spot_direction; - domLight_spot_exponentRef elemLight_spot_exponent; - domTexture1DRef elemTexture1D; - domTexture2DRef elemTexture2D; - domTexture3DRef elemTexture3D; - domTextureCUBERef elemTextureCUBE; - domTextureRECTRef elemTextureRECT; - domTextureDEPTHRef elemTextureDEPTH; - domTexture1D_enableRef elemTexture1D_enable; - domTexture2D_enableRef elemTexture2D_enable; - domTexture3D_enableRef elemTexture3D_enable; - domTextureCUBE_enableRef elemTextureCUBE_enable; - domTextureRECT_enableRef elemTextureRECT_enable; - domTextureDEPTH_enableRef elemTextureDEPTH_enable; - domTexture_env_colorRef elemTexture_env_color; - domTexture_env_modeRef elemTexture_env_mode; - domClip_planeRef elemClip_plane; - domClip_plane_enableRef elemClip_plane_enable; - domBlend_colorRef elemBlend_color; - domClear_colorRef elemClear_color; - domClear_stencilRef elemClear_stencil; - domClear_depthRef elemClear_depth; - domColor_maskRef elemColor_mask; - domDepth_boundsRef elemDepth_bounds; - domDepth_maskRef elemDepth_mask; - domDepth_rangeRef elemDepth_range; - domFog_densityRef elemFog_density; - domFog_startRef elemFog_start; - domFog_endRef elemFog_end; - domFog_colorRef elemFog_color; - domLight_model_ambientRef elemLight_model_ambient; - domLighting_enableRef elemLighting_enable; - domLine_stippleRef elemLine_stipple; - domLine_widthRef elemLine_width; - domMaterial_ambientRef elemMaterial_ambient; - domMaterial_diffuseRef elemMaterial_diffuse; - domMaterial_emissionRef elemMaterial_emission; - domMaterial_shininessRef elemMaterial_shininess; - domMaterial_specularRef elemMaterial_specular; - domModel_view_matrixRef elemModel_view_matrix; - domPoint_distance_attenuationRef elemPoint_distance_attenuation; - domPoint_fade_threshold_sizeRef elemPoint_fade_threshold_size; - domPoint_sizeRef elemPoint_size; - domPoint_size_minRef elemPoint_size_min; - domPoint_size_maxRef elemPoint_size_max; - domPolygon_offsetRef elemPolygon_offset; - domProjection_matrixRef elemProjection_matrix; - domScissorRef elemScissor; - domStencil_maskRef elemStencil_mask; - domAlpha_test_enableRef elemAlpha_test_enable; - domAuto_normal_enableRef elemAuto_normal_enable; - domBlend_enableRef elemBlend_enable; - domColor_logic_op_enableRef elemColor_logic_op_enable; - domColor_material_enableRef elemColor_material_enable; - domCull_face_enableRef elemCull_face_enable; - domDepth_bounds_enableRef elemDepth_bounds_enable; - domDepth_clamp_enableRef elemDepth_clamp_enable; - domDepth_test_enableRef elemDepth_test_enable; - domDither_enableRef elemDither_enable; - domFog_enableRef elemFog_enable; - domLight_model_local_viewer_enableRef elemLight_model_local_viewer_enable; - domLight_model_two_side_enableRef elemLight_model_two_side_enable; - domLine_smooth_enableRef elemLine_smooth_enable; - domLine_stipple_enableRef elemLine_stipple_enable; - domLogic_op_enableRef elemLogic_op_enable; - domMultisample_enableRef elemMultisample_enable; - domNormalize_enableRef elemNormalize_enable; - domPoint_smooth_enableRef elemPoint_smooth_enable; - domPolygon_offset_fill_enableRef elemPolygon_offset_fill_enable; - domPolygon_offset_line_enableRef elemPolygon_offset_line_enable; - domPolygon_offset_point_enableRef elemPolygon_offset_point_enable; - domPolygon_smooth_enableRef elemPolygon_smooth_enable; - domPolygon_stipple_enableRef elemPolygon_stipple_enable; - domRescale_normal_enableRef elemRescale_normal_enable; - domSample_alpha_to_coverage_enableRef elemSample_alpha_to_coverage_enable; - domSample_alpha_to_one_enableRef elemSample_alpha_to_one_enable; - domSample_coverage_enableRef elemSample_coverage_enable; - domScissor_test_enableRef elemScissor_test_enable; - domStencil_test_enableRef elemStencil_test_enable; - domGl_hook_abstractRef elemGl_hook_abstract; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the alpha_func element. - * @return a daeSmartRef to the alpha_func element. - */ - const domAlpha_funcRef getAlpha_func() const { return elemAlpha_func; } - /** - * Gets the blend_func element. - * @return a daeSmartRef to the blend_func element. - */ - const domBlend_funcRef getBlend_func() const { return elemBlend_func; } - /** - * Gets the blend_func_separate element. - * @return a daeSmartRef to the blend_func_separate element. - */ - const domBlend_func_separateRef getBlend_func_separate() const { return elemBlend_func_separate; } - /** - * Gets the blend_equation element. - * @return a daeSmartRef to the blend_equation element. - */ - const domBlend_equationRef getBlend_equation() const { return elemBlend_equation; } - /** - * Gets the blend_equation_separate element. - * @return a daeSmartRef to the blend_equation_separate element. - */ - const domBlend_equation_separateRef getBlend_equation_separate() const { return elemBlend_equation_separate; } - /** - * Gets the color_material element. - * @return a daeSmartRef to the color_material element. - */ - const domColor_materialRef getColor_material() const { return elemColor_material; } - /** - * Gets the cull_face element. - * @return a daeSmartRef to the cull_face element. - */ - const domCull_faceRef getCull_face() const { return elemCull_face; } - /** - * Gets the depth_func element. - * @return a daeSmartRef to the depth_func element. - */ - const domDepth_funcRef getDepth_func() const { return elemDepth_func; } - /** - * Gets the fog_mode element. - * @return a daeSmartRef to the fog_mode element. - */ - const domFog_modeRef getFog_mode() const { return elemFog_mode; } - /** - * Gets the fog_coord_src element. - * @return a daeSmartRef to the fog_coord_src element. - */ - const domFog_coord_srcRef getFog_coord_src() const { return elemFog_coord_src; } - /** - * Gets the front_face element. - * @return a daeSmartRef to the front_face element. - */ - const domFront_faceRef getFront_face() const { return elemFront_face; } - /** - * Gets the light_model_color_control element. - * @return a daeSmartRef to the light_model_color_control element. - */ - const domLight_model_color_controlRef getLight_model_color_control() const { return elemLight_model_color_control; } - /** - * Gets the logic_op element. - * @return a daeSmartRef to the logic_op element. - */ - const domLogic_opRef getLogic_op() const { return elemLogic_op; } - /** - * Gets the polygon_mode element. - * @return a daeSmartRef to the polygon_mode element. - */ - const domPolygon_modeRef getPolygon_mode() const { return elemPolygon_mode; } - /** - * Gets the shade_model element. - * @return a daeSmartRef to the shade_model element. - */ - const domShade_modelRef getShade_model() const { return elemShade_model; } - /** - * Gets the stencil_func element. - * @return a daeSmartRef to the stencil_func element. - */ - const domStencil_funcRef getStencil_func() const { return elemStencil_func; } - /** - * Gets the stencil_op element. - * @return a daeSmartRef to the stencil_op element. - */ - const domStencil_opRef getStencil_op() const { return elemStencil_op; } - /** - * Gets the stencil_func_separate element. - * @return a daeSmartRef to the stencil_func_separate element. - */ - const domStencil_func_separateRef getStencil_func_separate() const { return elemStencil_func_separate; } - /** - * Gets the stencil_op_separate element. - * @return a daeSmartRef to the stencil_op_separate element. - */ - const domStencil_op_separateRef getStencil_op_separate() const { return elemStencil_op_separate; } - /** - * Gets the stencil_mask_separate element. - * @return a daeSmartRef to the stencil_mask_separate element. - */ - const domStencil_mask_separateRef getStencil_mask_separate() const { return elemStencil_mask_separate; } - /** - * Gets the light_enable element. - * @return a daeSmartRef to the light_enable element. - */ - const domLight_enableRef getLight_enable() const { return elemLight_enable; } - /** - * Gets the light_ambient element. - * @return a daeSmartRef to the light_ambient element. - */ - const domLight_ambientRef getLight_ambient() const { return elemLight_ambient; } - /** - * Gets the light_diffuse element. - * @return a daeSmartRef to the light_diffuse element. - */ - const domLight_diffuseRef getLight_diffuse() const { return elemLight_diffuse; } - /** - * Gets the light_specular element. - * @return a daeSmartRef to the light_specular element. - */ - const domLight_specularRef getLight_specular() const { return elemLight_specular; } - /** - * Gets the light_position element. - * @return a daeSmartRef to the light_position element. - */ - const domLight_positionRef getLight_position() const { return elemLight_position; } - /** - * Gets the light_constant_attenuation element. - * @return a daeSmartRef to the light_constant_attenuation element. - */ - const domLight_constant_attenuationRef getLight_constant_attenuation() const { return elemLight_constant_attenuation; } - /** - * Gets the light_linear_attenuation element. - * @return a daeSmartRef to the light_linear_attenuation element. - */ - const domLight_linear_attenuationRef getLight_linear_attenuation() const { return elemLight_linear_attenuation; } - /** - * Gets the light_quadratic_attenuation element. - * @return a daeSmartRef to the light_quadratic_attenuation element. - */ - const domLight_quadratic_attenuationRef getLight_quadratic_attenuation() const { return elemLight_quadratic_attenuation; } - /** - * Gets the light_spot_cutoff element. - * @return a daeSmartRef to the light_spot_cutoff element. - */ - const domLight_spot_cutoffRef getLight_spot_cutoff() const { return elemLight_spot_cutoff; } - /** - * Gets the light_spot_direction element. - * @return a daeSmartRef to the light_spot_direction element. - */ - const domLight_spot_directionRef getLight_spot_direction() const { return elemLight_spot_direction; } - /** - * Gets the light_spot_exponent element. - * @return a daeSmartRef to the light_spot_exponent element. - */ - const domLight_spot_exponentRef getLight_spot_exponent() const { return elemLight_spot_exponent; } - /** - * Gets the texture1D element. - * @return a daeSmartRef to the texture1D element. - */ - const domTexture1DRef getTexture1D() const { return elemTexture1D; } - /** - * Gets the texture2D element. - * @return a daeSmartRef to the texture2D element. - */ - const domTexture2DRef getTexture2D() const { return elemTexture2D; } - /** - * Gets the texture3D element. - * @return a daeSmartRef to the texture3D element. - */ - const domTexture3DRef getTexture3D() const { return elemTexture3D; } - /** - * Gets the textureCUBE element. - * @return a daeSmartRef to the textureCUBE element. - */ - const domTextureCUBERef getTextureCUBE() const { return elemTextureCUBE; } - /** - * Gets the textureRECT element. - * @return a daeSmartRef to the textureRECT element. - */ - const domTextureRECTRef getTextureRECT() const { return elemTextureRECT; } - /** - * Gets the textureDEPTH element. - * @return a daeSmartRef to the textureDEPTH element. - */ - const domTextureDEPTHRef getTextureDEPTH() const { return elemTextureDEPTH; } - /** - * Gets the texture1D_enable element. - * @return a daeSmartRef to the texture1D_enable element. - */ - const domTexture1D_enableRef getTexture1D_enable() const { return elemTexture1D_enable; } - /** - * Gets the texture2D_enable element. - * @return a daeSmartRef to the texture2D_enable element. - */ - const domTexture2D_enableRef getTexture2D_enable() const { return elemTexture2D_enable; } - /** - * Gets the texture3D_enable element. - * @return a daeSmartRef to the texture3D_enable element. - */ - const domTexture3D_enableRef getTexture3D_enable() const { return elemTexture3D_enable; } - /** - * Gets the textureCUBE_enable element. - * @return a daeSmartRef to the textureCUBE_enable element. - */ - const domTextureCUBE_enableRef getTextureCUBE_enable() const { return elemTextureCUBE_enable; } - /** - * Gets the textureRECT_enable element. - * @return a daeSmartRef to the textureRECT_enable element. - */ - const domTextureRECT_enableRef getTextureRECT_enable() const { return elemTextureRECT_enable; } - /** - * Gets the textureDEPTH_enable element. - * @return a daeSmartRef to the textureDEPTH_enable element. - */ - const domTextureDEPTH_enableRef getTextureDEPTH_enable() const { return elemTextureDEPTH_enable; } - /** - * Gets the texture_env_color element. - * @return a daeSmartRef to the texture_env_color element. - */ - const domTexture_env_colorRef getTexture_env_color() const { return elemTexture_env_color; } - /** - * Gets the texture_env_mode element. - * @return a daeSmartRef to the texture_env_mode element. - */ - const domTexture_env_modeRef getTexture_env_mode() const { return elemTexture_env_mode; } - /** - * Gets the clip_plane element. - * @return a daeSmartRef to the clip_plane element. - */ - const domClip_planeRef getClip_plane() const { return elemClip_plane; } - /** - * Gets the clip_plane_enable element. - * @return a daeSmartRef to the clip_plane_enable element. - */ - const domClip_plane_enableRef getClip_plane_enable() const { return elemClip_plane_enable; } - /** - * Gets the blend_color element. - * @return a daeSmartRef to the blend_color element. - */ - const domBlend_colorRef getBlend_color() const { return elemBlend_color; } - /** - * Gets the clear_color element. - * @return a daeSmartRef to the clear_color element. - */ - const domClear_colorRef getClear_color() const { return elemClear_color; } - /** - * Gets the clear_stencil element. - * @return a daeSmartRef to the clear_stencil element. - */ - const domClear_stencilRef getClear_stencil() const { return elemClear_stencil; } - /** - * Gets the clear_depth element. - * @return a daeSmartRef to the clear_depth element. - */ - const domClear_depthRef getClear_depth() const { return elemClear_depth; } - /** - * Gets the color_mask element. - * @return a daeSmartRef to the color_mask element. - */ - const domColor_maskRef getColor_mask() const { return elemColor_mask; } - /** - * Gets the depth_bounds element. - * @return a daeSmartRef to the depth_bounds element. - */ - const domDepth_boundsRef getDepth_bounds() const { return elemDepth_bounds; } - /** - * Gets the depth_mask element. - * @return a daeSmartRef to the depth_mask element. - */ - const domDepth_maskRef getDepth_mask() const { return elemDepth_mask; } - /** - * Gets the depth_range element. - * @return a daeSmartRef to the depth_range element. - */ - const domDepth_rangeRef getDepth_range() const { return elemDepth_range; } - /** - * Gets the fog_density element. - * @return a daeSmartRef to the fog_density element. - */ - const domFog_densityRef getFog_density() const { return elemFog_density; } - /** - * Gets the fog_start element. - * @return a daeSmartRef to the fog_start element. - */ - const domFog_startRef getFog_start() const { return elemFog_start; } - /** - * Gets the fog_end element. - * @return a daeSmartRef to the fog_end element. - */ - const domFog_endRef getFog_end() const { return elemFog_end; } - /** - * Gets the fog_color element. - * @return a daeSmartRef to the fog_color element. - */ - const domFog_colorRef getFog_color() const { return elemFog_color; } - /** - * Gets the light_model_ambient element. - * @return a daeSmartRef to the light_model_ambient element. - */ - const domLight_model_ambientRef getLight_model_ambient() const { return elemLight_model_ambient; } - /** - * Gets the lighting_enable element. - * @return a daeSmartRef to the lighting_enable element. - */ - const domLighting_enableRef getLighting_enable() const { return elemLighting_enable; } - /** - * Gets the line_stipple element. - * @return a daeSmartRef to the line_stipple element. - */ - const domLine_stippleRef getLine_stipple() const { return elemLine_stipple; } - /** - * Gets the line_width element. - * @return a daeSmartRef to the line_width element. - */ - const domLine_widthRef getLine_width() const { return elemLine_width; } - /** - * Gets the material_ambient element. - * @return a daeSmartRef to the material_ambient element. - */ - const domMaterial_ambientRef getMaterial_ambient() const { return elemMaterial_ambient; } - /** - * Gets the material_diffuse element. - * @return a daeSmartRef to the material_diffuse element. - */ - const domMaterial_diffuseRef getMaterial_diffuse() const { return elemMaterial_diffuse; } - /** - * Gets the material_emission element. - * @return a daeSmartRef to the material_emission element. - */ - const domMaterial_emissionRef getMaterial_emission() const { return elemMaterial_emission; } - /** - * Gets the material_shininess element. - * @return a daeSmartRef to the material_shininess element. - */ - const domMaterial_shininessRef getMaterial_shininess() const { return elemMaterial_shininess; } - /** - * Gets the material_specular element. - * @return a daeSmartRef to the material_specular element. - */ - const domMaterial_specularRef getMaterial_specular() const { return elemMaterial_specular; } - /** - * Gets the model_view_matrix element. - * @return a daeSmartRef to the model_view_matrix element. - */ - const domModel_view_matrixRef getModel_view_matrix() const { return elemModel_view_matrix; } - /** - * Gets the point_distance_attenuation element. - * @return a daeSmartRef to the point_distance_attenuation element. - */ - const domPoint_distance_attenuationRef getPoint_distance_attenuation() const { return elemPoint_distance_attenuation; } - /** - * Gets the point_fade_threshold_size element. - * @return a daeSmartRef to the point_fade_threshold_size element. - */ - const domPoint_fade_threshold_sizeRef getPoint_fade_threshold_size() const { return elemPoint_fade_threshold_size; } - /** - * Gets the point_size element. - * @return a daeSmartRef to the point_size element. - */ - const domPoint_sizeRef getPoint_size() const { return elemPoint_size; } - /** - * Gets the point_size_min element. - * @return a daeSmartRef to the point_size_min element. - */ - const domPoint_size_minRef getPoint_size_min() const { return elemPoint_size_min; } - /** - * Gets the point_size_max element. - * @return a daeSmartRef to the point_size_max element. - */ - const domPoint_size_maxRef getPoint_size_max() const { return elemPoint_size_max; } - /** - * Gets the polygon_offset element. - * @return a daeSmartRef to the polygon_offset element. - */ - const domPolygon_offsetRef getPolygon_offset() const { return elemPolygon_offset; } - /** - * Gets the projection_matrix element. - * @return a daeSmartRef to the projection_matrix element. - */ - const domProjection_matrixRef getProjection_matrix() const { return elemProjection_matrix; } - /** - * Gets the scissor element. - * @return a daeSmartRef to the scissor element. - */ - const domScissorRef getScissor() const { return elemScissor; } - /** - * Gets the stencil_mask element. - * @return a daeSmartRef to the stencil_mask element. - */ - const domStencil_maskRef getStencil_mask() const { return elemStencil_mask; } - /** - * Gets the alpha_test_enable element. - * @return a daeSmartRef to the alpha_test_enable element. - */ - const domAlpha_test_enableRef getAlpha_test_enable() const { return elemAlpha_test_enable; } - /** - * Gets the auto_normal_enable element. - * @return a daeSmartRef to the auto_normal_enable element. - */ - const domAuto_normal_enableRef getAuto_normal_enable() const { return elemAuto_normal_enable; } - /** - * Gets the blend_enable element. - * @return a daeSmartRef to the blend_enable element. - */ - const domBlend_enableRef getBlend_enable() const { return elemBlend_enable; } - /** - * Gets the color_logic_op_enable element. - * @return a daeSmartRef to the color_logic_op_enable element. - */ - const domColor_logic_op_enableRef getColor_logic_op_enable() const { return elemColor_logic_op_enable; } - /** - * Gets the color_material_enable element. - * @return a daeSmartRef to the color_material_enable element. - */ - const domColor_material_enableRef getColor_material_enable() const { return elemColor_material_enable; } - /** - * Gets the cull_face_enable element. - * @return a daeSmartRef to the cull_face_enable element. - */ - const domCull_face_enableRef getCull_face_enable() const { return elemCull_face_enable; } - /** - * Gets the depth_bounds_enable element. - * @return a daeSmartRef to the depth_bounds_enable element. - */ - const domDepth_bounds_enableRef getDepth_bounds_enable() const { return elemDepth_bounds_enable; } - /** - * Gets the depth_clamp_enable element. - * @return a daeSmartRef to the depth_clamp_enable element. - */ - const domDepth_clamp_enableRef getDepth_clamp_enable() const { return elemDepth_clamp_enable; } - /** - * Gets the depth_test_enable element. - * @return a daeSmartRef to the depth_test_enable element. - */ - const domDepth_test_enableRef getDepth_test_enable() const { return elemDepth_test_enable; } - /** - * Gets the dither_enable element. - * @return a daeSmartRef to the dither_enable element. - */ - const domDither_enableRef getDither_enable() const { return elemDither_enable; } - /** - * Gets the fog_enable element. - * @return a daeSmartRef to the fog_enable element. - */ - const domFog_enableRef getFog_enable() const { return elemFog_enable; } - /** - * Gets the light_model_local_viewer_enable element. - * @return a daeSmartRef to the light_model_local_viewer_enable element. - */ - const domLight_model_local_viewer_enableRef getLight_model_local_viewer_enable() const { return elemLight_model_local_viewer_enable; } - /** - * Gets the light_model_two_side_enable element. - * @return a daeSmartRef to the light_model_two_side_enable element. - */ - const domLight_model_two_side_enableRef getLight_model_two_side_enable() const { return elemLight_model_two_side_enable; } - /** - * Gets the line_smooth_enable element. - * @return a daeSmartRef to the line_smooth_enable element. - */ - const domLine_smooth_enableRef getLine_smooth_enable() const { return elemLine_smooth_enable; } - /** - * Gets the line_stipple_enable element. - * @return a daeSmartRef to the line_stipple_enable element. - */ - const domLine_stipple_enableRef getLine_stipple_enable() const { return elemLine_stipple_enable; } - /** - * Gets the logic_op_enable element. - * @return a daeSmartRef to the logic_op_enable element. - */ - const domLogic_op_enableRef getLogic_op_enable() const { return elemLogic_op_enable; } - /** - * Gets the multisample_enable element. - * @return a daeSmartRef to the multisample_enable element. - */ - const domMultisample_enableRef getMultisample_enable() const { return elemMultisample_enable; } - /** - * Gets the normalize_enable element. - * @return a daeSmartRef to the normalize_enable element. - */ - const domNormalize_enableRef getNormalize_enable() const { return elemNormalize_enable; } - /** - * Gets the point_smooth_enable element. - * @return a daeSmartRef to the point_smooth_enable element. - */ - const domPoint_smooth_enableRef getPoint_smooth_enable() const { return elemPoint_smooth_enable; } - /** - * Gets the polygon_offset_fill_enable element. - * @return a daeSmartRef to the polygon_offset_fill_enable element. - */ - const domPolygon_offset_fill_enableRef getPolygon_offset_fill_enable() const { return elemPolygon_offset_fill_enable; } - /** - * Gets the polygon_offset_line_enable element. - * @return a daeSmartRef to the polygon_offset_line_enable element. - */ - const domPolygon_offset_line_enableRef getPolygon_offset_line_enable() const { return elemPolygon_offset_line_enable; } - /** - * Gets the polygon_offset_point_enable element. - * @return a daeSmartRef to the polygon_offset_point_enable element. - */ - const domPolygon_offset_point_enableRef getPolygon_offset_point_enable() const { return elemPolygon_offset_point_enable; } - /** - * Gets the polygon_smooth_enable element. - * @return a daeSmartRef to the polygon_smooth_enable element. - */ - const domPolygon_smooth_enableRef getPolygon_smooth_enable() const { return elemPolygon_smooth_enable; } - /** - * Gets the polygon_stipple_enable element. - * @return a daeSmartRef to the polygon_stipple_enable element. - */ - const domPolygon_stipple_enableRef getPolygon_stipple_enable() const { return elemPolygon_stipple_enable; } - /** - * Gets the rescale_normal_enable element. - * @return a daeSmartRef to the rescale_normal_enable element. - */ - const domRescale_normal_enableRef getRescale_normal_enable() const { return elemRescale_normal_enable; } - /** - * Gets the sample_alpha_to_coverage_enable element. - * @return a daeSmartRef to the sample_alpha_to_coverage_enable element. - */ - const domSample_alpha_to_coverage_enableRef getSample_alpha_to_coverage_enable() const { return elemSample_alpha_to_coverage_enable; } - /** - * Gets the sample_alpha_to_one_enable element. - * @return a daeSmartRef to the sample_alpha_to_one_enable element. - */ - const domSample_alpha_to_one_enableRef getSample_alpha_to_one_enable() const { return elemSample_alpha_to_one_enable; } - /** - * Gets the sample_coverage_enable element. - * @return a daeSmartRef to the sample_coverage_enable element. - */ - const domSample_coverage_enableRef getSample_coverage_enable() const { return elemSample_coverage_enable; } - /** - * Gets the scissor_test_enable element. - * @return a daeSmartRef to the scissor_test_enable element. - */ - const domScissor_test_enableRef getScissor_test_enable() const { return elemScissor_test_enable; } - /** - * Gets the stencil_test_enable element. - * @return a daeSmartRef to the stencil_test_enable element. - */ - const domStencil_test_enableRef getStencil_test_enable() const { return elemStencil_test_enable; } - /** - * Gets the gl_hook_abstract element. - * @return a daeSmartRef to the gl_hook_abstract element. - */ - const domGl_hook_abstractRef getGl_hook_abstract() const { return elemGl_hook_abstract; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domGl_pipeline_settings() : elemAlpha_func(), elemBlend_func(), elemBlend_func_separate(), elemBlend_equation(), elemBlend_equation_separate(), elemColor_material(), elemCull_face(), elemDepth_func(), elemFog_mode(), elemFog_coord_src(), elemFront_face(), elemLight_model_color_control(), elemLogic_op(), elemPolygon_mode(), elemShade_model(), elemStencil_func(), elemStencil_op(), elemStencil_func_separate(), elemStencil_op_separate(), elemStencil_mask_separate(), elemLight_enable(), elemLight_ambient(), elemLight_diffuse(), elemLight_specular(), elemLight_position(), elemLight_constant_attenuation(), elemLight_linear_attenuation(), elemLight_quadratic_attenuation(), elemLight_spot_cutoff(), elemLight_spot_direction(), elemLight_spot_exponent(), elemTexture1D(), elemTexture2D(), elemTexture3D(), elemTextureCUBE(), elemTextureRECT(), elemTextureDEPTH(), elemTexture1D_enable(), elemTexture2D_enable(), elemTexture3D_enable(), elemTextureCUBE_enable(), elemTextureRECT_enable(), elemTextureDEPTH_enable(), elemTexture_env_color(), elemTexture_env_mode(), elemClip_plane(), elemClip_plane_enable(), elemBlend_color(), elemClear_color(), elemClear_stencil(), elemClear_depth(), elemColor_mask(), elemDepth_bounds(), elemDepth_mask(), elemDepth_range(), elemFog_density(), elemFog_start(), elemFog_end(), elemFog_color(), elemLight_model_ambient(), elemLighting_enable(), elemLine_stipple(), elemLine_width(), elemMaterial_ambient(), elemMaterial_diffuse(), elemMaterial_emission(), elemMaterial_shininess(), elemMaterial_specular(), elemModel_view_matrix(), elemPoint_distance_attenuation(), elemPoint_fade_threshold_size(), elemPoint_size(), elemPoint_size_min(), elemPoint_size_max(), elemPolygon_offset(), elemProjection_matrix(), elemScissor(), elemStencil_mask(), elemAlpha_test_enable(), elemAuto_normal_enable(), elemBlend_enable(), elemColor_logic_op_enable(), elemColor_material_enable(), elemCull_face_enable(), elemDepth_bounds_enable(), elemDepth_clamp_enable(), elemDepth_test_enable(), elemDither_enable(), elemFog_enable(), elemLight_model_local_viewer_enable(), elemLight_model_two_side_enable(), elemLine_smooth_enable(), elemLine_stipple_enable(), elemLogic_op_enable(), elemMultisample_enable(), elemNormalize_enable(), elemPoint_smooth_enable(), elemPolygon_offset_fill_enable(), elemPolygon_offset_line_enable(), elemPolygon_offset_point_enable(), elemPolygon_smooth_enable(), elemPolygon_stipple_enable(), elemRescale_normal_enable(), elemSample_alpha_to_coverage_enable(), elemSample_alpha_to_one_enable(), elemSample_coverage_enable(), elemScissor_test_enable(), elemStencil_test_enable(), elemGl_hook_abstract() {} - /** - * Destructor - */ - virtual ~domGl_pipeline_settings() {} - /** - * Copy Constructor - */ - domGl_pipeline_settings( const domGl_pipeline_settings &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_pipeline_settings &operator=( const domGl_pipeline_settings &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler1D.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler1D.h deleted file mode 100644 index 84a08470e..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler1D.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGl_sampler1D_h__ -#define __domGl_sampler1D_h__ - -#include -#include - -#include - -/** - * A one-dimensional texture sampler for the GLSL profile. - */ -class domGl_sampler1D_complexType : public domFx_sampler1D_common_complexType -{ - -protected: - /** - * Constructor - */ - domGl_sampler1D_complexType() {} - /** - * Destructor - */ - virtual ~domGl_sampler1D_complexType() {} - /** - * Copy Constructor - */ - domGl_sampler1D_complexType( const domGl_sampler1D_complexType &cpy ) : domFx_sampler1D_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_sampler1D_complexType &operator=( const domGl_sampler1D_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGl_sampler1D_complexType. - */ -class domGl_sampler1D : public daeElement, public domGl_sampler1D_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_SAMPLER1D; } -protected: - /** - * Constructor - */ - domGl_sampler1D() {} - /** - * Destructor - */ - virtual ~domGl_sampler1D() {} - /** - * Copy Constructor - */ - domGl_sampler1D( const domGl_sampler1D &cpy ) : daeElement(), domGl_sampler1D_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_sampler1D &operator=( const domGl_sampler1D &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler2D.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler2D.h deleted file mode 100644 index 38d356c50..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler2D.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGl_sampler2D_h__ -#define __domGl_sampler2D_h__ - -#include -#include - -#include - -/** - * A two-dimensional texture sampler for the GLSL profile. - */ -class domGl_sampler2D_complexType : public domFx_sampler2D_common_complexType -{ - -protected: - /** - * Constructor - */ - domGl_sampler2D_complexType() {} - /** - * Destructor - */ - virtual ~domGl_sampler2D_complexType() {} - /** - * Copy Constructor - */ - domGl_sampler2D_complexType( const domGl_sampler2D_complexType &cpy ) : domFx_sampler2D_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_sampler2D_complexType &operator=( const domGl_sampler2D_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGl_sampler2D_complexType. - */ -class domGl_sampler2D : public daeElement, public domGl_sampler2D_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_SAMPLER2D; } -protected: - /** - * Constructor - */ - domGl_sampler2D() {} - /** - * Destructor - */ - virtual ~domGl_sampler2D() {} - /** - * Copy Constructor - */ - domGl_sampler2D( const domGl_sampler2D &cpy ) : daeElement(), domGl_sampler2D_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_sampler2D &operator=( const domGl_sampler2D &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler3D.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler3D.h deleted file mode 100644 index 4724d022a..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGl_sampler3D.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGl_sampler3D_h__ -#define __domGl_sampler3D_h__ - -#include -#include - -#include - -/** - * A three-dimensional texture sampler for the GLSL profile. - */ -class domGl_sampler3D_complexType : public domFx_sampler3D_common_complexType -{ - -protected: - /** - * Constructor - */ - domGl_sampler3D_complexType() {} - /** - * Destructor - */ - virtual ~domGl_sampler3D_complexType() {} - /** - * Copy Constructor - */ - domGl_sampler3D_complexType( const domGl_sampler3D_complexType &cpy ) : domFx_sampler3D_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_sampler3D_complexType &operator=( const domGl_sampler3D_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGl_sampler3D_complexType. - */ -class domGl_sampler3D : public daeElement, public domGl_sampler3D_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_SAMPLER3D; } -protected: - /** - * Constructor - */ - domGl_sampler3D() {} - /** - * Destructor - */ - virtual ~domGl_sampler3D() {} - /** - * Copy Constructor - */ - domGl_sampler3D( const domGl_sampler3D &cpy ) : daeElement(), domGl_sampler3D_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_sampler3D &operator=( const domGl_sampler3D &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerCUBE.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerCUBE.h deleted file mode 100644 index 082fc0d5f..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerCUBE.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGl_samplerCUBE_h__ -#define __domGl_samplerCUBE_h__ - -#include -#include - -#include - -/** - * A cube map texture sampler for the GLSL profile. - */ -class domGl_samplerCUBE_complexType : public domFx_samplerCUBE_common_complexType -{ - -protected: - /** - * Constructor - */ - domGl_samplerCUBE_complexType() {} - /** - * Destructor - */ - virtual ~domGl_samplerCUBE_complexType() {} - /** - * Copy Constructor - */ - domGl_samplerCUBE_complexType( const domGl_samplerCUBE_complexType &cpy ) : domFx_samplerCUBE_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_samplerCUBE_complexType &operator=( const domGl_samplerCUBE_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGl_samplerCUBE_complexType. - */ -class domGl_samplerCUBE : public daeElement, public domGl_samplerCUBE_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_SAMPLERCUBE; } -protected: - /** - * Constructor - */ - domGl_samplerCUBE() {} - /** - * Destructor - */ - virtual ~domGl_samplerCUBE() {} - /** - * Copy Constructor - */ - domGl_samplerCUBE( const domGl_samplerCUBE &cpy ) : daeElement(), domGl_samplerCUBE_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_samplerCUBE &operator=( const domGl_samplerCUBE &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerDEPTH.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerDEPTH.h deleted file mode 100644 index 11d95f7b9..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerDEPTH.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGl_samplerDEPTH_h__ -#define __domGl_samplerDEPTH_h__ - -#include -#include - -#include - -/** - * A depth texture sampler for the GLSL profile. - */ -class domGl_samplerDEPTH_complexType : public domFx_samplerDEPTH_common_complexType -{ - -protected: - /** - * Constructor - */ - domGl_samplerDEPTH_complexType() {} - /** - * Destructor - */ - virtual ~domGl_samplerDEPTH_complexType() {} - /** - * Copy Constructor - */ - domGl_samplerDEPTH_complexType( const domGl_samplerDEPTH_complexType &cpy ) : domFx_samplerDEPTH_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_samplerDEPTH_complexType &operator=( const domGl_samplerDEPTH_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGl_samplerDEPTH_complexType. - */ -class domGl_samplerDEPTH : public daeElement, public domGl_samplerDEPTH_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_SAMPLERDEPTH; } -protected: - /** - * Constructor - */ - domGl_samplerDEPTH() {} - /** - * Destructor - */ - virtual ~domGl_samplerDEPTH() {} - /** - * Copy Constructor - */ - domGl_samplerDEPTH( const domGl_samplerDEPTH &cpy ) : daeElement(), domGl_samplerDEPTH_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_samplerDEPTH &operator=( const domGl_samplerDEPTH &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerRECT.h b/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerRECT.h deleted file mode 100644 index d4b095413..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGl_samplerRECT.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGl_samplerRECT_h__ -#define __domGl_samplerRECT_h__ - -#include -#include - -#include - -/** - * A two-dimensional texture sampler for the GLSL profile. - */ -class domGl_samplerRECT_complexType : public domFx_samplerRECT_common_complexType -{ - -protected: - /** - * Constructor - */ - domGl_samplerRECT_complexType() {} - /** - * Destructor - */ - virtual ~domGl_samplerRECT_complexType() {} - /** - * Copy Constructor - */ - domGl_samplerRECT_complexType( const domGl_samplerRECT_complexType &cpy ) : domFx_samplerRECT_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_samplerRECT_complexType &operator=( const domGl_samplerRECT_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGl_samplerRECT_complexType. - */ -class domGl_samplerRECT : public daeElement, public domGl_samplerRECT_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GL_SAMPLERRECT; } -protected: - /** - * Constructor - */ - domGl_samplerRECT() {} - /** - * Destructor - */ - virtual ~domGl_samplerRECT() {} - /** - * Copy Constructor - */ - domGl_samplerRECT( const domGl_samplerRECT &cpy ) : daeElement(), domGl_samplerRECT_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGl_samplerRECT &operator=( const domGl_samplerRECT &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_basic_type_common.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_basic_type_common.h deleted file mode 100644 index 901f75413..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGles_basic_type_common.h +++ /dev/null @@ -1,2358 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGles_basic_type_common_h__ -#define __domGles_basic_type_common_h__ - -#include -#include - -#include -#include -#include -#include - -/** - * A group that defines the available variable types for GLES parameters. - */ -class domGles_basic_type_common : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_BASIC_TYPE_COMMON; } -public: - class domBool; - - typedef daeSmartRef domBoolRef; - typedef daeTArray domBool_Array; - - class domBool : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL; } - - protected: // Value - /** - * The ::domBool value of the text data of this element. - */ - ::domBool _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a ::domBool of the value. - */ - ::domBool getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::domBool val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool() : _value() {} - /** - * Destructor - */ - virtual ~domBool() {} - /** - * Copy Constructor - */ - domBool( const domBool &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool &operator=( const domBool &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool2; - - typedef daeSmartRef domBool2Ref; - typedef daeTArray domBool2_Array; - - class domBool2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL2; } - - protected: // Value - /** - * The ::domBool2 value of the text data of this element. - */ - ::domBool2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domBool2 reference of the _value array. - */ - ::domBool2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domBool2 reference of the _value array. - */ - const ::domBool2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domBool2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool2() : _value() {} - /** - * Destructor - */ - virtual ~domBool2() {} - /** - * Copy Constructor - */ - domBool2( const domBool2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool2 &operator=( const domBool2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool3; - - typedef daeSmartRef domBool3Ref; - typedef daeTArray domBool3_Array; - - class domBool3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL3; } - - protected: // Value - /** - * The ::domBool3 value of the text data of this element. - */ - ::domBool3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domBool3 reference of the _value array. - */ - ::domBool3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domBool3 reference of the _value array. - */ - const ::domBool3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domBool3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool3() : _value() {} - /** - * Destructor - */ - virtual ~domBool3() {} - /** - * Copy Constructor - */ - domBool3( const domBool3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool3 &operator=( const domBool3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool4; - - typedef daeSmartRef domBool4Ref; - typedef daeTArray domBool4_Array; - - class domBool4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL4; } - - protected: // Value - /** - * The ::domBool4 value of the text data of this element. - */ - ::domBool4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domBool4 reference of the _value array. - */ - ::domBool4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domBool4 reference of the _value array. - */ - const ::domBool4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domBool4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool4() : _value() {} - /** - * Destructor - */ - virtual ~domBool4() {} - /** - * Copy Constructor - */ - domBool4( const domBool4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool4 &operator=( const domBool4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt; - - typedef daeSmartRef domIntRef; - typedef daeTArray domInt_Array; - - class domInt : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT; } - - protected: // Value - /** - * The ::domInt value of the text data of this element. - */ - ::domInt _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a ::domInt of the value. - */ - ::domInt getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::domInt val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt() : _value() {} - /** - * Destructor - */ - virtual ~domInt() {} - /** - * Copy Constructor - */ - domInt( const domInt &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt &operator=( const domInt &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt2; - - typedef daeSmartRef domInt2Ref; - typedef daeTArray domInt2_Array; - - class domInt2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT2; } - - protected: // Value - /** - * The ::domInt2 value of the text data of this element. - */ - ::domInt2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domInt2 reference of the _value array. - */ - ::domInt2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domInt2 reference of the _value array. - */ - const ::domInt2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domInt2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt2() : _value() {} - /** - * Destructor - */ - virtual ~domInt2() {} - /** - * Copy Constructor - */ - domInt2( const domInt2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt2 &operator=( const domInt2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt3; - - typedef daeSmartRef domInt3Ref; - typedef daeTArray domInt3_Array; - - class domInt3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT3; } - - protected: // Value - /** - * The ::domInt3 value of the text data of this element. - */ - ::domInt3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domInt3 reference of the _value array. - */ - ::domInt3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domInt3 reference of the _value array. - */ - const ::domInt3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domInt3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt3() : _value() {} - /** - * Destructor - */ - virtual ~domInt3() {} - /** - * Copy Constructor - */ - domInt3( const domInt3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt3 &operator=( const domInt3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt4; - - typedef daeSmartRef domInt4Ref; - typedef daeTArray domInt4_Array; - - class domInt4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT4; } - - protected: // Value - /** - * The ::domInt4 value of the text data of this element. - */ - ::domInt4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domInt4 reference of the _value array. - */ - ::domInt4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domInt4 reference of the _value array. - */ - const ::domInt4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domInt4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt4() : _value() {} - /** - * Destructor - */ - virtual ~domInt4() {} - /** - * Copy Constructor - */ - domInt4( const domInt4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt4 &operator=( const domInt4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat; - - typedef daeSmartRef domFloatRef; - typedef daeTArray domFloat_Array; - - class domFloat : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT; } - - protected: // Value - /** - * The ::domFloat value of the text data of this element. - */ - ::domFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a ::domFloat of the value. - */ - ::domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::domFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat() : _value() {} - /** - * Destructor - */ - virtual ~domFloat() {} - /** - * Copy Constructor - */ - domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat &operator=( const domFloat &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2; - - typedef daeSmartRef domFloat2Ref; - typedef daeTArray domFloat2_Array; - - class domFloat2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2; } - - protected: // Value - /** - * The ::domFloat2 value of the text data of this element. - */ - ::domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2 reference of the _value array. - */ - ::domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2 reference of the _value array. - */ - const ::domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2() {} - /** - * Copy Constructor - */ - domFloat2( const domFloat2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2 &operator=( const domFloat2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3; - - typedef daeSmartRef domFloat3Ref; - typedef daeTArray domFloat3_Array; - - class domFloat3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3; } - - protected: // Value - /** - * The ::domFloat3 value of the text data of this element. - */ - ::domFloat3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3 reference of the _value array. - */ - ::domFloat3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3 reference of the _value array. - */ - const ::domFloat3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3() {} - /** - * Copy Constructor - */ - domFloat3( const domFloat3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3 &operator=( const domFloat3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4; - - typedef daeSmartRef domFloat4Ref; - typedef daeTArray domFloat4_Array; - - class domFloat4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4; } - - protected: // Value - /** - * The ::domFloat4 value of the text data of this element. - */ - ::domFloat4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4 reference of the _value array. - */ - ::domFloat4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4 reference of the _value array. - */ - const ::domFloat4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4() {} - /** - * Copy Constructor - */ - domFloat4( const domFloat4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4 &operator=( const domFloat4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat1x1; - - typedef daeSmartRef domFloat1x1Ref; - typedef daeTArray domFloat1x1_Array; - - class domFloat1x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT1X1; } - - protected: // Value - /** - * The ::domFloat value of the text data of this element. - */ - ::domFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a ::domFloat of the value. - */ - ::domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( ::domFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat1x1() : _value() {} - /** - * Destructor - */ - virtual ~domFloat1x1() {} - /** - * Copy Constructor - */ - domFloat1x1( const domFloat1x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat1x1 &operator=( const domFloat1x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat1x2; - - typedef daeSmartRef domFloat1x2Ref; - typedef daeTArray domFloat1x2_Array; - - class domFloat1x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT1X2; } - - protected: // Value - /** - * The ::domFloat2 value of the text data of this element. - */ - ::domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2 reference of the _value array. - */ - ::domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2 reference of the _value array. - */ - const ::domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat1x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat1x2() {} - /** - * Copy Constructor - */ - domFloat1x2( const domFloat1x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat1x2 &operator=( const domFloat1x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat1x3; - - typedef daeSmartRef domFloat1x3Ref; - typedef daeTArray domFloat1x3_Array; - - class domFloat1x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT1X3; } - - protected: // Value - /** - * The ::domFloat3 value of the text data of this element. - */ - ::domFloat3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3 reference of the _value array. - */ - ::domFloat3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3 reference of the _value array. - */ - const ::domFloat3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat1x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat1x3() {} - /** - * Copy Constructor - */ - domFloat1x3( const domFloat1x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat1x3 &operator=( const domFloat1x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat1x4; - - typedef daeSmartRef domFloat1x4Ref; - typedef daeTArray domFloat1x4_Array; - - class domFloat1x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT1X4; } - - protected: // Value - /** - * The ::domFloat4 value of the text data of this element. - */ - ::domFloat4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4 reference of the _value array. - */ - ::domFloat4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4 reference of the _value array. - */ - const ::domFloat4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat1x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat1x4() {} - /** - * Copy Constructor - */ - domFloat1x4( const domFloat1x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat1x4 &operator=( const domFloat1x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x1; - - typedef daeSmartRef domFloat2x1Ref; - typedef daeTArray domFloat2x1_Array; - - class domFloat2x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X1; } - - protected: // Value - /** - * The ::domFloat2 value of the text data of this element. - */ - ::domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2 reference of the _value array. - */ - ::domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2 reference of the _value array. - */ - const ::domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x1() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x1() {} - /** - * Copy Constructor - */ - domFloat2x1( const domFloat2x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x1 &operator=( const domFloat2x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x2; - - typedef daeSmartRef domFloat2x2Ref; - typedef daeTArray domFloat2x2_Array; - - class domFloat2x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X2; } - - protected: // Value - /** - * The ::domFloat2x2 value of the text data of this element. - */ - ::domFloat2x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2x2 reference of the _value array. - */ - ::domFloat2x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2x2 reference of the _value array. - */ - const ::domFloat2x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x2() {} - /** - * Copy Constructor - */ - domFloat2x2( const domFloat2x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x2 &operator=( const domFloat2x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x3; - - typedef daeSmartRef domFloat2x3Ref; - typedef daeTArray domFloat2x3_Array; - - class domFloat2x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X3; } - - protected: // Value - /** - * The ::domFloat2x3 value of the text data of this element. - */ - ::domFloat2x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2x3 reference of the _value array. - */ - ::domFloat2x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2x3 reference of the _value array. - */ - const ::domFloat2x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x3() {} - /** - * Copy Constructor - */ - domFloat2x3( const domFloat2x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x3 &operator=( const domFloat2x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x4; - - typedef daeSmartRef domFloat2x4Ref; - typedef daeTArray domFloat2x4_Array; - - class domFloat2x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X4; } - - protected: // Value - /** - * The ::domFloat2x4 value of the text data of this element. - */ - ::domFloat2x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat2x4 reference of the _value array. - */ - ::domFloat2x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat2x4 reference of the _value array. - */ - const ::domFloat2x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat2x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x4() {} - /** - * Copy Constructor - */ - domFloat2x4( const domFloat2x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x4 &operator=( const domFloat2x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x1; - - typedef daeSmartRef domFloat3x1Ref; - typedef daeTArray domFloat3x1_Array; - - class domFloat3x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X1; } - - protected: // Value - /** - * The ::domFloat3 value of the text data of this element. - */ - ::domFloat3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3 reference of the _value array. - */ - ::domFloat3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3 reference of the _value array. - */ - const ::domFloat3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x1() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x1() {} - /** - * Copy Constructor - */ - domFloat3x1( const domFloat3x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x1 &operator=( const domFloat3x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x2; - - typedef daeSmartRef domFloat3x2Ref; - typedef daeTArray domFloat3x2_Array; - - class domFloat3x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X2; } - - protected: // Value - /** - * The ::domFloat3x2 value of the text data of this element. - */ - ::domFloat3x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3x2 reference of the _value array. - */ - ::domFloat3x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3x2 reference of the _value array. - */ - const ::domFloat3x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x2() {} - /** - * Copy Constructor - */ - domFloat3x2( const domFloat3x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x2 &operator=( const domFloat3x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x3; - - typedef daeSmartRef domFloat3x3Ref; - typedef daeTArray domFloat3x3_Array; - - class domFloat3x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X3; } - - protected: // Value - /** - * The ::domFloat3x3 value of the text data of this element. - */ - ::domFloat3x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3x3 reference of the _value array. - */ - ::domFloat3x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3x3 reference of the _value array. - */ - const ::domFloat3x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x3() {} - /** - * Copy Constructor - */ - domFloat3x3( const domFloat3x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x3 &operator=( const domFloat3x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x4; - - typedef daeSmartRef domFloat3x4Ref; - typedef daeTArray domFloat3x4_Array; - - class domFloat3x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X4; } - - protected: // Value - /** - * The ::domFloat3x4 value of the text data of this element. - */ - ::domFloat3x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat3x4 reference of the _value array. - */ - ::domFloat3x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat3x4 reference of the _value array. - */ - const ::domFloat3x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat3x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x4() {} - /** - * Copy Constructor - */ - domFloat3x4( const domFloat3x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x4 &operator=( const domFloat3x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x1; - - typedef daeSmartRef domFloat4x1Ref; - typedef daeTArray domFloat4x1_Array; - - class domFloat4x1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X1; } - - protected: // Value - /** - * The ::domFloat4 value of the text data of this element. - */ - ::domFloat4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4 reference of the _value array. - */ - ::domFloat4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4 reference of the _value array. - */ - const ::domFloat4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x1() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x1() {} - /** - * Copy Constructor - */ - domFloat4x1( const domFloat4x1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x1 &operator=( const domFloat4x1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x2; - - typedef daeSmartRef domFloat4x2Ref; - typedef daeTArray domFloat4x2_Array; - - class domFloat4x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X2; } - - protected: // Value - /** - * The ::domFloat4x2 value of the text data of this element. - */ - ::domFloat4x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4x2 reference of the _value array. - */ - ::domFloat4x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4x2 reference of the _value array. - */ - const ::domFloat4x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x2() {} - /** - * Copy Constructor - */ - domFloat4x2( const domFloat4x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x2 &operator=( const domFloat4x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x3; - - typedef daeSmartRef domFloat4x3Ref; - typedef daeTArray domFloat4x3_Array; - - class domFloat4x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X3; } - - protected: // Value - /** - * The ::domFloat4x3 value of the text data of this element. - */ - ::domFloat4x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4x3 reference of the _value array. - */ - ::domFloat4x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4x3 reference of the _value array. - */ - const ::domFloat4x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x3() {} - /** - * Copy Constructor - */ - domFloat4x3( const domFloat4x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x3 &operator=( const domFloat4x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x4; - - typedef daeSmartRef domFloat4x4Ref; - typedef daeTArray domFloat4x4_Array; - - class domFloat4x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X4; } - - protected: // Value - /** - * The ::domFloat4x4 value of the text data of this element. - */ - ::domFloat4x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a ::domFloat4x4 reference of the _value array. - */ - ::domFloat4x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant ::domFloat4x4 reference of the _value array. - */ - const ::domFloat4x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const ::domFloat4x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x4() {} - /** - * Copy Constructor - */ - domFloat4x4( const domFloat4x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x4 &operator=( const domFloat4x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domEnum; - - typedef daeSmartRef domEnumRef; - typedef daeTArray domEnum_Array; - - class domEnum : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ENUM; } - - protected: // Value - /** - * The domGles_enumeration value of the text data of this element. - */ - domGles_enumeration _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domGles_enumeration of the value. - */ - domGles_enumeration getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domGles_enumeration val ) { _value = val; } - - protected: - /** - * Constructor - */ - domEnum() : _value() {} - /** - * Destructor - */ - virtual ~domEnum() {} - /** - * Copy Constructor - */ - domEnum( const domEnum &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domEnum &operator=( const domEnum &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domBoolRef elemBool; - domBool2Ref elemBool2; - domBool3Ref elemBool3; - domBool4Ref elemBool4; - domIntRef elemInt; - domInt2Ref elemInt2; - domInt3Ref elemInt3; - domInt4Ref elemInt4; - domFloatRef elemFloat; - domFloat2Ref elemFloat2; - domFloat3Ref elemFloat3; - domFloat4Ref elemFloat4; - domFloat1x1Ref elemFloat1x1; - domFloat1x2Ref elemFloat1x2; - domFloat1x3Ref elemFloat1x3; - domFloat1x4Ref elemFloat1x4; - domFloat2x1Ref elemFloat2x1; - domFloat2x2Ref elemFloat2x2; - domFloat2x3Ref elemFloat2x3; - domFloat2x4Ref elemFloat2x4; - domFloat3x1Ref elemFloat3x1; - domFloat3x2Ref elemFloat3x2; - domFloat3x3Ref elemFloat3x3; - domFloat3x4Ref elemFloat3x4; - domFloat4x1Ref elemFloat4x1; - domFloat4x2Ref elemFloat4x2; - domFloat4x3Ref elemFloat4x3; - domFloat4x4Ref elemFloat4x4; - domFx_surface_commonRef elemSurface; - domGles_texture_pipelineRef elemTexture_pipeline; - domGles_sampler_stateRef elemSampler_state; - domGles_texture_unitRef elemTexture_unit; - domEnumRef elemEnum; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the bool element. - * @return a daeSmartRef to the bool element. - */ - const domBoolRef getBool() const { return elemBool; } - /** - * Gets the bool2 element. - * @return a daeSmartRef to the bool2 element. - */ - const domBool2Ref getBool2() const { return elemBool2; } - /** - * Gets the bool3 element. - * @return a daeSmartRef to the bool3 element. - */ - const domBool3Ref getBool3() const { return elemBool3; } - /** - * Gets the bool4 element. - * @return a daeSmartRef to the bool4 element. - */ - const domBool4Ref getBool4() const { return elemBool4; } - /** - * Gets the int element. - * @return a daeSmartRef to the int element. - */ - const domIntRef getInt() const { return elemInt; } - /** - * Gets the int2 element. - * @return a daeSmartRef to the int2 element. - */ - const domInt2Ref getInt2() const { return elemInt2; } - /** - * Gets the int3 element. - * @return a daeSmartRef to the int3 element. - */ - const domInt3Ref getInt3() const { return elemInt3; } - /** - * Gets the int4 element. - * @return a daeSmartRef to the int4 element. - */ - const domInt4Ref getInt4() const { return elemInt4; } - /** - * Gets the float element. - * @return a daeSmartRef to the float element. - */ - const domFloatRef getFloat() const { return elemFloat; } - /** - * Gets the float2 element. - * @return a daeSmartRef to the float2 element. - */ - const domFloat2Ref getFloat2() const { return elemFloat2; } - /** - * Gets the float3 element. - * @return a daeSmartRef to the float3 element. - */ - const domFloat3Ref getFloat3() const { return elemFloat3; } - /** - * Gets the float4 element. - * @return a daeSmartRef to the float4 element. - */ - const domFloat4Ref getFloat4() const { return elemFloat4; } - /** - * Gets the float1x1 element. - * @return a daeSmartRef to the float1x1 element. - */ - const domFloat1x1Ref getFloat1x1() const { return elemFloat1x1; } - /** - * Gets the float1x2 element. - * @return a daeSmartRef to the float1x2 element. - */ - const domFloat1x2Ref getFloat1x2() const { return elemFloat1x2; } - /** - * Gets the float1x3 element. - * @return a daeSmartRef to the float1x3 element. - */ - const domFloat1x3Ref getFloat1x3() const { return elemFloat1x3; } - /** - * Gets the float1x4 element. - * @return a daeSmartRef to the float1x4 element. - */ - const domFloat1x4Ref getFloat1x4() const { return elemFloat1x4; } - /** - * Gets the float2x1 element. - * @return a daeSmartRef to the float2x1 element. - */ - const domFloat2x1Ref getFloat2x1() const { return elemFloat2x1; } - /** - * Gets the float2x2 element. - * @return a daeSmartRef to the float2x2 element. - */ - const domFloat2x2Ref getFloat2x2() const { return elemFloat2x2; } - /** - * Gets the float2x3 element. - * @return a daeSmartRef to the float2x3 element. - */ - const domFloat2x3Ref getFloat2x3() const { return elemFloat2x3; } - /** - * Gets the float2x4 element. - * @return a daeSmartRef to the float2x4 element. - */ - const domFloat2x4Ref getFloat2x4() const { return elemFloat2x4; } - /** - * Gets the float3x1 element. - * @return a daeSmartRef to the float3x1 element. - */ - const domFloat3x1Ref getFloat3x1() const { return elemFloat3x1; } - /** - * Gets the float3x2 element. - * @return a daeSmartRef to the float3x2 element. - */ - const domFloat3x2Ref getFloat3x2() const { return elemFloat3x2; } - /** - * Gets the float3x3 element. - * @return a daeSmartRef to the float3x3 element. - */ - const domFloat3x3Ref getFloat3x3() const { return elemFloat3x3; } - /** - * Gets the float3x4 element. - * @return a daeSmartRef to the float3x4 element. - */ - const domFloat3x4Ref getFloat3x4() const { return elemFloat3x4; } - /** - * Gets the float4x1 element. - * @return a daeSmartRef to the float4x1 element. - */ - const domFloat4x1Ref getFloat4x1() const { return elemFloat4x1; } - /** - * Gets the float4x2 element. - * @return a daeSmartRef to the float4x2 element. - */ - const domFloat4x2Ref getFloat4x2() const { return elemFloat4x2; } - /** - * Gets the float4x3 element. - * @return a daeSmartRef to the float4x3 element. - */ - const domFloat4x3Ref getFloat4x3() const { return elemFloat4x3; } - /** - * Gets the float4x4 element. - * @return a daeSmartRef to the float4x4 element. - */ - const domFloat4x4Ref getFloat4x4() const { return elemFloat4x4; } - /** - * Gets the surface element. - * @return a daeSmartRef to the surface element. - */ - const domFx_surface_commonRef getSurface() const { return elemSurface; } - /** - * Gets the texture_pipeline element. - * @return a daeSmartRef to the texture_pipeline element. - */ - const domGles_texture_pipelineRef getTexture_pipeline() const { return elemTexture_pipeline; } - /** - * Gets the sampler_state element. - * @return a daeSmartRef to the sampler_state element. - */ - const domGles_sampler_stateRef getSampler_state() const { return elemSampler_state; } - /** - * Gets the texture_unit element. - * @return a daeSmartRef to the texture_unit element. - */ - const domGles_texture_unitRef getTexture_unit() const { return elemTexture_unit; } - /** - * Gets the enum element. - * @return a daeSmartRef to the enum element. - */ - const domEnumRef getEnum() const { return elemEnum; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domGles_basic_type_common() : elemBool(), elemBool2(), elemBool3(), elemBool4(), elemInt(), elemInt2(), elemInt3(), elemInt4(), elemFloat(), elemFloat2(), elemFloat3(), elemFloat4(), elemFloat1x1(), elemFloat1x2(), elemFloat1x3(), elemFloat1x4(), elemFloat2x1(), elemFloat2x2(), elemFloat2x3(), elemFloat2x4(), elemFloat3x1(), elemFloat3x2(), elemFloat3x3(), elemFloat3x4(), elemFloat4x1(), elemFloat4x2(), elemFloat4x3(), elemFloat4x4(), elemSurface(), elemTexture_pipeline(), elemSampler_state(), elemTexture_unit(), elemEnum() {} - /** - * Destructor - */ - virtual ~domGles_basic_type_common() {} - /** - * Copy Constructor - */ - domGles_basic_type_common( const domGles_basic_type_common &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_basic_type_common &operator=( const domGles_basic_type_common &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_newparam.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_newparam.h deleted file mode 100644 index 9bec7e8d5..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGles_newparam.h +++ /dev/null @@ -1,313 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGles_newparam_h__ -#define __domGles_newparam_h__ - -#include -#include - -#include -#include - -/** - * Create a new, named param object in the GLES Runtime, assign it a type, - * an initial value, and additional attributes at declaration time. - */ -class domGles_newparam_complexType -{ -public: - class domSemantic; - - typedef daeSmartRef domSemanticRef; - typedef daeTArray domSemantic_Array; - -/** - * The semantic element allows you to specify a semantic for this new param. - */ - class domSemantic : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SEMANTIC; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSemantic() : _value() {} - /** - * Destructor - */ - virtual ~domSemantic() {} - /** - * Copy Constructor - */ - domSemantic( const domSemantic &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSemantic &operator=( const domSemantic &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domModifier; - - typedef daeSmartRef domModifierRef; - typedef daeTArray domModifier_Array; - -/** - * The modifier element allows you to specify a modifier for this new param. - */ - class domModifier : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODIFIER; } - - protected: // Value - /** - * The domFx_modifier_enum_common value of the text data of this element. - */ - domFx_modifier_enum_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_modifier_enum_common of the value. - */ - domFx_modifier_enum_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_modifier_enum_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domModifier() : _value() {} - /** - * Destructor - */ - virtual ~domModifier() {} - /** - * Copy Constructor - */ - domModifier( const domModifier &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domModifier &operator=( const domModifier &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. - */ - xsNCName attrSid; - -protected: // Elements -/** - * The annotate element allows you to specify an annotation for this new param. - * @see domAnnotate - */ - domFx_annotate_common_Array elemAnnotate_array; -/** - * The semantic element allows you to specify a semantic for this new param. - * @see domSemantic - */ - domSemanticRef elemSemantic; -/** - * The modifier element allows you to specify a modifier for this new param. - * @see domModifier - */ - domModifierRef elemModifier; - domGles_basic_type_commonRef elemGles_basic_type_common; - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the semantic element. - * @return a daeSmartRef to the semantic element. - */ - const domSemanticRef getSemantic() const { return elemSemantic; } - /** - * Gets the modifier element. - * @return a daeSmartRef to the modifier element. - */ - const domModifierRef getModifier() const { return elemModifier; } - /** - * Gets the gles_basic_type_common element. - * @return a daeSmartRef to the gles_basic_type_common element. - */ - const domGles_basic_type_commonRef getGles_basic_type_common() const { return elemGles_basic_type_common; } -protected: - /** - * Constructor - */ - domGles_newparam_complexType() : attrSid(), elemAnnotate_array(), elemSemantic(), elemModifier(), elemGles_basic_type_common() {} - /** - * Destructor - */ - virtual ~domGles_newparam_complexType() {} - /** - * Copy Constructor - */ - domGles_newparam_complexType( const domGles_newparam_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_newparam_complexType &operator=( const domGles_newparam_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGles_newparam_complexType. - */ -class domGles_newparam : public daeElement, public domGles_newparam_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_NEWPARAM; } - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domGles_newparam() {} - /** - * Destructor - */ - virtual ~domGles_newparam() {} - /** - * Copy Constructor - */ - domGles_newparam( const domGles_newparam &cpy ) : daeElement(), domGles_newparam_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_newparam &operator=( const domGles_newparam &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_pipeline_settings.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_pipeline_settings.h deleted file mode 100644 index d903bfd74..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGles_pipeline_settings.h +++ /dev/null @@ -1,7233 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGles_pipeline_settings_h__ -#define __domGles_pipeline_settings_h__ - -#include -#include - -#include - -/** - * A group that contains the renderstates available for the GLES profile. - */ -class domGles_pipeline_settings : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_PIPELINE_SETTINGS; } -public: - class domAlpha_func; - - typedef daeSmartRef domAlpha_funcRef; - typedef daeTArray domAlpha_func_Array; - - class domAlpha_func : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ALPHA_FUNC; } - public: - class domFunc; - - typedef daeSmartRef domFuncRef; - typedef daeTArray domFunc_Array; - - class domFunc : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FUNC; } - protected: // Attributes - domGl_func_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_func_type of the value attribute. - */ - domGl_func_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_func_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFunc() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFunc() {} - /** - * Copy Constructor - */ - domFunc( const domFunc &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFunc &operator=( const domFunc &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domValue; - - typedef daeSmartRef domValueRef; - typedef daeTArray domValue_Array; - - class domValue : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VALUE; } - protected: // Attributes - domGl_alpha_value_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_alpha_value_type of the value attribute. - */ - domGl_alpha_value_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_alpha_value_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domValue() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domValue() {} - /** - * Copy Constructor - */ - domValue( const domValue &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domValue &operator=( const domValue &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domFuncRef elemFunc; - domValueRef elemValue; - - public: //Accessors and Mutators - /** - * Gets the func element. - * @return a daeSmartRef to the func element. - */ - const domFuncRef getFunc() const { return elemFunc; } - /** - * Gets the value element. - * @return a daeSmartRef to the value element. - */ - const domValueRef getValue() const { return elemValue; } - protected: - /** - * Constructor - */ - domAlpha_func() : elemFunc(), elemValue() {} - /** - * Destructor - */ - virtual ~domAlpha_func() {} - /** - * Copy Constructor - */ - domAlpha_func( const domAlpha_func &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAlpha_func &operator=( const domAlpha_func &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBlend_func; - - typedef daeSmartRef domBlend_funcRef; - typedef daeTArray domBlend_func_Array; - - class domBlend_func : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BLEND_FUNC; } - public: - class domSrc; - - typedef daeSmartRef domSrcRef; - typedef daeTArray domSrc_Array; - - class domSrc : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SRC; } - protected: // Attributes - domGl_blend_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_blend_type of the value attribute. - */ - domGl_blend_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_blend_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domSrc() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domSrc() {} - /** - * Copy Constructor - */ - domSrc( const domSrc &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSrc &operator=( const domSrc &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDest; - - typedef daeSmartRef domDestRef; - typedef daeTArray domDest_Array; - - class domDest : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEST; } - protected: // Attributes - domGl_blend_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_blend_type of the value attribute. - */ - domGl_blend_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_blend_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDest() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDest() {} - /** - * Copy Constructor - */ - domDest( const domDest &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDest &operator=( const domDest &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domSrcRef elemSrc; - domDestRef elemDest; - - public: //Accessors and Mutators - /** - * Gets the src element. - * @return a daeSmartRef to the src element. - */ - const domSrcRef getSrc() const { return elemSrc; } - /** - * Gets the dest element. - * @return a daeSmartRef to the dest element. - */ - const domDestRef getDest() const { return elemDest; } - protected: - /** - * Constructor - */ - domBlend_func() : elemSrc(), elemDest() {} - /** - * Destructor - */ - virtual ~domBlend_func() {} - /** - * Copy Constructor - */ - domBlend_func( const domBlend_func &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBlend_func &operator=( const domBlend_func &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domClear_color; - - typedef daeSmartRef domClear_colorRef; - typedef daeTArray domClear_color_Array; - - class domClear_color : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CLEAR_COLOR; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domClear_color() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domClear_color() {} - /** - * Copy Constructor - */ - domClear_color( const domClear_color &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domClear_color &operator=( const domClear_color &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domClear_stencil; - - typedef daeSmartRef domClear_stencilRef; - typedef daeTArray domClear_stencil_Array; - - class domClear_stencil : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CLEAR_STENCIL; } - protected: // Attributes - domInt attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domInt of the value attribute. - */ - domInt getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domInt atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domClear_stencil() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domClear_stencil() {} - /** - * Copy Constructor - */ - domClear_stencil( const domClear_stencil &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domClear_stencil &operator=( const domClear_stencil &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domClear_depth; - - typedef daeSmartRef domClear_depthRef; - typedef daeTArray domClear_depth_Array; - - class domClear_depth : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CLEAR_DEPTH; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domClear_depth() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domClear_depth() {} - /** - * Copy Constructor - */ - domClear_depth( const domClear_depth &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domClear_depth &operator=( const domClear_depth &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domClip_plane; - - typedef daeSmartRef domClip_planeRef; - typedef daeTArray domClip_plane_Array; - - class domClip_plane : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CLIP_PLANE; } - protected: // Attributes - domBool4 attrValue; - xsNCName attrParam; - domGLES_MAX_CLIP_PLANES_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domBool4 reference of the value array attribute. - */ - domBool4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domBool4 reference of the value array attribute. - */ - const domBool4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domBool4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGLES_MAX_CLIP_PLANES_index of the index attribute. - */ - domGLES_MAX_CLIP_PLANES_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGLES_MAX_CLIP_PLANES_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domClip_plane() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domClip_plane() {} - /** - * Copy Constructor - */ - domClip_plane( const domClip_plane &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domClip_plane &operator=( const domClip_plane &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domColor_mask; - - typedef daeSmartRef domColor_maskRef; - typedef daeTArray domColor_mask_Array; - - class domColor_mask : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLOR_MASK; } - protected: // Attributes - domBool4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domBool4 reference of the value array attribute. - */ - domBool4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domBool4 reference of the value array attribute. - */ - const domBool4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domBool4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domColor_mask() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domColor_mask() {} - /** - * Copy Constructor - */ - domColor_mask( const domColor_mask &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domColor_mask &operator=( const domColor_mask &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domCull_face; - - typedef daeSmartRef domCull_faceRef; - typedef daeTArray domCull_face_Array; - - class domCull_face : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CULL_FACE; } - protected: // Attributes - domGl_face_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_face_type of the value attribute. - */ - domGl_face_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_face_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domCull_face() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domCull_face() {} - /** - * Copy Constructor - */ - domCull_face( const domCull_face &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCull_face &operator=( const domCull_face &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDepth_func; - - typedef daeSmartRef domDepth_funcRef; - typedef daeTArray domDepth_func_Array; - - class domDepth_func : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_FUNC; } - protected: // Attributes - domGl_func_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_func_type of the value attribute. - */ - domGl_func_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_func_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDepth_func() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDepth_func() {} - /** - * Copy Constructor - */ - domDepth_func( const domDepth_func &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDepth_func &operator=( const domDepth_func &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDepth_mask; - - typedef daeSmartRef domDepth_maskRef; - typedef daeTArray domDepth_mask_Array; - - class domDepth_mask : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_MASK; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDepth_mask() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDepth_mask() {} - /** - * Copy Constructor - */ - domDepth_mask( const domDepth_mask &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDepth_mask &operator=( const domDepth_mask &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDepth_range; - - typedef daeSmartRef domDepth_rangeRef; - typedef daeTArray domDepth_range_Array; - - class domDepth_range : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_RANGE; } - protected: // Attributes - domFloat2 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat2 reference of the value array attribute. - */ - domFloat2 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat2 reference of the value array attribute. - */ - const domFloat2 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat2 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDepth_range() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDepth_range() {} - /** - * Copy Constructor - */ - domDepth_range( const domDepth_range &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDepth_range &operator=( const domDepth_range &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFog_color; - - typedef daeSmartRef domFog_colorRef; - typedef daeTArray domFog_color_Array; - - class domFog_color : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOG_COLOR; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFog_color() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFog_color() {} - /** - * Copy Constructor - */ - domFog_color( const domFog_color &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFog_color &operator=( const domFog_color &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFog_density; - - typedef daeSmartRef domFog_densityRef; - typedef daeTArray domFog_density_Array; - - class domFog_density : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOG_DENSITY; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFog_density() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFog_density() {} - /** - * Copy Constructor - */ - domFog_density( const domFog_density &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFog_density &operator=( const domFog_density &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFog_mode; - - typedef daeSmartRef domFog_modeRef; - typedef daeTArray domFog_mode_Array; - - class domFog_mode : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOG_MODE; } - protected: // Attributes - domGl_fog_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_fog_type of the value attribute. - */ - domGl_fog_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_fog_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFog_mode() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFog_mode() {} - /** - * Copy Constructor - */ - domFog_mode( const domFog_mode &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFog_mode &operator=( const domFog_mode &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFog_start; - - typedef daeSmartRef domFog_startRef; - typedef daeTArray domFog_start_Array; - - class domFog_start : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOG_START; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFog_start() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFog_start() {} - /** - * Copy Constructor - */ - domFog_start( const domFog_start &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFog_start &operator=( const domFog_start &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFog_end; - - typedef daeSmartRef domFog_endRef; - typedef daeTArray domFog_end_Array; - - class domFog_end : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOG_END; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFog_end() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFog_end() {} - /** - * Copy Constructor - */ - domFog_end( const domFog_end &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFog_end &operator=( const domFog_end &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFront_face; - - typedef daeSmartRef domFront_faceRef; - typedef daeTArray domFront_face_Array; - - class domFront_face : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FRONT_FACE; } - protected: // Attributes - domGl_front_face_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_front_face_type of the value attribute. - */ - domGl_front_face_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_front_face_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFront_face() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFront_face() {} - /** - * Copy Constructor - */ - domFront_face( const domFront_face &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFront_face &operator=( const domFront_face &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTexture_pipeline; - - typedef daeSmartRef domTexture_pipelineRef; - typedef daeTArray domTexture_pipeline_Array; - - class domTexture_pipeline : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURE_PIPELINE; } - protected: // Attribute - xsNCName attrParam; - - protected: // Element - domGles_texture_pipelineRef elemValue; - - public: //Accessors and Mutators - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[0] = true; } - - /** - * Gets the value element. - * @return a daeSmartRef to the value element. - */ - const domGles_texture_pipelineRef getValue() const { return elemValue; } - protected: - /** - * Constructor - */ - domTexture_pipeline() : attrParam(), elemValue() {} - /** - * Destructor - */ - virtual ~domTexture_pipeline() {} - /** - * Copy Constructor - */ - domTexture_pipeline( const domTexture_pipeline &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTexture_pipeline &operator=( const domTexture_pipeline &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLogic_op; - - typedef daeSmartRef domLogic_opRef; - typedef daeTArray domLogic_op_Array; - - class domLogic_op : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LOGIC_OP; } - protected: // Attributes - domGl_logic_op_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_logic_op_type of the value attribute. - */ - domGl_logic_op_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_logic_op_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLogic_op() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLogic_op() {} - /** - * Copy Constructor - */ - domLogic_op( const domLogic_op &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLogic_op &operator=( const domLogic_op &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_ambient; - - typedef daeSmartRef domLight_ambientRef; - typedef daeTArray domLight_ambient_Array; - - class domLight_ambient : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_AMBIENT; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - domGLES_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. - */ - domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_ambient() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_ambient() {} - /** - * Copy Constructor - */ - domLight_ambient( const domLight_ambient &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_ambient &operator=( const domLight_ambient &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_diffuse; - - typedef daeSmartRef domLight_diffuseRef; - typedef daeTArray domLight_diffuse_Array; - - class domLight_diffuse : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_DIFFUSE; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - domGLES_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. - */ - domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_diffuse() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_diffuse() {} - /** - * Copy Constructor - */ - domLight_diffuse( const domLight_diffuse &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_diffuse &operator=( const domLight_diffuse &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_specular; - - typedef daeSmartRef domLight_specularRef; - typedef daeTArray domLight_specular_Array; - - class domLight_specular : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_SPECULAR; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - domGLES_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. - */ - domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_specular() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_specular() {} - /** - * Copy Constructor - */ - domLight_specular( const domLight_specular &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_specular &operator=( const domLight_specular &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_position; - - typedef daeSmartRef domLight_positionRef; - typedef daeTArray domLight_position_Array; - - class domLight_position : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_POSITION; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - domGLES_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. - */ - domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_position() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_position() {} - /** - * Copy Constructor - */ - domLight_position( const domLight_position &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_position &operator=( const domLight_position &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_constant_attenuation; - - typedef daeSmartRef domLight_constant_attenuationRef; - typedef daeTArray domLight_constant_attenuation_Array; - - class domLight_constant_attenuation : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_CONSTANT_ATTENUATION; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - domGLES_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. - */ - domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_constant_attenuation() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_constant_attenuation() {} - /** - * Copy Constructor - */ - domLight_constant_attenuation( const domLight_constant_attenuation &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_constant_attenuation &operator=( const domLight_constant_attenuation &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_linear_attenutation; - - typedef daeSmartRef domLight_linear_attenutationRef; - typedef daeTArray domLight_linear_attenutation_Array; - - class domLight_linear_attenutation : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_LINEAR_ATTENUTATION; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - domGLES_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. - */ - domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_linear_attenutation() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_linear_attenutation() {} - /** - * Copy Constructor - */ - domLight_linear_attenutation( const domLight_linear_attenutation &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_linear_attenutation &operator=( const domLight_linear_attenutation &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_quadratic_attenuation; - - typedef daeSmartRef domLight_quadratic_attenuationRef; - typedef daeTArray domLight_quadratic_attenuation_Array; - - class domLight_quadratic_attenuation : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_QUADRATIC_ATTENUATION; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - domGLES_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. - */ - domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_quadratic_attenuation() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_quadratic_attenuation() {} - /** - * Copy Constructor - */ - domLight_quadratic_attenuation( const domLight_quadratic_attenuation &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_quadratic_attenuation &operator=( const domLight_quadratic_attenuation &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_spot_cutoff; - - typedef daeSmartRef domLight_spot_cutoffRef; - typedef daeTArray domLight_spot_cutoff_Array; - - class domLight_spot_cutoff : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_SPOT_CUTOFF; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - domGLES_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. - */ - domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_spot_cutoff() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_spot_cutoff() {} - /** - * Copy Constructor - */ - domLight_spot_cutoff( const domLight_spot_cutoff &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_spot_cutoff &operator=( const domLight_spot_cutoff &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_spot_direction; - - typedef daeSmartRef domLight_spot_directionRef; - typedef daeTArray domLight_spot_direction_Array; - - class domLight_spot_direction : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_SPOT_DIRECTION; } - protected: // Attributes - domFloat3 attrValue; - xsNCName attrParam; - domGLES_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat3 reference of the value array attribute. - */ - domFloat3 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat3 reference of the value array attribute. - */ - const domFloat3 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat3 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. - */ - domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_spot_direction() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_spot_direction() {} - /** - * Copy Constructor - */ - domLight_spot_direction( const domLight_spot_direction &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_spot_direction &operator=( const domLight_spot_direction &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_spot_exponent; - - typedef daeSmartRef domLight_spot_exponentRef; - typedef daeTArray domLight_spot_exponent_Array; - - class domLight_spot_exponent : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_SPOT_EXPONENT; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - domGLES_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. - */ - domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_spot_exponent() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_spot_exponent() {} - /** - * Copy Constructor - */ - domLight_spot_exponent( const domLight_spot_exponent &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_spot_exponent &operator=( const domLight_spot_exponent &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_model_ambient; - - typedef daeSmartRef domLight_model_ambientRef; - typedef daeTArray domLight_model_ambient_Array; - - class domLight_model_ambient : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_MODEL_AMBIENT; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLight_model_ambient() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLight_model_ambient() {} - /** - * Copy Constructor - */ - domLight_model_ambient( const domLight_model_ambient &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_model_ambient &operator=( const domLight_model_ambient &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLine_width; - - typedef daeSmartRef domLine_widthRef; - typedef daeTArray domLine_width_Array; - - class domLine_width : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LINE_WIDTH; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLine_width() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLine_width() {} - /** - * Copy Constructor - */ - domLine_width( const domLine_width &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLine_width &operator=( const domLine_width &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMaterial_ambient; - - typedef daeSmartRef domMaterial_ambientRef; - typedef daeTArray domMaterial_ambient_Array; - - class domMaterial_ambient : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MATERIAL_AMBIENT; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMaterial_ambient() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMaterial_ambient() {} - /** - * Copy Constructor - */ - domMaterial_ambient( const domMaterial_ambient &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMaterial_ambient &operator=( const domMaterial_ambient &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMaterial_diffuse; - - typedef daeSmartRef domMaterial_diffuseRef; - typedef daeTArray domMaterial_diffuse_Array; - - class domMaterial_diffuse : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MATERIAL_DIFFUSE; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMaterial_diffuse() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMaterial_diffuse() {} - /** - * Copy Constructor - */ - domMaterial_diffuse( const domMaterial_diffuse &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMaterial_diffuse &operator=( const domMaterial_diffuse &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMaterial_emission; - - typedef daeSmartRef domMaterial_emissionRef; - typedef daeTArray domMaterial_emission_Array; - - class domMaterial_emission : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MATERIAL_EMISSION; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMaterial_emission() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMaterial_emission() {} - /** - * Copy Constructor - */ - domMaterial_emission( const domMaterial_emission &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMaterial_emission &operator=( const domMaterial_emission &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMaterial_shininess; - - typedef daeSmartRef domMaterial_shininessRef; - typedef daeTArray domMaterial_shininess_Array; - - class domMaterial_shininess : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MATERIAL_SHININESS; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMaterial_shininess() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMaterial_shininess() {} - /** - * Copy Constructor - */ - domMaterial_shininess( const domMaterial_shininess &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMaterial_shininess &operator=( const domMaterial_shininess &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMaterial_specular; - - typedef daeSmartRef domMaterial_specularRef; - typedef daeTArray domMaterial_specular_Array; - - class domMaterial_specular : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MATERIAL_SPECULAR; } - protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMaterial_specular() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMaterial_specular() {} - /** - * Copy Constructor - */ - domMaterial_specular( const domMaterial_specular &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMaterial_specular &operator=( const domMaterial_specular &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domModel_view_matrix; - - typedef daeSmartRef domModel_view_matrixRef; - typedef daeTArray domModel_view_matrix_Array; - - class domModel_view_matrix : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODEL_VIEW_MATRIX; } - protected: // Attributes - domFloat4x4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4x4 reference of the value array attribute. - */ - domFloat4x4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4x4 reference of the value array attribute. - */ - const domFloat4x4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4x4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domModel_view_matrix() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domModel_view_matrix() {} - /** - * Copy Constructor - */ - domModel_view_matrix( const domModel_view_matrix &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domModel_view_matrix &operator=( const domModel_view_matrix &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPoint_distance_attenuation; - - typedef daeSmartRef domPoint_distance_attenuationRef; - typedef daeTArray domPoint_distance_attenuation_Array; - - class domPoint_distance_attenuation : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT_DISTANCE_ATTENUATION; } - protected: // Attributes - domFloat3 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat3 reference of the value array attribute. - */ - domFloat3 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat3 reference of the value array attribute. - */ - const domFloat3 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat3 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPoint_distance_attenuation() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPoint_distance_attenuation() {} - /** - * Copy Constructor - */ - domPoint_distance_attenuation( const domPoint_distance_attenuation &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPoint_distance_attenuation &operator=( const domPoint_distance_attenuation &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPoint_fade_threshold_size; - - typedef daeSmartRef domPoint_fade_threshold_sizeRef; - typedef daeTArray domPoint_fade_threshold_size_Array; - - class domPoint_fade_threshold_size : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT_FADE_THRESHOLD_SIZE; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPoint_fade_threshold_size() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPoint_fade_threshold_size() {} - /** - * Copy Constructor - */ - domPoint_fade_threshold_size( const domPoint_fade_threshold_size &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPoint_fade_threshold_size &operator=( const domPoint_fade_threshold_size &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPoint_size; - - typedef daeSmartRef domPoint_sizeRef; - typedef daeTArray domPoint_size_Array; - - class domPoint_size : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT_SIZE; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPoint_size() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPoint_size() {} - /** - * Copy Constructor - */ - domPoint_size( const domPoint_size &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPoint_size &operator=( const domPoint_size &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPoint_size_min; - - typedef daeSmartRef domPoint_size_minRef; - typedef daeTArray domPoint_size_min_Array; - - class domPoint_size_min : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT_SIZE_MIN; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPoint_size_min() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPoint_size_min() {} - /** - * Copy Constructor - */ - domPoint_size_min( const domPoint_size_min &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPoint_size_min &operator=( const domPoint_size_min &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPoint_size_max; - - typedef daeSmartRef domPoint_size_maxRef; - typedef daeTArray domPoint_size_max_Array; - - class domPoint_size_max : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT_SIZE_MAX; } - protected: // Attributes - domFloat attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domFloat of the value attribute. - */ - domFloat getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domFloat atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPoint_size_max() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPoint_size_max() {} - /** - * Copy Constructor - */ - domPoint_size_max( const domPoint_size_max &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPoint_size_max &operator=( const domPoint_size_max &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPolygon_offset; - - typedef daeSmartRef domPolygon_offsetRef; - typedef daeTArray domPolygon_offset_Array; - - class domPolygon_offset : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POLYGON_OFFSET; } - protected: // Attributes - domFloat2 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat2 reference of the value array attribute. - */ - domFloat2 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat2 reference of the value array attribute. - */ - const domFloat2 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat2 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPolygon_offset() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPolygon_offset() {} - /** - * Copy Constructor - */ - domPolygon_offset( const domPolygon_offset &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPolygon_offset &operator=( const domPolygon_offset &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domProjection_matrix; - - typedef daeSmartRef domProjection_matrixRef; - typedef daeTArray domProjection_matrix_Array; - - class domProjection_matrix : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PROJECTION_MATRIX; } - protected: // Attributes - domFloat4x4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4x4 reference of the value array attribute. - */ - domFloat4x4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4x4 reference of the value array attribute. - */ - const domFloat4x4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4x4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domProjection_matrix() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domProjection_matrix() {} - /** - * Copy Constructor - */ - domProjection_matrix( const domProjection_matrix &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domProjection_matrix &operator=( const domProjection_matrix &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domScissor; - - typedef daeSmartRef domScissorRef; - typedef daeTArray domScissor_Array; - - class domScissor : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SCISSOR; } - protected: // Attributes - domInt4 attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domInt4 reference of the value array attribute. - */ - domInt4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domInt4 reference of the value array attribute. - */ - const domInt4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domInt4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domScissor() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domScissor() {} - /** - * Copy Constructor - */ - domScissor( const domScissor &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domScissor &operator=( const domScissor &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domShade_model; - - typedef daeSmartRef domShade_modelRef; - typedef daeTArray domShade_model_Array; - - class domShade_model : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SHADE_MODEL; } - protected: // Attributes - domGl_shade_model_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_shade_model_type of the value attribute. - */ - domGl_shade_model_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_shade_model_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domShade_model() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domShade_model() {} - /** - * Copy Constructor - */ - domShade_model( const domShade_model &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domShade_model &operator=( const domShade_model &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domStencil_func; - - typedef daeSmartRef domStencil_funcRef; - typedef daeTArray domStencil_func_Array; - - class domStencil_func : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_FUNC; } - public: - class domFunc; - - typedef daeSmartRef domFuncRef; - typedef daeTArray domFunc_Array; - - class domFunc : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FUNC; } - protected: // Attributes - domGl_func_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGl_func_type of the value attribute. - */ - domGl_func_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGl_func_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFunc() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFunc() {} - /** - * Copy Constructor - */ - domFunc( const domFunc &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFunc &operator=( const domFunc &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domRef; - - typedef daeSmartRef domRefRef; - typedef daeTArray domRef_Array; - - class domRef : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::REF; } - protected: // Attributes - xsUnsignedByte attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a xsUnsignedByte of the value attribute. - */ - xsUnsignedByte getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( xsUnsignedByte atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domRef() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domRef() {} - /** - * Copy Constructor - */ - domRef( const domRef &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRef &operator=( const domRef &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMask; - - typedef daeSmartRef domMaskRef; - typedef daeTArray domMask_Array; - - class domMask : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MASK; } - protected: // Attributes - xsUnsignedByte attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a xsUnsignedByte of the value attribute. - */ - xsUnsignedByte getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( xsUnsignedByte atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMask() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMask() {} - /** - * Copy Constructor - */ - domMask( const domMask &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMask &operator=( const domMask &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domFuncRef elemFunc; - domRefRef elemRef; - domMaskRef elemMask; - - public: //Accessors and Mutators - /** - * Gets the func element. - * @return a daeSmartRef to the func element. - */ - const domFuncRef getFunc() const { return elemFunc; } - /** - * Gets the ref element. - * @return a daeSmartRef to the ref element. - */ - const domRefRef getRef() const { return elemRef; } - /** - * Gets the mask element. - * @return a daeSmartRef to the mask element. - */ - const domMaskRef getMask() const { return elemMask; } - protected: - /** - * Constructor - */ - domStencil_func() : elemFunc(), elemRef(), elemMask() {} - /** - * Destructor - */ - virtual ~domStencil_func() {} - /** - * Copy Constructor - */ - domStencil_func( const domStencil_func &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domStencil_func &operator=( const domStencil_func &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domStencil_mask; - - typedef daeSmartRef domStencil_maskRef; - typedef daeTArray domStencil_mask_Array; - - class domStencil_mask : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_MASK; } - protected: // Attributes - domInt attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domInt of the value attribute. - */ - domInt getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domInt atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domStencil_mask() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domStencil_mask() {} - /** - * Copy Constructor - */ - domStencil_mask( const domStencil_mask &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domStencil_mask &operator=( const domStencil_mask &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domStencil_op; - - typedef daeSmartRef domStencil_opRef; - typedef daeTArray domStencil_op_Array; - - class domStencil_op : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_OP; } - public: - class domFail; - - typedef daeSmartRef domFailRef; - typedef daeTArray domFail_Array; - - class domFail : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FAIL; } - protected: // Attributes - domGles_stencil_op_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGles_stencil_op_type of the value attribute. - */ - domGles_stencil_op_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGles_stencil_op_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFail() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFail() {} - /** - * Copy Constructor - */ - domFail( const domFail &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFail &operator=( const domFail &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domZfail; - - typedef daeSmartRef domZfailRef; - typedef daeTArray domZfail_Array; - - class domZfail : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ZFAIL; } - protected: // Attributes - domGles_stencil_op_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGles_stencil_op_type of the value attribute. - */ - domGles_stencil_op_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGles_stencil_op_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domZfail() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domZfail() {} - /** - * Copy Constructor - */ - domZfail( const domZfail &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domZfail &operator=( const domZfail &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domZpass; - - typedef daeSmartRef domZpassRef; - typedef daeTArray domZpass_Array; - - class domZpass : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ZPASS; } - protected: // Attributes - domGles_stencil_op_type attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domGles_stencil_op_type of the value attribute. - */ - domGles_stencil_op_type getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domGles_stencil_op_type atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domZpass() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domZpass() {} - /** - * Copy Constructor - */ - domZpass( const domZpass &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domZpass &operator=( const domZpass &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domFailRef elemFail; - domZfailRef elemZfail; - domZpassRef elemZpass; - - public: //Accessors and Mutators - /** - * Gets the fail element. - * @return a daeSmartRef to the fail element. - */ - const domFailRef getFail() const { return elemFail; } - /** - * Gets the zfail element. - * @return a daeSmartRef to the zfail element. - */ - const domZfailRef getZfail() const { return elemZfail; } - /** - * Gets the zpass element. - * @return a daeSmartRef to the zpass element. - */ - const domZpassRef getZpass() const { return elemZpass; } - protected: - /** - * Constructor - */ - domStencil_op() : elemFail(), elemZfail(), elemZpass() {} - /** - * Destructor - */ - virtual ~domStencil_op() {} - /** - * Copy Constructor - */ - domStencil_op( const domStencil_op &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domStencil_op &operator=( const domStencil_op &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domAlpha_test_enable; - - typedef daeSmartRef domAlpha_test_enableRef; - typedef daeTArray domAlpha_test_enable_Array; - - class domAlpha_test_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ALPHA_TEST_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domAlpha_test_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domAlpha_test_enable() {} - /** - * Copy Constructor - */ - domAlpha_test_enable( const domAlpha_test_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAlpha_test_enable &operator=( const domAlpha_test_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBlend_enable; - - typedef daeSmartRef domBlend_enableRef; - typedef daeTArray domBlend_enable_Array; - - class domBlend_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BLEND_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domBlend_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domBlend_enable() {} - /** - * Copy Constructor - */ - domBlend_enable( const domBlend_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBlend_enable &operator=( const domBlend_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domClip_plane_enable; - - typedef daeSmartRef domClip_plane_enableRef; - typedef daeTArray domClip_plane_enable_Array; - - class domClip_plane_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CLIP_PLANE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - domGLES_MAX_CLIP_PLANES_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGLES_MAX_CLIP_PLANES_index of the index attribute. - */ - domGLES_MAX_CLIP_PLANES_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGLES_MAX_CLIP_PLANES_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domClip_plane_enable() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domClip_plane_enable() {} - /** - * Copy Constructor - */ - domClip_plane_enable( const domClip_plane_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domClip_plane_enable &operator=( const domClip_plane_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domColor_logic_op_enable; - - typedef daeSmartRef domColor_logic_op_enableRef; - typedef daeTArray domColor_logic_op_enable_Array; - - class domColor_logic_op_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLOR_LOGIC_OP_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domColor_logic_op_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domColor_logic_op_enable() {} - /** - * Copy Constructor - */ - domColor_logic_op_enable( const domColor_logic_op_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domColor_logic_op_enable &operator=( const domColor_logic_op_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domColor_material_enable; - - typedef daeSmartRef domColor_material_enableRef; - typedef daeTArray domColor_material_enable_Array; - - class domColor_material_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLOR_MATERIAL_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domColor_material_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domColor_material_enable() {} - /** - * Copy Constructor - */ - domColor_material_enable( const domColor_material_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domColor_material_enable &operator=( const domColor_material_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domCull_face_enable; - - typedef daeSmartRef domCull_face_enableRef; - typedef daeTArray domCull_face_enable_Array; - - class domCull_face_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CULL_FACE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domCull_face_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domCull_face_enable() {} - /** - * Copy Constructor - */ - domCull_face_enable( const domCull_face_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCull_face_enable &operator=( const domCull_face_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDepth_test_enable; - - typedef daeSmartRef domDepth_test_enableRef; - typedef daeTArray domDepth_test_enable_Array; - - class domDepth_test_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_TEST_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDepth_test_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDepth_test_enable() {} - /** - * Copy Constructor - */ - domDepth_test_enable( const domDepth_test_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDepth_test_enable &operator=( const domDepth_test_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDither_enable; - - typedef daeSmartRef domDither_enableRef; - typedef daeTArray domDither_enable_Array; - - class domDither_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DITHER_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domDither_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domDither_enable() {} - /** - * Copy Constructor - */ - domDither_enable( const domDither_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDither_enable &operator=( const domDither_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFog_enable; - - typedef daeSmartRef domFog_enableRef; - typedef daeTArray domFog_enable_Array; - - class domFog_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FOG_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domFog_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domFog_enable() {} - /** - * Copy Constructor - */ - domFog_enable( const domFog_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFog_enable &operator=( const domFog_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTexture_pipeline_enable; - - typedef daeSmartRef domTexture_pipeline_enableRef; - typedef daeTArray domTexture_pipeline_enable_Array; - - class domTexture_pipeline_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXTURE_PIPELINE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domTexture_pipeline_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domTexture_pipeline_enable() {} - /** - * Copy Constructor - */ - domTexture_pipeline_enable( const domTexture_pipeline_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTexture_pipeline_enable &operator=( const domTexture_pipeline_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_enable; - - typedef daeSmartRef domLight_enableRef; - typedef daeTArray domLight_enable_Array; - - class domLight_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - domGLES_MAX_LIGHTS_index attrIndex; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - /** - * Gets the index attribute. - * @return Returns a domGLES_MAX_LIGHTS_index of the index attribute. - */ - domGLES_MAX_LIGHTS_index getIndex() const { return attrIndex; } - /** - * Sets the index attribute. - * @param atIndex The new value for the index attribute. - */ - void setIndex( domGLES_MAX_LIGHTS_index atIndex ) { attrIndex = atIndex; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domLight_enable() : attrValue(), attrParam(), attrIndex() {} - /** - * Destructor - */ - virtual ~domLight_enable() {} - /** - * Copy Constructor - */ - domLight_enable( const domLight_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_enable &operator=( const domLight_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLighting_enable; - - typedef daeSmartRef domLighting_enableRef; - typedef daeTArray domLighting_enable_Array; - - class domLighting_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHTING_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLighting_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLighting_enable() {} - /** - * Copy Constructor - */ - domLighting_enable( const domLighting_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLighting_enable &operator=( const domLighting_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLight_model_two_side_enable; - - typedef daeSmartRef domLight_model_two_side_enableRef; - typedef daeTArray domLight_model_two_side_enable_Array; - - class domLight_model_two_side_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT_MODEL_TWO_SIDE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLight_model_two_side_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLight_model_two_side_enable() {} - /** - * Copy Constructor - */ - domLight_model_two_side_enable( const domLight_model_two_side_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight_model_two_side_enable &operator=( const domLight_model_two_side_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLine_smooth_enable; - - typedef daeSmartRef domLine_smooth_enableRef; - typedef daeTArray domLine_smooth_enable_Array; - - class domLine_smooth_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LINE_SMOOTH_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domLine_smooth_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domLine_smooth_enable() {} - /** - * Copy Constructor - */ - domLine_smooth_enable( const domLine_smooth_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLine_smooth_enable &operator=( const domLine_smooth_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMultisample_enable; - - typedef daeSmartRef domMultisample_enableRef; - typedef daeTArray domMultisample_enable_Array; - - class domMultisample_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MULTISAMPLE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domMultisample_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domMultisample_enable() {} - /** - * Copy Constructor - */ - domMultisample_enable( const domMultisample_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMultisample_enable &operator=( const domMultisample_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domNormalize_enable; - - typedef daeSmartRef domNormalize_enableRef; - typedef daeTArray domNormalize_enable_Array; - - class domNormalize_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::NORMALIZE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domNormalize_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domNormalize_enable() {} - /** - * Copy Constructor - */ - domNormalize_enable( const domNormalize_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domNormalize_enable &operator=( const domNormalize_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPoint_smooth_enable; - - typedef daeSmartRef domPoint_smooth_enableRef; - typedef daeTArray domPoint_smooth_enable_Array; - - class domPoint_smooth_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT_SMOOTH_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPoint_smooth_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPoint_smooth_enable() {} - /** - * Copy Constructor - */ - domPoint_smooth_enable( const domPoint_smooth_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPoint_smooth_enable &operator=( const domPoint_smooth_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPolygon_offset_fill_enable; - - typedef daeSmartRef domPolygon_offset_fill_enableRef; - typedef daeTArray domPolygon_offset_fill_enable_Array; - - class domPolygon_offset_fill_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POLYGON_OFFSET_FILL_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domPolygon_offset_fill_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domPolygon_offset_fill_enable() {} - /** - * Copy Constructor - */ - domPolygon_offset_fill_enable( const domPolygon_offset_fill_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPolygon_offset_fill_enable &operator=( const domPolygon_offset_fill_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domRescale_normal_enable; - - typedef daeSmartRef domRescale_normal_enableRef; - typedef daeTArray domRescale_normal_enable_Array; - - class domRescale_normal_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RESCALE_NORMAL_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domRescale_normal_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domRescale_normal_enable() {} - /** - * Copy Constructor - */ - domRescale_normal_enable( const domRescale_normal_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRescale_normal_enable &operator=( const domRescale_normal_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSample_alpha_to_coverage_enable; - - typedef daeSmartRef domSample_alpha_to_coverage_enableRef; - typedef daeTArray domSample_alpha_to_coverage_enable_Array; - - class domSample_alpha_to_coverage_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SAMPLE_ALPHA_TO_COVERAGE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domSample_alpha_to_coverage_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domSample_alpha_to_coverage_enable() {} - /** - * Copy Constructor - */ - domSample_alpha_to_coverage_enable( const domSample_alpha_to_coverage_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSample_alpha_to_coverage_enable &operator=( const domSample_alpha_to_coverage_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSample_alpha_to_one_enable; - - typedef daeSmartRef domSample_alpha_to_one_enableRef; - typedef daeTArray domSample_alpha_to_one_enable_Array; - - class domSample_alpha_to_one_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SAMPLE_ALPHA_TO_ONE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domSample_alpha_to_one_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domSample_alpha_to_one_enable() {} - /** - * Copy Constructor - */ - domSample_alpha_to_one_enable( const domSample_alpha_to_one_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSample_alpha_to_one_enable &operator=( const domSample_alpha_to_one_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSample_coverage_enable; - - typedef daeSmartRef domSample_coverage_enableRef; - typedef daeTArray domSample_coverage_enable_Array; - - class domSample_coverage_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SAMPLE_COVERAGE_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domSample_coverage_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domSample_coverage_enable() {} - /** - * Copy Constructor - */ - domSample_coverage_enable( const domSample_coverage_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSample_coverage_enable &operator=( const domSample_coverage_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domScissor_test_enable; - - typedef daeSmartRef domScissor_test_enableRef; - typedef daeTArray domScissor_test_enable_Array; - - class domScissor_test_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SCISSOR_TEST_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domScissor_test_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domScissor_test_enable() {} - /** - * Copy Constructor - */ - domScissor_test_enable( const domScissor_test_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domScissor_test_enable &operator=( const domScissor_test_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domStencil_test_enable; - - typedef daeSmartRef domStencil_test_enableRef; - typedef daeTArray domStencil_test_enable_Array; - - class domStencil_test_enable : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_TEST_ENABLE; } - protected: // Attributes - domBool attrValue; - xsNCName attrParam; - - - public: //Accessors and Mutators - /** - * Gets the value attribute. - * @return Returns a domBool of the value attribute. - */ - domBool getValue() const { return attrValue; } - /** - * Sets the value attribute. - * @param atValue The new value for the value attribute. - */ - void setValue( domBool atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domStencil_test_enable() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domStencil_test_enable() {} - /** - * Copy Constructor - */ - domStencil_test_enable( const domStencil_test_enable &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domStencil_test_enable &operator=( const domStencil_test_enable &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domAlpha_funcRef elemAlpha_func; - domBlend_funcRef elemBlend_func; - domClear_colorRef elemClear_color; - domClear_stencilRef elemClear_stencil; - domClear_depthRef elemClear_depth; - domClip_planeRef elemClip_plane; - domColor_maskRef elemColor_mask; - domCull_faceRef elemCull_face; - domDepth_funcRef elemDepth_func; - domDepth_maskRef elemDepth_mask; - domDepth_rangeRef elemDepth_range; - domFog_colorRef elemFog_color; - domFog_densityRef elemFog_density; - domFog_modeRef elemFog_mode; - domFog_startRef elemFog_start; - domFog_endRef elemFog_end; - domFront_faceRef elemFront_face; - domTexture_pipelineRef elemTexture_pipeline; - domLogic_opRef elemLogic_op; - domLight_ambientRef elemLight_ambient; - domLight_diffuseRef elemLight_diffuse; - domLight_specularRef elemLight_specular; - domLight_positionRef elemLight_position; - domLight_constant_attenuationRef elemLight_constant_attenuation; - domLight_linear_attenutationRef elemLight_linear_attenutation; - domLight_quadratic_attenuationRef elemLight_quadratic_attenuation; - domLight_spot_cutoffRef elemLight_spot_cutoff; - domLight_spot_directionRef elemLight_spot_direction; - domLight_spot_exponentRef elemLight_spot_exponent; - domLight_model_ambientRef elemLight_model_ambient; - domLine_widthRef elemLine_width; - domMaterial_ambientRef elemMaterial_ambient; - domMaterial_diffuseRef elemMaterial_diffuse; - domMaterial_emissionRef elemMaterial_emission; - domMaterial_shininessRef elemMaterial_shininess; - domMaterial_specularRef elemMaterial_specular; - domModel_view_matrixRef elemModel_view_matrix; - domPoint_distance_attenuationRef elemPoint_distance_attenuation; - domPoint_fade_threshold_sizeRef elemPoint_fade_threshold_size; - domPoint_sizeRef elemPoint_size; - domPoint_size_minRef elemPoint_size_min; - domPoint_size_maxRef elemPoint_size_max; - domPolygon_offsetRef elemPolygon_offset; - domProjection_matrixRef elemProjection_matrix; - domScissorRef elemScissor; - domShade_modelRef elemShade_model; - domStencil_funcRef elemStencil_func; - domStencil_maskRef elemStencil_mask; - domStencil_opRef elemStencil_op; - domAlpha_test_enableRef elemAlpha_test_enable; - domBlend_enableRef elemBlend_enable; - domClip_plane_enableRef elemClip_plane_enable; - domColor_logic_op_enableRef elemColor_logic_op_enable; - domColor_material_enableRef elemColor_material_enable; - domCull_face_enableRef elemCull_face_enable; - domDepth_test_enableRef elemDepth_test_enable; - domDither_enableRef elemDither_enable; - domFog_enableRef elemFog_enable; - domTexture_pipeline_enableRef elemTexture_pipeline_enable; - domLight_enableRef elemLight_enable; - domLighting_enableRef elemLighting_enable; - domLight_model_two_side_enableRef elemLight_model_two_side_enable; - domLine_smooth_enableRef elemLine_smooth_enable; - domMultisample_enableRef elemMultisample_enable; - domNormalize_enableRef elemNormalize_enable; - domPoint_smooth_enableRef elemPoint_smooth_enable; - domPolygon_offset_fill_enableRef elemPolygon_offset_fill_enable; - domRescale_normal_enableRef elemRescale_normal_enable; - domSample_alpha_to_coverage_enableRef elemSample_alpha_to_coverage_enable; - domSample_alpha_to_one_enableRef elemSample_alpha_to_one_enable; - domSample_coverage_enableRef elemSample_coverage_enable; - domScissor_test_enableRef elemScissor_test_enable; - domStencil_test_enableRef elemStencil_test_enable; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the alpha_func element. - * @return a daeSmartRef to the alpha_func element. - */ - const domAlpha_funcRef getAlpha_func() const { return elemAlpha_func; } - /** - * Gets the blend_func element. - * @return a daeSmartRef to the blend_func element. - */ - const domBlend_funcRef getBlend_func() const { return elemBlend_func; } - /** - * Gets the clear_color element. - * @return a daeSmartRef to the clear_color element. - */ - const domClear_colorRef getClear_color() const { return elemClear_color; } - /** - * Gets the clear_stencil element. - * @return a daeSmartRef to the clear_stencil element. - */ - const domClear_stencilRef getClear_stencil() const { return elemClear_stencil; } - /** - * Gets the clear_depth element. - * @return a daeSmartRef to the clear_depth element. - */ - const domClear_depthRef getClear_depth() const { return elemClear_depth; } - /** - * Gets the clip_plane element. - * @return a daeSmartRef to the clip_plane element. - */ - const domClip_planeRef getClip_plane() const { return elemClip_plane; } - /** - * Gets the color_mask element. - * @return a daeSmartRef to the color_mask element. - */ - const domColor_maskRef getColor_mask() const { return elemColor_mask; } - /** - * Gets the cull_face element. - * @return a daeSmartRef to the cull_face element. - */ - const domCull_faceRef getCull_face() const { return elemCull_face; } - /** - * Gets the depth_func element. - * @return a daeSmartRef to the depth_func element. - */ - const domDepth_funcRef getDepth_func() const { return elemDepth_func; } - /** - * Gets the depth_mask element. - * @return a daeSmartRef to the depth_mask element. - */ - const domDepth_maskRef getDepth_mask() const { return elemDepth_mask; } - /** - * Gets the depth_range element. - * @return a daeSmartRef to the depth_range element. - */ - const domDepth_rangeRef getDepth_range() const { return elemDepth_range; } - /** - * Gets the fog_color element. - * @return a daeSmartRef to the fog_color element. - */ - const domFog_colorRef getFog_color() const { return elemFog_color; } - /** - * Gets the fog_density element. - * @return a daeSmartRef to the fog_density element. - */ - const domFog_densityRef getFog_density() const { return elemFog_density; } - /** - * Gets the fog_mode element. - * @return a daeSmartRef to the fog_mode element. - */ - const domFog_modeRef getFog_mode() const { return elemFog_mode; } - /** - * Gets the fog_start element. - * @return a daeSmartRef to the fog_start element. - */ - const domFog_startRef getFog_start() const { return elemFog_start; } - /** - * Gets the fog_end element. - * @return a daeSmartRef to the fog_end element. - */ - const domFog_endRef getFog_end() const { return elemFog_end; } - /** - * Gets the front_face element. - * @return a daeSmartRef to the front_face element. - */ - const domFront_faceRef getFront_face() const { return elemFront_face; } - /** - * Gets the texture_pipeline element. - * @return a daeSmartRef to the texture_pipeline element. - */ - const domTexture_pipelineRef getTexture_pipeline() const { return elemTexture_pipeline; } - /** - * Gets the logic_op element. - * @return a daeSmartRef to the logic_op element. - */ - const domLogic_opRef getLogic_op() const { return elemLogic_op; } - /** - * Gets the light_ambient element. - * @return a daeSmartRef to the light_ambient element. - */ - const domLight_ambientRef getLight_ambient() const { return elemLight_ambient; } - /** - * Gets the light_diffuse element. - * @return a daeSmartRef to the light_diffuse element. - */ - const domLight_diffuseRef getLight_diffuse() const { return elemLight_diffuse; } - /** - * Gets the light_specular element. - * @return a daeSmartRef to the light_specular element. - */ - const domLight_specularRef getLight_specular() const { return elemLight_specular; } - /** - * Gets the light_position element. - * @return a daeSmartRef to the light_position element. - */ - const domLight_positionRef getLight_position() const { return elemLight_position; } - /** - * Gets the light_constant_attenuation element. - * @return a daeSmartRef to the light_constant_attenuation element. - */ - const domLight_constant_attenuationRef getLight_constant_attenuation() const { return elemLight_constant_attenuation; } - /** - * Gets the light_linear_attenutation element. - * @return a daeSmartRef to the light_linear_attenutation element. - */ - const domLight_linear_attenutationRef getLight_linear_attenutation() const { return elemLight_linear_attenutation; } - /** - * Gets the light_quadratic_attenuation element. - * @return a daeSmartRef to the light_quadratic_attenuation element. - */ - const domLight_quadratic_attenuationRef getLight_quadratic_attenuation() const { return elemLight_quadratic_attenuation; } - /** - * Gets the light_spot_cutoff element. - * @return a daeSmartRef to the light_spot_cutoff element. - */ - const domLight_spot_cutoffRef getLight_spot_cutoff() const { return elemLight_spot_cutoff; } - /** - * Gets the light_spot_direction element. - * @return a daeSmartRef to the light_spot_direction element. - */ - const domLight_spot_directionRef getLight_spot_direction() const { return elemLight_spot_direction; } - /** - * Gets the light_spot_exponent element. - * @return a daeSmartRef to the light_spot_exponent element. - */ - const domLight_spot_exponentRef getLight_spot_exponent() const { return elemLight_spot_exponent; } - /** - * Gets the light_model_ambient element. - * @return a daeSmartRef to the light_model_ambient element. - */ - const domLight_model_ambientRef getLight_model_ambient() const { return elemLight_model_ambient; } - /** - * Gets the line_width element. - * @return a daeSmartRef to the line_width element. - */ - const domLine_widthRef getLine_width() const { return elemLine_width; } - /** - * Gets the material_ambient element. - * @return a daeSmartRef to the material_ambient element. - */ - const domMaterial_ambientRef getMaterial_ambient() const { return elemMaterial_ambient; } - /** - * Gets the material_diffuse element. - * @return a daeSmartRef to the material_diffuse element. - */ - const domMaterial_diffuseRef getMaterial_diffuse() const { return elemMaterial_diffuse; } - /** - * Gets the material_emission element. - * @return a daeSmartRef to the material_emission element. - */ - const domMaterial_emissionRef getMaterial_emission() const { return elemMaterial_emission; } - /** - * Gets the material_shininess element. - * @return a daeSmartRef to the material_shininess element. - */ - const domMaterial_shininessRef getMaterial_shininess() const { return elemMaterial_shininess; } - /** - * Gets the material_specular element. - * @return a daeSmartRef to the material_specular element. - */ - const domMaterial_specularRef getMaterial_specular() const { return elemMaterial_specular; } - /** - * Gets the model_view_matrix element. - * @return a daeSmartRef to the model_view_matrix element. - */ - const domModel_view_matrixRef getModel_view_matrix() const { return elemModel_view_matrix; } - /** - * Gets the point_distance_attenuation element. - * @return a daeSmartRef to the point_distance_attenuation element. - */ - const domPoint_distance_attenuationRef getPoint_distance_attenuation() const { return elemPoint_distance_attenuation; } - /** - * Gets the point_fade_threshold_size element. - * @return a daeSmartRef to the point_fade_threshold_size element. - */ - const domPoint_fade_threshold_sizeRef getPoint_fade_threshold_size() const { return elemPoint_fade_threshold_size; } - /** - * Gets the point_size element. - * @return a daeSmartRef to the point_size element. - */ - const domPoint_sizeRef getPoint_size() const { return elemPoint_size; } - /** - * Gets the point_size_min element. - * @return a daeSmartRef to the point_size_min element. - */ - const domPoint_size_minRef getPoint_size_min() const { return elemPoint_size_min; } - /** - * Gets the point_size_max element. - * @return a daeSmartRef to the point_size_max element. - */ - const domPoint_size_maxRef getPoint_size_max() const { return elemPoint_size_max; } - /** - * Gets the polygon_offset element. - * @return a daeSmartRef to the polygon_offset element. - */ - const domPolygon_offsetRef getPolygon_offset() const { return elemPolygon_offset; } - /** - * Gets the projection_matrix element. - * @return a daeSmartRef to the projection_matrix element. - */ - const domProjection_matrixRef getProjection_matrix() const { return elemProjection_matrix; } - /** - * Gets the scissor element. - * @return a daeSmartRef to the scissor element. - */ - const domScissorRef getScissor() const { return elemScissor; } - /** - * Gets the shade_model element. - * @return a daeSmartRef to the shade_model element. - */ - const domShade_modelRef getShade_model() const { return elemShade_model; } - /** - * Gets the stencil_func element. - * @return a daeSmartRef to the stencil_func element. - */ - const domStencil_funcRef getStencil_func() const { return elemStencil_func; } - /** - * Gets the stencil_mask element. - * @return a daeSmartRef to the stencil_mask element. - */ - const domStencil_maskRef getStencil_mask() const { return elemStencil_mask; } - /** - * Gets the stencil_op element. - * @return a daeSmartRef to the stencil_op element. - */ - const domStencil_opRef getStencil_op() const { return elemStencil_op; } - /** - * Gets the alpha_test_enable element. - * @return a daeSmartRef to the alpha_test_enable element. - */ - const domAlpha_test_enableRef getAlpha_test_enable() const { return elemAlpha_test_enable; } - /** - * Gets the blend_enable element. - * @return a daeSmartRef to the blend_enable element. - */ - const domBlend_enableRef getBlend_enable() const { return elemBlend_enable; } - /** - * Gets the clip_plane_enable element. - * @return a daeSmartRef to the clip_plane_enable element. - */ - const domClip_plane_enableRef getClip_plane_enable() const { return elemClip_plane_enable; } - /** - * Gets the color_logic_op_enable element. - * @return a daeSmartRef to the color_logic_op_enable element. - */ - const domColor_logic_op_enableRef getColor_logic_op_enable() const { return elemColor_logic_op_enable; } - /** - * Gets the color_material_enable element. - * @return a daeSmartRef to the color_material_enable element. - */ - const domColor_material_enableRef getColor_material_enable() const { return elemColor_material_enable; } - /** - * Gets the cull_face_enable element. - * @return a daeSmartRef to the cull_face_enable element. - */ - const domCull_face_enableRef getCull_face_enable() const { return elemCull_face_enable; } - /** - * Gets the depth_test_enable element. - * @return a daeSmartRef to the depth_test_enable element. - */ - const domDepth_test_enableRef getDepth_test_enable() const { return elemDepth_test_enable; } - /** - * Gets the dither_enable element. - * @return a daeSmartRef to the dither_enable element. - */ - const domDither_enableRef getDither_enable() const { return elemDither_enable; } - /** - * Gets the fog_enable element. - * @return a daeSmartRef to the fog_enable element. - */ - const domFog_enableRef getFog_enable() const { return elemFog_enable; } - /** - * Gets the texture_pipeline_enable element. - * @return a daeSmartRef to the texture_pipeline_enable element. - */ - const domTexture_pipeline_enableRef getTexture_pipeline_enable() const { return elemTexture_pipeline_enable; } - /** - * Gets the light_enable element. - * @return a daeSmartRef to the light_enable element. - */ - const domLight_enableRef getLight_enable() const { return elemLight_enable; } - /** - * Gets the lighting_enable element. - * @return a daeSmartRef to the lighting_enable element. - */ - const domLighting_enableRef getLighting_enable() const { return elemLighting_enable; } - /** - * Gets the light_model_two_side_enable element. - * @return a daeSmartRef to the light_model_two_side_enable element. - */ - const domLight_model_two_side_enableRef getLight_model_two_side_enable() const { return elemLight_model_two_side_enable; } - /** - * Gets the line_smooth_enable element. - * @return a daeSmartRef to the line_smooth_enable element. - */ - const domLine_smooth_enableRef getLine_smooth_enable() const { return elemLine_smooth_enable; } - /** - * Gets the multisample_enable element. - * @return a daeSmartRef to the multisample_enable element. - */ - const domMultisample_enableRef getMultisample_enable() const { return elemMultisample_enable; } - /** - * Gets the normalize_enable element. - * @return a daeSmartRef to the normalize_enable element. - */ - const domNormalize_enableRef getNormalize_enable() const { return elemNormalize_enable; } - /** - * Gets the point_smooth_enable element. - * @return a daeSmartRef to the point_smooth_enable element. - */ - const domPoint_smooth_enableRef getPoint_smooth_enable() const { return elemPoint_smooth_enable; } - /** - * Gets the polygon_offset_fill_enable element. - * @return a daeSmartRef to the polygon_offset_fill_enable element. - */ - const domPolygon_offset_fill_enableRef getPolygon_offset_fill_enable() const { return elemPolygon_offset_fill_enable; } - /** - * Gets the rescale_normal_enable element. - * @return a daeSmartRef to the rescale_normal_enable element. - */ - const domRescale_normal_enableRef getRescale_normal_enable() const { return elemRescale_normal_enable; } - /** - * Gets the sample_alpha_to_coverage_enable element. - * @return a daeSmartRef to the sample_alpha_to_coverage_enable element. - */ - const domSample_alpha_to_coverage_enableRef getSample_alpha_to_coverage_enable() const { return elemSample_alpha_to_coverage_enable; } - /** - * Gets the sample_alpha_to_one_enable element. - * @return a daeSmartRef to the sample_alpha_to_one_enable element. - */ - const domSample_alpha_to_one_enableRef getSample_alpha_to_one_enable() const { return elemSample_alpha_to_one_enable; } - /** - * Gets the sample_coverage_enable element. - * @return a daeSmartRef to the sample_coverage_enable element. - */ - const domSample_coverage_enableRef getSample_coverage_enable() const { return elemSample_coverage_enable; } - /** - * Gets the scissor_test_enable element. - * @return a daeSmartRef to the scissor_test_enable element. - */ - const domScissor_test_enableRef getScissor_test_enable() const { return elemScissor_test_enable; } - /** - * Gets the stencil_test_enable element. - * @return a daeSmartRef to the stencil_test_enable element. - */ - const domStencil_test_enableRef getStencil_test_enable() const { return elemStencil_test_enable; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domGles_pipeline_settings() : elemAlpha_func(), elemBlend_func(), elemClear_color(), elemClear_stencil(), elemClear_depth(), elemClip_plane(), elemColor_mask(), elemCull_face(), elemDepth_func(), elemDepth_mask(), elemDepth_range(), elemFog_color(), elemFog_density(), elemFog_mode(), elemFog_start(), elemFog_end(), elemFront_face(), elemTexture_pipeline(), elemLogic_op(), elemLight_ambient(), elemLight_diffuse(), elemLight_specular(), elemLight_position(), elemLight_constant_attenuation(), elemLight_linear_attenutation(), elemLight_quadratic_attenuation(), elemLight_spot_cutoff(), elemLight_spot_direction(), elemLight_spot_exponent(), elemLight_model_ambient(), elemLine_width(), elemMaterial_ambient(), elemMaterial_diffuse(), elemMaterial_emission(), elemMaterial_shininess(), elemMaterial_specular(), elemModel_view_matrix(), elemPoint_distance_attenuation(), elemPoint_fade_threshold_size(), elemPoint_size(), elemPoint_size_min(), elemPoint_size_max(), elemPolygon_offset(), elemProjection_matrix(), elemScissor(), elemShade_model(), elemStencil_func(), elemStencil_mask(), elemStencil_op(), elemAlpha_test_enable(), elemBlend_enable(), elemClip_plane_enable(), elemColor_logic_op_enable(), elemColor_material_enable(), elemCull_face_enable(), elemDepth_test_enable(), elemDither_enable(), elemFog_enable(), elemTexture_pipeline_enable(), elemLight_enable(), elemLighting_enable(), elemLight_model_two_side_enable(), elemLine_smooth_enable(), elemMultisample_enable(), elemNormalize_enable(), elemPoint_smooth_enable(), elemPolygon_offset_fill_enable(), elemRescale_normal_enable(), elemSample_alpha_to_coverage_enable(), elemSample_alpha_to_one_enable(), elemSample_coverage_enable(), elemScissor_test_enable(), elemStencil_test_enable() {} - /** - * Destructor - */ - virtual ~domGles_pipeline_settings() {} - /** - * Copy Constructor - */ - domGles_pipeline_settings( const domGles_pipeline_settings &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_pipeline_settings &operator=( const domGles_pipeline_settings &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_sampler_state.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_sampler_state.h deleted file mode 100644 index 2407018fc..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGles_sampler_state.h +++ /dev/null @@ -1,657 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGles_sampler_state_h__ -#define __domGles_sampler_state_h__ - -#include -#include - -#include - -/** - * Two-dimensional texture sampler state for profile_GLES. This is a bundle - * of sampler-specific states that will be referenced by one or more texture_units. - */ -class domGles_sampler_state_complexType -{ -public: - class domWrap_s; - - typedef daeSmartRef domWrap_sRef; - typedef daeTArray domWrap_s_Array; - - class domWrap_s : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; } - - protected: // Value - /** - * The domGles_sampler_wrap value of the text data of this element. - */ - domGles_sampler_wrap _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domGles_sampler_wrap of the value. - */ - domGles_sampler_wrap getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domGles_sampler_wrap val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_s() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_s() {} - /** - * Copy Constructor - */ - domWrap_s( const domWrap_s &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_s &operator=( const domWrap_s &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domWrap_t; - - typedef daeSmartRef domWrap_tRef; - typedef daeTArray domWrap_t_Array; - - class domWrap_t : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; } - - protected: // Value - /** - * The domGles_sampler_wrap value of the text data of this element. - */ - domGles_sampler_wrap _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domGles_sampler_wrap of the value. - */ - domGles_sampler_wrap getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domGles_sampler_wrap val ) { _value = val; } - - protected: - /** - * Constructor - */ - domWrap_t() : _value() {} - /** - * Destructor - */ - virtual ~domWrap_t() {} - /** - * Copy Constructor - */ - domWrap_t( const domWrap_t &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domWrap_t &operator=( const domWrap_t &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMinfilter; - - typedef daeSmartRef domMinfilterRef; - typedef daeTArray domMinfilter_Array; - - class domMinfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMinfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMinfilter() {} - /** - * Copy Constructor - */ - domMinfilter( const domMinfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMinfilter &operator=( const domMinfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMagfilter; - - typedef daeSmartRef domMagfilterRef; - typedef daeTArray domMagfilter_Array; - - class domMagfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMagfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMagfilter() {} - /** - * Copy Constructor - */ - domMagfilter( const domMagfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMagfilter &operator=( const domMagfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipfilter; - - typedef daeSmartRef domMipfilterRef; - typedef daeTArray domMipfilter_Array; - - class domMipfilter : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; } - - protected: // Value - /** - * The domFx_sampler_filter_common value of the text data of this element. - */ - domFx_sampler_filter_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_sampler_filter_common of the value. - */ - domFx_sampler_filter_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_sampler_filter_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipfilter() : _value() {} - /** - * Destructor - */ - virtual ~domMipfilter() {} - /** - * Copy Constructor - */ - domMipfilter( const domMipfilter &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipfilter &operator=( const domMipfilter &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipmap_maxlevel; - - typedef daeSmartRef domMipmap_maxlevelRef; - typedef daeTArray domMipmap_maxlevel_Array; - - class domMipmap_maxlevel : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; } - - protected: // Value - /** - * The xsUnsignedByte value of the text data of this element. - */ - xsUnsignedByte _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsUnsignedByte of the value. - */ - xsUnsignedByte getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsUnsignedByte val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipmap_maxlevel() : _value() {} - /** - * Destructor - */ - virtual ~domMipmap_maxlevel() {} - /** - * Copy Constructor - */ - domMipmap_maxlevel( const domMipmap_maxlevel &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMipmap_bias; - - typedef daeSmartRef domMipmap_biasRef; - typedef daeTArray domMipmap_bias_Array; - - class domMipmap_bias : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; } - - protected: // Value - /** - * The xsFloat value of the text data of this element. - */ - xsFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsFloat of the value. - */ - xsFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domMipmap_bias() : _value() {} - /** - * Destructor - */ - virtual ~domMipmap_bias() {} - /** - * Copy Constructor - */ - domMipmap_bias( const domMipmap_bias &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMipmap_bias &operator=( const domMipmap_bias &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - -protected: // Elements - domWrap_sRef elemWrap_s; - domWrap_tRef elemWrap_t; - domMinfilterRef elemMinfilter; - domMagfilterRef elemMagfilter; - domMipfilterRef elemMipfilter; - domMipmap_maxlevelRef elemMipmap_maxlevel; - domMipmap_biasRef elemMipmap_bias; -/** - * The extra element may appear any number of times. OpenGL ES extensions - * may be used here. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; } - - /** - * Gets the wrap_s element. - * @return a daeSmartRef to the wrap_s element. - */ - const domWrap_sRef getWrap_s() const { return elemWrap_s; } - /** - * Gets the wrap_t element. - * @return a daeSmartRef to the wrap_t element. - */ - const domWrap_tRef getWrap_t() const { return elemWrap_t; } - /** - * Gets the minfilter element. - * @return a daeSmartRef to the minfilter element. - */ - const domMinfilterRef getMinfilter() const { return elemMinfilter; } - /** - * Gets the magfilter element. - * @return a daeSmartRef to the magfilter element. - */ - const domMagfilterRef getMagfilter() const { return elemMagfilter; } - /** - * Gets the mipfilter element. - * @return a daeSmartRef to the mipfilter element. - */ - const domMipfilterRef getMipfilter() const { return elemMipfilter; } - /** - * Gets the mipmap_maxlevel element. - * @return a daeSmartRef to the mipmap_maxlevel element. - */ - const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } - /** - * Gets the mipmap_bias element. - * @return a daeSmartRef to the mipmap_bias element. - */ - const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domGles_sampler_state_complexType() : attrSid(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domGles_sampler_state_complexType() {} - /** - * Copy Constructor - */ - domGles_sampler_state_complexType( const domGles_sampler_state_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_sampler_state_complexType &operator=( const domGles_sampler_state_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGles_sampler_state_complexType. - */ -class domGles_sampler_state : public daeElement, public domGles_sampler_state_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_SAMPLER_STATE; } - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domGles_sampler_state() {} - /** - * Destructor - */ - virtual ~domGles_sampler_state() {} - /** - * Copy Constructor - */ - domGles_sampler_state( const domGles_sampler_state &cpy ) : daeElement(), domGles_sampler_state_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_sampler_state &operator=( const domGles_sampler_state &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_argumentAlpha_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_argumentAlpha_type.h deleted file mode 100644 index 4c85e3181..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_argumentAlpha_type.h +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGles_texcombiner_argumentAlpha_type_h__ -#define __domGles_texcombiner_argumentAlpha_type_h__ - -#include -#include - - -class domGles_texcombiner_argumentAlpha_type_complexType -{ -protected: // Attributes - domGles_texcombiner_source_enums attrSource; - domGles_texcombiner_operandAlpha_enums attrOperand; - xsNCName attrUnit; - - -public: //Accessors and Mutators - /** - * Gets the source attribute. - * @return Returns a domGles_texcombiner_source_enums of the source attribute. - */ - domGles_texcombiner_source_enums getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( domGles_texcombiner_source_enums atSource ) { attrSource = atSource; } - - /** - * Gets the operand attribute. - * @return Returns a domGles_texcombiner_operandAlpha_enums of the operand attribute. - */ - domGles_texcombiner_operandAlpha_enums getOperand() const { return attrOperand; } - /** - * Sets the operand attribute. - * @param atOperand The new value for the operand attribute. - */ - void setOperand( domGles_texcombiner_operandAlpha_enums atOperand ) { attrOperand = atOperand; } - - /** - * Gets the unit attribute. - * @return Returns a xsNCName of the unit attribute. - */ - xsNCName getUnit() const { return attrUnit; } - /** - * Sets the unit attribute. - * @param atUnit The new value for the unit attribute. - */ - void setUnit( xsNCName atUnit ) { *(daeStringRef*)&attrUnit = atUnit; } - -protected: - /** - * Constructor - */ - domGles_texcombiner_argumentAlpha_type_complexType() : attrSource(), attrOperand(), attrUnit() {} - /** - * Destructor - */ - virtual ~domGles_texcombiner_argumentAlpha_type_complexType() {} - /** - * Copy Constructor - */ - domGles_texcombiner_argumentAlpha_type_complexType( const domGles_texcombiner_argumentAlpha_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texcombiner_argumentAlpha_type_complexType &operator=( const domGles_texcombiner_argumentAlpha_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGles_texcombiner_argumentAlpha_type_complexType. - */ -class domGles_texcombiner_argumentAlpha_type : public daeElement, public domGles_texcombiner_argumentAlpha_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXCOMBINER_ARGUMENTALPHA_TYPE; } - -public: //Accessors and Mutators - /** - * Gets the source attribute. - * @return Returns a domGles_texcombiner_source_enums of the source attribute. - */ - domGles_texcombiner_source_enums getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( domGles_texcombiner_source_enums atSource ) { attrSource = atSource; - _validAttributeArray[0] = true; } - - /** - * Gets the operand attribute. - * @return Returns a domGles_texcombiner_operandAlpha_enums of the operand attribute. - */ - domGles_texcombiner_operandAlpha_enums getOperand() const { return attrOperand; } - /** - * Sets the operand attribute. - * @param atOperand The new value for the operand attribute. - */ - void setOperand( domGles_texcombiner_operandAlpha_enums atOperand ) { attrOperand = atOperand; - _validAttributeArray[1] = true; } - - /** - * Gets the unit attribute. - * @return Returns a xsNCName of the unit attribute. - */ - xsNCName getUnit() const { return attrUnit; } - /** - * Sets the unit attribute. - * @param atUnit The new value for the unit attribute. - */ - void setUnit( xsNCName atUnit ) { *(daeStringRef*)&attrUnit = atUnit; - _validAttributeArray[2] = true; } - -protected: - /** - * Constructor - */ - domGles_texcombiner_argumentAlpha_type() {} - /** - * Destructor - */ - virtual ~domGles_texcombiner_argumentAlpha_type() {} - /** - * Copy Constructor - */ - domGles_texcombiner_argumentAlpha_type( const domGles_texcombiner_argumentAlpha_type &cpy ) : daeElement(), domGles_texcombiner_argumentAlpha_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texcombiner_argumentAlpha_type &operator=( const domGles_texcombiner_argumentAlpha_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_argumentRGB_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_argumentRGB_type.h deleted file mode 100644 index c2aeaeee4..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_argumentRGB_type.h +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGles_texcombiner_argumentRGB_type_h__ -#define __domGles_texcombiner_argumentRGB_type_h__ - -#include -#include - - -class domGles_texcombiner_argumentRGB_type_complexType -{ -protected: // Attributes - domGles_texcombiner_source_enums attrSource; - domGles_texcombiner_operandRGB_enums attrOperand; - xsNCName attrUnit; - - -public: //Accessors and Mutators - /** - * Gets the source attribute. - * @return Returns a domGles_texcombiner_source_enums of the source attribute. - */ - domGles_texcombiner_source_enums getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( domGles_texcombiner_source_enums atSource ) { attrSource = atSource; } - - /** - * Gets the operand attribute. - * @return Returns a domGles_texcombiner_operandRGB_enums of the operand attribute. - */ - domGles_texcombiner_operandRGB_enums getOperand() const { return attrOperand; } - /** - * Sets the operand attribute. - * @param atOperand The new value for the operand attribute. - */ - void setOperand( domGles_texcombiner_operandRGB_enums atOperand ) { attrOperand = atOperand; } - - /** - * Gets the unit attribute. - * @return Returns a xsNCName of the unit attribute. - */ - xsNCName getUnit() const { return attrUnit; } - /** - * Sets the unit attribute. - * @param atUnit The new value for the unit attribute. - */ - void setUnit( xsNCName atUnit ) { *(daeStringRef*)&attrUnit = atUnit; } - -protected: - /** - * Constructor - */ - domGles_texcombiner_argumentRGB_type_complexType() : attrSource(), attrOperand(), attrUnit() {} - /** - * Destructor - */ - virtual ~domGles_texcombiner_argumentRGB_type_complexType() {} - /** - * Copy Constructor - */ - domGles_texcombiner_argumentRGB_type_complexType( const domGles_texcombiner_argumentRGB_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texcombiner_argumentRGB_type_complexType &operator=( const domGles_texcombiner_argumentRGB_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGles_texcombiner_argumentRGB_type_complexType. - */ -class domGles_texcombiner_argumentRGB_type : public daeElement, public domGles_texcombiner_argumentRGB_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXCOMBINER_ARGUMENTRGB_TYPE; } - -public: //Accessors and Mutators - /** - * Gets the source attribute. - * @return Returns a domGles_texcombiner_source_enums of the source attribute. - */ - domGles_texcombiner_source_enums getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( domGles_texcombiner_source_enums atSource ) { attrSource = atSource; - _validAttributeArray[0] = true; } - - /** - * Gets the operand attribute. - * @return Returns a domGles_texcombiner_operandRGB_enums of the operand attribute. - */ - domGles_texcombiner_operandRGB_enums getOperand() const { return attrOperand; } - /** - * Sets the operand attribute. - * @param atOperand The new value for the operand attribute. - */ - void setOperand( domGles_texcombiner_operandRGB_enums atOperand ) { attrOperand = atOperand; - _validAttributeArray[1] = true; } - - /** - * Gets the unit attribute. - * @return Returns a xsNCName of the unit attribute. - */ - xsNCName getUnit() const { return attrUnit; } - /** - * Sets the unit attribute. - * @param atUnit The new value for the unit attribute. - */ - void setUnit( xsNCName atUnit ) { *(daeStringRef*)&attrUnit = atUnit; - _validAttributeArray[2] = true; } - -protected: - /** - * Constructor - */ - domGles_texcombiner_argumentRGB_type() {} - /** - * Destructor - */ - virtual ~domGles_texcombiner_argumentRGB_type() {} - /** - * Copy Constructor - */ - domGles_texcombiner_argumentRGB_type( const domGles_texcombiner_argumentRGB_type &cpy ) : daeElement(), domGles_texcombiner_argumentRGB_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texcombiner_argumentRGB_type &operator=( const domGles_texcombiner_argumentRGB_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_commandAlpha_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_commandAlpha_type.h deleted file mode 100644 index 27c04131d..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_commandAlpha_type.h +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGles_texcombiner_commandAlpha_type_h__ -#define __domGles_texcombiner_commandAlpha_type_h__ - -#include -#include - -#include - -class domGles_texcombiner_commandAlpha_type_complexType -{ -protected: // Attributes - domGles_texcombiner_operatorAlpha_enums attrOperator; - xsFloat attrScale; - -protected: // Element - domGles_texcombiner_argumentAlpha_type_Array elemArgument_array; - -public: //Accessors and Mutators - /** - * Gets the operator attribute. - * @return Returns a domGles_texcombiner_operatorAlpha_enums of the operator attribute. - */ - domGles_texcombiner_operatorAlpha_enums getOperator() const { return attrOperator; } - /** - * Sets the operator attribute. - * @param atOperator The new value for the operator attribute. - */ - void setOperator( domGles_texcombiner_operatorAlpha_enums atOperator ) { attrOperator = atOperator; } - - /** - * Gets the scale attribute. - * @return Returns a xsFloat of the scale attribute. - */ - xsFloat getScale() const { return attrScale; } - /** - * Sets the scale attribute. - * @param atScale The new value for the scale attribute. - */ - void setScale( xsFloat atScale ) { attrScale = atScale; } - - /** - * Gets the argument element array. - * @return Returns a reference to the array of argument elements. - */ - domGles_texcombiner_argumentAlpha_type_Array &getArgument_array() { return elemArgument_array; } - /** - * Gets the argument element array. - * @return Returns a constant reference to the array of argument elements. - */ - const domGles_texcombiner_argumentAlpha_type_Array &getArgument_array() const { return elemArgument_array; } -protected: - /** - * Constructor - */ - domGles_texcombiner_commandAlpha_type_complexType() : attrOperator(), attrScale(), elemArgument_array() {} - /** - * Destructor - */ - virtual ~domGles_texcombiner_commandAlpha_type_complexType() {} - /** - * Copy Constructor - */ - domGles_texcombiner_commandAlpha_type_complexType( const domGles_texcombiner_commandAlpha_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texcombiner_commandAlpha_type_complexType &operator=( const domGles_texcombiner_commandAlpha_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGles_texcombiner_commandAlpha_type_complexType. - */ -class domGles_texcombiner_commandAlpha_type : public daeElement, public domGles_texcombiner_commandAlpha_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXCOMBINER_COMMANDALPHA_TYPE; } - -public: //Accessors and Mutators - /** - * Gets the operator attribute. - * @return Returns a domGles_texcombiner_operatorAlpha_enums of the operator attribute. - */ - domGles_texcombiner_operatorAlpha_enums getOperator() const { return attrOperator; } - /** - * Sets the operator attribute. - * @param atOperator The new value for the operator attribute. - */ - void setOperator( domGles_texcombiner_operatorAlpha_enums atOperator ) { attrOperator = atOperator; - _validAttributeArray[0] = true; } - - /** - * Gets the scale attribute. - * @return Returns a xsFloat of the scale attribute. - */ - xsFloat getScale() const { return attrScale; } - /** - * Sets the scale attribute. - * @param atScale The new value for the scale attribute. - */ - void setScale( xsFloat atScale ) { attrScale = atScale; - _validAttributeArray[1] = true; } - -protected: - /** - * Constructor - */ - domGles_texcombiner_commandAlpha_type() {} - /** - * Destructor - */ - virtual ~domGles_texcombiner_commandAlpha_type() {} - /** - * Copy Constructor - */ - domGles_texcombiner_commandAlpha_type( const domGles_texcombiner_commandAlpha_type &cpy ) : daeElement(), domGles_texcombiner_commandAlpha_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texcombiner_commandAlpha_type &operator=( const domGles_texcombiner_commandAlpha_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_commandRGB_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_commandRGB_type.h deleted file mode 100644 index 386f8c7c0..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_commandRGB_type.h +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGles_texcombiner_commandRGB_type_h__ -#define __domGles_texcombiner_commandRGB_type_h__ - -#include -#include - -#include - -/** - * Defines the RGB portion of a texture_pipeline command. This is a combiner-mode - * texturing operation. - */ -class domGles_texcombiner_commandRGB_type_complexType -{ -protected: // Attributes - domGles_texcombiner_operatorRGB_enums attrOperator; - xsFloat attrScale; - -protected: // Element - domGles_texcombiner_argumentRGB_type_Array elemArgument_array; - -public: //Accessors and Mutators - /** - * Gets the operator attribute. - * @return Returns a domGles_texcombiner_operatorRGB_enums of the operator attribute. - */ - domGles_texcombiner_operatorRGB_enums getOperator() const { return attrOperator; } - /** - * Sets the operator attribute. - * @param atOperator The new value for the operator attribute. - */ - void setOperator( domGles_texcombiner_operatorRGB_enums atOperator ) { attrOperator = atOperator; } - - /** - * Gets the scale attribute. - * @return Returns a xsFloat of the scale attribute. - */ - xsFloat getScale() const { return attrScale; } - /** - * Sets the scale attribute. - * @param atScale The new value for the scale attribute. - */ - void setScale( xsFloat atScale ) { attrScale = atScale; } - - /** - * Gets the argument element array. - * @return Returns a reference to the array of argument elements. - */ - domGles_texcombiner_argumentRGB_type_Array &getArgument_array() { return elemArgument_array; } - /** - * Gets the argument element array. - * @return Returns a constant reference to the array of argument elements. - */ - const domGles_texcombiner_argumentRGB_type_Array &getArgument_array() const { return elemArgument_array; } -protected: - /** - * Constructor - */ - domGles_texcombiner_commandRGB_type_complexType() : attrOperator(), attrScale(), elemArgument_array() {} - /** - * Destructor - */ - virtual ~domGles_texcombiner_commandRGB_type_complexType() {} - /** - * Copy Constructor - */ - domGles_texcombiner_commandRGB_type_complexType( const domGles_texcombiner_commandRGB_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texcombiner_commandRGB_type_complexType &operator=( const domGles_texcombiner_commandRGB_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGles_texcombiner_commandRGB_type_complexType. - */ -class domGles_texcombiner_commandRGB_type : public daeElement, public domGles_texcombiner_commandRGB_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXCOMBINER_COMMANDRGB_TYPE; } - -public: //Accessors and Mutators - /** - * Gets the operator attribute. - * @return Returns a domGles_texcombiner_operatorRGB_enums of the operator attribute. - */ - domGles_texcombiner_operatorRGB_enums getOperator() const { return attrOperator; } - /** - * Sets the operator attribute. - * @param atOperator The new value for the operator attribute. - */ - void setOperator( domGles_texcombiner_operatorRGB_enums atOperator ) { attrOperator = atOperator; - _validAttributeArray[0] = true; } - - /** - * Gets the scale attribute. - * @return Returns a xsFloat of the scale attribute. - */ - xsFloat getScale() const { return attrScale; } - /** - * Sets the scale attribute. - * @param atScale The new value for the scale attribute. - */ - void setScale( xsFloat atScale ) { attrScale = atScale; - _validAttributeArray[1] = true; } - -protected: - /** - * Constructor - */ - domGles_texcombiner_commandRGB_type() {} - /** - * Destructor - */ - virtual ~domGles_texcombiner_commandRGB_type() {} - /** - * Copy Constructor - */ - domGles_texcombiner_commandRGB_type( const domGles_texcombiner_commandRGB_type &cpy ) : daeElement(), domGles_texcombiner_commandRGB_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texcombiner_commandRGB_type &operator=( const domGles_texcombiner_commandRGB_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_command_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_command_type.h deleted file mode 100644 index 0e6f62a85..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texcombiner_command_type.h +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGles_texcombiner_command_type_h__ -#define __domGles_texcombiner_command_type_h__ - -#include -#include - -#include -#include -#include - -class domGles_texcombiner_command_type_complexType -{ - -protected: // Elements - domGles_texture_constant_typeRef elemConstant; - domGles_texcombiner_commandRGB_typeRef elemRGB; - domGles_texcombiner_commandAlpha_typeRef elemAlpha; - -public: //Accessors and Mutators - /** - * Gets the constant element. - * @return a daeSmartRef to the constant element. - */ - const domGles_texture_constant_typeRef getConstant() const { return elemConstant; } - /** - * Gets the RGB element. - * @return a daeSmartRef to the RGB element. - */ - const domGles_texcombiner_commandRGB_typeRef getRGB() const { return elemRGB; } - /** - * Gets the alpha element. - * @return a daeSmartRef to the alpha element. - */ - const domGles_texcombiner_commandAlpha_typeRef getAlpha() const { return elemAlpha; } -protected: - /** - * Constructor - */ - domGles_texcombiner_command_type_complexType() : elemConstant(), elemRGB(), elemAlpha() {} - /** - * Destructor - */ - virtual ~domGles_texcombiner_command_type_complexType() {} - /** - * Copy Constructor - */ - domGles_texcombiner_command_type_complexType( const domGles_texcombiner_command_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texcombiner_command_type_complexType &operator=( const domGles_texcombiner_command_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGles_texcombiner_command_type_complexType. - */ -class domGles_texcombiner_command_type : public daeElement, public domGles_texcombiner_command_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXCOMBINER_COMMAND_TYPE; } -protected: - /** - * Constructor - */ - domGles_texcombiner_command_type() {} - /** - * Destructor - */ - virtual ~domGles_texcombiner_command_type() {} - /** - * Copy Constructor - */ - domGles_texcombiner_command_type( const domGles_texcombiner_command_type &cpy ) : daeElement(), domGles_texcombiner_command_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texcombiner_command_type &operator=( const domGles_texcombiner_command_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texenv_command_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texenv_command_type.h deleted file mode 100644 index 8e4f8e18b..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texenv_command_type.h +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGles_texenv_command_type_h__ -#define __domGles_texenv_command_type_h__ - -#include -#include - -#include - -class domGles_texenv_command_type_complexType -{ -protected: // Attributes - domGles_texenv_mode_enums attrOperator; - xsNCName attrUnit; - -protected: // Element - domGles_texture_constant_typeRef elemConstant; - -public: //Accessors and Mutators - /** - * Gets the operator attribute. - * @return Returns a domGles_texenv_mode_enums of the operator attribute. - */ - domGles_texenv_mode_enums getOperator() const { return attrOperator; } - /** - * Sets the operator attribute. - * @param atOperator The new value for the operator attribute. - */ - void setOperator( domGles_texenv_mode_enums atOperator ) { attrOperator = atOperator; } - - /** - * Gets the unit attribute. - * @return Returns a xsNCName of the unit attribute. - */ - xsNCName getUnit() const { return attrUnit; } - /** - * Sets the unit attribute. - * @param atUnit The new value for the unit attribute. - */ - void setUnit( xsNCName atUnit ) { *(daeStringRef*)&attrUnit = atUnit; } - - /** - * Gets the constant element. - * @return a daeSmartRef to the constant element. - */ - const domGles_texture_constant_typeRef getConstant() const { return elemConstant; } -protected: - /** - * Constructor - */ - domGles_texenv_command_type_complexType() : attrOperator(), attrUnit(), elemConstant() {} - /** - * Destructor - */ - virtual ~domGles_texenv_command_type_complexType() {} - /** - * Copy Constructor - */ - domGles_texenv_command_type_complexType( const domGles_texenv_command_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texenv_command_type_complexType &operator=( const domGles_texenv_command_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGles_texenv_command_type_complexType. - */ -class domGles_texenv_command_type : public daeElement, public domGles_texenv_command_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXENV_COMMAND_TYPE; } - -public: //Accessors and Mutators - /** - * Gets the operator attribute. - * @return Returns a domGles_texenv_mode_enums of the operator attribute. - */ - domGles_texenv_mode_enums getOperator() const { return attrOperator; } - /** - * Sets the operator attribute. - * @param atOperator The new value for the operator attribute. - */ - void setOperator( domGles_texenv_mode_enums atOperator ) { attrOperator = atOperator; - _validAttributeArray[0] = true; } - - /** - * Gets the unit attribute. - * @return Returns a xsNCName of the unit attribute. - */ - xsNCName getUnit() const { return attrUnit; } - /** - * Sets the unit attribute. - * @param atUnit The new value for the unit attribute. - */ - void setUnit( xsNCName atUnit ) { *(daeStringRef*)&attrUnit = atUnit; - _validAttributeArray[1] = true; } - -protected: - /** - * Constructor - */ - domGles_texenv_command_type() {} - /** - * Destructor - */ - virtual ~domGles_texenv_command_type() {} - /** - * Copy Constructor - */ - domGles_texenv_command_type( const domGles_texenv_command_type &cpy ) : daeElement(), domGles_texenv_command_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texenv_command_type &operator=( const domGles_texenv_command_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_constant_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_constant_type.h deleted file mode 100644 index 2b7e4713c..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_constant_type.h +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGles_texture_constant_type_h__ -#define __domGles_texture_constant_type_h__ - -#include -#include - - -class domGles_texture_constant_type_complexType -{ -protected: // Attributes - domFloat4 attrValue; - xsNCName attrParam; - - -public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; } - -protected: - /** - * Constructor - */ - domGles_texture_constant_type_complexType() : attrValue(), attrParam() {} - /** - * Destructor - */ - virtual ~domGles_texture_constant_type_complexType() {} - /** - * Copy Constructor - */ - domGles_texture_constant_type_complexType( const domGles_texture_constant_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texture_constant_type_complexType &operator=( const domGles_texture_constant_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGles_texture_constant_type_complexType. - */ -class domGles_texture_constant_type : public daeElement, public domGles_texture_constant_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXTURE_CONSTANT_TYPE; } - -public: //Accessors and Mutators - /** - * Gets the value array attribute. - * @return Returns a domFloat4 reference of the value array attribute. - */ - domFloat4 &getValue() { return attrValue; } - /** - * Gets the value array attribute. - * @return Returns a constant domFloat4 reference of the value array attribute. - */ - const domFloat4 &getValue() const { return attrValue; } - /** - * Sets the value array attribute. - * @param atValue The new value for the value array attribute. - */ - void setValue( const domFloat4 &atValue ) { attrValue = atValue; - _validAttributeArray[0] = true; } - - /** - * Gets the param attribute. - * @return Returns a xsNCName of the param attribute. - */ - xsNCName getParam() const { return attrParam; } - /** - * Sets the param attribute. - * @param atParam The new value for the param attribute. - */ - void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; - _validAttributeArray[1] = true; } - -protected: - /** - * Constructor - */ - domGles_texture_constant_type() {} - /** - * Destructor - */ - virtual ~domGles_texture_constant_type() {} - /** - * Copy Constructor - */ - domGles_texture_constant_type( const domGles_texture_constant_type &cpy ) : daeElement(), domGles_texture_constant_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texture_constant_type &operator=( const domGles_texture_constant_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_pipeline.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_pipeline.h deleted file mode 100644 index 4df426ea7..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_pipeline.h +++ /dev/null @@ -1,196 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGles_texture_pipeline_h__ -#define __domGles_texture_pipeline_h__ - -#include -#include - -#include -#include -#include - -/** - * Defines a set of texturing commands that will be converted into multitexturing - * operations using glTexEnv in regular and combiner mode. - */ -class domGles_texture_pipeline_complexType -{ -protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - -protected: // Elements -/** - * Defines a texture_pipeline command. This is a combiner-mode texturing operation. - * @see domTexcombiner - */ - domGles_texcombiner_command_type_Array elemTexcombiner_array; -/** - * Defines a texture_pipeline command. It is a simple noncombiner mode of - * texturing operations. @see domTexenv - */ - domGles_texenv_command_type_Array elemTexenv_array; -/** - * The extra element may appear any number of times. OpenGL ES extensions - * may be used here. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; } - - /** - * Gets the texcombiner element array. - * @return Returns a reference to the array of texcombiner elements. - */ - domGles_texcombiner_command_type_Array &getTexcombiner_array() { return elemTexcombiner_array; } - /** - * Gets the texcombiner element array. - * @return Returns a constant reference to the array of texcombiner elements. - */ - const domGles_texcombiner_command_type_Array &getTexcombiner_array() const { return elemTexcombiner_array; } - /** - * Gets the texenv element array. - * @return Returns a reference to the array of texenv elements. - */ - domGles_texenv_command_type_Array &getTexenv_array() { return elemTexenv_array; } - /** - * Gets the texenv element array. - * @return Returns a constant reference to the array of texenv elements. - */ - const domGles_texenv_command_type_Array &getTexenv_array() const { return elemTexenv_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domGles_texture_pipeline_complexType() : attrSid(), elemTexcombiner_array(), elemTexenv_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domGles_texture_pipeline_complexType() {} - /** - * Copy Constructor - */ - domGles_texture_pipeline_complexType( const domGles_texture_pipeline_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texture_pipeline_complexType &operator=( const domGles_texture_pipeline_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGles_texture_pipeline_complexType. - */ -class domGles_texture_pipeline : public daeElement, public domGles_texture_pipeline_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXTURE_PIPELINE; } - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domGles_texture_pipeline() {} - /** - * Destructor - */ - virtual ~domGles_texture_pipeline() {} - /** - * Copy Constructor - */ - domGles_texture_pipeline( const domGles_texture_pipeline &cpy ) : daeElement(), domGles_texture_pipeline_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texture_pipeline &operator=( const domGles_texture_pipeline &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_unit.h b/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_unit.h deleted file mode 100644 index 9d069340e..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGles_texture_unit.h +++ /dev/null @@ -1,355 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGles_texture_unit_h__ -#define __domGles_texture_unit_h__ - -#include -#include - -#include - -class domGles_texture_unit_complexType -{ -public: - class domSurface; - - typedef daeSmartRef domSurfaceRef; - typedef daeTArray domSurface_Array; - - class domSurface : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SURFACE; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSurface() : _value() {} - /** - * Destructor - */ - virtual ~domSurface() {} - /** - * Copy Constructor - */ - domSurface( const domSurface &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSurface &operator=( const domSurface &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSampler_state; - - typedef daeSmartRef domSampler_stateRef; - typedef daeTArray domSampler_state_Array; - - class domSampler_state : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SAMPLER_STATE; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSampler_state() : _value() {} - /** - * Destructor - */ - virtual ~domSampler_state() {} - /** - * Copy Constructor - */ - domSampler_state( const domSampler_state &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSampler_state &operator=( const domSampler_state &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTexcoord; - - typedef daeSmartRef domTexcoordRef; - typedef daeTArray domTexcoord_Array; - - class domTexcoord : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TEXCOORD; } - protected: // Attribute - xsNCName attrSemantic; - - - public: //Accessors and Mutators - /** - * Gets the semantic attribute. - * @return Returns a xsNCName of the semantic attribute. - */ - xsNCName getSemantic() const { return attrSemantic; } - /** - * Sets the semantic attribute. - * @param atSemantic The new value for the semantic attribute. - */ - void setSemantic( xsNCName atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic; - _validAttributeArray[0] = true; } - - protected: - /** - * Constructor - */ - domTexcoord() : attrSemantic() {} - /** - * Destructor - */ - virtual ~domTexcoord() {} - /** - * Copy Constructor - */ - domTexcoord( const domTexcoord &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTexcoord &operator=( const domTexcoord &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - -protected: // Elements - domSurfaceRef elemSurface; - domSampler_stateRef elemSampler_state; - domTexcoordRef elemTexcoord; - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; } - - /** - * Gets the surface element. - * @return a daeSmartRef to the surface element. - */ - const domSurfaceRef getSurface() const { return elemSurface; } - /** - * Gets the sampler_state element. - * @return a daeSmartRef to the sampler_state element. - */ - const domSampler_stateRef getSampler_state() const { return elemSampler_state; } - /** - * Gets the texcoord element. - * @return a daeSmartRef to the texcoord element. - */ - const domTexcoordRef getTexcoord() const { return elemTexcoord; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domGles_texture_unit_complexType() : attrSid(), elemSurface(), elemSampler_state(), elemTexcoord(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domGles_texture_unit_complexType() {} - /** - * Copy Constructor - */ - domGles_texture_unit_complexType( const domGles_texture_unit_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texture_unit_complexType &operator=( const domGles_texture_unit_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGles_texture_unit_complexType. - */ -class domGles_texture_unit : public daeElement, public domGles_texture_unit_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXTURE_UNIT; } - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domGles_texture_unit() {} - /** - * Destructor - */ - virtual ~domGles_texture_unit() {} - /** - * Copy Constructor - */ - domGles_texture_unit( const domGles_texture_unit &cpy ) : daeElement(), domGles_texture_unit_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGles_texture_unit &operator=( const domGles_texture_unit &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_newarray_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_newarray_type.h deleted file mode 100644 index 87512df67..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_newarray_type.h +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGlsl_newarray_type_h__ -#define __domGlsl_newarray_type_h__ - -#include -#include - -#include -#include - -/** - * The glsl_newarray_type is used to creates a parameter of a one-dimensional - * array type. - */ -class domGlsl_newarray_type_complexType -{ -protected: // Attribute -/** - * The length attribute specifies the length of the array. - */ - xsPositiveInteger attrLength; - -protected: // Elements - domGlsl_param_type_Array elemGlsl_param_type_array; -/** - * You may recursively nest glsl_newarray elements to create multidimensional - * arrays. @see domArray - */ - domGlsl_newarray_type_Array elemArray_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the length attribute. - * @return Returns a xsPositiveInteger of the length attribute. - */ - xsPositiveInteger getLength() const { return attrLength; } - /** - * Sets the length attribute. - * @param atLength The new value for the length attribute. - */ - void setLength( xsPositiveInteger atLength ) { attrLength = atLength; } - - /** - * Gets the glsl_param_type element array. - * @return Returns a reference to the array of glsl_param_type elements. - */ - domGlsl_param_type_Array &getGlsl_param_type_array() { return elemGlsl_param_type_array; } - /** - * Gets the glsl_param_type element array. - * @return Returns a constant reference to the array of glsl_param_type elements. - */ - const domGlsl_param_type_Array &getGlsl_param_type_array() const { return elemGlsl_param_type_array; } - /** - * Gets the array element array. - * @return Returns a reference to the array of array elements. - */ - domGlsl_newarray_type_Array &getArray_array() { return elemArray_array; } - /** - * Gets the array element array. - * @return Returns a constant reference to the array of array elements. - */ - const domGlsl_newarray_type_Array &getArray_array() const { return elemArray_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domGlsl_newarray_type_complexType() : attrLength(), elemGlsl_param_type_array(), elemArray_array() {} - /** - * Destructor - */ - virtual ~domGlsl_newarray_type_complexType() {} - /** - * Copy Constructor - */ - domGlsl_newarray_type_complexType( const domGlsl_newarray_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGlsl_newarray_type_complexType &operator=( const domGlsl_newarray_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGlsl_newarray_type_complexType. - */ -class domGlsl_newarray_type : public daeElement, public domGlsl_newarray_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLSL_NEWARRAY_TYPE; } - -public: //Accessors and Mutators - /** - * Gets the length attribute. - * @return Returns a xsPositiveInteger of the length attribute. - */ - xsPositiveInteger getLength() const { return attrLength; } - /** - * Sets the length attribute. - * @param atLength The new value for the length attribute. - */ - void setLength( xsPositiveInteger atLength ) { attrLength = atLength; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domGlsl_newarray_type() {} - /** - * Destructor - */ - virtual ~domGlsl_newarray_type() {} - /** - * Copy Constructor - */ - domGlsl_newarray_type( const domGlsl_newarray_type &cpy ) : daeElement(), domGlsl_newarray_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGlsl_newarray_type &operator=( const domGlsl_newarray_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_newparam.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_newparam.h deleted file mode 100644 index 73ca965a9..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_newparam.h +++ /dev/null @@ -1,313 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGlsl_newparam_h__ -#define __domGlsl_newparam_h__ - -#include -#include - -#include -#include -#include - -class domGlsl_newparam_complexType -{ -public: - class domSemantic; - - typedef daeSmartRef domSemanticRef; - typedef daeTArray domSemantic_Array; - - class domSemantic : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SEMANTIC; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domSemantic() : _value() {} - /** - * Destructor - */ - virtual ~domSemantic() {} - /** - * Copy Constructor - */ - domSemantic( const domSemantic &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSemantic &operator=( const domSemantic &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domModifier; - - typedef daeSmartRef domModifierRef; - typedef daeTArray domModifier_Array; - - class domModifier : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODIFIER; } - - protected: // Value - /** - * The domFx_modifier_enum_common value of the text data of this element. - */ - domFx_modifier_enum_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_modifier_enum_common of the value. - */ - domFx_modifier_enum_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_modifier_enum_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domModifier() : _value() {} - /** - * Destructor - */ - virtual ~domModifier() {} - /** - * Copy Constructor - */ - domModifier( const domModifier &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domModifier &operator=( const domModifier &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attribute - domGlsl_identifier attrSid; - -protected: // Elements - domFx_annotate_common_Array elemAnnotate_array; - domSemanticRef elemSemantic; - domModifierRef elemModifier; - domGlsl_param_typeRef elemGlsl_param_type; - domGlsl_newarray_typeRef elemArray; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a domGlsl_identifier of the sid attribute. - */ - domGlsl_identifier getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( domGlsl_identifier atSid ) { attrSid = atSid; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the semantic element. - * @return a daeSmartRef to the semantic element. - */ - const domSemanticRef getSemantic() const { return elemSemantic; } - /** - * Gets the modifier element. - * @return a daeSmartRef to the modifier element. - */ - const domModifierRef getModifier() const { return elemModifier; } - /** - * Gets the glsl_param_type element. - * @return a daeSmartRef to the glsl_param_type element. - */ - const domGlsl_param_typeRef getGlsl_param_type() const { return elemGlsl_param_type; } - /** - * Gets the array element. - * @return a daeSmartRef to the array element. - */ - const domGlsl_newarray_typeRef getArray() const { return elemArray; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domGlsl_newparam_complexType() : attrSid(), elemAnnotate_array(), elemSemantic(), elemModifier(), elemGlsl_param_type(), elemArray() {} - /** - * Destructor - */ - virtual ~domGlsl_newparam_complexType() {} - /** - * Copy Constructor - */ - domGlsl_newparam_complexType( const domGlsl_newparam_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGlsl_newparam_complexType &operator=( const domGlsl_newparam_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGlsl_newparam_complexType. - */ -class domGlsl_newparam : public daeElement, public domGlsl_newparam_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLSL_NEWPARAM; } - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a domGlsl_identifier of the sid attribute. - */ - domGlsl_identifier getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( domGlsl_identifier atSid ) { attrSid = atSid; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domGlsl_newparam() {} - /** - * Destructor - */ - virtual ~domGlsl_newparam() {} - /** - * Copy Constructor - */ - domGlsl_newparam( const domGlsl_newparam &cpy ) : daeElement(), domGlsl_newparam_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGlsl_newparam &operator=( const domGlsl_newparam &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_param_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_param_type.h deleted file mode 100644 index 5b8885506..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_param_type.h +++ /dev/null @@ -1,1370 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGlsl_param_type_h__ -#define __domGlsl_param_type_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -/** - * A group that specifies the allowable types for GLSL profile parameters. - */ -class domGlsl_param_type : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLSL_PARAM_TYPE; } -public: - class domBool; - - typedef daeSmartRef domBoolRef; - typedef daeTArray domBool_Array; - - class domBool : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL; } - - protected: // Value - /** - * The domGlsl_bool value of the text data of this element. - */ - domGlsl_bool _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domGlsl_bool of the value. - */ - domGlsl_bool getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domGlsl_bool val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool() : _value() {} - /** - * Destructor - */ - virtual ~domBool() {} - /** - * Copy Constructor - */ - domBool( const domBool &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool &operator=( const domBool &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool2; - - typedef daeSmartRef domBool2Ref; - typedef daeTArray domBool2_Array; - - class domBool2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL2; } - - protected: // Value - /** - * The domGlsl_bool2 value of the text data of this element. - */ - domGlsl_bool2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domGlsl_bool2 reference of the _value array. - */ - domGlsl_bool2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domGlsl_bool2 reference of the _value array. - */ - const domGlsl_bool2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domGlsl_bool2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool2() : _value() {} - /** - * Destructor - */ - virtual ~domBool2() {} - /** - * Copy Constructor - */ - domBool2( const domBool2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool2 &operator=( const domBool2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool3; - - typedef daeSmartRef domBool3Ref; - typedef daeTArray domBool3_Array; - - class domBool3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL3; } - - protected: // Value - /** - * The domGlsl_bool3 value of the text data of this element. - */ - domGlsl_bool3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domGlsl_bool3 reference of the _value array. - */ - domGlsl_bool3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domGlsl_bool3 reference of the _value array. - */ - const domGlsl_bool3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domGlsl_bool3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool3() : _value() {} - /** - * Destructor - */ - virtual ~domBool3() {} - /** - * Copy Constructor - */ - domBool3( const domBool3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool3 &operator=( const domBool3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBool4; - - typedef daeSmartRef domBool4Ref; - typedef daeTArray domBool4_Array; - - class domBool4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BOOL4; } - - protected: // Value - /** - * The domGlsl_bool4 value of the text data of this element. - */ - domGlsl_bool4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domGlsl_bool4 reference of the _value array. - */ - domGlsl_bool4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domGlsl_bool4 reference of the _value array. - */ - const domGlsl_bool4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domGlsl_bool4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBool4() : _value() {} - /** - * Destructor - */ - virtual ~domBool4() {} - /** - * Copy Constructor - */ - domBool4( const domBool4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBool4 &operator=( const domBool4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat; - - typedef daeSmartRef domFloatRef; - typedef daeTArray domFloat_Array; - - class domFloat : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT; } - - protected: // Value - /** - * The domGlsl_float value of the text data of this element. - */ - domGlsl_float _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domGlsl_float of the value. - */ - domGlsl_float getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domGlsl_float val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat() : _value() {} - /** - * Destructor - */ - virtual ~domFloat() {} - /** - * Copy Constructor - */ - domFloat( const domFloat &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat &operator=( const domFloat &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2; - - typedef daeSmartRef domFloat2Ref; - typedef daeTArray domFloat2_Array; - - class domFloat2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2; } - - protected: // Value - /** - * The domGlsl_float2 value of the text data of this element. - */ - domGlsl_float2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domGlsl_float2 reference of the _value array. - */ - domGlsl_float2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domGlsl_float2 reference of the _value array. - */ - const domGlsl_float2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domGlsl_float2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2() {} - /** - * Copy Constructor - */ - domFloat2( const domFloat2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2 &operator=( const domFloat2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3; - - typedef daeSmartRef domFloat3Ref; - typedef daeTArray domFloat3_Array; - - class domFloat3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3; } - - protected: // Value - /** - * The domGlsl_float3 value of the text data of this element. - */ - domGlsl_float3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domGlsl_float3 reference of the _value array. - */ - domGlsl_float3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domGlsl_float3 reference of the _value array. - */ - const domGlsl_float3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domGlsl_float3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3() {} - /** - * Copy Constructor - */ - domFloat3( const domFloat3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3 &operator=( const domFloat3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4; - - typedef daeSmartRef domFloat4Ref; - typedef daeTArray domFloat4_Array; - - class domFloat4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4; } - - protected: // Value - /** - * The domGlsl_float4 value of the text data of this element. - */ - domGlsl_float4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domGlsl_float4 reference of the _value array. - */ - domGlsl_float4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domGlsl_float4 reference of the _value array. - */ - const domGlsl_float4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domGlsl_float4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4() {} - /** - * Copy Constructor - */ - domFloat4( const domFloat4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4 &operator=( const domFloat4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat2x2; - - typedef daeSmartRef domFloat2x2Ref; - typedef daeTArray domFloat2x2_Array; - - class domFloat2x2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT2X2; } - - protected: // Value - /** - * The domGlsl_float2x2 value of the text data of this element. - */ - domGlsl_float2x2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domGlsl_float2x2 reference of the _value array. - */ - domGlsl_float2x2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domGlsl_float2x2 reference of the _value array. - */ - const domGlsl_float2x2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domGlsl_float2x2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat2x2() : _value() {} - /** - * Destructor - */ - virtual ~domFloat2x2() {} - /** - * Copy Constructor - */ - domFloat2x2( const domFloat2x2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat2x2 &operator=( const domFloat2x2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat3x3; - - typedef daeSmartRef domFloat3x3Ref; - typedef daeTArray domFloat3x3_Array; - - class domFloat3x3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT3X3; } - - protected: // Value - /** - * The domGlsl_float3x3 value of the text data of this element. - */ - domGlsl_float3x3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domGlsl_float3x3 reference of the _value array. - */ - domGlsl_float3x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domGlsl_float3x3 reference of the _value array. - */ - const domGlsl_float3x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domGlsl_float3x3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat3x3() : _value() {} - /** - * Destructor - */ - virtual ~domFloat3x3() {} - /** - * Copy Constructor - */ - domFloat3x3( const domFloat3x3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat3x3 &operator=( const domFloat3x3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domFloat4x4; - - typedef daeSmartRef domFloat4x4Ref; - typedef daeTArray domFloat4x4_Array; - - class domFloat4x4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FLOAT4X4; } - - protected: // Value - /** - * The domGlsl_float4x4 value of the text data of this element. - */ - domGlsl_float4x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domGlsl_float4x4 reference of the _value array. - */ - domGlsl_float4x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domGlsl_float4x4 reference of the _value array. - */ - const domGlsl_float4x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domGlsl_float4x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domFloat4x4() : _value() {} - /** - * Destructor - */ - virtual ~domFloat4x4() {} - /** - * Copy Constructor - */ - domFloat4x4( const domFloat4x4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domFloat4x4 &operator=( const domFloat4x4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt; - - typedef daeSmartRef domIntRef; - typedef daeTArray domInt_Array; - - class domInt : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT; } - - protected: // Value - /** - * The domGlsl_int value of the text data of this element. - */ - domGlsl_int _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domGlsl_int of the value. - */ - domGlsl_int getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domGlsl_int val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt() : _value() {} - /** - * Destructor - */ - virtual ~domInt() {} - /** - * Copy Constructor - */ - domInt( const domInt &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt &operator=( const domInt &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt2; - - typedef daeSmartRef domInt2Ref; - typedef daeTArray domInt2_Array; - - class domInt2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT2; } - - protected: // Value - /** - * The domGlsl_int2 value of the text data of this element. - */ - domGlsl_int2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domGlsl_int2 reference of the _value array. - */ - domGlsl_int2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domGlsl_int2 reference of the _value array. - */ - const domGlsl_int2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domGlsl_int2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt2() : _value() {} - /** - * Destructor - */ - virtual ~domInt2() {} - /** - * Copy Constructor - */ - domInt2( const domInt2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt2 &operator=( const domInt2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt3; - - typedef daeSmartRef domInt3Ref; - typedef daeTArray domInt3_Array; - - class domInt3 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT3; } - - protected: // Value - /** - * The domGlsl_int3 value of the text data of this element. - */ - domGlsl_int3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domGlsl_int3 reference of the _value array. - */ - domGlsl_int3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domGlsl_int3 reference of the _value array. - */ - const domGlsl_int3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domGlsl_int3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt3() : _value() {} - /** - * Destructor - */ - virtual ~domInt3() {} - /** - * Copy Constructor - */ - domInt3( const domInt3 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt3 &operator=( const domInt3 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInt4; - - typedef daeSmartRef domInt4Ref; - typedef daeTArray domInt4_Array; - - class domInt4 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT4; } - - protected: // Value - /** - * The domGlsl_int4 value of the text data of this element. - */ - domGlsl_int4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domGlsl_int4 reference of the _value array. - */ - domGlsl_int4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domGlsl_int4 reference of the _value array. - */ - const domGlsl_int4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domGlsl_int4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInt4() : _value() {} - /** - * Destructor - */ - virtual ~domInt4() {} - /** - * Copy Constructor - */ - domInt4( const domInt4 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt4 &operator=( const domInt4 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domEnum; - - typedef daeSmartRef domEnumRef; - typedef daeTArray domEnum_Array; - - class domEnum : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ENUM; } - - protected: // Value - /** - * The domGl_enumeration value of the text data of this element. - */ - domGl_enumeration _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domGl_enumeration of the value. - */ - domGl_enumeration getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domGl_enumeration val ) { _value = val; } - - protected: - /** - * Constructor - */ - domEnum() : _value() {} - /** - * Destructor - */ - virtual ~domEnum() {} - /** - * Copy Constructor - */ - domEnum( const domEnum &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domEnum &operator=( const domEnum &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements - domBoolRef elemBool; - domBool2Ref elemBool2; - domBool3Ref elemBool3; - domBool4Ref elemBool4; - domFloatRef elemFloat; - domFloat2Ref elemFloat2; - domFloat3Ref elemFloat3; - domFloat4Ref elemFloat4; - domFloat2x2Ref elemFloat2x2; - domFloat3x3Ref elemFloat3x3; - domFloat4x4Ref elemFloat4x4; - domIntRef elemInt; - domInt2Ref elemInt2; - domInt3Ref elemInt3; - domInt4Ref elemInt4; - domGlsl_surface_typeRef elemSurface; - domGl_sampler1DRef elemSampler1D; - domGl_sampler2DRef elemSampler2D; - domGl_sampler3DRef elemSampler3D; - domGl_samplerCUBERef elemSamplerCUBE; - domGl_samplerRECTRef elemSamplerRECT; - domGl_samplerDEPTHRef elemSamplerDEPTH; - domEnumRef elemEnum; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the bool element. - * @return a daeSmartRef to the bool element. - */ - const domBoolRef getBool() const { return elemBool; } - /** - * Gets the bool2 element. - * @return a daeSmartRef to the bool2 element. - */ - const domBool2Ref getBool2() const { return elemBool2; } - /** - * Gets the bool3 element. - * @return a daeSmartRef to the bool3 element. - */ - const domBool3Ref getBool3() const { return elemBool3; } - /** - * Gets the bool4 element. - * @return a daeSmartRef to the bool4 element. - */ - const domBool4Ref getBool4() const { return elemBool4; } - /** - * Gets the float element. - * @return a daeSmartRef to the float element. - */ - const domFloatRef getFloat() const { return elemFloat; } - /** - * Gets the float2 element. - * @return a daeSmartRef to the float2 element. - */ - const domFloat2Ref getFloat2() const { return elemFloat2; } - /** - * Gets the float3 element. - * @return a daeSmartRef to the float3 element. - */ - const domFloat3Ref getFloat3() const { return elemFloat3; } - /** - * Gets the float4 element. - * @return a daeSmartRef to the float4 element. - */ - const domFloat4Ref getFloat4() const { return elemFloat4; } - /** - * Gets the float2x2 element. - * @return a daeSmartRef to the float2x2 element. - */ - const domFloat2x2Ref getFloat2x2() const { return elemFloat2x2; } - /** - * Gets the float3x3 element. - * @return a daeSmartRef to the float3x3 element. - */ - const domFloat3x3Ref getFloat3x3() const { return elemFloat3x3; } - /** - * Gets the float4x4 element. - * @return a daeSmartRef to the float4x4 element. - */ - const domFloat4x4Ref getFloat4x4() const { return elemFloat4x4; } - /** - * Gets the int element. - * @return a daeSmartRef to the int element. - */ - const domIntRef getInt() const { return elemInt; } - /** - * Gets the int2 element. - * @return a daeSmartRef to the int2 element. - */ - const domInt2Ref getInt2() const { return elemInt2; } - /** - * Gets the int3 element. - * @return a daeSmartRef to the int3 element. - */ - const domInt3Ref getInt3() const { return elemInt3; } - /** - * Gets the int4 element. - * @return a daeSmartRef to the int4 element. - */ - const domInt4Ref getInt4() const { return elemInt4; } - /** - * Gets the surface element. - * @return a daeSmartRef to the surface element. - */ - const domGlsl_surface_typeRef getSurface() const { return elemSurface; } - /** - * Gets the sampler1D element. - * @return a daeSmartRef to the sampler1D element. - */ - const domGl_sampler1DRef getSampler1D() const { return elemSampler1D; } - /** - * Gets the sampler2D element. - * @return a daeSmartRef to the sampler2D element. - */ - const domGl_sampler2DRef getSampler2D() const { return elemSampler2D; } - /** - * Gets the sampler3D element. - * @return a daeSmartRef to the sampler3D element. - */ - const domGl_sampler3DRef getSampler3D() const { return elemSampler3D; } - /** - * Gets the samplerCUBE element. - * @return a daeSmartRef to the samplerCUBE element. - */ - const domGl_samplerCUBERef getSamplerCUBE() const { return elemSamplerCUBE; } - /** - * Gets the samplerRECT element. - * @return a daeSmartRef to the samplerRECT element. - */ - const domGl_samplerRECTRef getSamplerRECT() const { return elemSamplerRECT; } - /** - * Gets the samplerDEPTH element. - * @return a daeSmartRef to the samplerDEPTH element. - */ - const domGl_samplerDEPTHRef getSamplerDEPTH() const { return elemSamplerDEPTH; } - /** - * Gets the enum element. - * @return a daeSmartRef to the enum element. - */ - const domEnumRef getEnum() const { return elemEnum; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domGlsl_param_type() : elemBool(), elemBool2(), elemBool3(), elemBool4(), elemFloat(), elemFloat2(), elemFloat3(), elemFloat4(), elemFloat2x2(), elemFloat3x3(), elemFloat4x4(), elemInt(), elemInt2(), elemInt3(), elemInt4(), elemSurface(), elemSampler1D(), elemSampler2D(), elemSampler3D(), elemSamplerCUBE(), elemSamplerRECT(), elemSamplerDEPTH(), elemEnum() {} - /** - * Destructor - */ - virtual ~domGlsl_param_type() {} - /** - * Copy Constructor - */ - domGlsl_param_type( const domGlsl_param_type &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGlsl_param_type &operator=( const domGlsl_param_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setarray_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setarray_type.h deleted file mode 100644 index 249c0913d..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setarray_type.h +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGlsl_setarray_type_h__ -#define __domGlsl_setarray_type_h__ - -#include -#include - -#include -#include - -/** - * The glsl_newarray_type is used to creates a parameter of a one-dimensional - * array type. - */ -class domGlsl_setarray_type_complexType -{ -protected: // Attribute -/** - * The length attribute specifies the length of the array. - */ - xsPositiveInteger attrLength; - -protected: // Elements - domGlsl_param_type_Array elemGlsl_param_type_array; -/** - * You may recursively nest glsl_newarray elements to create multidimensional - * arrays. @see domArray - */ - domGlsl_setarray_type_Array elemArray_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the length attribute. - * @return Returns a xsPositiveInteger of the length attribute. - */ - xsPositiveInteger getLength() const { return attrLength; } - /** - * Sets the length attribute. - * @param atLength The new value for the length attribute. - */ - void setLength( xsPositiveInteger atLength ) { attrLength = atLength; } - - /** - * Gets the glsl_param_type element array. - * @return Returns a reference to the array of glsl_param_type elements. - */ - domGlsl_param_type_Array &getGlsl_param_type_array() { return elemGlsl_param_type_array; } - /** - * Gets the glsl_param_type element array. - * @return Returns a constant reference to the array of glsl_param_type elements. - */ - const domGlsl_param_type_Array &getGlsl_param_type_array() const { return elemGlsl_param_type_array; } - /** - * Gets the array element array. - * @return Returns a reference to the array of array elements. - */ - domGlsl_setarray_type_Array &getArray_array() { return elemArray_array; } - /** - * Gets the array element array. - * @return Returns a constant reference to the array of array elements. - */ - const domGlsl_setarray_type_Array &getArray_array() const { return elemArray_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domGlsl_setarray_type_complexType() : attrLength(), elemGlsl_param_type_array(), elemArray_array() {} - /** - * Destructor - */ - virtual ~domGlsl_setarray_type_complexType() {} - /** - * Copy Constructor - */ - domGlsl_setarray_type_complexType( const domGlsl_setarray_type_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGlsl_setarray_type_complexType &operator=( const domGlsl_setarray_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGlsl_setarray_type_complexType. - */ -class domGlsl_setarray_type : public daeElement, public domGlsl_setarray_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLSL_SETARRAY_TYPE; } - -public: //Accessors and Mutators - /** - * Gets the length attribute. - * @return Returns a xsPositiveInteger of the length attribute. - */ - xsPositiveInteger getLength() const { return attrLength; } - /** - * Sets the length attribute. - * @param atLength The new value for the length attribute. - */ - void setLength( xsPositiveInteger atLength ) { attrLength = atLength; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domGlsl_setarray_type() {} - /** - * Destructor - */ - virtual ~domGlsl_setarray_type() {} - /** - * Copy Constructor - */ - domGlsl_setarray_type( const domGlsl_setarray_type &cpy ) : daeElement(), domGlsl_setarray_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGlsl_setarray_type &operator=( const domGlsl_setarray_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setparam.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setparam.h deleted file mode 100644 index 2f9a74606..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setparam.h +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGlsl_setparam_h__ -#define __domGlsl_setparam_h__ - -#include -#include - -#include -#include -#include - -class domGlsl_setparam_complexType -{ -protected: // Attributes - domGlsl_identifier attrRef; - xsNCName attrProgram; - -protected: // Elements - domFx_annotate_common_Array elemAnnotate_array; - domGlsl_param_typeRef elemGlsl_param_type; - domGlsl_setarray_typeRef elemArray; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a domGlsl_identifier of the ref attribute. - */ - domGlsl_identifier getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( domGlsl_identifier atRef ) { attrRef = atRef; } - - /** - * Gets the program attribute. - * @return Returns a xsNCName of the program attribute. - */ - xsNCName getProgram() const { return attrProgram; } - /** - * Sets the program attribute. - * @param atProgram The new value for the program attribute. - */ - void setProgram( xsNCName atProgram ) { *(daeStringRef*)&attrProgram = atProgram; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the glsl_param_type element. - * @return a daeSmartRef to the glsl_param_type element. - */ - const domGlsl_param_typeRef getGlsl_param_type() const { return elemGlsl_param_type; } - /** - * Gets the array element. - * @return a daeSmartRef to the array element. - */ - const domGlsl_setarray_typeRef getArray() const { return elemArray; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domGlsl_setparam_complexType() : attrRef(), attrProgram(), elemAnnotate_array(), elemGlsl_param_type(), elemArray() {} - /** - * Destructor - */ - virtual ~domGlsl_setparam_complexType() {} - /** - * Copy Constructor - */ - domGlsl_setparam_complexType( const domGlsl_setparam_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGlsl_setparam_complexType &operator=( const domGlsl_setparam_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGlsl_setparam_complexType. - */ -class domGlsl_setparam : public daeElement, public domGlsl_setparam_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLSL_SETPARAM; } - -public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a domGlsl_identifier of the ref attribute. - */ - domGlsl_identifier getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( domGlsl_identifier atRef ) { attrRef = atRef; - _validAttributeArray[0] = true; } - - /** - * Gets the program attribute. - * @return Returns a xsNCName of the program attribute. - */ - xsNCName getProgram() const { return attrProgram; } - /** - * Sets the program attribute. - * @param atProgram The new value for the program attribute. - */ - void setProgram( xsNCName atProgram ) { *(daeStringRef*)&attrProgram = atProgram; - _validAttributeArray[1] = true; } - -protected: - /** - * Constructor - */ - domGlsl_setparam() {} - /** - * Destructor - */ - virtual ~domGlsl_setparam() {} - /** - * Copy Constructor - */ - domGlsl_setparam( const domGlsl_setparam &cpy ) : daeElement(), domGlsl_setparam_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGlsl_setparam &operator=( const domGlsl_setparam &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setparam_simple.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setparam_simple.h deleted file mode 100644 index 3cf164340..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_setparam_simple.h +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGlsl_setparam_simple_h__ -#define __domGlsl_setparam_simple_h__ - -#include -#include - -#include -#include - -class domGlsl_setparam_simple_complexType -{ -protected: // Attribute - domGlsl_identifier attrRef; - -protected: // Elements - domFx_annotate_common_Array elemAnnotate_array; - domGlsl_param_typeRef elemGlsl_param_type; - -public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a domGlsl_identifier of the ref attribute. - */ - domGlsl_identifier getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( domGlsl_identifier atRef ) { attrRef = atRef; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the glsl_param_type element. - * @return a daeSmartRef to the glsl_param_type element. - */ - const domGlsl_param_typeRef getGlsl_param_type() const { return elemGlsl_param_type; } -protected: - /** - * Constructor - */ - domGlsl_setparam_simple_complexType() : attrRef(), elemAnnotate_array(), elemGlsl_param_type() {} - /** - * Destructor - */ - virtual ~domGlsl_setparam_simple_complexType() {} - /** - * Copy Constructor - */ - domGlsl_setparam_simple_complexType( const domGlsl_setparam_simple_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGlsl_setparam_simple_complexType &operator=( const domGlsl_setparam_simple_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGlsl_setparam_simple_complexType. - */ -class domGlsl_setparam_simple : public daeElement, public domGlsl_setparam_simple_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLSL_SETPARAM_SIMPLE; } - -public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a domGlsl_identifier of the ref attribute. - */ - domGlsl_identifier getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( domGlsl_identifier atRef ) { attrRef = atRef; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domGlsl_setparam_simple() {} - /** - * Destructor - */ - virtual ~domGlsl_setparam_simple() {} - /** - * Copy Constructor - */ - domGlsl_setparam_simple( const domGlsl_setparam_simple &cpy ) : daeElement(), domGlsl_setparam_simple_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGlsl_setparam_simple &operator=( const domGlsl_setparam_simple &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_surface_type.h b/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_surface_type.h deleted file mode 100644 index 66bd03fec..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domGlsl_surface_type.h +++ /dev/null @@ -1,342 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domGlsl_surface_type_h__ -#define __domGlsl_surface_type_h__ - -#include -#include - -#include -#include -#include -#include -#include - -/** - * A surface type for the GLSL profile. This surface inherits from the fx_surface_common - * type and adds the ability to programmatically generate textures. - */ -class domGlsl_surface_type_complexType : public domFx_surface_common_complexType -{ -public: - class domGenerator; - - typedef daeSmartRef domGeneratorRef; - typedef daeTArray domGenerator_Array; - -/** - * A procedural surface generator. - */ - class domGenerator : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GENERATOR; } - public: - class domName; - - typedef daeSmartRef domNameRef; - typedef daeTArray domName_Array; - -/** - * The entry symbol for the shader function. - */ - class domName : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::NAME; } - protected: // Attribute - xsNCName attrSource; - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the source attribute. - * @return Returns a xsNCName of the source attribute. - */ - xsNCName getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( xsNCName atSource ) { *(daeStringRef*)&attrSource = atSource; - _validAttributeArray[0] = true; } - - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domName() : attrSource(), _value() {} - /** - * Destructor - */ - virtual ~domName() {} - /** - * Copy Constructor - */ - domName( const domName &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domName &operator=( const domName &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements -/** - * The annotate element allows you to specify an annotation for this surface - * generator. @see domAnnotate - */ - domFx_annotate_common_Array elemAnnotate_array; -/** - * The code element allows you to embed GLSL code to use for this surface - * generator. @see domCode - */ - domFx_code_profile_Array elemCode_array; -/** - * The include element allows you to import GLSL code to use for this surface - * generator. @see domInclude - */ - domFx_include_common_Array elemInclude_array; -/** - * The entry symbol for the shader function. @see domName - */ - domNameRef elemName; -/** - * The setparam element allows you to assign a new value to a previously defined - * parameter. @see domSetparam - */ - domGlsl_setparam_simple_Array elemSetparam_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the code element array. - * @return Returns a reference to the array of code elements. - */ - domFx_code_profile_Array &getCode_array() { return elemCode_array; } - /** - * Gets the code element array. - * @return Returns a constant reference to the array of code elements. - */ - const domFx_code_profile_Array &getCode_array() const { return elemCode_array; } - /** - * Gets the include element array. - * @return Returns a reference to the array of include elements. - */ - domFx_include_common_Array &getInclude_array() { return elemInclude_array; } - /** - * Gets the include element array. - * @return Returns a constant reference to the array of include elements. - */ - const domFx_include_common_Array &getInclude_array() const { return elemInclude_array; } - /** - * Gets the name element. - * @return a daeSmartRef to the name element. - */ - const domNameRef getName() const { return elemName; } - /** - * Gets the setparam element array. - * @return Returns a reference to the array of setparam elements. - */ - domGlsl_setparam_simple_Array &getSetparam_array() { return elemSetparam_array; } - /** - * Gets the setparam element array. - * @return Returns a constant reference to the array of setparam elements. - */ - const domGlsl_setparam_simple_Array &getSetparam_array() const { return elemSetparam_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domGenerator() : elemAnnotate_array(), elemCode_array(), elemInclude_array(), elemName(), elemSetparam_array() {} - /** - * Destructor - */ - virtual ~domGenerator() {} - /** - * Copy Constructor - */ - domGenerator( const domGenerator &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGenerator &operator=( const domGenerator &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Element -/** - * A procedural surface generator. @see domGenerator - */ - domGeneratorRef elemGenerator; - -public: //Accessors and Mutators - /** - * Gets the generator element. - * @return a daeSmartRef to the generator element. - */ - const domGeneratorRef getGenerator() const { return elemGenerator; } -protected: - /** - * Constructor - */ - domGlsl_surface_type_complexType() : elemGenerator() {} - /** - * Destructor - */ - virtual ~domGlsl_surface_type_complexType() {} - /** - * Copy Constructor - */ - domGlsl_surface_type_complexType( const domGlsl_surface_type_complexType &cpy ) : domFx_surface_common_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGlsl_surface_type_complexType &operator=( const domGlsl_surface_type_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domGlsl_surface_type_complexType. - */ -class domGlsl_surface_type : public daeElement, public domGlsl_surface_type_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLSL_SURFACE_TYPE; } -protected: - /** - * Constructor - */ - domGlsl_surface_type() {} - /** - * Destructor - */ - virtual ~domGlsl_surface_type() {} - /** - * Copy Constructor - */ - domGlsl_surface_type( const domGlsl_surface_type &cpy ) : daeElement(), domGlsl_surface_type_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domGlsl_surface_type &operator=( const domGlsl_surface_type &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domIDREF_array.h b/Extras/COLLADA_DOM/include/1.4/dom/domIDREF_array.h deleted file mode 100644 index 4df132e03..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domIDREF_array.h +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domIDREF_array_h__ -#define __domIDREF_array_h__ - -#include -#include - - -/** - * The IDREF_array element declares the storage for a homogenous array of - * ID reference values. - */ -class domIDREF_array : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::IDREF_ARRAY; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The count attribute indicates the number of values in the array. Required - * attribute. - */ - domUint attrCount; - -protected: // Value - /** - * The xsIDREFS value of the text data of this element. - */ - xsIDREFS _value; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[2] = true; } - - /** - * Gets the _value array. - * @return Returns a xsIDREFS reference of the _value array. - */ - xsIDREFS &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant xsIDREFS reference of the _value array. - */ - const xsIDREFS &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const xsIDREFS &val ) { _value = val; } - -protected: - /** - * Constructor - */ - domIDREF_array() : attrId(), attrName(), attrCount(), _value() {} - /** - * Destructor - */ - virtual ~domIDREF_array() {} - /** - * Copy Constructor - */ - domIDREF_array( const domIDREF_array &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domIDREF_array &operator=( const domIDREF_array &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domImage.h b/Extras/COLLADA_DOM/include/1.4/dom/domImage.h deleted file mode 100644 index 0c31ec244..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domImage.h +++ /dev/null @@ -1,398 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domImage_h__ -#define __domImage_h__ - -#include -#include - -#include -#include - -/** - * The image element declares the storage for the graphical representation - * of an object. The image element best describes raster image data, but - * can conceivably handle other forms of imagery. The image elements allows - * for specifying an external image file with the init_from element or embed - * image data with the data element. - */ -class domImage : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::IMAGE; } -public: - class domData; - - typedef daeSmartRef domDataRef; - typedef daeTArray domData_Array; - -/** - * The data child element contains a sequence of hexadecimal encoded binary - * octets representing the embedded image data. - */ - class domData : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DATA; } - - protected: // Value - /** - * The domListOfHexBinary value of the text data of this element. - */ - domListOfHexBinary _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domListOfHexBinary reference of the _value array. - */ - domListOfHexBinary &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domListOfHexBinary reference of the _value array. - */ - const domListOfHexBinary &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domListOfHexBinary &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domData() : _value() {} - /** - * Destructor - */ - virtual ~domData() {} - /** - * Copy Constructor - */ - domData( const domData &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domData &operator=( const domData &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInit_from; - - typedef daeSmartRef domInit_fromRef; - typedef daeTArray domInit_from_Array; - -/** - * The init_from element allows you to specify an external image file to use - * for the image element. - */ - class domInit_from : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INIT_FROM; } - - protected: // Value - /** - * The xsAnyURI value of the text data of this element. - */ - xsAnyURI _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsAnyURI of the value. - */ - xsAnyURI &getValue() { return _value; } - /** - * Gets the value of this element. - * @return Returns a constant xsAnyURI of the value. - */ - const xsAnyURI &getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( const xsAnyURI &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInit_from() : _value() {} - /** - * Destructor - */ - virtual ~domInit_from() {} - /** - * Copy Constructor - */ - domInit_from( const domInit_from &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInit_from &operator=( const domInit_from &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The format attribute is a text string value that indicates the image format. - * Optional attribute. - */ - xsToken attrFormat; -/** - * The height attribute is an integer value that indicates the height of - * the image in pixel units. Optional attribute. - */ - domUint attrHeight; -/** - * The width attribute is an integer value that indicates the width of the - * image in pixel units. Optional attribute. - */ - domUint attrWidth; -/** - * The depth attribute is an integer value that indicates the depth of the - * image in pixel units. A 2-D image has a depth of 1, which is also the - * default value. Optional attribute. - */ - domUint attrDepth; - -protected: // Elements -/** - * The image element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The data child element contains a sequence of hexadecimal encoded binary - * octets representing the embedded image data. @see domData - */ - domDataRef elemData; -/** - * The init_from element allows you to specify an external image file to use - * for the image element. @see domInit_from - */ - domInit_fromRef elemInit_from; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the format attribute. - * @return Returns a xsToken of the format attribute. - */ - xsToken getFormat() const { return attrFormat; } - /** - * Sets the format attribute. - * @param atFormat The new value for the format attribute. - */ - void setFormat( xsToken atFormat ) { *(daeStringRef*)&attrFormat = atFormat; - _validAttributeArray[2] = true; } - - /** - * Gets the height attribute. - * @return Returns a domUint of the height attribute. - */ - domUint getHeight() const { return attrHeight; } - /** - * Sets the height attribute. - * @param atHeight The new value for the height attribute. - */ - void setHeight( domUint atHeight ) { attrHeight = atHeight; - _validAttributeArray[3] = true; } - - /** - * Gets the width attribute. - * @return Returns a domUint of the width attribute. - */ - domUint getWidth() const { return attrWidth; } - /** - * Sets the width attribute. - * @param atWidth The new value for the width attribute. - */ - void setWidth( domUint atWidth ) { attrWidth = atWidth; - _validAttributeArray[4] = true; } - - /** - * Gets the depth attribute. - * @return Returns a domUint of the depth attribute. - */ - domUint getDepth() const { return attrDepth; } - /** - * Sets the depth attribute. - * @param atDepth The new value for the depth attribute. - */ - void setDepth( domUint atDepth ) { attrDepth = atDepth; - _validAttributeArray[5] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the data element. - * @return a daeSmartRef to the data element. - */ - const domDataRef getData() const { return elemData; } - /** - * Gets the init_from element. - * @return a daeSmartRef to the init_from element. - */ - const domInit_fromRef getInit_from() const { return elemInit_from; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domImage() : attrId(), attrName(), attrFormat(), attrHeight(), attrWidth(), attrDepth(), elemAsset(), elemData(), elemInit_from(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domImage() {} - /** - * Copy Constructor - */ - domImage( const domImage &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domImage &operator=( const domImage &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInputGlobal.h b/Extras/COLLADA_DOM/include/1.4/dom/domInputGlobal.h deleted file mode 100644 index 72f5d2632..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInputGlobal.h +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInputGlobal_h__ -#define __domInputGlobal_h__ - -#include -#include - - -/** - * The InputGlobal type is used to represent inputs that can reference external - * resources. - */ -class domInputGlobal_complexType -{ -protected: // Attributes -/** - * The semantic attribute is the user-defined meaning of the input connection. - * Required attribute. - */ - xsNMTOKEN attrSemantic; -/** - * The source attribute indicates the location of the data source. Required - * attribute. - */ - xsAnyURI attrSource; - - -public: //Accessors and Mutators - /** - * Gets the semantic attribute. - * @return Returns a xsNMTOKEN of the semantic attribute. - */ - xsNMTOKEN getSemantic() const { return attrSemantic; } - /** - * Sets the semantic attribute. - * @param atSemantic The new value for the semantic attribute. - */ - void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic; } - - /** - * Gets the source attribute. - * @return Returns a xsAnyURI reference of the source attribute. - */ - xsAnyURI &getSource() { return attrSource; } - /** - * Gets the source attribute. - * @return Returns a constant xsAnyURI reference of the source attribute. - */ - const xsAnyURI &getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( const xsAnyURI &atSource ) { attrSource = atSource; } - -protected: - /** - * Constructor - */ - domInputGlobal_complexType() : attrSemantic(), attrSource() {} - /** - * Destructor - */ - virtual ~domInputGlobal_complexType() {} - /** - * Copy Constructor - */ - domInputGlobal_complexType( const domInputGlobal_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInputGlobal_complexType &operator=( const domInputGlobal_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domInputGlobal_complexType. - */ -class domInputGlobal : public daeElement, public domInputGlobal_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INPUTGLOBAL; } - -public: //Accessors and Mutators - /** - * Gets the semantic attribute. - * @return Returns a xsNMTOKEN of the semantic attribute. - */ - xsNMTOKEN getSemantic() const { return attrSemantic; } - /** - * Sets the semantic attribute. - * @param atSemantic The new value for the semantic attribute. - */ - void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic; - _validAttributeArray[0] = true; } - - /** - * Gets the source attribute. - * @return Returns a xsAnyURI reference of the source attribute. - */ - xsAnyURI &getSource() { return attrSource; } - /** - * Gets the source attribute. - * @return Returns a constant xsAnyURI reference of the source attribute. - */ - const xsAnyURI &getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( const xsAnyURI &atSource ) { attrSource = atSource; - _validAttributeArray[1] = true; } - -protected: - /** - * Constructor - */ - domInputGlobal() {} - /** - * Destructor - */ - virtual ~domInputGlobal() {} - /** - * Copy Constructor - */ - domInputGlobal( const domInputGlobal &cpy ) : daeElement(), domInputGlobal_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInputGlobal &operator=( const domInputGlobal &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInputLocal.h b/Extras/COLLADA_DOM/include/1.4/dom/domInputLocal.h deleted file mode 100644 index 4443870b7..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInputLocal.h +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInputLocal_h__ -#define __domInputLocal_h__ - -#include -#include - - -/** - * The InputLocal type is used to represent inputs that can only reference - * resources declared in the same document. - */ -class domInputLocal_complexType -{ -protected: // Attributes -/** - * The semantic attribute is the user-defined meaning of the input connection. - * Required attribute. - */ - xsNMTOKEN attrSemantic; -/** - * The source attribute indicates the location of the data source. Required - * attribute. - */ - domURIFragmentType attrSource; - - -public: //Accessors and Mutators - /** - * Gets the semantic attribute. - * @return Returns a xsNMTOKEN of the semantic attribute. - */ - xsNMTOKEN getSemantic() const { return attrSemantic; } - /** - * Sets the semantic attribute. - * @param atSemantic The new value for the semantic attribute. - */ - void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic; } - - /** - * Gets the source attribute. - * @return Returns a domURIFragmentType reference of the source attribute. - */ - domURIFragmentType &getSource() { return attrSource; } - /** - * Gets the source attribute. - * @return Returns a constant domURIFragmentType reference of the source attribute. - */ - const domURIFragmentType &getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( const domURIFragmentType &atSource ) { attrSource = atSource; } - -protected: - /** - * Constructor - */ - domInputLocal_complexType() : attrSemantic(), attrSource() {} - /** - * Destructor - */ - virtual ~domInputLocal_complexType() {} - /** - * Copy Constructor - */ - domInputLocal_complexType( const domInputLocal_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInputLocal_complexType &operator=( const domInputLocal_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domInputLocal_complexType. - */ -class domInputLocal : public daeElement, public domInputLocal_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INPUTLOCAL; } - -public: //Accessors and Mutators - /** - * Gets the semantic attribute. - * @return Returns a xsNMTOKEN of the semantic attribute. - */ - xsNMTOKEN getSemantic() const { return attrSemantic; } - /** - * Sets the semantic attribute. - * @param atSemantic The new value for the semantic attribute. - */ - void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic; - _validAttributeArray[0] = true; } - - /** - * Gets the source attribute. - * @return Returns a domURIFragmentType reference of the source attribute. - */ - domURIFragmentType &getSource() { return attrSource; } - /** - * Gets the source attribute. - * @return Returns a constant domURIFragmentType reference of the source attribute. - */ - const domURIFragmentType &getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( const domURIFragmentType &atSource ) { attrSource = atSource; - _validAttributeArray[1] = true; } - -protected: - /** - * Constructor - */ - domInputLocal() {} - /** - * Destructor - */ - virtual ~domInputLocal() {} - /** - * Copy Constructor - */ - domInputLocal( const domInputLocal &cpy ) : daeElement(), domInputLocal_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInputLocal &operator=( const domInputLocal &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInputLocalOffset.h b/Extras/COLLADA_DOM/include/1.4/dom/domInputLocalOffset.h deleted file mode 100644 index 625a57da2..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInputLocalOffset.h +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInputLocalOffset_h__ -#define __domInputLocalOffset_h__ - -#include -#include - - -/** - * The InputLocalOffset type is used to represent indexed inputs that can - * only reference resources declared in the same document. - */ -class domInputLocalOffset_complexType -{ -protected: // Attributes -/** - * The offset attribute represents the offset into the list of indices. - * If two input elements share the same offset, they will be indexed the - * same. This works as a simple form of compression for the list of indices - * as well as defining the order the inputs should be used in. Required attribute. - */ - domUint attrOffset; -/** - * The semantic attribute is the user-defined meaning of the input connection. - * Required attribute. - */ - xsNMTOKEN attrSemantic; -/** - * The source attribute indicates the location of the data source. Required - * attribute. - */ - domURIFragmentType attrSource; -/** - * The set attribute indicates which inputs should be grouped together as - * a single set. This is helpful when multiple inputs share the same semantics. - */ - domUint attrSet; - - -public: //Accessors and Mutators - /** - * Gets the offset attribute. - * @return Returns a domUint of the offset attribute. - */ - domUint getOffset() const { return attrOffset; } - /** - * Sets the offset attribute. - * @param atOffset The new value for the offset attribute. - */ - void setOffset( domUint atOffset ) { attrOffset = atOffset; } - - /** - * Gets the semantic attribute. - * @return Returns a xsNMTOKEN of the semantic attribute. - */ - xsNMTOKEN getSemantic() const { return attrSemantic; } - /** - * Sets the semantic attribute. - * @param atSemantic The new value for the semantic attribute. - */ - void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic; } - - /** - * Gets the source attribute. - * @return Returns a domURIFragmentType reference of the source attribute. - */ - domURIFragmentType &getSource() { return attrSource; } - /** - * Gets the source attribute. - * @return Returns a constant domURIFragmentType reference of the source attribute. - */ - const domURIFragmentType &getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( const domURIFragmentType &atSource ) { attrSource = atSource; } - - /** - * Gets the set attribute. - * @return Returns a domUint of the set attribute. - */ - domUint getSet() const { return attrSet; } - /** - * Sets the set attribute. - * @param atSet The new value for the set attribute. - */ - void setSet( domUint atSet ) { attrSet = atSet; } - -protected: - /** - * Constructor - */ - domInputLocalOffset_complexType() : attrOffset(), attrSemantic(), attrSource(), attrSet() {} - /** - * Destructor - */ - virtual ~domInputLocalOffset_complexType() {} - /** - * Copy Constructor - */ - domInputLocalOffset_complexType( const domInputLocalOffset_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInputLocalOffset_complexType &operator=( const domInputLocalOffset_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domInputLocalOffset_complexType. - */ -class domInputLocalOffset : public daeElement, public domInputLocalOffset_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INPUTLOCALOFFSET; } - -public: //Accessors and Mutators - /** - * Gets the offset attribute. - * @return Returns a domUint of the offset attribute. - */ - domUint getOffset() const { return attrOffset; } - /** - * Sets the offset attribute. - * @param atOffset The new value for the offset attribute. - */ - void setOffset( domUint atOffset ) { attrOffset = atOffset; - _validAttributeArray[0] = true; } - - /** - * Gets the semantic attribute. - * @return Returns a xsNMTOKEN of the semantic attribute. - */ - xsNMTOKEN getSemantic() const { return attrSemantic; } - /** - * Sets the semantic attribute. - * @param atSemantic The new value for the semantic attribute. - */ - void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic; - _validAttributeArray[1] = true; } - - /** - * Gets the source attribute. - * @return Returns a domURIFragmentType reference of the source attribute. - */ - domURIFragmentType &getSource() { return attrSource; } - /** - * Gets the source attribute. - * @return Returns a constant domURIFragmentType reference of the source attribute. - */ - const domURIFragmentType &getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( const domURIFragmentType &atSource ) { attrSource = atSource; - _validAttributeArray[2] = true; } - - /** - * Gets the set attribute. - * @return Returns a domUint of the set attribute. - */ - domUint getSet() const { return attrSet; } - /** - * Sets the set attribute. - * @param atSet The new value for the set attribute. - */ - void setSet( domUint atSet ) { attrSet = atSet; - _validAttributeArray[3] = true; } - -protected: - /** - * Constructor - */ - domInputLocalOffset() {} - /** - * Destructor - */ - virtual ~domInputLocalOffset() {} - /** - * Copy Constructor - */ - domInputLocalOffset( const domInputLocalOffset &cpy ) : daeElement(), domInputLocalOffset_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInputLocalOffset &operator=( const domInputLocalOffset &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstanceWithExtra.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstanceWithExtra.h deleted file mode 100644 index 4929cb039..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInstanceWithExtra.h +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInstanceWithExtra_h__ -#define __domInstanceWithExtra_h__ - -#include -#include - -#include - -/** - * The InstanceWithExtra type is used for all generic instance elements. A - * generic instance element is one which does not have any specific child - * elements declared. - */ -class domInstanceWithExtra_complexType -{ -protected: // Attributes -/** - * The url attribute refers to resource to instantiate. This may refer to - * a local resource using a relative URL fragment identifier that begins - * with the “#†character. The url attribute may refer to an external - * resource using an absolute or relative URL. - */ - xsAnyURI attrUrl; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Element -/** - * The extra element may occur any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the url attribute. - * @return Returns a xsAnyURI reference of the url attribute. - */ - xsAnyURI &getUrl() { return attrUrl; } - /** - * Gets the url attribute. - * @return Returns a constant xsAnyURI reference of the url attribute. - */ - const xsAnyURI &getUrl() const { return attrUrl; } - /** - * Sets the url attribute. - * @param atUrl The new value for the url attribute. - */ - void setUrl( const xsAnyURI &atUrl ) { attrUrl = atUrl; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; } - - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domInstanceWithExtra_complexType() : attrUrl(), attrSid(), attrName(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domInstanceWithExtra_complexType() {} - /** - * Copy Constructor - */ - domInstanceWithExtra_complexType( const domInstanceWithExtra_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstanceWithExtra_complexType &operator=( const domInstanceWithExtra_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domInstanceWithExtra_complexType. - */ -class domInstanceWithExtra : public daeElement, public domInstanceWithExtra_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCEWITHEXTRA; } - -public: //Accessors and Mutators - /** - * Gets the url attribute. - * @return Returns a xsAnyURI reference of the url attribute. - */ - xsAnyURI &getUrl() { return attrUrl; } - /** - * Gets the url attribute. - * @return Returns a constant xsAnyURI reference of the url attribute. - */ - const xsAnyURI &getUrl() const { return attrUrl; } - /** - * Sets the url attribute. - * @param atUrl The new value for the url attribute. - */ - void setUrl( const xsAnyURI &atUrl ) { attrUrl = atUrl; - _validAttributeArray[0] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[1] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[2] = true; } - -protected: - /** - * Constructor - */ - domInstanceWithExtra() {} - /** - * Destructor - */ - virtual ~domInstanceWithExtra() {} - /** - * Copy Constructor - */ - domInstanceWithExtra( const domInstanceWithExtra &cpy ) : daeElement(), domInstanceWithExtra_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstanceWithExtra &operator=( const domInstanceWithExtra &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_camera.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_camera.h deleted file mode 100644 index d553adeb1..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_camera.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInstance_camera_h__ -#define __domInstance_camera_h__ - -#include -#include - -#include - -/** - * The instance_camera element declares the instantiation of a COLLADA camera - * resource. - */ -class domInstance_camera : public daeElement, public domInstanceWithExtra_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_CAMERA; } - -protected: - /** - * Constructor - */ - domInstance_camera() {} - /** - * Destructor - */ - virtual ~domInstance_camera() {} - /** - * Copy Constructor - */ - domInstance_camera( const domInstance_camera &cpy ) : daeElement(), domInstanceWithExtra_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstance_camera &operator=( const domInstance_camera &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_controller.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_controller.h deleted file mode 100644 index 208cd3da7..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_controller.h +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInstance_controller_h__ -#define __domInstance_controller_h__ - -#include -#include - -#include -#include - -/** - * The instance_controller element declares the instantiation of a COLLADA - * controller resource. - */ -class domInstance_controller : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_CONTROLLER; } -public: - class domSkeleton; - - typedef daeSmartRef domSkeletonRef; - typedef daeTArray domSkeleton_Array; - -/** - * The skeleton element is used to indicate where a skin controller is to - * start to search for the joint nodes it needs. This element is meaningless - * for morph controllers. - */ - class domSkeleton : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SKELETON; } - - protected: // Value - /** - * The xsAnyURI value of the text data of this element. - */ - xsAnyURI _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsAnyURI of the value. - */ - xsAnyURI &getValue() { return _value; } - /** - * Gets the value of this element. - * @return Returns a constant xsAnyURI of the value. - */ - const xsAnyURI &getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( const xsAnyURI &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domSkeleton() : _value() {} - /** - * Destructor - */ - virtual ~domSkeleton() {} - /** - * Copy Constructor - */ - domSkeleton( const domSkeleton &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSkeleton &operator=( const domSkeleton &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The url attribute refers to resource. This may refer to a local resource - * using a relative URL fragment identifier that begins with the “#†- * character. The url attribute may refer to an external resource using an - * absolute or relative URL. - */ - xsAnyURI attrUrl; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The skeleton element is used to indicate where a skin controller is to - * start to search for the joint nodes it needs. This element is meaningless - * for morph controllers. @see domSkeleton - */ - domSkeleton_Array elemSkeleton_array; -/** - * Bind a specific material to a piece of geometry, binding varying and uniform - * parameters at the same time. @see domBind_material - */ - domBind_materialRef elemBind_material; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the url attribute. - * @return Returns a xsAnyURI reference of the url attribute. - */ - xsAnyURI &getUrl() { return attrUrl; } - /** - * Gets the url attribute. - * @return Returns a constant xsAnyURI reference of the url attribute. - */ - const xsAnyURI &getUrl() const { return attrUrl; } - /** - * Sets the url attribute. - * @param atUrl The new value for the url attribute. - */ - void setUrl( const xsAnyURI &atUrl ) { attrUrl = atUrl; - _validAttributeArray[0] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[1] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[2] = true; } - - /** - * Gets the skeleton element array. - * @return Returns a reference to the array of skeleton elements. - */ - domSkeleton_Array &getSkeleton_array() { return elemSkeleton_array; } - /** - * Gets the skeleton element array. - * @return Returns a constant reference to the array of skeleton elements. - */ - const domSkeleton_Array &getSkeleton_array() const { return elemSkeleton_array; } - /** - * Gets the bind_material element. - * @return a daeSmartRef to the bind_material element. - */ - const domBind_materialRef getBind_material() const { return elemBind_material; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domInstance_controller() : attrUrl(), attrSid(), attrName(), elemSkeleton_array(), elemBind_material(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domInstance_controller() {} - /** - * Copy Constructor - */ - domInstance_controller( const domInstance_controller &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstance_controller &operator=( const domInstance_controller &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_effect.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_effect.h deleted file mode 100644 index e38f68b73..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_effect.h +++ /dev/null @@ -1,358 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInstance_effect_h__ -#define __domInstance_effect_h__ - -#include -#include - -#include -#include - -/** - * The instance_effect element declares the instantiation of a COLLADA effect - * resource. - */ -class domInstance_effect : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_EFFECT; } -public: - class domTechnique_hint; - - typedef daeSmartRef domTechnique_hintRef; - typedef daeTArray domTechnique_hint_Array; - -/** - * Add a hint for a platform of which technique to use in this effect. - */ - class domTechnique_hint : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_HINT; } - protected: // Attributes -/** - * A platform defines a string that specifies which platform this is hint - * is aimed for. - */ - xsNCName attrPlatform; -/** - * A profile defines a string that specifies which API profile this is hint - * is aimed for. - */ - xsNCName attrProfile; -/** - * A reference to the technique to use for the specified platform. - */ - xsNCName attrRef; - - - public: //Accessors and Mutators - /** - * Gets the platform attribute. - * @return Returns a xsNCName of the platform attribute. - */ - xsNCName getPlatform() const { return attrPlatform; } - /** - * Sets the platform attribute. - * @param atPlatform The new value for the platform attribute. - */ - void setPlatform( xsNCName atPlatform ) { *(daeStringRef*)&attrPlatform = atPlatform; - _validAttributeArray[0] = true; } - - /** - * Gets the profile attribute. - * @return Returns a xsNCName of the profile attribute. - */ - xsNCName getProfile() const { return attrProfile; } - /** - * Sets the profile attribute. - * @param atProfile The new value for the profile attribute. - */ - void setProfile( xsNCName atProfile ) { *(daeStringRef*)&attrProfile = atProfile; - _validAttributeArray[1] = true; } - - /** - * Gets the ref attribute. - * @return Returns a xsNCName of the ref attribute. - */ - xsNCName getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( xsNCName atRef ) { *(daeStringRef*)&attrRef = atRef; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domTechnique_hint() : attrPlatform(), attrProfile(), attrRef() {} - /** - * Destructor - */ - virtual ~domTechnique_hint() {} - /** - * Copy Constructor - */ - domTechnique_hint( const domTechnique_hint &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique_hint &operator=( const domTechnique_hint &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSetparam; - - typedef daeSmartRef domSetparamRef; - typedef daeTArray domSetparam_Array; - -/** - * Assigns a new value to a previously defined parameter - */ - class domSetparam : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SETPARAM; } - protected: // Attribute - xsToken attrRef; - - protected: // Element - domFx_basic_type_commonRef elemFx_basic_type_common; - - public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a xsToken of the ref attribute. - */ - xsToken getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( xsToken atRef ) { *(daeStringRef*)&attrRef = atRef; - _validAttributeArray[0] = true; } - - /** - * Gets the fx_basic_type_common element. - * @return a daeSmartRef to the fx_basic_type_common element. - */ - const domFx_basic_type_commonRef getFx_basic_type_common() const { return elemFx_basic_type_common; } - protected: - /** - * Constructor - */ - domSetparam() : attrRef(), elemFx_basic_type_common() {} - /** - * Destructor - */ - virtual ~domSetparam() {} - /** - * Copy Constructor - */ - domSetparam( const domSetparam &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSetparam &operator=( const domSetparam &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The url attribute refers to resource. This may refer to a local resource - * using a relative URL fragment identifier that begins with the “#†- * character. The url attribute may refer to an external resource using an - * absolute or relative URL. - */ - xsAnyURI attrUrl; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * Add a hint for a platform of which technique to use in this effect. @see - * domTechnique_hint - */ - domTechnique_hint_Array elemTechnique_hint_array; -/** - * Assigns a new value to a previously defined parameter @see domSetparam - */ - domSetparam_Array elemSetparam_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the url attribute. - * @return Returns a xsAnyURI reference of the url attribute. - */ - xsAnyURI &getUrl() { return attrUrl; } - /** - * Gets the url attribute. - * @return Returns a constant xsAnyURI reference of the url attribute. - */ - const xsAnyURI &getUrl() const { return attrUrl; } - /** - * Sets the url attribute. - * @param atUrl The new value for the url attribute. - */ - void setUrl( const xsAnyURI &atUrl ) { attrUrl = atUrl; - _validAttributeArray[0] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[1] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[2] = true; } - - /** - * Gets the technique_hint element array. - * @return Returns a reference to the array of technique_hint elements. - */ - domTechnique_hint_Array &getTechnique_hint_array() { return elemTechnique_hint_array; } - /** - * Gets the technique_hint element array. - * @return Returns a constant reference to the array of technique_hint elements. - */ - const domTechnique_hint_Array &getTechnique_hint_array() const { return elemTechnique_hint_array; } - /** - * Gets the setparam element array. - * @return Returns a reference to the array of setparam elements. - */ - domSetparam_Array &getSetparam_array() { return elemSetparam_array; } - /** - * Gets the setparam element array. - * @return Returns a constant reference to the array of setparam elements. - */ - const domSetparam_Array &getSetparam_array() const { return elemSetparam_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domInstance_effect() : attrUrl(), attrSid(), attrName(), elemTechnique_hint_array(), elemSetparam_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domInstance_effect() {} - /** - * Copy Constructor - */ - domInstance_effect( const domInstance_effect &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstance_effect &operator=( const domInstance_effect &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_force_field.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_force_field.h deleted file mode 100644 index 24769217b..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_force_field.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInstance_force_field_h__ -#define __domInstance_force_field_h__ - -#include -#include - -#include - -/** - * The instance_force_field element declares the instantiation of a COLLADA - * force_field resource. - */ -class domInstance_force_field : public daeElement, public domInstanceWithExtra_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_FORCE_FIELD; } - -protected: - /** - * Constructor - */ - domInstance_force_field() {} - /** - * Destructor - */ - virtual ~domInstance_force_field() {} - /** - * Copy Constructor - */ - domInstance_force_field( const domInstance_force_field &cpy ) : daeElement(), domInstanceWithExtra_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstance_force_field &operator=( const domInstance_force_field &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_geometry.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_geometry.h deleted file mode 100644 index b87c82e92..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_geometry.h +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInstance_geometry_h__ -#define __domInstance_geometry_h__ - -#include -#include - -#include -#include - -/** - * The instance_geometry element declares the instantiation of a COLLADA geometry - * resource. - */ -class domInstance_geometry : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_GEOMETRY; } -protected: // Attributes -/** - * The url attribute refers to resource. This may refer to a local resource - * using a relative URL fragment identifier that begins with the “#†- * character. The url attribute may refer to an external resource using an - * absolute or relative URL. - */ - xsAnyURI attrUrl; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * Bind a specific material to a piece of geometry, binding varying and uniform - * parameters at the same time. @see domBind_material - */ - domBind_materialRef elemBind_material; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the url attribute. - * @return Returns a xsAnyURI reference of the url attribute. - */ - xsAnyURI &getUrl() { return attrUrl; } - /** - * Gets the url attribute. - * @return Returns a constant xsAnyURI reference of the url attribute. - */ - const xsAnyURI &getUrl() const { return attrUrl; } - /** - * Sets the url attribute. - * @param atUrl The new value for the url attribute. - */ - void setUrl( const xsAnyURI &atUrl ) { attrUrl = atUrl; - _validAttributeArray[0] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[1] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[2] = true; } - - /** - * Gets the bind_material element. - * @return a daeSmartRef to the bind_material element. - */ - const domBind_materialRef getBind_material() const { return elemBind_material; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domInstance_geometry() : attrUrl(), attrSid(), attrName(), elemBind_material(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domInstance_geometry() {} - /** - * Copy Constructor - */ - domInstance_geometry( const domInstance_geometry &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstance_geometry &operator=( const domInstance_geometry &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_light.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_light.h deleted file mode 100644 index 7f050fd6b..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_light.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInstance_light_h__ -#define __domInstance_light_h__ - -#include -#include - -#include - -/** - * The instance_light element declares the instantiation of a COLLADA light - * resource. - */ -class domInstance_light : public daeElement, public domInstanceWithExtra_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_LIGHT; } - -protected: - /** - * Constructor - */ - domInstance_light() {} - /** - * Destructor - */ - virtual ~domInstance_light() {} - /** - * Copy Constructor - */ - domInstance_light( const domInstance_light &cpy ) : daeElement(), domInstanceWithExtra_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstance_light &operator=( const domInstance_light &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_material.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_material.h deleted file mode 100644 index ba46e4342..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_material.h +++ /dev/null @@ -1,386 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInstance_material_h__ -#define __domInstance_material_h__ - -#include -#include - -#include - -/** - * The instance_material element declares the instantiation of a COLLADA material - * resource. - */ -class domInstance_material : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_MATERIAL; } -public: - class domBind; - - typedef daeSmartRef domBindRef; - typedef daeTArray domBind_Array; - -/** - * The bind element binds values to effect parameters upon instantiation. - */ - class domBind : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BIND; } - protected: // Attributes -/** - * The semantic attribute specifies which effect parameter to bind. - */ - xsNCName attrSemantic; -/** - * The target attribute specifies the location of the value to bind to the - * specified semantic. This text string is a path-name following a simple - * syntax described in the “Addressing Syntax†section. - */ - xsToken attrTarget; - - - public: //Accessors and Mutators - /** - * Gets the semantic attribute. - * @return Returns a xsNCName of the semantic attribute. - */ - xsNCName getSemantic() const { return attrSemantic; } - /** - * Sets the semantic attribute. - * @param atSemantic The new value for the semantic attribute. - */ - void setSemantic( xsNCName atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic; - _validAttributeArray[0] = true; } - - /** - * Gets the target attribute. - * @return Returns a xsToken of the target attribute. - */ - xsToken getTarget() const { return attrTarget; } - /** - * Sets the target attribute. - * @param atTarget The new value for the target attribute. - */ - void setTarget( xsToken atTarget ) { *(daeStringRef*)&attrTarget = atTarget; - _validAttributeArray[1] = true; } - - protected: - /** - * Constructor - */ - domBind() : attrSemantic(), attrTarget() {} - /** - * Destructor - */ - virtual ~domBind() {} - /** - * Copy Constructor - */ - domBind( const domBind &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBind &operator=( const domBind &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBind_vertex_input; - - typedef daeSmartRef domBind_vertex_inputRef; - typedef daeTArray domBind_vertex_input_Array; - -/** - * The bind_vertex_input element binds vertex inputs to effect parameters - * upon instantiation. - */ - class domBind_vertex_input : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BIND_VERTEX_INPUT; } - protected: // Attributes -/** - * The semantic attribute specifies which effect parameter to bind. - */ - xsNCName attrSemantic; -/** - * The input_semantic attribute specifies which input semantic to bind. - */ - xsNCName attrInput_semantic; -/** - * The input_set attribute specifies which input set to bind. - */ - domUint attrInput_set; - - - public: //Accessors and Mutators - /** - * Gets the semantic attribute. - * @return Returns a xsNCName of the semantic attribute. - */ - xsNCName getSemantic() const { return attrSemantic; } - /** - * Sets the semantic attribute. - * @param atSemantic The new value for the semantic attribute. - */ - void setSemantic( xsNCName atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic; - _validAttributeArray[0] = true; } - - /** - * Gets the input_semantic attribute. - * @return Returns a xsNCName of the input_semantic attribute. - */ - xsNCName getInput_semantic() const { return attrInput_semantic; } - /** - * Sets the input_semantic attribute. - * @param atInput_semantic The new value for the input_semantic attribute. - */ - void setInput_semantic( xsNCName atInput_semantic ) { *(daeStringRef*)&attrInput_semantic = atInput_semantic; - _validAttributeArray[1] = true; } - - /** - * Gets the input_set attribute. - * @return Returns a domUint of the input_set attribute. - */ - domUint getInput_set() const { return attrInput_set; } - /** - * Sets the input_set attribute. - * @param atInput_set The new value for the input_set attribute. - */ - void setInput_set( domUint atInput_set ) { attrInput_set = atInput_set; - _validAttributeArray[2] = true; } - - protected: - /** - * Constructor - */ - domBind_vertex_input() : attrSemantic(), attrInput_semantic(), attrInput_set() {} - /** - * Destructor - */ - virtual ~domBind_vertex_input() {} - /** - * Copy Constructor - */ - domBind_vertex_input( const domBind_vertex_input &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBind_vertex_input &operator=( const domBind_vertex_input &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The symbol attribute specifies which symbol defined from within the geometry - * this material binds to. - */ - xsNCName attrSymbol; -/** - * The target attribute specifies the URL of the location of the object to - * instantiate. - */ - xsAnyURI attrTarget; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The bind element binds values to effect parameters upon instantiation. - * @see domBind - */ - domBind_Array elemBind_array; -/** - * The bind_vertex_input element binds vertex inputs to effect parameters - * upon instantiation. @see domBind_vertex_input - */ - domBind_vertex_input_Array elemBind_vertex_input_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the symbol attribute. - * @return Returns a xsNCName of the symbol attribute. - */ - xsNCName getSymbol() const { return attrSymbol; } - /** - * Sets the symbol attribute. - * @param atSymbol The new value for the symbol attribute. - */ - void setSymbol( xsNCName atSymbol ) { *(daeStringRef*)&attrSymbol = atSymbol; - _validAttributeArray[0] = true; } - - /** - * Gets the target attribute. - * @return Returns a xsAnyURI reference of the target attribute. - */ - xsAnyURI &getTarget() { return attrTarget; } - /** - * Gets the target attribute. - * @return Returns a constant xsAnyURI reference of the target attribute. - */ - const xsAnyURI &getTarget() const { return attrTarget; } - /** - * Sets the target attribute. - * @param atTarget The new value for the target attribute. - */ - void setTarget( const xsAnyURI &atTarget ) { attrTarget = atTarget; - _validAttributeArray[1] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[2] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[3] = true; } - - /** - * Gets the bind element array. - * @return Returns a reference to the array of bind elements. - */ - domBind_Array &getBind_array() { return elemBind_array; } - /** - * Gets the bind element array. - * @return Returns a constant reference to the array of bind elements. - */ - const domBind_Array &getBind_array() const { return elemBind_array; } - /** - * Gets the bind_vertex_input element array. - * @return Returns a reference to the array of bind_vertex_input elements. - */ - domBind_vertex_input_Array &getBind_vertex_input_array() { return elemBind_vertex_input_array; } - /** - * Gets the bind_vertex_input element array. - * @return Returns a constant reference to the array of bind_vertex_input elements. - */ - const domBind_vertex_input_Array &getBind_vertex_input_array() const { return elemBind_vertex_input_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domInstance_material() : attrSymbol(), attrTarget(), attrSid(), attrName(), elemBind_array(), elemBind_vertex_input_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domInstance_material() {} - /** - * Copy Constructor - */ - domInstance_material( const domInstance_material &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstance_material &operator=( const domInstance_material &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_node.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_node.h deleted file mode 100644 index cd1ea2b19..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_node.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInstance_node_h__ -#define __domInstance_node_h__ - -#include -#include - -#include - -/** - * The instance_node element declares the instantiation of a COLLADA node - * resource. - */ -class domInstance_node : public daeElement, public domInstanceWithExtra_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_NODE; } - -protected: - /** - * Constructor - */ - domInstance_node() {} - /** - * Destructor - */ - virtual ~domInstance_node() {} - /** - * Copy Constructor - */ - domInstance_node( const domInstance_node &cpy ) : daeElement(), domInstanceWithExtra_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstance_node &operator=( const domInstance_node &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_physics_material.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_physics_material.h deleted file mode 100644 index 8e086c78e..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_physics_material.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInstance_physics_material_h__ -#define __domInstance_physics_material_h__ - -#include -#include - -#include - -/** - * The instance_physics_material element declares the instantiation of a COLLADA - * physics_material resource. - */ -class domInstance_physics_material : public daeElement, public domInstanceWithExtra_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_PHYSICS_MATERIAL; } - -protected: - /** - * Constructor - */ - domInstance_physics_material() {} - /** - * Destructor - */ - virtual ~domInstance_physics_material() {} - /** - * Copy Constructor - */ - domInstance_physics_material( const domInstance_physics_material &cpy ) : daeElement(), domInstanceWithExtra_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstance_physics_material &operator=( const domInstance_physics_material &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_physics_model.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_physics_model.h deleted file mode 100644 index 81a1c8b02..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_physics_model.h +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInstance_physics_model_h__ -#define __domInstance_physics_model_h__ - -#include -#include - -#include -#include -#include -#include - -/** - * This element allows instancing physics model within another physics model, - * or in a physics scene. - */ -class domInstance_physics_model : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_PHYSICS_MODEL; } -protected: // Attributes -/** - * The url attribute refers to resource. This may refer to a local resource - * using a relative URL fragment identifier that begins with the “#†- * character. The url attribute may refer to an external resource using an - * absolute or relative URL. - */ - xsAnyURI attrUrl; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The parent attribute points to the id of a node in the visual scene. This - * allows a physics model to be instantiated under a specific transform node, - * which will dictate the initial position and orientation, and could be - * animated to influence kinematic rigid bodies. - */ - xsAnyURI attrParent; - -protected: // Elements -/** - * The instance_physics_model element may instance any number of force_field - * elements. @see domInstance_force_field - */ - domInstance_force_field_Array elemInstance_force_field_array; -/** - * The instance_physics_model element may instance any number of rigid_body - * elements. @see domInstance_rigid_body - */ - domInstance_rigid_body_Array elemInstance_rigid_body_array; -/** - * The instance_physics_model element may instance any number of rigid_constraint - * elements. @see domInstance_rigid_constraint - */ - domInstance_rigid_constraint_Array elemInstance_rigid_constraint_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the url attribute. - * @return Returns a xsAnyURI reference of the url attribute. - */ - xsAnyURI &getUrl() { return attrUrl; } - /** - * Gets the url attribute. - * @return Returns a constant xsAnyURI reference of the url attribute. - */ - const xsAnyURI &getUrl() const { return attrUrl; } - /** - * Sets the url attribute. - * @param atUrl The new value for the url attribute. - */ - void setUrl( const xsAnyURI &atUrl ) { attrUrl = atUrl; - _validAttributeArray[0] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[1] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[2] = true; } - - /** - * Gets the parent attribute. - * @return Returns a xsAnyURI reference of the parent attribute. - */ - xsAnyURI &getParent() { return attrParent; } - /** - * Gets the parent attribute. - * @return Returns a constant xsAnyURI reference of the parent attribute. - */ - const xsAnyURI &getParent() const { return attrParent; } - /** - * Sets the parent attribute. - * @param atParent The new value for the parent attribute. - */ - void setParent( const xsAnyURI &atParent ) { attrParent = atParent; - _validAttributeArray[3] = true; } - - /** - * Gets the instance_force_field element array. - * @return Returns a reference to the array of instance_force_field elements. - */ - domInstance_force_field_Array &getInstance_force_field_array() { return elemInstance_force_field_array; } - /** - * Gets the instance_force_field element array. - * @return Returns a constant reference to the array of instance_force_field elements. - */ - const domInstance_force_field_Array &getInstance_force_field_array() const { return elemInstance_force_field_array; } - /** - * Gets the instance_rigid_body element array. - * @return Returns a reference to the array of instance_rigid_body elements. - */ - domInstance_rigid_body_Array &getInstance_rigid_body_array() { return elemInstance_rigid_body_array; } - /** - * Gets the instance_rigid_body element array. - * @return Returns a constant reference to the array of instance_rigid_body elements. - */ - const domInstance_rigid_body_Array &getInstance_rigid_body_array() const { return elemInstance_rigid_body_array; } - /** - * Gets the instance_rigid_constraint element array. - * @return Returns a reference to the array of instance_rigid_constraint elements. - */ - domInstance_rigid_constraint_Array &getInstance_rigid_constraint_array() { return elemInstance_rigid_constraint_array; } - /** - * Gets the instance_rigid_constraint element array. - * @return Returns a constant reference to the array of instance_rigid_constraint elements. - */ - const domInstance_rigid_constraint_Array &getInstance_rigid_constraint_array() const { return elemInstance_rigid_constraint_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domInstance_physics_model() : attrUrl(), attrSid(), attrName(), attrParent(), elemInstance_force_field_array(), elemInstance_rigid_body_array(), elemInstance_rigid_constraint_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domInstance_physics_model() {} - /** - * Copy Constructor - */ - domInstance_physics_model( const domInstance_physics_model &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstance_physics_model &operator=( const domInstance_physics_model &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_rigid_body.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_rigid_body.h deleted file mode 100644 index 9ed15e8cd..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_rigid_body.h +++ /dev/null @@ -1,954 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInstance_rigid_body_h__ -#define __domInstance_rigid_body_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/** - * This element allows instancing a rigid_body within an instance_physics_model. - */ -class domInstance_rigid_body : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_RIGID_BODY; } -public: - class domTechnique_common; - - typedef daeSmartRef domTechnique_commonRef; - typedef daeTArray domTechnique_common_Array; - -/** - * The technique_common element specifies the instance_rigid_body information - * for the common profile which all COLLADA implementations need to support. - */ - class domTechnique_common : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_COMMON; } - public: - class domAngular_velocity; - - typedef daeSmartRef domAngular_velocityRef; - typedef daeTArray domAngular_velocity_Array; - -/** - * Specifies the initial angular velocity of the rigid_body instance in degrees - * per second around each axis, in the form of an X-Y-Z Euler rotation. - */ - class domAngular_velocity : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ANGULAR_VELOCITY; } - - protected: // Value - /** - * The domFloat3 value of the text data of this element. - */ - domFloat3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFloat3 reference of the _value array. - */ - domFloat3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat3 reference of the _value array. - */ - const domFloat3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domAngular_velocity() : _value() {} - /** - * Destructor - */ - virtual ~domAngular_velocity() {} - /** - * Copy Constructor - */ - domAngular_velocity( const domAngular_velocity &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAngular_velocity &operator=( const domAngular_velocity &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domVelocity; - - typedef daeSmartRef domVelocityRef; - typedef daeTArray domVelocity_Array; - -/** - * Specifies the initial linear velocity of the rigid_body instance. - */ - class domVelocity : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VELOCITY; } - - protected: // Value - /** - * The domFloat3 value of the text data of this element. - */ - domFloat3 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFloat3 reference of the _value array. - */ - domFloat3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat3 reference of the _value array. - */ - const domFloat3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat3 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domVelocity() : _value() {} - /** - * Destructor - */ - virtual ~domVelocity() {} - /** - * Copy Constructor - */ - domVelocity( const domVelocity &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domVelocity &operator=( const domVelocity &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDynamic; - - typedef daeSmartRef domDynamicRef; - typedef daeTArray domDynamic_Array; - - class domDynamic : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DYNAMIC; } - protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - - protected: // Value - /** - * The domBool value of the text data of this element. - */ - domBool _value; - - public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the value of this element. - * @return a domBool of the value. - */ - domBool getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domBool val ) { _value = val; } - - protected: - /** - * Constructor - */ - domDynamic() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domDynamic() {} - /** - * Copy Constructor - */ - domDynamic( const domDynamic &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDynamic &operator=( const domDynamic &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMass_frame; - - typedef daeSmartRef domMass_frameRef; - typedef daeTArray domMass_frame_Array; - - class domMass_frame : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MASS_FRAME; } - - protected: // Elements - domTranslate_Array elemTranslate_array; - domRotate_Array elemRotate_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the translate element array. - * @return Returns a reference to the array of translate elements. - */ - domTranslate_Array &getTranslate_array() { return elemTranslate_array; } - /** - * Gets the translate element array. - * @return Returns a constant reference to the array of translate elements. - */ - const domTranslate_Array &getTranslate_array() const { return elemTranslate_array; } - /** - * Gets the rotate element array. - * @return Returns a reference to the array of rotate elements. - */ - domRotate_Array &getRotate_array() { return elemRotate_array; } - /** - * Gets the rotate element array. - * @return Returns a constant reference to the array of rotate elements. - */ - const domRotate_Array &getRotate_array() const { return elemRotate_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domMass_frame() : elemTranslate_array(), elemRotate_array() {} - /** - * Destructor - */ - virtual ~domMass_frame() {} - /** - * Copy Constructor - */ - domMass_frame( const domMass_frame &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMass_frame &operator=( const domMass_frame &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domShape; - - typedef daeSmartRef domShapeRef; - typedef daeTArray domShape_Array; - - class domShape : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SHAPE; } - public: - class domHollow; - - typedef daeSmartRef domHollowRef; - typedef daeTArray domHollow_Array; - - class domHollow : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HOLLOW; } - protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - - protected: // Value - /** - * The domBool value of the text data of this element. - */ - domBool _value; - - public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the value of this element. - * @return a domBool of the value. - */ - domBool getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domBool val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHollow() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domHollow() {} - /** - * Copy Constructor - */ - domHollow( const domHollow &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHollow &operator=( const domHollow &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements - domHollowRef elemHollow; - domTargetableFloatRef elemMass; - domTargetableFloatRef elemDensity; - domInstance_physics_materialRef elemInstance_physics_material; - domPhysics_materialRef elemPhysics_material; - domInstance_geometryRef elemInstance_geometry; - domPlaneRef elemPlane; - domBoxRef elemBox; - domSphereRef elemSphere; - domCylinderRef elemCylinder; - domTapered_cylinderRef elemTapered_cylinder; - domCapsuleRef elemCapsule; - domTapered_capsuleRef elemTapered_capsule; - domTranslate_Array elemTranslate_array; - domRotate_Array elemRotate_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the hollow element. - * @return a daeSmartRef to the hollow element. - */ - const domHollowRef getHollow() const { return elemHollow; } - /** - * Gets the mass element. - * @return a daeSmartRef to the mass element. - */ - const domTargetableFloatRef getMass() const { return elemMass; } - /** - * Gets the density element. - * @return a daeSmartRef to the density element. - */ - const domTargetableFloatRef getDensity() const { return elemDensity; } - /** - * Gets the instance_physics_material element. - * @return a daeSmartRef to the instance_physics_material element. - */ - const domInstance_physics_materialRef getInstance_physics_material() const { return elemInstance_physics_material; } - /** - * Gets the physics_material element. - * @return a daeSmartRef to the physics_material element. - */ - const domPhysics_materialRef getPhysics_material() const { return elemPhysics_material; } - /** - * Gets the instance_geometry element. - * @return a daeSmartRef to the instance_geometry element. - */ - const domInstance_geometryRef getInstance_geometry() const { return elemInstance_geometry; } - /** - * Gets the plane element. - * @return a daeSmartRef to the plane element. - */ - const domPlaneRef getPlane() const { return elemPlane; } - /** - * Gets the box element. - * @return a daeSmartRef to the box element. - */ - const domBoxRef getBox() const { return elemBox; } - /** - * Gets the sphere element. - * @return a daeSmartRef to the sphere element. - */ - const domSphereRef getSphere() const { return elemSphere; } - /** - * Gets the cylinder element. - * @return a daeSmartRef to the cylinder element. - */ - const domCylinderRef getCylinder() const { return elemCylinder; } - /** - * Gets the tapered_cylinder element. - * @return a daeSmartRef to the tapered_cylinder element. - */ - const domTapered_cylinderRef getTapered_cylinder() const { return elemTapered_cylinder; } - /** - * Gets the capsule element. - * @return a daeSmartRef to the capsule element. - */ - const domCapsuleRef getCapsule() const { return elemCapsule; } - /** - * Gets the tapered_capsule element. - * @return a daeSmartRef to the tapered_capsule element. - */ - const domTapered_capsuleRef getTapered_capsule() const { return elemTapered_capsule; } - /** - * Gets the translate element array. - * @return Returns a reference to the array of translate elements. - */ - domTranslate_Array &getTranslate_array() { return elemTranslate_array; } - /** - * Gets the translate element array. - * @return Returns a constant reference to the array of translate elements. - */ - const domTranslate_Array &getTranslate_array() const { return elemTranslate_array; } - /** - * Gets the rotate element array. - * @return Returns a reference to the array of rotate elements. - */ - domRotate_Array &getRotate_array() { return elemRotate_array; } - /** - * Gets the rotate element array. - * @return Returns a constant reference to the array of rotate elements. - */ - const domRotate_Array &getRotate_array() const { return elemRotate_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domShape() : elemHollow(), elemMass(), elemDensity(), elemInstance_physics_material(), elemPhysics_material(), elemInstance_geometry(), elemPlane(), elemBox(), elemSphere(), elemCylinder(), elemTapered_cylinder(), elemCapsule(), elemTapered_capsule(), elemTranslate_array(), elemRotate_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domShape() {} - /** - * Copy Constructor - */ - domShape( const domShape &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domShape &operator=( const domShape &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements -/** - * Specifies the initial angular velocity of the rigid_body instance in degrees - * per second around each axis, in the form of an X-Y-Z Euler rotation. @see - * domAngular_velocity - */ - domAngular_velocityRef elemAngular_velocity; -/** - * Specifies the initial linear velocity of the rigid_body instance. @see - * domVelocity - */ - domVelocityRef elemVelocity; - domDynamicRef elemDynamic; - domTargetableFloatRef elemMass; - domMass_frameRef elemMass_frame; - domTargetableFloat3Ref elemInertia; - domInstance_physics_materialRef elemInstance_physics_material; - domPhysics_materialRef elemPhysics_material; - domShape_Array elemShape_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the angular_velocity element. - * @return a daeSmartRef to the angular_velocity element. - */ - const domAngular_velocityRef getAngular_velocity() const { return elemAngular_velocity; } - /** - * Gets the velocity element. - * @return a daeSmartRef to the velocity element. - */ - const domVelocityRef getVelocity() const { return elemVelocity; } - /** - * Gets the dynamic element. - * @return a daeSmartRef to the dynamic element. - */ - const domDynamicRef getDynamic() const { return elemDynamic; } - /** - * Gets the mass element. - * @return a daeSmartRef to the mass element. - */ - const domTargetableFloatRef getMass() const { return elemMass; } - /** - * Gets the mass_frame element. - * @return a daeSmartRef to the mass_frame element. - */ - const domMass_frameRef getMass_frame() const { return elemMass_frame; } - /** - * Gets the inertia element. - * @return a daeSmartRef to the inertia element. - */ - const domTargetableFloat3Ref getInertia() const { return elemInertia; } - /** - * Gets the instance_physics_material element. - * @return a daeSmartRef to the instance_physics_material element. - */ - const domInstance_physics_materialRef getInstance_physics_material() const { return elemInstance_physics_material; } - /** - * Gets the physics_material element. - * @return a daeSmartRef to the physics_material element. - */ - const domPhysics_materialRef getPhysics_material() const { return elemPhysics_material; } - /** - * Gets the shape element array. - * @return Returns a reference to the array of shape elements. - */ - domShape_Array &getShape_array() { return elemShape_array; } - /** - * Gets the shape element array. - * @return Returns a constant reference to the array of shape elements. - */ - const domShape_Array &getShape_array() const { return elemShape_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTechnique_common() : elemAngular_velocity(), elemVelocity(), elemDynamic(), elemMass(), elemMass_frame(), elemInertia(), elemInstance_physics_material(), elemPhysics_material(), elemShape_array() {} - /** - * Destructor - */ - virtual ~domTechnique_common() {} - /** - * Copy Constructor - */ - domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique_common &operator=( const domTechnique_common &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The body attribute indicates which rigid_body to instantiate. Required - * attribute. - */ - xsNCName attrBody; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The target attribute indicates which node is influenced by this rigid_body - * instance. Required attribute - */ - xsAnyURI attrTarget; - -protected: // Elements -/** - * The technique_common element specifies the instance_rigid_body information - * for the common profile which all COLLADA implementations need to support. - * @see domTechnique_common - */ - domTechnique_commonRef elemTechnique_common; -/** - * This element may contain any number of non-common profile techniques. - * @see domTechnique - */ - domTechnique_Array elemTechnique_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the body attribute. - * @return Returns a xsNCName of the body attribute. - */ - xsNCName getBody() const { return attrBody; } - /** - * Sets the body attribute. - * @param atBody The new value for the body attribute. - */ - void setBody( xsNCName atBody ) { *(daeStringRef*)&attrBody = atBody; - _validAttributeArray[0] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[1] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[2] = true; } - - /** - * Gets the target attribute. - * @return Returns a xsAnyURI reference of the target attribute. - */ - xsAnyURI &getTarget() { return attrTarget; } - /** - * Gets the target attribute. - * @return Returns a constant xsAnyURI reference of the target attribute. - */ - const xsAnyURI &getTarget() const { return attrTarget; } - /** - * Sets the target attribute. - * @param atTarget The new value for the target attribute. - */ - void setTarget( const xsAnyURI &atTarget ) { attrTarget = atTarget; - _validAttributeArray[3] = true; } - - /** - * Gets the technique_common element. - * @return a daeSmartRef to the technique_common element. - */ - const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domInstance_rigid_body() : attrBody(), attrSid(), attrName(), attrTarget(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domInstance_rigid_body() {} - /** - * Copy Constructor - */ - domInstance_rigid_body( const domInstance_rigid_body &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstance_rigid_body &operator=( const domInstance_rigid_body &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_rigid_constraint.h b/Extras/COLLADA_DOM/include/1.4/dom/domInstance_rigid_constraint.h deleted file mode 100644 index 2ecd58093..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInstance_rigid_constraint.h +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInstance_rigid_constraint_h__ -#define __domInstance_rigid_constraint_h__ - -#include -#include - -#include - -/** - * This element allows instancing a rigid_constraint within an instance_physics_model. - */ -class domInstance_rigid_constraint : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INSTANCE_RIGID_CONSTRAINT; } -protected: // Attributes -/** - * The constraint attribute indicates which rigid_constraing to instantiate. - * Required attribute. - */ - xsNCName attrConstraint; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Element -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the constraint attribute. - * @return Returns a xsNCName of the constraint attribute. - */ - xsNCName getConstraint() const { return attrConstraint; } - /** - * Sets the constraint attribute. - * @param atConstraint The new value for the constraint attribute. - */ - void setConstraint( xsNCName atConstraint ) { *(daeStringRef*)&attrConstraint = atConstraint; - _validAttributeArray[0] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[1] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[2] = true; } - - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domInstance_rigid_constraint() : attrConstraint(), attrSid(), attrName(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domInstance_rigid_constraint() {} - /** - * Copy Constructor - */ - domInstance_rigid_constraint( const domInstance_rigid_constraint &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInstance_rigid_constraint &operator=( const domInstance_rigid_constraint &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domInt_array.h b/Extras/COLLADA_DOM/include/1.4/dom/domInt_array.h deleted file mode 100644 index 152bdad63..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domInt_array.h +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domInt_array_h__ -#define __domInt_array_h__ - -#include -#include - - -/** - * The int_array element declares the storage for a homogenous array of integer - * values. - */ -class domInt_array : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INT_ARRAY; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The count attribute indicates the number of values in the array. Required - * attribute. - */ - domUint attrCount; -/** - * The minInclusive attribute indicates the smallest integer value that can - * be contained in the array. The default value is –2147483648. Optional - * attribute. - */ - xsInteger attrMinInclusive; -/** - * The maxInclusive attribute indicates the largest integer value that can - * be contained in the array. The default value is 2147483647. Optional attribute. - */ - xsInteger attrMaxInclusive; - -protected: // Value - /** - * The domListOfInts value of the text data of this element. - */ - domListOfInts _value; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[2] = true; } - - /** - * Gets the minInclusive attribute. - * @return Returns a xsInteger of the minInclusive attribute. - */ - xsInteger getMinInclusive() const { return attrMinInclusive; } - /** - * Sets the minInclusive attribute. - * @param atMinInclusive The new value for the minInclusive attribute. - */ - void setMinInclusive( xsInteger atMinInclusive ) { attrMinInclusive = atMinInclusive; - _validAttributeArray[3] = true; } - - /** - * Gets the maxInclusive attribute. - * @return Returns a xsInteger of the maxInclusive attribute. - */ - xsInteger getMaxInclusive() const { return attrMaxInclusive; } - /** - * Sets the maxInclusive attribute. - * @param atMaxInclusive The new value for the maxInclusive attribute. - */ - void setMaxInclusive( xsInteger atMaxInclusive ) { attrMaxInclusive = atMaxInclusive; - _validAttributeArray[4] = true; } - - /** - * Gets the _value array. - * @return Returns a domListOfInts reference of the _value array. - */ - domListOfInts &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domListOfInts reference of the _value array. - */ - const domListOfInts &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domListOfInts &val ) { _value = val; } - -protected: - /** - * Constructor - */ - domInt_array() : attrId(), attrName(), attrCount(), attrMinInclusive(), attrMaxInclusive(), _value() {} - /** - * Destructor - */ - virtual ~domInt_array() {} - /** - * Copy Constructor - */ - domInt_array( const domInt_array &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInt_array &operator=( const domInt_array &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_animation_clips.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_animation_clips.h deleted file mode 100644 index e986f67d0..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_animation_clips.h +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_animation_clips_h__ -#define __domLibrary_animation_clips_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_animation_clips element declares a module of animation_clip - * elements. - */ -class domLibrary_animation_clips : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_ANIMATION_CLIPS; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_animation_clips element may contain an asset element. @see - * domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one animation_clip element. @see domAnimation_clip - */ - domAnimation_clip_Array elemAnimation_clip_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the animation_clip element array. - * @return Returns a reference to the array of animation_clip elements. - */ - domAnimation_clip_Array &getAnimation_clip_array() { return elemAnimation_clip_array; } - /** - * Gets the animation_clip element array. - * @return Returns a constant reference to the array of animation_clip elements. - */ - const domAnimation_clip_Array &getAnimation_clip_array() const { return elemAnimation_clip_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_animation_clips() : attrId(), attrName(), elemAsset(), elemAnimation_clip_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_animation_clips() {} - /** - * Copy Constructor - */ - domLibrary_animation_clips( const domLibrary_animation_clips &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_animation_clips &operator=( const domLibrary_animation_clips &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_animations.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_animations.h deleted file mode 100644 index 0402b8140..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_animations.h +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_animations_h__ -#define __domLibrary_animations_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_animations element declares a module of animation elements. - */ -class domLibrary_animations : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_ANIMATIONS; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_animations element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one animation element. @see domAnimation - */ - domAnimation_Array elemAnimation_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the animation element array. - * @return Returns a reference to the array of animation elements. - */ - domAnimation_Array &getAnimation_array() { return elemAnimation_array; } - /** - * Gets the animation element array. - * @return Returns a constant reference to the array of animation elements. - */ - const domAnimation_Array &getAnimation_array() const { return elemAnimation_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_animations() : attrId(), attrName(), elemAsset(), elemAnimation_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_animations() {} - /** - * Copy Constructor - */ - domLibrary_animations( const domLibrary_animations &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_animations &operator=( const domLibrary_animations &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_cameras.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_cameras.h deleted file mode 100644 index 28b6fc535..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_cameras.h +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_cameras_h__ -#define __domLibrary_cameras_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_cameras element declares a module of camera elements. - */ -class domLibrary_cameras : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_CAMERAS; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_cameras element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one camera element. @see domCamera - */ - domCamera_Array elemCamera_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the camera element array. - * @return Returns a reference to the array of camera elements. - */ - domCamera_Array &getCamera_array() { return elemCamera_array; } - /** - * Gets the camera element array. - * @return Returns a constant reference to the array of camera elements. - */ - const domCamera_Array &getCamera_array() const { return elemCamera_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_cameras() : attrId(), attrName(), elemAsset(), elemCamera_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_cameras() {} - /** - * Copy Constructor - */ - domLibrary_cameras( const domLibrary_cameras &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_cameras &operator=( const domLibrary_cameras &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_controllers.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_controllers.h deleted file mode 100644 index c5e1d0e20..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_controllers.h +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_controllers_h__ -#define __domLibrary_controllers_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_controllers element declares a module of controller elements. - */ -class domLibrary_controllers : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_CONTROLLERS; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_controllers element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one controller element. @see domController - */ - domController_Array elemController_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the controller element array. - * @return Returns a reference to the array of controller elements. - */ - domController_Array &getController_array() { return elemController_array; } - /** - * Gets the controller element array. - * @return Returns a constant reference to the array of controller elements. - */ - const domController_Array &getController_array() const { return elemController_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_controllers() : attrId(), attrName(), elemAsset(), elemController_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_controllers() {} - /** - * Copy Constructor - */ - domLibrary_controllers( const domLibrary_controllers &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_controllers &operator=( const domLibrary_controllers &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_effects.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_effects.h deleted file mode 100644 index cbe42d0cb..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_effects.h +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_effects_h__ -#define __domLibrary_effects_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_effects element declares a module of effect elements. - */ -class domLibrary_effects : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_EFFECTS; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_effects element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one effect element. @see domEffect - */ - domEffect_Array elemEffect_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the effect element array. - * @return Returns a reference to the array of effect elements. - */ - domEffect_Array &getEffect_array() { return elemEffect_array; } - /** - * Gets the effect element array. - * @return Returns a constant reference to the array of effect elements. - */ - const domEffect_Array &getEffect_array() const { return elemEffect_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_effects() : attrId(), attrName(), elemAsset(), elemEffect_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_effects() {} - /** - * Copy Constructor - */ - domLibrary_effects( const domLibrary_effects &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_effects &operator=( const domLibrary_effects &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_force_fields.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_force_fields.h deleted file mode 100644 index c1db02504..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_force_fields.h +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_force_fields_h__ -#define __domLibrary_force_fields_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_force_fields element declares a module of force_field elements. - */ -class domLibrary_force_fields : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_FORCE_FIELDS; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_force_fields element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one force_field element. @see domForce_field - */ - domForce_field_Array elemForce_field_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the force_field element array. - * @return Returns a reference to the array of force_field elements. - */ - domForce_field_Array &getForce_field_array() { return elemForce_field_array; } - /** - * Gets the force_field element array. - * @return Returns a constant reference to the array of force_field elements. - */ - const domForce_field_Array &getForce_field_array() const { return elemForce_field_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_force_fields() : attrId(), attrName(), elemAsset(), elemForce_field_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_force_fields() {} - /** - * Copy Constructor - */ - domLibrary_force_fields( const domLibrary_force_fields &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_force_fields &operator=( const domLibrary_force_fields &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_geometries.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_geometries.h deleted file mode 100644 index 81deadd2d..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_geometries.h +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_geometries_h__ -#define __domLibrary_geometries_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_geometries element declares a module of geometry elements. - */ -class domLibrary_geometries : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_GEOMETRIES; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_geometries element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one geometry element. @see domGeometry - */ - domGeometry_Array elemGeometry_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the geometry element array. - * @return Returns a reference to the array of geometry elements. - */ - domGeometry_Array &getGeometry_array() { return elemGeometry_array; } - /** - * Gets the geometry element array. - * @return Returns a constant reference to the array of geometry elements. - */ - const domGeometry_Array &getGeometry_array() const { return elemGeometry_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_geometries() : attrId(), attrName(), elemAsset(), elemGeometry_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_geometries() {} - /** - * Copy Constructor - */ - domLibrary_geometries( const domLibrary_geometries &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_geometries &operator=( const domLibrary_geometries &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_images.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_images.h deleted file mode 100644 index 138ff001f..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_images.h +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_images_h__ -#define __domLibrary_images_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_images element declares a module of image elements. - */ -class domLibrary_images : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_IMAGES; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_images element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one image element. @see domImage - */ - domImage_Array elemImage_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the image element array. - * @return Returns a reference to the array of image elements. - */ - domImage_Array &getImage_array() { return elemImage_array; } - /** - * Gets the image element array. - * @return Returns a constant reference to the array of image elements. - */ - const domImage_Array &getImage_array() const { return elemImage_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_images() : attrId(), attrName(), elemAsset(), elemImage_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_images() {} - /** - * Copy Constructor - */ - domLibrary_images( const domLibrary_images &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_images &operator=( const domLibrary_images &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_lights.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_lights.h deleted file mode 100644 index c97610d66..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_lights.h +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_lights_h__ -#define __domLibrary_lights_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_lights element declares a module of light elements. - */ -class domLibrary_lights : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_LIGHTS; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_lights element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one light element. @see domLight - */ - domLight_Array elemLight_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the light element array. - * @return Returns a reference to the array of light elements. - */ - domLight_Array &getLight_array() { return elemLight_array; } - /** - * Gets the light element array. - * @return Returns a constant reference to the array of light elements. - */ - const domLight_Array &getLight_array() const { return elemLight_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_lights() : attrId(), attrName(), elemAsset(), elemLight_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_lights() {} - /** - * Copy Constructor - */ - domLibrary_lights( const domLibrary_lights &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_lights &operator=( const domLibrary_lights &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_materials.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_materials.h deleted file mode 100644 index 792c39a6d..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_materials.h +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_materials_h__ -#define __domLibrary_materials_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_materials element declares a module of material elements. - */ -class domLibrary_materials : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_MATERIALS; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_materials element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one material element. @see domMaterial - */ - domMaterial_Array elemMaterial_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the material element array. - * @return Returns a reference to the array of material elements. - */ - domMaterial_Array &getMaterial_array() { return elemMaterial_array; } - /** - * Gets the material element array. - * @return Returns a constant reference to the array of material elements. - */ - const domMaterial_Array &getMaterial_array() const { return elemMaterial_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_materials() : attrId(), attrName(), elemAsset(), elemMaterial_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_materials() {} - /** - * Copy Constructor - */ - domLibrary_materials( const domLibrary_materials &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_materials &operator=( const domLibrary_materials &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_nodes.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_nodes.h deleted file mode 100644 index ed8ea77ba..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_nodes.h +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_nodes_h__ -#define __domLibrary_nodes_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_nodes element declares a module of node elements. - */ -class domLibrary_nodes : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_NODES; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_nodes element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one node element. @see domNode - */ - domNode_Array elemNode_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the node element array. - * @return Returns a reference to the array of node elements. - */ - domNode_Array &getNode_array() { return elemNode_array; } - /** - * Gets the node element array. - * @return Returns a constant reference to the array of node elements. - */ - const domNode_Array &getNode_array() const { return elemNode_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_nodes() : attrId(), attrName(), elemAsset(), elemNode_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_nodes() {} - /** - * Copy Constructor - */ - domLibrary_nodes( const domLibrary_nodes &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_nodes &operator=( const domLibrary_nodes &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_materials.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_materials.h deleted file mode 100644 index 26ed9058f..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_materials.h +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_physics_materials_h__ -#define __domLibrary_physics_materials_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_physics_materials element declares a module of physics_material - * elements. - */ -class domLibrary_physics_materials : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_PHYSICS_MATERIALS; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_physics_materials element may contain an asset element. @see - * domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one physics_material element. @see domPhysics_material - */ - domPhysics_material_Array elemPhysics_material_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the physics_material element array. - * @return Returns a reference to the array of physics_material elements. - */ - domPhysics_material_Array &getPhysics_material_array() { return elemPhysics_material_array; } - /** - * Gets the physics_material element array. - * @return Returns a constant reference to the array of physics_material elements. - */ - const domPhysics_material_Array &getPhysics_material_array() const { return elemPhysics_material_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_physics_materials() : attrId(), attrName(), elemAsset(), elemPhysics_material_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_physics_materials() {} - /** - * Copy Constructor - */ - domLibrary_physics_materials( const domLibrary_physics_materials &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_physics_materials &operator=( const domLibrary_physics_materials &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_models.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_models.h deleted file mode 100644 index 6c4b27dbb..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_models.h +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_physics_models_h__ -#define __domLibrary_physics_models_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_physics_models element declares a module of physics_model elements. - */ -class domLibrary_physics_models : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_PHYSICS_MODELS; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_physics_models element may contain an asset element. @see - * domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one physics_model element. @see domPhysics_model - */ - domPhysics_model_Array elemPhysics_model_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the physics_model element array. - * @return Returns a reference to the array of physics_model elements. - */ - domPhysics_model_Array &getPhysics_model_array() { return elemPhysics_model_array; } - /** - * Gets the physics_model element array. - * @return Returns a constant reference to the array of physics_model elements. - */ - const domPhysics_model_Array &getPhysics_model_array() const { return elemPhysics_model_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_physics_models() : attrId(), attrName(), elemAsset(), elemPhysics_model_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_physics_models() {} - /** - * Copy Constructor - */ - domLibrary_physics_models( const domLibrary_physics_models &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_physics_models &operator=( const domLibrary_physics_models &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_scenes.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_scenes.h deleted file mode 100644 index e3f5fa874..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_physics_scenes.h +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_physics_scenes_h__ -#define __domLibrary_physics_scenes_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_physics_scenes element declares a module of physics_scene elements. - */ -class domLibrary_physics_scenes : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_PHYSICS_SCENES; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_physics_scenes element may contain an asset element. @see - * domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one physics_scene element. @see domPhysics_scene - */ - domPhysics_scene_Array elemPhysics_scene_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the physics_scene element array. - * @return Returns a reference to the array of physics_scene elements. - */ - domPhysics_scene_Array &getPhysics_scene_array() { return elemPhysics_scene_array; } - /** - * Gets the physics_scene element array. - * @return Returns a constant reference to the array of physics_scene elements. - */ - const domPhysics_scene_Array &getPhysics_scene_array() const { return elemPhysics_scene_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_physics_scenes() : attrId(), attrName(), elemAsset(), elemPhysics_scene_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_physics_scenes() {} - /** - * Copy Constructor - */ - domLibrary_physics_scenes( const domLibrary_physics_scenes &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_physics_scenes &operator=( const domLibrary_physics_scenes &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_visual_scenes.h b/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_visual_scenes.h deleted file mode 100644 index 007e65336..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLibrary_visual_scenes.h +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLibrary_visual_scenes_h__ -#define __domLibrary_visual_scenes_h__ - -#include -#include - -#include -#include -#include - -/** - * The library_visual_scenes element declares a module of visual_scene elements. - */ -class domLibrary_visual_scenes : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_VISUAL_SCENES; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The library_visual_scenes element may contain an asset element. @see - * domAsset - */ - domAssetRef elemAsset; -/** - * There must be at least one visual_scene element. @see domVisual_scene - */ - domVisual_scene_Array elemVisual_scene_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the visual_scene element array. - * @return Returns a reference to the array of visual_scene elements. - */ - domVisual_scene_Array &getVisual_scene_array() { return elemVisual_scene_array; } - /** - * Gets the visual_scene element array. - * @return Returns a constant reference to the array of visual_scene elements. - */ - const domVisual_scene_Array &getVisual_scene_array() const { return elemVisual_scene_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLibrary_visual_scenes() : attrId(), attrName(), elemAsset(), elemVisual_scene_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLibrary_visual_scenes() {} - /** - * Copy Constructor - */ - domLibrary_visual_scenes( const domLibrary_visual_scenes &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLibrary_visual_scenes &operator=( const domLibrary_visual_scenes &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLight.h b/Extras/COLLADA_DOM/include/1.4/dom/domLight.h deleted file mode 100644 index d106d908e..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLight.h +++ /dev/null @@ -1,666 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLight_h__ -#define __domLight_h__ - -#include -#include - -#include -#include -#include -#include -#include - -/** - * The light element declares a light source that illuminates the scene. Light - * sources have many different properties and radiate light in many different - * patterns and frequencies. - */ -class domLight : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIGHT; } -public: - class domTechnique_common; - - typedef daeSmartRef domTechnique_commonRef; - typedef daeTArray domTechnique_common_Array; - -/** - * The technique_common element specifies the light information for the common - * profile which all COLLADA implementations need to support. - */ - class domTechnique_common : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_COMMON; } - public: - class domAmbient; - - typedef daeSmartRef domAmbientRef; - typedef daeTArray domAmbient_Array; - -/** - * The ambient element declares the parameters required to describe an ambient - * light source. An ambient light is one that lights everything evenly, - * regardless of location or orientation. - */ - class domAmbient : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::AMBIENT; } - - protected: // Element -/** - * The color element contains three floating point numbers specifying the - * color of the light. The color element must occur exactly once. @see domColor - */ - domTargetableFloat3Ref elemColor; - - public: //Accessors and Mutators - /** - * Gets the color element. - * @return a daeSmartRef to the color element. - */ - const domTargetableFloat3Ref getColor() const { return elemColor; } - protected: - /** - * Constructor - */ - domAmbient() : elemColor() {} - /** - * Destructor - */ - virtual ~domAmbient() {} - /** - * Copy Constructor - */ - domAmbient( const domAmbient &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAmbient &operator=( const domAmbient &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDirectional; - - typedef daeSmartRef domDirectionalRef; - typedef daeTArray domDirectional_Array; - -/** - * The directional element declares the parameters required to describe a - * directional light source. A directional light is one that lights everything - * from the same direction, regardless of location. The light’s default - * direction vector in local coordinates is [0,0,-1], pointing down the -Z - * axis. The actual direction of the light is defined by the transform of - * the node where the light is instantiated. - */ - class domDirectional : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DIRECTIONAL; } - - protected: // Element -/** - * The color element contains three floating point numbers specifying the - * color of the light. The color element must occur exactly once. @see domColor - */ - domTargetableFloat3Ref elemColor; - - public: //Accessors and Mutators - /** - * Gets the color element. - * @return a daeSmartRef to the color element. - */ - const domTargetableFloat3Ref getColor() const { return elemColor; } - protected: - /** - * Constructor - */ - domDirectional() : elemColor() {} - /** - * Destructor - */ - virtual ~domDirectional() {} - /** - * Copy Constructor - */ - domDirectional( const domDirectional &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDirectional &operator=( const domDirectional &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPoint; - - typedef daeSmartRef domPointRef; - typedef daeTArray domPoint_Array; - -/** - * The point element declares the parameters required to describe a point - * light source. A point light source radiates light in all directions from - * a known location in space. The intensity of a point light source is attenuated - * as the distance to the light source increases. The position of the light - * is defined by the transform of the node in which it is instantiated. - */ - class domPoint : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POINT; } - - protected: // Elements -/** - * The color element contains three floating point numbers specifying the - * color of the light. The color element must occur exactly once. @see domColor - */ - domTargetableFloat3Ref elemColor; -/** - * The constant_attenuation is used to calculate the total attenuation of - * this light given a distance. The equation used is A = constant_attenuation - * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domConstant_attenuation - */ - domTargetableFloatRef elemConstant_attenuation; -/** - * The linear_attenuation is used to calculate the total attenuation of this - * light given a distance. The equation used is A = constant_attenuation - * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domLinear_attenuation - */ - domTargetableFloatRef elemLinear_attenuation; -/** - * The quadratic_attenuation is used to calculate the total attenuation of - * this light given a distance. The equation used is A = constant_attenuation - * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domQuadratic_attenuation - */ - domTargetableFloatRef elemQuadratic_attenuation; - - public: //Accessors and Mutators - /** - * Gets the color element. - * @return a daeSmartRef to the color element. - */ - const domTargetableFloat3Ref getColor() const { return elemColor; } - /** - * Gets the constant_attenuation element. - * @return a daeSmartRef to the constant_attenuation element. - */ - const domTargetableFloatRef getConstant_attenuation() const { return elemConstant_attenuation; } - /** - * Gets the linear_attenuation element. - * @return a daeSmartRef to the linear_attenuation element. - */ - const domTargetableFloatRef getLinear_attenuation() const { return elemLinear_attenuation; } - /** - * Gets the quadratic_attenuation element. - * @return a daeSmartRef to the quadratic_attenuation element. - */ - const domTargetableFloatRef getQuadratic_attenuation() const { return elemQuadratic_attenuation; } - protected: - /** - * Constructor - */ - domPoint() : elemColor(), elemConstant_attenuation(), elemLinear_attenuation(), elemQuadratic_attenuation() {} - /** - * Destructor - */ - virtual ~domPoint() {} - /** - * Copy Constructor - */ - domPoint( const domPoint &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPoint &operator=( const domPoint &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSpot; - - typedef daeSmartRef domSpotRef; - typedef daeTArray domSpot_Array; - -/** - * The spot element declares the parameters required to describe a spot light - * source. A spot light source radiates light in one direction from a known - * location in space. The light radiates from the spot light source in a - * cone shape. The intensity of the light is attenuated as the radiation - * angle increases away from the direction of the light source. The intensity - * of a spot light source is also attenuated as the distance to the light - * source increases. The position of the light is defined by the transform - * of the node in which it is instantiated. The light’s default direction - * vector in local coordinates is [0,0,-1], pointing down the -Z axis. The - * actual direction of the light is defined by the transform of the node - * where the light is instantiated. - */ - class domSpot : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SPOT; } - - protected: // Elements -/** - * The color element contains three floating point numbers specifying the - * color of the light. The color element must occur exactly once. @see domColor - */ - domTargetableFloat3Ref elemColor; -/** - * The constant_attenuation is used to calculate the total attenuation of - * this light given a distance. The equation used is A = constant_attenuation - * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domConstant_attenuation - */ - domTargetableFloatRef elemConstant_attenuation; -/** - * The linear_attenuation is used to calculate the total attenuation of this - * light given a distance. The equation used is A = constant_attenuation - * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domLinear_attenuation - */ - domTargetableFloatRef elemLinear_attenuation; -/** - * The quadratic_attenuation is used to calculate the total attenuation of - * this light given a distance. The equation used is A = constant_attenuation - * + Dist*linear_attenuation + Dist^2*quadratic_attenuation. @see domQuadratic_attenuation - */ - domTargetableFloatRef elemQuadratic_attenuation; -/** - * The falloff_angle is used to specify the amount of attenuation based on - * the direction of the light. @see domFalloff_angle - */ - domTargetableFloatRef elemFalloff_angle; -/** - * The falloff_exponent is used to specify the amount of attenuation based - * on the direction of the light. @see domFalloff_exponent - */ - domTargetableFloatRef elemFalloff_exponent; - - public: //Accessors and Mutators - /** - * Gets the color element. - * @return a daeSmartRef to the color element. - */ - const domTargetableFloat3Ref getColor() const { return elemColor; } - /** - * Gets the constant_attenuation element. - * @return a daeSmartRef to the constant_attenuation element. - */ - const domTargetableFloatRef getConstant_attenuation() const { return elemConstant_attenuation; } - /** - * Gets the linear_attenuation element. - * @return a daeSmartRef to the linear_attenuation element. - */ - const domTargetableFloatRef getLinear_attenuation() const { return elemLinear_attenuation; } - /** - * Gets the quadratic_attenuation element. - * @return a daeSmartRef to the quadratic_attenuation element. - */ - const domTargetableFloatRef getQuadratic_attenuation() const { return elemQuadratic_attenuation; } - /** - * Gets the falloff_angle element. - * @return a daeSmartRef to the falloff_angle element. - */ - const domTargetableFloatRef getFalloff_angle() const { return elemFalloff_angle; } - /** - * Gets the falloff_exponent element. - * @return a daeSmartRef to the falloff_exponent element. - */ - const domTargetableFloatRef getFalloff_exponent() const { return elemFalloff_exponent; } - protected: - /** - * Constructor - */ - domSpot() : elemColor(), elemConstant_attenuation(), elemLinear_attenuation(), elemQuadratic_attenuation(), elemFalloff_angle(), elemFalloff_exponent() {} - /** - * Destructor - */ - virtual ~domSpot() {} - /** - * Copy Constructor - */ - domSpot( const domSpot &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSpot &operator=( const domSpot &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements -/** - * The ambient element declares the parameters required to describe an ambient - * light source. An ambient light is one that lights everything evenly, - * regardless of location or orientation. @see domAmbient - */ - domAmbientRef elemAmbient; -/** - * The directional element declares the parameters required to describe a - * directional light source. A directional light is one that lights everything - * from the same direction, regardless of location. The light’s default - * direction vector in local coordinates is [0,0,-1], pointing down the -Z - * axis. The actual direction of the light is defined by the transform of - * the node where the light is instantiated. @see domDirectional - */ - domDirectionalRef elemDirectional; -/** - * The point element declares the parameters required to describe a point - * light source. A point light source radiates light in all directions from - * a known location in space. The intensity of a point light source is attenuated - * as the distance to the light source increases. The position of the light - * is defined by the transform of the node in which it is instantiated. @see - * domPoint - */ - domPointRef elemPoint; -/** - * The spot element declares the parameters required to describe a spot light - * source. A spot light source radiates light in one direction from a known - * location in space. The light radiates from the spot light source in a - * cone shape. The intensity of the light is attenuated as the radiation - * angle increases away from the direction of the light source. The intensity - * of a spot light source is also attenuated as the distance to the light - * source increases. The position of the light is defined by the transform - * of the node in which it is instantiated. The light’s default direction - * vector in local coordinates is [0,0,-1], pointing down the -Z axis. The - * actual direction of the light is defined by the transform of the node - * where the light is instantiated. @see domSpot - */ - domSpotRef elemSpot; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the ambient element. - * @return a daeSmartRef to the ambient element. - */ - const domAmbientRef getAmbient() const { return elemAmbient; } - /** - * Gets the directional element. - * @return a daeSmartRef to the directional element. - */ - const domDirectionalRef getDirectional() const { return elemDirectional; } - /** - * Gets the point element. - * @return a daeSmartRef to the point element. - */ - const domPointRef getPoint() const { return elemPoint; } - /** - * Gets the spot element. - * @return a daeSmartRef to the spot element. - */ - const domSpotRef getSpot() const { return elemSpot; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTechnique_common() : elemAmbient(), elemDirectional(), elemPoint(), elemSpot() {} - /** - * Destructor - */ - virtual ~domTechnique_common() {} - /** - * Copy Constructor - */ - domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique_common &operator=( const domTechnique_common &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The light element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The technique_common element specifies the light information for the common - * profile which all COLLADA implementations need to support. @see domTechnique_common - */ - domTechnique_commonRef elemTechnique_common; -/** - * This element may contain any number of non-common profile techniques. - * @see domTechnique - */ - domTechnique_Array elemTechnique_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the technique_common element. - * @return a daeSmartRef to the technique_common element. - */ - const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLight() : attrId(), attrName(), elemAsset(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLight() {} - /** - * Copy Constructor - */ - domLight( const domLight &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLight &operator=( const domLight &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLines.h b/Extras/COLLADA_DOM/include/1.4/dom/domLines.h deleted file mode 100644 index 667dd721b..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLines.h +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLines_h__ -#define __domLines_h__ - -#include -#include - -#include -#include -#include - -/** - * The lines element provides the information needed to bind vertex attributes - * together and then organize those vertices into individual lines. Each - * line described by the mesh has two vertices. The first line is formed - * from first and second vertices. The second line is formed from the third - * and fourth vertices and so on. - */ -class domLines : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LINES; } -protected: // Attributes -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The count attribute indicates the number of line primitives. Required - * attribute. - */ - domUint attrCount; -/** - * The material attribute declares a symbol for a material. This symbol is - * bound to a material at the time of instantiation. If the material attribute - * is not specified then the lighting and shading results are application - * defined. Optional attribute. - */ - xsNCName attrMaterial; - -protected: // Elements -/** - * The input element may occur any number of times. This input is a local - * input with the offset and set attributes. @see domInput - */ - domInputLocalOffset_Array elemInput_array; -/** - * The p element may occur once. @see domP - */ - domPRef elemP; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[0] = true; } - - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[1] = true; } - - /** - * Gets the material attribute. - * @return Returns a xsNCName of the material attribute. - */ - xsNCName getMaterial() const { return attrMaterial; } - /** - * Sets the material attribute. - * @param atMaterial The new value for the material attribute. - */ - void setMaterial( xsNCName atMaterial ) { *(daeStringRef*)&attrMaterial = atMaterial; - _validAttributeArray[2] = true; } - - /** - * Gets the input element array. - * @return Returns a reference to the array of input elements. - */ - domInputLocalOffset_Array &getInput_array() { return elemInput_array; } - /** - * Gets the input element array. - * @return Returns a constant reference to the array of input elements. - */ - const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } - /** - * Gets the p element. - * @return a daeSmartRef to the p element. - */ - const domPRef getP() const { return elemP; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLines() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLines() {} - /** - * Copy Constructor - */ - domLines( const domLines &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLines &operator=( const domLines &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLinestrips.h b/Extras/COLLADA_DOM/include/1.4/dom/domLinestrips.h deleted file mode 100644 index 6b85df1ed..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLinestrips.h +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLinestrips_h__ -#define __domLinestrips_h__ - -#include -#include - -#include -#include -#include - -/** - * The linestrips element provides the information needed to bind vertex attributes - * together and then organize those vertices into connected line-strips. - * Each line-strip described by the mesh has an arbitrary number of vertices. - * Each line segment within the line-strip is formed from the current vertex - * and the preceding vertex. - */ -class domLinestrips : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LINESTRIPS; } -protected: // Attributes -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The count attribute indicates the number of linestrip primitives. Required - * attribute. - */ - domUint attrCount; -/** - * The material attribute declares a symbol for a material. This symbol is - * bound to a material at the time of instantiation. If the material attribute - * is not specified then the lighting and shading results are application - * defined. Optional attribute. - */ - xsNCName attrMaterial; - -protected: // Elements -/** - * The input element may occur any number of times. This input is a local - * input with the offset and set attributes. @see domInput - */ - domInputLocalOffset_Array elemInput_array; -/** - * The linestrips element may have any number of p elements. @see domP - */ - domP_Array elemP_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[0] = true; } - - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[1] = true; } - - /** - * Gets the material attribute. - * @return Returns a xsNCName of the material attribute. - */ - xsNCName getMaterial() const { return attrMaterial; } - /** - * Sets the material attribute. - * @param atMaterial The new value for the material attribute. - */ - void setMaterial( xsNCName atMaterial ) { *(daeStringRef*)&attrMaterial = atMaterial; - _validAttributeArray[2] = true; } - - /** - * Gets the input element array. - * @return Returns a reference to the array of input elements. - */ - domInputLocalOffset_Array &getInput_array() { return elemInput_array; } - /** - * Gets the input element array. - * @return Returns a constant reference to the array of input elements. - */ - const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } - /** - * Gets the p element array. - * @return Returns a reference to the array of p elements. - */ - domP_Array &getP_array() { return elemP_array; } - /** - * Gets the p element array. - * @return Returns a constant reference to the array of p elements. - */ - const domP_Array &getP_array() const { return elemP_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domLinestrips() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domLinestrips() {} - /** - * Copy Constructor - */ - domLinestrips( const domLinestrips &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLinestrips &operator=( const domLinestrips &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domLookat.h b/Extras/COLLADA_DOM/include/1.4/dom/domLookat.h deleted file mode 100644 index 4a50f0c50..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domLookat.h +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domLookat_h__ -#define __domLookat_h__ - -#include -#include - - -/** - * The lookat element contains a position and orientation transformation suitable - * for aiming a camera. The lookat element contains three mathematical vectors - * within it that describe: 1.The position of the object; 2.The position - * of the interest point; 3.The direction that points up. - */ -class domLookat : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LOOKAT; } -protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - -protected: // Value - /** - * The domFloat3x3 value of the text data of this element. - */ - domFloat3x3 _value; - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the _value array. - * @return Returns a domFloat3x3 reference of the _value array. - */ - domFloat3x3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat3x3 reference of the _value array. - */ - const domFloat3x3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat3x3 &val ) { _value = val; } - -protected: - /** - * Constructor - */ - domLookat() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domLookat() {} - /** - * Copy Constructor - */ - domLookat( const domLookat &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLookat &operator=( const domLookat &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domMaterial.h b/Extras/COLLADA_DOM/include/1.4/dom/domMaterial.h deleted file mode 100644 index 2cd7b53eb..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domMaterial.h +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domMaterial_h__ -#define __domMaterial_h__ - -#include -#include - -#include -#include -#include - -/** - * Materials describe the visual appearance of a geometric object. - */ -class domMaterial : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MATERIAL; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The material element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The material must instance an effect. @see domInstance_effect - */ - domInstance_effectRef elemInstance_effect; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the instance_effect element. - * @return a daeSmartRef to the instance_effect element. - */ - const domInstance_effectRef getInstance_effect() const { return elemInstance_effect; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domMaterial() : attrId(), attrName(), elemAsset(), elemInstance_effect(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domMaterial() {} - /** - * Copy Constructor - */ - domMaterial( const domMaterial &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMaterial &operator=( const domMaterial &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domMatrix.h b/Extras/COLLADA_DOM/include/1.4/dom/domMatrix.h deleted file mode 100644 index a6a92c49c..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domMatrix.h +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domMatrix_h__ -#define __domMatrix_h__ - -#include -#include - - -/** - * Matrix transformations embody mathematical changes to points within a coordinate - * systems or the coordinate system itself. The matrix element contains a - * 4-by-4 matrix of floating-point values. - */ -class domMatrix : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MATRIX; } -protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - -protected: // Value - /** - * The domFloat4x4 value of the text data of this element. - */ - domFloat4x4 _value; - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the _value array. - * @return Returns a domFloat4x4 reference of the _value array. - */ - domFloat4x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat4x4 reference of the _value array. - */ - const domFloat4x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat4x4 &val ) { _value = val; } - -protected: - /** - * Constructor - */ - domMatrix() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domMatrix() {} - /** - * Copy Constructor - */ - domMatrix( const domMatrix &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMatrix &operator=( const domMatrix &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domMesh.h b/Extras/COLLADA_DOM/include/1.4/dom/domMesh.h deleted file mode 100644 index f6cc2763a..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domMesh.h +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domMesh_h__ -#define __domMesh_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/** - * The mesh element contains vertex and primitive information sufficient to - * describe basic geometric meshes. - */ -class domMesh : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MESH; } - -protected: // Elements -/** - * The mesh element must contain one or more source elements. @see domSource - */ - domSource_Array elemSource_array; -/** - * The mesh element must contain one vertices element. @see domVertices - */ - domVerticesRef elemVertices; -/** - * The mesh element may contain any number of lines elements. @see domLines - */ - domLines_Array elemLines_array; -/** - * The mesh element may contain any number of linestrips elements. @see - * domLinestrips - */ - domLinestrips_Array elemLinestrips_array; -/** - * The mesh element may contain any number of polygons elements. @see domPolygons - */ - domPolygons_Array elemPolygons_array; -/** - * The mesh element may contain any number of polylist elements. @see domPolylist - */ - domPolylist_Array elemPolylist_array; -/** - * The mesh element may contain any number of triangles elements. @see domTriangles - */ - domTriangles_Array elemTriangles_array; -/** - * The mesh element may contain any number of trifans elements. @see domTrifans - */ - domTrifans_Array elemTrifans_array; -/** - * The mesh element may contain any number of tristrips elements. @see domTristrips - */ - domTristrips_Array elemTristrips_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the source element array. - * @return Returns a reference to the array of source elements. - */ - domSource_Array &getSource_array() { return elemSource_array; } - /** - * Gets the source element array. - * @return Returns a constant reference to the array of source elements. - */ - const domSource_Array &getSource_array() const { return elemSource_array; } - /** - * Gets the vertices element. - * @return a daeSmartRef to the vertices element. - */ - const domVerticesRef getVertices() const { return elemVertices; } - /** - * Gets the lines element array. - * @return Returns a reference to the array of lines elements. - */ - domLines_Array &getLines_array() { return elemLines_array; } - /** - * Gets the lines element array. - * @return Returns a constant reference to the array of lines elements. - */ - const domLines_Array &getLines_array() const { return elemLines_array; } - /** - * Gets the linestrips element array. - * @return Returns a reference to the array of linestrips elements. - */ - domLinestrips_Array &getLinestrips_array() { return elemLinestrips_array; } - /** - * Gets the linestrips element array. - * @return Returns a constant reference to the array of linestrips elements. - */ - const domLinestrips_Array &getLinestrips_array() const { return elemLinestrips_array; } - /** - * Gets the polygons element array. - * @return Returns a reference to the array of polygons elements. - */ - domPolygons_Array &getPolygons_array() { return elemPolygons_array; } - /** - * Gets the polygons element array. - * @return Returns a constant reference to the array of polygons elements. - */ - const domPolygons_Array &getPolygons_array() const { return elemPolygons_array; } - /** - * Gets the polylist element array. - * @return Returns a reference to the array of polylist elements. - */ - domPolylist_Array &getPolylist_array() { return elemPolylist_array; } - /** - * Gets the polylist element array. - * @return Returns a constant reference to the array of polylist elements. - */ - const domPolylist_Array &getPolylist_array() const { return elemPolylist_array; } - /** - * Gets the triangles element array. - * @return Returns a reference to the array of triangles elements. - */ - domTriangles_Array &getTriangles_array() { return elemTriangles_array; } - /** - * Gets the triangles element array. - * @return Returns a constant reference to the array of triangles elements. - */ - const domTriangles_Array &getTriangles_array() const { return elemTriangles_array; } - /** - * Gets the trifans element array. - * @return Returns a reference to the array of trifans elements. - */ - domTrifans_Array &getTrifans_array() { return elemTrifans_array; } - /** - * Gets the trifans element array. - * @return Returns a constant reference to the array of trifans elements. - */ - const domTrifans_Array &getTrifans_array() const { return elemTrifans_array; } - /** - * Gets the tristrips element array. - * @return Returns a reference to the array of tristrips elements. - */ - domTristrips_Array &getTristrips_array() { return elemTristrips_array; } - /** - * Gets the tristrips element array. - * @return Returns a constant reference to the array of tristrips elements. - */ - const domTristrips_Array &getTristrips_array() const { return elemTristrips_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domMesh() : elemSource_array(), elemVertices(), elemLines_array(), elemLinestrips_array(), elemPolygons_array(), elemPolylist_array(), elemTriangles_array(), elemTrifans_array(), elemTristrips_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domMesh() {} - /** - * Copy Constructor - */ - domMesh( const domMesh &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMesh &operator=( const domMesh &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domMorph.h b/Extras/COLLADA_DOM/include/1.4/dom/domMorph.h deleted file mode 100644 index 093a19e40..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domMorph.h +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domMorph_h__ -#define __domMorph_h__ - -#include -#include - -#include -#include -#include - -/** - * The morph element describes the data required to blend between sets of - * static meshes. Each possible mesh that can be blended (a morph target) - * must be specified. - */ -class domMorph : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MORPH; } -public: - class domTargets; - - typedef daeSmartRef domTargetsRef; - typedef daeTArray domTargets_Array; - -/** - * The targets element declares the morph targets, their weights and any user - * defined attributes associated with them. - */ - class domTargets : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TARGETS; } - - protected: // Elements -/** - * The input element must occur at least twice. These inputs are local inputs. - * @see domInput - */ - domInputLocal_Array elemInput_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - - public: //Accessors and Mutators - /** - * Gets the input element array. - * @return Returns a reference to the array of input elements. - */ - domInputLocal_Array &getInput_array() { return elemInput_array; } - /** - * Gets the input element array. - * @return Returns a constant reference to the array of input elements. - */ - const domInputLocal_Array &getInput_array() const { return elemInput_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - protected: - /** - * Constructor - */ - domTargets() : elemInput_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domTargets() {} - /** - * Copy Constructor - */ - domTargets( const domTargets &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTargets &operator=( const domTargets &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The method attribute specifies the which blending technique to use. The - * accepted values are NORMALIZED, and RELATIVE. The default value if not - * specified is NORMALIZED. Optional attribute. - */ - domMorphMethodType attrMethod; -/** - * The source attribute indicates the base mesh. Required attribute. - */ - xsAnyURI attrSource; - -protected: // Elements -/** - * The morph element must contain at least two source elements. @see domSource - */ - domSource_Array elemSource_array; -/** - * The targets element declares the morph targets, their weights and any user - * defined attributes associated with them. @see domTargets - */ - domTargetsRef elemTargets; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the method attribute. - * @return Returns a domMorphMethodType of the method attribute. - */ - domMorphMethodType getMethod() const { return attrMethod; } - /** - * Sets the method attribute. - * @param atMethod The new value for the method attribute. - */ - void setMethod( domMorphMethodType atMethod ) { attrMethod = atMethod; - _validAttributeArray[0] = true; } - - /** - * Gets the source attribute. - * @return Returns a xsAnyURI reference of the source attribute. - */ - xsAnyURI &getSource() { return attrSource; } - /** - * Gets the source attribute. - * @return Returns a constant xsAnyURI reference of the source attribute. - */ - const xsAnyURI &getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( const xsAnyURI &atSource ) { attrSource = atSource; - _validAttributeArray[1] = true; } - - /** - * Gets the source element array. - * @return Returns a reference to the array of source elements. - */ - domSource_Array &getSource_array() { return elemSource_array; } - /** - * Gets the source element array. - * @return Returns a constant reference to the array of source elements. - */ - const domSource_Array &getSource_array() const { return elemSource_array; } - /** - * Gets the targets element. - * @return a daeSmartRef to the targets element. - */ - const domTargetsRef getTargets() const { return elemTargets; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domMorph() : attrMethod(), attrSource(), elemSource_array(), elemTargets(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domMorph() {} - /** - * Copy Constructor - */ - domMorph( const domMorph &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMorph &operator=( const domMorph &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domName_array.h b/Extras/COLLADA_DOM/include/1.4/dom/domName_array.h deleted file mode 100644 index 6ef078854..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domName_array.h +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domName_array_h__ -#define __domName_array_h__ - -#include -#include - - -/** - * The Name_array element declares the storage for a homogenous array of Name - * string values. - */ -class domName_array : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::NAME_ARRAY; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The count attribute indicates the number of values in the array. Required - * attribute. - */ - domUint attrCount; - -protected: // Value - /** - * The domListOfNames value of the text data of this element. - */ - domListOfNames _value; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[2] = true; } - - /** - * Gets the _value array. - * @return Returns a domListOfNames reference of the _value array. - */ - domListOfNames &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domListOfNames reference of the _value array. - */ - const domListOfNames &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domListOfNames &val ) { _value = val; } - -protected: - /** - * Constructor - */ - domName_array() : attrId(), attrName(), attrCount(), _value() {} - /** - * Destructor - */ - virtual ~domName_array() {} - /** - * Copy Constructor - */ - domName_array( const domName_array &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domName_array &operator=( const domName_array &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domNode.h b/Extras/COLLADA_DOM/include/1.4/dom/domNode.h deleted file mode 100644 index b3f1e4b2c..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domNode.h +++ /dev/null @@ -1,394 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domNode_h__ -#define __domNode_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/** - * Nodes embody the hierarchical relationship of elements in the scene. - */ -class domNode : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::NODE; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; -/** - * The type attribute indicates the type of the node element. The default - * value is “NODEâ€. Optional attribute. - */ - domNodeType attrType; -/** - * The layer attribute indicates the names of the layers to which this node - * belongs. For example, a value of “foreground glowing†indicates that - * this node belongs to both the ‘foreground’ layer and the ‘glowing’ - * layer. The default value is empty, indicating that the node doesn’t - * belong to any layer. Optional attribute. - */ - domListOfNames attrLayer; - -protected: // Elements -/** - * The node element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The node element may contain any number of lookat elements. @see domLookat - */ - domLookat_Array elemLookat_array; -/** - * The node element may contain any number of matrix elements. @see domMatrix - */ - domMatrix_Array elemMatrix_array; -/** - * The node element may contain any number of rotate elements. @see domRotate - */ - domRotate_Array elemRotate_array; -/** - * The node element may contain any number of scale elements. @see domScale - */ - domScale_Array elemScale_array; -/** - * The node element may contain any number of skew elements. @see domSkew - */ - domSkew_Array elemSkew_array; -/** - * The node element may contain any number of translate elements. @see domTranslate - */ - domTranslate_Array elemTranslate_array; -/** - * The node element may instance any number of camera objects. @see domInstance_camera - */ - domInstance_camera_Array elemInstance_camera_array; -/** - * The node element may instance any number of controller objects. @see - * domInstance_controller - */ - domInstance_controller_Array elemInstance_controller_array; -/** - * The node element may instance any number of geometry objects. @see domInstance_geometry - */ - domInstance_geometry_Array elemInstance_geometry_array; -/** - * The node element may instance any number of light objects. @see domInstance_light - */ - domInstance_light_Array elemInstance_light_array; -/** - * The node element may instance any number of node elements or hierarchies - * objects. @see domInstance_node - */ - domInstance_node_Array elemInstance_node_array; -/** - * The node element may be hierarchical and be the parent of any number of - * other node elements. @see domNode - */ - domNode_Array elemNode_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[2] = true; } - - /** - * Gets the type attribute. - * @return Returns a domNodeType of the type attribute. - */ - domNodeType getType() const { return attrType; } - /** - * Sets the type attribute. - * @param atType The new value for the type attribute. - */ - void setType( domNodeType atType ) { attrType = atType; - _validAttributeArray[3] = true; } - - /** - * Gets the layer array attribute. - * @return Returns a domListOfNames reference of the layer array attribute. - */ - domListOfNames &getLayer() { return attrLayer; } - /** - * Gets the layer array attribute. - * @return Returns a constant domListOfNames reference of the layer array attribute. - */ - const domListOfNames &getLayer() const { return attrLayer; } - /** - * Sets the layer array attribute. - * @param atLayer The new value for the layer array attribute. - */ - void setLayer( const domListOfNames &atLayer ) { attrLayer = atLayer; - _validAttributeArray[4] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the lookat element array. - * @return Returns a reference to the array of lookat elements. - */ - domLookat_Array &getLookat_array() { return elemLookat_array; } - /** - * Gets the lookat element array. - * @return Returns a constant reference to the array of lookat elements. - */ - const domLookat_Array &getLookat_array() const { return elemLookat_array; } - /** - * Gets the matrix element array. - * @return Returns a reference to the array of matrix elements. - */ - domMatrix_Array &getMatrix_array() { return elemMatrix_array; } - /** - * Gets the matrix element array. - * @return Returns a constant reference to the array of matrix elements. - */ - const domMatrix_Array &getMatrix_array() const { return elemMatrix_array; } - /** - * Gets the rotate element array. - * @return Returns a reference to the array of rotate elements. - */ - domRotate_Array &getRotate_array() { return elemRotate_array; } - /** - * Gets the rotate element array. - * @return Returns a constant reference to the array of rotate elements. - */ - const domRotate_Array &getRotate_array() const { return elemRotate_array; } - /** - * Gets the scale element array. - * @return Returns a reference to the array of scale elements. - */ - domScale_Array &getScale_array() { return elemScale_array; } - /** - * Gets the scale element array. - * @return Returns a constant reference to the array of scale elements. - */ - const domScale_Array &getScale_array() const { return elemScale_array; } - /** - * Gets the skew element array. - * @return Returns a reference to the array of skew elements. - */ - domSkew_Array &getSkew_array() { return elemSkew_array; } - /** - * Gets the skew element array. - * @return Returns a constant reference to the array of skew elements. - */ - const domSkew_Array &getSkew_array() const { return elemSkew_array; } - /** - * Gets the translate element array. - * @return Returns a reference to the array of translate elements. - */ - domTranslate_Array &getTranslate_array() { return elemTranslate_array; } - /** - * Gets the translate element array. - * @return Returns a constant reference to the array of translate elements. - */ - const domTranslate_Array &getTranslate_array() const { return elemTranslate_array; } - /** - * Gets the instance_camera element array. - * @return Returns a reference to the array of instance_camera elements. - */ - domInstance_camera_Array &getInstance_camera_array() { return elemInstance_camera_array; } - /** - * Gets the instance_camera element array. - * @return Returns a constant reference to the array of instance_camera elements. - */ - const domInstance_camera_Array &getInstance_camera_array() const { return elemInstance_camera_array; } - /** - * Gets the instance_controller element array. - * @return Returns a reference to the array of instance_controller elements. - */ - domInstance_controller_Array &getInstance_controller_array() { return elemInstance_controller_array; } - /** - * Gets the instance_controller element array. - * @return Returns a constant reference to the array of instance_controller elements. - */ - const domInstance_controller_Array &getInstance_controller_array() const { return elemInstance_controller_array; } - /** - * Gets the instance_geometry element array. - * @return Returns a reference to the array of instance_geometry elements. - */ - domInstance_geometry_Array &getInstance_geometry_array() { return elemInstance_geometry_array; } - /** - * Gets the instance_geometry element array. - * @return Returns a constant reference to the array of instance_geometry elements. - */ - const domInstance_geometry_Array &getInstance_geometry_array() const { return elemInstance_geometry_array; } - /** - * Gets the instance_light element array. - * @return Returns a reference to the array of instance_light elements. - */ - domInstance_light_Array &getInstance_light_array() { return elemInstance_light_array; } - /** - * Gets the instance_light element array. - * @return Returns a constant reference to the array of instance_light elements. - */ - const domInstance_light_Array &getInstance_light_array() const { return elemInstance_light_array; } - /** - * Gets the instance_node element array. - * @return Returns a reference to the array of instance_node elements. - */ - domInstance_node_Array &getInstance_node_array() { return elemInstance_node_array; } - /** - * Gets the instance_node element array. - * @return Returns a constant reference to the array of instance_node elements. - */ - const domInstance_node_Array &getInstance_node_array() const { return elemInstance_node_array; } - /** - * Gets the node element array. - * @return Returns a reference to the array of node elements. - */ - domNode_Array &getNode_array() { return elemNode_array; } - /** - * Gets the node element array. - * @return Returns a constant reference to the array of node elements. - */ - const domNode_Array &getNode_array() const { return elemNode_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domNode() : attrId(), attrName(), attrSid(), attrType(), attrLayer(), elemAsset(), elemLookat_array(), elemMatrix_array(), elemRotate_array(), elemScale_array(), elemSkew_array(), elemTranslate_array(), elemInstance_camera_array(), elemInstance_controller_array(), elemInstance_geometry_array(), elemInstance_light_array(), elemInstance_node_array(), elemNode_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domNode() {} - /** - * Copy Constructor - */ - domNode( const domNode &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domNode &operator=( const domNode &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domP.h b/Extras/COLLADA_DOM/include/1.4/dom/domP.h deleted file mode 100644 index f4f954182..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domP.h +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domP_h__ -#define __domP_h__ - -#include -#include - - -/** - * The p element represents primitive data for the primitive types (lines, - * linestrips, polygons, polylist, triangles, trifans, tristrips). The p - * element contains indices that reference into the parent's source elements - * referenced by the input elements. - */ -class domP : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::P; } - -protected: // Value - /** - * The domListOfUInts value of the text data of this element. - */ - domListOfUInts _value; - -public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domListOfUInts reference of the _value array. - */ - domListOfUInts &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domListOfUInts reference of the _value array. - */ - const domListOfUInts &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domListOfUInts &val ) { _value = val; } - -protected: - /** - * Constructor - */ - domP() : _value() {} - /** - * Destructor - */ - virtual ~domP() {} - /** - * Copy Constructor - */ - domP( const domP &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domP &operator=( const domP &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domParam.h b/Extras/COLLADA_DOM/include/1.4/dom/domParam.h deleted file mode 100644 index 83e222e73..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domParam.h +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domParam_h__ -#define __domParam_h__ - -#include -#include - - -/** - * The param element declares parametric information regarding its parent - * element. - */ -class domParam : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; } -protected: // Attributes -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; -/** - * The semantic attribute is the user-defined meaning of the parameter. Optional - * attribute. - */ - xsNMTOKEN attrSemantic; -/** - * The type attribute indicates the type of the value data. This text string - * must be understood by the application. Required attribute. - */ - xsNMTOKEN attrType; - -protected: // Value - /** - * The xsString value of the text data of this element. - */ - xsString _value; - -public: //Accessors and Mutators - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[0] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[1] = true; } - - /** - * Gets the semantic attribute. - * @return Returns a xsNMTOKEN of the semantic attribute. - */ - xsNMTOKEN getSemantic() const { return attrSemantic; } - /** - * Sets the semantic attribute. - * @param atSemantic The new value for the semantic attribute. - */ - void setSemantic( xsNMTOKEN atSemantic ) { *(daeStringRef*)&attrSemantic = atSemantic; - _validAttributeArray[2] = true; } - - /** - * Gets the type attribute. - * @return Returns a xsNMTOKEN of the type attribute. - */ - xsNMTOKEN getType() const { return attrType; } - /** - * Sets the type attribute. - * @param atType The new value for the type attribute. - */ - void setType( xsNMTOKEN atType ) { *(daeStringRef*)&attrType = atType; - _validAttributeArray[3] = true; } - - /** - * Gets the value of this element. - * @return Returns a xsString of the value. - */ - xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsString val ) { *(daeStringRef*)&_value = val; } - -protected: - /** - * Constructor - */ - domParam() : attrName(), attrSid(), attrSemantic(), attrType(), _value() {} - /** - * Destructor - */ - virtual ~domParam() {} - /** - * Copy Constructor - */ - domParam( const domParam &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domParam &operator=( const domParam &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_material.h b/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_material.h deleted file mode 100644 index 01b8cf9eb..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_material.h +++ /dev/null @@ -1,247 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domPhysics_material_h__ -#define __domPhysics_material_h__ - -#include -#include - -#include -#include -#include -#include - -/** - * This element defines the physical properties of an object. It contains - * a technique/profile with parameters. The COMMON profile defines the built-in - * names, such as static_friction. - */ -class domPhysics_material : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PHYSICS_MATERIAL; } -public: - class domTechnique_common; - - typedef daeSmartRef domTechnique_commonRef; - typedef daeTArray domTechnique_common_Array; - -/** - * The technique_common element specifies the physics_material information - * for the common profile which all COLLADA implementations need to support. - */ - class domTechnique_common : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_COMMON; } - - protected: // Elements -/** - * Dynamic friction coefficient @see domDynamic_friction - */ - domTargetableFloatRef elemDynamic_friction; -/** - * The proportion of the kinetic energy preserved in the impact (typically - * ranges from 0.0 to 1.0) @see domRestitution - */ - domTargetableFloatRef elemRestitution; -/** - * Static friction coefficient @see domStatic_friction - */ - domTargetableFloatRef elemStatic_friction; - - public: //Accessors and Mutators - /** - * Gets the dynamic_friction element. - * @return a daeSmartRef to the dynamic_friction element. - */ - const domTargetableFloatRef getDynamic_friction() const { return elemDynamic_friction; } - /** - * Gets the restitution element. - * @return a daeSmartRef to the restitution element. - */ - const domTargetableFloatRef getRestitution() const { return elemRestitution; } - /** - * Gets the static_friction element. - * @return a daeSmartRef to the static_friction element. - */ - const domTargetableFloatRef getStatic_friction() const { return elemStatic_friction; } - protected: - /** - * Constructor - */ - domTechnique_common() : elemDynamic_friction(), elemRestitution(), elemStatic_friction() {} - /** - * Destructor - */ - virtual ~domTechnique_common() {} - /** - * Copy Constructor - */ - domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique_common &operator=( const domTechnique_common &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The physics_material element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The technique_common element specifies the physics_material information - * for the common profile which all COLLADA implementations need to support. - * @see domTechnique_common - */ - domTechnique_commonRef elemTechnique_common; -/** - * This element may contain any number of non-common profile techniques. - * @see domTechnique - */ - domTechnique_Array elemTechnique_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the technique_common element. - * @return a daeSmartRef to the technique_common element. - */ - const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domPhysics_material() : attrId(), attrName(), elemAsset(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domPhysics_material() {} - /** - * Copy Constructor - */ - domPhysics_material( const domPhysics_material &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPhysics_material &operator=( const domPhysics_material &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_model.h b/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_model.h deleted file mode 100644 index 54a1d6f02..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_model.h +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domPhysics_model_h__ -#define __domPhysics_model_h__ - -#include -#include - -#include -#include -#include -#include -#include - -/** - * This element allows for building complex combinations of rigid-bodies and - * constraints that may be instantiated multiple times. - */ -class domPhysics_model : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PHYSICS_MODEL; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The physics_model element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The physics_model may define any number of rigid_body elements. @see - * domRigid_body - */ - domRigid_body_Array elemRigid_body_array; -/** - * The physics_model may define any number of rigid_constraint elements. - * @see domRigid_constraint - */ - domRigid_constraint_Array elemRigid_constraint_array; -/** - * The physics_model may instance any number of other physics_model elements. - * @see domInstance_physics_model - */ - domInstance_physics_model_Array elemInstance_physics_model_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the rigid_body element array. - * @return Returns a reference to the array of rigid_body elements. - */ - domRigid_body_Array &getRigid_body_array() { return elemRigid_body_array; } - /** - * Gets the rigid_body element array. - * @return Returns a constant reference to the array of rigid_body elements. - */ - const domRigid_body_Array &getRigid_body_array() const { return elemRigid_body_array; } - /** - * Gets the rigid_constraint element array. - * @return Returns a reference to the array of rigid_constraint elements. - */ - domRigid_constraint_Array &getRigid_constraint_array() { return elemRigid_constraint_array; } - /** - * Gets the rigid_constraint element array. - * @return Returns a constant reference to the array of rigid_constraint elements. - */ - const domRigid_constraint_Array &getRigid_constraint_array() const { return elemRigid_constraint_array; } - /** - * Gets the instance_physics_model element array. - * @return Returns a reference to the array of instance_physics_model elements. - */ - domInstance_physics_model_Array &getInstance_physics_model_array() { return elemInstance_physics_model_array; } - /** - * Gets the instance_physics_model element array. - * @return Returns a constant reference to the array of instance_physics_model elements. - */ - const domInstance_physics_model_Array &getInstance_physics_model_array() const { return elemInstance_physics_model_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domPhysics_model() : attrId(), attrName(), elemAsset(), elemRigid_body_array(), elemRigid_constraint_array(), elemInstance_physics_model_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domPhysics_model() {} - /** - * Copy Constructor - */ - domPhysics_model( const domPhysics_model &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPhysics_model &operator=( const domPhysics_model &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_scene.h b/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_scene.h deleted file mode 100644 index 7df8d6653..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domPhysics_scene.h +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domPhysics_scene_h__ -#define __domPhysics_scene_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -class domPhysics_scene : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PHYSICS_SCENE; } -public: - class domTechnique_common; - - typedef daeSmartRef domTechnique_commonRef; - typedef daeTArray domTechnique_common_Array; - -/** - * The technique_common element specifies the physics_scene information for - * the common profile which all COLLADA implementations need to support. - */ - class domTechnique_common : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_COMMON; } - - protected: // Elements -/** - * The gravity vector to use for the physics_scene. @see domGravity - */ - domTargetableFloat3Ref elemGravity; -/** - * The time_step for the physics_scene. @see domTime_step - */ - domTargetableFloatRef elemTime_step; - - public: //Accessors and Mutators - /** - * Gets the gravity element. - * @return a daeSmartRef to the gravity element. - */ - const domTargetableFloat3Ref getGravity() const { return elemGravity; } - /** - * Gets the time_step element. - * @return a daeSmartRef to the time_step element. - */ - const domTargetableFloatRef getTime_step() const { return elemTime_step; } - protected: - /** - * Constructor - */ - domTechnique_common() : elemGravity(), elemTime_step() {} - /** - * Destructor - */ - virtual ~domTechnique_common() {} - /** - * Copy Constructor - */ - domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique_common &operator=( const domTechnique_common &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The physics_scene element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * There may be any number of instance_force_field elements. @see domInstance_force_field - */ - domInstance_force_field_Array elemInstance_force_field_array; -/** - * There may be any number of instance_physics_model elements. @see domInstance_physics_model - */ - domInstance_physics_model_Array elemInstance_physics_model_array; -/** - * The technique_common element specifies the physics_scene information for - * the common profile which all COLLADA implementations need to support. - * @see domTechnique_common - */ - domTechnique_commonRef elemTechnique_common; -/** - * This element may contain any number of non-common profile techniques. - * @see domTechnique - */ - domTechnique_Array elemTechnique_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the instance_force_field element array. - * @return Returns a reference to the array of instance_force_field elements. - */ - domInstance_force_field_Array &getInstance_force_field_array() { return elemInstance_force_field_array; } - /** - * Gets the instance_force_field element array. - * @return Returns a constant reference to the array of instance_force_field elements. - */ - const domInstance_force_field_Array &getInstance_force_field_array() const { return elemInstance_force_field_array; } - /** - * Gets the instance_physics_model element array. - * @return Returns a reference to the array of instance_physics_model elements. - */ - domInstance_physics_model_Array &getInstance_physics_model_array() { return elemInstance_physics_model_array; } - /** - * Gets the instance_physics_model element array. - * @return Returns a constant reference to the array of instance_physics_model elements. - */ - const domInstance_physics_model_Array &getInstance_physics_model_array() const { return elemInstance_physics_model_array; } - /** - * Gets the technique_common element. - * @return a daeSmartRef to the technique_common element. - */ - const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domPhysics_scene() : attrId(), attrName(), elemAsset(), elemInstance_force_field_array(), elemInstance_physics_model_array(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domPhysics_scene() {} - /** - * Copy Constructor - */ - domPhysics_scene( const domPhysics_scene &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPhysics_scene &operator=( const domPhysics_scene &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domPlane.h b/Extras/COLLADA_DOM/include/1.4/dom/domPlane.h deleted file mode 100644 index d9cb475af..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domPlane.h +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domPlane_h__ -#define __domPlane_h__ - -#include -#include - -#include - -/** - * An infinite plane primitive. - */ -class domPlane : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PLANE; } -public: - class domEquation; - - typedef daeSmartRef domEquationRef; - typedef daeTArray domEquation_Array; - -/** - * 4 float values that represent the coefficients for the plane’s equation: - * Ax + By + Cz + D = 0 - */ - class domEquation : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::EQUATION; } - - protected: // Value - /** - * The domFloat4 value of the text data of this element. - */ - domFloat4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFloat4 reference of the _value array. - */ - domFloat4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat4 reference of the _value array. - */ - const domFloat4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domEquation() : _value() {} - /** - * Destructor - */ - virtual ~domEquation() {} - /** - * Copy Constructor - */ - domEquation( const domEquation &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domEquation &operator=( const domEquation &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements -/** - * 4 float values that represent the coefficients for the plane’s equation: - * Ax + By + Cz + D = 0 @see domEquation - */ - domEquationRef elemEquation; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the equation element. - * @return a daeSmartRef to the equation element. - */ - const domEquationRef getEquation() const { return elemEquation; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domPlane() : elemEquation(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domPlane() {} - /** - * Copy Constructor - */ - domPlane( const domPlane &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPlane &operator=( const domPlane &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domPolygons.h b/Extras/COLLADA_DOM/include/1.4/dom/domPolygons.h deleted file mode 100644 index 2c2610dd1..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domPolygons.h +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domPolygons_h__ -#define __domPolygons_h__ - -#include -#include - -#include -#include -#include - -/** - * The polygons element provides the information needed to bind vertex attributes - * together and then organize those vertices into individual polygons. The - * polygons described can contain arbitrary numbers of vertices. These polygons - * may be self intersecting and may also contain holes. - */ -class domPolygons : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POLYGONS; } -public: - class domPh; - - typedef daeSmartRef domPhRef; - typedef daeTArray domPh_Array; - -/** - * The ph element descripes a polygon with holes. - */ - class domPh : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PH; } - public: - class domH; - - typedef daeSmartRef domHRef; - typedef daeTArray domH_Array; - -/** - * The h element represents a hole in the polygon specified. There must be - * at least one h element. - */ - class domH : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::H; } - - protected: // Value - /** - * The domListOfUInts value of the text data of this element. - */ - domListOfUInts _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domListOfUInts reference of the _value array. - */ - domListOfUInts &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domListOfUInts reference of the _value array. - */ - const domListOfUInts &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domListOfUInts &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domH() : _value() {} - /** - * Destructor - */ - virtual ~domH() {} - /** - * Copy Constructor - */ - domH( const domH &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domH &operator=( const domH &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements -/** - * Theere may only be one p element. @see domP - */ - domPRef elemP; -/** - * The h element represents a hole in the polygon specified. There must be - * at least one h element. @see domH - */ - domH_Array elemH_array; - - public: //Accessors and Mutators - /** - * Gets the p element. - * @return a daeSmartRef to the p element. - */ - const domPRef getP() const { return elemP; } - /** - * Gets the h element array. - * @return Returns a reference to the array of h elements. - */ - domH_Array &getH_array() { return elemH_array; } - /** - * Gets the h element array. - * @return Returns a constant reference to the array of h elements. - */ - const domH_Array &getH_array() const { return elemH_array; } - protected: - /** - * Constructor - */ - domPh() : elemP(), elemH_array() {} - /** - * Destructor - */ - virtual ~domPh() {} - /** - * Copy Constructor - */ - domPh( const domPh &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPh &operator=( const domPh &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The count attribute indicates the number of polygon primitives. Required - * attribute. - */ - domUint attrCount; -/** - * The material attribute declares a symbol for a material. This symbol is - * bound to a material at the time of instantiation. If the material attribute - * is not specified then the lighting and shading results are application - * defined. Optional attribute. - */ - xsNCName attrMaterial; - -protected: // Elements -/** - * The input element may occur any number of times. This input is a local - * input with the offset and set attributes. @see domInput - */ - domInputLocalOffset_Array elemInput_array; -/** - * The p element may occur any number of times. @see domP - */ - domP_Array elemP_array; -/** - * The ph element descripes a polygon with holes. @see domPh - */ - domPh_Array elemPh_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[0] = true; } - - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[1] = true; } - - /** - * Gets the material attribute. - * @return Returns a xsNCName of the material attribute. - */ - xsNCName getMaterial() const { return attrMaterial; } - /** - * Sets the material attribute. - * @param atMaterial The new value for the material attribute. - */ - void setMaterial( xsNCName atMaterial ) { *(daeStringRef*)&attrMaterial = atMaterial; - _validAttributeArray[2] = true; } - - /** - * Gets the input element array. - * @return Returns a reference to the array of input elements. - */ - domInputLocalOffset_Array &getInput_array() { return elemInput_array; } - /** - * Gets the input element array. - * @return Returns a constant reference to the array of input elements. - */ - const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } - /** - * Gets the p element array. - * @return Returns a reference to the array of p elements. - */ - domP_Array &getP_array() { return elemP_array; } - /** - * Gets the p element array. - * @return Returns a constant reference to the array of p elements. - */ - const domP_Array &getP_array() const { return elemP_array; } - /** - * Gets the ph element array. - * @return Returns a reference to the array of ph elements. - */ - domPh_Array &getPh_array() { return elemPh_array; } - /** - * Gets the ph element array. - * @return Returns a constant reference to the array of ph elements. - */ - const domPh_Array &getPh_array() const { return elemPh_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domPolygons() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP_array(), elemPh_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domPolygons() {} - /** - * Copy Constructor - */ - domPolygons( const domPolygons &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPolygons &operator=( const domPolygons &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domPolylist.h b/Extras/COLLADA_DOM/include/1.4/dom/domPolylist.h deleted file mode 100644 index 468945c59..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domPolylist.h +++ /dev/null @@ -1,259 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domPolylist_h__ -#define __domPolylist_h__ - -#include -#include - -#include -#include -#include - -/** - * The polylist element provides the information needed to bind vertex attributes - * together and then organize those vertices into individual polygons. The - * polygons described in polylist can contain arbitrary numbers of vertices. - * Unlike the polygons element, the polylist element cannot contain polygons - * with holes. - */ -class domPolylist : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::POLYLIST; } -public: - class domVcount; - - typedef daeSmartRef domVcountRef; - typedef daeTArray domVcount_Array; - -/** - * The vcount element contains a list of integers describing the number of - * sides for each polygon described by the polylist element. The vcount element - * may occur once. - */ - class domVcount : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VCOUNT; } - - protected: // Value - /** - * The domListOfUInts value of the text data of this element. - */ - domListOfUInts _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domListOfUInts reference of the _value array. - */ - domListOfUInts &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domListOfUInts reference of the _value array. - */ - const domListOfUInts &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domListOfUInts &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domVcount() : _value() {} - /** - * Destructor - */ - virtual ~domVcount() {} - /** - * Copy Constructor - */ - domVcount( const domVcount &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domVcount &operator=( const domVcount &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The count attribute indicates the number of polygon primitives. Required - * attribute. - */ - domUint attrCount; -/** - * The material attribute declares a symbol for a material. This symbol is - * bound to a material at the time of instantiation. If the material attribute - * is not specified then the lighting and shading results are application - * defined. Optional attribute. - */ - xsNCName attrMaterial; - -protected: // Elements -/** - * The input element may occur any number of times. This input is a local - * input with the offset and set attributes. @see domInput - */ - domInputLocalOffset_Array elemInput_array; -/** - * The vcount element contains a list of integers describing the number of - * sides for each polygon described by the polylist element. The vcount element - * may occur once. @see domVcount - */ - domVcountRef elemVcount; -/** - * The p element may occur once. @see domP - */ - domPRef elemP; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[0] = true; } - - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[1] = true; } - - /** - * Gets the material attribute. - * @return Returns a xsNCName of the material attribute. - */ - xsNCName getMaterial() const { return attrMaterial; } - /** - * Sets the material attribute. - * @param atMaterial The new value for the material attribute. - */ - void setMaterial( xsNCName atMaterial ) { *(daeStringRef*)&attrMaterial = atMaterial; - _validAttributeArray[2] = true; } - - /** - * Gets the input element array. - * @return Returns a reference to the array of input elements. - */ - domInputLocalOffset_Array &getInput_array() { return elemInput_array; } - /** - * Gets the input element array. - * @return Returns a constant reference to the array of input elements. - */ - const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } - /** - * Gets the vcount element. - * @return a daeSmartRef to the vcount element. - */ - const domVcountRef getVcount() const { return elemVcount; } - /** - * Gets the p element. - * @return a daeSmartRef to the p element. - */ - const domPRef getP() const { return elemP; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domPolylist() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemVcount(), elemP(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domPolylist() {} - /** - * Copy Constructor - */ - domPolylist( const domPolylist &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPolylist &operator=( const domPolylist &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domProfile_CG.h b/Extras/COLLADA_DOM/include/1.4/dom/domProfile_CG.h deleted file mode 100644 index bcdcad35d..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domProfile_CG.h +++ /dev/null @@ -1,1248 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domProfile_CG_h__ -#define __domProfile_CG_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/** - * Opens a block of CG platform-specific data types and technique declarations. - */ -class domProfile_CG : public domFx_profile_abstract -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PROFILE_CG; } -public: - class domTechnique; - - typedef daeSmartRef domTechniqueRef; - typedef daeTArray domTechnique_Array; - -/** - * Holds a description of the textures, samplers, shaders, parameters, and - * passes necessary for rendering this effect using one method. - */ - class domTechnique : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE; } - public: - class domPass; - - typedef daeSmartRef domPassRef; - typedef daeTArray domPass_Array; - -/** - * A static declaration of all the render states, shaders, and settings for - * one rendering pipeline. - */ - class domPass : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PASS; } - public: - class domDraw; - - typedef daeSmartRef domDrawRef; - typedef daeTArray domDraw_Array; - - class domDraw : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DRAW; } - - protected: // Value - /** - * The domFx_draw_common value of the text data of this element. - */ - domFx_draw_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_draw_common of the value. - */ - domFx_draw_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_draw_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domDraw() : _value() {} - /** - * Destructor - */ - virtual ~domDraw() {} - /** - * Copy Constructor - */ - domDraw( const domDraw &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDraw &operator=( const domDraw &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domShader; - - typedef daeSmartRef domShaderRef; - typedef daeTArray domShader_Array; - -/** - * Declare and prepare a shader for execution in the rendering pipeline of - * a pass. - */ - class domShader : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SHADER; } - public: - class domCompiler_target; - - typedef daeSmartRef domCompiler_targetRef; - typedef daeTArray domCompiler_target_Array; - - class domCompiler_target : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMPILER_TARGET; } - - protected: // Value - /** - * The xsNMTOKEN value of the text data of this element. - */ - xsNMTOKEN _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNMTOKEN of the value. - */ - xsNMTOKEN getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNMTOKEN val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domCompiler_target() : _value() {} - /** - * Destructor - */ - virtual ~domCompiler_target() {} - /** - * Copy Constructor - */ - domCompiler_target( const domCompiler_target &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCompiler_target &operator=( const domCompiler_target &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domCompiler_options; - - typedef daeSmartRef domCompiler_optionsRef; - typedef daeTArray domCompiler_options_Array; - -/** - * A string containing command-line operations for the shader compiler. - */ - class domCompiler_options : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMPILER_OPTIONS; } - - protected: // Value - /** - * The xsString value of the text data of this element. - */ - xsString _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsString of the value. - */ - xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsString val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domCompiler_options() : _value() {} - /** - * Destructor - */ - virtual ~domCompiler_options() {} - /** - * Copy Constructor - */ - domCompiler_options( const domCompiler_options &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCompiler_options &operator=( const domCompiler_options &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domName; - - typedef daeSmartRef domNameRef; - typedef daeTArray domName_Array; - -/** - * The entry symbol for the shader function. - */ - class domName : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::NAME; } - protected: // Attribute - xsNCName attrSource; - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the source attribute. - * @return Returns a xsNCName of the source attribute. - */ - xsNCName getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( xsNCName atSource ) { *(daeStringRef*)&attrSource = atSource; - _validAttributeArray[0] = true; } - - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domName() : attrSource(), _value() {} - /** - * Destructor - */ - virtual ~domName() {} - /** - * Copy Constructor - */ - domName( const domName &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domName &operator=( const domName &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBind; - - typedef daeSmartRef domBindRef; - typedef daeTArray domBind_Array; - -/** - * Binds values to uniform inputs of a shader. - */ - class domBind : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BIND; } - public: - class domParam; - - typedef daeSmartRef domParamRef; - typedef daeTArray domParam_Array; - -/** - * References a predefined parameter in shader binding declarations. - */ - class domParam : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; } - protected: // Attribute - xsNCName attrRef; - - - public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a xsNCName of the ref attribute. - */ - xsNCName getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( xsNCName atRef ) { *(daeStringRef*)&attrRef = atRef; - _validAttributeArray[0] = true; } - - protected: - /** - * Constructor - */ - domParam() : attrRef() {} - /** - * Destructor - */ - virtual ~domParam() {} - /** - * Copy Constructor - */ - domParam( const domParam &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domParam &operator=( const domParam &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute -/** - * The identifier for a uniform input parameter to the shader (a formal function - * parameter or in-scope global) that will be bound to an external resource. - */ - xsNCName attrSymbol; - - protected: // Elements - domCg_param_typeRef elemCg_param_type; -/** - * References a predefined parameter in shader binding declarations. @see - * domParam - */ - domParamRef elemParam; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the symbol attribute. - * @return Returns a xsNCName of the symbol attribute. - */ - xsNCName getSymbol() const { return attrSymbol; } - /** - * Sets the symbol attribute. - * @param atSymbol The new value for the symbol attribute. - */ - void setSymbol( xsNCName atSymbol ) { *(daeStringRef*)&attrSymbol = atSymbol; - _validAttributeArray[0] = true; } - - /** - * Gets the cg_param_type element. - * @return a daeSmartRef to the cg_param_type element. - */ - const domCg_param_typeRef getCg_param_type() const { return elemCg_param_type; } - /** - * Gets the param element. - * @return a daeSmartRef to the param element. - */ - const domParamRef getParam() const { return elemParam; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domBind() : attrSymbol(), elemCg_param_type(), elemParam() {} - /** - * Destructor - */ - virtual ~domBind() {} - /** - * Copy Constructor - */ - domBind( const domBind &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBind &operator=( const domBind &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute -/** - * In which pipeline stage this programmable shader is designed to execute, - * for example, VERTEX, FRAGMENT, etc. - */ - domCg_pipeline_stage attrStage; - - protected: // Elements - domFx_annotate_common_Array elemAnnotate_array; - domCompiler_targetRef elemCompiler_target; -/** - * A string containing command-line operations for the shader compiler. @see - * domCompiler_options - */ - domCompiler_optionsRef elemCompiler_options; -/** - * The entry symbol for the shader function. @see domName - */ - domNameRef elemName; -/** - * Binds values to uniform inputs of a shader. @see domBind - */ - domBind_Array elemBind_array; - - public: //Accessors and Mutators - /** - * Gets the stage attribute. - * @return Returns a domCg_pipeline_stage of the stage attribute. - */ - domCg_pipeline_stage getStage() const { return attrStage; } - /** - * Sets the stage attribute. - * @param atStage The new value for the stage attribute. - */ - void setStage( domCg_pipeline_stage atStage ) { attrStage = atStage; - _validAttributeArray[0] = true; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the compiler_target element. - * @return a daeSmartRef to the compiler_target element. - */ - const domCompiler_targetRef getCompiler_target() const { return elemCompiler_target; } - /** - * Gets the compiler_options element. - * @return a daeSmartRef to the compiler_options element. - */ - const domCompiler_optionsRef getCompiler_options() const { return elemCompiler_options; } - /** - * Gets the name element. - * @return a daeSmartRef to the name element. - */ - const domNameRef getName() const { return elemName; } - /** - * Gets the bind element array. - * @return Returns a reference to the array of bind elements. - */ - domBind_Array &getBind_array() { return elemBind_array; } - /** - * Gets the bind element array. - * @return Returns a constant reference to the array of bind elements. - */ - const domBind_Array &getBind_array() const { return elemBind_array; } - protected: - /** - * Constructor - */ - domShader() : attrStage(), elemAnnotate_array(), elemCompiler_target(), elemCompiler_options(), elemName(), elemBind_array() {} - /** - * Destructor - */ - virtual ~domShader() {} - /** - * Copy Constructor - */ - domShader( const domShader &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domShader &operator=( const domShader &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - - protected: // Elements - domFx_annotate_common_Array elemAnnotate_array; - domFx_colortarget_common_Array elemColor_target_array; - domFx_depthtarget_common_Array elemDepth_target_array; - domFx_stenciltarget_common_Array elemStencil_target_array; - domFx_clearcolor_common_Array elemColor_clear_array; - domFx_cleardepth_common_Array elemDepth_clear_array; - domFx_clearstencil_common_Array elemStencil_clear_array; - domDrawRef elemDraw; - domGl_pipeline_settings_Array elemGl_pipeline_settings_array; -/** - * Declare and prepare a shader for execution in the rendering pipeline of - * a pass. @see domShader - */ - domShader_Array elemShader_array; - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the color_target element array. - * @return Returns a reference to the array of color_target elements. - */ - domFx_colortarget_common_Array &getColor_target_array() { return elemColor_target_array; } - /** - * Gets the color_target element array. - * @return Returns a constant reference to the array of color_target elements. - */ - const domFx_colortarget_common_Array &getColor_target_array() const { return elemColor_target_array; } - /** - * Gets the depth_target element array. - * @return Returns a reference to the array of depth_target elements. - */ - domFx_depthtarget_common_Array &getDepth_target_array() { return elemDepth_target_array; } - /** - * Gets the depth_target element array. - * @return Returns a constant reference to the array of depth_target elements. - */ - const domFx_depthtarget_common_Array &getDepth_target_array() const { return elemDepth_target_array; } - /** - * Gets the stencil_target element array. - * @return Returns a reference to the array of stencil_target elements. - */ - domFx_stenciltarget_common_Array &getStencil_target_array() { return elemStencil_target_array; } - /** - * Gets the stencil_target element array. - * @return Returns a constant reference to the array of stencil_target elements. - */ - const domFx_stenciltarget_common_Array &getStencil_target_array() const { return elemStencil_target_array; } - /** - * Gets the color_clear element array. - * @return Returns a reference to the array of color_clear elements. - */ - domFx_clearcolor_common_Array &getColor_clear_array() { return elemColor_clear_array; } - /** - * Gets the color_clear element array. - * @return Returns a constant reference to the array of color_clear elements. - */ - const domFx_clearcolor_common_Array &getColor_clear_array() const { return elemColor_clear_array; } - /** - * Gets the depth_clear element array. - * @return Returns a reference to the array of depth_clear elements. - */ - domFx_cleardepth_common_Array &getDepth_clear_array() { return elemDepth_clear_array; } - /** - * Gets the depth_clear element array. - * @return Returns a constant reference to the array of depth_clear elements. - */ - const domFx_cleardepth_common_Array &getDepth_clear_array() const { return elemDepth_clear_array; } - /** - * Gets the stencil_clear element array. - * @return Returns a reference to the array of stencil_clear elements. - */ - domFx_clearstencil_common_Array &getStencil_clear_array() { return elemStencil_clear_array; } - /** - * Gets the stencil_clear element array. - * @return Returns a constant reference to the array of stencil_clear elements. - */ - const domFx_clearstencil_common_Array &getStencil_clear_array() const { return elemStencil_clear_array; } - /** - * Gets the draw element. - * @return a daeSmartRef to the draw element. - */ - const domDrawRef getDraw() const { return elemDraw; } - /** - * Gets the gl_pipeline_settings element array. - * @return Returns a reference to the array of gl_pipeline_settings elements. - */ - domGl_pipeline_settings_Array &getGl_pipeline_settings_array() { return elemGl_pipeline_settings_array; } - /** - * Gets the gl_pipeline_settings element array. - * @return Returns a constant reference to the array of gl_pipeline_settings elements. - */ - const domGl_pipeline_settings_Array &getGl_pipeline_settings_array() const { return elemGl_pipeline_settings_array; } - /** - * Gets the shader element array. - * @return Returns a reference to the array of shader elements. - */ - domShader_Array &getShader_array() { return elemShader_array; } - /** - * Gets the shader element array. - * @return Returns a constant reference to the array of shader elements. - */ - const domShader_Array &getShader_array() const { return elemShader_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domPass() : attrSid(), elemAnnotate_array(), elemColor_target_array(), elemDepth_target_array(), elemStencil_target_array(), elemColor_clear_array(), elemDepth_clear_array(), elemStencil_clear_array(), elemDraw(), elemGl_pipeline_settings_array(), elemShader_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domPass() {} - /** - * Copy Constructor - */ - domPass( const domPass &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPass &operator=( const domPass &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - - protected: // Elements -/** - * The technique element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; - domFx_annotate_common_Array elemAnnotate_array; - domFx_code_profile_Array elemCode_array; - domFx_include_common_Array elemInclude_array; - domImage_Array elemImage_array; - domCg_newparam_Array elemNewparam_array; - domCg_setparam_Array elemSetparam_array; -/** - * A static declaration of all the render states, shaders, and settings for - * one rendering pipeline. @see domPass - */ - domPass_Array elemPass_array; - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the code element array. - * @return Returns a reference to the array of code elements. - */ - domFx_code_profile_Array &getCode_array() { return elemCode_array; } - /** - * Gets the code element array. - * @return Returns a constant reference to the array of code elements. - */ - const domFx_code_profile_Array &getCode_array() const { return elemCode_array; } - /** - * Gets the include element array. - * @return Returns a reference to the array of include elements. - */ - domFx_include_common_Array &getInclude_array() { return elemInclude_array; } - /** - * Gets the include element array. - * @return Returns a constant reference to the array of include elements. - */ - const domFx_include_common_Array &getInclude_array() const { return elemInclude_array; } - /** - * Gets the image element array. - * @return Returns a reference to the array of image elements. - */ - domImage_Array &getImage_array() { return elemImage_array; } - /** - * Gets the image element array. - * @return Returns a constant reference to the array of image elements. - */ - const domImage_Array &getImage_array() const { return elemImage_array; } - /** - * Gets the newparam element array. - * @return Returns a reference to the array of newparam elements. - */ - domCg_newparam_Array &getNewparam_array() { return elemNewparam_array; } - /** - * Gets the newparam element array. - * @return Returns a constant reference to the array of newparam elements. - */ - const domCg_newparam_Array &getNewparam_array() const { return elemNewparam_array; } - /** - * Gets the setparam element array. - * @return Returns a reference to the array of setparam elements. - */ - domCg_setparam_Array &getSetparam_array() { return elemSetparam_array; } - /** - * Gets the setparam element array. - * @return Returns a constant reference to the array of setparam elements. - */ - const domCg_setparam_Array &getSetparam_array() const { return elemSetparam_array; } - /** - * Gets the pass element array. - * @return Returns a reference to the array of pass elements. - */ - domPass_Array &getPass_array() { return elemPass_array; } - /** - * Gets the pass element array. - * @return Returns a constant reference to the array of pass elements. - */ - const domPass_Array &getPass_array() const { return elemPass_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTechnique() : attrId(), attrSid(), elemAsset(), elemAnnotate_array(), elemCode_array(), elemInclude_array(), elemImage_array(), elemNewparam_array(), elemSetparam_array(), elemPass_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domTechnique() {} - /** - * Copy Constructor - */ - domTechnique( const domTechnique &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique &operator=( const domTechnique &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The type of platform. This is a vendor-defined character string that indicates - * the platform or capability target for the technique. Optional - */ - xsNCName attrPlatform; - -protected: // Elements - domAssetRef elemAsset; - domFx_code_profile_Array elemCode_array; - domFx_include_common_Array elemInclude_array; - domImage_Array elemImage_array; - domCg_newparam_Array elemNewparam_array; -/** - * Holds a description of the textures, samplers, shaders, parameters, and - * passes necessary for rendering this effect using one method. @see domTechnique - */ - domTechnique_Array elemTechnique_array; - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the platform attribute. - * @return Returns a xsNCName of the platform attribute. - */ - xsNCName getPlatform() const { return attrPlatform; } - /** - * Sets the platform attribute. - * @param atPlatform The new value for the platform attribute. - */ - void setPlatform( xsNCName atPlatform ) { *(daeStringRef*)&attrPlatform = atPlatform; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the code element array. - * @return Returns a reference to the array of code elements. - */ - domFx_code_profile_Array &getCode_array() { return elemCode_array; } - /** - * Gets the code element array. - * @return Returns a constant reference to the array of code elements. - */ - const domFx_code_profile_Array &getCode_array() const { return elemCode_array; } - /** - * Gets the include element array. - * @return Returns a reference to the array of include elements. - */ - domFx_include_common_Array &getInclude_array() { return elemInclude_array; } - /** - * Gets the include element array. - * @return Returns a constant reference to the array of include elements. - */ - const domFx_include_common_Array &getInclude_array() const { return elemInclude_array; } - /** - * Gets the image element array. - * @return Returns a reference to the array of image elements. - */ - domImage_Array &getImage_array() { return elemImage_array; } - /** - * Gets the image element array. - * @return Returns a constant reference to the array of image elements. - */ - const domImage_Array &getImage_array() const { return elemImage_array; } - /** - * Gets the newparam element array. - * @return Returns a reference to the array of newparam elements. - */ - domCg_newparam_Array &getNewparam_array() { return elemNewparam_array; } - /** - * Gets the newparam element array. - * @return Returns a constant reference to the array of newparam elements. - */ - const domCg_newparam_Array &getNewparam_array() const { return elemNewparam_array; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domProfile_CG() : attrId(), attrPlatform(), elemAsset(), elemCode_array(), elemInclude_array(), elemImage_array(), elemNewparam_array(), elemTechnique_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domProfile_CG() {} - /** - * Copy Constructor - */ - domProfile_CG( const domProfile_CG &cpy ) : domFx_profile_abstract() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domProfile_CG &operator=( const domProfile_CG &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domProfile_COMMON.h b/Extras/COLLADA_DOM/include/1.4/dom/domProfile_COMMON.h deleted file mode 100644 index 7fa5f63cc..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domProfile_COMMON.h +++ /dev/null @@ -1,768 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domProfile_COMMON_h__ -#define __domProfile_COMMON_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -/** - * Opens a block of COMMON platform-specific data types and technique declarations. - */ -class domProfile_COMMON : public domFx_profile_abstract -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PROFILE_COMMON; } -public: - class domTechnique; - - typedef daeSmartRef domTechniqueRef; - typedef daeTArray domTechnique_Array; - -/** - * Holds a description of the textures, samplers, shaders, parameters, and - * passes necessary for rendering this effect using one method. - */ - class domTechnique : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE; } - public: - class domConstant; - - typedef daeSmartRef domConstantRef; - typedef daeTArray domConstant_Array; - - class domConstant : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CONSTANT; } - - protected: // Elements - domCommon_color_or_texture_typeRef elemEmission; - domCommon_color_or_texture_typeRef elemReflective; - domCommon_float_or_param_typeRef elemReflectivity; - domCommon_transparent_typeRef elemTransparent; - domCommon_float_or_param_typeRef elemTransparency; - domCommon_float_or_param_typeRef elemIndex_of_refraction; - - public: //Accessors and Mutators - /** - * Gets the emission element. - * @return a daeSmartRef to the emission element. - */ - const domCommon_color_or_texture_typeRef getEmission() const { return elemEmission; } - /** - * Gets the reflective element. - * @return a daeSmartRef to the reflective element. - */ - const domCommon_color_or_texture_typeRef getReflective() const { return elemReflective; } - /** - * Gets the reflectivity element. - * @return a daeSmartRef to the reflectivity element. - */ - const domCommon_float_or_param_typeRef getReflectivity() const { return elemReflectivity; } - /** - * Gets the transparent element. - * @return a daeSmartRef to the transparent element. - */ - const domCommon_transparent_typeRef getTransparent() const { return elemTransparent; } - /** - * Gets the transparency element. - * @return a daeSmartRef to the transparency element. - */ - const domCommon_float_or_param_typeRef getTransparency() const { return elemTransparency; } - /** - * Gets the index_of_refraction element. - * @return a daeSmartRef to the index_of_refraction element. - */ - const domCommon_float_or_param_typeRef getIndex_of_refraction() const { return elemIndex_of_refraction; } - protected: - /** - * Constructor - */ - domConstant() : elemEmission(), elemReflective(), elemReflectivity(), elemTransparent(), elemTransparency(), elemIndex_of_refraction() {} - /** - * Destructor - */ - virtual ~domConstant() {} - /** - * Copy Constructor - */ - domConstant( const domConstant &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domConstant &operator=( const domConstant &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLambert; - - typedef daeSmartRef domLambertRef; - typedef daeTArray domLambert_Array; - - class domLambert : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LAMBERT; } - - protected: // Elements - domCommon_color_or_texture_typeRef elemEmission; - domCommon_color_or_texture_typeRef elemAmbient; - domCommon_color_or_texture_typeRef elemDiffuse; - domCommon_color_or_texture_typeRef elemReflective; - domCommon_float_or_param_typeRef elemReflectivity; - domCommon_transparent_typeRef elemTransparent; - domCommon_float_or_param_typeRef elemTransparency; - domCommon_float_or_param_typeRef elemIndex_of_refraction; - - public: //Accessors and Mutators - /** - * Gets the emission element. - * @return a daeSmartRef to the emission element. - */ - const domCommon_color_or_texture_typeRef getEmission() const { return elemEmission; } - /** - * Gets the ambient element. - * @return a daeSmartRef to the ambient element. - */ - const domCommon_color_or_texture_typeRef getAmbient() const { return elemAmbient; } - /** - * Gets the diffuse element. - * @return a daeSmartRef to the diffuse element. - */ - const domCommon_color_or_texture_typeRef getDiffuse() const { return elemDiffuse; } - /** - * Gets the reflective element. - * @return a daeSmartRef to the reflective element. - */ - const domCommon_color_or_texture_typeRef getReflective() const { return elemReflective; } - /** - * Gets the reflectivity element. - * @return a daeSmartRef to the reflectivity element. - */ - const domCommon_float_or_param_typeRef getReflectivity() const { return elemReflectivity; } - /** - * Gets the transparent element. - * @return a daeSmartRef to the transparent element. - */ - const domCommon_transparent_typeRef getTransparent() const { return elemTransparent; } - /** - * Gets the transparency element. - * @return a daeSmartRef to the transparency element. - */ - const domCommon_float_or_param_typeRef getTransparency() const { return elemTransparency; } - /** - * Gets the index_of_refraction element. - * @return a daeSmartRef to the index_of_refraction element. - */ - const domCommon_float_or_param_typeRef getIndex_of_refraction() const { return elemIndex_of_refraction; } - protected: - /** - * Constructor - */ - domLambert() : elemEmission(), elemAmbient(), elemDiffuse(), elemReflective(), elemReflectivity(), elemTransparent(), elemTransparency(), elemIndex_of_refraction() {} - /** - * Destructor - */ - virtual ~domLambert() {} - /** - * Copy Constructor - */ - domLambert( const domLambert &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLambert &operator=( const domLambert &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPhong; - - typedef daeSmartRef domPhongRef; - typedef daeTArray domPhong_Array; - - class domPhong : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PHONG; } - - protected: // Elements - domCommon_color_or_texture_typeRef elemEmission; - domCommon_color_or_texture_typeRef elemAmbient; - domCommon_color_or_texture_typeRef elemDiffuse; - domCommon_color_or_texture_typeRef elemSpecular; - domCommon_float_or_param_typeRef elemShininess; - domCommon_color_or_texture_typeRef elemReflective; - domCommon_float_or_param_typeRef elemReflectivity; - domCommon_transparent_typeRef elemTransparent; - domCommon_float_or_param_typeRef elemTransparency; - domCommon_float_or_param_typeRef elemIndex_of_refraction; - - public: //Accessors and Mutators - /** - * Gets the emission element. - * @return a daeSmartRef to the emission element. - */ - const domCommon_color_or_texture_typeRef getEmission() const { return elemEmission; } - /** - * Gets the ambient element. - * @return a daeSmartRef to the ambient element. - */ - const domCommon_color_or_texture_typeRef getAmbient() const { return elemAmbient; } - /** - * Gets the diffuse element. - * @return a daeSmartRef to the diffuse element. - */ - const domCommon_color_or_texture_typeRef getDiffuse() const { return elemDiffuse; } - /** - * Gets the specular element. - * @return a daeSmartRef to the specular element. - */ - const domCommon_color_or_texture_typeRef getSpecular() const { return elemSpecular; } - /** - * Gets the shininess element. - * @return a daeSmartRef to the shininess element. - */ - const domCommon_float_or_param_typeRef getShininess() const { return elemShininess; } - /** - * Gets the reflective element. - * @return a daeSmartRef to the reflective element. - */ - const domCommon_color_or_texture_typeRef getReflective() const { return elemReflective; } - /** - * Gets the reflectivity element. - * @return a daeSmartRef to the reflectivity element. - */ - const domCommon_float_or_param_typeRef getReflectivity() const { return elemReflectivity; } - /** - * Gets the transparent element. - * @return a daeSmartRef to the transparent element. - */ - const domCommon_transparent_typeRef getTransparent() const { return elemTransparent; } - /** - * Gets the transparency element. - * @return a daeSmartRef to the transparency element. - */ - const domCommon_float_or_param_typeRef getTransparency() const { return elemTransparency; } - /** - * Gets the index_of_refraction element. - * @return a daeSmartRef to the index_of_refraction element. - */ - const domCommon_float_or_param_typeRef getIndex_of_refraction() const { return elemIndex_of_refraction; } - protected: - /** - * Constructor - */ - domPhong() : elemEmission(), elemAmbient(), elemDiffuse(), elemSpecular(), elemShininess(), elemReflective(), elemReflectivity(), elemTransparent(), elemTransparency(), elemIndex_of_refraction() {} - /** - * Destructor - */ - virtual ~domPhong() {} - /** - * Copy Constructor - */ - domPhong( const domPhong &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPhong &operator=( const domPhong &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBlinn; - - typedef daeSmartRef domBlinnRef; - typedef daeTArray domBlinn_Array; - - class domBlinn : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BLINN; } - - protected: // Elements - domCommon_color_or_texture_typeRef elemEmission; - domCommon_color_or_texture_typeRef elemAmbient; - domCommon_color_or_texture_typeRef elemDiffuse; - domCommon_color_or_texture_typeRef elemSpecular; - domCommon_float_or_param_typeRef elemShininess; - domCommon_color_or_texture_typeRef elemReflective; - domCommon_float_or_param_typeRef elemReflectivity; - domCommon_transparent_typeRef elemTransparent; - domCommon_float_or_param_typeRef elemTransparency; - domCommon_float_or_param_typeRef elemIndex_of_refraction; - - public: //Accessors and Mutators - /** - * Gets the emission element. - * @return a daeSmartRef to the emission element. - */ - const domCommon_color_or_texture_typeRef getEmission() const { return elemEmission; } - /** - * Gets the ambient element. - * @return a daeSmartRef to the ambient element. - */ - const domCommon_color_or_texture_typeRef getAmbient() const { return elemAmbient; } - /** - * Gets the diffuse element. - * @return a daeSmartRef to the diffuse element. - */ - const domCommon_color_or_texture_typeRef getDiffuse() const { return elemDiffuse; } - /** - * Gets the specular element. - * @return a daeSmartRef to the specular element. - */ - const domCommon_color_or_texture_typeRef getSpecular() const { return elemSpecular; } - /** - * Gets the shininess element. - * @return a daeSmartRef to the shininess element. - */ - const domCommon_float_or_param_typeRef getShininess() const { return elemShininess; } - /** - * Gets the reflective element. - * @return a daeSmartRef to the reflective element. - */ - const domCommon_color_or_texture_typeRef getReflective() const { return elemReflective; } - /** - * Gets the reflectivity element. - * @return a daeSmartRef to the reflectivity element. - */ - const domCommon_float_or_param_typeRef getReflectivity() const { return elemReflectivity; } - /** - * Gets the transparent element. - * @return a daeSmartRef to the transparent element. - */ - const domCommon_transparent_typeRef getTransparent() const { return elemTransparent; } - /** - * Gets the transparency element. - * @return a daeSmartRef to the transparency element. - */ - const domCommon_float_or_param_typeRef getTransparency() const { return elemTransparency; } - /** - * Gets the index_of_refraction element. - * @return a daeSmartRef to the index_of_refraction element. - */ - const domCommon_float_or_param_typeRef getIndex_of_refraction() const { return elemIndex_of_refraction; } - protected: - /** - * Constructor - */ - domBlinn() : elemEmission(), elemAmbient(), elemDiffuse(), elemSpecular(), elemShininess(), elemReflective(), elemReflectivity(), elemTransparent(), elemTransparency(), elemIndex_of_refraction() {} - /** - * Destructor - */ - virtual ~domBlinn() {} - /** - * Copy Constructor - */ - domBlinn( const domBlinn &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBlinn &operator=( const domBlinn &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - - protected: // Elements -/** - * The technique element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; - domImage_Array elemImage_array; - domCommon_newparam_type_Array elemNewparam_array; - domConstantRef elemConstant; - domLambertRef elemLambert; - domPhongRef elemPhong; - domBlinnRef elemBlinn; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the image element array. - * @return Returns a reference to the array of image elements. - */ - domImage_Array &getImage_array() { return elemImage_array; } - /** - * Gets the image element array. - * @return Returns a constant reference to the array of image elements. - */ - const domImage_Array &getImage_array() const { return elemImage_array; } - /** - * Gets the newparam element array. - * @return Returns a reference to the array of newparam elements. - */ - domCommon_newparam_type_Array &getNewparam_array() { return elemNewparam_array; } - /** - * Gets the newparam element array. - * @return Returns a constant reference to the array of newparam elements. - */ - const domCommon_newparam_type_Array &getNewparam_array() const { return elemNewparam_array; } - /** - * Gets the constant element. - * @return a daeSmartRef to the constant element. - */ - const domConstantRef getConstant() const { return elemConstant; } - /** - * Gets the lambert element. - * @return a daeSmartRef to the lambert element. - */ - const domLambertRef getLambert() const { return elemLambert; } - /** - * Gets the phong element. - * @return a daeSmartRef to the phong element. - */ - const domPhongRef getPhong() const { return elemPhong; } - /** - * Gets the blinn element. - * @return a daeSmartRef to the blinn element. - */ - const domBlinnRef getBlinn() const { return elemBlinn; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTechnique() : attrId(), attrSid(), elemAsset(), elemImage_array(), elemNewparam_array(), elemConstant(), elemLambert(), elemPhong(), elemBlinn(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domTechnique() {} - /** - * Copy Constructor - */ - domTechnique( const domTechnique &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique &operator=( const domTechnique &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attribute -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; - -protected: // Elements - domAssetRef elemAsset; - domImage_Array elemImage_array; - domCommon_newparam_type_Array elemNewparam_array; -/** - * Holds a description of the textures, samplers, shaders, parameters, and - * passes necessary for rendering this effect using one method. @see domTechnique - */ - domTechniqueRef elemTechnique; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the image element array. - * @return Returns a reference to the array of image elements. - */ - domImage_Array &getImage_array() { return elemImage_array; } - /** - * Gets the image element array. - * @return Returns a constant reference to the array of image elements. - */ - const domImage_Array &getImage_array() const { return elemImage_array; } - /** - * Gets the newparam element array. - * @return Returns a reference to the array of newparam elements. - */ - domCommon_newparam_type_Array &getNewparam_array() { return elemNewparam_array; } - /** - * Gets the newparam element array. - * @return Returns a constant reference to the array of newparam elements. - */ - const domCommon_newparam_type_Array &getNewparam_array() const { return elemNewparam_array; } - /** - * Gets the technique element. - * @return a daeSmartRef to the technique element. - */ - const domTechniqueRef getTechnique() const { return elemTechnique; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domProfile_COMMON() : attrId(), elemAsset(), elemImage_array(), elemNewparam_array(), elemTechnique(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domProfile_COMMON() {} - /** - * Copy Constructor - */ - domProfile_COMMON( const domProfile_COMMON &cpy ) : domFx_profile_abstract() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domProfile_COMMON &operator=( const domProfile_COMMON &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domProfile_GLES.h b/Extras/COLLADA_DOM/include/1.4/dom/domProfile_GLES.h deleted file mode 100644 index 25b384cb1..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domProfile_GLES.h +++ /dev/null @@ -1,1106 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domProfile_GLES_h__ -#define __domProfile_GLES_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -/** - * Opens a block of GLES platform-specific data types and technique declarations. - */ -class domProfile_GLES : public domFx_profile_abstract -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PROFILE_GLES; } -public: - class domTechnique; - - typedef daeSmartRef domTechniqueRef; - typedef daeTArray domTechnique_Array; - -/** - * Holds a description of the textures, samplers, shaders, parameters, and - * passes necessary for rendering this effect using one method. - */ - class domTechnique : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE; } - public: - class domSetparam; - - typedef daeSmartRef domSetparamRef; - typedef daeTArray domSetparam_Array; - - class domSetparam : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SETPARAM; } - protected: // Attribute - xsNCName attrRef; - - protected: // Elements - domFx_annotate_common_Array elemAnnotate_array; - domGles_basic_type_commonRef elemGles_basic_type_common; - - public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a xsNCName of the ref attribute. - */ - xsNCName getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( xsNCName atRef ) { *(daeStringRef*)&attrRef = atRef; - _validAttributeArray[0] = true; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the gles_basic_type_common element. - * @return a daeSmartRef to the gles_basic_type_common element. - */ - const domGles_basic_type_commonRef getGles_basic_type_common() const { return elemGles_basic_type_common; } - protected: - /** - * Constructor - */ - domSetparam() : attrRef(), elemAnnotate_array(), elemGles_basic_type_common() {} - /** - * Destructor - */ - virtual ~domSetparam() {} - /** - * Copy Constructor - */ - domSetparam( const domSetparam &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSetparam &operator=( const domSetparam &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domPass; - - typedef daeSmartRef domPassRef; - typedef daeTArray domPass_Array; - -/** - * A static declaration of all the render states, shaders, and settings for - * one rendering pipeline. - */ - class domPass : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PASS; } - public: - class domColor_target; - - typedef daeSmartRef domColor_targetRef; - typedef daeTArray domColor_target_Array; - - class domColor_target : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLOR_TARGET; } - - protected: // Value - /** - * The domGles_rendertarget_common value of the text data of this element. - */ - domGles_rendertarget_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domGles_rendertarget_common of the value. - */ - domGles_rendertarget_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domGles_rendertarget_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domColor_target() : _value() {} - /** - * Destructor - */ - virtual ~domColor_target() {} - /** - * Copy Constructor - */ - domColor_target( const domColor_target &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domColor_target &operator=( const domColor_target &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDepth_target; - - typedef daeSmartRef domDepth_targetRef; - typedef daeTArray domDepth_target_Array; - - class domDepth_target : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_TARGET; } - - protected: // Value - /** - * The domGles_rendertarget_common value of the text data of this element. - */ - domGles_rendertarget_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domGles_rendertarget_common of the value. - */ - domGles_rendertarget_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domGles_rendertarget_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domDepth_target() : _value() {} - /** - * Destructor - */ - virtual ~domDepth_target() {} - /** - * Copy Constructor - */ - domDepth_target( const domDepth_target &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDepth_target &operator=( const domDepth_target &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domStencil_target; - - typedef daeSmartRef domStencil_targetRef; - typedef daeTArray domStencil_target_Array; - - class domStencil_target : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_TARGET; } - - protected: // Value - /** - * The domGles_rendertarget_common value of the text data of this element. - */ - domGles_rendertarget_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domGles_rendertarget_common of the value. - */ - domGles_rendertarget_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domGles_rendertarget_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domStencil_target() : _value() {} - /** - * Destructor - */ - virtual ~domStencil_target() {} - /** - * Copy Constructor - */ - domStencil_target( const domStencil_target &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domStencil_target &operator=( const domStencil_target &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domColor_clear; - - typedef daeSmartRef domColor_clearRef; - typedef daeTArray domColor_clear_Array; - - class domColor_clear : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLOR_CLEAR; } - - protected: // Value - /** - * The domFx_color_common value of the text data of this element. - */ - domFx_color_common _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFx_color_common reference of the _value array. - */ - domFx_color_common &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFx_color_common reference of the _value array. - */ - const domFx_color_common &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFx_color_common &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domColor_clear() : _value() {} - /** - * Destructor - */ - virtual ~domColor_clear() {} - /** - * Copy Constructor - */ - domColor_clear( const domColor_clear &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domColor_clear &operator=( const domColor_clear &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDepth_clear; - - typedef daeSmartRef domDepth_clearRef; - typedef daeTArray domDepth_clear_Array; - - class domDepth_clear : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_CLEAR; } - - protected: // Value - /** - * The domFloat value of the text data of this element. - */ - domFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFloat of the value. - */ - domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domDepth_clear() : _value() {} - /** - * Destructor - */ - virtual ~domDepth_clear() {} - /** - * Copy Constructor - */ - domDepth_clear( const domDepth_clear &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDepth_clear &operator=( const domDepth_clear &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domStencil_clear; - - typedef daeSmartRef domStencil_clearRef; - typedef daeTArray domStencil_clear_Array; - - class domStencil_clear : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_CLEAR; } - - protected: // Value - /** - * The xsByte value of the text data of this element. - */ - xsByte _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a xsByte of the value. - */ - xsByte getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsByte val ) { _value = val; } - - protected: - /** - * Constructor - */ - domStencil_clear() : _value() {} - /** - * Destructor - */ - virtual ~domStencil_clear() {} - /** - * Copy Constructor - */ - domStencil_clear( const domStencil_clear &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domStencil_clear &operator=( const domStencil_clear &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domDraw; - - typedef daeSmartRef domDrawRef; - typedef daeTArray domDraw_Array; - - class domDraw : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DRAW; } - - protected: // Value - /** - * The domFx_draw_common value of the text data of this element. - */ - domFx_draw_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_draw_common of the value. - */ - domFx_draw_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_draw_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domDraw() : _value() {} - /** - * Destructor - */ - virtual ~domDraw() {} - /** - * Copy Constructor - */ - domDraw( const domDraw &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDraw &operator=( const domDraw &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - - protected: // Elements - domFx_annotate_common_Array elemAnnotate_array; - domColor_targetRef elemColor_target; - domDepth_targetRef elemDepth_target; - domStencil_targetRef elemStencil_target; - domColor_clearRef elemColor_clear; - domDepth_clearRef elemDepth_clear; - domStencil_clearRef elemStencil_clear; - domDrawRef elemDraw; - domGles_pipeline_settings_Array elemGles_pipeline_settings_array; - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the color_target element. - * @return a daeSmartRef to the color_target element. - */ - const domColor_targetRef getColor_target() const { return elemColor_target; } - /** - * Gets the depth_target element. - * @return a daeSmartRef to the depth_target element. - */ - const domDepth_targetRef getDepth_target() const { return elemDepth_target; } - /** - * Gets the stencil_target element. - * @return a daeSmartRef to the stencil_target element. - */ - const domStencil_targetRef getStencil_target() const { return elemStencil_target; } - /** - * Gets the color_clear element. - * @return a daeSmartRef to the color_clear element. - */ - const domColor_clearRef getColor_clear() const { return elemColor_clear; } - /** - * Gets the depth_clear element. - * @return a daeSmartRef to the depth_clear element. - */ - const domDepth_clearRef getDepth_clear() const { return elemDepth_clear; } - /** - * Gets the stencil_clear element. - * @return a daeSmartRef to the stencil_clear element. - */ - const domStencil_clearRef getStencil_clear() const { return elemStencil_clear; } - /** - * Gets the draw element. - * @return a daeSmartRef to the draw element. - */ - const domDrawRef getDraw() const { return elemDraw; } - /** - * Gets the gles_pipeline_settings element array. - * @return Returns a reference to the array of gles_pipeline_settings elements. - */ - domGles_pipeline_settings_Array &getGles_pipeline_settings_array() { return elemGles_pipeline_settings_array; } - /** - * Gets the gles_pipeline_settings element array. - * @return Returns a constant reference to the array of gles_pipeline_settings elements. - */ - const domGles_pipeline_settings_Array &getGles_pipeline_settings_array() const { return elemGles_pipeline_settings_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domPass() : attrSid(), elemAnnotate_array(), elemColor_target(), elemDepth_target(), elemStencil_target(), elemColor_clear(), elemDepth_clear(), elemStencil_clear(), elemDraw(), elemGles_pipeline_settings_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domPass() {} - /** - * Copy Constructor - */ - domPass( const domPass &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPass &operator=( const domPass &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attributes - xsID attrId; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. - */ - xsNCName attrSid; - - protected: // Elements - domAssetRef elemAsset; - domFx_annotate_common_Array elemAnnotate_array; - domImage_Array elemImage_array; - domGles_newparam_Array elemNewparam_array; - domSetparam_Array elemSetparam_array; -/** - * A static declaration of all the render states, shaders, and settings for - * one rendering pipeline. @see domPass - */ - domPass_Array elemPass_array; - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the image element array. - * @return Returns a reference to the array of image elements. - */ - domImage_Array &getImage_array() { return elemImage_array; } - /** - * Gets the image element array. - * @return Returns a constant reference to the array of image elements. - */ - const domImage_Array &getImage_array() const { return elemImage_array; } - /** - * Gets the newparam element array. - * @return Returns a reference to the array of newparam elements. - */ - domGles_newparam_Array &getNewparam_array() { return elemNewparam_array; } - /** - * Gets the newparam element array. - * @return Returns a constant reference to the array of newparam elements. - */ - const domGles_newparam_Array &getNewparam_array() const { return elemNewparam_array; } - /** - * Gets the setparam element array. - * @return Returns a reference to the array of setparam elements. - */ - domSetparam_Array &getSetparam_array() { return elemSetparam_array; } - /** - * Gets the setparam element array. - * @return Returns a constant reference to the array of setparam elements. - */ - const domSetparam_Array &getSetparam_array() const { return elemSetparam_array; } - /** - * Gets the pass element array. - * @return Returns a reference to the array of pass elements. - */ - domPass_Array &getPass_array() { return elemPass_array; } - /** - * Gets the pass element array. - * @return Returns a constant reference to the array of pass elements. - */ - const domPass_Array &getPass_array() const { return elemPass_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTechnique() : attrId(), attrSid(), elemAsset(), elemAnnotate_array(), elemImage_array(), elemNewparam_array(), elemSetparam_array(), elemPass_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domTechnique() {} - /** - * Copy Constructor - */ - domTechnique( const domTechnique &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique &operator=( const domTechnique &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The type of platform. This is a vendor-defined character string that indicates - * the platform or capability target for the technique. Optional - */ - xsNCName attrPlatform; - -protected: // Elements - domAssetRef elemAsset; - domImage_Array elemImage_array; - domGles_newparam_Array elemNewparam_array; -/** - * Holds a description of the textures, samplers, shaders, parameters, and - * passes necessary for rendering this effect using one method. @see domTechnique - */ - domTechnique_Array elemTechnique_array; - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the platform attribute. - * @return Returns a xsNCName of the platform attribute. - */ - xsNCName getPlatform() const { return attrPlatform; } - /** - * Sets the platform attribute. - * @param atPlatform The new value for the platform attribute. - */ - void setPlatform( xsNCName atPlatform ) { *(daeStringRef*)&attrPlatform = atPlatform; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the image element array. - * @return Returns a reference to the array of image elements. - */ - domImage_Array &getImage_array() { return elemImage_array; } - /** - * Gets the image element array. - * @return Returns a constant reference to the array of image elements. - */ - const domImage_Array &getImage_array() const { return elemImage_array; } - /** - * Gets the newparam element array. - * @return Returns a reference to the array of newparam elements. - */ - domGles_newparam_Array &getNewparam_array() { return elemNewparam_array; } - /** - * Gets the newparam element array. - * @return Returns a constant reference to the array of newparam elements. - */ - const domGles_newparam_Array &getNewparam_array() const { return elemNewparam_array; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domProfile_GLES() : attrId(), attrPlatform(), elemAsset(), elemImage_array(), elemNewparam_array(), elemTechnique_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domProfile_GLES() {} - /** - * Copy Constructor - */ - domProfile_GLES( const domProfile_GLES &cpy ) : domFx_profile_abstract() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domProfile_GLES &operator=( const domProfile_GLES &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domProfile_GLSL.h b/Extras/COLLADA_DOM/include/1.4/dom/domProfile_GLSL.h deleted file mode 100644 index dafb8223e..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domProfile_GLSL.h +++ /dev/null @@ -1,1223 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domProfile_GLSL_h__ -#define __domProfile_GLSL_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/** - * Opens a block of GLSL platform-specific data types and technique declarations. - */ -class domProfile_GLSL : public domFx_profile_abstract -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PROFILE_GLSL; } -public: - class domTechnique; - - typedef daeSmartRef domTechniqueRef; - typedef daeTArray domTechnique_Array; - -/** - * Holds a description of the textures, samplers, shaders, parameters, and - * passes necessary for rendering this effect using one method. - */ - class domTechnique : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE; } - public: - class domPass; - - typedef daeSmartRef domPassRef; - typedef daeTArray domPass_Array; - -/** - * A static declaration of all the render states, shaders, and settings for - * one rendering pipeline. - */ - class domPass : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PASS; } - public: - class domDraw; - - typedef daeSmartRef domDrawRef; - typedef daeTArray domDraw_Array; - - class domDraw : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DRAW; } - - protected: // Value - /** - * The domFx_draw_common value of the text data of this element. - */ - domFx_draw_common _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFx_draw_common of the value. - */ - domFx_draw_common getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFx_draw_common val ) { _value = val; } - - protected: - /** - * Constructor - */ - domDraw() : _value() {} - /** - * Destructor - */ - virtual ~domDraw() {} - /** - * Copy Constructor - */ - domDraw( const domDraw &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDraw &operator=( const domDraw &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domShader; - - typedef daeSmartRef domShaderRef; - typedef daeTArray domShader_Array; - -/** - * Declare and prepare a shader for execution in the rendering pipeline of - * a pass. - */ - class domShader : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SHADER; } - public: - class domCompiler_target; - - typedef daeSmartRef domCompiler_targetRef; - typedef daeTArray domCompiler_target_Array; - -/** - * A string declaring which profile or platform the compiler is targeting - * this shader for. - */ - class domCompiler_target : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMPILER_TARGET; } - - protected: // Value - /** - * The xsNMTOKEN value of the text data of this element. - */ - xsNMTOKEN _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNMTOKEN of the value. - */ - xsNMTOKEN getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNMTOKEN val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domCompiler_target() : _value() {} - /** - * Destructor - */ - virtual ~domCompiler_target() {} - /** - * Copy Constructor - */ - domCompiler_target( const domCompiler_target &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCompiler_target &operator=( const domCompiler_target &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domCompiler_options; - - typedef daeSmartRef domCompiler_optionsRef; - typedef daeTArray domCompiler_options_Array; - -/** - * A string containing command-line operations for the shader compiler. - */ - class domCompiler_options : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMPILER_OPTIONS; } - - protected: // Value - /** - * The xsString value of the text data of this element. - */ - xsString _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsString of the value. - */ - xsString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsString val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domCompiler_options() : _value() {} - /** - * Destructor - */ - virtual ~domCompiler_options() {} - /** - * Copy Constructor - */ - domCompiler_options( const domCompiler_options &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domCompiler_options &operator=( const domCompiler_options &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domName; - - typedef daeSmartRef domNameRef; - typedef daeTArray domName_Array; - -/** - * The entry symbol for the shader function. - */ - class domName : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::NAME; } - protected: // Attribute - xsNCName attrSource; - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the source attribute. - * @return Returns a xsNCName of the source attribute. - */ - xsNCName getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( xsNCName atSource ) { *(daeStringRef*)&attrSource = atSource; - _validAttributeArray[0] = true; } - - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domName() : attrSource(), _value() {} - /** - * Destructor - */ - virtual ~domName() {} - /** - * Copy Constructor - */ - domName( const domName &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domName &operator=( const domName &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domBind; - - typedef daeSmartRef domBindRef; - typedef daeTArray domBind_Array; - -/** - * Binds values to uniform inputs of a shader. - */ - class domBind : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BIND; } - public: - class domParam; - - typedef daeSmartRef domParamRef; - typedef daeTArray domParam_Array; - - class domParam : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PARAM; } - protected: // Attribute - xsString attrRef; - - - public: //Accessors and Mutators - /** - * Gets the ref attribute. - * @return Returns a xsString of the ref attribute. - */ - xsString getRef() const { return attrRef; } - /** - * Sets the ref attribute. - * @param atRef The new value for the ref attribute. - */ - void setRef( xsString atRef ) { *(daeStringRef*)&attrRef = atRef; - _validAttributeArray[0] = true; } - - protected: - /** - * Constructor - */ - domParam() : attrRef() {} - /** - * Destructor - */ - virtual ~domParam() {} - /** - * Copy Constructor - */ - domParam( const domParam &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domParam &operator=( const domParam &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute -/** - * The identifier for a uniform input parameter to the shader (a formal function - * parameter or in-scope global) that will be bound to an external resource. - */ - xsNCName attrSymbol; - - protected: // Elements - domGlsl_param_typeRef elemGlsl_param_type; - domParamRef elemParam; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the symbol attribute. - * @return Returns a xsNCName of the symbol attribute. - */ - xsNCName getSymbol() const { return attrSymbol; } - /** - * Sets the symbol attribute. - * @param atSymbol The new value for the symbol attribute. - */ - void setSymbol( xsNCName atSymbol ) { *(daeStringRef*)&attrSymbol = atSymbol; - _validAttributeArray[0] = true; } - - /** - * Gets the glsl_param_type element. - * @return a daeSmartRef to the glsl_param_type element. - */ - const domGlsl_param_typeRef getGlsl_param_type() const { return elemGlsl_param_type; } - /** - * Gets the param element. - * @return a daeSmartRef to the param element. - */ - const domParamRef getParam() const { return elemParam; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domBind() : attrSymbol(), elemGlsl_param_type(), elemParam() {} - /** - * Destructor - */ - virtual ~domBind() {} - /** - * Copy Constructor - */ - domBind( const domBind &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBind &operator=( const domBind &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute -/** - * In which pipeline stage this programmable shader is designed to execute, - * for example, VERTEX, FRAGMENT, etc. - */ - domGlsl_pipeline_stage attrStage; - - protected: // Elements - domFx_annotate_common_Array elemAnnotate_array; -/** - * A string declaring which profile or platform the compiler is targeting - * this shader for. @see domCompiler_target - */ - domCompiler_targetRef elemCompiler_target; -/** - * A string containing command-line operations for the shader compiler. @see - * domCompiler_options - */ - domCompiler_optionsRef elemCompiler_options; -/** - * The entry symbol for the shader function. @see domName - */ - domNameRef elemName; -/** - * Binds values to uniform inputs of a shader. @see domBind - */ - domBind_Array elemBind_array; - - public: //Accessors and Mutators - /** - * Gets the stage attribute. - * @return Returns a domGlsl_pipeline_stage of the stage attribute. - */ - domGlsl_pipeline_stage getStage() const { return attrStage; } - /** - * Sets the stage attribute. - * @param atStage The new value for the stage attribute. - */ - void setStage( domGlsl_pipeline_stage atStage ) { attrStage = atStage; - _validAttributeArray[0] = true; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the compiler_target element. - * @return a daeSmartRef to the compiler_target element. - */ - const domCompiler_targetRef getCompiler_target() const { return elemCompiler_target; } - /** - * Gets the compiler_options element. - * @return a daeSmartRef to the compiler_options element. - */ - const domCompiler_optionsRef getCompiler_options() const { return elemCompiler_options; } - /** - * Gets the name element. - * @return a daeSmartRef to the name element. - */ - const domNameRef getName() const { return elemName; } - /** - * Gets the bind element array. - * @return Returns a reference to the array of bind elements. - */ - domBind_Array &getBind_array() { return elemBind_array; } - /** - * Gets the bind element array. - * @return Returns a constant reference to the array of bind elements. - */ - const domBind_Array &getBind_array() const { return elemBind_array; } - protected: - /** - * Constructor - */ - domShader() : attrStage(), elemAnnotate_array(), elemCompiler_target(), elemCompiler_options(), elemName(), elemBind_array() {} - /** - * Destructor - */ - virtual ~domShader() {} - /** - * Copy Constructor - */ - domShader( const domShader &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domShader &operator=( const domShader &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - - protected: // Elements - domFx_annotate_common_Array elemAnnotate_array; - domFx_colortarget_common_Array elemColor_target_array; - domFx_depthtarget_common_Array elemDepth_target_array; - domFx_stenciltarget_common_Array elemStencil_target_array; - domFx_clearcolor_common_Array elemColor_clear_array; - domFx_cleardepth_common_Array elemDepth_clear_array; - domFx_clearstencil_common_Array elemStencil_clear_array; - domDrawRef elemDraw; - domGl_pipeline_settings_Array elemGl_pipeline_settings_array; -/** - * Declare and prepare a shader for execution in the rendering pipeline of - * a pass. @see domShader - */ - domShader_Array elemShader_array; - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the color_target element array. - * @return Returns a reference to the array of color_target elements. - */ - domFx_colortarget_common_Array &getColor_target_array() { return elemColor_target_array; } - /** - * Gets the color_target element array. - * @return Returns a constant reference to the array of color_target elements. - */ - const domFx_colortarget_common_Array &getColor_target_array() const { return elemColor_target_array; } - /** - * Gets the depth_target element array. - * @return Returns a reference to the array of depth_target elements. - */ - domFx_depthtarget_common_Array &getDepth_target_array() { return elemDepth_target_array; } - /** - * Gets the depth_target element array. - * @return Returns a constant reference to the array of depth_target elements. - */ - const domFx_depthtarget_common_Array &getDepth_target_array() const { return elemDepth_target_array; } - /** - * Gets the stencil_target element array. - * @return Returns a reference to the array of stencil_target elements. - */ - domFx_stenciltarget_common_Array &getStencil_target_array() { return elemStencil_target_array; } - /** - * Gets the stencil_target element array. - * @return Returns a constant reference to the array of stencil_target elements. - */ - const domFx_stenciltarget_common_Array &getStencil_target_array() const { return elemStencil_target_array; } - /** - * Gets the color_clear element array. - * @return Returns a reference to the array of color_clear elements. - */ - domFx_clearcolor_common_Array &getColor_clear_array() { return elemColor_clear_array; } - /** - * Gets the color_clear element array. - * @return Returns a constant reference to the array of color_clear elements. - */ - const domFx_clearcolor_common_Array &getColor_clear_array() const { return elemColor_clear_array; } - /** - * Gets the depth_clear element array. - * @return Returns a reference to the array of depth_clear elements. - */ - domFx_cleardepth_common_Array &getDepth_clear_array() { return elemDepth_clear_array; } - /** - * Gets the depth_clear element array. - * @return Returns a constant reference to the array of depth_clear elements. - */ - const domFx_cleardepth_common_Array &getDepth_clear_array() const { return elemDepth_clear_array; } - /** - * Gets the stencil_clear element array. - * @return Returns a reference to the array of stencil_clear elements. - */ - domFx_clearstencil_common_Array &getStencil_clear_array() { return elemStencil_clear_array; } - /** - * Gets the stencil_clear element array. - * @return Returns a constant reference to the array of stencil_clear elements. - */ - const domFx_clearstencil_common_Array &getStencil_clear_array() const { return elemStencil_clear_array; } - /** - * Gets the draw element. - * @return a daeSmartRef to the draw element. - */ - const domDrawRef getDraw() const { return elemDraw; } - /** - * Gets the gl_pipeline_settings element array. - * @return Returns a reference to the array of gl_pipeline_settings elements. - */ - domGl_pipeline_settings_Array &getGl_pipeline_settings_array() { return elemGl_pipeline_settings_array; } - /** - * Gets the gl_pipeline_settings element array. - * @return Returns a constant reference to the array of gl_pipeline_settings elements. - */ - const domGl_pipeline_settings_Array &getGl_pipeline_settings_array() const { return elemGl_pipeline_settings_array; } - /** - * Gets the shader element array. - * @return Returns a reference to the array of shader elements. - */ - domShader_Array &getShader_array() { return elemShader_array; } - /** - * Gets the shader element array. - * @return Returns a constant reference to the array of shader elements. - */ - const domShader_Array &getShader_array() const { return elemShader_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domPass() : attrSid(), elemAnnotate_array(), elemColor_target_array(), elemDepth_target_array(), elemStencil_target_array(), elemColor_clear_array(), elemDepth_clear_array(), elemStencil_clear_array(), elemDraw(), elemGl_pipeline_settings_array(), elemShader_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domPass() {} - /** - * Copy Constructor - */ - domPass( const domPass &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domPass &operator=( const domPass &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - - protected: // Elements - domFx_annotate_common_Array elemAnnotate_array; - domFx_code_profile_Array elemCode_array; - domFx_include_common_Array elemInclude_array; - domImage_Array elemImage_array; - domGlsl_newparam_Array elemNewparam_array; - domGlsl_setparam_Array elemSetparam_array; -/** - * A static declaration of all the render states, shaders, and settings for - * one rendering pipeline. @see domPass - */ - domPass_Array elemPass_array; - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[1] = true; } - - /** - * Gets the annotate element array. - * @return Returns a reference to the array of annotate elements. - */ - domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; } - /** - * Gets the annotate element array. - * @return Returns a constant reference to the array of annotate elements. - */ - const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; } - /** - * Gets the code element array. - * @return Returns a reference to the array of code elements. - */ - domFx_code_profile_Array &getCode_array() { return elemCode_array; } - /** - * Gets the code element array. - * @return Returns a constant reference to the array of code elements. - */ - const domFx_code_profile_Array &getCode_array() const { return elemCode_array; } - /** - * Gets the include element array. - * @return Returns a reference to the array of include elements. - */ - domFx_include_common_Array &getInclude_array() { return elemInclude_array; } - /** - * Gets the include element array. - * @return Returns a constant reference to the array of include elements. - */ - const domFx_include_common_Array &getInclude_array() const { return elemInclude_array; } - /** - * Gets the image element array. - * @return Returns a reference to the array of image elements. - */ - domImage_Array &getImage_array() { return elemImage_array; } - /** - * Gets the image element array. - * @return Returns a constant reference to the array of image elements. - */ - const domImage_Array &getImage_array() const { return elemImage_array; } - /** - * Gets the newparam element array. - * @return Returns a reference to the array of newparam elements. - */ - domGlsl_newparam_Array &getNewparam_array() { return elemNewparam_array; } - /** - * Gets the newparam element array. - * @return Returns a constant reference to the array of newparam elements. - */ - const domGlsl_newparam_Array &getNewparam_array() const { return elemNewparam_array; } - /** - * Gets the setparam element array. - * @return Returns a reference to the array of setparam elements. - */ - domGlsl_setparam_Array &getSetparam_array() { return elemSetparam_array; } - /** - * Gets the setparam element array. - * @return Returns a constant reference to the array of setparam elements. - */ - const domGlsl_setparam_Array &getSetparam_array() const { return elemSetparam_array; } - /** - * Gets the pass element array. - * @return Returns a reference to the array of pass elements. - */ - domPass_Array &getPass_array() { return elemPass_array; } - /** - * Gets the pass element array. - * @return Returns a constant reference to the array of pass elements. - */ - const domPass_Array &getPass_array() const { return elemPass_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTechnique() : attrId(), attrSid(), elemAnnotate_array(), elemCode_array(), elemInclude_array(), elemImage_array(), elemNewparam_array(), elemSetparam_array(), elemPass_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domTechnique() {} - /** - * Copy Constructor - */ - domTechnique( const domTechnique &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique &operator=( const domTechnique &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attribute -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; - -protected: // Elements - domAssetRef elemAsset; - domFx_code_profile_Array elemCode_array; - domFx_include_common_Array elemInclude_array; - domImage_Array elemImage_array; - domGlsl_newparam_Array elemNewparam_array; -/** - * Holds a description of the textures, samplers, shaders, parameters, and - * passes necessary for rendering this effect using one method. @see domTechnique - */ - domTechnique_Array elemTechnique_array; - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the code element array. - * @return Returns a reference to the array of code elements. - */ - domFx_code_profile_Array &getCode_array() { return elemCode_array; } - /** - * Gets the code element array. - * @return Returns a constant reference to the array of code elements. - */ - const domFx_code_profile_Array &getCode_array() const { return elemCode_array; } - /** - * Gets the include element array. - * @return Returns a reference to the array of include elements. - */ - domFx_include_common_Array &getInclude_array() { return elemInclude_array; } - /** - * Gets the include element array. - * @return Returns a constant reference to the array of include elements. - */ - const domFx_include_common_Array &getInclude_array() const { return elemInclude_array; } - /** - * Gets the image element array. - * @return Returns a reference to the array of image elements. - */ - domImage_Array &getImage_array() { return elemImage_array; } - /** - * Gets the image element array. - * @return Returns a constant reference to the array of image elements. - */ - const domImage_Array &getImage_array() const { return elemImage_array; } - /** - * Gets the newparam element array. - * @return Returns a reference to the array of newparam elements. - */ - domGlsl_newparam_Array &getNewparam_array() { return elemNewparam_array; } - /** - * Gets the newparam element array. - * @return Returns a constant reference to the array of newparam elements. - */ - const domGlsl_newparam_Array &getNewparam_array() const { return elemNewparam_array; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domProfile_GLSL() : attrId(), elemAsset(), elemCode_array(), elemInclude_array(), elemImage_array(), elemNewparam_array(), elemTechnique_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domProfile_GLSL() {} - /** - * Copy Constructor - */ - domProfile_GLSL( const domProfile_GLSL &cpy ) : domFx_profile_abstract() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domProfile_GLSL &operator=( const domProfile_GLSL &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domRigid_body.h b/Extras/COLLADA_DOM/include/1.4/dom/domRigid_body.h deleted file mode 100644 index 2c2b31f41..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domRigid_body.h +++ /dev/null @@ -1,832 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domRigid_body_h__ -#define __domRigid_body_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/** - * This element allows for describing simulated bodies that do not deform. - * These bodies may or may not be connected by constraints (hinge, ball-joint - * etc.). Rigid-bodies, constraints etc. are encapsulated in physics_model - * elements to allow for instantiating complex models. - */ -class domRigid_body : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RIGID_BODY; } -public: - class domTechnique_common; - - typedef daeSmartRef domTechnique_commonRef; - typedef daeTArray domTechnique_common_Array; - -/** - * The technique_common element specifies the rigid_body information for the - * common profile which all COLLADA implementations need to support. - */ - class domTechnique_common : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_COMMON; } - public: - class domDynamic; - - typedef daeSmartRef domDynamicRef; - typedef daeTArray domDynamic_Array; - -/** - * If false, the rigid_body is not moveable - */ - class domDynamic : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DYNAMIC; } - protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - - protected: // Value - /** - * The domBool value of the text data of this element. - */ - domBool _value; - - public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the value of this element. - * @return a domBool of the value. - */ - domBool getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domBool val ) { _value = val; } - - protected: - /** - * Constructor - */ - domDynamic() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domDynamic() {} - /** - * Copy Constructor - */ - domDynamic( const domDynamic &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domDynamic &operator=( const domDynamic &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domMass_frame; - - typedef daeSmartRef domMass_frameRef; - typedef daeTArray domMass_frame_Array; - -/** - * Defines the center and orientation of mass of the rigid-body relative to - * the local origin of the “root†shape.This makes the off-diagonal elements - * of the inertia tensor (products of inertia) all 0 and allows us to just - * store the diagonal elements (moments of inertia). - */ - class domMass_frame : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MASS_FRAME; } - - protected: // Elements - domTranslate_Array elemTranslate_array; - domRotate_Array elemRotate_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the translate element array. - * @return Returns a reference to the array of translate elements. - */ - domTranslate_Array &getTranslate_array() { return elemTranslate_array; } - /** - * Gets the translate element array. - * @return Returns a constant reference to the array of translate elements. - */ - const domTranslate_Array &getTranslate_array() const { return elemTranslate_array; } - /** - * Gets the rotate element array. - * @return Returns a reference to the array of rotate elements. - */ - domRotate_Array &getRotate_array() { return elemRotate_array; } - /** - * Gets the rotate element array. - * @return Returns a constant reference to the array of rotate elements. - */ - const domRotate_Array &getRotate_array() const { return elemRotate_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domMass_frame() : elemTranslate_array(), elemRotate_array() {} - /** - * Destructor - */ - virtual ~domMass_frame() {} - /** - * Copy Constructor - */ - domMass_frame( const domMass_frame &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domMass_frame &operator=( const domMass_frame &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domShape; - - typedef daeSmartRef domShapeRef; - typedef daeTArray domShape_Array; - -/** - * This element allows for describing components of a rigid_body. - */ - class domShape : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SHAPE; } - public: - class domHollow; - - typedef daeSmartRef domHollowRef; - typedef daeTArray domHollow_Array; - -/** - * If true, the mass is distributed along the surface of the shape - */ - class domHollow : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HOLLOW; } - protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - - protected: // Value - /** - * The domBool value of the text data of this element. - */ - domBool _value; - - public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the value of this element. - * @return a domBool of the value. - */ - domBool getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domBool val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHollow() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domHollow() {} - /** - * Copy Constructor - */ - domHollow( const domHollow &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHollow &operator=( const domHollow &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements -/** - * If true, the mass is distributed along the surface of the shape @see domHollow - */ - domHollowRef elemHollow; -/** - * The mass of the shape. @see domMass - */ - domTargetableFloatRef elemMass; -/** - * The density of the shape. @see domDensity - */ - domTargetableFloatRef elemDensity; -/** - * References a physics_material for the shape. @see domInstance_physics_material - */ - domInstance_physics_materialRef elemInstance_physics_material; -/** - * Defines a physics_material for the shape. @see domPhysics_material - */ - domPhysics_materialRef elemPhysics_material; -/** - * Instances a geometry to use to define this shape. @see domInstance_geometry - */ - domInstance_geometryRef elemInstance_geometry; -/** - * Defines a plane to use for this shape. @see domPlane - */ - domPlaneRef elemPlane; -/** - * Defines a box to use for this shape. @see domBox - */ - domBoxRef elemBox; -/** - * Defines a sphere to use for this shape. @see domSphere - */ - domSphereRef elemSphere; -/** - * Defines a cyliner to use for this shape. @see domCylinder - */ - domCylinderRef elemCylinder; -/** - * Defines a tapered_cylinder to use for this shape. @see domTapered_cylinder - */ - domTapered_cylinderRef elemTapered_cylinder; -/** - * Defines a capsule to use for this shape. @see domCapsule - */ - domCapsuleRef elemCapsule; -/** - * Defines a tapered_capsule to use for this shape. @see domTapered_capsule - */ - domTapered_capsuleRef elemTapered_capsule; -/** - * Allows a tranformation for the shape. @see domTranslate - */ - domTranslate_Array elemTranslate_array; -/** - * Allows a tranformation for the shape. @see domRotate - */ - domRotate_Array elemRotate_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the hollow element. - * @return a daeSmartRef to the hollow element. - */ - const domHollowRef getHollow() const { return elemHollow; } - /** - * Gets the mass element. - * @return a daeSmartRef to the mass element. - */ - const domTargetableFloatRef getMass() const { return elemMass; } - /** - * Gets the density element. - * @return a daeSmartRef to the density element. - */ - const domTargetableFloatRef getDensity() const { return elemDensity; } - /** - * Gets the instance_physics_material element. - * @return a daeSmartRef to the instance_physics_material element. - */ - const domInstance_physics_materialRef getInstance_physics_material() const { return elemInstance_physics_material; } - /** - * Gets the physics_material element. - * @return a daeSmartRef to the physics_material element. - */ - const domPhysics_materialRef getPhysics_material() const { return elemPhysics_material; } - /** - * Gets the instance_geometry element. - * @return a daeSmartRef to the instance_geometry element. - */ - const domInstance_geometryRef getInstance_geometry() const { return elemInstance_geometry; } - /** - * Gets the plane element. - * @return a daeSmartRef to the plane element. - */ - const domPlaneRef getPlane() const { return elemPlane; } - /** - * Gets the box element. - * @return a daeSmartRef to the box element. - */ - const domBoxRef getBox() const { return elemBox; } - /** - * Gets the sphere element. - * @return a daeSmartRef to the sphere element. - */ - const domSphereRef getSphere() const { return elemSphere; } - /** - * Gets the cylinder element. - * @return a daeSmartRef to the cylinder element. - */ - const domCylinderRef getCylinder() const { return elemCylinder; } - /** - * Gets the tapered_cylinder element. - * @return a daeSmartRef to the tapered_cylinder element. - */ - const domTapered_cylinderRef getTapered_cylinder() const { return elemTapered_cylinder; } - /** - * Gets the capsule element. - * @return a daeSmartRef to the capsule element. - */ - const domCapsuleRef getCapsule() const { return elemCapsule; } - /** - * Gets the tapered_capsule element. - * @return a daeSmartRef to the tapered_capsule element. - */ - const domTapered_capsuleRef getTapered_capsule() const { return elemTapered_capsule; } - /** - * Gets the translate element array. - * @return Returns a reference to the array of translate elements. - */ - domTranslate_Array &getTranslate_array() { return elemTranslate_array; } - /** - * Gets the translate element array. - * @return Returns a constant reference to the array of translate elements. - */ - const domTranslate_Array &getTranslate_array() const { return elemTranslate_array; } - /** - * Gets the rotate element array. - * @return Returns a reference to the array of rotate elements. - */ - domRotate_Array &getRotate_array() { return elemRotate_array; } - /** - * Gets the rotate element array. - * @return Returns a constant reference to the array of rotate elements. - */ - const domRotate_Array &getRotate_array() const { return elemRotate_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domShape() : elemHollow(), elemMass(), elemDensity(), elemInstance_physics_material(), elemPhysics_material(), elemInstance_geometry(), elemPlane(), elemBox(), elemSphere(), elemCylinder(), elemTapered_cylinder(), elemCapsule(), elemTapered_capsule(), elemTranslate_array(), elemRotate_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domShape() {} - /** - * Copy Constructor - */ - domShape( const domShape &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domShape &operator=( const domShape &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements -/** - * If false, the rigid_body is not moveable @see domDynamic - */ - domDynamicRef elemDynamic; -/** - * The total mass of the rigid-body @see domMass - */ - domTargetableFloatRef elemMass; -/** - * Defines the center and orientation of mass of the rigid-body relative to - * the local origin of the “root†shape.This makes the off-diagonal elements - * of the inertia tensor (products of inertia) all 0 and allows us to just - * store the diagonal elements (moments of inertia). @see domMass_frame - */ - domMass_frameRef elemMass_frame; -/** - * float3 – The diagonal elements of the inertia tensor (moments of inertia), - * which is represented in the local frame of the center of mass. See above. - * @see domInertia - */ - domTargetableFloat3Ref elemInertia; -/** - * References a physics_material for the rigid_body. @see domInstance_physics_material - */ - domInstance_physics_materialRef elemInstance_physics_material; -/** - * Defines a physics_material for the rigid_body. @see domPhysics_material - */ - domPhysics_materialRef elemPhysics_material; -/** - * This element allows for describing components of a rigid_body. @see domShape - */ - domShape_Array elemShape_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the dynamic element. - * @return a daeSmartRef to the dynamic element. - */ - const domDynamicRef getDynamic() const { return elemDynamic; } - /** - * Gets the mass element. - * @return a daeSmartRef to the mass element. - */ - const domTargetableFloatRef getMass() const { return elemMass; } - /** - * Gets the mass_frame element. - * @return a daeSmartRef to the mass_frame element. - */ - const domMass_frameRef getMass_frame() const { return elemMass_frame; } - /** - * Gets the inertia element. - * @return a daeSmartRef to the inertia element. - */ - const domTargetableFloat3Ref getInertia() const { return elemInertia; } - /** - * Gets the instance_physics_material element. - * @return a daeSmartRef to the instance_physics_material element. - */ - const domInstance_physics_materialRef getInstance_physics_material() const { return elemInstance_physics_material; } - /** - * Gets the physics_material element. - * @return a daeSmartRef to the physics_material element. - */ - const domPhysics_materialRef getPhysics_material() const { return elemPhysics_material; } - /** - * Gets the shape element array. - * @return Returns a reference to the array of shape elements. - */ - domShape_Array &getShape_array() { return elemShape_array; } - /** - * Gets the shape element array. - * @return Returns a constant reference to the array of shape elements. - */ - const domShape_Array &getShape_array() const { return elemShape_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domTechnique_common() : elemDynamic(), elemMass(), elemMass_frame(), elemInertia(), elemInstance_physics_material(), elemPhysics_material(), elemShape_array() {} - /** - * Destructor - */ - virtual ~domTechnique_common() {} - /** - * Copy Constructor - */ - domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique_common &operator=( const domTechnique_common &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The technique_common element specifies the rigid_body information for the - * common profile which all COLLADA implementations need to support. @see - * domTechnique_common - */ - domTechnique_commonRef elemTechnique_common; -/** - * This element may contain any number of non-common profile techniques. - * @see domTechnique - */ - domTechnique_Array elemTechnique_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the technique_common element. - * @return a daeSmartRef to the technique_common element. - */ - const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domRigid_body() : attrSid(), attrName(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domRigid_body() {} - /** - * Copy Constructor - */ - domRigid_body( const domRigid_body &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRigid_body &operator=( const domRigid_body &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domRigid_constraint.h b/Extras/COLLADA_DOM/include/1.4/dom/domRigid_constraint.h deleted file mode 100644 index d3cde20b8..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domRigid_constraint.h +++ /dev/null @@ -1,1198 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domRigid_constraint_h__ -#define __domRigid_constraint_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include - -/** - * This element allows for connecting components, such as rigid_body into - * complex physics models with moveable parts. - */ -class domRigid_constraint : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RIGID_CONSTRAINT; } -public: - class domRef_attachment; - - typedef daeSmartRef domRef_attachmentRef; - typedef daeTArray domRef_attachment_Array; - -/** - * Defines the attachment (to a rigid_body or a node) to be used as the reference-frame. - */ - class domRef_attachment : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::REF_ATTACHMENT; } - protected: // Attribute -/** - * The “rigid_body†attribute is a relative reference to a rigid-body - * within the same physics_model. - */ - xsAnyURI attrRigid_body; - - protected: // Elements -/** - * Allows you to "position" the attachment point. @see domTranslate - */ - domTranslate_Array elemTranslate_array; -/** - * Allows you to "position" the attachment point. @see domRotate - */ - domRotate_Array elemRotate_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the rigid_body attribute. - * @return Returns a xsAnyURI reference of the rigid_body attribute. - */ - xsAnyURI &getRigid_body() { return attrRigid_body; } - /** - * Gets the rigid_body attribute. - * @return Returns a constant xsAnyURI reference of the rigid_body attribute. - */ - const xsAnyURI &getRigid_body() const { return attrRigid_body; } - /** - * Sets the rigid_body attribute. - * @param atRigid_body The new value for the rigid_body attribute. - */ - void setRigid_body( const xsAnyURI &atRigid_body ) { attrRigid_body = atRigid_body; - _validAttributeArray[0] = true; } - - /** - * Gets the translate element array. - * @return Returns a reference to the array of translate elements. - */ - domTranslate_Array &getTranslate_array() { return elemTranslate_array; } - /** - * Gets the translate element array. - * @return Returns a constant reference to the array of translate elements. - */ - const domTranslate_Array &getTranslate_array() const { return elemTranslate_array; } - /** - * Gets the rotate element array. - * @return Returns a reference to the array of rotate elements. - */ - domRotate_Array &getRotate_array() { return elemRotate_array; } - /** - * Gets the rotate element array. - * @return Returns a constant reference to the array of rotate elements. - */ - const domRotate_Array &getRotate_array() const { return elemRotate_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domRef_attachment() : attrRigid_body(), elemTranslate_array(), elemRotate_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domRef_attachment() {} - /** - * Copy Constructor - */ - domRef_attachment( const domRef_attachment &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRef_attachment &operator=( const domRef_attachment &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domAttachment; - - typedef daeSmartRef domAttachmentRef; - typedef daeTArray domAttachment_Array; - -/** - * Defines an attachment to a rigid-body or a node. - */ - class domAttachment : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ATTACHMENT; } - protected: // Attribute -/** - * The “rigid_body†attribute is a relative reference to a rigid-body - * within the same physics_model. - */ - xsAnyURI attrRigid_body; - - protected: // Elements -/** - * Allows you to "position" the attachment point. @see domTranslate - */ - domTranslate_Array elemTranslate_array; -/** - * Allows you to "position" the attachment point. @see domRotate - */ - domRotate_Array elemRotate_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - - public: //Accessors and Mutators - /** - * Gets the rigid_body attribute. - * @return Returns a xsAnyURI reference of the rigid_body attribute. - */ - xsAnyURI &getRigid_body() { return attrRigid_body; } - /** - * Gets the rigid_body attribute. - * @return Returns a constant xsAnyURI reference of the rigid_body attribute. - */ - const xsAnyURI &getRigid_body() const { return attrRigid_body; } - /** - * Sets the rigid_body attribute. - * @param atRigid_body The new value for the rigid_body attribute. - */ - void setRigid_body( const xsAnyURI &atRigid_body ) { attrRigid_body = atRigid_body; - _validAttributeArray[0] = true; } - - /** - * Gets the translate element array. - * @return Returns a reference to the array of translate elements. - */ - domTranslate_Array &getTranslate_array() { return elemTranslate_array; } - /** - * Gets the translate element array. - * @return Returns a constant reference to the array of translate elements. - */ - const domTranslate_Array &getTranslate_array() const { return elemTranslate_array; } - /** - * Gets the rotate element array. - * @return Returns a reference to the array of rotate elements. - */ - domRotate_Array &getRotate_array() { return elemRotate_array; } - /** - * Gets the rotate element array. - * @return Returns a constant reference to the array of rotate elements. - */ - const domRotate_Array &getRotate_array() const { return elemRotate_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - protected: - /** - * Constructor - */ - domAttachment() : attrRigid_body(), elemTranslate_array(), elemRotate_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domAttachment() {} - /** - * Copy Constructor - */ - domAttachment( const domAttachment &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAttachment &operator=( const domAttachment &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domTechnique_common; - - typedef daeSmartRef domTechnique_commonRef; - typedef daeTArray domTechnique_common_Array; - -/** - * The technique_common element specifies the rigid_constraint information - * for the common profile which all COLLADA implementations need to support. - */ - class domTechnique_common : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_COMMON; } - public: - class domEnabled; - - typedef daeSmartRef domEnabledRef; - typedef daeTArray domEnabled_Array; - -/** - * If false, the constraint doesn’t exert any force or influence on the - * rigid bodies. - */ - class domEnabled : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ENABLED; } - protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - - protected: // Value - /** - * The domBool value of the text data of this element. - */ - domBool _value; - - public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the value of this element. - * @return a domBool of the value. - */ - domBool getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domBool val ) { _value = val; } - - protected: - /** - * Constructor - */ - domEnabled() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domEnabled() {} - /** - * Copy Constructor - */ - domEnabled( const domEnabled &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domEnabled &operator=( const domEnabled &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domInterpenetrate; - - typedef daeSmartRef domInterpenetrateRef; - typedef daeTArray domInterpenetrate_Array; - -/** - * Indicates whether the attached rigid bodies may inter-penetrate. - */ - class domInterpenetrate : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::INTERPENETRATE; } - protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - - protected: // Value - /** - * The domBool value of the text data of this element. - */ - domBool _value; - - public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the value of this element. - * @return a domBool of the value. - */ - domBool getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domBool val ) { _value = val; } - - protected: - /** - * Constructor - */ - domInterpenetrate() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domInterpenetrate() {} - /** - * Copy Constructor - */ - domInterpenetrate( const domInterpenetrate &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domInterpenetrate &operator=( const domInterpenetrate &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLimits; - - typedef daeSmartRef domLimitsRef; - typedef daeTArray domLimits_Array; - -/** - * The limits element provides a flexible way to specify the constraint limits - * (degrees of freedom and ranges). - */ - class domLimits : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIMITS; } - public: - class domSwing_cone_and_twist; - - typedef daeSmartRef domSwing_cone_and_twistRef; - typedef daeTArray domSwing_cone_and_twist_Array; - -/** - * The swing_cone_and_twist element describes the angular limits along each - * rotation axis in degrees. The the X and Y limits describe a “swing cone†- * and the Z limits describe the “twist angle†range - */ - class domSwing_cone_and_twist : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SWING_CONE_AND_TWIST; } - - protected: // Elements -/** - * The minimum values for the limit. @see domMin - */ - domTargetableFloat3Ref elemMin; -/** - * The maximum values for the limit. @see domMax - */ - domTargetableFloat3Ref elemMax; - - public: //Accessors and Mutators - /** - * Gets the min element. - * @return a daeSmartRef to the min element. - */ - const domTargetableFloat3Ref getMin() const { return elemMin; } - /** - * Gets the max element. - * @return a daeSmartRef to the max element. - */ - const domTargetableFloat3Ref getMax() const { return elemMax; } - protected: - /** - * Constructor - */ - domSwing_cone_and_twist() : elemMin(), elemMax() {} - /** - * Destructor - */ - virtual ~domSwing_cone_and_twist() {} - /** - * Copy Constructor - */ - domSwing_cone_and_twist( const domSwing_cone_and_twist &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSwing_cone_and_twist &operator=( const domSwing_cone_and_twist &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLinear; - - typedef daeSmartRef domLinearRef; - typedef daeTArray domLinear_Array; - -/** - * The linear element describes linear (translational) limits along each axis. - */ - class domLinear : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LINEAR; } - - protected: // Elements -/** - * The minimum values for the limit. @see domMin - */ - domTargetableFloat3Ref elemMin; -/** - * The maximum values for the limit. @see domMax - */ - domTargetableFloat3Ref elemMax; - - public: //Accessors and Mutators - /** - * Gets the min element. - * @return a daeSmartRef to the min element. - */ - const domTargetableFloat3Ref getMin() const { return elemMin; } - /** - * Gets the max element. - * @return a daeSmartRef to the max element. - */ - const domTargetableFloat3Ref getMax() const { return elemMax; } - protected: - /** - * Constructor - */ - domLinear() : elemMin(), elemMax() {} - /** - * Destructor - */ - virtual ~domLinear() {} - /** - * Copy Constructor - */ - domLinear( const domLinear &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLinear &operator=( const domLinear &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements -/** - * The swing_cone_and_twist element describes the angular limits along each - * rotation axis in degrees. The the X and Y limits describe a “swing cone†- * and the Z limits describe the “twist angle†range @see domSwing_cone_and_twist - */ - domSwing_cone_and_twistRef elemSwing_cone_and_twist; -/** - * The linear element describes linear (translational) limits along each axis. - * @see domLinear - */ - domLinearRef elemLinear; - - public: //Accessors and Mutators - /** - * Gets the swing_cone_and_twist element. - * @return a daeSmartRef to the swing_cone_and_twist element. - */ - const domSwing_cone_and_twistRef getSwing_cone_and_twist() const { return elemSwing_cone_and_twist; } - /** - * Gets the linear element. - * @return a daeSmartRef to the linear element. - */ - const domLinearRef getLinear() const { return elemLinear; } - protected: - /** - * Constructor - */ - domLimits() : elemSwing_cone_and_twist(), elemLinear() {} - /** - * Destructor - */ - virtual ~domLimits() {} - /** - * Copy Constructor - */ - domLimits( const domLimits &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLimits &operator=( const domLimits &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domSpring; - - typedef daeSmartRef domSpringRef; - typedef daeTArray domSpring_Array; - -/** - * Spring, based on distance (“LINEARâ€) or angle (“ANGULARâ€). - */ - class domSpring : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SPRING; } - public: - class domAngular; - - typedef daeSmartRef domAngularRef; - typedef daeTArray domAngular_Array; - -/** - * The angular spring properties. - */ - class domAngular : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ANGULAR; } - - protected: // Elements -/** - * The stiffness (also called spring coefficient) has units of force/angle - * in degrees. @see domStiffness - */ - domTargetableFloatRef elemStiffness; -/** - * The spring damping coefficient. @see domDamping - */ - domTargetableFloatRef elemDamping; -/** - * The spring's target or resting distance. @see domTarget_value - */ - domTargetableFloatRef elemTarget_value; - - public: //Accessors and Mutators - /** - * Gets the stiffness element. - * @return a daeSmartRef to the stiffness element. - */ - const domTargetableFloatRef getStiffness() const { return elemStiffness; } - /** - * Gets the damping element. - * @return a daeSmartRef to the damping element. - */ - const domTargetableFloatRef getDamping() const { return elemDamping; } - /** - * Gets the target_value element. - * @return a daeSmartRef to the target_value element. - */ - const domTargetableFloatRef getTarget_value() const { return elemTarget_value; } - protected: - /** - * Constructor - */ - domAngular() : elemStiffness(), elemDamping(), elemTarget_value() {} - /** - * Destructor - */ - virtual ~domAngular() {} - /** - * Copy Constructor - */ - domAngular( const domAngular &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAngular &operator=( const domAngular &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domLinear; - - typedef daeSmartRef domLinearRef; - typedef daeTArray domLinear_Array; - -/** - * The linear spring properties. - */ - class domLinear : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LINEAR; } - - protected: // Elements -/** - * The stiffness (also called spring coefficient) has units of force/distance. - * @see domStiffness - */ - domTargetableFloatRef elemStiffness; -/** - * The spring damping coefficient. @see domDamping - */ - domTargetableFloatRef elemDamping; -/** - * The spring's target or resting distance. @see domTarget_value - */ - domTargetableFloatRef elemTarget_value; - - public: //Accessors and Mutators - /** - * Gets the stiffness element. - * @return a daeSmartRef to the stiffness element. - */ - const domTargetableFloatRef getStiffness() const { return elemStiffness; } - /** - * Gets the damping element. - * @return a daeSmartRef to the damping element. - */ - const domTargetableFloatRef getDamping() const { return elemDamping; } - /** - * Gets the target_value element. - * @return a daeSmartRef to the target_value element. - */ - const domTargetableFloatRef getTarget_value() const { return elemTarget_value; } - protected: - /** - * Constructor - */ - domLinear() : elemStiffness(), elemDamping(), elemTarget_value() {} - /** - * Destructor - */ - virtual ~domLinear() {} - /** - * Copy Constructor - */ - domLinear( const domLinear &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLinear &operator=( const domLinear &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements -/** - * The angular spring properties. @see domAngular - */ - domAngularRef elemAngular; -/** - * The linear spring properties. @see domLinear - */ - domLinearRef elemLinear; - - public: //Accessors and Mutators - /** - * Gets the angular element. - * @return a daeSmartRef to the angular element. - */ - const domAngularRef getAngular() const { return elemAngular; } - /** - * Gets the linear element. - * @return a daeSmartRef to the linear element. - */ - const domLinearRef getLinear() const { return elemLinear; } - protected: - /** - * Constructor - */ - domSpring() : elemAngular(), elemLinear() {} - /** - * Destructor - */ - virtual ~domSpring() {} - /** - * Copy Constructor - */ - domSpring( const domSpring &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSpring &operator=( const domSpring &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - - protected: // Elements -/** - * If false, the constraint doesn’t exert any force or influence on the - * rigid bodies. @see domEnabled - */ - domEnabledRef elemEnabled; -/** - * Indicates whether the attached rigid bodies may inter-penetrate. @see domInterpenetrate - */ - domInterpenetrateRef elemInterpenetrate; -/** - * The limits element provides a flexible way to specify the constraint limits - * (degrees of freedom and ranges). @see domLimits - */ - domLimitsRef elemLimits; -/** - * Spring, based on distance (“LINEARâ€) or angle (“ANGULARâ€). @see - * domSpring - */ - domSpringRef elemSpring; - - public: //Accessors and Mutators - /** - * Gets the enabled element. - * @return a daeSmartRef to the enabled element. - */ - const domEnabledRef getEnabled() const { return elemEnabled; } - /** - * Gets the interpenetrate element. - * @return a daeSmartRef to the interpenetrate element. - */ - const domInterpenetrateRef getInterpenetrate() const { return elemInterpenetrate; } - /** - * Gets the limits element. - * @return a daeSmartRef to the limits element. - */ - const domLimitsRef getLimits() const { return elemLimits; } - /** - * Gets the spring element. - * @return a daeSmartRef to the spring element. - */ - const domSpringRef getSpring() const { return elemSpring; } - protected: - /** - * Constructor - */ - domTechnique_common() : elemEnabled(), elemInterpenetrate(), elemLimits(), elemSpring() {} - /** - * Destructor - */ - virtual ~domTechnique_common() {} - /** - * Copy Constructor - */ - domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique_common &operator=( const domTechnique_common &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * Defines the attachment (to a rigid_body or a node) to be used as the reference-frame. - * @see domRef_attachment - */ - domRef_attachmentRef elemRef_attachment; -/** - * Defines an attachment to a rigid-body or a node. @see domAttachment - */ - domAttachmentRef elemAttachment; -/** - * The technique_common element specifies the rigid_constraint information - * for the common profile which all COLLADA implementations need to support. - * @see domTechnique_common - */ - domTechnique_commonRef elemTechnique_common; -/** - * This element may contain any number of non-common profile techniques. - * @see domTechnique - */ - domTechnique_Array elemTechnique_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the ref_attachment element. - * @return a daeSmartRef to the ref_attachment element. - */ - const domRef_attachmentRef getRef_attachment() const { return elemRef_attachment; } - /** - * Gets the attachment element. - * @return a daeSmartRef to the attachment element. - */ - const domAttachmentRef getAttachment() const { return elemAttachment; } - /** - * Gets the technique_common element. - * @return a daeSmartRef to the technique_common element. - */ - const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domRigid_constraint() : attrSid(), attrName(), elemRef_attachment(), elemAttachment(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domRigid_constraint() {} - /** - * Copy Constructor - */ - domRigid_constraint( const domRigid_constraint &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRigid_constraint &operator=( const domRigid_constraint &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domRotate.h b/Extras/COLLADA_DOM/include/1.4/dom/domRotate.h deleted file mode 100644 index 2898603ed..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domRotate.h +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domRotate_h__ -#define __domRotate_h__ - -#include -#include - - -/** - * The rotate element contains an angle and a mathematical vector that represents - * the axis of rotation. - */ -class domRotate : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ROTATE; } -protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - -protected: // Value - /** - * The domFloat4 value of the text data of this element. - */ - domFloat4 _value; - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the _value array. - * @return Returns a domFloat4 reference of the _value array. - */ - domFloat4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat4 reference of the _value array. - */ - const domFloat4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat4 &val ) { _value = val; } - -protected: - /** - * Constructor - */ - domRotate() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domRotate() {} - /** - * Copy Constructor - */ - domRotate( const domRotate &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRotate &operator=( const domRotate &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domSampler.h b/Extras/COLLADA_DOM/include/1.4/dom/domSampler.h deleted file mode 100644 index f6b35d09a..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domSampler.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domSampler_h__ -#define __domSampler_h__ - -#include -#include - -#include - -/** - * The sampler element declares an N-dimensional function used for animation. - * Animation function curves are represented by 1-D sampler elements in COLLADA. - * The sampler defines sampling points and how to interpolate between them. - */ -class domSampler : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SAMPLER; } -protected: // Attribute -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; - -protected: // Element -/** - * The input element must occur at least one time. These inputs are local - * inputs. @see domInput - */ - domInputLocal_Array elemInput_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the input element array. - * @return Returns a reference to the array of input elements. - */ - domInputLocal_Array &getInput_array() { return elemInput_array; } - /** - * Gets the input element array. - * @return Returns a constant reference to the array of input elements. - */ - const domInputLocal_Array &getInput_array() const { return elemInput_array; } -protected: - /** - * Constructor - */ - domSampler() : attrId(), elemInput_array() {} - /** - * Destructor - */ - virtual ~domSampler() {} - /** - * Copy Constructor - */ - domSampler( const domSampler &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSampler &operator=( const domSampler &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domScale.h b/Extras/COLLADA_DOM/include/1.4/dom/domScale.h deleted file mode 100644 index e49648dfb..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domScale.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domScale_h__ -#define __domScale_h__ - -#include -#include - -#include - -/** - * The scale element contains a mathematical vector that represents the relative - * proportions of the X, Y and Z axes of a coordinated system. - */ -class domScale : public daeElement, public domTargetableFloat3_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SCALE; } - -protected: - /** - * Constructor - */ - domScale() {} - /** - * Destructor - */ - virtual ~domScale() {} - /** - * Copy Constructor - */ - domScale( const domScale &cpy ) : daeElement(), domTargetableFloat3_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domScale &operator=( const domScale &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domSkew.h b/Extras/COLLADA_DOM/include/1.4/dom/domSkew.h deleted file mode 100644 index 7dd22c423..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domSkew.h +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domSkew_h__ -#define __domSkew_h__ - -#include -#include - - -/** - * The skew element contains an angle and two mathematical vectors that represent - * the axis of rotation and the axis of translation. - */ -class domSkew : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SKEW; } -protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - -protected: // Value - /** - * The domFloat7 value of the text data of this element. - */ - domFloat7 _value; - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - - /** - * Gets the _value array. - * @return Returns a domFloat7 reference of the _value array. - */ - domFloat7 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat7 reference of the _value array. - */ - const domFloat7 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat7 &val ) { _value = val; } - -protected: - /** - * Constructor - */ - domSkew() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domSkew() {} - /** - * Copy Constructor - */ - domSkew( const domSkew &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSkew &operator=( const domSkew &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domSkin.h b/Extras/COLLADA_DOM/include/1.4/dom/domSkin.h deleted file mode 100644 index c6b9f5905..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domSkin.h +++ /dev/null @@ -1,607 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domSkin_h__ -#define __domSkin_h__ - -#include -#include - -#include -#include -#include -#include - -/** - * The skin element contains vertex and primitive information sufficient to - * describe blend-weight skinning. - */ -class domSkin : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SKIN; } -public: - class domBind_shape_matrix; - - typedef daeSmartRef domBind_shape_matrixRef; - typedef daeTArray domBind_shape_matrix_Array; - -/** - * This provides extra information about the position and orientation of the - * base mesh before binding. If bind_shape_matrix is not specified then an - * identity matrix may be used as the bind_shape_matrix. The bind_shape_matrix - * element may occur zero or one times. - */ - class domBind_shape_matrix : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BIND_SHAPE_MATRIX; } - - protected: // Value - /** - * The domFloat4x4 value of the text data of this element. - */ - domFloat4x4 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFloat4x4 reference of the _value array. - */ - domFloat4x4 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat4x4 reference of the _value array. - */ - const domFloat4x4 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat4x4 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domBind_shape_matrix() : _value() {} - /** - * Destructor - */ - virtual ~domBind_shape_matrix() {} - /** - * Copy Constructor - */ - domBind_shape_matrix( const domBind_shape_matrix &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domBind_shape_matrix &operator=( const domBind_shape_matrix &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domJoints; - - typedef daeSmartRef domJointsRef; - typedef daeTArray domJoints_Array; - -/** - * The joints element associates joint, or skeleton, nodes with attribute - * data. In COLLADA, this is specified by the inverse bind matrix of each - * joint (influence) in the skeleton. - */ - class domJoints : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::JOINTS; } - - protected: // Elements -/** - * The input element must occur at least twice. These inputs are local inputs. - * @see domInput - */ - domInputLocal_Array elemInput_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - - public: //Accessors and Mutators - /** - * Gets the input element array. - * @return Returns a reference to the array of input elements. - */ - domInputLocal_Array &getInput_array() { return elemInput_array; } - /** - * Gets the input element array. - * @return Returns a constant reference to the array of input elements. - */ - const domInputLocal_Array &getInput_array() const { return elemInput_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - protected: - /** - * Constructor - */ - domJoints() : elemInput_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domJoints() {} - /** - * Copy Constructor - */ - domJoints( const domJoints &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domJoints &operator=( const domJoints &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domVertex_weights; - - typedef daeSmartRef domVertex_weightsRef; - typedef daeTArray domVertex_weights_Array; - -/** - * The vertex_weights element associates a set of joint-weight pairs with - * each vertex in the base mesh. - */ - class domVertex_weights : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VERTEX_WEIGHTS; } - public: - class domVcount; - - typedef daeSmartRef domVcountRef; - typedef daeTArray domVcount_Array; - -/** - * The vcount element contains a list of integers describing the number of - * influences for each vertex. The vcount element may occur once. - */ - class domVcount : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VCOUNT; } - - protected: // Value - /** - * The domListOfUInts value of the text data of this element. - */ - domListOfUInts _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domListOfUInts reference of the _value array. - */ - domListOfUInts &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domListOfUInts reference of the _value array. - */ - const domListOfUInts &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domListOfUInts &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domVcount() : _value() {} - /** - * Destructor - */ - virtual ~domVcount() {} - /** - * Copy Constructor - */ - domVcount( const domVcount &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domVcount &operator=( const domVcount &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domV; - - typedef daeSmartRef domVRef; - typedef daeTArray domV_Array; - -/** - * The v element describes which bones and attributes are associated with - * each vertex. An index of –1 into the array of joints refers to the - * bind shape. Weights should be normalized before use. The v element must - * occur zero or one times. - */ - class domV : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::V; } - - protected: // Value - /** - * The domListOfInts value of the text data of this element. - */ - domListOfInts _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domListOfInts reference of the _value array. - */ - domListOfInts &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domListOfInts reference of the _value array. - */ - const domListOfInts &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domListOfInts &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domV() : _value() {} - /** - * Destructor - */ - virtual ~domV() {} - /** - * Copy Constructor - */ - domV( const domV &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domV &operator=( const domV &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute -/** - * The count attribute describes the number of vertices in the base mesh. - * Required element. - */ - domUint attrCount; - - protected: // Elements -/** - * The input element must occur at least twice. @see domInput - */ - domInputLocalOffset_Array elemInput_array; -/** - * The vcount element contains a list of integers describing the number of - * influences for each vertex. The vcount element may occur once. @see domVcount - */ - domVcountRef elemVcount; -/** - * The v element describes which bones and attributes are associated with - * each vertex. An index of –1 into the array of joints refers to the - * bind shape. Weights should be normalized before use. The v element must - * occur zero or one times. @see domV - */ - domVRef elemV; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - - public: //Accessors and Mutators - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[0] = true; } - - /** - * Gets the input element array. - * @return Returns a reference to the array of input elements. - */ - domInputLocalOffset_Array &getInput_array() { return elemInput_array; } - /** - * Gets the input element array. - * @return Returns a constant reference to the array of input elements. - */ - const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } - /** - * Gets the vcount element. - * @return a daeSmartRef to the vcount element. - */ - const domVcountRef getVcount() const { return elemVcount; } - /** - * Gets the v element. - * @return a daeSmartRef to the v element. - */ - const domVRef getV() const { return elemV; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - protected: - /** - * Constructor - */ - domVertex_weights() : attrCount(), elemInput_array(), elemVcount(), elemV(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domVertex_weights() {} - /** - * Copy Constructor - */ - domVertex_weights( const domVertex_weights &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domVertex_weights &operator=( const domVertex_weights &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attribute -/** - * The source attribute contains a URI reference to the base mesh, (a static - * mesh or a morphed mesh). This also provides the bind-shape of the skinned - * mesh. Required attribute. - */ - xsAnyURI attrSource; - -protected: // Elements -/** - * This provides extra information about the position and orientation of the - * base mesh before binding. If bind_shape_matrix is not specified then an - * identity matrix may be used as the bind_shape_matrix. The bind_shape_matrix - * element may occur zero or one times. @see domBind_shape_matrix - */ - domBind_shape_matrixRef elemBind_shape_matrix; -/** - * The skin element must contain at least three source elements. @see domSource - */ - domSource_Array elemSource_array; -/** - * The joints element associates joint, or skeleton, nodes with attribute - * data. In COLLADA, this is specified by the inverse bind matrix of each - * joint (influence) in the skeleton. @see domJoints - */ - domJointsRef elemJoints; -/** - * The vertex_weights element associates a set of joint-weight pairs with - * each vertex in the base mesh. @see domVertex_weights - */ - domVertex_weightsRef elemVertex_weights; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the source attribute. - * @return Returns a xsAnyURI reference of the source attribute. - */ - xsAnyURI &getSource() { return attrSource; } - /** - * Gets the source attribute. - * @return Returns a constant xsAnyURI reference of the source attribute. - */ - const xsAnyURI &getSource() const { return attrSource; } - /** - * Sets the source attribute. - * @param atSource The new value for the source attribute. - */ - void setSource( const xsAnyURI &atSource ) { attrSource = atSource; - _validAttributeArray[0] = true; } - - /** - * Gets the bind_shape_matrix element. - * @return a daeSmartRef to the bind_shape_matrix element. - */ - const domBind_shape_matrixRef getBind_shape_matrix() const { return elemBind_shape_matrix; } - /** - * Gets the source element array. - * @return Returns a reference to the array of source elements. - */ - domSource_Array &getSource_array() { return elemSource_array; } - /** - * Gets the source element array. - * @return Returns a constant reference to the array of source elements. - */ - const domSource_Array &getSource_array() const { return elemSource_array; } - /** - * Gets the joints element. - * @return a daeSmartRef to the joints element. - */ - const domJointsRef getJoints() const { return elemJoints; } - /** - * Gets the vertex_weights element. - * @return a daeSmartRef to the vertex_weights element. - */ - const domVertex_weightsRef getVertex_weights() const { return elemVertex_weights; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domSkin() : attrSource(), elemBind_shape_matrix(), elemSource_array(), elemJoints(), elemVertex_weights(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domSkin() {} - /** - * Copy Constructor - */ - domSkin( const domSkin &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSkin &operator=( const domSkin &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domSource.h b/Extras/COLLADA_DOM/include/1.4/dom/domSource.h deleted file mode 100644 index 17cc76aa2..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domSource.h +++ /dev/null @@ -1,282 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domSource_h__ -#define __domSource_h__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -/** - * The source element declares a data repository that provides values according - * to the semantics of an input element that refers to it. - */ -class domSource : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; } -public: - class domTechnique_common; - - typedef daeSmartRef domTechnique_commonRef; - typedef daeTArray domTechnique_common_Array; - -/** - * The technique common specifies the common method for accessing this source - * element's data. - */ - class domTechnique_common : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_COMMON; } - - protected: // Element -/** - * The source's technique_common must have one and only one accessor. @see - * domAccessor - */ - domAccessorRef elemAccessor; - - public: //Accessors and Mutators - /** - * Gets the accessor element. - * @return a daeSmartRef to the accessor element. - */ - const domAccessorRef getAccessor() const { return elemAccessor; } - protected: - /** - * Constructor - */ - domTechnique_common() : elemAccessor() {} - /** - * Destructor - */ - virtual ~domTechnique_common() {} - /** - * Copy Constructor - */ - domTechnique_common( const domTechnique_common &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique_common &operator=( const domTechnique_common &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Required attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The source element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The source element may contain an IDREF_array. @see domIDREF_array - */ - domIDREF_arrayRef elemIDREF_array; -/** - * The source element may contain a Name_array. @see domName_array - */ - domName_arrayRef elemName_array; -/** - * The source element may contain a bool_array. @see domBool_array - */ - domBool_arrayRef elemBool_array; -/** - * The source element may contain a float_array. @see domFloat_array - */ - domFloat_arrayRef elemFloat_array; -/** - * The source element may contain an int_array. @see domInt_array - */ - domInt_arrayRef elemInt_array; -/** - * The technique common specifies the common method for accessing this source - * element's data. @see domTechnique_common - */ - domTechnique_commonRef elemTechnique_common; -/** - * This element may contain any number of non-common profile techniques. - * @see domTechnique - */ - domTechnique_Array elemTechnique_array; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the IDREF_array element. - * @return a daeSmartRef to the IDREF_array element. - */ - const domIDREF_arrayRef getIDREF_array() const { return elemIDREF_array; } - /** - * Gets the Name_array element. - * @return a daeSmartRef to the Name_array element. - */ - const domName_arrayRef getName_array() const { return elemName_array; } - /** - * Gets the bool_array element. - * @return a daeSmartRef to the bool_array element. - */ - const domBool_arrayRef getBool_array() const { return elemBool_array; } - /** - * Gets the float_array element. - * @return a daeSmartRef to the float_array element. - */ - const domFloat_arrayRef getFloat_array() const { return elemFloat_array; } - /** - * Gets the int_array element. - * @return a daeSmartRef to the int_array element. - */ - const domInt_arrayRef getInt_array() const { return elemInt_array; } - /** - * Gets the technique_common element. - * @return a daeSmartRef to the technique_common element. - */ - const domTechnique_commonRef getTechnique_common() const { return elemTechnique_common; } - /** - * Gets the technique element array. - * @return Returns a reference to the array of technique elements. - */ - domTechnique_Array &getTechnique_array() { return elemTechnique_array; } - /** - * Gets the technique element array. - * @return Returns a constant reference to the array of technique elements. - */ - const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domSource() : attrId(), attrName(), elemAsset(), elemIDREF_array(), elemName_array(), elemBool_array(), elemFloat_array(), elemInt_array(), elemTechnique_common(), elemTechnique_array() {} - /** - * Destructor - */ - virtual ~domSource() {} - /** - * Copy Constructor - */ - domSource( const domSource &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSource &operator=( const domSource &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domSphere.h b/Extras/COLLADA_DOM/include/1.4/dom/domSphere.h deleted file mode 100644 index f16134f5a..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domSphere.h +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domSphere_h__ -#define __domSphere_h__ - -#include -#include - -#include - -/** - * A centered sphere primitive. - */ -class domSphere : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SPHERE; } -public: - class domRadius; - - typedef daeSmartRef domRadiusRef; - typedef daeTArray domRadius_Array; - -/** - * A float value that represents the radius of the sphere - */ - class domRadius : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RADIUS; } - - protected: // Value - /** - * The domFloat value of the text data of this element. - */ - domFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFloat of the value. - */ - domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domRadius() : _value() {} - /** - * Destructor - */ - virtual ~domRadius() {} - /** - * Copy Constructor - */ - domRadius( const domRadius &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRadius &operator=( const domRadius &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements -/** - * A float value that represents the radius of the sphere @see domRadius - */ - domRadiusRef elemRadius; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the radius element. - * @return a daeSmartRef to the radius element. - */ - const domRadiusRef getRadius() const { return elemRadius; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domSphere() : elemRadius(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domSphere() {} - /** - * Copy Constructor - */ - domSphere( const domSphere &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSphere &operator=( const domSphere &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domSpline.h b/Extras/COLLADA_DOM/include/1.4/dom/domSpline.h deleted file mode 100644 index 6d8c98ad8..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domSpline.h +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domSpline_h__ -#define __domSpline_h__ - -#include -#include - -#include -#include -#include - -/** - * The spline element contains control vertex information sufficient to describe - * basic splines. - */ -class domSpline : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SPLINE; } -public: - class domControl_vertices; - - typedef daeSmartRef domControl_verticesRef; - typedef daeTArray domControl_vertices_Array; - -/** - * The control vertices element must occur exactly one time. It is used - * to describe the CVs of the spline. - */ - class domControl_vertices : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CONTROL_VERTICES; } - - protected: // Elements -/** - * The input element must occur at least one time. These inputs are local - * inputs. @see domInput - */ - domInputLocal_Array elemInput_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - - public: //Accessors and Mutators - /** - * Gets the input element array. - * @return Returns a reference to the array of input elements. - */ - domInputLocal_Array &getInput_array() { return elemInput_array; } - /** - * Gets the input element array. - * @return Returns a constant reference to the array of input elements. - */ - const domInputLocal_Array &getInput_array() const { return elemInput_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } - protected: - /** - * Constructor - */ - domControl_vertices() : elemInput_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domControl_vertices() {} - /** - * Copy Constructor - */ - domControl_vertices( const domControl_vertices &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domControl_vertices &operator=( const domControl_vertices &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attribute - domBool attrClosed; - -protected: // Elements -/** - * The mesh element must contain one or more source elements. @see domSource - */ - domSource_Array elemSource_array; -/** - * The control vertices element must occur exactly one time. It is used - * to describe the CVs of the spline. @see domControl_vertices - */ - domControl_verticesRef elemControl_vertices; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the closed attribute. - * @return Returns a domBool of the closed attribute. - */ - domBool getClosed() const { return attrClosed; } - /** - * Sets the closed attribute. - * @param atClosed The new value for the closed attribute. - */ - void setClosed( domBool atClosed ) { attrClosed = atClosed; - _validAttributeArray[0] = true; } - - /** - * Gets the source element array. - * @return Returns a reference to the array of source elements. - */ - domSource_Array &getSource_array() { return elemSource_array; } - /** - * Gets the source element array. - * @return Returns a constant reference to the array of source elements. - */ - const domSource_Array &getSource_array() const { return elemSource_array; } - /** - * Gets the control_vertices element. - * @return a daeSmartRef to the control_vertices element. - */ - const domControl_verticesRef getControl_vertices() const { return elemControl_vertices; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domSpline() : attrClosed(), elemSource_array(), elemControl_vertices(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domSpline() {} - /** - * Copy Constructor - */ - domSpline( const domSpline &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domSpline &operator=( const domSpline &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTapered_capsule.h b/Extras/COLLADA_DOM/include/1.4/dom/domTapered_capsule.h deleted file mode 100644 index 6b86c92e3..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domTapered_capsule.h +++ /dev/null @@ -1,344 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domTapered_capsule_h__ -#define __domTapered_capsule_h__ - -#include -#include - -#include - -/** - * A tapered capsule primitive that is centered on, and aligned with, the - * local Y axis. - */ -class domTapered_capsule : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TAPERED_CAPSULE; } -public: - class domHeight; - - typedef daeSmartRef domHeightRef; - typedef daeTArray domHeight_Array; - -/** - * A float value that represents the length of the line segment connecting - * the centers of the capping hemispheres. - */ - class domHeight : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HEIGHT; } - - protected: // Value - /** - * The domFloat value of the text data of this element. - */ - domFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFloat of the value. - */ - domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHeight() : _value() {} - /** - * Destructor - */ - virtual ~domHeight() {} - /** - * Copy Constructor - */ - domHeight( const domHeight &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHeight &operator=( const domHeight &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domRadius1; - - typedef daeSmartRef domRadius1Ref; - typedef daeTArray domRadius1_Array; - -/** - * Two float values that represent the radii of the tapered capsule at the - * positive (height/2) Y value.Both ends of the tapered capsule may be elliptical. - */ - class domRadius1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RADIUS1; } - - protected: // Value - /** - * The domFloat2 value of the text data of this element. - */ - domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFloat2 reference of the _value array. - */ - domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat2 reference of the _value array. - */ - const domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domRadius1() : _value() {} - /** - * Destructor - */ - virtual ~domRadius1() {} - /** - * Copy Constructor - */ - domRadius1( const domRadius1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRadius1 &operator=( const domRadius1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domRadius2; - - typedef daeSmartRef domRadius2Ref; - typedef daeTArray domRadius2_Array; - -/** - * Two float values that represent the radii of the tapered capsule at the - * negative (height/2) Y value.Both ends of the tapered capsule may be elliptical. - */ - class domRadius2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RADIUS2; } - - protected: // Value - /** - * The domFloat2 value of the text data of this element. - */ - domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFloat2 reference of the _value array. - */ - domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat2 reference of the _value array. - */ - const domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domRadius2() : _value() {} - /** - * Destructor - */ - virtual ~domRadius2() {} - /** - * Copy Constructor - */ - domRadius2( const domRadius2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRadius2 &operator=( const domRadius2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements -/** - * A float value that represents the length of the line segment connecting - * the centers of the capping hemispheres. @see domHeight - */ - domHeightRef elemHeight; -/** - * Two float values that represent the radii of the tapered capsule at the - * positive (height/2) Y value.Both ends of the tapered capsule may be elliptical. - * @see domRadius1 - */ - domRadius1Ref elemRadius1; -/** - * Two float values that represent the radii of the tapered capsule at the - * negative (height/2) Y value.Both ends of the tapered capsule may be elliptical. - * @see domRadius2 - */ - domRadius2Ref elemRadius2; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the height element. - * @return a daeSmartRef to the height element. - */ - const domHeightRef getHeight() const { return elemHeight; } - /** - * Gets the radius1 element. - * @return a daeSmartRef to the radius1 element. - */ - const domRadius1Ref getRadius1() const { return elemRadius1; } - /** - * Gets the radius2 element. - * @return a daeSmartRef to the radius2 element. - */ - const domRadius2Ref getRadius2() const { return elemRadius2; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domTapered_capsule() : elemHeight(), elemRadius1(), elemRadius2(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domTapered_capsule() {} - /** - * Copy Constructor - */ - domTapered_capsule( const domTapered_capsule &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTapered_capsule &operator=( const domTapered_capsule &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTapered_cylinder.h b/Extras/COLLADA_DOM/include/1.4/dom/domTapered_cylinder.h deleted file mode 100644 index f1e51f02b..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domTapered_cylinder.h +++ /dev/null @@ -1,344 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domTapered_cylinder_h__ -#define __domTapered_cylinder_h__ - -#include -#include - -#include - -/** - * A tapered cylinder primitive that is centered on and aligned with the local - * Y axis. - */ -class domTapered_cylinder : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TAPERED_CYLINDER; } -public: - class domHeight; - - typedef daeSmartRef domHeightRef; - typedef daeTArray domHeight_Array; - -/** - * A float value that represents the length of the cylinder along the Y axis. - */ - class domHeight : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HEIGHT; } - - protected: // Value - /** - * The domFloat value of the text data of this element. - */ - domFloat _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return a domFloat of the value. - */ - domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFloat val ) { _value = val; } - - protected: - /** - * Constructor - */ - domHeight() : _value() {} - /** - * Destructor - */ - virtual ~domHeight() {} - /** - * Copy Constructor - */ - domHeight( const domHeight &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domHeight &operator=( const domHeight &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domRadius1; - - typedef daeSmartRef domRadius1Ref; - typedef daeTArray domRadius1_Array; - -/** - * Two float values that represent the radii of the tapered cylinder at the - * positive (height/2) Y value. Both ends of the tapered cylinder may be - * elliptical. - */ - class domRadius1 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RADIUS1; } - - protected: // Value - /** - * The domFloat2 value of the text data of this element. - */ - domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFloat2 reference of the _value array. - */ - domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat2 reference of the _value array. - */ - const domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domRadius1() : _value() {} - /** - * Destructor - */ - virtual ~domRadius1() {} - /** - * Copy Constructor - */ - domRadius1( const domRadius1 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRadius1 &operator=( const domRadius1 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - class domRadius2; - - typedef daeSmartRef domRadius2Ref; - typedef daeTArray domRadius2_Array; - -/** - * Two float values that represent the radii of the tapered cylinder at the - * negative (height/2) Y value.Both ends of the tapered cylinder may be elliptical. - */ - class domRadius2 : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RADIUS2; } - - protected: // Value - /** - * The domFloat2 value of the text data of this element. - */ - domFloat2 _value; - - public: //Accessors and Mutators - /** - * Gets the _value array. - * @return Returns a domFloat2 reference of the _value array. - */ - domFloat2 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat2 reference of the _value array. - */ - const domFloat2 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat2 &val ) { _value = val; } - - protected: - /** - * Constructor - */ - domRadius2() : _value() {} - /** - * Destructor - */ - virtual ~domRadius2() {} - /** - * Copy Constructor - */ - domRadius2( const domRadius2 &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRadius2 &operator=( const domRadius2 &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - -protected: // Elements -/** - * A float value that represents the length of the cylinder along the Y axis. - * @see domHeight - */ - domHeightRef elemHeight; -/** - * Two float values that represent the radii of the tapered cylinder at the - * positive (height/2) Y value. Both ends of the tapered cylinder may be - * elliptical. @see domRadius1 - */ - domRadius1Ref elemRadius1; -/** - * Two float values that represent the radii of the tapered cylinder at the - * negative (height/2) Y value.Both ends of the tapered cylinder may be elliptical. - * @see domRadius2 - */ - domRadius2Ref elemRadius2; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the height element. - * @return a daeSmartRef to the height element. - */ - const domHeightRef getHeight() const { return elemHeight; } - /** - * Gets the radius1 element. - * @return a daeSmartRef to the radius1 element. - */ - const domRadius1Ref getRadius1() const { return elemRadius1; } - /** - * Gets the radius2 element. - * @return a daeSmartRef to the radius2 element. - */ - const domRadius2Ref getRadius2() const { return elemRadius2; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domTapered_cylinder() : elemHeight(), elemRadius1(), elemRadius2(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domTapered_cylinder() {} - /** - * Copy Constructor - */ - domTapered_cylinder( const domTapered_cylinder &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTapered_cylinder &operator=( const domTapered_cylinder &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTargetableFloat.h b/Extras/COLLADA_DOM/include/1.4/dom/domTargetableFloat.h deleted file mode 100644 index d0301ceb8..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domTargetableFloat.h +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domTargetableFloat_h__ -#define __domTargetableFloat_h__ - -#include -#include - - -/** - * The TargetableFloat type is used to represent elements which contain a - * single float value which can be targeted for animation. - */ -class domTargetableFloat_complexType -{ -protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - -protected: // Value - /** - * The domFloat value of the text data of this element. - */ - domFloat _value; - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; } - - /** - * Gets the value of this element. - * @return a domFloat of the value. - */ - domFloat getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( domFloat val ) { _value = val; } - -protected: - /** - * Constructor - */ - domTargetableFloat_complexType() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domTargetableFloat_complexType() {} - /** - * Copy Constructor - */ - domTargetableFloat_complexType( const domTargetableFloat_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTargetableFloat_complexType &operator=( const domTargetableFloat_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domTargetableFloat_complexType. - */ -class domTargetableFloat : public daeElement, public domTargetableFloat_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TARGETABLEFLOAT; } - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domTargetableFloat() {} - /** - * Destructor - */ - virtual ~domTargetableFloat() {} - /** - * Copy Constructor - */ - domTargetableFloat( const domTargetableFloat &cpy ) : daeElement(), domTargetableFloat_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTargetableFloat &operator=( const domTargetableFloat &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTargetableFloat3.h b/Extras/COLLADA_DOM/include/1.4/dom/domTargetableFloat3.h deleted file mode 100644 index f813ecd2e..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domTargetableFloat3.h +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domTargetableFloat3_h__ -#define __domTargetableFloat3_h__ - -#include -#include - - -/** - * The TargetableFloat3 type is used to represent elements which contain a - * float3 value which can be targeted for animation. - */ -class domTargetableFloat3_complexType -{ -protected: // Attribute -/** - * The sid attribute is a text string value containing the sub-identifier - * of this element. This value must be unique within the scope of the parent - * element. Optional attribute. - */ - xsNCName attrSid; - -protected: // Value - /** - * The domFloat3 value of the text data of this element. - */ - domFloat3 _value; - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; } - - /** - * Gets the _value array. - * @return Returns a domFloat3 reference of the _value array. - */ - domFloat3 &getValue() { return _value; } - /** - * Gets the _value array. - * @return Returns a constant domFloat3 reference of the _value array. - */ - const domFloat3 &getValue() const { return _value; } - /** - * Sets the _value array. - * @param val The new value for the _value array. - */ - void setValue( const domFloat3 &val ) { _value = val; } - -protected: - /** - * Constructor - */ - domTargetableFloat3_complexType() : attrSid(), _value() {} - /** - * Destructor - */ - virtual ~domTargetableFloat3_complexType() {} - /** - * Copy Constructor - */ - domTargetableFloat3_complexType( const domTargetableFloat3_complexType &cpy ) { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTargetableFloat3_complexType &operator=( const domTargetableFloat3_complexType &cpy ) { (void)cpy; return *this; } -}; - -/** - * An element of type domTargetableFloat3_complexType. - */ -class domTargetableFloat3 : public daeElement, public domTargetableFloat3_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TARGETABLEFLOAT3; } - -public: //Accessors and Mutators - /** - * Gets the sid attribute. - * @return Returns a xsNCName of the sid attribute. - */ - xsNCName getSid() const { return attrSid; } - /** - * Sets the sid attribute. - * @param atSid The new value for the sid attribute. - */ - void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; - _validAttributeArray[0] = true; } - -protected: - /** - * Constructor - */ - domTargetableFloat3() {} - /** - * Destructor - */ - virtual ~domTargetableFloat3() {} - /** - * Copy Constructor - */ - domTargetableFloat3( const domTargetableFloat3 &cpy ) : daeElement(), domTargetableFloat3_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTargetableFloat3 &operator=( const domTargetableFloat3 &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTechnique.h b/Extras/COLLADA_DOM/include/1.4/dom/domTechnique.h deleted file mode 100644 index a5c0a356b..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domTechnique.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domTechnique_h__ -#define __domTechnique_h__ - -#include -#include - - -/** - * The technique element declares the information used to process some portion - * of the content. Each technique conforms to an associated profile. Techniques - * generally act as a “switchâ€. If more than one is present for a particular - * portion of content, on import, one or the other is picked, but usually - * not both. Selection should be based on which profile the importing application - * can support. Techniques contain application data and programs, making them - * assets that can be managed as a unit. - */ -class domTechnique : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE; } -protected: // Attribute - /** - * This element may specify its own xmlns. - */ - xsAnyURI attrXmlns; -/** - * The profile attribute indicates the type of profile. This is a vendor - * defined character string that indicates the platform or capability target - * for the technique. Required attribute. - */ - xsNMTOKEN attrProfile; - -protected: // Element - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - - -public: //Accessors and Mutators - /** - * Gets the xmlns attribute. - * @return Returns a xsAnyURI reference of the xmlns attribute. - */ - xsAnyURI &getXmlns() { return attrXmlns; } - /** - * Gets the xmlns attribute. - * @return Returns a constant xsAnyURI reference of the xmlns attribute. - */ - const xsAnyURI &getXmlns() const { return attrXmlns; } - /** - * Sets the xmlns attribute. - * @param xmlns The new value for the xmlns attribute. - */ - void setXmlns( const xsAnyURI &xmlns ) { attrXmlns = xmlns; - _validAttributeArray[0] = true; } - - /** - * Gets the profile attribute. - * @return Returns a xsNMTOKEN of the profile attribute. - */ - xsNMTOKEN getProfile() const { return attrProfile; } - /** - * Sets the profile attribute. - * @param atProfile The new value for the profile attribute. - */ - void setProfile( xsNMTOKEN atProfile ) { *(daeStringRef*)&attrProfile = atProfile; - _validAttributeArray[1] = true; } - - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - -protected: - /** - * Constructor - */ - domTechnique() : attrProfile() {} - /** - * Destructor - */ - virtual ~domTechnique() {} - /** - * Copy Constructor - */ - domTechnique( const domTechnique &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTechnique &operator=( const domTechnique &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTranslate.h b/Extras/COLLADA_DOM/include/1.4/dom/domTranslate.h deleted file mode 100644 index 3df4c9d37..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domTranslate.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domTranslate_h__ -#define __domTranslate_h__ - -#include -#include - -#include - -/** - * The translate element contains a mathematical vector that represents the - * distance along the X, Y and Z-axes. - */ -class domTranslate : public daeElement, public domTargetableFloat3_complexType -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TRANSLATE; } - -protected: - /** - * Constructor - */ - domTranslate() {} - /** - * Destructor - */ - virtual ~domTranslate() {} - /** - * Copy Constructor - */ - domTranslate( const domTranslate &cpy ) : daeElement(), domTargetableFloat3_complexType() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTranslate &operator=( const domTranslate &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTriangles.h b/Extras/COLLADA_DOM/include/1.4/dom/domTriangles.h deleted file mode 100644 index e20b330d5..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domTriangles.h +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domTriangles_h__ -#define __domTriangles_h__ - -#include -#include - -#include -#include -#include - -/** - * The triangles element provides the information needed to bind vertex attributes - * together and then organize those vertices into individual triangles.Each - * triangle described by the mesh has three vertices. The first triangle - * is formed from the first, second, and third vertices. The second triangle - * is formed from the fourth, fifth, and sixth vertices, and so on. - */ -class domTriangles : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TRIANGLES; } -protected: // Attributes -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The count attribute indicates the number of triangle primitives. Required - * attribute. - */ - domUint attrCount; -/** - * The material attribute declares a symbol for a material. This symbol is - * bound to a material at the time of instantiation. Optional attribute. - * If the material attribute is not specified then the lighting and shading - * results are application defined. - */ - xsNCName attrMaterial; - -protected: // Elements -/** - * The input element may occur any number of times. This input is a local - * input with the offset and set attributes. @see domInput - */ - domInputLocalOffset_Array elemInput_array; -/** - * The triangles element may have any number of p elements. @see domP - */ - domPRef elemP; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[0] = true; } - - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[1] = true; } - - /** - * Gets the material attribute. - * @return Returns a xsNCName of the material attribute. - */ - xsNCName getMaterial() const { return attrMaterial; } - /** - * Sets the material attribute. - * @param atMaterial The new value for the material attribute. - */ - void setMaterial( xsNCName atMaterial ) { *(daeStringRef*)&attrMaterial = atMaterial; - _validAttributeArray[2] = true; } - - /** - * Gets the input element array. - * @return Returns a reference to the array of input elements. - */ - domInputLocalOffset_Array &getInput_array() { return elemInput_array; } - /** - * Gets the input element array. - * @return Returns a constant reference to the array of input elements. - */ - const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } - /** - * Gets the p element. - * @return a daeSmartRef to the p element. - */ - const domPRef getP() const { return elemP; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domTriangles() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domTriangles() {} - /** - * Copy Constructor - */ - domTriangles( const domTriangles &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTriangles &operator=( const domTriangles &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTrifans.h b/Extras/COLLADA_DOM/include/1.4/dom/domTrifans.h deleted file mode 100644 index 32c6af4e6..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domTrifans.h +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domTrifans_h__ -#define __domTrifans_h__ - -#include -#include - -#include -#include -#include - -/** - * The trifans element provides the information needed to bind vertex attributes - * together and then organize those vertices into connected triangles. Each - * triangle described by the mesh has three vertices. The first triangle - * is formed from first, second, and third vertices. Each subsequent triangle - * is formed from the current vertex, reusing the first and the previous vertices. - */ -class domTrifans : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TRIFANS; } -protected: // Attributes -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The count attribute indicates the number of triangle fan primitives. Required - * attribute. - */ - domUint attrCount; -/** - * The material attribute declares a symbol for a material. This symbol is - * bound to a material at the time of instantiation. If the material attribute - * is not specified then the lighting and shading results are application - * defined. Optional attribute. - */ - xsNCName attrMaterial; - -protected: // Elements -/** - * The input element may occur any number of times. This input is a local - * input with the offset and set attributes. @see domInput - */ - domInputLocalOffset_Array elemInput_array; -/** - * The trifans element may have any number of p elements. @see domP - */ - domP_Array elemP_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[0] = true; } - - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[1] = true; } - - /** - * Gets the material attribute. - * @return Returns a xsNCName of the material attribute. - */ - xsNCName getMaterial() const { return attrMaterial; } - /** - * Sets the material attribute. - * @param atMaterial The new value for the material attribute. - */ - void setMaterial( xsNCName atMaterial ) { *(daeStringRef*)&attrMaterial = atMaterial; - _validAttributeArray[2] = true; } - - /** - * Gets the input element array. - * @return Returns a reference to the array of input elements. - */ - domInputLocalOffset_Array &getInput_array() { return elemInput_array; } - /** - * Gets the input element array. - * @return Returns a constant reference to the array of input elements. - */ - const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } - /** - * Gets the p element array. - * @return Returns a reference to the array of p elements. - */ - domP_Array &getP_array() { return elemP_array; } - /** - * Gets the p element array. - * @return Returns a constant reference to the array of p elements. - */ - const domP_Array &getP_array() const { return elemP_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domTrifans() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domTrifans() {} - /** - * Copy Constructor - */ - domTrifans( const domTrifans &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTrifans &operator=( const domTrifans &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTristrips.h b/Extras/COLLADA_DOM/include/1.4/dom/domTristrips.h deleted file mode 100644 index 4b8a6c5f5..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domTristrips.h +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domTristrips_h__ -#define __domTristrips_h__ - -#include -#include - -#include -#include -#include - -/** - * The tristrips element provides the information needed to bind vertex attributes - * together and then organize those vertices into connected triangles. Each - * triangle described by the mesh has three vertices. The first triangle - * is formed from first, second, and third vertices. Each subsequent triangle - * is formed from the current vertex, reusing the previous two vertices. - */ -class domTristrips : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TRISTRIPS; } -protected: // Attributes -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; -/** - * The count attribute indicates the number of triangle strip primitives. - * Required attribute. - */ - domUint attrCount; -/** - * The material attribute declares a symbol for a material. This symbol is - * bound to a material at the time of instantiation. If the material attribute - * is not specified then the lighting and shading results are application - * defined. Optional attribute. - */ - xsNCName attrMaterial; - -protected: // Elements -/** - * The input element may occur any number of times. This input is a local - * input with the offset and set attributes. @see domInput - */ - domInputLocalOffset_Array elemInput_array; -/** - * The tristrips element may have any number of p elements. @see domP - */ - domP_Array elemP_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[0] = true; } - - /** - * Gets the count attribute. - * @return Returns a domUint of the count attribute. - */ - domUint getCount() const { return attrCount; } - /** - * Sets the count attribute. - * @param atCount The new value for the count attribute. - */ - void setCount( domUint atCount ) { attrCount = atCount; - _validAttributeArray[1] = true; } - - /** - * Gets the material attribute. - * @return Returns a xsNCName of the material attribute. - */ - xsNCName getMaterial() const { return attrMaterial; } - /** - * Sets the material attribute. - * @param atMaterial The new value for the material attribute. - */ - void setMaterial( xsNCName atMaterial ) { *(daeStringRef*)&attrMaterial = atMaterial; - _validAttributeArray[2] = true; } - - /** - * Gets the input element array. - * @return Returns a reference to the array of input elements. - */ - domInputLocalOffset_Array &getInput_array() { return elemInput_array; } - /** - * Gets the input element array. - * @return Returns a constant reference to the array of input elements. - */ - const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } - /** - * Gets the p element array. - * @return Returns a reference to the array of p elements. - */ - domP_Array &getP_array() { return elemP_array; } - /** - * Gets the p element array. - * @return Returns a constant reference to the array of p elements. - */ - const domP_Array &getP_array() const { return elemP_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domTristrips() : attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domTristrips() {} - /** - * Copy Constructor - */ - domTristrips( const domTristrips &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domTristrips &operator=( const domTristrips &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domTypes.h b/Extras/COLLADA_DOM/include/1.4/dom/domTypes.h deleted file mode 100644 index e328e9a97..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domTypes.h +++ /dev/null @@ -1,1258 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DOM_TYPES_H__ -#define __DOM_TYPES_H__ - -#include - -// Register all types -extern void registerDomTypes(); - -typedef xsBoolean domBool; -typedef xsDateTime domDateTime; -typedef xsDouble domFloat; -typedef xsLong domInt; -typedef xsName domName; -typedef xsString domString; -typedef xsToken domToken; -typedef xsUnsignedLong domUint; -typedef daeTArray domListOfBools; -typedef daeTArray domListOfFloats; -typedef xsHexBinaryArray domListOfHexBinary; -typedef daeTArray domListOfInts; -typedef daeTArray domListOfNames; -typedef daeTArray domListOfTokens; -typedef daeTArray domListOfUInts; -typedef domListOfBools domBool2; -typedef domListOfBools domBool3; -typedef domListOfBools domBool4; -typedef domListOfFloats domFloat2; -typedef domListOfFloats domFloat3; -typedef domListOfFloats domFloat4; -typedef domListOfFloats domFloat7; -typedef domListOfFloats domFloat2x2; -typedef domListOfFloats domFloat3x3; -typedef domListOfFloats domFloat4x4; -typedef domListOfFloats domFloat2x3; -typedef domListOfFloats domFloat2x4; -typedef domListOfFloats domFloat3x2; -typedef domListOfFloats domFloat3x4; -typedef domListOfFloats domFloat4x2; -typedef domListOfFloats domFloat4x3; -typedef domListOfInts domInt2; -typedef domListOfInts domInt3; -typedef domListOfInts domInt4; -typedef domListOfInts domInt2x2; -typedef domListOfInts domInt3x3; -typedef domListOfInts domInt4x4; -/** - * This type is used for URI reference which can only reference a resource - * declared within it's same document. - */ -typedef xsAnyURI domURIFragmentType; -typedef domFloat4 domFx_color_common; -typedef xsString domFx_draw_common; -typedef xsNonNegativeInteger domGL_MAX_LIGHTS_index; -typedef xsNonNegativeInteger domGL_MAX_CLIP_PLANES_index; -typedef xsNonNegativeInteger domGL_MAX_TEXTURE_IMAGE_UNITS_index; -typedef xsFloat domGl_alpha_value_type; -typedef xsFloat domGlsl_float; -typedef xsInt domGlsl_int; -typedef xsBoolean domGlsl_bool; -typedef daeTArray domGlsl_ListOfBool; -typedef daeTArray domGlsl_ListOfFloat; -typedef daeTArray domGlsl_ListOfInt; -typedef domGlsl_ListOfBool domGlsl_bool2; -typedef domGlsl_ListOfBool domGlsl_bool3; -typedef domGlsl_ListOfBool domGlsl_bool4; -typedef domGlsl_ListOfFloat domGlsl_float2; -typedef domGlsl_ListOfFloat domGlsl_float3; -typedef domGlsl_ListOfFloat domGlsl_float4; -typedef domGlsl_ListOfFloat domGlsl_float2x2; -typedef domGlsl_ListOfFloat domGlsl_float3x3; -typedef domGlsl_ListOfFloat domGlsl_float4x4; -typedef domGlsl_ListOfInt domGlsl_int2; -typedef domGlsl_ListOfInt domGlsl_int3; -typedef domGlsl_ListOfInt domGlsl_int4; -typedef xsToken domGlsl_identifier; -typedef xsBoolean domCg_bool; -typedef xsFloat domCg_float; -typedef xsInt domCg_int; -typedef xsFloat domCg_half; -typedef xsFloat domCg_fixed; -typedef xsBoolean domCg_bool1; -typedef xsFloat domCg_float1; -typedef xsInt domCg_int1; -typedef xsFloat domCg_half1; -typedef xsFloat domCg_fixed1; -typedef daeTArray domCg_ListOfBool; -typedef daeTArray domCg_ListOfFloat; -typedef daeTArray domCg_ListOfInt; -typedef daeTArray domCg_ListOfHalf; -typedef daeTArray domCg_ListOfFixed; -typedef domCg_ListOfBool domCg_bool2; -typedef domCg_ListOfBool domCg_bool3; -typedef domCg_ListOfBool domCg_bool4; -typedef domCg_ListOfBool domCg_bool1x1; -typedef domCg_ListOfBool domCg_bool1x2; -typedef domCg_ListOfBool domCg_bool1x3; -typedef domCg_ListOfBool domCg_bool1x4; -typedef domCg_ListOfBool domCg_bool2x1; -typedef domCg_ListOfBool domCg_bool2x2; -typedef domCg_ListOfBool domCg_bool2x3; -typedef domCg_ListOfBool domCg_bool2x4; -typedef domCg_ListOfBool domCg_bool3x1; -typedef domCg_ListOfBool domCg_bool3x2; -typedef domCg_ListOfBool domCg_bool3x3; -typedef domCg_ListOfBool domCg_bool3x4; -typedef domCg_ListOfBool domCg_bool4x1; -typedef domCg_ListOfBool domCg_bool4x2; -typedef domCg_ListOfBool domCg_bool4x3; -typedef domCg_ListOfBool domCg_bool4x4; -typedef domCg_ListOfFloat domCg_float2; -typedef domCg_ListOfFloat domCg_float3; -typedef domCg_ListOfFloat domCg_float4; -typedef domCg_ListOfFloat domCg_float1x1; -typedef domCg_ListOfFloat domCg_float1x2; -typedef domCg_ListOfFloat domCg_float1x3; -typedef domCg_ListOfFloat domCg_float1x4; -typedef domCg_ListOfFloat domCg_float2x1; -typedef domCg_ListOfFloat domCg_float2x2; -typedef domCg_ListOfFloat domCg_float2x3; -typedef domCg_ListOfFloat domCg_float2x4; -typedef domCg_ListOfFloat domCg_float3x1; -typedef domCg_ListOfFloat domCg_float3x2; -typedef domCg_ListOfFloat domCg_float3x3; -typedef domCg_ListOfFloat domCg_float3x4; -typedef domCg_ListOfFloat domCg_float4x1; -typedef domCg_ListOfFloat domCg_float4x2; -typedef domCg_ListOfFloat domCg_float4x3; -typedef domCg_ListOfFloat domCg_float4x4; -typedef domCg_ListOfInt domCg_int2; -typedef domCg_ListOfInt domCg_int3; -typedef domCg_ListOfInt domCg_int4; -typedef domCg_ListOfInt domCg_int1x1; -typedef domCg_ListOfInt domCg_int1x2; -typedef domCg_ListOfInt domCg_int1x3; -typedef domCg_ListOfInt domCg_int1x4; -typedef domCg_ListOfInt domCg_int2x1; -typedef domCg_ListOfInt domCg_int2x2; -typedef domCg_ListOfInt domCg_int2x3; -typedef domCg_ListOfInt domCg_int2x4; -typedef domCg_ListOfInt domCg_int3x1; -typedef domCg_ListOfInt domCg_int3x2; -typedef domCg_ListOfInt domCg_int3x3; -typedef domCg_ListOfInt domCg_int3x4; -typedef domCg_ListOfInt domCg_int4x1; -typedef domCg_ListOfInt domCg_int4x2; -typedef domCg_ListOfInt domCg_int4x3; -typedef domCg_ListOfInt domCg_int4x4; -typedef domCg_ListOfHalf domCg_half2; -typedef domCg_ListOfHalf domCg_half3; -typedef domCg_ListOfHalf domCg_half4; -typedef domCg_ListOfHalf domCg_half1x1; -typedef domCg_ListOfHalf domCg_half1x2; -typedef domCg_ListOfHalf domCg_half1x3; -typedef domCg_ListOfHalf domCg_half1x4; -typedef domCg_ListOfHalf domCg_half2x1; -typedef domCg_ListOfHalf domCg_half2x2; -typedef domCg_ListOfHalf domCg_half2x3; -typedef domCg_ListOfHalf domCg_half2x4; -typedef domCg_ListOfHalf domCg_half3x1; -typedef domCg_ListOfHalf domCg_half3x2; -typedef domCg_ListOfHalf domCg_half3x3; -typedef domCg_ListOfHalf domCg_half3x4; -typedef domCg_ListOfHalf domCg_half4x1; -typedef domCg_ListOfHalf domCg_half4x2; -typedef domCg_ListOfHalf domCg_half4x3; -typedef domCg_ListOfHalf domCg_half4x4; -typedef domCg_ListOfFixed domCg_fixed2; -typedef domCg_ListOfFixed domCg_fixed3; -typedef domCg_ListOfFixed domCg_fixed4; -typedef domCg_ListOfFixed domCg_fixed1x1; -typedef domCg_ListOfFixed domCg_fixed1x2; -typedef domCg_ListOfFixed domCg_fixed1x3; -typedef domCg_ListOfFixed domCg_fixed1x4; -typedef domCg_ListOfFixed domCg_fixed2x1; -typedef domCg_ListOfFixed domCg_fixed2x2; -typedef domCg_ListOfFixed domCg_fixed2x3; -typedef domCg_ListOfFixed domCg_fixed2x4; -typedef domCg_ListOfFixed domCg_fixed3x1; -typedef domCg_ListOfFixed domCg_fixed3x2; -typedef domCg_ListOfFixed domCg_fixed3x3; -typedef domCg_ListOfFixed domCg_fixed3x4; -typedef domCg_ListOfFixed domCg_fixed4x1; -typedef domCg_ListOfFixed domCg_fixed4x2; -typedef domCg_ListOfFixed domCg_fixed4x3; -typedef domCg_ListOfFixed domCg_fixed4x4; -typedef xsToken domCg_identifier; -typedef xsNonNegativeInteger domGLES_MAX_LIGHTS_index; -typedef xsNonNegativeInteger domGLES_MAX_CLIP_PLANES_index; -typedef xsNonNegativeInteger domGLES_MAX_TEXTURE_COORDS_index; -typedef xsNonNegativeInteger domGLES_MAX_TEXTURE_IMAGE_UNITS_index; -typedef xsNonNegativeInteger domGles_texcombiner_argument_index_type; -typedef xsNCName domGles_rendertarget_common; - -/** - * An enumuerated type specifying the acceptable morph methods. - */ -enum domMorphMethodType { - MORPHMETHODTYPE_NORMALIZED, - MORPHMETHODTYPE_RELATIVE, - MORPHMETHODTYPE_COUNT = 2 -}; - -/** - * An enumerated type specifying the acceptable node types. - */ -enum domNodeType { - NODETYPE_JOINT, - NODETYPE_NODE, - NODETYPE_COUNT = 2 -}; - -/** - * An enumerated type specifying the acceptable up-axis values. - */ -enum domUpAxisType { - UPAXISTYPE_X_UP, - UPAXISTYPE_Y_UP, - UPAXISTYPE_Z_UP, - UPAXISTYPE_COUNT = 3 -}; - -/** - * An enumerated type specifying the acceptable document versions. - */ -enum domVersionType { - VERSIONTYPE_1_4_0, - VERSIONTYPE_1_4_1, - VERSIONTYPE_COUNT = 2 -}; - -enum domFx_opaque_enum { - FX_OPAQUE_ENUM_A_ONE, /**< When a transparent opaque attribute is set to A_ONE, it means the transparency information will be taken from the alpha channel of the color, texture, or parameter supplying the value. The value of 1.0 is opaque in this mode. */ - FX_OPAQUE_ENUM_RGB_ZERO, /**< When a transparent opaque attribute is set to RGB_ZERO, it means the transparency information will be taken from the red, green, and blue channels of the color, texture, or parameter supplying the value. Each channel is modulated independently. The value of 0.0 is opaque in this mode. */ - FX_OPAQUE_ENUM_COUNT = 2 -}; - -enum domFx_surface_type_enum { - FX_SURFACE_TYPE_ENUM_UNTYPED, /**< When a surface's type attribute is set to UNTYPED, its type is initially unknown and established later by the context in which it is used, such as by a texture sampler that references it. A surface of any other type may be changed into an UNTYPED surface at run-time, as if it were created by , using . If there is a type mismatch between a operation and what the run-time decides the type should be, the result is profile- and platform-specific behavior. */ - FX_SURFACE_TYPE_ENUM_1D, - FX_SURFACE_TYPE_ENUM_2D, - FX_SURFACE_TYPE_ENUM_3D, - FX_SURFACE_TYPE_ENUM_RECT, - FX_SURFACE_TYPE_ENUM_CUBE, - FX_SURFACE_TYPE_ENUM_DEPTH, - FX_SURFACE_TYPE_ENUM_COUNT = 7 -}; - -enum domFx_surface_face_enum { - FX_SURFACE_FACE_ENUM_POSITIVE_X, - FX_SURFACE_FACE_ENUM_NEGATIVE_X, - FX_SURFACE_FACE_ENUM_POSITIVE_Y, - FX_SURFACE_FACE_ENUM_NEGATIVE_Y, - FX_SURFACE_FACE_ENUM_POSITIVE_Z, - FX_SURFACE_FACE_ENUM_NEGATIVE_Z, - FX_SURFACE_FACE_ENUM_COUNT = 6 -}; - -/** - * The per-texel layout of the format. The length of the string indicate - * how many channels there are and the letter respresents the name of the - * channel. There are typically 0 to 4 channels. - */ -enum domFx_surface_format_hint_channels_enum { - FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_RGB, /**< RGB color map */ - FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_RGBA, /**< RGB color + Alpha map often used for color + transparency or other things packed into channel A like specular power */ - FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_L, /**< Luminance map often used for light mapping */ - FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_LA, /**< Luminance+Alpha map often used for light mapping */ - FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_D, /**< Depth map often used for displacement, parellax, relief, or shadow mapping */ - FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_XYZ, /**< Typically used for normal maps or 3component displacement maps. */ - FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_XYZW, /**< Typically used for normal maps where W is the depth for relief or parrallax mapping */ - FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_COUNT = 7 -}; - -/** - * Each channel of the texel has a precision. Typically these are all linked - * together. An exact format lay lower the precision of an individual channel - * but applying a higher precision by linking the channels together may still - * convey the same information. - */ -enum domFx_surface_format_hint_precision_enum { - FX_SURFACE_FORMAT_HINT_PRECISION_ENUM_LOW, /**< For integers this typically represents 8 bits. For floats typically 16 bits. */ - FX_SURFACE_FORMAT_HINT_PRECISION_ENUM_MID, /**< For integers this typically represents 8 to 24 bits. For floats typically 16 to 32 bits. */ - FX_SURFACE_FORMAT_HINT_PRECISION_ENUM_HIGH, /**< For integers this typically represents 16 to 32 bits. For floats typically 24 to 32 bits. */ - FX_SURFACE_FORMAT_HINT_PRECISION_ENUM_COUNT = 3 -}; - -/** - * Each channel represents a range of values. Some example ranges are signed - * or unsigned integers, or between between a clamped range such as 0.0f to - * 1.0f, or high dynamic range via floating point - */ -enum domFx_surface_format_hint_range_enum { - FX_SURFACE_FORMAT_HINT_RANGE_ENUM_SNORM, /**< Format is representing a decimal value that remains within the -1 to 1 range. Implimentation could be integer-fixedpoint or floats. */ - FX_SURFACE_FORMAT_HINT_RANGE_ENUM_UNORM, /**< Format is representing a decimal value that remains within the 0 to 1 range. Implimentation could be integer-fixedpoint or floats. */ - FX_SURFACE_FORMAT_HINT_RANGE_ENUM_SINT, /**< Format is representing signed integer numbers. (ex. 8bits = -128 to 127) */ - FX_SURFACE_FORMAT_HINT_RANGE_ENUM_UINT, /**< Format is representing unsigned integer numbers. (ex. 8bits = 0 to 255) */ - FX_SURFACE_FORMAT_HINT_RANGE_ENUM_FLOAT, /**< Format should support full floating point ranges. High precision is expected to be 32bit. Mid precision may be 16 to 32 bit. Low precision is expected to be 16 bit. */ - FX_SURFACE_FORMAT_HINT_RANGE_ENUM_COUNT = 5 -}; - -/** - * Additional hints about data relationships and other things to help the - * application pick the best format. - */ -enum domFx_surface_format_hint_option_enum { - FX_SURFACE_FORMAT_HINT_OPTION_ENUM_SRGB_GAMMA, /**< colors are stored with respect to the sRGB 2.2 gamma curve rather than linear */ - FX_SURFACE_FORMAT_HINT_OPTION_ENUM_NORMALIZED3, /**< the texel's XYZ/RGB should be normalized such as in a normal map. */ - FX_SURFACE_FORMAT_HINT_OPTION_ENUM_NORMALIZED4, /**< the texel's XYZW/RGBA should be normalized such as in a normal map. */ - FX_SURFACE_FORMAT_HINT_OPTION_ENUM_COMPRESSABLE, /**< The surface may use run-time compression. Considering the best compression based on desired, channel, range, precision, and options */ - FX_SURFACE_FORMAT_HINT_OPTION_ENUM_COUNT = 4 -}; - -enum domFx_sampler_wrap_common { - FX_SAMPLER_WRAP_COMMON_NONE, - FX_SAMPLER_WRAP_COMMON_WRAP, - FX_SAMPLER_WRAP_COMMON_MIRROR, - FX_SAMPLER_WRAP_COMMON_CLAMP, - FX_SAMPLER_WRAP_COMMON_BORDER, - FX_SAMPLER_WRAP_COMMON_COUNT = 5 -}; - -enum domFx_sampler_filter_common { - FX_SAMPLER_FILTER_COMMON_NONE, - FX_SAMPLER_FILTER_COMMON_NEAREST, - FX_SAMPLER_FILTER_COMMON_LINEAR, - FX_SAMPLER_FILTER_COMMON_NEAREST_MIPMAP_NEAREST, - FX_SAMPLER_FILTER_COMMON_LINEAR_MIPMAP_NEAREST, - FX_SAMPLER_FILTER_COMMON_NEAREST_MIPMAP_LINEAR, - FX_SAMPLER_FILTER_COMMON_LINEAR_MIPMAP_LINEAR, - FX_SAMPLER_FILTER_COMMON_COUNT = 7 -}; - -enum domFx_modifier_enum_common { - FX_MODIFIER_ENUM_COMMON_CONST, - FX_MODIFIER_ENUM_COMMON_UNIFORM, - FX_MODIFIER_ENUM_COMMON_VARYING, - FX_MODIFIER_ENUM_COMMON_STATIC, - FX_MODIFIER_ENUM_COMMON_VOLATILE, - FX_MODIFIER_ENUM_COMMON_EXTERN, - FX_MODIFIER_ENUM_COMMON_SHARED, - FX_MODIFIER_ENUM_COMMON_COUNT = 7 -}; - -enum domFx_pipeline_stage_common { - FX_PIPELINE_STAGE_COMMON_VERTEXPROGRAM, - FX_PIPELINE_STAGE_COMMON_FRAGMENTPROGRAM, - FX_PIPELINE_STAGE_COMMON_VERTEXSHADER, - FX_PIPELINE_STAGE_COMMON_PIXELSHADER, - FX_PIPELINE_STAGE_COMMON_COUNT = 4 -}; - -enum domGl_blend_type { - GL_BLEND_TYPE_ZERO = 0x0, - GL_BLEND_TYPE_ONE = 0x1, - GL_BLEND_TYPE_SRC_COLOR = 0x0300, - GL_BLEND_TYPE_ONE_MINUS_SRC_COLOR = 0x0301, - GL_BLEND_TYPE_DEST_COLOR = 0x0306, - GL_BLEND_TYPE_ONE_MINUS_DEST_COLOR = 0x0307, - GL_BLEND_TYPE_SRC_ALPHA = 0x0302, - GL_BLEND_TYPE_ONE_MINUS_SRC_ALPHA = 0x0303, - GL_BLEND_TYPE_DST_ALPHA = 0x0304, - GL_BLEND_TYPE_ONE_MINUS_DST_ALPHA = 0x0305, - GL_BLEND_TYPE_CONSTANT_COLOR = 0x8001, - GL_BLEND_TYPE_ONE_MINUS_CONSTANT_COLOR = 0x8002, - GL_BLEND_TYPE_CONSTANT_ALPHA = 0x8003, - GL_BLEND_TYPE_ONE_MINUS_CONSTANT_ALPHA = 0x8004, - GL_BLEND_TYPE_SRC_ALPHA_SATURATE = 0x0308, - GL_BLEND_TYPE_COUNT = 15 -}; - -enum domGl_face_type { - GL_FACE_TYPE_FRONT = 0x0404, - GL_FACE_TYPE_BACK = 0x0405, - GL_FACE_TYPE_FRONT_AND_BACK = 0x0408, - GL_FACE_TYPE_COUNT = 3 -}; - -enum domGl_blend_equation_type { - GL_BLEND_EQUATION_TYPE_FUNC_ADD = 0x8006, - GL_BLEND_EQUATION_TYPE_FUNC_SUBTRACT = 0x800A, - GL_BLEND_EQUATION_TYPE_FUNC_REVERSE_SUBTRACT = 0x800B, - GL_BLEND_EQUATION_TYPE_MIN = 0x8007, - GL_BLEND_EQUATION_TYPE_MAX = 0x8008, - GL_BLEND_EQUATION_TYPE_COUNT = 5 -}; - -enum domGl_func_type { - GL_FUNC_TYPE_NEVER = 0x0200, - GL_FUNC_TYPE_LESS = 0x0201, - GL_FUNC_TYPE_LEQUAL = 0x0203, - GL_FUNC_TYPE_EQUAL = 0x0202, - GL_FUNC_TYPE_GREATER = 0x0204, - GL_FUNC_TYPE_NOTEQUAL = 0x0205, - GL_FUNC_TYPE_GEQUAL = 0x0206, - GL_FUNC_TYPE_ALWAYS = 0x0207, - GL_FUNC_TYPE_COUNT = 8 -}; - -enum domGl_stencil_op_type { - GL_STENCIL_OP_TYPE_KEEP = 0x1E00, - GL_STENCIL_OP_TYPE_ZERO = 0x0, - GL_STENCIL_OP_TYPE_REPLACE = 0x1E01, - GL_STENCIL_OP_TYPE_INCR = 0x1E02, - GL_STENCIL_OP_TYPE_DECR = 0x1E03, - GL_STENCIL_OP_TYPE_INVERT = 0x150A, - GL_STENCIL_OP_TYPE_INCR_WRAP = 0x8507, - GL_STENCIL_OP_TYPE_DECR_WRAP = 0x8508, - GL_STENCIL_OP_TYPE_COUNT = 8 -}; - -enum domGl_material_type { - GL_MATERIAL_TYPE_EMISSION = 0x1600, - GL_MATERIAL_TYPE_AMBIENT = 0x1200, - GL_MATERIAL_TYPE_DIFFUSE = 0x1201, - GL_MATERIAL_TYPE_SPECULAR = 0x1202, - GL_MATERIAL_TYPE_AMBIENT_AND_DIFFUSE = 0x1602, - GL_MATERIAL_TYPE_COUNT = 5 -}; - -enum domGl_fog_type { - GL_FOG_TYPE_LINEAR = 0x2601, - GL_FOG_TYPE_EXP = 0x0800, - GL_FOG_TYPE_EXP2 = 0x0801, - GL_FOG_TYPE_COUNT = 3 -}; - -enum domGl_fog_coord_src_type { - GL_FOG_COORD_SRC_TYPE_FOG_COORDINATE = 0x8451, - GL_FOG_COORD_SRC_TYPE_FRAGMENT_DEPTH = 0x8452, - GL_FOG_COORD_SRC_TYPE_COUNT = 2 -}; - -enum domGl_front_face_type { - GL_FRONT_FACE_TYPE_CW = 0x0900, - GL_FRONT_FACE_TYPE_CCW = 0x0901, - GL_FRONT_FACE_TYPE_COUNT = 2 -}; - -enum domGl_light_model_color_control_type { - GL_LIGHT_MODEL_COLOR_CONTROL_TYPE_SINGLE_COLOR = 0x81F9, - GL_LIGHT_MODEL_COLOR_CONTROL_TYPE_SEPARATE_SPECULAR_COLOR = 0x81FA, - GL_LIGHT_MODEL_COLOR_CONTROL_TYPE_COUNT = 2 -}; - -enum domGl_logic_op_type { - GL_LOGIC_OP_TYPE_CLEAR = 0x1500, - GL_LOGIC_OP_TYPE_AND = 0x1501, - GL_LOGIC_OP_TYPE_AND_REVERSE = 0x1502, - GL_LOGIC_OP_TYPE_COPY = 0x1503, - GL_LOGIC_OP_TYPE_AND_INVERTED = 0x1504, - GL_LOGIC_OP_TYPE_NOOP = 0x1505, - GL_LOGIC_OP_TYPE_XOR = 0x1506, - GL_LOGIC_OP_TYPE_OR = 0x1507, - GL_LOGIC_OP_TYPE_NOR = 0x1508, - GL_LOGIC_OP_TYPE_EQUIV = 0x1509, - GL_LOGIC_OP_TYPE_INVERT = 0x150A, - GL_LOGIC_OP_TYPE_OR_REVERSE = 0x150B, - GL_LOGIC_OP_TYPE_COPY_INVERTED = 0x150C, - GL_LOGIC_OP_TYPE_NAND = 0x150E, - GL_LOGIC_OP_TYPE_SET = 0x150F, - GL_LOGIC_OP_TYPE_COUNT = 15 -}; - -enum domGl_polygon_mode_type { - GL_POLYGON_MODE_TYPE_POINT = 0x1B00, - GL_POLYGON_MODE_TYPE_LINE = 0x1B01, - GL_POLYGON_MODE_TYPE_FILL = 0x1B02, - GL_POLYGON_MODE_TYPE_COUNT = 3 -}; - -enum domGl_shade_model_type { - GL_SHADE_MODEL_TYPE_FLAT = 0x1D00, - GL_SHADE_MODEL_TYPE_SMOOTH = 0x1D01, - GL_SHADE_MODEL_TYPE_COUNT = 2 -}; - -enum domGlsl_pipeline_stage { - GLSL_PIPELINE_STAGE_VERTEXPROGRAM, - GLSL_PIPELINE_STAGE_FRAGMENTPROGRAM, - GLSL_PIPELINE_STAGE_COUNT = 2 -}; - -enum domCg_pipeline_stage { - CG_PIPELINE_STAGE_VERTEX, - CG_PIPELINE_STAGE_FRAGMENT, - CG_PIPELINE_STAGE_COUNT = 2 -}; - -enum domGles_texenv_mode_enums { - GLES_TEXENV_MODE_ENUMS_REPLACE = 0x1E01, - GLES_TEXENV_MODE_ENUMS_MODULATE = 0x2100, - GLES_TEXENV_MODE_ENUMS_DECAL = 0x2101, - GLES_TEXENV_MODE_ENUMS_BLEND = 0x0BE2, - GLES_TEXENV_MODE_ENUMS_ADD = 0x0104, - GLES_TEXENV_MODE_ENUMS_COUNT = 5 -}; - -enum domGles_texcombiner_operatorRGB_enums { - GLES_TEXCOMBINER_OPERATORRGB_ENUMS_REPLACE = 0x1E01, - GLES_TEXCOMBINER_OPERATORRGB_ENUMS_MODULATE = 0x2100, - GLES_TEXCOMBINER_OPERATORRGB_ENUMS_ADD = 0x0104, - GLES_TEXCOMBINER_OPERATORRGB_ENUMS_ADD_SIGNED = 0x8574, - GLES_TEXCOMBINER_OPERATORRGB_ENUMS_INTERPOLATE = 0x8575, - GLES_TEXCOMBINER_OPERATORRGB_ENUMS_SUBTRACT = 0x84E7, - GLES_TEXCOMBINER_OPERATORRGB_ENUMS_DOT3_RGB = 0x86AE, - GLES_TEXCOMBINER_OPERATORRGB_ENUMS_DOT3_RGBA = 0x86AF, - GLES_TEXCOMBINER_OPERATORRGB_ENUMS_COUNT = 8 -}; - -enum domGles_texcombiner_operatorAlpha_enums { - GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_REPLACE = 0x1E01, - GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_MODULATE = 0x2100, - GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_ADD = 0x0104, - GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_ADD_SIGNED = 0x8574, - GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_INTERPOLATE = 0x8575, - GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_SUBTRACT = 0x84E7, - GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_COUNT = 6 -}; - -enum domGles_texcombiner_source_enums { - GLES_TEXCOMBINER_SOURCE_ENUMS_TEXTURE = 0x1702, - GLES_TEXCOMBINER_SOURCE_ENUMS_CONSTANT = 0x8576, - GLES_TEXCOMBINER_SOURCE_ENUMS_PRIMARY = 0x8577, - GLES_TEXCOMBINER_SOURCE_ENUMS_PREVIOUS = 0x8578, - GLES_TEXCOMBINER_SOURCE_ENUMS_COUNT = 4 -}; - -enum domGles_texcombiner_operandRGB_enums { - GLES_TEXCOMBINER_OPERANDRGB_ENUMS_SRC_COLOR = 0x0300, - GLES_TEXCOMBINER_OPERANDRGB_ENUMS_ONE_MINUS_SRC_COLOR = 0x0301, - GLES_TEXCOMBINER_OPERANDRGB_ENUMS_SRC_ALPHA = 0x0302, - GLES_TEXCOMBINER_OPERANDRGB_ENUMS_ONE_MINUS_SRC_ALPHA = 0x0303, - GLES_TEXCOMBINER_OPERANDRGB_ENUMS_COUNT = 4 -}; - -enum domGles_texcombiner_operandAlpha_enums { - GLES_TEXCOMBINER_OPERANDALPHA_ENUMS_SRC_ALPHA = 0x0302, - GLES_TEXCOMBINER_OPERANDALPHA_ENUMS_ONE_MINUS_SRC_ALPHA = 0x0303, - GLES_TEXCOMBINER_OPERANDALPHA_ENUMS_COUNT = 2 -}; - -enum domGles_sampler_wrap { - GLES_SAMPLER_WRAP_REPEAT, - GLES_SAMPLER_WRAP_CLAMP, - GLES_SAMPLER_WRAP_CLAMP_TO_EDGE, - GLES_SAMPLER_WRAP_MIRRORED_REPEAT, /**< supported by GLES 1.1 only */ - GLES_SAMPLER_WRAP_COUNT = 4 -}; - -enum domGles_stencil_op_type { - GLES_STENCIL_OP_TYPE_KEEP = 0x1E00, - GLES_STENCIL_OP_TYPE_ZERO = 0x0, - GLES_STENCIL_OP_TYPE_REPLACE = 0x1E01, - GLES_STENCIL_OP_TYPE_INCR = 0x1E02, - GLES_STENCIL_OP_TYPE_DECR = 0x1E03, - GLES_STENCIL_OP_TYPE_INVERT = 0x150A, - GLES_STENCIL_OP_TYPE_COUNT = 6 -}; - -enum domSpringType { - SPRINGTYPE_LINEAR, - SPRINGTYPE_ANGULAR, - SPRINGTYPE_COUNT = 2 -}; - -enum domGl_enumeration { - GL_ENUMERATION_ZERO = 0x0, - GL_ENUMERATION_ONE = 0x1, - GL_ENUMERATION_SRC_COLOR = 0x0300, - GL_ENUMERATION_ONE_MINUS_SRC_COLOR = 0x0301, - GL_ENUMERATION_DEST_COLOR = 0x0306, - GL_ENUMERATION_ONE_MINUS_DEST_COLOR = 0x0307, - GL_ENUMERATION_SRC_ALPHA = 0x0302, - GL_ENUMERATION_ONE_MINUS_SRC_ALPHA = 0x0303, - GL_ENUMERATION_DST_ALPHA = 0x0304, - GL_ENUMERATION_ONE_MINUS_DST_ALPHA = 0x0305, - GL_ENUMERATION_CONSTANT_COLOR = 0x8001, - GL_ENUMERATION_ONE_MINUS_CONSTANT_COLOR = 0x8002, - GL_ENUMERATION_CONSTANT_ALPHA = 0x8003, - GL_ENUMERATION_ONE_MINUS_CONSTANT_ALPHA = 0x8004, - GL_ENUMERATION_SRC_ALPHA_SATURATE = 0x0308, - GL_ENUMERATION_FRONT = 0x0404, - GL_ENUMERATION_BACK = 0x0405, - GL_ENUMERATION_FRONT_AND_BACK = 0x0408, - GL_ENUMERATION_FUNC_ADD = 0x8006, - GL_ENUMERATION_FUNC_SUBTRACT = 0x800A, - GL_ENUMERATION_FUNC_REVERSE_SUBTRACT = 0x800B, - GL_ENUMERATION_MIN = 0x8007, - GL_ENUMERATION_MAX = 0x8008, - GL_ENUMERATION_NEVER = 0x0200, - GL_ENUMERATION_LESS = 0x0201, - GL_ENUMERATION_LEQUAL = 0x0203, - GL_ENUMERATION_EQUAL = 0x0202, - GL_ENUMERATION_GREATER = 0x0204, - GL_ENUMERATION_NOTEQUAL = 0x0205, - GL_ENUMERATION_GEQUAL = 0x0206, - GL_ENUMERATION_ALWAYS = 0x0207, - GL_ENUMERATION_KEEP = 0x1E00, - GL_ENUMERATION_REPLACE = 0x1E01, - GL_ENUMERATION_INCR = 0x1E02, - GL_ENUMERATION_DECR = 0x1E03, - GL_ENUMERATION_INVERT = 0x150A, - GL_ENUMERATION_INCR_WRAP = 0x8507, - GL_ENUMERATION_DECR_WRAP = 0x8508, - GL_ENUMERATION_EMISSION = 0x1600, - GL_ENUMERATION_AMBIENT = 0x1200, - GL_ENUMERATION_DIFFUSE = 0x1201, - GL_ENUMERATION_SPECULAR = 0x1202, - GL_ENUMERATION_AMBIENT_AND_DIFFUSE = 0x1602, - GL_ENUMERATION_LINEAR = 0x2601, - GL_ENUMERATION_EXP = 0x0800, - GL_ENUMERATION_EXP2 = 0x0801, - GL_ENUMERATION_FOG_COORDINATE = 0x8451, - GL_ENUMERATION_FRAGMENT_DEPTH = 0x8452, - GL_ENUMERATION_CW = 0x0900, - GL_ENUMERATION_CCW = 0x0901, - GL_ENUMERATION_SINGLE_COLOR = 0x81F9, - GL_ENUMERATION_SEPARATE_SPECULAR_COLOR = 0x81FA, - GL_ENUMERATION_CLEAR = 0x1500, - GL_ENUMERATION_AND = 0x1501, - GL_ENUMERATION_AND_REVERSE = 0x1502, - GL_ENUMERATION_COPY = 0x1503, - GL_ENUMERATION_AND_INVERTED = 0x1504, - GL_ENUMERATION_NOOP = 0x1505, - GL_ENUMERATION_XOR = 0x1506, - GL_ENUMERATION_OR = 0x1507, - GL_ENUMERATION_NOR = 0x1508, - GL_ENUMERATION_EQUIV = 0x1509, - GL_ENUMERATION_OR_REVERSE = 0x150B, - GL_ENUMERATION_COPY_INVERTED = 0x150C, - GL_ENUMERATION_NAND = 0x150E, - GL_ENUMERATION_SET = 0x150F, - GL_ENUMERATION_POINT = 0x1B00, - GL_ENUMERATION_LINE = 0x1B01, - GL_ENUMERATION_FILL = 0x1B02, - GL_ENUMERATION_FLAT = 0x1D00, - GL_ENUMERATION_SMOOTH = 0x1D01, - GL_ENUMERATION_COUNT = 72 -}; - -enum domGles_enumeration { - GLES_ENUMERATION_ZERO = 0x0, - GLES_ENUMERATION_ONE = 0x1, - GLES_ENUMERATION_SRC_COLOR = 0x0300, - GLES_ENUMERATION_ONE_MINUS_SRC_COLOR = 0x0301, - GLES_ENUMERATION_DEST_COLOR = 0x0306, - GLES_ENUMERATION_ONE_MINUS_DEST_COLOR = 0x0307, - GLES_ENUMERATION_SRC_ALPHA = 0x0302, - GLES_ENUMERATION_ONE_MINUS_SRC_ALPHA = 0x0303, - GLES_ENUMERATION_DST_ALPHA = 0x0304, - GLES_ENUMERATION_ONE_MINUS_DST_ALPHA = 0x0305, - GLES_ENUMERATION_CONSTANT_COLOR = 0x8001, - GLES_ENUMERATION_ONE_MINUS_CONSTANT_COLOR = 0x8002, - GLES_ENUMERATION_CONSTANT_ALPHA = 0x8003, - GLES_ENUMERATION_ONE_MINUS_CONSTANT_ALPHA = 0x8004, - GLES_ENUMERATION_SRC_ALPHA_SATURATE = 0x0308, - GLES_ENUMERATION_FRONT = 0x0404, - GLES_ENUMERATION_BACK = 0x0405, - GLES_ENUMERATION_FRONT_AND_BACK = 0x0408, - GLES_ENUMERATION_NEVER = 0x0200, - GLES_ENUMERATION_LESS = 0x0201, - GLES_ENUMERATION_LEQUAL = 0x0203, - GLES_ENUMERATION_EQUAL = 0x0202, - GLES_ENUMERATION_GREATER = 0x0204, - GLES_ENUMERATION_NOTEQUAL = 0x0205, - GLES_ENUMERATION_GEQUAL = 0x0206, - GLES_ENUMERATION_ALWAYS = 0x0207, - GLES_ENUMERATION_KEEP = 0x1E00, - GLES_ENUMERATION_REPLACE = 0x1E01, - GLES_ENUMERATION_INCR = 0x1E02, - GLES_ENUMERATION_DECR = 0x1E03, - GLES_ENUMERATION_INVERT = 0x150A, - GLES_ENUMERATION_INCR_WRAP = 0x8507, - GLES_ENUMERATION_DECR_WRAP = 0x8508, - GLES_ENUMERATION_EMISSION = 0x1600, - GLES_ENUMERATION_AMBIENT = 0x1200, - GLES_ENUMERATION_DIFFUSE = 0x1201, - GLES_ENUMERATION_SPECULAR = 0x1202, - GLES_ENUMERATION_AMBIENT_AND_DIFFUSE = 0x1602, - GLES_ENUMERATION_LINEAR = 0x2601, - GLES_ENUMERATION_EXP = 0x0800, - GLES_ENUMERATION_EXP2 = 0x0801, - GLES_ENUMERATION_CW = 0x0900, - GLES_ENUMERATION_CCW = 0x0901, - GLES_ENUMERATION_SINGLE_COLOR = 0x81F9, - GLES_ENUMERATION_SEPARATE_SPECULAR_COLOR = 0x81FA, - GLES_ENUMERATION_CLEAR = 0x1500, - GLES_ENUMERATION_AND = 0x1501, - GLES_ENUMERATION_AND_REVERSE = 0x1502, - GLES_ENUMERATION_COPY = 0x1503, - GLES_ENUMERATION_AND_INVERTED = 0x1504, - GLES_ENUMERATION_NOOP = 0x1505, - GLES_ENUMERATION_XOR = 0x1506, - GLES_ENUMERATION_OR = 0x1507, - GLES_ENUMERATION_NOR = 0x1508, - GLES_ENUMERATION_EQUIV = 0x1509, - GLES_ENUMERATION_OR_REVERSE = 0x150B, - GLES_ENUMERATION_COPY_INVERTED = 0x150C, - GLES_ENUMERATION_NAND = 0x150E, - GLES_ENUMERATION_SET = 0x150F, - GLES_ENUMERATION_POINT = 0x1B00, - GLES_ENUMERATION_LINE = 0x1B01, - GLES_ENUMERATION_FILL = 0x1B02, - GLES_ENUMERATION_FLAT = 0x1D00, - GLES_ENUMERATION_SMOOTH = 0x1D01, - GLES_ENUMERATION_COUNT = 65 -}; - -//Element Type Enum -namespace COLLADA_TYPE -{ -#ifdef _MSC_VER - enum TypeEnum - { -#else - const int -#endif - NO_TYPE = 0, - ANY = 1, - INPUTGLOBAL = 2, - INPUTLOCAL = 3, - INPUTLOCALOFFSET = 4, - INSTANCEWITHEXTRA = 5, - TARGETABLEFLOAT = 6, - TARGETABLEFLOAT3 = 7, - FX_SURFACE_FORMAT_HINT_COMMON = 8, - CHANNELS = 9, - RANGE = 10, - PRECISION = 11, - OPTION = 12, - FX_SURFACE_INIT_PLANAR_COMMON = 13, - ALL = 14, - FX_SURFACE_INIT_VOLUME_COMMON = 15, - PRIMARY = 16, - FX_SURFACE_INIT_CUBE_COMMON = 17, - ORDER = 18, - FACE = 19, - FX_SURFACE_INIT_FROM_COMMON = 20, - FX_SURFACE_COMMON = 21, - FORMAT = 22, - SIZE = 23, - VIEWPORT_RATIO = 24, - MIP_LEVELS = 25, - MIPMAP_GENERATE = 26, - FX_SAMPLER1D_COMMON = 27, - SOURCE = 28, - WRAP_S = 29, - MINFILTER = 30, - MAGFILTER = 31, - MIPFILTER = 32, - BORDER_COLOR = 33, - MIPMAP_MAXLEVEL = 34, - MIPMAP_BIAS = 35, - FX_SAMPLER2D_COMMON = 36, - WRAP_T = 37, - FX_SAMPLER3D_COMMON = 38, - WRAP_P = 39, - FX_SAMPLERCUBE_COMMON = 40, - FX_SAMPLERRECT_COMMON = 41, - FX_SAMPLERDEPTH_COMMON = 42, - FX_COLORTARGET_COMMON = 43, - FX_DEPTHTARGET_COMMON = 44, - FX_STENCILTARGET_COMMON = 45, - FX_CLEARCOLOR_COMMON = 46, - FX_CLEARDEPTH_COMMON = 47, - FX_CLEARSTENCIL_COMMON = 48, - FX_ANNOTATE_COMMON = 49, - FX_INCLUDE_COMMON = 50, - FX_NEWPARAM_COMMON = 51, - SEMANTIC = 52, - MODIFIER = 53, - FX_CODE_PROFILE = 54, - GL_SAMPLER1D = 55, - GL_SAMPLER2D = 56, - GL_SAMPLER3D = 57, - GL_SAMPLERCUBE = 58, - GL_SAMPLERRECT = 59, - GL_SAMPLERDEPTH = 60, - GLSL_NEWARRAY_TYPE = 61, - GLSL_SETARRAY_TYPE = 62, - GLSL_SURFACE_TYPE = 63, - GENERATOR = 64, - NAME = 65, - GLSL_NEWPARAM = 66, - GLSL_SETPARAM_SIMPLE = 67, - GLSL_SETPARAM = 68, - COMMON_FLOAT_OR_PARAM_TYPE = 69, - FLOAT = 70, - PARAM = 71, - COMMON_COLOR_OR_TEXTURE_TYPE = 72, - COLOR = 73, - TEXTURE = 74, - COMMON_TRANSPARENT_TYPE = 75, - COMMON_NEWPARAM_TYPE = 76, - FLOAT2 = 77, - FLOAT3 = 78, - FLOAT4 = 79, - CG_SAMPLER1D = 80, - CG_SAMPLER2D = 81, - CG_SAMPLER3D = 82, - CG_SAMPLERCUBE = 83, - CG_SAMPLERRECT = 84, - CG_SAMPLERDEPTH = 85, - CG_CONNECT_PARAM = 86, - CG_NEWARRAY_TYPE = 87, - CG_SETARRAY_TYPE = 88, - CG_SETUSER_TYPE = 89, - CG_SURFACE_TYPE = 90, - CG_NEWPARAM = 91, - CG_SETPARAM_SIMPLE = 92, - CG_SETPARAM = 93, - GLES_TEXTURE_CONSTANT_TYPE = 94, - GLES_TEXENV_COMMAND_TYPE = 95, - GLES_TEXCOMBINER_ARGUMENTRGB_TYPE = 96, - GLES_TEXCOMBINER_ARGUMENTALPHA_TYPE = 97, - GLES_TEXCOMBINER_COMMANDRGB_TYPE = 98, - GLES_TEXCOMBINER_COMMANDALPHA_TYPE = 99, - GLES_TEXCOMBINER_COMMAND_TYPE = 100, - GLES_TEXTURE_PIPELINE = 101, - GLES_TEXTURE_UNIT = 102, - SURFACE = 103, - SAMPLER_STATE = 104, - TEXCOORD = 105, - GLES_SAMPLER_STATE = 106, - GLES_NEWPARAM = 107, - FX_SURFACE_INIT_COMMON = 108, - INIT_AS_NULL = 109, - INIT_AS_TARGET = 110, - FX_ANNOTATE_TYPE_COMMON = 111, - BOOL = 112, - BOOL2 = 113, - BOOL3 = 114, - BOOL4 = 115, - INT = 116, - INT2 = 117, - INT3 = 118, - INT4 = 119, - FLOAT2X2 = 120, - FLOAT3X3 = 121, - FLOAT4X4 = 122, - STRING = 123, - FX_BASIC_TYPE_COMMON = 124, - FLOAT1X1 = 125, - FLOAT1X2 = 126, - FLOAT1X3 = 127, - FLOAT1X4 = 128, - FLOAT2X1 = 129, - FLOAT2X3 = 130, - FLOAT2X4 = 131, - FLOAT3X1 = 132, - FLOAT3X2 = 133, - FLOAT3X4 = 134, - FLOAT4X1 = 135, - FLOAT4X2 = 136, - FLOAT4X3 = 137, - ENUM = 138, - GL_PIPELINE_SETTINGS = 139, - ALPHA_FUNC = 140, - FUNC = 141, - VALUE = 142, - BLEND_FUNC = 143, - SRC = 144, - DEST = 145, - BLEND_FUNC_SEPARATE = 146, - SRC_RGB = 147, - DEST_RGB = 148, - SRC_ALPHA = 149, - DEST_ALPHA = 150, - BLEND_EQUATION = 151, - BLEND_EQUATION_SEPARATE = 152, - RGB = 153, - ALPHA = 154, - COLOR_MATERIAL = 155, - MODE = 156, - CULL_FACE = 157, - DEPTH_FUNC = 158, - FOG_MODE = 159, - FOG_COORD_SRC = 160, - FRONT_FACE = 161, - LIGHT_MODEL_COLOR_CONTROL = 162, - LOGIC_OP = 163, - POLYGON_MODE = 164, - SHADE_MODEL = 165, - STENCIL_FUNC = 166, - REF = 167, - MASK = 168, - STENCIL_OP = 169, - FAIL = 170, - ZFAIL = 171, - ZPASS = 172, - STENCIL_FUNC_SEPARATE = 173, - FRONT = 174, - BACK = 175, - STENCIL_OP_SEPARATE = 176, - STENCIL_MASK_SEPARATE = 177, - LIGHT_ENABLE = 178, - LIGHT_AMBIENT = 179, - LIGHT_DIFFUSE = 180, - LIGHT_SPECULAR = 181, - LIGHT_POSITION = 182, - LIGHT_CONSTANT_ATTENUATION = 183, - LIGHT_LINEAR_ATTENUATION = 184, - LIGHT_QUADRATIC_ATTENUATION = 185, - LIGHT_SPOT_CUTOFF = 186, - LIGHT_SPOT_DIRECTION = 187, - LIGHT_SPOT_EXPONENT = 188, - TEXTURE1D = 189, - TEXTURE2D = 190, - TEXTURE3D = 191, - TEXTURECUBE = 192, - TEXTURERECT = 193, - TEXTUREDEPTH = 194, - TEXTURE1D_ENABLE = 195, - TEXTURE2D_ENABLE = 196, - TEXTURE3D_ENABLE = 197, - TEXTURECUBE_ENABLE = 198, - TEXTURERECT_ENABLE = 199, - TEXTUREDEPTH_ENABLE = 200, - TEXTURE_ENV_COLOR = 201, - TEXTURE_ENV_MODE = 202, - CLIP_PLANE = 203, - CLIP_PLANE_ENABLE = 204, - BLEND_COLOR = 205, - CLEAR_COLOR = 206, - CLEAR_STENCIL = 207, - CLEAR_DEPTH = 208, - COLOR_MASK = 209, - DEPTH_BOUNDS = 210, - DEPTH_MASK = 211, - DEPTH_RANGE = 212, - FOG_DENSITY = 213, - FOG_START = 214, - FOG_END = 215, - FOG_COLOR = 216, - LIGHT_MODEL_AMBIENT = 217, - LIGHTING_ENABLE = 218, - LINE_STIPPLE = 219, - LINE_WIDTH = 220, - MATERIAL_AMBIENT = 221, - MATERIAL_DIFFUSE = 222, - MATERIAL_EMISSION = 223, - MATERIAL_SHININESS = 224, - MATERIAL_SPECULAR = 225, - MODEL_VIEW_MATRIX = 226, - POINT_DISTANCE_ATTENUATION = 227, - POINT_FADE_THRESHOLD_SIZE = 228, - POINT_SIZE = 229, - POINT_SIZE_MIN = 230, - POINT_SIZE_MAX = 231, - POLYGON_OFFSET = 232, - PROJECTION_MATRIX = 233, - SCISSOR = 234, - STENCIL_MASK = 235, - ALPHA_TEST_ENABLE = 236, - AUTO_NORMAL_ENABLE = 237, - BLEND_ENABLE = 238, - COLOR_LOGIC_OP_ENABLE = 239, - COLOR_MATERIAL_ENABLE = 240, - CULL_FACE_ENABLE = 241, - DEPTH_BOUNDS_ENABLE = 242, - DEPTH_CLAMP_ENABLE = 243, - DEPTH_TEST_ENABLE = 244, - DITHER_ENABLE = 245, - FOG_ENABLE = 246, - LIGHT_MODEL_LOCAL_VIEWER_ENABLE = 247, - LIGHT_MODEL_TWO_SIDE_ENABLE = 248, - LINE_SMOOTH_ENABLE = 249, - LINE_STIPPLE_ENABLE = 250, - LOGIC_OP_ENABLE = 251, - MULTISAMPLE_ENABLE = 252, - NORMALIZE_ENABLE = 253, - POINT_SMOOTH_ENABLE = 254, - POLYGON_OFFSET_FILL_ENABLE = 255, - POLYGON_OFFSET_LINE_ENABLE = 256, - POLYGON_OFFSET_POINT_ENABLE = 257, - POLYGON_SMOOTH_ENABLE = 258, - POLYGON_STIPPLE_ENABLE = 259, - RESCALE_NORMAL_ENABLE = 260, - SAMPLE_ALPHA_TO_COVERAGE_ENABLE = 261, - SAMPLE_ALPHA_TO_ONE_ENABLE = 262, - SAMPLE_COVERAGE_ENABLE = 263, - SCISSOR_TEST_ENABLE = 264, - STENCIL_TEST_ENABLE = 265, - GLSL_PARAM_TYPE = 266, - CG_PARAM_TYPE = 267, - BOOL1 = 268, - BOOL1X1 = 269, - BOOL1X2 = 270, - BOOL1X3 = 271, - BOOL1X4 = 272, - BOOL2X1 = 273, - BOOL2X2 = 274, - BOOL2X3 = 275, - BOOL2X4 = 276, - BOOL3X1 = 277, - BOOL3X2 = 278, - BOOL3X3 = 279, - BOOL3X4 = 280, - BOOL4X1 = 281, - BOOL4X2 = 282, - BOOL4X3 = 283, - BOOL4X4 = 284, - FLOAT1 = 285, - INT1 = 286, - INT1X1 = 287, - INT1X2 = 288, - INT1X3 = 289, - INT1X4 = 290, - INT2X1 = 291, - INT2X2 = 292, - INT2X3 = 293, - INT2X4 = 294, - INT3X1 = 295, - INT3X2 = 296, - INT3X3 = 297, - INT3X4 = 298, - INT4X1 = 299, - INT4X2 = 300, - INT4X3 = 301, - INT4X4 = 302, - HALF = 303, - HALF1 = 304, - HALF2 = 305, - HALF3 = 306, - HALF4 = 307, - HALF1X1 = 308, - HALF1X2 = 309, - HALF1X3 = 310, - HALF1X4 = 311, - HALF2X1 = 312, - HALF2X2 = 313, - HALF2X3 = 314, - HALF2X4 = 315, - HALF3X1 = 316, - HALF3X2 = 317, - HALF3X3 = 318, - HALF3X4 = 319, - HALF4X1 = 320, - HALF4X2 = 321, - HALF4X3 = 322, - HALF4X4 = 323, - FIXED = 324, - FIXED1 = 325, - FIXED2 = 326, - FIXED3 = 327, - FIXED4 = 328, - FIXED1X1 = 329, - FIXED1X2 = 330, - FIXED1X3 = 331, - FIXED1X4 = 332, - FIXED2X1 = 333, - FIXED2X2 = 334, - FIXED2X3 = 335, - FIXED2X4 = 336, - FIXED3X1 = 337, - FIXED3X2 = 338, - FIXED3X3 = 339, - FIXED3X4 = 340, - FIXED4X1 = 341, - FIXED4X2 = 342, - FIXED4X3 = 343, - FIXED4X4 = 344, - GLES_PIPELINE_SETTINGS = 345, - TEXTURE_PIPELINE = 346, - LIGHT_LINEAR_ATTENUTATION = 347, - TEXTURE_PIPELINE_ENABLE = 348, - GLES_BASIC_TYPE_COMMON = 349, - COLLADA = 350, - SCENE = 351, - IDREF_ARRAY = 352, - NAME_ARRAY = 353, - BOOL_ARRAY = 354, - FLOAT_ARRAY = 355, - INT_ARRAY = 356, - ACCESSOR = 357, - TECHNIQUE_COMMON = 358, - GEOMETRY = 359, - MESH = 360, - SPLINE = 361, - CONTROL_VERTICES = 362, - P = 363, - LINES = 364, - LINESTRIPS = 365, - POLYGONS = 366, - PH = 367, - H = 368, - POLYLIST = 369, - VCOUNT = 370, - TRIANGLES = 371, - TRIFANS = 372, - TRISTRIPS = 373, - VERTICES = 374, - LOOKAT = 375, - MATRIX = 376, - ROTATE = 377, - SCALE = 378, - SKEW = 379, - TRANSLATE = 380, - IMAGE = 381, - DATA = 382, - INIT_FROM = 383, - LIGHT = 384, - AMBIENT = 385, - DIRECTIONAL = 386, - POINT = 387, - SPOT = 388, - MATERIAL = 389, - CAMERA = 390, - OPTICS = 391, - ORTHOGRAPHIC = 392, - PERSPECTIVE = 393, - IMAGER = 394, - ANIMATION = 395, - ANIMATION_CLIP = 396, - CHANNEL = 397, - SAMPLER = 398, - CONTROLLER = 399, - SKIN = 400, - BIND_SHAPE_MATRIX = 401, - JOINTS = 402, - VERTEX_WEIGHTS = 403, - V = 404, - MORPH = 405, - TARGETS = 406, - ASSET = 407, - CONTRIBUTOR = 408, - AUTHOR = 409, - AUTHORING_TOOL = 410, - COMMENTS = 411, - COPYRIGHT = 412, - SOURCE_DATA = 413, - CREATED = 414, - KEYWORDS = 415, - MODIFIED = 416, - REVISION = 417, - SUBJECT = 418, - TITLE = 419, - UNIT = 420, - UP_AXIS = 421, - EXTRA = 422, - TECHNIQUE = 423, - NODE = 424, - VISUAL_SCENE = 425, - EVALUATE_SCENE = 426, - RENDER = 427, - LAYER = 428, - BIND_MATERIAL = 429, - INSTANCE_CAMERA = 430, - INSTANCE_CONTROLLER = 431, - SKELETON = 432, - INSTANCE_EFFECT = 433, - TECHNIQUE_HINT = 434, - SETPARAM = 435, - INSTANCE_FORCE_FIELD = 436, - INSTANCE_GEOMETRY = 437, - INSTANCE_LIGHT = 438, - INSTANCE_MATERIAL = 439, - BIND = 440, - BIND_VERTEX_INPUT = 441, - INSTANCE_NODE = 442, - INSTANCE_PHYSICS_MATERIAL = 443, - INSTANCE_PHYSICS_MODEL = 444, - INSTANCE_RIGID_BODY = 445, - ANGULAR_VELOCITY = 446, - VELOCITY = 447, - DYNAMIC = 448, - MASS_FRAME = 449, - SHAPE = 450, - HOLLOW = 451, - INSTANCE_RIGID_CONSTRAINT = 452, - LIBRARY_ANIMATIONS = 453, - LIBRARY_ANIMATION_CLIPS = 454, - LIBRARY_CAMERAS = 455, - LIBRARY_CONTROLLERS = 456, - LIBRARY_GEOMETRIES = 457, - LIBRARY_EFFECTS = 458, - LIBRARY_FORCE_FIELDS = 459, - LIBRARY_IMAGES = 460, - LIBRARY_LIGHTS = 461, - LIBRARY_MATERIALS = 462, - LIBRARY_NODES = 463, - LIBRARY_PHYSICS_MATERIALS = 464, - LIBRARY_PHYSICS_MODELS = 465, - LIBRARY_PHYSICS_SCENES = 466, - LIBRARY_VISUAL_SCENES = 467, - FX_PROFILE_ABSTRACT = 468, - EFFECT = 469, - GL_HOOK_ABSTRACT = 470, - PROFILE_GLSL = 471, - PASS = 472, - DRAW = 473, - SHADER = 474, - COMPILER_TARGET = 475, - COMPILER_OPTIONS = 476, - PROFILE_COMMON = 477, - CONSTANT = 478, - LAMBERT = 479, - PHONG = 480, - BLINN = 481, - PROFILE_CG = 482, - PROFILE_GLES = 483, - COLOR_TARGET = 484, - DEPTH_TARGET = 485, - STENCIL_TARGET = 486, - COLOR_CLEAR = 487, - DEPTH_CLEAR = 488, - STENCIL_CLEAR = 489, - BOX = 490, - HALF_EXTENTS = 491, - PLANE = 492, - EQUATION = 493, - SPHERE = 494, - RADIUS = 495, - ELLIPSOID = 496, - CYLINDER = 497, - HEIGHT = 498, - TAPERED_CYLINDER = 499, - RADIUS1 = 500, - RADIUS2 = 501, - CAPSULE = 502, - TAPERED_CAPSULE = 503, - CONVEX_MESH = 504, - FORCE_FIELD = 505, - PHYSICS_MATERIAL = 506, - PHYSICS_SCENE = 507, - RIGID_BODY = 508, - RIGID_CONSTRAINT = 509, - REF_ATTACHMENT = 510, - ATTACHMENT = 511, - ENABLED = 512, - INTERPENETRATE = 513, - LIMITS = 514, - SWING_CONE_AND_TWIST = 515, - LINEAR = 516, - SPRING = 517, - ANGULAR = 518, - PHYSICS_MODEL = 519 -#ifdef _MSC_VER - }; -#else - ; -#endif -} - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domVertices.h b/Extras/COLLADA_DOM/include/1.4/dom/domVertices.h deleted file mode 100644 index ce8a10620..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domVertices.h +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domVertices_h__ -#define __domVertices_h__ - -#include -#include - -#include -#include - -/** - * The vertices element declares the attributes and identity of mesh-vertices. - * The vertices element describes mesh-vertices in a mesh geometry. The mesh-vertices - * represent the position (identity) of the vertices comprising the mesh - * and other vertex attributes that are invariant to tessellation. - */ -class domVertices : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VERTICES; } -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Required attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The input element must occur at least one time. These inputs are local - * inputs. @see domInput - */ - domInputLocal_Array elemInput_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the input element array. - * @return Returns a reference to the array of input elements. - */ - domInputLocal_Array &getInput_array() { return elemInput_array; } - /** - * Gets the input element array. - * @return Returns a constant reference to the array of input elements. - */ - const domInputLocal_Array &getInput_array() const { return elemInput_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domVertices() : attrId(), attrName(), elemInput_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domVertices() {} - /** - * Copy Constructor - */ - domVertices( const domVertices &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domVertices &operator=( const domVertices &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/1.4/dom/domVisual_scene.h b/Extras/COLLADA_DOM/include/1.4/dom/domVisual_scene.h deleted file mode 100644 index 6f5173613..000000000 --- a/Extras/COLLADA_DOM/include/1.4/dom/domVisual_scene.h +++ /dev/null @@ -1,437 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domVisual_scene_h__ -#define __domVisual_scene_h__ - -#include -#include - -#include -#include -#include -#include - -/** - * The visual_scene element declares the base of the visual_scene hierarchy - * or scene graph. The scene contains elements that comprise much of the - * visual and transformational information content as created by the authoring - * tools. - */ -class domVisual_scene : public daeElement -{ -public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VISUAL_SCENE; } -public: - class domEvaluate_scene; - - typedef daeSmartRef domEvaluate_sceneRef; - typedef daeTArray domEvaluate_scene_Array; - -/** - * The evaluate_scene element declares information specifying a specific way - * to evaluate this visual_scene. There may be any number of evaluate_scene - * elements. - */ - class domEvaluate_scene : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::EVALUATE_SCENE; } - public: - class domRender; - - typedef daeSmartRef domRenderRef; - typedef daeTArray domRender_Array; - -/** - * The render element describes one effect pass to evaluate the scene. There - * must be at least one render element. - */ - class domRender : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RENDER; } - public: - class domLayer; - - typedef daeSmartRef domLayerRef; - typedef daeTArray domLayer_Array; - -/** - * The layer element specifies which layer to render in this compositing step - * while evaluating the scene. You may specify any number of layers. - */ - class domLayer : public daeElement - { - public: - COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LAYER; } - - protected: // Value - /** - * The xsNCName value of the text data of this element. - */ - xsNCName _value; - - public: //Accessors and Mutators - /** - * Gets the value of this element. - * @return Returns a xsNCName of the value. - */ - xsNCName getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } - - protected: - /** - * Constructor - */ - domLayer() : _value() {} - /** - * Destructor - */ - virtual ~domLayer() {} - /** - * Copy Constructor - */ - domLayer( const domLayer &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domLayer &operator=( const domLayer &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute -/** - * The camera_node attribute refers to a node that contains a camera describing - * the viewpoint to render this compositing step from. - */ - xsAnyURI attrCamera_node; - - protected: // Elements -/** - * The layer element specifies which layer to render in this compositing step - * while evaluating the scene. You may specify any number of layers. @see - * domLayer - */ - domLayer_Array elemLayer_array; -/** - * The instance_effect element specifies which effect to render in this compositing - * step while evaluating the scene. @see domInstance_effect - */ - domInstance_effectRef elemInstance_effect; - - public: //Accessors and Mutators - /** - * Gets the camera_node attribute. - * @return Returns a xsAnyURI reference of the camera_node attribute. - */ - xsAnyURI &getCamera_node() { return attrCamera_node; } - /** - * Gets the camera_node attribute. - * @return Returns a constant xsAnyURI reference of the camera_node attribute. - */ - const xsAnyURI &getCamera_node() const { return attrCamera_node; } - /** - * Sets the camera_node attribute. - * @param atCamera_node The new value for the camera_node attribute. - */ - void setCamera_node( const xsAnyURI &atCamera_node ) { attrCamera_node = atCamera_node; - _validAttributeArray[0] = true; } - - /** - * Gets the layer element array. - * @return Returns a reference to the array of layer elements. - */ - domLayer_Array &getLayer_array() { return elemLayer_array; } - /** - * Gets the layer element array. - * @return Returns a constant reference to the array of layer elements. - */ - const domLayer_Array &getLayer_array() const { return elemLayer_array; } - /** - * Gets the instance_effect element. - * @return a daeSmartRef to the instance_effect element. - */ - const domInstance_effectRef getInstance_effect() const { return elemInstance_effect; } - protected: - /** - * Constructor - */ - domRender() : attrCamera_node(), elemLayer_array(), elemInstance_effect() {} - /** - * Destructor - */ - virtual ~domRender() {} - /** - * Copy Constructor - */ - domRender( const domRender &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domRender &operator=( const domRender &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - - protected: // Attribute -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - - protected: // Element -/** - * The render element describes one effect pass to evaluate the scene. There - * must be at least one render element. @see domRender - */ - domRender_Array elemRender_array; - - public: //Accessors and Mutators - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[0] = true; } - - /** - * Gets the render element array. - * @return Returns a reference to the array of render elements. - */ - domRender_Array &getRender_array() { return elemRender_array; } - /** - * Gets the render element array. - * @return Returns a constant reference to the array of render elements. - */ - const domRender_Array &getRender_array() const { return elemRender_array; } - protected: - /** - * Constructor - */ - domEvaluate_scene() : attrName(), elemRender_array() {} - /** - * Destructor - */ - virtual ~domEvaluate_scene() {} - /** - * Copy Constructor - */ - domEvaluate_scene( const domEvaluate_scene &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domEvaluate_scene &operator=( const domEvaluate_scene &cpy ) { (void)cpy; return *this; } - - public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - - public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; - }; - - -protected: // Attributes -/** - * The id attribute is a text string containing the unique identifier of - * this element. This value must be unique within the instance document. - * Optional attribute. - */ - xsID attrId; -/** - * The name attribute is the text string name of this element. Optional attribute. - */ - xsNCName attrName; - -protected: // Elements -/** - * The visual_scene element may contain an asset element. @see domAsset - */ - domAssetRef elemAsset; -/** - * The visual_scene element must have at least one node element. @see domNode - */ - domNode_Array elemNode_array; -/** - * The evaluate_scene element declares information specifying a specific way - * to evaluate this visual_scene. There may be any number of evaluate_scene - * elements. @see domEvaluate_scene - */ - domEvaluate_scene_Array elemEvaluate_scene_array; -/** - * The extra element may appear any number of times. @see domExtra - */ - domExtra_Array elemExtra_array; - -public: //Accessors and Mutators - /** - * Gets the id attribute. - * @return Returns a xsID of the id attribute. - */ - xsID getId() const { return attrId; } - /** - * Sets the id attribute. - * @param atId The new value for the id attribute. - */ - void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; - _validAttributeArray[0] = true; } - - /** - * Gets the name attribute. - * @return Returns a xsNCName of the name attribute. - */ - xsNCName getName() const { return attrName; } - /** - * Sets the name attribute. - * @param atName The new value for the name attribute. - */ - void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; - _validAttributeArray[1] = true; } - - /** - * Gets the asset element. - * @return a daeSmartRef to the asset element. - */ - const domAssetRef getAsset() const { return elemAsset; } - /** - * Gets the node element array. - * @return Returns a reference to the array of node elements. - */ - domNode_Array &getNode_array() { return elemNode_array; } - /** - * Gets the node element array. - * @return Returns a constant reference to the array of node elements. - */ - const domNode_Array &getNode_array() const { return elemNode_array; } - /** - * Gets the evaluate_scene element array. - * @return Returns a reference to the array of evaluate_scene elements. - */ - domEvaluate_scene_Array &getEvaluate_scene_array() { return elemEvaluate_scene_array; } - /** - * Gets the evaluate_scene element array. - * @return Returns a constant reference to the array of evaluate_scene elements. - */ - const domEvaluate_scene_Array &getEvaluate_scene_array() const { return elemEvaluate_scene_array; } - /** - * Gets the extra element array. - * @return Returns a reference to the array of extra elements. - */ - domExtra_Array &getExtra_array() { return elemExtra_array; } - /** - * Gets the extra element array. - * @return Returns a constant reference to the array of extra elements. - */ - const domExtra_Array &getExtra_array() const { return elemExtra_array; } -protected: - /** - * Constructor - */ - domVisual_scene() : attrId(), attrName(), elemAsset(), elemNode_array(), elemEvaluate_scene_array(), elemExtra_array() {} - /** - * Destructor - */ - virtual ~domVisual_scene() {} - /** - * Copy Constructor - */ - domVisual_scene( const domVisual_scene &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domVisual_scene &operator=( const domVisual_scene &cpy ) { (void)cpy; return *this; } - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * If a daeMetaElement already exists it will return that instead of creating a new one. - * @return A daeMetaElement describing this COLLADA element. - */ - static DLLSPEC daeMetaElement* registerElement(); - -public: // STATIC MEMBERS - /** - * The daeMetaElement that describes this element in the meta object reflection framework. - */ - static DLLSPEC daeMetaElement* _Meta; -}; - - -#endif diff --git a/Extras/COLLADA_DOM/include/dae.h b/Extras/COLLADA_DOM/include/dae.h deleted file mode 100644 index cf803d042..000000000 --- a/Extras/COLLADA_DOM/include/dae.h +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE__ -#define __DAE__ - -#include -#include -#include -#include -#include -#include - -class daeIDRefResolver; -class domCOLLADA; - -/** - * The @c DAE class implements a standard interface to the - * COLLADA runtime database. - * - * @c DAE serves as a wrapper for the entire pipeline ensuring - * a consistent interface, regardless of extensions to or replacements - * for the various API components. It provides methods to load, store, - * translate and query COLLADA elements. A @c DAE object automatically creates - * and initializes default versions of the COLLADA backend, the COLLADA - * runtime database, and registered integration libraries. - */ -class DAE : public daeInterface -{ -public: - /** - * Constructor. - */ - DLLSPEC DAE(); - /** - * Destructor. - */ - virtual DLLSPEC ~DAE(); - - /** - * Releases all static meta information associated with the COLLADA DOM. - * Ff there are no remaining instances of a @c DAE cleanup happens automatically. - * @note This function is useless if called by the application in a non-static - * context. - */ - static DLLSPEC void cleanup(); - - // Abstract Interface Class for the daeDatabase front end -public: - // Database setup - virtual DLLSPEC daeDatabase* getDatabase(); - virtual DLLSPEC daeInt setDatabase(daeDatabase* database); - - // IO Plugin setup - virtual DLLSPEC daeIOPlugin* getIOPlugin(); - virtual DLLSPEC daeInt setIOPlugin(daeIOPlugin* plugin); - - // Integration Library Setup - virtual DLLSPEC daeIntegrationLibraryFunc getIntegrationLibrary(); - virtual DLLSPEC daeInt setIntegrationLibrary(daeIntegrationLibraryFunc regFunc); - - // batch file operations - virtual DLLSPEC daeInt load(daeString name, daeString docBuffer = NULL); - virtual DLLSPEC daeInt save(daeString documentName, daeBool replace=true); - virtual DLLSPEC daeInt save(daeUInt documentIndex, daeBool replace=true); - virtual DLLSPEC daeInt saveAs(daeString name, daeString documentName, daeBool replace=true); - virtual DLLSPEC daeInt saveAs(daeString name, daeUInt documentIndex=0, daeBool replace=true); - - virtual DLLSPEC daeInt unload(daeString name); - virtual DLLSPEC daeInt clear(); - - // Load/Save Progress - virtual DLLSPEC void getProgress(daeInt* bytesParsed, - daeInt* lineNumber, - daeInt* totalBytes, - daeBool reset = false ); - - // Simple Query - virtual DLLSPEC domCOLLADA* getDom(daeString name); - virtual DLLSPEC daeString getDomVersion(); - virtual DLLSPEC daeInt setDom(daeString name, domCOLLADA* dom); - -private: - daeDatabase *database; - daeIOPlugin *plugin; - daeURIResolver* resolver; - daeIDRefResolver* idResolver; - bool defaultDatabase; - bool defaultPlugin; - daeIntegrationLibraryFunc registerFunc; - static daeMetaElement *topMeta; -}; - -#endif // __DAE_INTERFACE__ diff --git a/Extras/COLLADA_DOM/include/dae/daeArray.h b/Extras/COLLADA_DOM/include/dae/daeArray.h deleted file mode 100644 index 78a01ac6c..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeArray.h +++ /dev/null @@ -1,635 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_ARRAY_H__ -#define __DAE_ARRAY_H__ -#include - -class daeAtomicType; - -/** - * COLLADA C++ class that implements storage for resizable array containers. - */ -class daeArray -{ -protected: - size_t _count; - size_t _capacity; - daeMemoryRef _data; - size_t _elementSize; - daeAtomicType* _type; -public: - /** - * Constructor - */ - DLLSPEC daeArray(); - /** - * Copy Constructor - */ - daeArray( const daeArray &cpy ): _count(cpy._count), _capacity(cpy._capacity), _data(0), - _elementSize( cpy._elementSize), _type( cpy._type ) { - grow(_capacity); - memcpy( _data, cpy._data, _elementSize * _count ); - } - - /** - * Destructor - */ - virtual DLLSPEC ~daeArray(); - /** - * Clears the contents of the array. Do not use this function if the array contains @c daeSmartRef objects and the - * @c dom* class the array belongs to has a @c _contents member. - * - * Many @c dom* objects have a @c _contents member that stores the original creation order of the @c daeElements - * that are their children. If you use @c clear() on a @c daeArray of @c daeSmartRef derived objects, these - * objects will not be removed from @c _contents, which can cause problems when you - * save the data. We recommended that @c clear() not be used on arrays that are part of a @c dom* object. - */ - virtual DLLSPEC void clear(); - /** - * Sets the size of an element in the array when creating a @c daeArray of a specific type. - * @param elementSize Size of an element in the array. - */ - void setElementSize(size_t elementSize) {_elementSize = elementSize;} - /** - * Grows the array to the specified size and sets the @c daeArray to that size. - * @param cnt Size to grow the array to. - */ - inline void setRawCount(size_t cnt) {grow(cnt);_count = cnt;} - /** - * Gets the current capacity of the array, the biggest it can get without incurring a realloc. - * @return Returns the capacity of the array. - */ - inline size_t getCapacity() const {return _capacity;} - /** - * Gets the number of items stored in this @c daeArray. - * @return Returns the number of items stored in this @c daeArray. - */ - inline size_t getCount() const {return _count;} - /** - * Gets the size of an element in this array. - * @return Returns the size of an element in this array. - */ - inline size_t getElementSize() const {return _elementSize;} - /** - * Gets a pointer to the memory where the raw data for this @c daeArray is stored. - * @return Returns a pointer to the memory for the raw data. - */ - inline daeMemoryRef getRawData() const {return _data;} - - /** - * Increases the size of the @c daeArray. - * @param sz Size to grow the array to. - */ - void DLLSPEC grow(size_t sz); - /** - * Removes an item at a specific index in the @c daeArray. - * @param index Index number of the item to delete. - * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. - * @note The @c daeElement objects sometimes list - * objects in two places, the class member and the @c _contents array, when you remove something from the - * dom, you must remove it from both places. - */ - virtual DLLSPEC daeInt removeIndex(size_t index); -}; - -/** - * COLLADA C++ templated version of @c daeArray for storing items of various types. - */ -template -class daeTArray : public daeArray -{ -public: - /** - * Constructor. - */ - daeTArray() { -// _type = daeAtomicType::getType("" T ""); - _elementSize = sizeof( T ); - } - /** - * Copy Constructor - */ - daeTArray( const daeTArray &cpy ) : daeArray() { - _count = cpy._count; - //_capacity = cpy._capacity; - _data = NULL; - _elementSize = cpy._elementSize; - _type = cpy._type; - grow(_count); - for(size_t i=0;i<_count;i++) - set( i, cpy[i] ); - } - /** - * Constructor that takes one element and turns into an array - */ - daeTArray( const T &el ) : daeArray() { - _elementSize = sizeof(T); - append( el ); - } - /** - * Destructor. - */ - virtual ~daeTArray() { - clear(); - } - /** - * Frees the memory in this array and resets it to it's initial state. - */ - virtual void clear() - { - size_t i; - for(i=0;i<_count;i++) - ((T*)_data + i)->~T(); - daeArray::clear(); - } - - /** - * Removes an item at a specific index in the @c daeArray. - * @param index Index number of the item to delete. - * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. - * @note The @c daeElement objects sometimes list - * objects in two places, the class member and the @c _contents array, when you remove something from the - * dom, you must remove it from both places. - */ - virtual daeInt removeIndex(size_t index) - { - if ((index >= _count)||(_count < 1)) - return(DAE_ERR_INVALID_CALL); - ((T*)_data + index)->~T(); - return(daeArray::removeIndex(index)); - - } - - /** - * Resets the count of items in a daeArray to an absolute value, if necessary the array - * storage will grow to the requested size and new elements will be initialized to zero - * @param nElements The new size of the array. - * @note Shrinking the array does NOT free up memory. - */ - inline void setCount(size_t nElements) - { - grow(nElements); - if(nElements < _count) - { - // If the array shrank, destruct the elements - size_t i; - for(i=_count; i>nElements; i--) - { - ((T*)_data + (i-1))->~T(); - memset(_data+(i-1)*_elementSize,0,_elementSize); - } - } - _count = nElements; - } - - /** - * Sets a specific index in the @c daeArray, growing the array if necessary. - * @param index Index of the object to set, asserts if the index is out of bounds. - * @param value Value to store at index in the array. - */ - inline void set(size_t index, const T& value) { - if (index >= _count) - { - //grow(index); - setCount(index+1); - } - ((T*)_data)[index] = value; } - - /** - * Gets the object at a specific index in the @c daeArray. - * @param index Index of the object to get, asserts if the index is out of bounds. - * @return Returns the object at index. - */ - inline T& get(size_t index) const { - assert(index < _count); - return ((T*)_data)[index]; } - - /** - * Appends a new object to the end of the @c daeArray. - * @param value Value of the object to append. - * @return Returns the index of the new object. - */ - inline size_t append(const T& value) { - set(_count, value); - //_count++; - return _count-1; - } - - /** - * Appends a unique object to the end of the @c daeArray. - * Functions the same as @c append(), but does nothing if the value is already in the @c daeArray. - * @param value Value of the object to append. - * @return Returns the index where this value was appended. If the value already exists in the array, - * returns the index in this array where the value was found. - */ - inline size_t appendUnique(const T& value) { - size_t ret; - if (find(value,ret) != DAE_OK) - return append(value); - else - return ret; - } - - /** - * Removes an item from the @c daeArray. - * @param value A reference to the item to delete. - * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. - * @note The @c daeElement objects sometimes list - * objects in two places, the class member and the @c _contents array, when you remove something from the - * do, you must remove it from both places. - */ - inline daeInt remove(const T& value, size_t *idx = NULL ) - { - size_t index; - if(find(value,index) == DAE_OK) - { - if ( idx != NULL ) { - *idx = index; - } - return(removeIndex( index )); - } - else - { - return(DAE_ERR_INVALID_CALL); - } - } - /** - * Finds an item from the @c daeArray. - * @param value A reference to the item to find. - * @param index If the function returns DAE_OK, this is set to the index where the value appears in the array. - * @return Returns DAE_OK if no error or DAE_ERR_QUERY_NO_MATCH if the value was not found. - */ - inline daeInt find(const T& value, size_t &index) const - { - size_t i; - for(i=0;i<_count;i++) - { - if (((T*)_data)[i] == value) - { - index = i; - return DAE_OK; - } - } - return DAE_ERR_QUERY_NO_MATCH; - } - /** - * Gets the object at a specific index in the @c daeArray. - * @param index Index of the object to get, asserts if the index is out of bounds. - * @return Returns the object at @c index. - */ - inline T& operator[](size_t index) const { - assert(index < _count); - return ((T*)_data)[index]; } - - /** - * Inserts an object at a specific index in the daeArray, growing the array if neccessary - * @param index Index into the array for where to place the object, asserts if the index is out of bounds - * @param value of the object to append - */ - inline void insertAt(size_t index, const T& value) { - assert(index <= _capacity); - if ( _count == _capacity ) { - grow( _count +1 ); - } - //memmove( &(((T*)_data)[index+1]), &(((T*)_data)[index]), (_count - index)*_elementSize ); - for (size_t i = _count; i > index; i-- ) - { - T tmp = ((T*)_data)[i-1]; - set( i, tmp ); - //set( i, ((T*)_data)[i-1] ); - } - set( index, value ); - //_count++; - } - - /** - * Overloaded assignment operator. - * @param other A reference to the array to copy - * @return A reference to this object. - */ - inline daeTArray &operator=( const daeTArray &other ) { - clear(); - _count = other._count; - //_capacity = other._capacity; - grow(_count); - for(size_t i=0;i<_count;i++) - set( i, other[i] ); - - return *this; - } - - //some helpers - /** - * Sets the array to the contain the two values specified. - * @param one The first value. - * @param two The second value. - */ - void set2( const T &one, const T &two ) - { - setCount( 2 ); - set( 0, one ); - set( 1, two ); - } - /** - * Sets the array to the contain the three values specified. - * @param one The first value. - * @param two The second value. - * @param three The third value. - */ - void set3( const T &one, const T &two, const T &three ) - { - setCount( 3 ); - set( 0, one ); - set( 1, two ); - set( 2, three ); - } - /** - * Sets the array to the contain the four values specified. - * @param one The first value. - * @param two The second value. - * @param three The third value. - * @param four The fourth value. - */ - void set4( const T &one, const T &two, const T &three, const T &four ) - { - setCount( 4 ); - set( 0, one ); - set( 1, two ); - set( 2, three ); - set( 3, four ); - } - - /** - * Sets the values in the array at the specified location to the contain the two - * values specified. This function will grow the array if needed. - * @param index The position in the array to start setting. - * @param one The first value. - * @param two The second value. - */ - void set2at( size_t index, const T &one, const T &two ) - { - set( index, one ); - set( index+1, two ); - } - /** - * Sets the values in the array at the specified location to the contain the three - * values specified. This function will grow the array if needed. - * @param index The position in the array to start setting. - * @param one The first value. - * @param two The second value. - * @param three The third value. - */ - void set3at( size_t index, const T &one, const T &two, const T &three ) - { - set( index, one ); - set( index+1, two ); - set( index+2, three ); - } - /** - * Sets the values in the array at the specified location to the contain the four - * values specified. This function will grow the array if needed. - * @param index The position in the array to start setting. - * @param one The first value. - * @param two The second value. - * @param three The third value. - * @param four The fourth value. - */ - void set4at( size_t index, const T &one, const T &two, const T &three, const T &four ) - { - set( index, one ); - set( index+1, two ); - set( index+2, three ); - set( index+3, four ); - } - - /** - * Appends two values to the array. - * @param one The first value. - * @param two The second value. - */ - void append2( const T &one, const T &two ) - { - append( one ); - append( two ); - } - /** - * Appends three values to the array. - * @param one The first value. - * @param two The second value. - * @param three The third value. - */ - void append3( const T &one, const T &two, const T &three ) - { - append( one ); - append( two ); - append( three ); - } - /** - * Appends four values to the array. - * @param one The first value. - * @param two The second value. - * @param three The third value. - * @param four The fourth value. - */ - void append4( const T &one, const T &two, const T &three, const T &four ) - { - append( one ); - append( two ); - append( three ); - append( four ); - } - - /** - * Inserts two values into the array at the specified location. - * @param index The position in the array to start inserting. - * @param one The first value. - * @param two The second value. - */ - void insert2at( size_t index, const T &one, const T &two ) - { - if ( index > _count ) - setCount( index +2 ); - else - setCount( _count +2 ); - - for (size_t i = _count; i > index+2; i-- ) - { - T tmp = ((T*)_data)[i-3]; - set( i-1, tmp ); - } - set( index, one ); - set( index+1, two ); - } - /** - * Inserts three values into the array at the specified location. - * @param index The position in the array to start inserting. - * @param one The first value. - * @param two The second value. - * @param three The third value. - */ - void insert3at( size_t index, const T &one, const T &two, const T &three ) - { - if ( index > _count ) - setCount( index +3 ); - else - setCount( _count +3 ); - - for (size_t i = _count; i > index+3; i-- ) - { - T tmp = ((T*)_data)[i-4]; - set( i-1, tmp ); - } - set( index, one ); - set( index+1, two ); - set( index+2, three ); - } - /** - * Inserts four values into the array at the specified location. - * @param index The position in the array to start inserting. - * @param one The first value. - * @param two The second value. - * @param three The third value. - * @param four The fourth value. - */ - void insert4at( size_t index, const T &one, const T &two, const T &three, const T &four ) - { - if ( index > _count ) - setCount( index +4 ); - else - setCount( _count +4 ); - - for (size_t i = _count; i > index+4; i-- ) - { - T tmp = ((T*)_data)[i-5]; - set( i-1, tmp ); - } - set( index, one ); - set( index+1, two ); - set( index+2, three ); - set( index+4, four ); - } - - /** - * Gets two values from the array at the specified location. - * @param index The position in the array to start getting. - * @param one Variable to store the first value. - * @param two Variable to store the second value. - * @return Returns The number of elements retrieved. - */ - daeInt get2at( size_t index, T &one, T &two ) - { - daeInt retVal = 0; - if ( index < _count ) - { - one = get(index); - retVal++; - } - if ( index+1 < _count ) - { - two = get(index+1); - retVal++; - } - return retVal; - } - /** - * Gets three values from the array at the specified location. - * @param index The position in the array to start getting. - * @param one Variable to store the first value. - * @param two Variable to store the second value. - * @param three Variable to store the third value. - * @return Returns The number of elements retrieved. - */ - daeInt get3at( size_t index, T &one, T &two, T &three ) - { - daeInt retVal = 0; - if ( index < _count ) - { - one = get(index); - retVal++; - } - if ( index+1 < _count ) - { - two = get(index+1); - retVal++; - } - if ( index+2 < _count ) - { - two = get(index+2); - retVal++; - } - return retVal; - } - /** - * Gets four values from the array at the specified location. - * @param index The position in the array to start getting. - * @param one Variable to store the first value. - * @param two Variable to store the second value. - * @param three Variable to store the third value. - * @param four Variable to store the fourth value. - * @return Returns The number of elements retrieved. - */ - daeInt get4at( size_t index, T &one, T &two, T &three, T &four ) - { - daeInt retVal = 0; - if ( index < _count ) - { - one = get(index); - retVal++; - } - if ( index+1 < _count ) - { - two = get(index+1); - retVal++; - } - if ( index+2 < _count ) - { - two = get(index+2); - retVal++; - } - if ( index+3 < _count ) - { - two = get(index+3); - retVal++; - } - return retVal; - } - - /** - * Appends a number of elements to this array from a C native array. - * @param num The number of elements to append. - * @param array The C native array that contains the values to append. - */ - void appendArray( size_t num, T *array ) - { - if ( array == NULL ) - return; - - for ( size_t i = 0; i < num; i++ ) - append( array[i] ); - } - /** - * Appends a number of elements to this array from another daeTArray. - * @param array The daeTArray that contains the values to append. - */ - void appendArray( const daeTArray &array ){ - size_t num = array.getCount(); - for ( size_t i = 0; i < num; i++ ) - append( array[i] ); - } -}; - - -#endif //__DAE_ARRAY_H__ - - diff --git a/Extras/COLLADA_DOM/include/dae/daeArrayTypes.h b/Extras/COLLADA_DOM/include/dae/daeArrayTypes.h deleted file mode 100644 index 13781e029..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeArrayTypes.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_ARRAY_TYPES_H__ -#define __DAE_ARRAY_TYPES_H__ - -#include -#include -typedef daeTArray daeIntArray; -typedef daeTArray daeUIntArray; -typedef daeTArray daeFloatArray; -typedef daeTArray daeEnumArray; -typedef daeTArray daeStringArray; -typedef daeTArray daeCharArray; -typedef daeTArray daeBoolArray; -typedef daeTArray daeDoubleArray; -typedef daeTArray daeLongArray; -typedef daeTArray daeShortArray; - -#endif //__DAE_ARRAY_TYPES_H__ diff --git a/Extras/COLLADA_DOM/include/dae/daeAtomicType.h b/Extras/COLLADA_DOM/include/dae/daeAtomicType.h deleted file mode 100644 index c4ad10121..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeAtomicType.h +++ /dev/null @@ -1,736 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_ATOMIC_TYPE_H__ -#define __DAE_ATOMIC_TYPE_H__ - -#include -#include -#include -#include - -#ifndef _WIN32 -#include -#endif - -class daeAtomicType; -class daeMetaElement; - -typedef daeTArray daeAtomicTypeArray; -class daeMetaAttribute; -typedef daeSmartRef daeMetaAttributeRef; - -/** - * The @c daeAtomicType class implements a standard interface for - * data elements in the reflective object system. - * - * @c daeAtomicType provides a central virtual interface that can be - * used by the rest of the reflective object system. - * - * The atomic type system if very useful for file IO and building - * automatic tools for data inspection and manipulation, - * such as hierarchy examiners and object editors. - * - * Types provide the following symantic operations: - * - @c print() - * - @c memoryToString() - * - @c stringToMemory() - * - @c resolve() - * - * Types are also able to align data pointers appropriately. - */ -class daeAtomicType -{ -public: - /** - * destructor - */ - virtual ~daeAtomicType() {} - - /** - * constructor - */ - daeAtomicType(); - -public: - /** - * Prints an atomic typed element into a destination string. - * @param src Source of the raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, false if not successful. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); - - /** - * Reads an atomic typed item into the destination runtime memory. - * @param src Source string. - * @param dst Raw binary location to store the resulting value. - * @return Returns true if the operation was successful, false if not successful. - */ - virtual daeBool stringToMemory(daeChar* src, daeChar* dst); - - /** - * Resolves a reference, if indeed this type is a reference type. - * @param element The containing element. - * @param src Source of the raw data to resolve. - * should be placed. - */ - virtual void resolve(daeElementRef element, daeChar* src); - - /** - * Determines if this atomic type requires a special string-based - * parse state. - * @return Returns true if this type requires string contents parsing, false if not. - */ - virtual daeBool getUsesStrings() { return false; } - - /** - * Gets the array of strings as name bindings for this type. - * @return Returns the array of strings. - */ - daeStringRefArray& getNameBindings() { return _nameBindings; } - - /** - * Gets the enum associated with this atomic type. This is not scalable and only - * works for base types, otherwise 'extension' is used. - * @return Returns the enum associated with this atomic type. - */ - daeEnum getTypeEnum() { return _typeEnum; } - - /** - * Gets the size in bytes for this atomic type. - * @return Returns the size of the atomic type in bytes. - */ - daeInt getSize() { return _size; } - - /** - * Gets the scanf format used for this type. - * @return Returns the scanf format. - * @note - * Warning - this field is only for convenience and may not always work. - * It is used only when the read functions are left to the base - * implementation. - */ - daeStringRef getScanFormat() { return _scanFormat; } - - /** - * Gets the printf format used for this type. - * @return Returns the printf format. - * @note - * Warning - this field is only for convenience and may not always work. - * It is used only when the print functions are left to the base - * implementation. - */ - daeStringRef getPrintFormat() { return _printFormat; } - - /** - * Gets the alignment in bytes necessary for this type on this - * platform. - * @return Returns the alignment in bytes. - */ - daeInt getAlignment() { return _alignment; } - - /** - * Gets the string associated with this type. - * @return Returns the string associated with this type. - */ - daeStringRef getTypeString() { return _typeString; } - - /** - * Performs an alignment based on the alignment for this type. - * @param ptr Pointer to be aligned. - * @return Returns the aligned pointer computed via - * (ptr+alignment-1)&(~(alignment-1). - * - */ - daeChar* align(daeChar* ptr) { - return (daeChar*)(((intptr_t)(ptr+_alignment-1))&(~(_alignment - 1))); } - -protected: - daeInt _size; - daeInt _alignment; - daeEnum _typeEnum; - daeStringRef _typeString; - daeStringRef _printFormat; - daeStringRef _scanFormat; - //daeStringRefArray _nameBindings; - daeInt _maxStringLength; - -public: - /** - * An array of strings as name bindings for this type. - */ - daeStringRefArray _nameBindings; - -private: // Static Members - static daeAtomicTypeArray* _Types; - static daeBool _TypesInitialized; -public: // Static Interface - /** An enum for identifying the different atomic types */ - enum daeAtomicTypes { - /** bool atomic type */ - BoolType, - /** enum atomic type */ - EnumType, - /** character atomic type */ - CharType, - /** short integer atomic type */ - ShortType, - /** integer atomic type */ - IntType, - /** unsigned integer atomic type */ - UIntType, - /** long integer atomic type */ - LongType, - /** unsigned long integer atomic type */ - ULongType, - /** floating point atomic type */ - FloatType, - /** double precision floating point atomic type */ - DoubleType, - /** string reference atomic type */ - StringRefType, - /** element reference atomic type */ - ElementRefType, - /** memory reference atomic type */ - MemoryRefType, - /** void reference atomic type */ - RawRefType, - /** resolver atomic type */ - ResolverType, - /** ID resolver atomic type */ - IDResolverType, - /** string token atomic type */ - TokenType, - /** extension atomic type */ - ExtensionType - }; - -public: // STATIC INTERFACE - /** - * Appends a new type to the global list of types. - * @param t Type to append. - * @return Returns the index of the type in the list of types. - */ - static daeInt append(daeAtomicType* t); - - /** - * Performs a static initialization of all known atomic types. - */ - static void initializeKnownTypes(); - - /** - * Performs an uninitialization for all known types, freeing associated memory. - */ - static void uninitializeKnownTypes(); - /** - * Performs a static initialization of all known base atomic types. - */ - static void initializeKnownBaseTypes(); - - /** - * Gets a type from the list of types, based on its index. - * @param index Index of the type to retrieve. - * @return Returns the @c daeAtomicType indicated by index. - */ - static const daeAtomicType* getByIndex(daeInt index); - - /** - * Gets the number of known atomic types. - * @return Returns the number of known atomic types. - */ - static daeInt getCount(); - - /** - * Finds a type by its string name. - * @param type String name of the type. - * @return Returns the type with the corresponding name. - */ - static daeAtomicType* get(daeStringRef type); - - /** - * Finds a type by its enum. - * @param type Enum representing the desired type. - * @return Returns the type with the corresponding enum. - */ - static daeAtomicType* get(daeEnum type); -}; - -/** - * The @c daeBoolType class is derived from @c daeAtomicType, and implements - * the reflective system for objects of type @c daeBool. - */ -class daeBoolType : public daeAtomicType -{ -public: - /** - * Constructor - */ - daeBoolType(); -public: - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); - - /** - * Overrides the base class @c stringToMemoryFunction(). - * Reads an atomic typed item into the destination runtime memory. - * @param src Source string. - * @param dst Raw binary to store the resulting value. - * @return Returns true if the operation was successful, false if not successful. - */ - virtual daeBool stringToMemory(daeChar* src, daeChar* dst); - -}; - -/** - * The @c daeIntType class is derived from @c daeAtomicType, and implements - * the reflective system for objects of type @c daeInt. - */ -class daeIntType : public daeAtomicType -{ -public: - /** - * Constructor - */ - daeIntType(); -public: - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); -}; - -/** - * The @c daeLongType class is derived from @c daeAtomicType, and implements - * the reflective system for objects of type @c daeLong. - */ -class daeLongType : public daeAtomicType -{ -public: - /** - * Constructor - */ - daeLongType(); -public: - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); -}; - -/** - * The @c daeUIntType class is derived from @c daeAtomicType, and implements - * the reflective system for objects of type @c daeUInt. - */ -class daeUIntType : public daeAtomicType -{ -public: - /** - * Constructor - */ - daeUIntType(); -public: - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); -}; - -/** - * The @c daeUIntType class is derived from @c daeAtomicType, and implements - * the reflective system for objects of type @c daeUInt. - */ -class daeULongType : public daeAtomicType -{ -public: - /** - * Constructor - */ - daeULongType(); -public: - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); -}; - -/** - * The @c daeShortType is derived from @c daeAtomicType, and implements - * the reflective system for objects of type @c daeShort. - */ -class daeShortType : public daeAtomicType -{ -public: - /** - * Constructor - */ - daeShortType(); -public: - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); -}; - -/** - * The @c daeFloatType is derived from @c daeAtomicType, and implements - * the reflective system for objects of type @c daeFloat. - */ -class daeFloatType : public daeAtomicType -{ -public: - /** - * Constructor - */ - daeFloatType(); -public: - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); - /** - * Overrides the base class @c stringToMemoryFunction(). - * Reads an atomic typed item into the destination runtime memory. - * @param src Source string. - * @param dst Raw binary to store the resulting value. - * @return Returns true if the operation was successful, false if not successful. - */ - virtual daeBool stringToMemory(daeChar* src, daeChar* dst); -}; - -/** - * The @c daeDoubleType is derived from @c daeAtomicType, and implements - * the reflective system for objects of type @c daeDouble. - */ -class daeDoubleType : public daeAtomicType -{ -public: - /** - * Constructor - */ - daeDoubleType(); -public: - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); - /** - * Overrides the base class @c stringToMemoryFunction(). - * Reads an atomic typed item into the destination runtime memory. - * @param src Source string. - * @param dst Raw binary to store the resulting value. - * @return Returns true if the operation was successful, false if not successful. - */ - virtual daeBool stringToMemory(daeChar* src, daeChar* dst); -}; - -/** - * The @c daeStringRefType class is derived from @c daeAtomicType, and implements - * the reflective system for objects of type @c daeStringRef. - */ -class daeStringRefType : public daeAtomicType -{ -public: - /** - * Constructor - */ - daeStringRefType(); -public: - /** - * Override base class function. - * Determines if this atomic type requires a special string-based - * parse state. - * @return Returns true if this type requires string contents parsing, false if not. - */ - virtual daeBool getUsesStrings(); - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); - /** - * Overrides the base class @c stringToMemoryFunction(). - * Reads an atomic typed item into the destination runtime memory. - * @param src Source string. - * @param dst Raw binary to store the resulting value. - * @return Returns true if the operation was successful, false if not successful. - */ - virtual daeBool stringToMemory(daeChar* src, daeChar* dst); - -}; - -/** - * The @c daeTokenType class is derived from @c daeStringRefType, and implements - * the reflective system for objects of type daeStringRef, with specialized - * treatment from the parser. - */ -class daeTokenType : public daeStringRefType -{ -public: - /** - * Constructor - */ - daeTokenType(); - -public: - /** - * Override base class function. - * Determines if this atomic type requires a special string-based - * parse state. - * @return Returns true if this type requires string contents parsing, false if not. - */ - virtual daeBool getUsesStrings(); - -}; - -/** - * The @c daeElementRefType class is derived from @c daeAtomicType, and implements - * the reflective system for objects of type @c daeElementRef. - */ -class daeElementRefType : public daeAtomicType -{ -public: - /** - * The @c daeMetaElement for the type this @c daeElementRefType represents. - */ - daeMetaElement* _elementType; - -public: - /** - * Constructor - */ - daeElementRefType(); -public: - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); -}; - -/** - * The @c daeEnumType class is derived from @c daeAtomicType, and implements - * the reflective system for objects of type daeEnum. - */ -class daeEnumType: public daeAtomicType -{ -public: - /** - * The array which contains the values used in this enum. - */ - daeEnumArray* _values; - /** - * The array which contains the strings to associate with the values used in this enum. - */ - daeStringRefArray* _strings; - -public: - /** - * Constructor - */ - daeEnumType(); - - /** - * Destructor - */ - ~daeEnumType(); - -public: - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); - /** - * Overrides the base class @c stringToMemoryFunction(). - * Reads an atomic typed item into the destination runtime memory. - * @param src Source string. - * @param dst Raw binary to store the resulting value. - * @return Returns true if the operation was successful, false if not successful. - */ - virtual daeBool stringToMemory(daeChar* src, daeChar* dst); - -}; - -/** - * The @c daeRawRefType class is derived from @c daeAtomicType, and implements - * the reflective system for objects of type @c daeRawRef. - */ -class daeRawRefType: public daeAtomicType -{ -public: - /** - * Constructor. - */ - daeRawRefType(); - -public: - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); -}; - -/** - * The @c daeResolverType class is derived from @c daeAtomicType, and implements - * the reflective system for objects of type @c daeResolver. - */ -class daeResolverType : public daeAtomicType -{ -public: - /** - * Constructor. - */ - daeResolverType(); -public: - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); - /** - * Overrides the base class @c stringToMemoryFunction(). - * Reads an atomic typed item into the destination runtime memory. - * @param src Source string. - * @param dst Raw binary to store the resulting value. - * @return Returns true if the operation was successful, false if not successful. - */ - virtual daeBool stringToMemory(daeChar* src, daeChar* dst); - - /** - * Overrides the base class @c resolve() function - * Resolves a reference, if indeed this type is a reference type - * @param element The containing element. - * @param src Source of the raw data to resolve. - * should be placed. - */ - virtual void resolve(daeElementRef element, daeChar* src); - /** - * Override base class function. - * Determines if this atomic type requires a special string-based - * parse state. - * @return Returns true if this type requires string contents parsing, false if not. - */ - virtual daeBool getUsesStrings() { return true; } -}; - -/** - * The @c daeIDResolverType class is derived from @c daeAtomicType, and implements - * the reflective system for objects of type @c daeIDResolver. - */ -class daeIDResolverType : public daeAtomicType -{ -public: - /** - * Constructor. - */ - daeIDResolverType(); -public: - /** - * Overrides the base class memory to string conversion function. - * @param src Raw data from which to get the typed items. - * @param dst Destination to output the string version of the elements to. - * @param dstSize Number of bytes available in the destination memory. - * @return Returns true if the operation was successful, - * false if the operation would cause the destination buffer to overflow. - */ - virtual daeBool memoryToString(daeChar* src, daeChar* dst, daeInt dstSize); - /** - * Overrides the base class @c stringToMemoryFunction(). - * Reads an atomic typed item into the destination runtime memory. - * @param src Source string. - * @param dst Raw binary to store the resulting value. - * @return Returns true if the operation was successful, false if not successful. - */ - virtual daeBool stringToMemory(daeChar* src, daeChar* dst); - - /** - * Overrides the base class @c resolve() function - * Resolves a reference, if indeed this type is a reference type. - * @param element The containing element. - * @param src Source of the raw data to resolve. - * should be placed. - */ - virtual void resolve(daeElementRef element, daeChar* src); -}; - - - -#endif // __DAE_ATOMIC_TYPE_H__ - - - diff --git a/Extras/COLLADA_DOM/include/dae/daeDatabase.h b/Extras/COLLADA_DOM/include/dae/daeDatabase.h deleted file mode 100644 index 67d117383..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeDatabase.h +++ /dev/null @@ -1,265 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_DATABASE__ -#define __DAE_DATABASE__ - -#include -#include -#include -#include - - -/** - * The @c daeDatabase class defines the COLLADA runtime database interface. - */ -class daeDatabase -{ -public: - /** - * Destructor. - */ - virtual DLLSPEC ~daeDatabase() {} - - /** @name Documents */ - //@{ - /** - * Creates a new document, defining its root as the dom object; returns an error if the document name already exists. - * @param name Name of the new document, must be a valid URI. - * @param dom Existing @c domCOLLADA root element of the document - * @param document Pointer to a @c daeDocument pointer that receives the document created - * @return Returns @c DAE_OK if the document was created successfully, otherwise returns a negative value as defined in daeError.h. - * @note The @c daeElement passed in as dom should always be a @c domCOLLADA object, the API may enforce this in the future. - * @deprecated This function will be removed in future versions. Please use createDocument. - */ - virtual DLLSPEC daeInt insertDocument(daeString name, daeElement* dom, daeDocument** document = NULL) = 0; - /** - * Creates a new @c domCOLLADA root element and a new document; returns an error if the document name already exists. - * @param name Name of the new document, must be a valid URI. - * @param document Pointer to a @c daeDocument pointer that receives the document created - * @return Returns DAE_OK if the document was created successfully, otherwise returns a negative value as defined in daeError.h. - * @deprecated This function will be removed in future versions. Please use createDocument. - */ - virtual DLLSPEC daeInt insertDocument(daeString name, daeDocument** document = NULL) = 0; - /** - * Creates a new document, defining its root as the dom object; returns an error if the document name already exists. - * @param name Name of the new document, must be a valid URI. - * @param dom Existing @c domCOLLADA root element of the document - * @param document Pointer to a @c daeDocument pointer that receives the document created - * @return Returns @c DAE_OK if the document was created successfully, otherwise returns a negative value as defined in daeError.h. - * @note The @c daeElement passed in as dom should always be a @c domCOLLADA object, the API may enforce this in the future. - */ - virtual DLLSPEC daeInt createDocument(daeString name, daeElement* dom, daeDocument** document = NULL) = 0; - /** - * Creates a new @c domCOLLADA root element and a new document; returns an error if the document name already exists. - * @param name Name of the new document, must be a valid URI. - * @param document Pointer to a @c daeDocument pointer that receives the document created - * @return Returns DAE_OK if the document was created successfully, otherwise returns a negative value as defined in daeError.h. - */ - virtual DLLSPEC daeInt createDocument(daeString name, daeDocument** document = NULL) = 0; - - /** - * Inserts an already existing document into the database. - * @param c The document to insert. - * @return Returns DAE_OK if the document was inserted successfully, otherwise returns a negative value as defined in daeError.h. - */ - virtual DLLSPEC daeInt insertDocument( daeDocument *c ) = 0; - - /** - * Removes a document from the database. - * @param document Document to remove from the database - * @return Returns DAE_OK if the document was successfully removed, otherwise returns a negative value as defined in daeError.h. - */ - virtual DLLSPEC daeInt removeDocument(daeDocument* document) = 0; - /** - * Gets the number of documents. - * @return Returns the number of documents. - */ - virtual DLLSPEC daeUInt getDocumentCount() = 0; - /** - * Gets a document based on the document index. - * @param index Index of the document to get. - * @return Returns a pointer on the document, or NULL if not found. - */ - virtual DLLSPEC daeDocument* getDocument(daeUInt index) = 0; - /** - * Gets a document based on the document name. - * @param name The name of the document as a URI. - * @return Returns a pointer to the document, or NULL if not found. - * @note If the URI contains a fragment, the fragment is stripped off. - */ - virtual DLLSPEC daeDocument* getDocument(daeString name) = 0; - /** - * Gets a document name. - * @param index Index of the document to get. - * @return Returns the name of the document at the given index. - */ - virtual DLLSPEC daeString getDocumentName(daeUInt index) = 0; - /** - * Indicates if a document is loaded or not. - * @param name Name of the document as a URI. - * @return Returns true if the document is loaded, false otherwise. - * @note If the URI contains a fragment, the fragment is stripped off. - */ - virtual DLLSPEC daeBool isDocumentLoaded(daeString name) = 0; - //@} - - /** @name Elements */ - //@{ - /** - * Gets the number of types in the database. - * @return Returns the number of different types of objects inserted in the database. - */ - virtual DLLSPEC daeUInt getTypeCount() = 0; - /** - * Retrieves the name of a type of object inserted in the database. - * @param index Index of the type; must be between 0 and daeDatabase::getTypeCount()-1 - * @return Returns the name of the type, NULL if the index is invalid. - */ - virtual DLLSPEC daeString getTypeName(daeUInt index) = 0; - /** - * Inserts a @c daeElement into the runtime database. - * @param document Document in which the @c daeElement lives. - * @param element @c daeElement to insert in the database - * @return Returns @c DAE_OK if element successfully inserted, otherwise returns a negative value as defined in daeError.h. - */ - virtual DLLSPEC daeInt insertElement(daeDocument* document, - daeElement* element) = 0; - /** - * Removes a @c daeElement from the runtime database; not implemented in the reference STL implementation. - * @param document Document in which the @c daeElement lives. - * @param element Element to remove. - * @return Returns @c DAE_OK if element successfully removed, otherwise returns a negative value as defined in daeError.h. - * @note This function is not implemented in the reference STL implementation. - */ - virtual DLLSPEC daeInt removeElement(daeDocument* document, - daeElement* element) = 0; - /** - * Unloads all of the documents of the runtime database. - * This function frees all the @c dom* objects and integration objects created so far, - * except any objects on which you still have a smart pointer reference (@c daeSmartRef). - * @return Returns @c DAE_OK if all documents successfully unloaded, otherwise returns a negative value as defined in daeError.h. - */ - virtual DLLSPEC daeInt clear() = 0; - /** - * Optimizes the database. - * This function takes time; it is called by the interface at the end of a load operation. - * Some databases cannot be queried when items are being inserted; for instance, they may - * need to be sorted. All database search functions call @c validate(); you should not need to - * call this function directly. - */ - virtual DLLSPEC void validate() = 0; - //@} - - /** @name Queries */ - //@{ - /** - * Gets the number of daeElement objects that match the search criteria - * Any combination of search criteria can be NULL, if a criterion is NULL all - * the parameters will match for this criterion. - * Hence @c getElementCount() called without parameters returns the total number of @c daeElement objects in the database. - * Criteria can not be specified with wildcards, either a criterion is set and it will have - * to match, or it is not set and all @c daeElements match for this criterion. - * @param name Name or id of the @c daeElement, for example, "mycube1", can be NULL - * @param type Type of @c daeElement to find, this can be any COLLADA tag such as or , can be NULL - * @param file Name of the document or file, for example, "myDocument.xml", can be NULL - * @return Returns the number of elements matching this query. - */ - virtual DLLSPEC daeUInt getElementCount(daeString name = NULL, - daeString type = NULL, - daeString file = NULL) = 0; - /** - * Returns the @c daeElement which matches the search criteria. - * Any combination of search criteria can be NULL, if a criterion is NULL all - * the parameters will match for this criterion. - * The function operates on the set of assets that match the name, type and file search criteria, - * with the index parameter indicating which asset within the set is returned. - * Calling @c daeElement(&pElement,index) without search criteria returns the @c daeElement number index in the database without - * any consideration of name, type or document. - * Criteria can not be specified with wildcards, either a criterion is set and it will have - * to match, or it is not set and all @c daeElements match for this criterion. - * The default database search is roughly in log2(n). Maximum performance is obtained when querying - * by type and a name. Any other combination results in a slight overhead, but the overall search time - * remains around log2(n). - * @param pElement Pointer of a @c daeElement* which receives the found @c daeElement if the search succeeds - * @param index Index within the set of @c daeElements that match the search criteria - * @param name Name or id of the @c daeElement, for example "mycube1", can be NULL - * @param type Type of the @c daeElement to get, this can be any COLLADA tag such as or , can be NULL - * @param file Name of the document or file, for example, "myDocument.xml", can be NULL - * @return Returns DAE_OK upon success, returns DAE_ERR_QUERY_NO_MATCH if there is no match, otherwise, returns a negative value as defined in daeError.h. - */ - virtual DLLSPEC daeInt getElement(daeElement** pElement, - daeInt index, - daeString name = NULL, - daeString type = NULL, - daeString file = NULL ) = 0; - /** - * Returns the @c daeElement which matches the genericQuery parameter; not implemented. - * @param pElement Element to return. - * @param genericQuery Generic query - * @return Returns DAE_OK if it succeeds, returns DAE_ERR_QUERY_NO_MATCH if there is no match, otherwise returns a negative value as defined in daeError.h. - * @note This function is not implemented. - */ - virtual DLLSPEC daeInt queryElement(daeElement** pElement, daeString genericQuery) = 0; - //@} - - /** - * Sets the top meta object. - * Called by @c dae::setDatabase() when the database changes. It passes to this function the - * top meta object, which is the root of a - * hierarchy of @c daeMetaElement objects. This top meta object is capable of creating - * any of the root objects in the DOM tree. - * @param _topMeta Top meta object to use to create objects to fill the database. - * @return Returns DAE_OK if successful, otherwise returns a negative value defined in daeError.h. - */ - virtual DLLSPEC daeInt setMeta(daeMetaElement *_topMeta) = 0; - -public: //Depricated methods - inline DLLSPEC daeInt insertCollection(daeString name, daeElement* dom, daeDocument** document = NULL) { - return insertDocument( name, dom, document ); - } - inline DLLSPEC daeInt insertCollection(daeString name, daeDocument** document = NULL) { - return insertDocument( name, document ); - } - inline DLLSPEC daeInt createCollection(daeString name, daeElement* dom, daeDocument** document = NULL) { - return createDocument( name, dom, document ); - } - inline DLLSPEC daeInt createCollection(daeString name, daeDocument** document = NULL) { - return createDocument( name, document ); - } - inline DLLSPEC daeInt insertCollection( daeDocument *c ) { - return insertDocument( c ); - } - inline DLLSPEC daeInt removeCollection(daeDocument* document) { - return removeDocument( document ); - } - inline DLLSPEC daeUInt getCollectionCount() { - return getDocumentCount(); - } - inline DLLSPEC daeDocument* getCollection(daeUInt index) { - return getDocument( index ); - } - inline DLLSPEC daeDocument* getCollection(daeString name) { - return getDocument( name ); - } - inline DLLSPEC daeString getCollectionName(daeUInt index) { - return getDocumentName( index ); - } - inline DLLSPEC daeBool isCollectionLoaded(daeString name) { - return isDocumentLoaded( name ); - } - -}; - -#endif //__DAE_DATABASE__ - diff --git a/Extras/COLLADA_DOM/include/dae/daeDocument.h b/Extras/COLLADA_DOM/include/dae/daeDocument.h deleted file mode 100644 index e7df36413..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeDocument.h +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_DOCUMENT__ -#define __DAE_DOCUMENT__ - -#include -#include -#include -#include - -/** - * The @c daeDocument class implements a COLLADA runtime database entry. - */ -class daeDocument -{ -public: - // sthomas - /** - * Destructor - */ - DLLSPEC ~daeDocument(); - - /** - * Accessor to get the @c domCollada associated with this document. - * @return A @c daeElementRef for the @c domCollada that is the root of this document. - * @note This function should really return a domColladaRef, - * but we're trying to avoid having @c dae classes depend on generated dom classes. - */ - daeElement* getDomRoot() const {return(dom);} - /** - * Accessor to set the domCollada associated with this document - * @param domRoot the domCollada that is the root of this document - * @remarks Should really require a domColladaRef but we're trying to avoid having dae classes depend on generated dom classes. - */ - void setDomRoot(daeElement* domRoot) {dom = domRoot; domRoot->setDocument(this); } - /** - * Accessor to get the URI associated with the document in this document; - * this is currently set to the URI from which the document was loaded, but - * is blank if the document was created with @c insertDocument(). - * @return Returns a pointer to the URI for this document. - * @note This is the full URI of the document and not the document base URI. - */ - daeURI* getDocumentURI() {return (&uri);} - - /** - * Const accessor to get the URI associated with the document in this collection; - * this is currently set to the URI from which the collection was loaded, but - * is blank if the collection was created with @c insertCollection(). - * @return Returns a pointer to the URI for this collection. - * @note This is the full URI of the document and not the document base URI. - */ - const daeURI* getDocumentURI() const {return (&uri);} - - /** - * Accessor to get if this document has been modified since the last time the database was validated. - * @return Returns true if the document was modified, false otherwise. - */ - daeBool getModified() const {return modified;} - /** - * Sets if this document has been modified since the last time the database was validated. - * @param A boolean value specifying if the document was modified. - */ - void setModified( daeBool mod ) { if (!mod) { insertedElements.clear(); removedElements.clear(); } modified = mod;} - - /** - * This function is used to track how a document gets modified. It gets called internally. - * @param element The element that was added to this document. - * @note This function is called internally and not meant to be called by the client application. - * Calling this function from the client application may result in unexpected behavior. - */ - DLLSPEC void insertElement( daeElementRef element ); - /** - * This function is used to track how a document gets modified. It gets called internally. - * @param element The element that was removed from this document. - * @note This function is called internally and not meant to be called by the client application. - * Calling this function from the client application may result in unexpected behavior. - */ - DLLSPEC void removeElement( daeElementRef element ); - - /** - * This function is used to track how a document gets modified. It gets called internally. - * @return Returns an array of elements that have been added since the last database update. - */ - const daeElementRefArray &getInsertedArray() const { return insertedElements; } - /** - * This function is used to track how a document gets modified. It gets called internally. - * @return Returns an array of elements that have been removed since the last database update. - */ - const daeElementRefArray &getRemovedArray() const { return removedElements; } - /** - * Adds a URI to the list of external references in this document. - * @param uri The URI that is the external reference. - * @note This function gets called internally from daeURI upon trying to resolve an element. - * Calling this function in your client code my result in unexpected behavior. - */ - DLLSPEC void addExternalReference( daeURI &uri ); - /** - * Removes a URI to the list of external references in this document. - * @param uri The URI that was the external reference. - * @note This function gets called internally from daeURI upon trying to resolve an element. - * Calling this function in your client code my result in unexpected behavior. - */ - DLLSPEC void removeExternalReference( daeURI &uri ); - /** - * Gets a list of all the documents that are referenced from URI contained within this document. - * @return Returns a list of URI strings, each being a URI which is referenced from within this document. - */ - const daeStringRefArray &getReferencedDocuments() const { return referencedDocuments; } - /** - * Resolves the URIs that reference the document specified by docURI. - * @param docURI The URI string of the document that you want to resolve against. - * @note This function is called internally whenever a new document is loaded. - */ - DLLSPEC void resolveExternals( daeString docURI); - - DLLSPEC const daeTArray *getExternalURIs(daeStringRef docURI) const; - -private: - /** - * Top Level element for of the document, always a domCollada - * @remarks This member will eventually be taken private, use getDomRoot() to access it. - */ - daeElementRef dom; - - /** - * The URI of the document, may be blank if the document wasn't loaded from a URI - * @remarks This member will eventually be taken private, use getDocumentURI() to access it. - */ - daeURI uri; - - /** - * A flag that indicates if this document has been modified. - */ - daeBool modified; - - daeElementRefArray insertedElements; - daeElementRefArray removedElements; - - daeStringRefArray referencedDocuments; - daeTArray< daeTArray* > externalURIs; -}; - -typedef daeDocument daeCollection; - -#endif - diff --git a/Extras/COLLADA_DOM/include/dae/daeDom.h b/Extras/COLLADA_DOM/include/dae/daeDom.h deleted file mode 100644 index 5d46b235b..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeDom.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_DOM__ -#define __DAE_DOM__ - -class daeMetaElement; - -#ifdef WIN32 - #pragma warning(disable : 4324) // disable padding warning - #pragma warning(disable:4530) // Disable the exception disable but used in MSCV Stl warning. - #pragma warning(disable:4996) //Turn off warnings about deprecated C routines - #pragma warning(disable:4786) // Disable the "debug name too long" warning - #pragma warning(disable:4244) // Disable the "possible loss of data" warning - #pragma warning(disable:4018) // signed/unsigned int mismatch - #pragma warning(disable:4267) // possible loss of data - #pragma warning(disable:4530) // C++ exception handler used -#endif - -daeMetaElement* initializeDomMeta(); - -#endif //__DAE_DOM__ diff --git a/Extras/COLLADA_DOM/include/dae/daeDomTypes.h b/Extras/COLLADA_DOM/include/dae/daeDomTypes.h deleted file mode 100644 index 17363ce64..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeDomTypes.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_DOM_TYPES__ -#define __DAE_DOM_TYPES__ - -#include -#include -#include -#include -#include - -//This line is used as a workaround because the array types enum is invalid when autogenerated -//typedef daeString domArrayTypes; // ENUM -typedef daeElement domElement; - -typedef daeURI xsAnyURI; -typedef daeString xsDateTime; - -typedef daeString xsID; -typedef daeIDRef xsIDREF; -typedef daeTArray xsIDREFS; -typedef daeString xsNCName; -typedef daeString xsNMTOKEN; -typedef daeString xsName; -typedef daeString xsToken; -typedef daeString xsString; -typedef daeBool xsBoolean; -typedef daeShort xsShort; -typedef daeInt xsInt; -typedef daeLong xsInteger; -typedef daeUInt xsNonNegativeInteger; -typedef daeLong xsLong; -typedef daeFloat xsFloat; -typedef daeDouble xsDouble; -typedef daeDouble xsDecimal; -typedef daeCharArray xsHexBinaryArray; -typedef daeBoolArray xsBooleanArray; -typedef daeFloatArray xsFloatArray; -typedef daeDoubleArray xsDoubleArray; -typedef daeShortArray xsShortArray; -typedef daeIntArray xsIntegerArray; -typedef daeLongArray xsLongArray; -typedef daeStringRefArray xsNameArray; -typedef daeStringRefArray xsNCNameArray; -typedef daeStringRefArray xsTokenArray; - -typedef daeChar xsByte; -typedef daeUChar xsUnsignedByte; -typedef daeUInt xsUnsignedInt; -typedef daeUInt xsPositiveInteger; -typedef daeULong xsUnsignedLong; - - -#define daeTSmartRef daeSmartRef - -#endif //__DAE_DOM_TYPES__ - diff --git a/Extras/COLLADA_DOM/include/dae/daeElement.h b/Extras/COLLADA_DOM/include/dae/daeElement.h deleted file mode 100644 index dcbee1c89..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeElement.h +++ /dev/null @@ -1,476 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_ELEMENT_H__ -#define __DAE_ELEMENT_H__ -#include -#include -#include -#include - -//#ifndef NO_MALLOC_HEADER -//#include -//#endif - -namespace COLLADA_TYPE -{ -#ifdef _MSC_VER - enum TypeEnum; -#else - typedef const int TypeEnum; -#endif -} - -class daeMetaElement; -class daeIntegrationObject; -class daeDocument; -class daeURI; - -template class daeSmartRef; - -//Contributed by Nus - Wed, 08 Nov 2006 -/** - * Initializing resolve array. - */ -extern "C" void initializeResolveArray(void); - -/** - * Terminating resolve array. - */ -extern "C" void terminateResolveArray(void); -//------------------- - -/** - * The @c daeElement class represents an instance of a COLLADA "Element"; - * it is the main base class for the COLLADA Dom. - * Features of this class include: - * - Uses factory concepts defined via daeMetaElement - * - Composed of attributes, content elements and content values - * - Reference counted via daeSmartRef - * - Contains information for XML base URI, and XML containing element - */ -class daeElement -{ -public: - /** - * Macro that defines new and delete overrides for this class - */ - DAE_ALLOC; -private: - mutable daeInt _refCount; - daeIntegrationObject* _intObject; - daeElement* _parent; - daeDocument* _document; - -protected: - daeMetaElement* _meta; - daeString _elementName; - daeBoolArray _validAttributeArray; - -public: - /** An enum that describes the state of user integration with this object */ - DLLSPEC enum IntegrationState { - /** The user integration is not initialized */ - int_uninitialized, - /** The user integration object has been created */ - int_created, - /** The user integration object has been converted */ - int_converted, - /** The user integration object is completed */ - int_finished - }; -protected: - daeElement( const daeElement &cpy ) { (void)cpy; }; - virtual daeElement &operator=( const daeElement &cpy ) { (void)cpy; return *this; } - -public: - /** - * Element Constructor. - * @note This should not be used externally. - * Use factories to create elements - */ - DLLSPEC daeElement(); - /** - * Element Destructor. - * @note This should not be used externally, - * if daeSmartRefs are being used. - */ - virtual DLLSPEC ~daeElement(); - - // sthomas (see https://collada.org/public_forum/viewtopic.php?t=325&) - static void releaseElements(); - /** - * Decrements the reference count and deletes the object if reference count is zero. - * @note Should not be used externally if daeSmartRefs are being used, they call it - * automatically. - */ - DLLSPEC void release() const; - - /** - * Increments the reference count of this element. - * @note Should not be used externally if daeSmartRefs are being used, they call it - * automatically. - */ - inline void ref() const {_refCount++;} - - /** - * Resolves all fields of type daeURI and IDRef. - * This is done via database query of the URI or IDRef. - */ - DLLSPEC void resolve(); - - /** - * Sets up a @c daeElement. Called on all @c daeElements as part of their initialization. - * @param meta Meta element to use to configure this element. - * @note Should not be called externally. - */ - DLLSPEC void setup(daeMetaElement* meta); - - /** - * Places an element as a child of @c this element. - * This function searches through the list of potential child element - * fields in @c this element, checking for a matching element type where the new element can be added. - * If a match of type is found, the element* is assigned or appended to - * that field, based on whether it is a single child or an array of - * children. This automatically adds the new element to the _contents of its parent, if the parent has one. - * - * @param element Element to be placed in the @c this container. - * @return Returns true if the element was successfully placed, false otherwise. - */ - DLLSPEC daeBool placeElement(daeElement* element); - - /** - * This function searches through the list of potential child elements - * (fields) checking for a matching element type where this element can be added. - * If a match of type is found, the element* is assigned or appended to - * that field (based on whether it is a single child or an array of - * children. - * If the parent element contains a _contents array, element will be placed at the specified index, - * otherwise element gets placed among elements of the same type. - * - * @param index is the place in the _contents array to insert element. - * @param element is the element to be placed in the 'this' container. - * @return return whether or not the element was successfully placed. - */ - DLLSPEC daeBool placeElementAt(daeInt index, daeElement* element); - - /** - * Places an element as a child of @c this element. - * This function inserts the new element before the element specified as marker. - * This automatically adds the new element to the _contents of its parent, if the parent has one. - * @param marker The daeElement used to determine where the new child will be placed. - * @param element Element to be placed in the @c this container. - * @return Returns true if the element was successfully placed, false otherwise. - */ - DLLSPEC daeBool placeElementBefore( daeElement* marker, daeElement *element ); - - /** - * Places an element as a child of @c this element. - * This function inserts the new element After the element specified as marker. - * This automatically adds the new element to the _contents of its parent, if the parent has one. - * @param marker The daeElement used to determine where the new child will be placed. - * @param element Element to be placed in the @c this container. - * @return Returns true if the element was successfully placed, false otherwise. - */ - DLLSPEC daeBool placeElementAfter( daeElement* marker, daeElement *element ); - - /** - * Finds the last index into the array of children of the type specified. - * @param elementName The name to look for. - * @return Returns the index into the children array of the last element of type typeName. -1 if - * there are no children of type typeName. - */ - DLLSPEC daeInt findLastIndexOf( daeString elementName ); - - /** - * Removes the specified element from it parent, the @c this element. - * This function is the opposite of @c placeElement(). It removes the specified - * element from the _contents array, and from wherever else it appears - * inside of the @c this element. Use this function instead of @c clear(), @c remove() or @c delete() - * if you want to keep the _contents field up-to-date. - * - * @param element Element to be removed in the @c this container. - * @return Returns true if the element was successfully removed, false otherwise. - */ - DLLSPEC daeBool removeChildElement(daeElement* element); - - /** - * Removes the specified element from its parent element. - * This function is the opposite of @c placeElement(). It removes the specified - * element from both the _contents array and from wherever else it appears - * inside of its parent. The function itself finds the parent, and is defined as a static method, - * since removing the element from its parent may result in the deletion of the element. - * If the element has no parent, nothing is done. - * - * Use this function instead of @c clear(), @c remove() or @c delete() - * if you want to keep _contents up-to-date. - * - * @param element Element to remove from its parent container, the function finds the parent element. - * @return Returns true if the element was successfully removed, false otherwise. - */ - static daeBool removeFromParent(daeElement* element) - { - if(element != NULL && element->_parent != NULL) - return(element->_parent->removeChildElement(element)); - return false; - }; - - /** - * Looks up an attribute field via its meta name and assign its value - * as the attrValue String. - * @param attrName Attribute to set. - * @param attrValue String-based value to apply to the attribute. - * @return Returns true if the attribute was found and the value was set, false otherwise. - */ - virtual DLLSPEC daeBool setAttribute(daeString attrName, daeString attrValue); - - /** - * Checks if an attribute has been set either by being loaded from the COLLADA document or set - * programmatically. - * @param attrName The name of the attribute to check. - * @return Returns true if the attribute has been set. False if the attribute hasn't been set - * or doesn't exist for this element. - */ - DLLSPEC daeBool isAttributeSet( daeString attrName ); - - /** - * Checks if this element can have the attribute specified. - * @param attrName The name of the attribute to look for. - * @return Returns true is this element can have an attribute with the name specified. False otherwise. - */ - DLLSPEC daeBool hasAttribute( daeString attrName ); - - /** - * Gets a pointer to the value of the attribute specified. - * @param attrName The name of the attribute to look for. - * @return Returns a daeMemoryRef (char *) to the value of the attribute. The return value will need - * to be typecast to the appropriate type. Returns NULL if the attribute does not exist. - */ - DLLSPEC daeMemoryRef getAttributeValue( daeString attrName ); - - /** - * Checks if this element can have a value. - * @return Returns true is this element can have a value. False otherwise. - */ - DLLSPEC daeBool hasValue(); - - /** - * Gets a pointer to the element's value. - * @return Returns a daeMemoryRef (char *) to the value of the element. The return value will need - * to be typecast to the appropriate type. Returns NULL if the element does not allow a value. - */ - DLLSPEC daeMemoryRef getValuePointer(); - - /** - * Finds the database document associated with @c this element. - * @return Returns the @c daeDocument representing the containing file or database - * group. - */ - daeDocument* getDocument() const { return _document; } - - /** - * Deprecated. - */ - daeDocument* getCollection() const { return _document; } - - /** - * Sets the database document associated with this element. - * @param c The daeDocument to associate with this element. - */ - DLLSPEC void setDocument(daeDocument* c ); - /** - * Deprecated. - */ - DLLSPEC void setCollection(daeDocument* c ); - - /** - * Gets the URI of the document containing this element, note that this is NOT the URI of the element. - * @return Returns a pointer to the daeURI of the document containing this element. - */ - DLLSPEC daeURI* getDocumentURI() const; - - /** - * Creates an element via the element factory system. This creation - * is based @em only on potential child elements of this element. - * @param elementName Class name of the subelement to create. - * @return Returns the created @c daeElement, if it was successfully created. - */ - DLLSPEC daeSmartRef createElement(daeString elementName); - - /** - * Creates a subelement via @c createElement() and places it via @c placeElement(). - * Automatically adds the new element to the _contents of its parent, if the parent has one. - * This is the primary method used to construct the COLLADA dom hierarchy. - * @param elementName - Class name of the subelement to create. - * @return Returns the created @c daeElement, if it was successfully created. - */ - DLLSPEC daeElement* createAndPlace(daeString elementName); - - /** - * Create a sub-element via #createElement and place it via #placeElementAt - * This also automatically inserts the new element at the specified index in the _contents of it's - * parent, if the parent has one. - * This is useful when constructing the COLLADA dom hierarchy - * @param index the position in the _contents array the newly created element is to be placed at - * @param elementName - the className of the sub-element to be created - * @return the created element if it was in fact successfully created. - */ - DLLSPEC daeElement* createAndPlaceAt(daeInt index, daeString elementName); - - /** - * Gets the container element for @c this element. - * If @c createAndPlace() was used to create the element, its parent is the the caller of @c createAndPlace(). - * @return Returns the parent element, if @c this is not the top level element. - */ - daeElement* getParentElement() { return _parent;} - /** - * Deprecated. Use getParentElement() - * @deprecated - */ - daeElement* getXMLParentElement() { return _parent;} - /** - * Sets the parent element for this element. - * @param newParent The element which is the new parent element for this element. - * @note This function is called internally and not meant to be called form the client application. - */ - void setParentElement( daeElement *parent ) { _parent = parent; } - - /** - * Gets the associated Meta information for this element. This - * Meta also acts as a factory. See @c daeMetaElement documentation for more - * information. - * @return Returns the associated meta information. - */ - inline daeMetaElement* getMeta() { return _meta; } - - /** - * Gets the integration object associated with this @c daeElement object. - * See @c daeIntegrationObject for more details. - * Integration Objects can be automatically created and associated - * with the COLLADA dom via the meta-factory mechanism and - * can be very useful for using the API to integrate with COLLADA. - * @param from_state Specifies where in the conversion process from COLLADA you are interested. A full conversion is the default. - * @param to_state Specifies where in the conversion process to COLLADA you are interested. No conversion is the default. - * @return Returns the @c daeIntegrationObject associated with this COLLADA element - * instance. - */ - DLLSPEC daeIntegrationObject* getIntObject( IntegrationState from_state = int_converted, IntegrationState to_state = int_uninitialized ); - - /** - * Gets the element type. - * @return Returns the COLLADA_TYPE::TypeEnum value corresponding to this element's type. - */ - virtual COLLADA_TYPE::TypeEnum getElementType() const { return (COLLADA_TYPE::TypeEnum)0; } - /** - * Gets the element type name for this element. - * @return Returns the string for the type name. - */ - DLLSPEC daeString getTypeName() const; - - /** - * Gets this element's name. - * @return Returns the string for the name. - * @remarks This function returns NULL if the element's name is identical to it's type's name. - */ - DLLSPEC daeString getElementName() const; - /** - * Sets this element's name. - * @param nm Specifies the string to use as the element's name. - * @remarks Use caution when using this function since you can easily create invalid COLLADA documents. - */ - DLLSPEC void setElementName( daeString nm ); - - /** - * Gets the element ID if it exists. - * @return Returns the value of the ID attribute, if there is such - * an attribute on this element type. - * @return the string for the element ID if it exists. - */ - DLLSPEC daeString getID() const; - - /** - * Gets the children/sub-elements of this element. - * This is a helper function used to easily access an element's children without the use of the - * _meta objects. This function adds the convenience of the _contents array to elements that do - * not contain a _contents array. - * @param array The return value. An elementref array to append this element's children to. - */ - //void getChildren( daeElementRefArray &array ); - DLLSPEC void getChildren( daeTArray > &array ); - - /** - * Clones/deep copies this @c daeElement and all of it's subtree. - * @param idSuffix A string to append to the copied element's ID, if one exists. - * Default is no ID mangling. - * @param nameSuffix A string to append to the copied element's name, if one exists. - * Default is no name mangling. - * @return Returns a @c daeElement smartref of the copy of this element. - */ - DLLSPEC daeSmartRef clone( daeString idSuffix = NULL, daeString nameSuffix = NULL ); - -public: - /** - * Resolves all @c daeURIs yet to be resolved in all @c daeElements that have been - * created. - * This is used as part of post-parsing process of a COLLADA instance document, - * which results in a new document in the database. - */ - static DLLSPEC void resolveAll(); - - /** - * Clears the resolveArray. - */ - static DLLSPEC void clearResolveArray(); -public: - /** - * Releases the element passed in. This function is a static wrapper that invokes - * elem->release() on the passed in element, - * if it is not NULL. - * @param elem Element to call @c release() for, if the element exists. - */ - static DLLSPEC void release(const daeElement* elem) {if (elem != NULL) elem->release();} - - /** - * Increments the reference counter for the element passed in. This function is a static wrapper - * that invokes elem->ref() on the passed in element, - * if it is not NULL. - * @param elem Element to call @c ref() for, if the element exists. - */ - static DLLSPEC void ref(const daeElement* elem) { if (elem != NULL) elem->ref(); } - - /** - * Appends the passed in element to the list of elements that need to be resolved. - * The elements in this list will be resolved during @c resolveAll(). - * @param elem Element to add to the list of elements - * waiting for their @c daeURIs to be resolved. - */ - static DLLSPEC void appendResolveElement(daeElement* elem); - -}; -#include -typedef daeSmartRef daeElementRef; -typedef daeSmartRef daeElementConstRef; -//#include -typedef daeTArray daeElementRefArray; - -extern daeElementRef DAECreateElement(int nbytes); - -template -inline T *daeSafeCast( daeElement *element ) -{ - if ( element && element->getMeta() == T::_Meta ) - return (T *)element; - return NULL; -} - -#endif //__DAE_ELEMENT_H__ diff --git a/Extras/COLLADA_DOM/include/dae/daeError.h b/Extras/COLLADA_DOM/include/dae/daeError.h deleted file mode 100644 index f6972deb7..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeError.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE__ERROR__ -#define __DAE__ERROR__ - -/** Success */ -#define DAE_OK 0 -/** Fatal Error, should never be returned unless there is a bug in the library. */ -#define DAE_ERR_FATAL -1 -/** Call invalid, the combination of parameters given is invalid. */ -#define DAE_ERR_INVALID_CALL -2 -/** IO error, the file hasn't been found or there is a problem with the IO plugin. */ -#define DAE_ERR_BACKEND_IO -100 -/** The IOPlugin backend wasn't able to successfully validate the data. */ -#define DAE_ERR_BACKEND_VALIDATION -101 -/** The IOPlugin tried to write to a file that already exists and the "replace" parameter was set to false */ -#define DAE_ERR_BACKEND_FILE_EXISTS -102 -/** Error in the syntax of the query. */ -#define DAE_ERR_QUERY_SYNTAX -200 -/** No match to the search criteria. */ -#define DAE_ERR_QUERY_NO_MATCH -201 -/** A document with that name already exists. */ -#define DAE_ERR_COLLECTION_ALREADY_EXISTS -202 -/** A document with that name does not exist. */ -#define DAE_ERR_COLLECTION_DOES_NOT_EXIST -203 -/** Function is not implemented. */ -#define DAE_ERR_NOT_IMPLEMENTED -1000 - -/** Gets the ASCII error string. -* @param errorCode Error code returned by a function of the API. -* @return Returns an English string describing the error. -*/ -#ifdef WIN32 -__declspec( dllexport ) const char *daeErrorString(int errorCode); -#else -const char *daeErrorString(int errorCode); -#endif - -#endif //__DAE__ERROR__ diff --git a/Extras/COLLADA_DOM/include/dae/daeErrorHandler.h b/Extras/COLLADA_DOM/include/dae/daeErrorHandler.h deleted file mode 100644 index 294339fa9..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeErrorHandler.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef _DAE_ERROR_HANDLER_ -#define _DAE_ERROR_HANDLER_ - -#include - -/** - * The @c daeErrorHandler class is a plugin that allows the use to overwrite how error and warning - * messages get handled in the client application. An example of this would be a class that reports - * the message to a gui front end instead of just printing on stdout. - */ -class DLLSPEC daeErrorHandler { -public: - /** - * Constructor. - */ - daeErrorHandler(); - /** - * Destructor. - */ - virtual ~daeErrorHandler(); - - /** - * This function is called when there is an error and a string needs to be sent to the user. - * You must overwrite this function in your plugin. - * @param msg Error message. - */ - virtual void handleError( daeString msg ) = 0; - /** - * This function is called when there is a warning and a string needs to be sent to the user. - * You must overwrite this function in your plugin. - * @param msg Warning message. - */ - virtual void handleWarning( daeString msg ) = 0; - - /** - * Sets the daeErrorHandler to the one specified. - * @param eh The new daeErrorHandler to use. Passing in NULL results in the default plugin being used. - */ - static void setErrorHandler( daeErrorHandler *eh ); - /** - * Returns the current daeErrorHandlerPlugin. DaeErrorHandler implements a singleton design pattern - * so you can get the current daeErrorHandler statically. - * @return The current daeErrorHandler. - */ - static daeErrorHandler *get(); - -private: - static daeErrorHandler *_instance; - static daeBool _default; -}; - -#endif diff --git a/Extras/COLLADA_DOM/include/dae/daeGCCPlatform.h b/Extras/COLLADA_DOM/include/dae/daeGCCPlatform.h deleted file mode 100644 index 5dbf11b70..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeGCCPlatform.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_GCC_PLATFORM_H__ -#define __DAE_GCC_PLATFORM_H__ - -#define PLATFORM_INT8 char -#define PLATFORM_INT16 short -#define PLATFORM_INT32 int -#define PLATFORM_INT64 long long -#define PLATFORM_UINT8 unsigned char -#define PLATFORM_UINT16 unsigned short -#define PLATFORM_UINT32 unsigned int -#define PLATFORM_UINT64 unsigned long long -#define PLATFORM_FLOAT32 float -#define PLATFORM_FLOAT64 double - -#define DLLSPEC - -#endif diff --git a/Extras/COLLADA_DOM/include/dae/daeGenericPlatform.h b/Extras/COLLADA_DOM/include/dae/daeGenericPlatform.h deleted file mode 100644 index 821771d69..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeGenericPlatform.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_GENERIC_PLATFORM_H__ -#define __DAE_GENERIC_PLATFORM_H__ - -#include - -#define PLATFORM_INT8 char -#define PLATFORM_INT16 short -#define PLATFORM_INT32 int -#define PLATFORM_INT64 long long -#define PLATFORM_UINT8 unsigned char -#define PLATFORM_UINT16 unsigned short -#define PLATFORM_UINT32 unsigned int -#define PLATFORM_UINT64 unsigned long long -#define PLATFORM_FLOAT32 float -#define PLATFORM_FLOAT64 double - -#define DLLSPEC - -#endif diff --git a/Extras/COLLADA_DOM/include/dae/daeIDRef.h b/Extras/COLLADA_DOM/include/dae/daeIDRef.h deleted file mode 100644 index 71e8060d6..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeIDRef.h +++ /dev/null @@ -1,346 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_IDREF_H__ -#define __DAE_IDREF_H__ - -#include -#include - -/** - * The @c daeIDRef is a simple class designed to aid in the parsing and resolution of - * ID references inside of COLLADA elements. - * A @c daeIDRef is created for every IDREF data type in the COLLADA schema. - * It also has the capability to attempt to resolve this reference - * into a @c daeElement. If a @c daeIDRef is stored within a @c daeElement it fills - * in its container field to point to the containing element. - * - * The main API is the @c daeIDRef::resolveElement() will use a @c daeIDRefResolver - * to search for the @c daeElement inside of a @c daeDatabase. - * - */ -class daeIDRef -{ -public: - /** - * An enum describing the status of the ID resolution process. - */ - DLLSPEC enum ResolveState{ - /** No ID specified */ - id_empty, - /** ID specified but not resolved */ - id_loaded, - /** ID resolution pending */ - id_pending, - /** ID resolved correctly */ - id_success, - /** Resolution failed because ID was not found */ - id_failed_id_not_found, - /** Resolution failed because ID was invalid */ - id_failed_invalid_id, - /** Resoltion failed due to invalid reference */ - id_failed_invalid_reference, - /** Resolution failed due to an external error */ - id_failed_externalization - }; - -private: - /** Id used to refer to another element */ - daeString id; - - /** Reference to the actual element the ID refers to */ - daeElementRef element; - - /** Element that owns this ID (if any) */ - daeElement* container; - - /** Current state of this id's resolution */ - ResolveState state; - -public: - /** - * Gets the element that this URI resolves to in memory. - * @return Returns a ref to the element. - */ - inline daeElementRef getElement(){return(element);}; - - /** - * Gets the element that this URI resolves to in memory. - * @return Returns a ref to the element. - */ - inline daeElementConstRef getElement() const {return(element);}; - - /** - * Sets the element that this URI resolves to in memory. - * @param newref A ref to the element. - */ - inline void setElement(daeElementRef newref){element=newref;}; - - /** - * Gets the resolve state of the URI. - * @return Returns the current state. - * @note This will be removed when daeURI starts managing its state internally. - */ - inline ResolveState getState() const {return(state);}; - - /** - * Sets the resolve state of the URI. - * @param newState The new state. - * @note This will be removed when daeURI starts managing its state internally. - */ - inline void setState(ResolveState newState){state=newState;}; - - /** - * Gets a pointer to the @c daeElement that contains this URI. - * @return Returns the pointer to the containing daeElmement. - */ - - inline daeElement* getContainer() const {return(container);}; - /** - * Sets the pointer to the @c daeElement that contains this URI. - * @param element Pointer to the containing @c daeElmement. - */ - inline void setContainer(daeElement* element){container=element;}; - -public: - /** - * Simple Constructor - */ - DLLSPEC daeIDRef(); - /** - * Destructor - */ - DLLSPEC ~daeIDRef(); - - /** - * Constructs an id reference via a string, using @c setID(); loads the status. - * @param id ID to construct a reference for, passed to @c setID() automatically. - */ - DLLSPEC daeIDRef(daeString id); - - /** - * Constructs a new id reference by copying an existing one. - * @param constructFromIDRef @c daeIDRef to copy into this one. - */ - DLLSPEC daeIDRef(daeIDRef& constructFromIDRef); - - /** - * Copies ID into the id data member. - * After the call to @c setID(), the state is set to @c id_loaded - * @param ID String to use to configure this @c daeIDRef. - */ - DLLSPEC void setID(daeString ID); - - /** - * Gets the ID string - * @return Returns the full ID string from id. - */ - DLLSPEC daeString getID() const; - - /** - * Uses the @c daeIDRefResolver static API to try to resolve this ID - * into a @c daeElement reference. - * This function can effectively force a load of a file, perform - * a database query, et cetera based on the @c daeIDRefResolver plugins - * implemented. - */ - DLLSPEC void resolveElement( daeString typeNameHint = NULL ); - - /** - * Configures the id string of this @c daeIDRef based on the element set its element data member. - * Uses @c daeElement::getID() to get the element's ID information to configure - * the id string. - */ - DLLSPEC void resolveID(); - - /** - * Sets the state of this @c daeIDRef to @c id_pending, as it is awaiting a call to - * @c resolveElement(). - */ - DLLSPEC void validate(); - - /** - * Copies from into this. - * The function does a simple copy, and not "base validation". - * @param from @c daeIDRef to copy from. - */ - DLLSPEC void copyFrom(daeIDRef& from); - - /** - * Outputs all components of this @c daeIDRef to stderr. - */ - DLLSPEC void print(); - - /** - * Resets this @c daeIDRef; frees all string references - * and returns state to @c empty. - */ - DLLSPEC void reset(); - - /** - * Initializes the @c daeIDREf, setting id, element, and container to NULL. - */ - DLLSPEC void initialize(); - - /** - * Comparison operator. - * @return Returns true if URI's are equal. - */ - inline bool operator==(const daeIDRef& other) const{ - return (!strcmp(other.getID(), getID())); } - - daeIDRef &operator=( const daeIDRef& other) { - setID(other.getID()); - element = other.element; - state = other.state; - return *this; - } - - //Backwards Compatibility - daeIDRef &get( daeUInt idx ) { (void)idx; return *this; } - size_t getCount() const { return 1; } - daeIDRef& operator[](size_t index) { (void)index; return *this; } -}; - -class daeIDRefResolver; -typedef daeTArray daeIDRefResolverPtrArray; - -/** - * The @c daeIDRefResolver class is the plugin point for @c daeIDRef resolution. - * This class is an abstract base class that defines an interface for - * resolving @c daeIDRefs. - * All instances of @c daeIDRefResolvers are tracked centrally. - * Every @c daeIDRef is passed through this list of @c aeIDRefResolvers for resolution. - * The list is ordered on a first come, first serve basis, and resolution - * terminates after any resolver instance is able to resolve the ID. - */ -class daeIDRefResolver -{ -public: - /** - * Constructor; base constructor appends @c this to _KnownResolvers list. - */ - DLLSPEC daeIDRefResolver(); - - /** - * Destructor - */ - virtual DLLSPEC ~daeIDRefResolver(); - -//Contributed by Nus - Wed, 08 Nov 2006 - /** - * Initialize ID reference solver - */ - static void initializeIDRefSolver(void); - - /** - * Terminate ID reference solver - */ - static void terminateIDRefSolver(void); -//------------------------- - -protected: - static daeIDRefResolverPtrArray* _KnownResolvers; - -public: - /** - * Iterates through known resolvers - * calling @c resolveElement(). - * @param id @c daeIDRef to resolve. - */ - static DLLSPEC void attemptResolveElement(daeIDRef &id, daeString typeNameHint = NULL ); - - /** - * attemptResolveID iterates through known resolvers - * calling resolveID(). - * @param id @c daeIDRef to resolve. - */ - static DLLSPEC void attemptResolveID(daeIDRef &id); - -public: // Abstract Interface - /** - * Provides an abstract interface to convert a @c daeIDRef into a @c daeElement. - * @param IDRef @c daeIDRef to resolve. - * @return Returns true if the @c daeIDRefResolver successfully resolved the IDRef, - * returns false otherwise. - */ - virtual DLLSPEC daeBool resolveElement(daeIDRef& IDRef, daeString typeNameHint = NULL ) = 0; - /** - * Provides an abstract interface to convert a @c daeElement into a @c daeIDRef. - * @param IDRef @c daeIDRef to resolve. - * @return Returns true if the @c daeIDRefResolver successfully resolved the element - * into a @c daeIDRef, returns false otherwise. - */ - virtual DLLSPEC daeBool resolveID(daeIDRef& IDRef) = 0; - - /** - * Gets the name of this resolver. - * @return Returns the string name. - */ - virtual DLLSPEC daeString getName() = 0; - -}; - -class daeDatabase; - -/** - * The @c daeDefaultIDRefResolver resolves a @c daeIDRef by checking with a database. - * It is a concrete implementation for @c daeIDRefResolver. - */ -class daeDefaultIDRefResolver : public daeIDRefResolver -{ -public: - /** - * Constructor - * @param database @c daeDatabase for this implementation. - */ - DLLSPEC daeDefaultIDRefResolver(daeDatabase* database); - - /** - * Destructor - */ - DLLSPEC ~daeDefaultIDRefResolver(); - -protected: - daeDatabase* _database; - -public: // Abstract Interface - /* - * Implements base class abstract routine from @c daeIDRefResolver. - */ - virtual DLLSPEC daeBool resolveElement(daeIDRef& id, daeString typeNameHint = NULL ); - - /* - * Implements base class abstract routine from @c daeIDRefResolver. - */ - virtual DLLSPEC daeBool resolveID(daeIDRef& id); - - /* - * Implements base class abstract routine from @c daeIDRefResolver. - */ - virtual DLLSPEC daeString getName(); -}; - -#endif //__DAE_IDREF_H__ - - - - - - - - - - - - diff --git a/Extras/COLLADA_DOM/include/dae/daeIOPlugin.h b/Extras/COLLADA_DOM/include/dae/daeIOPlugin.h deleted file mode 100644 index 4d161db93..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeIOPlugin.h +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_IOPLUGIN__ -#define __DAE_IOPLUGIN__ - -#include -class daeDatabase; -class daeMetaElement; -class daeURI; -class daeDocument; - -/** -* The @c daeIOPlugin class provides the input/output plugin interface, which is -* the interface between the COLLADA runtime and the backend storage. A native -* COLLADA XML plugin implementation is provided along with this interface. -*/ -class daeIOPlugin -{ -public: - /** - * Destructor - */ - virtual ~daeIOPlugin() {} - /** - * Sets the top meta object. - * Called by @c dae::setIOPlugin() when the IO plugin changes. It passes to this function the - * top meta object, which is the root of a - * hierarchy of @c daeMetaElement objects. This top meta object is capable of creating - * any of the root objects in the DOM tree. - * @param topMeta Top meta object to use to create objects to fill the database. - * @return Returns DAE_OK if successful, otherwise returns a negative value defined in daeError.h. - */ - virtual DLLSPEC daeInt setMeta(daeMetaElement *topMeta) = 0; - - /** @name Database setup */ - //@{ - /** - * Sets the database to use. - * All @c daeIOPlugins use the same interface to the @c daeDatabase, - * @c setDatabase() tells the @c daeIOPlugin which @c daeDatabase object it should use - * for storage and queries. - * @param database Database to set. - */ - virtual DLLSPEC void setDatabase(daeDatabase* database) = 0; - //@} - - - /** @name Operations */ - //@{ - /** - * Imports content into the database from an input. - * The input can be a file, a database or another runtime. - * @param uri the URI of the COLLADA document to load, not all plugins accept all types of URIs, - * check the documentation for the IO plugin you are using. - * @param docBuffer A string containing the text of the document to load. This is an optional attribute - * and should only be used if the document has already been loaded into memory. - * @return Returns DAE_OK if successfully loaded, otherwise returns a negative value defined in daeError.h. - * @see @c daeInterface::load(). - */ - virtual DLLSPEC daeInt read(daeURI& uri, daeString docBuffer) = 0; - - /** @name Operations */ - //@{ - /** - * Writes a specific document to an output. - * @param name URI to write the document to, not all IO plugins support all types of URIs - * check the documentation for the IO plugin you are using. - * @param document Pointer to the document that we're going to write out. - * @param replace True if write should overwrite an existing file. False otherwise. - * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. - * @see @c daeInterface::saveAS() - */ - virtual DLLSPEC daeInt write(daeURI *name, daeDocument *document, daeBool replace) = 0; - //@} - - /** @name Load/Save Progress */ - //@{ - /** - * Gets the progress of @c load() operation. - * This function can be used from another thread to check the progress of a @c load() - * operation. The user can update a progress bar bytesParsed/totalBytes gives the - * percentage of progress of the operation. - * @param bytesParsed Pointer to an integer that receives the number of bytes already - * consumed from the file, can be NULL if the user don't want to retrieve this information. - * @param lineNumber Pointer to an integer that receives the number of lines read so far, - * can be NULL. - * @param totalBytes Pointer to an integer that receives the total number of bytes in the - * file currently beeing loaded, can be NULL. - * @param reset Indicates whether to reset the counters. A value of false is the default behaviour - * that fits most usage. Set it to true to reset - * the bytesParsed and lineNumber counters. The system resets the counter at the beginning of - * each file. - */ - virtual DLLSPEC void getProgress(daeInt* bytesParsed, - daeInt* lineNumber, - daeInt* totalBytes, - daeBool reset = false ) = 0; - //@} -}; - -#endif // __DAE_IOPLUGIN__ diff --git a/Extras/COLLADA_DOM/include/dae/daeIntegrationObject.h b/Extras/COLLADA_DOM/include/dae/daeIntegrationObject.h deleted file mode 100644 index f33a44b64..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeIntegrationObject.h +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_INTEGRATION_OBJECT_H__ -#define __DAE_INTEGRATION_OBJECT_H__ - -#include - -class daeIntegrationObject; -typedef daeSmartRef daeIntegrationObjectRef; -/** - * The @c daeIntegrationObject class provides methods to translate COLLADA - * objects to and from application objects. - */ -class daeIntegrationObject : public daeElement -{ -public: - /** - * Constructor. - */ - DLLSPEC daeIntegrationObject() { _element = NULL; _object = NULL; _from_state = int_uninitialized; _to_state = int_uninitialized; } - /** - * Destructor. - */ - virtual DLLSPEC ~daeIntegrationObject() {} - -public: - /** A pointer to the element associated with this integration object. */ - daeElement *_element; - /** A pointer at which to store the user object associated with this element. */ - void* _object; - /** An enum describing the state of the conversion from COLLADA. */ - IntegrationState _from_state; - /** An enum describing the state of the conversion to COLLADA. */ - IntegrationState _to_state; - -public: - /** - * Sets the element associated with this integration object. - * @param element A daeSmartRef to the element for this integration object. - */ - void setElement(daeElementRef element) { _element = element; } - /** - * Gets the element associated with this integration object. - * @return The element associated with this integration object. - */ - daeElementRef getElement() { return _element; } - /** - * Sets the user object associated with this integration object. - * @param object A void * to the user object to be associated with this integration object. - */ - void setObject(void* object) { _object = object; } - /** - * Gets the user object associated with this integration object. - * @return The user object associated with this integration object. - */ - void* getObject() { return _object; } -public: // Do not implement these by default - virtual daeElementRef lookupElement(daeString s) { (void)s; return NULL;} - virtual daeIntegrationObjectRef lookup(daeString s) { (void)s; return NULL;} -protected: - /** - * Defines the code to create the application-specific data structure associated with the DOM class - * for this integration template. This method sets up the integration object for the DOM class. - * @param element A daeSmartRef to the element to convert into the user's structure. - */ - virtual DLLSPEC void createFrom(daeElementRef element) = 0; - /** - * Defines the code to convert the COLLADA Object Model data structure into your application-specific - * data structure. - */ - virtual DLLSPEC void fromCOLLADA() = 0; - /** - * Defines any postprocessing code that must execute after the basic conversion. - */ - virtual DLLSPEC void fromCOLLADAPostProcess() = 0; - /** - * Defines code to create the COLLADA Object Model data structure associated with the DOM class for - * this template. - * @param userData A pointer to the application-specific data structure to convert to the DOM structure. - */ - virtual DLLSPEC void createTo(void *userData) = 0; - /** - * Defines the code to convert your application's data structures back into COLLADA Object Model data - * structures. - */ - virtual DLLSPEC void toCOLLADA() = 0; - /** - * Defines any postprocessing code that must execute after the basic conversion. - */ - virtual DLLSPEC void toCOLLADAPostProcess() = 0; - -public: - /** - * Defines the code to create the application-specific data structure associated with the DOM class - * for this integration template. This method sets up the integration object for the DOM class. This - * method checks and updates the conversion state stored in _from_state and converts only if - * necessary. - * @param element A daeSmartRef to the element to convert into the user's structure. - */ - void createFromChecked(daeElementRef element) { - if ( _from_state >= int_created ) { - return; - } - createFrom(element); - _from_state = int_created; - }; - /** - * Defines the code to convert the COLLADA Object Model data structure into your application-specific - * data structure. This method checks and updates the conversion state stored in _from_state and - * converts only if necessary. - */ - void fromCOLLADAChecked() { - if ( _from_state >= int_converted ) { - return; - } - fromCOLLADA(); - _from_state = int_converted; - }; - /** - * Defines any postprocessing code that must execute after the basic conversion. This method - * checks and updates the conversion state stored in _from_state and converts only if necessary. - */ - void fromCOLLADAPostProcessChecked() { - if ( _from_state >= int_finished) { - return; - } - fromCOLLADAPostProcess(); - _from_state = int_finished; - }; - /** - * Defines code to create the COLLADA Object Model data structure associated with the DOM class for - * this template. This method checks and updates the conversion state stored in _to_state and - * converts only if necessary. - * @param userData A pointer to the application-specific data structure to convert to the DOM structure. - */ - void createToChecked(void *userData) { - if ( _to_state >= int_created ) { - return; - } - createTo(userData); - _to_state = int_created; - }; - /** - * Defines the code to convert your application's data structures back into COLLADA Object Model data - * structures. This method checks and updates the conversion state stored in _to_state and - * converts only if necessary. - */ - void toCOLLADAChecked() { - if ( _to_state >= int_converted ) { - return; - } - toCOLLADA(); - _to_state = int_converted; - }; - /** - * Defines any postprocessing code that must execute after the basic conversion. This method - * checks and updates the conversion state stored in _to_state and converts only if necessary. - */ - void toCOLLADAPostProcessChecked() { - if ( _to_state >= int_finished) { - return; - } - toCOLLADAPostProcess(); - _to_state = int_finished; - }; - -}; -#endif diff --git a/Extras/COLLADA_DOM/include/dae/daeInterface.h b/Extras/COLLADA_DOM/include/dae/daeInterface.h deleted file mode 100644 index b347578da..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeInterface.h +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_INTERFACE__ -#define __DAE_INTERFACE__ - -#include -class daeElement; -class daeDatabase; -class daeIOPlugin; -class domCOLLADA; - -/** -* Integration library meta register function. -* -* Such a function (@c intRegisterElements() )is autogenerated by the COLLADA code generator -* and can be modified if necessary to register the meta of the -* integration library objects. -*/ -typedef void (*daeIntegrationLibraryFunc)(); - -/** -* The @c daeInterface class provides an interface with the COLLADA runtime database. -*/ -class daeInterface -{ -public: - /** - * Destructor. - */ - virtual DLLSPEC ~daeInterface() {} - - /** @name Database setup - * management of the database that stores the COLLADA elements. - */ - //@{ - /** - * Gets the COLLADA runtime database currently being used. - * @return Returns the database currently being used. - */ - virtual DLLSPEC daeDatabase* getDatabase() = 0; - /** - * Sets the COLLADA runtime database to use. - * @param database Database that stores the COLLADA data, - * if set to NULL a default database is set. - * @return Returns @c DAE_OK if success, otherwise, returns a negative error value as defined in daeError.h. - */ - virtual DLLSPEC daeInt setDatabase(daeDatabase* database) = 0; - //@} - - /** @name IOPlugin setup - * handle the backend, which can import or export the COLLADA - * database to a file system, to a runtime or to any other storage system. - */ - //@{ - /** - * Gets the @c daeIOPlugin currently set. - * @return Returns the @c daeIOPlugin currently set on the interface. - */ - virtual DLLSPEC daeIOPlugin* getIOPlugin() = 0; - /** - * Sets the plugin which will be the interface between the COLLADA runtime database - * and the rest of the system. - * It can be used to read or write from a native XML file, to convert, or to store - * in a more complex structure like a storage database. - * @param plugin Plugin to use, if set to NULL a default plugin is set. - * @return Returns @c DAE_OK if success, otherwise, returns a negative error value as defined in daeError.h. - */ - virtual DLLSPEC daeInt setIOPlugin(daeIOPlugin* plugin) = 0; - //@} - - /** @name Integration Library Setup - * definition of an integration library to use when processing COLLADA file. - * It defines a framework for a user to insert a source code that will be called - * in the context of an import or export. Hence, it's the preferred way of - * accessing COLLADA runtime structure and convert between COLLADA and the user's - * runtime. - */ - //@{ - /** - * Gets the integration library register function currently being used. - * @return Returns the integration library register function currently being used. - */ - virtual DLLSPEC daeIntegrationLibraryFunc getIntegrationLibrary() = 0; - /** - * Sets the integration library register function. - * @param regFunc Integration library register function to use. - * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. - */ - virtual DLLSPEC daeInt setIntegrationLibrary(daeIntegrationLibraryFunc regFunc)=0; - //@} - - /** @name Batch import/export operations - * import or export a COLLADA database by using the daeIOPlugin currently set. - */ - //@{ - /** - * Loads a COLLADA document into the runtime database - * @param name the document to load. The format for this is defined by the IO plugin - * being used, in most cases this will be an rfc 2396 compliant relative or absolute URI. Please check - * the class documentation for the IO plugin you are using for specific restrictions. Not all IO plugins - * support all types of URIs. - * @param docBuffer A string containing the text of the document to load. This is an optional attribute - * and should only be used if the document has already been loaded into memory. - * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. - */ - virtual DLLSPEC daeInt load(daeString name, daeString docBuffer = NULL) = 0; - /** - * Saves a single document/document back to the location it was loaded from. - * @param documentName the name of the loaded document to be saved, in most cases this will be an rfc 2396 compliant - * URI but some IO plugins may work differently. Please check the class documentation for the IO plugin you are using for specific restrictions. - * @param replace If set to false, save won't save over top of an existing document and will return a DAE_ERR_BACKEND_FILE_EXISTS - * error. - * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. - */ - virtual DLLSPEC daeInt save(daeString documentName, daeBool replace=true) = 0; - /** - * Saves a single document/document back to the location it was loaded from. - * @param documentIndex the index of a loaded document to be saved. - * @param replace If set to false, save won't save over top of an existing document and will return a DAE_ERR_BACKEND_FILE_EXISTS - * error. - * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. - */ - virtual DLLSPEC daeInt save(daeUInt documentIndex=0, daeBool replace=true) = 0; - /** - * Saves a single document/document from the runtime database by name. - * @param name the name to save the document to. The format for this is defined by the IO plugin - * being used, in most cases this will be an rfc 2396 compliant relative or absolute URI. Please check - * the class documentation for the IO plugin you are using for specific restrictions. Not all IO plugins - * support all types of URIs. - * @param documentName the name of the document/document to save. This is also defined by the IO plugin, in - * most cases this will be the URI of where the document was loaded from. - * @param replace If set to false, saveAs won't save over top of an existing document and will return a DAE_ERR_BACKEND_FILE_EXISTS - * error. - * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. - */ - virtual DLLSPEC daeInt saveAs(daeString name, daeString documentName, daeBool replace=true) = 0; - /** - * Saves a single document/document from the runtime database by index. - * @param name the name to save the document to. The format for this is defined by the IO plugin - * being used, in most cases this will be an rfc 2396 compliant relative or absolute URI. Please check - * the class documentation for the IO plugin you are using for specific restrictions. Not all IO plugins - * support all types of URIs. - * @param documentIndex the index of the document/document to save, 0 is the first document loaded...etc. - * Defaults to saving the first document loaded - * @param replace If set to false, saveAs won't save over top of an existing document and will return a DAE_ERR_BACKEND_FILE_EXISTS - * error. - * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. - */ - virtual DLLSPEC daeInt saveAs(daeString name, daeUInt documentIndex=0, daeBool replace=true) = 0; - /** - * Unloads a specific document from the runtime database. - * @param name Name of the document to remove. - * @return Returns DAE_OK if unloaded successfully, otherwise returns a negative value as defined in daeError.h. - * @note This function is not currently implemented. - */ - virtual DLLSPEC daeInt unload(daeString name) = 0; - /** - * Unloads all the documents of the runtime database. - * This function frees all the @c dom* objects and integration objects created so far, - * except the object on which the user still has a smart pointer reference. - * @return Returns DAE_OK if all documents unloaded successfully, otherwise returns a negative value as defined in daeError.h. - */ - virtual DLLSPEC daeInt clear() = 0; - //@} - - /** @name Import/export progress - */ - //@{ - /** - * Gets the progress of @c load() operation. - * This function can be used from another thread to check the progress of a @c load() - * operation. The user can update a progress bar bytesParsed/totalBytes gives the - * percentage of progress of the operation. - * @param bytesParsed Pointer to an integer that receives the number of bytes already - * consumed from the file, can be NULL if the user don't want to retrieve this information. - * @param lineNumber Pointer to an integer that receives the number of lines read so far, - * can be NULL. - * @param totalBytes Pointer to an integer that receives the total number of bytes in the - * file currently being loaded, can be NULL. - * @param reset Indicates whether to reset the counters. A value of false is the default behavior - * that fits most usage. Set it to true to reset - * the bytesParsed and lineNumber counters. The system resets the counter at the beginning of - * each file. - */ - virtual DLLSPEC void getProgress(daeInt* bytesParsed, - daeInt* lineNumber, - daeInt* totalBytes, - daeBool reset = false )=0; - //@} - - /** @name Main DOM Query - */ - //@{ - /** - * Gets the COLLADA tree root of a given document. - * @param name Document name, for the file @c daeIOPlugin, this will be the filename for a file. - * @return Returns the @c domCOLLADA root object of the document, or NULL if the document is not found. - */ - virtual DLLSPEC domCOLLADA* getDom(daeString name) = 0; - /** - * Gets the COLLADA schema version that was used to build the DOM classes - * @return a text string with the version number in it (ie: 1.3.1) - */ - virtual DLLSPEC daeString getDomVersion() = 0; - /** - * Sets or inserts a COLLADA tree into the database. - * The system creates a default database if none is set and then creates a document - * if the document doesn't already exist. The document keeps a reference on the - * @c daeElement, so you can then delete your own reference to the object safely. - * @param name the document name, may be an absolute or relative URI. The URI will be resolved to an absolute version - * and then compared with the absolute version of the document's URI. If the URI contains a fragment, it is stripped out. - * @param dom Root tree. - * @return Returns DAE_OK if success, otherwise returns a negative value as defined in daeError.h. - */ - virtual DLLSPEC daeInt setDom(daeString name, domCOLLADA* dom) = 0; - //@} -}; - -#endif // __DAE_INTERFACE__ - diff --git a/Extras/COLLADA_DOM/include/dae/daeMemorySystem.h b/Extras/COLLADA_DOM/include/dae/daeMemorySystem.h deleted file mode 100644 index 9a5aa60bd..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeMemorySystem.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_MEMORY_SYSTEM_H__ -#define __DAE_MEMORY_SYSTEM_H__ - -#include - -/** - * The @c daeMemorySystem class is a simple wrapper for memory operations. - * Every allocation passes a string pool name such that - * in the future different pools can be used based on allocation type. - * Currently the system is just a pass-through to system @c malloc. - */ -class daeMemorySystem -{ -public: - /** - * Provides a wrapper malloc with pool field. - * @param pool String name of the pool to use for this allocation. - * @param n Number of bytes to allocate. - * @return Returns the memory allocated if successful, or NULL if not. - */ - static DLLSPEC daeRawRef malloc(daeString pool, size_t n); - - /** - * Provides a wrapper free with pool argument. - * @param pool Pool the memory should be freed from. - * @param mem Memory to be freed. - */ - static DLLSPEC void free(daeString pool, daeRawRef mem); -}; - -// Shorthand for defining new and delete overrides for classes, bad use of macros! - -#define DAE_ALLOC \ - inline void* operator new(size_t n) { \ - return daeMemorySystem::malloc("meta",n); \ - } \ - inline void* operator new(size_t , size_t runtimeSize) { \ - return daeMemorySystem::malloc("meta",runtimeSize); \ - } \ - inline void operator delete(void* p) { \ - daeMemorySystem::free("meta",p); \ - } \ - inline void operator delete(void* p, size_t runtimeSize) { \ - (void)runtimeSize; \ - daeMemorySystem::free("meta",p); \ - } - - - -#endif // __DAE_MEMORY_H__ diff --git a/Extras/COLLADA_DOM/include/dae/daeMetaAny.h b/Extras/COLLADA_DOM/include/dae/daeMetaAny.h deleted file mode 100644 index 92e8ba2d4..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeMetaAny.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_META_ANY_H__ -#define __DAE_META_ANY_H__ - -#include - -/** - * The daeMetaAny class defines the behavior of an xs:any content model in the COLLADA Schema. - */ -class daeMetaAny : public daeMetaCMPolicy -{ -public: - /** - * Constructor. - * @param container The daeMetaElement that this policy object belongs to. - * @param parent The daeMetaCMPolicy parent of this policy object. - * @param odinal The ordinal value offset of this specific policy object. Used for maintaining the - * correct order of child elements. - * @param minO The minimum number of times this CMPolicy object must appear. This value comes from the COLLADA schema. - * @param maxO The maximum number of times this CMPolicy object may appear. This value comes from the COLLADA schema. - */ - daeMetaAny( daeMetaElement *container, daeMetaCMPolicy *parent = NULL, daeUInt ordinal = 0, daeInt minO = 1, daeInt maxO = 1 ); - ~daeMetaAny(); - - daeElement *placeElement( daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset = 0, daeElement* before = NULL, daeElement *after = NULL ); - daeBool removeElement(daeElement* parent, daeElement* child); - daeMetaElement *findChild( daeString elementName ); - void getChildren( daeElement* parent, daeElementRefArray &array ); -}; - -#endif - diff --git a/Extras/COLLADA_DOM/include/dae/daeMetaAttribute.h b/Extras/COLLADA_DOM/include/dae/daeMetaAttribute.h deleted file mode 100644 index c053f25a8..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeMetaAttribute.h +++ /dev/null @@ -1,287 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_META_ATTRIBUTE_H__ -#define __DAE_META_ATTRIBUTE_H__ - -#include -#include -#include -#include -#include - -class daeElement; -class daeMetaElement; -class daeMetaAttribute; -class daeMetaElementAttribute; - -/** - * The @c daeMetaAttribute class describes one attribute in a C++ COLLADA dom element. - * - * In the case of the C++ object model a conceptual attribute can be - * either a dom attribute, a dom element, or a dom value. - * Essentially, the meta attribute describes fields on the C++ class. - * However these attributes are stored separately in the containing meta - * @c daeMetaElement. - * @c daeMetaAttributes always exist inside of @c daeMetaElements. - * Each @c daeMetaAttribute has certain symantic operations it is capable of - * including @c set(), @c get(), @c print(), and @c resolve(). - * @c daeMetaAttributes use the @c daeAtomicType system as their underlying semantic - * implementation, but contain additional information about the packaging - * of the atomic types into the C++ dom classes such as offset, and - * array information. - */ -class daeMetaAttribute : public daeElement -{ -protected: - daeStringRef _name; - daeInt _offset; - daeAtomicType* _type; - daeMetaElement* _container; - daeString _default; - daeBool _isRequired; - -public: - /** - * Constructor - */ - daeMetaAttribute(); - - /** - * Destructor - */ - ~daeMetaAttribute() {} -public: - /** - * Determines if the schema indicates that this is a required attribute. - * @return Returns true if this is a required attribute, false if not. - */ - daeBool getIsRequired() {return _isRequired; } - /** - * Sets the value that indicates that this attribute is required by the schema. If set, the attribute - * will always be exported by the API regardless of its value. - * @param isRequired Indicates if the schema says this attribute is required, true if it is, false if not. - */ - void setIsRequired(daeBool isRequired) {_isRequired = isRequired;} - /** - * Sets the byte offset (from @c this) where this attribute's storage is - * found in its container element class. - * @param offset Integer byte offset from @c this pointer. - */ - void setOffset(daeInt offset) { _offset = offset; } - - /** - * Gets the byte offset (from @ this) where this attribute's storage is - * found in its container element class. - * @return Returns the integer byte offset from @c this pointer for this attribute. - */ - daeInt getOffset() { return _offset; } - - /** - * Sets the name of the attribute. - * @param name @c daeString that is directly stored as a pointer - * without being copied. - */ - void setName(daeString name) { _name = name; } - - /** - * Gets the name of this attribute. - * @return Returnsthe name of this attribute. - */ - daeStringRef getName() { return _name; } - - /** - * Sets the type of the attribute. - * @param type @c daeAtomicType to use for interacting with this - * attribute in a containing @c daeElement. - */ - void setType(daeAtomicType* type) { _type = type; } - - /** - * Gets the @c daeAtomicType used by this attribute. - * @return Returns the @c daeAtomicType that this attribute uses for its - * implementation. - */ - daeAtomicType* getType() { return _type; } - - /** - * Sets the default for this attribute via a string. The attribute's - * type is used to convert the string into a binary value - * inside of an element. - * @param defaultVal @c daeString representing the default value. - */ - void setDefault(daeString defaultVal) { _default = defaultVal; } - - /** - * Gets the default for this attribute via a string. The attribute's - * type is used to convert the string into a binary value - * inside of an element. - * @return Returns a @c daeString representing the default value. - */ - daeString getDefault() { return _default; } - - /** - * Sets the containing @c daeMetaElement for this attribute. - * @param container Element on which this @c daeMetaAttribute belongs. - */ - void setContainer(daeMetaElement* container) { _container = container; } - - /** - * Gets the containing @c daeMetaElement for this attribute. - * @return Returns the @c daeMetaElement to which this @c daeAttribute belongs. - */ - daeMetaElement* getContainer() { return _container; } - - /** - * Gets the number of particles associated with this attribute in instance e. - * @param e Containing element to run the operation on. - * @return Returns the number of particles associated with this attribute - * in instance e. - */ - virtual daeInt getCount(daeElement* e); - - /** - * Gets a particle from containing element e based on index. - * @param e Containing element from which to get the element. - * @param index Index of the particle to retrieve if indeed - * there is an array of elements rather than a singleton. - * @return Returns the associated particle out of parent element e, based on index, if necessary. - */ - virtual daeMemoryRef get(daeElement* e, daeInt index); - - /** - * Gets if this attribute is an array attribute. - * @return Returns true if this attribute is an array type. - */ - virtual daeBool isArrayAttribute() { return false; } - -public: - /** - * Resolves a reference (if there is one) in the attribute type; - * only useful for reference types. - * @param elem Containing element on which this attribute - * should be resolved. - */ - virtual void resolve(daeElementRef elem); - - /** - * Gets the number of bytes for this attribute. - * @return Returns the number of bytes in the C++ COLLADA dom element for this - * attribute. - */ - virtual daeInt getSize(); - - /** - * Gets the alignment in bytes on the class of this meta attribute type. - * @return Returns the alignment in bytes. - */ - virtual daeInt getAlignment(); - - /** - * Sets the value of this attribute on element by converting string s - * to a binary value and assigning it via the underlying @c daeAtomicType - * system. - * @param element Element on which to set this attribute. - * @param s String containing the value to be converted via the - * atomic type system. - */ - virtual void set(daeElement* element, daeString s); - - /** - * Copys the value of this attribute from fromElement into toElement. - * @param toElement Pointer to a @c daeElement to copy this attribute to. - * @param fromElement Pointer to a @c daeElement to copy this attribute from. - */ - virtual void copy(daeElement* toElement, daeElement* fromElement); - -public: - /** - * Gets the storage inside of e associated with - * this attribute. It is very useful for performing generic processing - * on elements and attributes from external tools regardless of element - * and attribute type. - * @param e Element from which to apply this attributes offset. - * @return Returns the storage associate with this attribute in e. - */ - inline daeChar* getWritableMemory(daeElement* e) { - return (daeChar*)e+_offset; } -}; - - -/** - * The @c daeMetaArrayAttribute class is simple a wrapper that implements - * an array of atomic types rather than a singleton. - * The corresponding storage is an array - * and the corresponding operations are implemented on the array - * data structure rather than on inlined storage in elements. - */ -class daeMetaArrayAttribute : public daeMetaAttribute -{ -public: - /** - * Defines the override version of this method from @c daeMetaAttribute. - * @param element Element on which to set this attribute. - * @param s String containing the value to be converted via the - * atomic type system. - */ - virtual void set(daeElement* element, daeString s); - /** - * Defines the override version of this method from @c daeMetaAttribute. - * @param toElement Pointer to a @c daeElement to copy this attribute to. - * @param fromElement Pointer to a @c daeElement to copy this attribute from. - */ - virtual void copy(daeElement* toElement, daeElement* fromElement); - /** - * Defines the override version of this method from @c daeMetaElement. - * @param e Containing element to run the operation on. - * @return Returns the number of particles associated with this attribute - * in instance e. - */ - virtual daeInt getCount(daeElement* e); - /** - * Defines the override version of this method from @c daeMetaElement. - * @param e Containing element from which to get the element. - * @param index Index of the particle to retrieve if indeed - * there is an array of elements rather than a singleton. - * @return Returns the associated particle out of parent element e, based on index, if necessary. - */ - virtual daeMemoryRef get(daeElement* e, daeInt index); - - /** - * Gets if this attribute is an array attribute. - * @return Returns true if this attribute is an array type. - */ - virtual daeBool isArrayAttribute() { return true; } - - /** - * Resolves a reference (if there is one) in the attribute type; - * only useful for reference types. - * @param elem Containing element on which this attribute - * should be resolved. - */ - virtual void resolve(daeElementRef elem); -}; - - -typedef daeSmartRef daeMetaAttributeRef; - -typedef daeTArray daeMetaAttributeRefArray; -typedef daeTArray daeMetaAttributePtrArray; - -#endif //__DAE_META_ATTRIBUTE_H__ - - - - - - diff --git a/Extras/COLLADA_DOM/include/dae/daeMetaCMPolicy.h b/Extras/COLLADA_DOM/include/dae/daeMetaCMPolicy.h deleted file mode 100644 index 83779fbce..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeMetaCMPolicy.h +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_META_CM_POLICY_H__ -#define __DAE_META_CM_POLICY_H__ - -#include -#include -//class daeElement; -class daeMetaElement; - -/** - * The daeMetaCMPolicy class is the base class for the content model policy classes which are used to - * describe the availability and ordering of an element's children. - */ -class daeMetaCMPolicy -{ -public: - /** - * Places an element into the parent element based on this content model policy object. - * @param parent The parent element for which the child element will be placed. - * @param child The new child element. - * @param ordinal A reference to a daeUInt which holds the ordinal return value for a placed child. Used - * to maintain proper ording of child elements. - * @param offset The offset to used when attempting to place this element. Affects comparison against - * minOccurs and maxOccurs. - * @param before The element that the child should appear before. Optional. - * @param after The element that the child should appear after. Optional. - * @return Returns The child element that was placed within this content model object or any of its - * children. NULL if placement failed. - */ - virtual daeElement *placeElement( daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset = 0, daeElement* before = NULL, daeElement *after = NULL ) = 0; - /** - * Removes an element from the parent based on this content model object. - * @param parent The parent element for which child you want to remove. - * @param child The child that will be removed from the parent. - * @return Returns true if the child was successfully removed from this content model object or any of - * its children. False otherwise. - */ - virtual daeBool removeElement(daeElement* parent, daeElement* child ) = 0; - /** - * Gets the daeMetaElement of an acceptable child of this content model object. - * @param elementName The name of the element whos metaElement information you are interested in. - * @return Returns a pointer to a daeMetaElement class that describes the element interested in. - * Returns NULL if the element is not valid in this content model. - */ - virtual daeMetaElement *findChild( daeString elementName ) = 0; - /** - * Populates an array with the children of parent based on this content model object. - * @param parent The parent element whos children you want. - * @param array The array where you the children will be appended to. - */ - virtual void getChildren( daeElement* parent, daeElementRefArray &array ) = 0; - - /** - * Adds a child to this content model object. - * @param p The child content model policy object. - */ - void appendChild( daeMetaCMPolicy *p ) { _children.append( p ); } - - /** - * Gets the parent of this content model policy object. - * @return Returns a pointer to the parent node. - */ - daeMetaCMPolicy *getParent() { return _parent; } - - /** - * Sets the maximum ordinal value of this policy objects children. Used to keep proper ording for - * cm objects that may appear multiple times. - * @param ord The maximum ordinal value for this content model object. - */ - void setMaxOrdinal( daeUInt ord ) { _maxOrdinal = ord; } - -protected: - /** - * Constructor. - * @param container The daeMetaElement that this policy object belongs to. - * @param parent The daeMetaCMPolicy parent of this policy object. - * @param odinal The ordinal value offset of this specific policy object. Used for maintaining the - * correct order of child elements. - * @param minO The minimum number of times this CMPolicy object must appear. This value comes from the COLLADA schema. - * @param maxO The maximum number of times this CMPolicy object may appear. This value comes from the COLLADA schema. - */ - daeMetaCMPolicy( daeMetaElement *container ,daeMetaCMPolicy *parent, daeUInt ordinal, - daeInt minO, daeInt maxO ) : _container( container ), _parent( parent ), _minOccurs( minO ), - _maxOccurs( maxO ), _maxOrdinal( 0 ), _ordinalOffset( ordinal ) {} - - /** - * Destructor. - */ -public: // sthomas - virtual ~daeMetaCMPolicy(); -protected: // sthomas - - daeMetaElement * _container; - daeMetaCMPolicy * _parent; - daeTArray _children; - - /** Minimum number of times this meta element can occur. */ - daeInt _minOccurs; - /** Maximum number of times this meta element can occur. -1 for unbounded */ - daeInt _maxOccurs; - - daeUInt _maxOrdinal; - daeUInt _ordinalOffset; - -}; - -#endif - diff --git a/Extras/COLLADA_DOM/include/dae/daeMetaChoice.h b/Extras/COLLADA_DOM/include/dae/daeMetaChoice.h deleted file mode 100644 index cd640ac70..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeMetaChoice.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_META_CHOICE_H__ -#define __DAE_META_CHOICE_H__ - -#include - -/** - * The daeMetaChoice class defines the behavior of an xs:choice content model in the COLLADA Schema. - */ -class daeMetaChoice : public daeMetaCMPolicy -{ -public: - /** - * Constructor. - * @param container The daeMetaElement that this policy object belongs to. - * @param parent The daeMetaCMPolicy parent of this policy object. - * @param odinal The ordinal value offset of this specific policy object. Used for maintaining the - * correct order of child elements. - * @param minO The minimum number of times this CMPolicy object must appear. This value comes from the COLLADA schema. - * @param maxO The maximum number of times this CMPolicy object may appear. This value comes from the COLLADA schema. - */ - daeMetaChoice( daeMetaElement *container, daeMetaCMPolicy *parent = NULL, daeUInt ordinal = 0, daeInt minO = 1, daeInt maxO = 1 ); - ~daeMetaChoice(); - - daeElement *placeElement( daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset = 0, daeElement* before = NULL, daeElement *after = NULL ); - daeBool removeElement(daeElement* parent, daeElement* child); - daeMetaElement *findChild( daeString elementName ); - void getChildren( daeElement* parent, daeElementRefArray &array ); -}; - -#endif - diff --git a/Extras/COLLADA_DOM/include/dae/daeMetaElement.h b/Extras/COLLADA_DOM/include/dae/daeMetaElement.h deleted file mode 100644 index ded428be4..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeMetaElement.h +++ /dev/null @@ -1,395 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_META_ELEMENT_H__ -#define __DAE_META_ELEMENT_H__ - -#include -#include -#include -#include - -class daeMetaCMPolicy; -class daeMetaElementArrayAttribute; - -typedef daeElementRef (*daeElementConstructFunctionPtr)(daeInt bytes); - -/** - * Each instance of the @c daeMetaElement class describes a C++ COLLADA dom - * element type. - * @par - * The meta information in @c daeMetaElement is a combination of the information - * required to create and maintain C++ object instances and - * the information necessary to parse and construct a hierarchy of COLLADA - * elements. - * @par - * @c daeMetaElement objects also act as factories for C++ COLLADA dom classes where - * each @c daeElement is capable of creating an instance of the class it describes. - * Further, each @c daeMetaElement contains references to other @c daeMetaElements - * for potential XML children elements. This enables this system to easily - * create @c daeElements of the appropriate type while navigating through XML - * recursive parse. - * @par - * See @c daeElement for information about the functionality that every @c daeElement implements. - */ -class daeMetaElement : public daeElement -{ -protected: - daeStringRef _name; - - daeElementConstructFunctionPtr _createFunc; - daeBool _needsResolve; - daeInt _elementSize; - - daeMetaAttributeRefArray _metaAttributes; - daeMetaAttributeRef _metaValue; - daeMetaElementArrayAttribute* _metaContents; - daeMetaArrayAttribute* _metaContentsOrder; - - daeMetaElement * _metaIntegration; - daeMetaAttributeRef _metaID; - - daeMetaAttributePtrArray _resolvers; - - daeBool _isTrackableForQueries; - daeBool _usesStringContents; - - daeBool _isTransparent; - daeBool _isAbstract; - daeBool _allowsAny; - daeBool _innerClass; - - static daeTArray > &_metas(); - static daeTArray< daeMetaElement** > &_classMetaPointers(); - - daeMetaCMPolicy * _contentModel; - -public: - /** - * Constructor - */ - DLLSPEC daeMetaElement(); - - /** - * Destructor - */ - DLLSPEC ~daeMetaElement(); - -public: // public accessors - - /** - * Determines if elements of this type is an inner class. - * @return Returns true if this element type is an inner class. - */ - daeBool getIsInnerClass() { return _innerClass; } - /** - * Sets if elements of this type are inner classes. - * @param abstract True if this type is an inner class. - */ - void setIsInnerClass( daeBool ic ) { _innerClass = ic; } - /** - * Determines if elements of this type can be placed in the object model. - * @return Returns true if this element type is abstract, false otherwise. - */ - daeBool getIsAbstract() { return _isAbstract; } - /** - * Determines if elements of this type should have an element tag printed when saving. - * @return Returns true if this element type should not have a tag, false otherwise. - */ - daeBool getIsTransparent() { return _isTransparent; } - /** - * Sets if elements of this type are abstract. - * @param abstract True if this type is abstract. - */ - void setIsAbstract( daeBool abstract ) { _isAbstract = abstract; } - /** - * Sets whether or not elements of this type should have an element tag printed when saving. - * @param transparent True if this type is transparent. - */ - void setIsTransparent( daeBool transparent ) { _isTransparent = transparent; } - - /** - * Determines if elements of this type should be tracked - * for daeDatabase queries. - * @return Returns true if this element type should be tracked - */ - daeBool getIsTrackableForQueries() { return _isTrackableForQueries; } - - /** - * Gets whether elements of this type have "string" based - * contents; this is necessary to change the parsing mode for strings. - * @return Returns true if this element type has string contents, false if not. - */ - daeBool getUsesStringContents() { return _usesStringContents; } - - /** - * Sets whether elements of this type should be tracked - * for @c daeDatabase queries. - * @param trackable Indicates whether this element should be tracked. - * A value of true indicates this element type should be tracked and be available for - * database queries. - */ - void setIsTrackableForQueries(daeBool trackable) { - _isTrackableForQueries = trackable; } - - /** - * Determines if elements of this type allow for any element as a child. - * @return Returns true if this element can have any child element, false otherwise. - */ - daeBool getAllowsAny() { return _allowsAny; } - /** - * Sets if elements of this type allow for any element as a child. - * @param allows True if this element allows for any child element, false otherwise. - */ - void setAllowsAny( daeBool allows ) { _allowsAny = allows; } - - /** - * Gets the @c daeMetaElement for the corresponding integration object - * associated with this COLLADA element (if any). - * @return Returns the @c daeMetaElement for the integration object; this can - * be used as a factory. - */ - daeMetaElement* getMetaIntegration() { return _metaIntegration; } - - /** - * Sets the @c daeMetaElement for the corresponding integration object - * associated with this COLLADA element (if any). - * @param mI @c daeMetaElement for the integration object; this is - * used as a factory to automatically create this integration object - * whenever an instance of this element is created. - */ - void setMetaIntegration(daeMetaElement* mI) { _metaIntegration = mI; } - - /** - * Gets the @c daeMetaAttribute for the non-element contents of a @c daeElement. - * This corresponds to a @c daeMetaFloatAttribute, @c daeMetaFloatArrayAttribute, - * et cetera. - * @return Returns the @c daeMetaAttribute pointer for the non-element contents of - * this element type. - */ - daeMetaAttribute* getValueAttribute() { return _metaValue; } - - /** - * Gets the @c daeMetaAttribute for the ID attribute of a @c daeElement. - * @return Returns the ID @c daeMetaAttribute, or NULL if the element type - * does not have an ID attribute. - */ - daeMetaAttribute* getIDAttribute() { return _metaID; } - - /** - * Gets the name of this element type. - * @return Returns the name of this element type. - */ - daeStringRef getName() { return _name; } - - /** - * Sets the name of this element type. - * @param s String name to set. - */ - void setName(daeString s) { _name = s; } - - /** - * Gets the array of attributes that represent URI fields that need - * to be "resolved" after the database is completely read in. - * @return Returns the array of @c daeMetaAttribute*'s with all of the relevant - * attributes. - */ - daeMetaAttributePtrArray& getMetaResolvers() { - return _resolvers; } - - /** - * Gets the array of all known attributes on this element type. - * This includes all meta attributes except those describing child - * elements. It does include the value element. - * @return Returns the array of @c daeMetaAttributeRefs. - */ - daeMetaAttributeRefArray& getMetaAttributes() { - return _metaAttributes; } - - /** - * Gets the attribute which has a name as provided by the s parameter. - * @param s String containing the desired attribute's name. - * @return Returns the corresponding @c daeMetaAttribute, or NULL if none found. - */ - DLLSPEC daeMetaAttribute* getMetaAttribute(daeString s); - - /** - * Sets the size in bytes of each instance of this element type. - * Used for factory element creation. - * @param size Number of bytes for each C++ element instance. - */ - void setElementSize(daeInt size) {_elementSize = size;} - - /** - * Gets the size in bytes of each instance of this element type. - * Used for factory element creation. - * @return Returns the number of bytes for each C++ element instance. - */ - daeInt getElementSize() { return _elementSize;} - -public: - /** - * Registers with the reflective object system that the dom class described by this @c daeMetaElement - * contains a _contents array. This method is @em only for @c daeMetaElement contstuction, and - * should only be called by the system as it sets up the Reflective Object System. - * @param offset Byte offset for the contents field in the C++ element class. - */ - DLLSPEC void addContents(daeInt offset); - /** - * Registers with the reflective object system the array that stores the _contents ordering. This method is @em - * only for @c daeMetaElement contstuction, and should only be called by the system as it sets up the Reflective - * Object System. - * @param offset Byte offset for the contents order array in the C++ element class. - */ - DLLSPEC void addContentsOrder( daeInt offset ); - - /** - * Gets the attribute associated with the contents meta information. - * @see @c addContents() - * @return Returns the @c daeMetaElementArrayAttribute. - */ - daeMetaElementArrayAttribute* getContents() { return _metaContents; } - - /** - * Appends a @c daeMetaAttribute that represents a field corresponding to an - * XML attribute to the C++ version of this element type. - * @param attr Attribute to append to this element types list - * of potential attributes. - */ - DLLSPEC void appendAttribute(daeMetaAttribute* attr); - - /** - * Registers the function that can construct a C++ instance of this class and the - * pointer to the classes static meta. Necessary for the factory system such that C++ - * can still call @c new and the @c vptr will still be initialized even when - * constructed via the factory system. - * @param func Pointer to a function that does object construction. - * @param metaPtr Pointer to the class static meta pointer. - */ - void registerClass(daeElementConstructFunctionPtr func, daeMetaElement** metaPtr = NULL ) { - _createFunc = func; if ( metaPtr != NULL ) _classMetaPointers().append( metaPtr ); } - - /** - * Determines if this element contains attributes - * of type @c daeURI which need to be resolved after they are read - * or setup. - * @return Returns true if this element type requires resolving, false if not. - */ - daeBool needsResolve() { return _needsResolve; } - - /** - * Validates this class to be used by the runtime c++ object model - * including factory creation. - */ - DLLSPEC void validate(); - - /** - * Places a child element into the parent element where the - * calling object is the @c daeMetaElement for the parent element. - * @param parent Element to act as the container. - * @param child Child element to place in the parent. - * @return Returns true if the operation was successful, false otherwise. - */ - DLLSPEC daeBool place(daeElement *parent, daeElement *child, daeUInt *ordinal = NULL); - /** - * Places a child element into the parent element at a specific location - * where the calling object is the @c daeMetaElement for the parent element. - * @param index The location in the contents array to insert. - * @param parent Element to act as the container. - * @param child Child element to place in the parent. - * @return Returns true if the operation was successful, false otherwise. - * @note This should only be called on elements that have a _contents array. Elements without - * a _contents array will be placed normally. - */ - DLLSPEC daeBool placeAt( daeInt index, daeElement *parent, daeElement *child ); - /** - * Places a child element into the parent element at a specific location which is right - * before the marker element. - * @param marker The element location in the contents array to insert before. - * @param parent Element to act as the container. - * @param child Child element to place in the parent. - * @return Returns true if the operation was successful, false otherwise. - */ - DLLSPEC daeBool placeBefore( daeElement* marker, daeElement *parent, daeElement *child, daeUInt *ordinal = NULL ); - /** - * Places a child element into the parent element at a specific location which is right - * after the marker element. - * @param marker The element location in the contents array to insert after. - * @param parent Element to act as the container. - * @param child Child element to place in the parent. - * @return Returns true if the operation was successful, false otherwise. - */ - DLLSPEC daeBool placeAfter( daeElement* marker, daeElement *parent, daeElement *child, daeUInt *ordinal = NULL ); - - /** - * Removes a child element from its parent element. - * @param parent Element That is the parent. - * @param child Child element to remove. - * @return Returns true if the operation was successful, false otherwise. - */ - DLLSPEC daeBool remove( daeElement *parent, daeElement *child ); - /** - * Gets all of the children from an element of this type. - * @param parent The element that you want to get the children from. - * @param array The return value. An elementref array to append this element's children to. - */ - DLLSPEC void getChildren( daeElement* parent, daeElementRefArray &array ); - - /** - * Invokes the factory element creation routine set by @c registerConstructor() - * to return a C++ COLLADA Object Model instance of this element type. - * @return Returns a created @c daeElement of appropriate type via the - * object creation function and the daeElement::setup() function. - */ - DLLSPEC daeElementRef create(); - - /** - * Looks through the list of potential child elements - * for this element type finding the corresponding element type; if a corresponding element type - * is found, use that type as a factory and return an instance of that - * child type. Typically @c place() is called after @c create(childelementname) - * @param childElementTypeName Type name to create. - * @return Returns the created element if the type was found as a potential child element. - */ - DLLSPEC daeElementRef create(daeString childElementTypeName); - - /** - * Gets the root of the content model policy tree. - * @return Returns the root element of the tree of content model policy elements. - */ - daeMetaCMPolicy *getCMRoot() { return _contentModel; } - /** - * Sets the root of the content model policy tree. - * @param cm The root element of the tree of content model policy elements. - */ - DLLSPEC void setCMRoot( daeMetaCMPolicy *cm ); - -public: - - /** - * Releases all of the meta information contained in @c daeMetaElements. - */ - static DLLSPEC void releaseMetas(); - - static const daeTArray > &getAllMetas() { return _metas(); } -}; - -typedef daeSmartRef daeMetaElementRef; -typedef daeTArray daeMetaElementRefArray; - -#endif //__DAE_META_ELEMENT_H__ - - - - - diff --git a/Extras/COLLADA_DOM/include/dae/daeMetaElementAttribute.h b/Extras/COLLADA_DOM/include/dae/daeMetaElementAttribute.h deleted file mode 100644 index 3ebdc7aec..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeMetaElementAttribute.h +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_META_ELEMENT_ATTRIBUTE_H__ -#define __DAE_META_ELEMENT_ATTRIBUTE_H__ - -#include -#include -#include - -class daeMetaElement; -class daeElement; -class daeDocument; - -/** -* The @c daeMetaElementAttribute class represents a content model object that is an element. -*/ -class daeMetaElementAttribute : public daeMetaAttribute, public daeMetaCMPolicy -{ -public: - /** The metaElement that describes the element type of this attribute */ - daeMetaElement* _elementType; - -public: - /** - * Constructor. - * @param container The daeMetaElement that this policy object belongs to. - * @param parent The daeMetaCMPolicy parent of this policy object. - * @param odinal The ordinal value offset of this specific policy object. Used for maintaining the - * correct order of child elements. - * @param minO The minimum number of times this CMPolicy object must appear. This value comes from the COLLADA schema. - * @param maxO The maximum number of times this CMPolicy object may appear. This value comes from the COLLADA schema. - */ - daeMetaElementAttribute( daeMetaElement *container, daeMetaCMPolicy *parent = NULL, daeUInt ordinal = 0, daeInt minO = 1, daeInt maxO = 1); - /** - * Destructor - */ - virtual ~daeMetaElementAttribute(); - -public: - - virtual daeElement *placeElement(daeElement* parent, daeElement* child, daeUInt &ordinal, daeInt offset = 0, daeElement* before = NULL, daeElement *after = NULL); - virtual daeBool removeElement(daeElement* parent, daeElement* child); - - daeMetaElement *findChild( daeString elementName ); - - virtual void getChildren( daeElement* parent, daeElementRefArray &array ); - -public: - /** - * Sets the element type for the element that this attribute points to. - * @param elementType @c daeMetaElement representing the type. - */ - void setElementType(daeMetaElement *elementType) { - _elementType = elementType; } - - /** - * Gets the element type for the element that this attribute points to. - * @return Returns the @c daeMetaElement representing the type. - */ - daeMetaElement* getElementType() { return _elementType; } - - /** - * Sets the database document associated with this element. - * @param parent The daeElement to set the document. - * @param c The @c daeDocument to associate with this element. - */ - virtual void setDocument(daeElement *parent, daeDocument* c ); - inline void setCollection(daeElement *parent, daeDocument* c ) { - setDocument( parent, c ); - } - - /** - * Gets the number of elements associated with this attribute in instance e. - * @param e Containing element to run the operation on. - * @return Returns the number of elements associated with this attribute - * in instance e. - */ - virtual daeInt getCount(daeElement* e); - - /** - * Gets an element from containing element e based on index. - * @param e Containing element from which to get the element. - * @param index Index of the element to retrieve if indeed - * there is an array of elements rather than a singleton. - * @return Returns the associated element out of parent element e, based on index, if necessary. - */ - virtual daeMemoryRef get(daeElement* e, daeInt index); - - /** - * Defines the override version of base method. - * @param element Element on which to set this attribute. - * @param s String containing the value to be converted via the - * atomic type system. - */ - virtual void set(daeElement* element, daeString s); - /** - * Defines the override version of base method. - * @param toElement Pointer to a @c daeElement to copy this attribute to. - * @param fromElement Pointer to a @c daeElement to copy this attribute from. - */ - virtual void copy(daeElement* toElement, daeElement* fromElement); - - /** - * Gets if this attribute is an array attribute. - * @return Returns true if this attribute is an array type. - */ - virtual daeBool isArrayAttribute() { return false; } -}; -typedef daeSmartRef daeMetaElementAttributeRef; -typedef daeTArray daeMetaElementAttributeArray; - - -/** - * The @c daeMetaElementArrayAttribute class is similar to daeMetaElementAttribute - * except that this meta attribute describes an array of elements rather than a singleton. - */ -class daeMetaElementArrayAttribute : public daeMetaElementAttribute -{ -public: - /** - * Constructor. - * @param container The daeMetaElement that this policy object belongs to. - * @param parent The daeMetaCMPolicy parent of this policy object. - * @param odinal The ordinal value offset of this specific policy object. Used for maintaining the - * correct order of child elements. - * @param minO The minimum number of times this CMPolicy object must appear. This value comes from the COLLADA schema. - * @param maxO The maximum number of times this CMPolicy object may appear. This value comes from the COLLADA schema. - */ - daeMetaElementArrayAttribute(daeMetaElement *container, daeMetaCMPolicy *parent = NULL, daeUInt ordinal = 0, daeInt minO = 1, daeInt maxO = 1); - ~daeMetaElementArrayAttribute(); -public: - virtual daeElement *placeElement(daeElement* parent, daeElement* child, daeUInt &ordinal, daeInt offset = 0, daeElement* before = NULL, daeElement *after = NULL); - virtual daeBool removeElement(daeElement* parent, daeElement* child); - - void getChildren( daeElement* parent, daeElementRefArray &array ); - - /** - * Sets the database document associated with this element. - * @param c The @c daeDocument to associate with this element. - */ - virtual void setDocument(daeElement *parent, daeDocument* c ); - inline void setCollection(daeElement *parent, daeDocument* c ) { - setDocument( parent, c ); - } - - /** - * Defines the override version of this method from @c daeMetaElement. - * @param e Containing element to run the operation on. - * @return Returns the number of particles associated with this attribute - * in instance e. - */ - virtual daeInt getCount(daeElement* e); - /** - * Defines the override version of this method from @c daeMetaElement. - * @param e Containing element from which to get the element. - * @param index Index of the particle to retrieve if indeed - * there is an array of elements rather than a singleton. - * @return Returns the associated particle out of parent element e, based on index, if necessary. - */ - virtual daeMemoryRef get(daeElement* e, daeInt index); - /** - * Defines the override version of this method from @c daeMetaElement. - * @param toElement Pointer to a @c daeElement to copy this attribute to. - * @param fromElement Pointer to a @c daeElement to copy this attribute from. - */ - virtual void copy(daeElement* toElement, daeElement* fromElement); - - /** - * Gets if this attribute is an array attribute. - * @return Returns true if this attribute is an array type. - */ - virtual daeBool isArrayAttribute() { return true; } -}; -typedef daeSmartRef daeMetaElementArrayAttributeRef; -typedef daeTArray daeMetaElementArrayAttributeArray; - -#endif - diff --git a/Extras/COLLADA_DOM/include/dae/daeMetaGroup.h b/Extras/COLLADA_DOM/include/dae/daeMetaGroup.h deleted file mode 100644 index f03d12a66..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeMetaGroup.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_META_GROUP_H__ -#define __DAE_META_GROUP_H__ - -#include - -class daeMetaElementAttribute; - -/** - * The daeMetaGroup class defines the behavior of an xs:group ref content model from the COLLADA Schema. - */ -class daeMetaGroup : public daeMetaCMPolicy -{ -public: - /** - * Constructor. - * @param econ The daeMetaElementAttribute that represents the group element in the parent. - * @param container The daeMetaElement that this policy object belongs to. - * @param parent The daeMetaCMPolicy parent of this policy object. - * @param odinal The ordinal value offset of this specific policy object. Used for maintaining the - * correct order of child elements. - * @param minO The minimum number of times this CMPolicy object must appear. This value comes from the COLLADA schema. - * @param maxO The maximum number of times this CMPolicy object may appear. This value comes from the COLLADA schema. - */ - daeMetaGroup( daeMetaElementAttribute *econ, daeMetaElement *container, daeMetaCMPolicy *parent = NULL, - daeUInt ordinal = 0, daeInt minO = 1, daeInt maxO = 1 ); - - /** - * Destructor. - */ - ~daeMetaGroup(); - - daeElement *placeElement( daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset = 0, daeElement* before = NULL, daeElement *after = NULL ); - daeBool removeElement(daeElement* parent, daeElement* child); - daeMetaElement *findChild( daeString elementName ); - void getChildren( daeElement* parent, daeElementRefArray &array ); - -protected: - daeMetaElementAttribute *_elementContainer; -}; - -#endif - diff --git a/Extras/COLLADA_DOM/include/dae/daeMetaSequence.h b/Extras/COLLADA_DOM/include/dae/daeMetaSequence.h deleted file mode 100644 index b2028b47a..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeMetaSequence.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_META_SEQUENCE_H__ -#define __DAE_META_SEQUENCE_H__ - -#include - -/** - * The daeMetaSequence class defines the behavior of an xs:sequence content model in the COLLADA Schema. - */ -class daeMetaSequence : public daeMetaCMPolicy -{ -public: - /** - * Constructor. - * @param container The daeMetaElement that this policy object belongs to. - * @param parent The daeMetaCMPolicy parent of this policy object. - * @param odinal The ordinal value offset of this specific policy object. Used for maintaining the - * correct order of child elements. - * @param minO The minimum number of times this CMPolicy object must appear. This value comes from the COLLADA schema. - * @param maxO The maximum number of times this CMPolicy object may appear. This value comes from the COLLADA schema. - */ - daeMetaSequence( daeMetaElement *container, daeMetaCMPolicy *parent = NULL, daeUInt ordinal = 0, daeInt minO = 1, daeInt maxO = 1 ); - - /** - * Destructor. - */ - ~daeMetaSequence(); - - daeElement *placeElement( daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset = 0, daeElement* before = NULL, daeElement *after = NULL ); - daeBool removeElement(daeElement* parent, daeElement* child); - daeMetaElement *findChild( daeString elementName ); - void getChildren( daeElement* parent, daeElementRefArray &array ); - -}; - - -#endif - - diff --git a/Extras/COLLADA_DOM/include/dae/daeSIDResolver.h b/Extras/COLLADA_DOM/include/dae/daeSIDResolver.h deleted file mode 100644 index 88b8e6541..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeSIDResolver.h +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_SIDRESOLVER_H__ -#define __DAE_SIDRESOLVER_H__ - -#include -#include - -/** - * The daeSIDResolver class is designed to resolve sid references within a COLLADA document. - * The rules for sid resolution are set forth by the Addressing Syntax section in Chapter 3 of the - * COLLADA specification which can be found at https://www.khronos.org/collada . - * This resolver always attempts to resolve to the daeElement which is referenced. If the element contains - * a daeDoubleArray (domFloatArray) value, the resolver will set the pointer to that array. The - * resolver will also do this if the sid target points to a element which has a as - * a child. If the sid target specifies a value, i.e. blah.X or blah(6), the resolver will attempt to - * get a pointer to that specific value. The resolver only attempts to resolve to that level for values which - * are defined in the COMMON profile glossary of the COLLADA specification, or values reference with the (#) - * syntax. You can check the return value from getState() to see which level of resolution is possible. - */ -class daeSIDResolver -{ -public: - /** - * An enum describing the status of the SID resolution process. - */ - DLLSPEC enum ResolveState{ - /** No target specified */ - target_empty, - /** target specified but not resolved */ - target_loaded, - /** Resolution failed because target was not found */ - sid_failed_not_found, - /** Resolution successful to the Element level */ - sid_success_element, - /** Resolution successful to the Double Array level */ - sid_success_array, - /** Resolution successful to the Double level */ - sid_success_double - }; - - /** - * Constructor. - * @param container The element which contains the target that you want to resolve. - * @param target The target string which needs to be resolved. - * @param platform The platform name of the technique to use. A NULL value indicates the common platform. - */ - DLLSPEC daeSIDResolver( daeElement *container, daeString target, daeString platform = NULL ); - - /** - * Destructor. - */ - DLLSPEC ~daeSIDResolver(); - - /** - * Gets the target string. - * @return Returns the target string of this SID resolver. - */ - daeString getTarget() const { return target; } - /** - * Sets the target string. - * @param t The new target string for this resolver. - */ - DLLSPEC void setTarget( daeString t ); - - /** - * Gets the name of the profile to use when resolving. - * @return Returns the name of the profile or NULL for the common profile. - */ - daeString getProfile() const { return profile; } - /** - * Sets the profile to use when resolving. - * @param p The profile name of the technique to use. A NULL value indicates the common profile. - */ - DLLSPEC void setProfile( daeString p ); - - /** - * Gets a pointer to the @c daeElement that contains the target to resolve. - * @return Returns the pointer to the containing daeElmement. - */ - daeElement* getContainer() const { return container; } - /** - * Sets the pointer to the @c daeElement that contains the target to resolve. - * @param element Pointer to the containing @c daeElmement. - */ - DLLSPEC void setContainer(daeElement* element); - - /** - * Gets the resolution state. - * @return Returns the current state of SID resolution. - */ - ResolveState getState() const { return state; } - - /** - * Gets the element that this SID resolves to. - * @return Returns the element that the URI resolves to. - */ - DLLSPEC daeElementRef getElement(); - - /** - * Gets the value array of the element that the SID resolves to. - * @return Returns a pointer to the value array that the SID resolves to - * @note The daeSIDResolver can only resolve to this level for daeDoubleArray values. - */ - DLLSPEC daeDoubleArray *getDoubleArray(); - - /** - * Gets a pointer to the particle this target resolved to. - * @return Returns a pointer to a double value which is the fully resolved target. - * @note The daeSIDResolver can only resolve to this level for domDouble values and only if the - * final symbolic name is from the COMMON profile or a cardinal value is specified. - * @note The daeSIDResolver assumes the value is a 4x4 matrix if there are 2 cardinal values specified. - */ - DLLSPEC daeDouble *getDouble(); - -private: - - void resolve(); - /** - * Recursive function which will find an element with specified sid in the subtree of el. - */ - daeElement *findSID( daeElement *el, daeString sid ); - -private: - - daeString target; - daeString profile; - daeElement *container; - ResolveState state; - - daeElement *element; - daeDoubleArray *doubleArray; - daeDouble *doublePtr; - -}; - -#endif - diff --git a/Extras/COLLADA_DOM/include/dae/daeSmartRef.h b/Extras/COLLADA_DOM/include/dae/daeSmartRef.h deleted file mode 100644 index 7f6cdf5dc..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeSmartRef.h +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_SMARTREF_H__ -#define __DAE_SMARTREF_H__ - -#include -#include - -template class daeElementWrapper {}; - -/** - * The @c daeSmartRef template class automates reference counting for - * objects derived from @c daeElement. - */ -template class daeSmartRef -{ -public: - /** - * Constructor - */ - inline daeSmartRef() : _ptr((T*) NULL){} - - /** - * Destructor - */ - inline ~daeSmartRef() { - daeElement::release((daeElement*)_ptr); } - - /** - * Constructor that will convert from one template to the other. - * unimplemented. - * @param - */ - template - inline daeSmartRef(const daeElementWrapper&) : _ptr(U::instance()) {} - - /** - * Copy Constructor that will convert from one template to the other. - * @param smartRef a daeSmartRef to the object to copy from. - */ - template - inline daeSmartRef(const daeSmartRef& smartRef) : _ptr(smartRef.cast()){ - daeElement::ref((const daeElement*)_ptr); } - - /** - * Function that returns a pointer to object being reference counted. - * @return the object being reference counted. - */ - inline T* cast() const { return _ptr; } - - /** - * Copy Constructor. - * @param smartRef a daeSmartRef of the same template type to copy from - */ - inline daeSmartRef(const daeSmartRef& smartRef) : _ptr(smartRef._ptr){ - daeElement::ref((const daeElement*)_ptr); } - - /** - * Constructor - * @param ptr a pointer to an object of the same template type. - */ - inline daeSmartRef(T* ptr) : _ptr(ptr) { - daeElement::ref((const daeElement*)_ptr); } - - /** - * Overloaded assignment operator which will convert between template types. - * @return Returns a reference to this object. - * @note Unimplemented - */ - template - inline const daeSmartRef& operator=(const daeElementWrapper&){ - daeElement::release((const daeElement*)_ptr); - _ptr = U::instance(); - return *this; } - - /** - * Overloaded assignment operator which will convert between template types. - * @param smartRef a daeSmartRef to the object to copy from. - * @return Returns a reference to this object. - */ - template - inline const daeSmartRef& operator=(const daeSmartRef& smartRef) { - T* ptr = smartRef.cast(); - daeElement::ref((const daeElement*)ptr); - daeElement::release((const daeElement*)_ptr); - _ptr = ptr; - return *this; } - - /** - * Overloaded assignment operator. - * @param other a daeSmartRef to the object to copy from. Must be of the same template type. - * @return Returns a reference to this object. - */ - inline const daeSmartRef& operator=(const daeSmartRef& other) { - T* ptr = other._ptr; - daeElement::ref((const daeElement*)ptr); - daeElement::release((const daeElement *)_ptr); - _ptr = ptr; - return *this; } - - /** - * Overloaded assignment operator. - * @param ptr a pointer to the object to copy from. Must be of the same template type. - * @return Returns a reference to this object. - */ - inline const daeSmartRef& operator=(T* ptr) { - daeElement::ref((const daeElement*)ptr); - daeElement::release((const daeElement*)_ptr); - _ptr = ptr; - return *this; } - - /** - * Overloaded member selection operator. - * @return a pointer of the template class to the object. - */ - inline T* operator->() const { - assert (_ptr != (T*)NULL); return _ptr; } - - /** - * Overloaded cast operator. - * @return a pointer of the template class to the object. - */ - inline operator T*() const { - return _ptr; } - - /** - * Static cast function. - * @param smartRef a smartRef to cast from - * @return a pointer to an object of this template class - */ - template - inline static T* staticCast(const daeSmartRef& smartRef) { - return static_cast(smartRef.cast()); } - -private: - /* The pointer to the element which is being reference counted */ - T* _ptr; -}; - -#endif // __DAE_SMARTREF_H__ - - - - - diff --git a/Extras/COLLADA_DOM/include/dae/daeStringRef.h b/Extras/COLLADA_DOM/include/dae/daeStringRef.h deleted file mode 100644 index 3cc5bce39..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeStringRef.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_STRING_REF_H__ -#define __DAE_STRING_REF_H__ - -#include -#include - -/** - *Defines the @c daeStringRef class. - */ -class daeStringRef -{ -public: - /** - * Macro that defines new and delete overrides for this class - */ - DAE_ALLOC; -private: - daeString _string; - static daeStringTable &_stringTable(); -public: - - /** - * Destructor - */ - inline ~daeStringRef() { _string = NULL; } - - /** - * Constructor - */ - inline daeStringRef() { _string = NULL; } - - /** - * Constructor that copies from another @c daeStringRef. - * @param other Reference to copy from. - */ - inline daeStringRef(const daeStringRef& other) { - _string = other._string; } - - /** - * Constructor that creates from a const char *. - * @param string External string to create from. - */ - DLLSPEC daeStringRef(daeString string); - - /** - * Assignment operator. - * @param other The daeStringRef to copy. - * @return A reference to this object. - */ - inline const daeStringRef& operator= (const daeStringRef& other) { - _string = other._string; - return *this; - } - - /** - * Sets a string from an external const char *. - * @param string The daeString to copy. - * @return A reference to this object. - */ - DLLSPEC const daeStringRef& set(daeString string); - - /** - * Assignment operator from an external const char *. - * @param string The daeString to copy. - * @return A reference to this object. - */ - DLLSPEC const daeStringRef& operator= (daeString string); - - /** - * Cast operator that returns a const char *. - */ - inline operator daeString() const { return _string; } - - /** - * Comparison operator, the comparison is done via pointers as both - * strings will have same pointer if they are the same address - * @param other The daeStringRef to compare - * @return True if strings are equal. False otherwise. - */ - inline bool operator==(const daeStringRef& other) const{ - //return (other._string == _string); } - return (!strcmp(other._string, _string)); } - -//Contributed by Nus - Wed, 08 Nov 2006 - /** - * Release string table... - */ - static void releaseStringTable(void); -//-------------------- -}; - -typedef daeTArray daeStringRefArray; -typedef daeTArray daeStringRefArrayArray; - -#endif //__DAE_STRING_REF_H__ diff --git a/Extras/COLLADA_DOM/include/dae/daeStringTable.h b/Extras/COLLADA_DOM/include/dae/daeStringTable.h deleted file mode 100644 index c8abc6693..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeStringTable.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_STRING_TABLE_H__ -#define __DAE_STRING_TABLE_H__ -#include -#include - -/** - * The @c daeStringTable is a simple string table class to hold a float list of strings - * without a lot of allocations. - */ -class daeStringTable -{ -public: // allocate/construct/destruct/deallocate - /** - * Macro that defines new and delete overrides for this class - */ - DAE_ALLOC; - /** - * Constructor which specifies fixed buffer size. - * @param stringBufferSize The size of the buffer to create for string allocation. - */ - DLLSPEC daeStringTable(int stringBufferSize = 1024*1024); - - /** - * Destructor. - */ - ~daeStringTable() { clear(); } - -public: // INTERFACE - /** - * Allocates a string from the table. - * @param string const char * to copy into the table. - * @return Returns an allocated string. - */ - DLLSPEC daeString allocString(daeString string); - - /** - * Clears the storage. - */ - DLLSPEC void clear(); - -private: // MEMBERS - size_t _stringBufferSize; - size_t _stringBufferIndex; - daeStringArray _stringBuffersList; - - daeString allocateBuffer(); - - daeString _empty; -}; - -#endif //__DAE_STRING_TABLE_H__ diff --git a/Extras/COLLADA_DOM/include/dae/daeTypes.h b/Extras/COLLADA_DOM/include/dae/daeTypes.h deleted file mode 100644 index b90db0b28..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeTypes.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_TYPES_H__ -#define __DAE_TYPES_H__ - -#ifdef WIN32 - #pragma warning(disable : 4324) // disable padding warning - #pragma warning(disable:4530) // Disable the exception disable but used in MSCV Stl warning. - #pragma warning(disable:4996) //Turn off warnings about deprecated C routines - #pragma warning(disable:4786) // Disable the "debug name too long" warning - #pragma warning(disable:4244) // Disable the "possible loss of data" warning - #pragma warning(disable:4018) // signed/unsigned int mismatch - #pragma warning(disable:4267) // possible loss of data - #pragma warning(disable:4530) // C++ exception handler used - -#include -#elif defined( __GCC__ ) -#include -#else -#include -#endif -#include -#include -#include -#include -#include -#include - -#include - -#define daeOffsetOf(class, member) \ - ((size_t)&(((class*)0x0100)->member) - (size_t)0x0100) - -typedef PLATFORM_INT8 daeChar; -typedef PLATFORM_INT16 daeShort; -typedef PLATFORM_INT32 daeInt; -typedef PLATFORM_INT64 daeLong; -typedef PLATFORM_UINT8 daeUChar; -typedef PLATFORM_UINT16 daeUShort; -typedef PLATFORM_UINT32 daeUInt; -typedef PLATFORM_UINT64 daeULong; -typedef PLATFORM_FLOAT32 daeFloat; -typedef PLATFORM_FLOAT64 daeDouble; - -// base types - -typedef const char* daeString; -typedef bool daeBool; -typedef const void* daeConstRawRef; -typedef void* daeRawRef; -typedef daeInt daeEnum; -typedef daeChar* daeMemoryRef; - -typedef daeChar daeFixedName[512]; - -#include -#include - -#endif //__DAE_TYPES_H__ diff --git a/Extras/COLLADA_DOM/include/dae/daeURI.h b/Extras/COLLADA_DOM/include/dae/daeURI.h deleted file mode 100644 index fccd21dab..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeURI.h +++ /dev/null @@ -1,506 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_URI_H__ -#define __DAE_URI_H__ - -#include -#include - -//Contributed by Nus - Wed, 08 Nov 2006 -/** - * Initializing URI. - */ -extern "C" void initializeURI(void); - -/** - * Terminating URI. - */ -extern "C" void terminateURI(void); -//------------------------- - -/** - * The @c daeURI is a simple class designed to aid in the parsing and resolution - * of URI references inside COLLADA elements. - * A @c daeURI is created for every @c anyURL and @c IDREF in the COLLADA schema. - * For example, the element has the url= attribute of type @c anyURL, and the - * element has the target= attribute of type @c IDREF. - * The @c daeURI class contains a URI string; the @c setURI() method breaks the string into - * its components including protocol, authority, path (directory), and ID. - * It also has the capability to attempt to resolve this reference - * into a @c daeElement, through the method @c resolveElement(). - * If a @c daeURI is stored within a @c daeElement, it fills - * its container field to point to the containing element. - * - * The main API on the @c daeURI, @c resolveElement(), uses a @c daeURIResolver - * to search for the @c daeElement inside a @c daeDatabase. - * - * URIs are resolved hierarchically, where each URI is resolved based on - * the following criteria via itself and its element's base URI, which represents the - * URI of the document that contains the element, retrieved by - * daeElement::getBaseURI(). - * If no base URI is provided, then the application URI - * is used as a base. - * - * The URI resolution order for the COLLADA DOM is as follows: - * - Absolute URI is specified (see definition below): - * The URI ignores its parent/base URI when validating. - * - Relative URI is specified: - * The URI uses the base URI to provide the protocol, authority, and base path. - * This URI's path is appended to the path given the the base URI. - * This URI's file and ID are used. - * - Each level of URI is resolved in this way against the base URI of the - * containing file until the top level is reached. Then the application URI - * is used as the default. - * - * Definition of Absolute URI: - * For the purposes of the COLLADA DOM, a URI is considered absolute - * if it starts by specifying a protocol. - * For example, - * - file://c:/data/foo.dae#myScene is an absolute URI. - * - foo.dae#myScene is relative. - * - foo.dae is a top-level file reference and is relative. - * If the URI does not include a pound sign (#), the id is empty. - */ -class daeURI -{ -private: - void internalSetURI(daeString uri); - -public: - /** - * An enum describing the status of the URI resolution process. - */ - DLLSPEC enum ResolveState{ - /** No URI specified */ - uri_empty, - /** URI specified but unresolved */ - uri_loaded, - /** Resolution pending */ - uri_pending, - /** Resolution successful */ - uri_success, - /** Failure due to unsupported URI scheme */ - uri_failed_unsupported_protocol, - /** Failure because the file was not found */ - uri_failed_file_not_found, - /** Failure because the ID was not found */ - uri_failed_id_not_found, - /** Failure due to an invalid ID */ - uri_failed_invalid_id, - /** A flag specifying that the URI should be resolved locally to its own document */ - uri_resolve_local, - /** A flag specifying that the URI should be resolved using this relative URI */ - uri_resolve_relative, - /** A flag specifying that the URI should be resolved using this absolute URI */ - uri_resolve_absolute, - /** Failure due to an invalid reference */ - uri_failed_invalid_reference, - /** Failure due to an external error */ - uri_failed_externalization, - /** Failure due to missing document */ - uri_failed_missing_container, - /** Failure because autmoatic loading of a document is turned off */ - uri_failed_external_document - }; - -private: - /** Resolved version of the URI */ - daeString uriString; - - /** Original URI before resolution */ - daeString originalURIString; - - // Parceled out of storage as const char*'s - /** Protocol substring parsed from the URI */ - daeString protocol; - /** authority substring parsed from the URI */ - daeString authority; - /** Path substring parsed from the URI */ - daeString filepath; - /** File name substring parsed from the URI */ - daeString file; - /** Id substring parsed from the URI */ - daeString id; - /** Extension parsed from the filename in the URI */ - daeString extension; - /** Reference to the element that the URI resolves to in memory */ - daeElementRef element; - /** Pointer to the element that owns this URI */ - daeElement* container; - /** Current resolver state of the URI */ - ResolveState state; - /** Flag for if this URI references an external element. */ - daeBool external; - -public: - /** - * Constructs a daeURI object that contains no URI reference. - */ - DLLSPEC daeURI(); - /** - * Destructor - */ - DLLSPEC ~daeURI(); - - /** - * Constructs a daeURI object that points to the application's current working - * directory. - * @param dummy An integer value that has no meaning. - * @note This is used only to initialize the Application URI. It's a simple - * workaround to insure that the ApplicationURI is initialized only once and before the user can call - * daeURI::setBaseURI() (so when we initialize ApplicationURI there is no chance of wiping out a user value). - */ - DLLSPEC daeURI(int dummy); - - /** - * Constructs a daeURI object from a URI passed in as a string. - * @param URIString Passed to setURI() automatically. - * @param nofrag If true, the fragment part of the URI is stripped off before construction. - */ - DLLSPEC daeURI(daeString URIString, daeBool nofrag = false); - - /** - * Constructs a daeURI object using a baseURI and a uriString. - * Calls setURI(URIString), and @c validate(baseURI). - * @param baseURI Base URI to resolve against. - * @param URIString String designating this URI. - */ - DLLSPEC daeURI(daeURI& baseURI, daeString URIString); - - /** - * Constructs a daeURI object based on a simple copy from an existing @c daeURI. - * @param constructFromURI URI to copy into this one. - */ - DLLSPEC daeURI(daeURI& constructFromURI); - - /** - * Gets the ID string parsed from the URI. - * @return Returns a pointer to the string. - */ - inline daeString getID(){return(id);}; - - /** - * Gets the file string parsed from the URI. - * @return Returns a pointer to the string. - */ - inline daeString getFile(){return(file);}; - - /** - * Gets the path string to the file, without the path name, parsed from the URI. - * @return Returns a pointer to the string. - */ - inline daeString getFilepath(){return(filepath);}; - - /** - * Gets the protocol string parsed from the URI. - * @return Returns a pointer to the string. - */ - inline daeString getProtocol(){return(protocol);}; - - /** - * Gets the authority string parsed from the URI. - * @return Returns a pointer to the string. - */ - inline daeString getAuthority(){return(authority);}; - - /** - * Gets the extension string parsed from the URI. - * @return Returns a pointer to the string. - */ - inline daeString getExtension(){return(extension);}; - - /** - * Gets the element that this URI resolves to in memory. - * @return Returns a ref to the element. - */ - inline daeElementRef getElement(){return(element);}; - - /** - * Gets the element that this URI resolves to in memory. - * @return Returns a ref to the element. - */ - inline daeElementConstRef getElement() const {return(element);}; - - /** - * Sets the element that this URI resolves to in memory. - * @param newref A ref to the element. - */ - inline void setElement(daeElementRef newref){element=newref;}; - - /** - * Gets the resolve state of the URI. - * @return Returns the current state. - * @note This will be removed when daeURI starts managing its state internally. - */ - inline ResolveState getState() const {return(state);}; - - /** - * Sets the resolve state of the URI. - * @param newState The new state. - * @note This will be removed when daeURI starts managing its state internally. - */ - inline void setState(ResolveState newState){state=newState;}; - - /** - * Gets a pointer to the @c daeElement that contains this URI. - * @return Returns the pointer to the containing daeElmement. - */ - inline daeElement* getContainer() const {return(container);}; - - /** - * Sets the pointer to the @c daeElement that contains this URI. - * @param element Pointer to the containing @c daeElmement. - */ - inline void setContainer(daeElement* element){container=element;}; - - /** - * Copies parameter uri into data member uriString, and then decomposes each of - * protocol, authority, filepath, file, and id. - * After @c setURI(), the state is set to @c uri_loaded. - * @param uri String to use to configure this URI. - */ - DLLSPEC void setURI(daeString uri); - - /** - * Gets the URI stored in the daeURI. - * @return Returns the full URI String, from uriString. - */ - DLLSPEC daeString getURI() const; - - /** - * Gets the original URI String as originally set, not flattened against the base URI. - * @return Returns the original URI String as originally set, not flattened against the base URI. - */ - DLLSPEC daeString getOriginalURI() const; - - /** - * Gets if this URI resolves to an element that is not contained in the same document as the URI. - * @return Returns true if the URI references an external element. False otherwise. - */ - daeBool isExternalReference() const { return external; } - - /** - * Uses the @c daeURIResolver static API to try to resolve this URI - * into a @c daeElement reference, placing the resolved element into element. - * This function can effectively force a load of a file, perform - * a database query, and so on, based on the @c daeURIResolver plugins implemented. - */ - DLLSPEC void resolveElement(daeString typeNameHint = NULL); - - /** - * Configures the uriString for this @c daeURI based on the element set in element. - * Uses the element's base URI and ID information to configure - * the URI string. - */ - DLLSPEC void resolveURI(); - - /** - * Flattens this URI with base URI to obtain a useable - * complete URI for resolution. - * @param baseURI Base URI to flatten against if this URI is - * relative. - * @note After @c validate(), state is @c uri_pending as it is awaiting a call to - * @c resolveElement(). - */ - DLLSPEC void validate(daeURI* baseURI = NULL); - - /** - * Copies the URI specified in from into @c this. - * Performs a simple copy without validating the URI. - * @param from URI to copy from. - */ - DLLSPEC void copyFrom(daeURI& from); - - /** - * Outputs all components of this URI to stderr. - * Useful for debugging URIs, this outputs each part of the URI separately. - */ - DLLSPEC void print(); - - /** - * Makes the "originalURI" in this URI relative to some other uri - * @param uri the URI to make "this" relative to. - * @note this is experimental and not fully tested, please don't use in critical code yet. - */ - DLLSPEC int makeRelativeTo(daeURI* uri); - - /** - * Comparison operator. - * @return Returns true if URI's are equal. - */ - inline bool operator==(const daeURI& other) const{ - return (!strcmp(other.getURI(), getURI())); } - - daeURI &operator=( const daeURI& other) { - setURI(other.getOriginalURI()); - element = other.element; - state = other.state; - return *this; - } - -private: - /** - * Resets this URI; frees all string references - * and returns state to @c empty. - */ - void reset(); - - /** - * Provides a shared initialization for all constructors - */ - void initialize(); -public: - /** - * Gets the path part of the URI, including everything from immediately after the authority up to and - * including the file name, but not the query or fragment. - * @param dest The user allocated buffer that will receive the path. - * @param size The size of the buffer. - * @return Returns true for success, false if the path exceeded the size of the user provided buffer. - */ - DLLSPEC daeBool getPath(daeChar *dest, daeInt size); - -public: - /** - * Sets the application's default base URI. This is effectively the default protocol, - * authority, and path in the case of top-level relative URIs. - * @param uri Base URI to use as the default application URI. - */ - static DLLSPEC void setBaseURI(daeURI& uri); - - /** - * Gets the application's default base URI. - * @return Returns the base URI used in the case of top-level relative URIs. - */ - static DLLSPEC daeURI* getBaseURI(); - - /** - * Performs RFC2396 path normalization. - * @param path Path to be normalized. - */ - static DLLSPEC void normalizeURIPath(char *path); - -}; - -class daeURIResolver; -typedef daeTArray daeURIResolverPtrArray; - -/** - * The @c daeURIResolver class is the plugin point for URI resolution. - * This class is an abstract base class that defines an interface for - * resolving URIs. - * All instances of @c daeURIResolvers are tracked centrally. - * Every URI is passed through this list of @c daeURIResolvers for resolution. - * Before a @c daeURIResolver receives a URI, the API checks whether it supports - * the protocol. - * The list is ordered on a first come, first serve basis, and resolution - * terminates after any resolver instance resolves the URI. - */ -class daeURIResolver -{ -public: - /** - * This base constructor appends @c this to KnownResolvers list. - */ - DLLSPEC daeURIResolver(); - - /** - * Destructor - */ - virtual DLLSPEC ~daeURIResolver(); - -protected: - static daeURIResolverPtrArray &_KnownResolvers(); - - static daeBool _loadExternalDocuments; - -public: - /** - * Iterates through known resolvers - * calling @c isProtocolSupported() and, if it is supported, calling - * @c resolveElement(). - * @param uri @c daeURI to resolve. - */ - static DLLSPEC void attemptResolveElement(daeURI &uri, daeString typeNameHint = NULL); - - /** - * Iterates through known resolvers - * calling @c isProtocolSupported() and, if it is supported, calling - * @c resolveURI(). - * @param uri @c daeURI to resolve. - */ - static DLLSPEC void attemptResolveURI(daeURI &uri); - - /** - * Sets a flag that tells the URI resolver whether or not to load a separate document if a URI - * being resolved points to one. - * @param load Set to true if you want the URI Resolver to automatically load other documents to - * resolve URIs. - */ - static DLLSPEC void setAutoLoadExternalDocuments( daeBool load ); - - /** - * Gets a flag that tells if the URI resolver is set to load an external document if a URI - * being resolved points to one. - * @return Returns true if the resolver will automatically load documents to resolve a URI. - * False otherwise. - */ - static DLLSPEC daeBool getAutoLoadExternalDocuments(); - -public: // Abstract Interface - /** - * Provides an abstract interface for converting a @c daeURI into a @c daeElement - * @param uri @c daeURI to resolve. - * @return Returns true if the @c daeURIResolver successfully resolved the URI, - * returns false otherwise. - */ - virtual DLLSPEC daeBool resolveElement(daeURI& uri, daeString typeNameHint = NULL) = 0; - /** - * Provides an abstract interface for converting a @c daeElement into a @c daeURI - * @param uri @c daeURI to resolve. - * @return Returns true if the @c daeURIResolver successfully resolved the element - * into a URI, returns false otherwise. - */ - virtual DLLSPEC daeBool resolveURI(daeURI& uri) = 0; - - /** - * Gets the name of this resolver. - * @return Returns the resolver name as a string. - */ - virtual DLLSPEC daeString getName() = 0; - - /** - * Determines whether this resolver supports a particular protocol - * for resolution. - * @param protocol Determine whether the resolver supports this protocol. - * @return Returns true if this @c daeURIResolver understands how to resolve using this protocol, returns - * false otherwise - */ - virtual DLLSPEC daeBool isProtocolSupported(daeString protocol) = 0; - - /** - * Determines whether this resolver supports the given extension. - * This keeps parsers from trying to process incompatible - * file formats. - * @param extension Extension string found after the '.' in the file name. - * @return Returns true if the given extension is supported, returns false otherwise. - */ - virtual DLLSPEC daeBool isExtensionSupported(daeString extension) = 0; - -}; - - -#endif //__DAE_URI_H__ - - - diff --git a/Extras/COLLADA_DOM/include/dae/daeWin32Platform.h b/Extras/COLLADA_DOM/include/dae/daeWin32Platform.h deleted file mode 100644 index dde4d081c..000000000 --- a/Extras/COLLADA_DOM/include/dae/daeWin32Platform.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_WIN32_PLATFORM_H__ -#define __DAE_WIN32_PLATFORM_H__ - -#define PLATFORM_INT8 __int8 -#define PLATFORM_INT16 __int16 -#define PLATFORM_INT32 __int32 -#define PLATFORM_INT64 __int64 -#define PLATFORM_UINT8 unsigned __int8 -#define PLATFORM_UINT16 unsigned __int16 -#define PLATFORM_UINT32 unsigned __int32 -#define PLATFORM_UINT64 unsigned __int64 -#define PLATFORM_FLOAT32 float -#define PLATFORM_FLOAT64 double - -#if _MSC_VER <= 1200 -typedef int intptr_t; -#undef PLATFORM_INT8 -#define PLATFORM_INT8 char -#undef PLATFORM_UINT8 -#define PLATFORM_UINT8 unsigned char - - -#endif - - -#ifdef DOM_DYNAMIC - -#ifdef DOM_EXPORT -#define DLLSPEC __declspec( dllexport ) -#else -#define DLLSPEC __declspec( dllimport ) -#endif - -#else -#define DLLSPEC -#endif - -#endif diff --git a/Extras/COLLADA_DOM/include/dae/domAny.h b/Extras/COLLADA_DOM/include/dae/domAny.h deleted file mode 100644 index 6e3be7ec3..000000000 --- a/Extras/COLLADA_DOM/include/dae/domAny.h +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __domAny_h__ -#define __domAny_h__ - -#include -#include -#include -#include -#include - -#define MAX_ATTRIBUTES 32 - -/** - * The domAny class allows for weakly typed xml elements. This class is used anywhere in the - * COLLADA schema where an xs:any element appears. The content and type information for a domAny - * object is generated at runtime. - */ -class domAny : public daeElement -{ -protected: // Attribute - - /** - * The array of daeStrings to hold attribute data for this element. - */ - daeString attrs[MAX_ATTRIBUTES]; - /** - * The domString value of the text data of this element. - */ - daeString _value; - /** - * Used to preserve order in elements that do not specify strict sequencing of sub-elements. - */ - daeElementRefArray _contents; - /** - * Used to preserve order in elements that have a complex content model. - */ - daeUIntArray _contentsOrder; - -public: - /** - * Gets the _contents array. - * @return Returns a reference to the _contents element array. - */ - daeElementRefArray &getContents() { return _contents; } - /** - * Gets the _contents array. - * @return Returns a constant reference to the _contents element array. - */ - const daeElementRefArray &getContents() const { return _contents; } - - /** - * Gets the number of attributes this element has. - * @return Returns the number of attributes on this element. - */ - daeUInt getAttributeCount() const { return (daeUInt)_meta->getMetaAttributes().getCount(); } - /** - * Gets an attribute's name. - * @param index The index into the attribute list. - * @return Returns the attribute's name. - */ - daeString getAttributeName( daeUInt index ) const { return _meta->getMetaAttributes()[index]->getName(); } - /** - * Gets an attribute's value. - * @param index The index into the attribute list. - * @return Returns the attribute's value as a string. - */ - daeString getAttributeValue( daeUInt index ) const { return attrs[ index ]; } - /** - * Gets the value of this element. - * @return Returns a daeString of the value. - */ - daeString getValue() const { return _value; } - /** - * Sets the _value of this element. - * @param val The new value for this element. - */ - void setValue( daeString val ) { *(daeStringRef*)&_value = val; } - -protected: - /** - * Constructor - */ - domAny() : _value() {} - /** - * Destructor - */ - virtual ~domAny() {} - /** - * Copy Constructor - */ - domAny( const domAny &cpy ) : daeElement() { (void)cpy; } - /** - * Overloaded assignment operator - */ - virtual domAny &operator=( const domAny &cpy ) { (void)cpy; return *this; } - -public: //METHODS - /** - * Override of the Base class method. Creates and registers an attribute field with its meta - * and assigns its value as the attrValue String. - * @param attrName Attribute to set. - * @param attrValue String-based value to apply to the attribute. - * @return Returns true if the attribute was created and the value was set, false otherwise. - */ - virtual DLLSPEC daeBool setAttribute(daeString attrName, daeString attrValue); - -public: // STATIC METHODS - /** - * Creates an instance of this class and returns a daeElementRef referencing it. - * @param bytes The size allocated for this instance. - * @return a daeElementRef referencing an instance of this object. - */ - static DLLSPEC daeElementRef create(daeInt bytes); - /** - * Creates a daeMetaElement object that describes this element in the meta object reflection framework. - * @return A daeMetaElement describing this COLLADA element. - * @remarks Unlike other dom* elements, domAny will always create a new daeMetaElement when this - * function is called. - */ - static DLLSPEC daeMetaElement* registerElement(); - -}; - -typedef daeSmartRef domAnyRef; -typedef daeTArray domAny_Array; - -#endif - diff --git a/Extras/COLLADA_DOM/include/dom.h b/Extras/COLLADA_DOM/include/dom.h deleted file mode 100644 index 8405e7bc7..000000000 --- a/Extras/COLLADA_DOM/include/dom.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#ifndef __DOM__ -#define __DOM__ - -class daeMetaElement; - -extern daeString COLLADA_VERSION; -extern daeString COLLADA_NAMESPACE; - -// Register all types -void registerDomTypes(); - -// Register all elements -daeMetaElement* registerDomElements(); - - -#endif // __DOM_INTERFACE__ diff --git a/Extras/COLLADA_DOM/include/modules/daeLIBXMLPlugin.h b/Extras/COLLADA_DOM/include/modules/daeLIBXMLPlugin.h deleted file mode 100644 index ea829a6cf..000000000 --- a/Extras/COLLADA_DOM/include/modules/daeLIBXMLPlugin.h +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_LIBXMLPLUGIN__ -#define __DAE_LIBXMLPLUGIN__ - -#include -#include -#include -#include - -class daeElement; -class daeIntegrationObject; -class daeMetaElement; -class daeDocument; - -struct _xmlTextReader; -struct _xmlTextWriter; - -/** - * The @c daeLIBXMLPlugin class derives from @c daeIOPlugin and implements an XML - * input/output backend using libxml2 as a parser. When using this plugin, daeInterface::load() expects - * an rfc 2396 compliant URI, any URI supported by libxml2 should be properly - * handled including ones with network schemes and authority. If the URI contains a fragment it will be ignored - * and the entire referenced document will be loaded. daeInterface::saveAs will only - * handle a filename path at present (ie: no scheme or authority). - */ -class daeLIBXMLPlugin : public daeIOPlugin -{ -public: - // Constructor / destructor - /** - * Constructor. - */ - DLLSPEC daeLIBXMLPlugin(); - /** - * Destructor. - */ - virtual DLLSPEC ~daeLIBXMLPlugin(); - virtual DLLSPEC daeInt setMeta(daeMetaElement *topMeta); - - // Database setup - virtual DLLSPEC void setDatabase(daeDatabase* database); - - // Operations - virtual DLLSPEC daeInt read(daeURI& uri, daeString docBuffer); - virtual DLLSPEC daeInt write(daeURI *name, daeDocument *document, daeBool replace); - - // Parsing support - DLLSPEC daeElementRef startParse(daeMetaElement* thisMetaElement, _xmlTextReader *reader); - DLLSPEC daeElementRef nextElement(daeMetaElement* thisMetaElement, _xmlTextReader *reader); - - // Stats - virtual DLLSPEC void getProgress(daeInt* bytesParsed, - daeInt* lineNumber, - daeInt* totalBytes, - daeBool reset = false ); - -private: -// xmlTextReaderPtr reader; - _xmlTextWriter *writer; - - typedef struct - { - daeElement* element; - daeIntegrationObject* intObject; - } INTEGRATION_ITEM; - - daeMetaElement* topMeta; -// std::vector intItems; - daeDatabase* database; - - void postProcessDom(daeDocument *document, daeElement* element, std::vector &intItems); - - void writeElement( daeElement* element ); - void writeAttribute( daeMetaAttribute* attr, daeElement* element, daeInt attrNum = -1 ); - - void readAttributes( daeElement *element, _xmlTextReader *reader ); - void readValue( daeElement *element, _xmlTextReader *reader ); -}; - -#endif //__DAE_XMLPLUGIN__ diff --git a/Extras/COLLADA_DOM/include/modules/daeLIBXMLResolver.h b/Extras/COLLADA_DOM/include/modules/daeLIBXMLResolver.h deleted file mode 100644 index c14733a4c..000000000 --- a/Extras/COLLADA_DOM/include/modules/daeLIBXMLResolver.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_LIBXMLRESOLVER__ -#define __DAE_LIBXMLRESOVLER__ - -#include "dae/daeURI.h" -class daeIOPlugin; -class daeDatabase; - -/** - * The @c daeLIBXMLResolver class derives from @c daeURIResolver and implements - * the default XML backend resolver. - */ -class daeLIBXMLResolver : public daeURIResolver -{ -public: - /** - * Constructor. - * @param database The @c daeDatabase used. - * @param plugin The @c daeIOPlugin used. - */ - DLLSPEC daeLIBXMLResolver(daeDatabase* database, daeIOPlugin* plugin); - /** - * Destructor. - */ - DLLSPEC ~daeLIBXMLResolver(); - -protected: - daeDatabase* _database; - daeIOPlugin* _plugin; - -public: // Abstract Interface - virtual DLLSPEC daeBool resolveElement(daeURI& uri, daeString typeNameHint = NULL); - virtual DLLSPEC daeBool resolveURI(daeURI& uri); - virtual DLLSPEC daeString getName(); - virtual DLLSPEC daeBool isProtocolSupported(daeString protocol); - virtual DLLSPEC daeBool isExtensionSupported(daeString extension); -}; - -#endif //__DAE_XMLRESOLVER__ - diff --git a/Extras/COLLADA_DOM/include/modules/daeSTLDatabase.h b/Extras/COLLADA_DOM/include/modules/daeSTLDatabase.h deleted file mode 100644 index 342252318..000000000 --- a/Extras/COLLADA_DOM/include/modules/daeSTLDatabase.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef __DAE_STLDATABASE__ -#define __DAE_STLDATABASE__ - -#include - -#include -#include -#include -#include -#include - -#include -#include - -/** - * The @c daeSTLDatabase class derives from @c daeDatabase and implements - * the default database. - */ -class daeSTLDatabase : public daeDatabase -{ -public: - /** - * Constructor - */ - DLLSPEC daeSTLDatabase(); - /** - * Destructor - */ - virtual DLLSPEC ~daeSTLDatabase(); - -public: - // Element Types of all Elements - virtual DLLSPEC daeUInt getTypeCount(); - virtual DLLSPEC daeString getTypeName(daeUInt index); - virtual DLLSPEC daeInt setMeta(daeMetaElement *_topMeta); - - // Documents - virtual DLLSPEC daeInt insertDocument(const char *name, daeElement* dom, daeDocument** document = NULL); - virtual DLLSPEC daeInt insertDocument(daeString name, daeDocument** document = NULL); - virtual DLLSPEC daeInt createDocument(daeString name, daeElement* dom, daeDocument** document = NULL); - virtual DLLSPEC daeInt createDocument(daeString name, daeDocument** document = NULL); - virtual DLLSPEC daeInt insertDocument( daeDocument *c ); - - virtual DLLSPEC daeInt removeDocument(daeDocument* document); - virtual DLLSPEC daeUInt getDocumentCount(); - virtual DLLSPEC daeDocument* getDocument(daeUInt index); - virtual DLLSPEC daeDocument* getDocument(daeString name); - virtual DLLSPEC daeString getDocumentName(daeUInt index); - virtual DLLSPEC daeBool isDocumentLoaded(daeString name); - - // Elements - virtual DLLSPEC daeInt insertElement(daeDocument* document, daeElement* element); - virtual DLLSPEC daeInt removeElement(daeDocument* document, daeElement* element); - virtual DLLSPEC daeInt clear(); - virtual DLLSPEC void validate(); - virtual DLLSPEC daeUInt getElementCount(daeString name = NULL, - daeString type = NULL, - daeString file = NULL); - virtual DLLSPEC daeInt getElement(daeElement** pElement, - daeInt index, - daeString name = NULL, - daeString type = NULL, - daeString file = NULL); - - // Generic Query - virtual DLLSPEC daeInt queryElement(daeElement** pElement, daeString genericQuery); - -private: - - std::map< std::string, std::vector< daeElement* > > elements; //map for all elements keyed on Type - std::multimap< std::string, daeElement* > elementsIDMap; //map for elements keyed on ID - - std::vector documents; - daeMetaElement* topMeta; - - daeInt insertChildren( daeDocument *c, daeElement *element ); - daeInt removeChildren( daeDocument *c, daeElement *element ); -}; - -#endif // __DAE_STLDATABASE__ diff --git a/Extras/COLLADA_DOM/include/modules/stdErrPlugin.h b/Extras/COLLADA_DOM/include/modules/stdErrPlugin.h deleted file mode 100644 index a754384fa..000000000 --- a/Extras/COLLADA_DOM/include/modules/stdErrPlugin.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#ifndef _STDERR_PLUGIN_ -#define _STDERR_PLUGIN_ - -#include -#include -/** - * The @c stdErrPlugin class is the default implementation of daeErrorHandler. It routes the Error - * and Warning messaged to stdout. - */ -class DLLSPEC stdErrPlugin : public daeErrorHandler { -public: - stdErrPlugin(); - virtual ~stdErrPlugin(); - -public: - void handleError( daeString msg ); - void handleWarning( daeString msg ); -}; - -#endif diff --git a/Extras/COLLADA_DOM/readme.txt b/Extras/COLLADA_DOM/readme.txt deleted file mode 100644 index 3044daa3d..000000000 --- a/Extras/COLLADA_DOM/readme.txt +++ /dev/null @@ -1,3 +0,0 @@ -Download COLLADA 1.4 DOM COLLADA DOM Patch3 or later and unzip here. -http://sourceforge.net/projects/collada-dom -Visual Studio 2005 projectfiles are provided. diff --git a/Extras/COLLADA_DOM/scea-shared-source-lic1.0.txt b/Extras/COLLADA_DOM/scea-shared-source-lic1.0.txt deleted file mode 100644 index 4ba12ea7d..000000000 --- a/Extras/COLLADA_DOM/scea-shared-source-lic1.0.txt +++ /dev/null @@ -1,64 +0,0 @@ -SCEA Shared Source License 1.0 - - - -Terms and Conditions: - -1. Definitions: - -"Software" shall mean the software and related documentation, whether in Source or Object Form, made available under this SCEA Shared Source license ("License"), that is indicated by a copyright notice file included in the source files or attached or accompanying the source files. - -"Licensor" shall mean Sony Computer Entertainment America, Inc. (herein "SCEA") - -"Object Code" or "Object Form" shall mean any form that results from translation or transformation of Source Code, including but not limited to compiled object code or conversions to other forms intended for machine execution. - -"Source Code" or "Source Form" shall have the plain meaning generally accepted in the software industry, including but not limited to software source code, documentation source, header and configuration files. - -"You" or "Your" shall mean you as an individual or as a company, or whichever form under which you are exercising rights under this License. - - 2. License Grant. - -Licensor hereby grants to You, free of charge subject to the terms and conditions of this License, an irrevocable, non-exclusive, worldwide, perpetual, and royalty-free license to use, modify, reproduce, distribute, publicly perform or display the Software in Object or Source Form . - -3. No Right to File for Patent. - -In exchange for the rights that are granted to You free of charge under this License, You agree that You will not file for any patent application, seek copyright protection or take any other action that might otherwise impair the ownership rights in and to the Software that may belong to SCEA or any of the other contributors/authors of the Software. - -4. Contributions. - -SCEA welcomes contributions in form of modifications, optimizations, tools or documentation designed to improve or expand the performance and scope of the Software (collectively "Contributions"). Per the terms of this License You are free to modify the Software and those modifications would belong to You. You may however wish to donate Your Contributions to SCEA for consideration for inclusion into the Software. For the avoidance of doubt, if You elect to send Your Contributions to SCEA, You are doing so voluntarily and are giving the Contributions to SCEA and its parent company Sony Computer Entertainment, Inc., free of charge, to use, modify or distribute in any form or in any manner. SCEA acknowledges that if You make a donation of Your Contributions to SCEA, such Contributions shall not exclusively belong to SCEA or its parent company and such donation shall not be to Your exclusion. SCEA, in its sole discretion, shall determine whether or not to include Your donated Contributions into the Software, in whole, in part, or as modified by SCEA. Should SCEA elect to include any such Contributions into the Software, it shall do so at its own risk and may elect to give credit or special thanks to any such contributors in the attached copyright notice. However, if any of Your contributions are included into the Software, they will become part of the Software and will be distributed under the terms and conditions of this License. Further, if Your donated Contributions are integrated into the Software then Sony Computer Entertainment, Inc. shall become the copyright owner of the Software now containing Your contributions and SCEA would be the Licensor. - -5. Redistribution in Source Form - -You may redistribute copies of the Software, modifications or derivatives thereof in Source Code Form, provided that You: -a. Include a copy of this License and any copyright notices with source -b. Identify modifications if any were made to the Software -c. Include a copy of all documentation accompanying the Software and modifications made by You - -6. Redistribution in Object Form - -If You redistribute copies of the Software, modifications or derivatives thereof in Object Form only (as incorporated into finished goods, i.e. end user applications) then You will not have a duty to include any copies of the code, this License, copyright notices, other attributions or documentation. - -7. No Warranty - -THE SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT ANY REPRESENTATIONS OR WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING, MODIFYING OR REDISTRIBUTING THE SOFTWARE AND ASSUME ANY RISKS ASSOCIATED WITH YOUR EXERCISE OF PERMISSIONS UNDER THIS LICENSE. - -8. Limitation of Liability - -UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY WILL EITHER PARTY BE LIABLE TO THE OTHER PARTY OR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, SPECIAL, INCIDENTAL, OR EXEMPLARY DAMAGES WITH RESPECT TO ANY INJURY, LOSS, OR DAMAGE, ARISING UNDER OR IN CONNECTION WITH THIS LETTER AGREEMENT, WHETHER FORESEEABLE OR UNFORESEEABLE, EVEN IF SUCH PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH INJURY, LOSS, OR DAMAGE. THE LIMITATIONS OF LIABILITY SET FORTH IN THIS SECTION SHALL APPLY TO THE FULLEST EXTENT PERMISSIBLE AT LAW OR ANY GOVERMENTAL REGULATIONS. - -9. Governing Law and Consent to Jurisdiction - -This Agreement shall be governed by and interpreted in accordance with the laws of the State of California, excluding that body of law related to choice of laws, and of the United States of America. Any action or proceeding brought to enforce the terms of this Agreement or to adjudicate any dispute arising hereunder shall be brought in the Superior Court of the County of San Mateo, State of California or the United States District Court for the Northern District of California. Each of the parties hereby submits itself to the exclusive jurisdiction and venue of such courts for purposes of any such action. In addition, each party hereby waives the right to a jury trial in any action or proceeding related to this Agreement. - -10. Copyright Notice for Redistribution of Source Code - -Copyright 2005 Sony Computer Entertainment Inc. - -Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: - -http://research.scea.com/scea_shared_source_license.html - -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - - diff --git a/Extras/COLLADA_DOM/scea-shared-source-license1.0.pdf b/Extras/COLLADA_DOM/scea-shared-source-license1.0.pdf deleted file mode 100644 index 6ef100888..000000000 Binary files a/Extras/COLLADA_DOM/scea-shared-source-license1.0.pdf and /dev/null differ diff --git a/Extras/COLLADA_DOM/src/1.4/dom/dom1.4_vc8.vcproj b/Extras/COLLADA_DOM/src/1.4/dom/dom1.4_vc8.vcproj deleted file mode 100644 index 18cbca523..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/dom1.4_vc8.vcproj +++ /dev/null @@ -1,1499 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domAccessor.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domAccessor.cpp deleted file mode 100644 index 47e0b626e..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domAccessor.cpp +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domAccessor::create(daeInt bytes) -{ - domAccessorRef ref = new(bytes) domAccessor; - ref->attrSource.setContainer( (domAccessor*)ref ); - return ref; -} - - -daeMetaElement * -domAccessor::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "accessor" ); - _Meta->registerClass(domAccessor::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "param" ); - mea->setOffset( daeOffsetOf(domAccessor,elemParam_array) ); - mea->setElementType( domParam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domAccessor , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: offset - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "offset" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domAccessor , attrOffset )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - - _Meta->appendAttribute(ma); - } - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domAccessor , attrSource )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: stride - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "stride" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domAccessor , attrStride )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAccessor)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domAccessor::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domAnimation.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domAnimation.cpp deleted file mode 100644 index d2ca104aa..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domAnimation.cpp +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domAnimation::create(daeInt bytes) -{ - domAnimationRef ref = new(bytes) domAnimation; - return ref; -} - - -daeMetaElement * -domAnimation::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "animation" ); - _Meta->registerClass(domAnimation::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domAnimation,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, -1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domAnimation,elemSource_array) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, -1 ); - mea->setName( "sampler" ); - mea->setOffset( daeOffsetOf(domAnimation,elemSampler_array) ); - mea->setElementType( domSampler::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "channel" ); - mea->setOffset( daeOffsetOf(domAnimation,elemChannel_array) ); - mea->setElementType( domChannel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "animation" ); - mea->setOffset( daeOffsetOf(domAnimation,elemAnimation_array) ); - mea->setElementType( domAnimation::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 1, -1 ); - mea->setName( "animation" ); - mea->setOffset( daeOffsetOf(domAnimation,elemAnimation_array) ); - mea->setElementType( domAnimation::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 1 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaSequence( _Meta, cm, 2, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, -1 ); - mea->setName( "sampler" ); - mea->setOffset( daeOffsetOf(domAnimation,elemSampler_array) ); - mea->setElementType( domSampler::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "channel" ); - mea->setOffset( daeOffsetOf(domAnimation,elemChannel_array) ); - mea->setElementType( domChannel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "animation" ); - mea->setOffset( daeOffsetOf(domAnimation,elemAnimation_array) ); - mea->setElementType( domAnimation::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 5, 1, -1 ); - mea->setName( "animation" ); - mea->setOffset( daeOffsetOf(domAnimation,elemAnimation_array) ); - mea->setElementType( domAnimation::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 4 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domAnimation,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domAnimation,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domAnimation,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domAnimation , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domAnimation , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAnimation)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domAnimation::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domAnimation_clip.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domAnimation_clip.cpp deleted file mode 100644 index 025f2faac..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domAnimation_clip.cpp +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domAnimation_clip::create(daeInt bytes) -{ - domAnimation_clipRef ref = new(bytes) domAnimation_clip; - return ref; -} - - -daeMetaElement * -domAnimation_clip::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "animation_clip" ); - _Meta->registerClass(domAnimation_clip::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domAnimation_clip,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "instance_animation" ); - mea->setOffset( daeOffsetOf(domAnimation_clip,elemInstance_animation_array) ); - mea->setElementType( domInstanceWithExtra::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domAnimation_clip,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domAnimation_clip , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domAnimation_clip , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: start - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "start" ); - ma->setType( daeAtomicType::get("xsDouble")); - ma->setOffset( daeOffsetOf( domAnimation_clip , attrStart )); - ma->setContainer( _Meta ); - ma->setDefault( "0.0"); - - _Meta->appendAttribute(ma); - } - - // Add attribute: end - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "end" ); - ma->setType( daeAtomicType::get("xsDouble")); - ma->setOffset( daeOffsetOf( domAnimation_clip , attrEnd )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAnimation_clip)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domAnimation_clip::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domAsset.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domAsset.cpp deleted file mode 100644 index b34123ff4..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domAsset.cpp +++ /dev/null @@ -1,658 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domAsset::create(daeInt bytes) -{ - domAssetRef ref = new(bytes) domAsset; - return ref; -} - - -daeMetaElement * -domAsset::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "asset" ); - _Meta->registerClass(domAsset::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "contributor" ); - mea->setOffset( daeOffsetOf(domAsset,elemContributor_array) ); - mea->setElementType( domAsset::domContributor::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "created" ); - mea->setOffset( daeOffsetOf(domAsset,elemCreated) ); - mea->setElementType( domAsset::domCreated::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "keywords" ); - mea->setOffset( daeOffsetOf(domAsset,elemKeywords) ); - mea->setElementType( domAsset::domKeywords::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 1, 1 ); - mea->setName( "modified" ); - mea->setOffset( daeOffsetOf(domAsset,elemModified) ); - mea->setElementType( domAsset::domModified::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "revision" ); - mea->setOffset( daeOffsetOf(domAsset,elemRevision) ); - mea->setElementType( domAsset::domRevision::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "subject" ); - mea->setOffset( daeOffsetOf(domAsset,elemSubject) ); - mea->setElementType( domAsset::domSubject::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "title" ); - mea->setOffset( daeOffsetOf(domAsset,elemTitle) ); - mea->setElementType( domAsset::domTitle::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "unit" ); - mea->setOffset( daeOffsetOf(domAsset,elemUnit) ); - mea->setElementType( domAsset::domUnit::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "up_axis" ); - mea->setOffset( daeOffsetOf(domAsset,elemUp_axis) ); - mea->setElementType( domAsset::domUp_axis::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 8 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domAsset)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domContributor::create(daeInt bytes) -{ - domAsset::domContributorRef ref = new(bytes) domAsset::domContributor; - return ref; -} - - -daeMetaElement * -domAsset::domContributor::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "contributor" ); - _Meta->registerClass(domAsset::domContributor::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "author" ); - mea->setOffset( daeOffsetOf(domAsset::domContributor,elemAuthor) ); - mea->setElementType( domAsset::domContributor::domAuthor::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "authoring_tool" ); - mea->setOffset( daeOffsetOf(domAsset::domContributor,elemAuthoring_tool) ); - mea->setElementType( domAsset::domContributor::domAuthoring_tool::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "comments" ); - mea->setOffset( daeOffsetOf(domAsset::domContributor,elemComments) ); - mea->setElementType( domAsset::domContributor::domComments::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "copyright" ); - mea->setOffset( daeOffsetOf(domAsset::domContributor,elemCopyright) ); - mea->setElementType( domAsset::domContributor::domCopyright::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "source_data" ); - mea->setOffset( daeOffsetOf(domAsset::domContributor,elemSource_data) ); - mea->setElementType( domAsset::domContributor::domSource_data::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 4 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domAsset::domContributor)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domContributor::domAuthor::create(daeInt bytes) -{ - domAsset::domContributor::domAuthorRef ref = new(bytes) domAsset::domContributor::domAuthor; - return ref; -} - - -daeMetaElement * -domAsset::domContributor::domAuthor::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "author" ); - _Meta->registerClass(domAsset::domContributor::domAuthor::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domAsset::domContributor::domAuthor , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAsset::domContributor::domAuthor)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domContributor::domAuthoring_tool::create(daeInt bytes) -{ - domAsset::domContributor::domAuthoring_toolRef ref = new(bytes) domAsset::domContributor::domAuthoring_tool; - return ref; -} - - -daeMetaElement * -domAsset::domContributor::domAuthoring_tool::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "authoring_tool" ); - _Meta->registerClass(domAsset::domContributor::domAuthoring_tool::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domAsset::domContributor::domAuthoring_tool , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAsset::domContributor::domAuthoring_tool)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domContributor::domComments::create(daeInt bytes) -{ - domAsset::domContributor::domCommentsRef ref = new(bytes) domAsset::domContributor::domComments; - return ref; -} - - -daeMetaElement * -domAsset::domContributor::domComments::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "comments" ); - _Meta->registerClass(domAsset::domContributor::domComments::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domAsset::domContributor::domComments , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAsset::domContributor::domComments)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domContributor::domCopyright::create(daeInt bytes) -{ - domAsset::domContributor::domCopyrightRef ref = new(bytes) domAsset::domContributor::domCopyright; - return ref; -} - - -daeMetaElement * -domAsset::domContributor::domCopyright::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "copyright" ); - _Meta->registerClass(domAsset::domContributor::domCopyright::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domAsset::domContributor::domCopyright , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAsset::domContributor::domCopyright)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domContributor::domSource_data::create(daeInt bytes) -{ - domAsset::domContributor::domSource_dataRef ref = new(bytes) domAsset::domContributor::domSource_data; - ref->_value.setContainer( (domAsset::domContributor::domSource_data*)ref ); - return ref; -} - - -daeMetaElement * -domAsset::domContributor::domSource_data::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "source_data" ); - _Meta->registerClass(domAsset::domContributor::domSource_data::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domAsset::domContributor::domSource_data , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAsset::domContributor::domSource_data)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domCreated::create(daeInt bytes) -{ - domAsset::domCreatedRef ref = new(bytes) domAsset::domCreated; - return ref; -} - - -daeMetaElement * -domAsset::domCreated::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "created" ); - _Meta->registerClass(domAsset::domCreated::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsDateTime")); - ma->setOffset( daeOffsetOf( domAsset::domCreated , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAsset::domCreated)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domKeywords::create(daeInt bytes) -{ - domAsset::domKeywordsRef ref = new(bytes) domAsset::domKeywords; - return ref; -} - - -daeMetaElement * -domAsset::domKeywords::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "keywords" ); - _Meta->registerClass(domAsset::domKeywords::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domAsset::domKeywords , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAsset::domKeywords)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domModified::create(daeInt bytes) -{ - domAsset::domModifiedRef ref = new(bytes) domAsset::domModified; - return ref; -} - - -daeMetaElement * -domAsset::domModified::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "modified" ); - _Meta->registerClass(domAsset::domModified::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsDateTime")); - ma->setOffset( daeOffsetOf( domAsset::domModified , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAsset::domModified)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domRevision::create(daeInt bytes) -{ - domAsset::domRevisionRef ref = new(bytes) domAsset::domRevision; - return ref; -} - - -daeMetaElement * -domAsset::domRevision::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "revision" ); - _Meta->registerClass(domAsset::domRevision::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domAsset::domRevision , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAsset::domRevision)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domSubject::create(daeInt bytes) -{ - domAsset::domSubjectRef ref = new(bytes) domAsset::domSubject; - return ref; -} - - -daeMetaElement * -domAsset::domSubject::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "subject" ); - _Meta->registerClass(domAsset::domSubject::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domAsset::domSubject , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAsset::domSubject)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domTitle::create(daeInt bytes) -{ - domAsset::domTitleRef ref = new(bytes) domAsset::domTitle; - return ref; -} - - -daeMetaElement * -domAsset::domTitle::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "title" ); - _Meta->registerClass(domAsset::domTitle::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domAsset::domTitle , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAsset::domTitle)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domUnit::create(daeInt bytes) -{ - domAsset::domUnitRef ref = new(bytes) domAsset::domUnit; - return ref; -} - - -daeMetaElement * -domAsset::domUnit::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "unit" ); - _Meta->registerClass(domAsset::domUnit::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: meter - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "meter" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domAsset::domUnit , attrMeter )); - ma->setContainer( _Meta ); - ma->setDefault( "1.0"); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNMTOKEN")); - ma->setOffset( daeOffsetOf( domAsset::domUnit , attrName )); - ma->setContainer( _Meta ); - ma->setDefault( "meter"); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAsset::domUnit)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domAsset::domUp_axis::create(daeInt bytes) -{ - domAsset::domUp_axisRef ref = new(bytes) domAsset::domUp_axis; - return ref; -} - - -daeMetaElement * -domAsset::domUp_axis::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "up_axis" ); - _Meta->registerClass(domAsset::domUp_axis::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("UpAxisType")); - ma->setOffset( daeOffsetOf( domAsset::domUp_axis , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domAsset::domUp_axis)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domAsset::_Meta = NULL; -daeMetaElement * domAsset::domContributor::_Meta = NULL; -daeMetaElement * domAsset::domContributor::domAuthor::_Meta = NULL; -daeMetaElement * domAsset::domContributor::domAuthoring_tool::_Meta = NULL; -daeMetaElement * domAsset::domContributor::domComments::_Meta = NULL; -daeMetaElement * domAsset::domContributor::domCopyright::_Meta = NULL; -daeMetaElement * domAsset::domContributor::domSource_data::_Meta = NULL; -daeMetaElement * domAsset::domCreated::_Meta = NULL; -daeMetaElement * domAsset::domKeywords::_Meta = NULL; -daeMetaElement * domAsset::domModified::_Meta = NULL; -daeMetaElement * domAsset::domRevision::_Meta = NULL; -daeMetaElement * domAsset::domSubject::_Meta = NULL; -daeMetaElement * domAsset::domTitle::_Meta = NULL; -daeMetaElement * domAsset::domUnit::_Meta = NULL; -daeMetaElement * domAsset::domUp_axis::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domBind_material.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domBind_material.cpp deleted file mode 100644 index baa8a565d..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domBind_material.cpp +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domBind_material::create(daeInt bytes) -{ - domBind_materialRef ref = new(bytes) domBind_material; - return ref; -} - - -daeMetaElement * -domBind_material::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bind_material" ); - _Meta->registerClass(domBind_material::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "param" ); - mea->setOffset( daeOffsetOf(domBind_material,elemParam_array) ); - mea->setElementType( domParam::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "technique_common" ); - mea->setOffset( daeOffsetOf(domBind_material,elemTechnique_common) ); - mea->setElementType( domBind_material::domTechnique_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domBind_material,elemTechnique_array) ); - mea->setElementType( domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domBind_material,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domBind_material)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domBind_material::domTechnique_common::create(daeInt bytes) -{ - domBind_material::domTechnique_commonRef ref = new(bytes) domBind_material::domTechnique_common; - return ref; -} - - -daeMetaElement * -domBind_material::domTechnique_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique_common" ); - _Meta->registerClass(domBind_material::domTechnique_common::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, -1 ); - mea->setName( "instance_material" ); - mea->setOffset( daeOffsetOf(domBind_material::domTechnique_common,elemInstance_material_array) ); - mea->setElementType( domInstance_material::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domBind_material::domTechnique_common)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domBind_material::_Meta = NULL; -daeMetaElement * domBind_material::domTechnique_common::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domBool_array.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domBool_array.cpp deleted file mode 100644 index e462d731b..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domBool_array.cpp +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domBool_array::create(daeInt bytes) -{ - domBool_arrayRef ref = new(bytes) domBool_array; - return ref; -} - - -daeMetaElement * -domBool_array::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool_array" ); - _Meta->registerClass(domBool_array::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("ListOfBools")); - ma->setOffset( daeOffsetOf( domBool_array , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domBool_array , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domBool_array , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domBool_array , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domBool_array)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domBool_array::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domBox.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domBox.cpp deleted file mode 100644 index c371769e9..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domBox.cpp +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domBox::create(daeInt bytes) -{ - domBoxRef ref = new(bytes) domBox; - return ref; -} - - -daeMetaElement * -domBox::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "box" ); - _Meta->registerClass(domBox::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half_extents" ); - mea->setOffset( daeOffsetOf(domBox,elemHalf_extents) ); - mea->setElementType( domBox::domHalf_extents::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domBox,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domBox)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domBox::domHalf_extents::create(daeInt bytes) -{ - domBox::domHalf_extentsRef ref = new(bytes) domBox::domHalf_extents; - return ref; -} - - -daeMetaElement * -domBox::domHalf_extents::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half_extents" ); - _Meta->registerClass(domBox::domHalf_extents::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domBox::domHalf_extents , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domBox::domHalf_extents)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domBox::_Meta = NULL; -daeMetaElement * domBox::domHalf_extents::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCOLLADA.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCOLLADA.cpp deleted file mode 100644 index 9a35dc6be..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCOLLADA.cpp +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -extern daeString COLLADA_VERSION; -extern daeString COLLADA_NAMESPACE; - -daeElementRef -domCOLLADA::create(daeInt bytes) -{ - domCOLLADARef ref = new(bytes) domCOLLADA; - ref->attrXmlns.setContainer( (domCOLLADA*)ref ); - ref->attrXml_base.setContainer( (domCOLLADA*)ref ); - ref->_meta = _Meta; - ref->setAttribute("version", COLLADA_VERSION ); - ref->setAttribute("xmlns", COLLADA_NAMESPACE ); - ref->_meta = NULL; - return ref; -} - - -daeMetaElement * -domCOLLADA::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "COLLADA" ); - _Meta->registerClass(domCOLLADA::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_animations" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_animations_array) ); - mea->setElementType( domLibrary_animations::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_animation_clips" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_animation_clips_array) ); - mea->setElementType( domLibrary_animation_clips::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_cameras" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_cameras_array) ); - mea->setElementType( domLibrary_cameras::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_controllers" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_controllers_array) ); - mea->setElementType( domLibrary_controllers::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_geometries" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_geometries_array) ); - mea->setElementType( domLibrary_geometries::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_effects" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_effects_array) ); - mea->setElementType( domLibrary_effects::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_force_fields" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_force_fields_array) ); - mea->setElementType( domLibrary_force_fields::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_images" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_images_array) ); - mea->setElementType( domLibrary_images::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_lights" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_lights_array) ); - mea->setElementType( domLibrary_lights::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_materials" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_materials_array) ); - mea->setElementType( domLibrary_materials::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_nodes" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_nodes_array) ); - mea->setElementType( domLibrary_nodes::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_physics_materials" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_physics_materials_array) ); - mea->setElementType( domLibrary_physics_materials::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_physics_models" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_physics_models_array) ); - mea->setElementType( domLibrary_physics_models::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_physics_scenes" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_physics_scenes_array) ); - mea->setElementType( domLibrary_physics_scenes::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "library_visual_scenes" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemLibrary_visual_scenes_array) ); - mea->setElementType( domLibrary_visual_scenes::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementAttribute( _Meta, cm, 3002, 0, 1 ); - mea->setName( "scene" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemScene) ); - mea->setElementType( domCOLLADA::domScene::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3003, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCOLLADA,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3003 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCOLLADA,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCOLLADA,_contentsOrder)); - - // Add attribute: xmlns - { - daeMetaAttribute* ma = new daeMetaAttribute; - ma->setName( "xmlns" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domCOLLADA , attrXmlns )); - ma->setContainer( _Meta ); - //ma->setIsRequired( true ); - _Meta->appendAttribute(ma); - } - - // Add attribute: version - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "version" ); - ma->setType( daeAtomicType::get("VersionType")); - ma->setOffset( daeOffsetOf( domCOLLADA , attrVersion )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: xml_base - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "xml_base" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domCOLLADA , attrXml_base )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCOLLADA)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCOLLADA::domScene::create(daeInt bytes) -{ - domCOLLADA::domSceneRef ref = new(bytes) domCOLLADA::domScene; - return ref; -} - - -daeMetaElement * -domCOLLADA::domScene::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "scene" ); - _Meta->registerClass(domCOLLADA::domScene::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "instance_physics_scene" ); - mea->setOffset( daeOffsetOf(domCOLLADA::domScene,elemInstance_physics_scene_array) ); - mea->setElementType( domInstanceWithExtra::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "instance_visual_scene" ); - mea->setOffset( daeOffsetOf(domCOLLADA::domScene,elemInstance_visual_scene) ); - mea->setElementType( domInstanceWithExtra::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCOLLADA::domScene,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domCOLLADA::domScene)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCOLLADA::_Meta = NULL; -daeMetaElement * domCOLLADA::domScene::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCamera.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCamera.cpp deleted file mode 100644 index 8d49b9d3a..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCamera.cpp +++ /dev/null @@ -1,454 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCamera::create(daeInt bytes) -{ - domCameraRef ref = new(bytes) domCamera; - return ref; -} - - -daeMetaElement * -domCamera::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "camera" ); - _Meta->registerClass(domCamera::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domCamera,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "optics" ); - mea->setOffset( daeOffsetOf(domCamera,elemOptics) ); - mea->setElementType( domCamera::domOptics::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "imager" ); - mea->setOffset( daeOffsetOf(domCamera,elemImager) ); - mea->setElementType( domCamera::domImager::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCamera,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domCamera , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCamera , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCamera)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCamera::domOptics::create(daeInt bytes) -{ - domCamera::domOpticsRef ref = new(bytes) domCamera::domOptics; - return ref; -} - - -daeMetaElement * -domCamera::domOptics::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "optics" ); - _Meta->registerClass(domCamera::domOptics::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "technique_common" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics,elemTechnique_common) ); - mea->setElementType( domCamera::domOptics::domTechnique_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics,elemTechnique_array) ); - mea->setElementType( domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domCamera::domOptics)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCamera::domOptics::domTechnique_common::create(daeInt bytes) -{ - domCamera::domOptics::domTechnique_commonRef ref = new(bytes) domCamera::domOptics::domTechnique_common; - return ref; -} - - -daeMetaElement * -domCamera::domOptics::domTechnique_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique_common" ); - _Meta->registerClass(domCamera::domOptics::domTechnique_common::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "orthographic" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common,elemOrthographic) ); - mea->setElementType( domCamera::domOptics::domTechnique_common::domOrthographic::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "perspective" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common,elemPerspective) ); - mea->setElementType( domCamera::domOptics::domTechnique_common::domPerspective::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCamera::domOptics::domTechnique_common,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCamera::domOptics::domTechnique_common,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domCamera::domOptics::domTechnique_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCamera::domOptics::domTechnique_common::domOrthographic::create(daeInt bytes) -{ - domCamera::domOptics::domTechnique_common::domOrthographicRef ref = new(bytes) domCamera::domOptics::domTechnique_common::domOrthographic; - return ref; -} - - -daeMetaElement * -domCamera::domOptics::domTechnique_common::domOrthographic::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "orthographic" ); - _Meta->registerClass(domCamera::domOptics::domTechnique_common::domOrthographic::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "xmag" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,elemXmag) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 0, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "ymag" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,elemYmag) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "aspect_ratio" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,elemAspect_ratio) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 1 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaSequence( _Meta, cm, 2, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "ymag" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,elemYmag) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "aspect_ratio" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,elemAspect_ratio) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 3 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "znear" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,elemZnear) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 1, 1 ); - mea->setName( "zfar" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,elemZfar) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCamera::domOptics::domTechnique_common::domOrthographic,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domCamera::domOptics::domTechnique_common::domOrthographic)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCamera::domOptics::domTechnique_common::domPerspective::create(daeInt bytes) -{ - domCamera::domOptics::domTechnique_common::domPerspectiveRef ref = new(bytes) domCamera::domOptics::domTechnique_common::domPerspective; - return ref; -} - - -daeMetaElement * -domCamera::domOptics::domTechnique_common::domPerspective::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "perspective" ); - _Meta->registerClass(domCamera::domOptics::domTechnique_common::domPerspective::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "xfov" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,elemXfov) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 0, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "yfov" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,elemYfov) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "aspect_ratio" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,elemAspect_ratio) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 1 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaSequence( _Meta, cm, 2, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "yfov" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,elemYfov) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "aspect_ratio" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,elemAspect_ratio) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 3 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "znear" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,elemZnear) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 1, 1 ); - mea->setName( "zfar" ); - mea->setOffset( daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,elemZfar) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCamera::domOptics::domTechnique_common::domPerspective,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domCamera::domOptics::domTechnique_common::domPerspective)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCamera::domImager::create(daeInt bytes) -{ - domCamera::domImagerRef ref = new(bytes) domCamera::domImager; - return ref; -} - - -daeMetaElement * -domCamera::domImager::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "imager" ); - _Meta->registerClass(domCamera::domImager::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domCamera::domImager,elemTechnique_array) ); - mea->setElementType( domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCamera::domImager,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domCamera::domImager)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCamera::_Meta = NULL; -daeMetaElement * domCamera::domOptics::_Meta = NULL; -daeMetaElement * domCamera::domOptics::domTechnique_common::_Meta = NULL; -daeMetaElement * domCamera::domOptics::domTechnique_common::domOrthographic::_Meta = NULL; -daeMetaElement * domCamera::domOptics::domTechnique_common::domPerspective::_Meta = NULL; -daeMetaElement * domCamera::domImager::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCapsule.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCapsule.cpp deleted file mode 100644 index b607e6de8..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCapsule.cpp +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCapsule::create(daeInt bytes) -{ - domCapsuleRef ref = new(bytes) domCapsule; - return ref; -} - - -daeMetaElement * -domCapsule::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "capsule" ); - _Meta->registerClass(domCapsule::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "height" ); - mea->setOffset( daeOffsetOf(domCapsule,elemHeight) ); - mea->setElementType( domCapsule::domHeight::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "radius" ); - mea->setOffset( daeOffsetOf(domCapsule,elemRadius) ); - mea->setElementType( domCapsule::domRadius::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCapsule,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domCapsule)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCapsule::domHeight::create(daeInt bytes) -{ - domCapsule::domHeightRef ref = new(bytes) domCapsule::domHeight; - return ref; -} - - -daeMetaElement * -domCapsule::domHeight::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "height" ); - _Meta->registerClass(domCapsule::domHeight::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domCapsule::domHeight , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCapsule::domHeight)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCapsule::domRadius::create(daeInt bytes) -{ - domCapsule::domRadiusRef ref = new(bytes) domCapsule::domRadius; - return ref; -} - - -daeMetaElement * -domCapsule::domRadius::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "radius" ); - _Meta->registerClass(domCapsule::domRadius::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domCapsule::domRadius , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCapsule::domRadius)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCapsule::_Meta = NULL; -daeMetaElement * domCapsule::domHeight::_Meta = NULL; -daeMetaElement * domCapsule::domRadius::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_connect_param.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_connect_param.cpp deleted file mode 100644 index 4e743d931..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_connect_param.cpp +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_connect_param::create(daeInt bytes) -{ - domCg_connect_paramRef ref = new(bytes) domCg_connect_param; - return ref; -} - - -daeMetaElement * -domCg_connect_param::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_connect_param" ); - _Meta->registerClass(domCg_connect_param::create, &_Meta); - - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("Cg_identifier")); - ma->setOffset( daeOffsetOf( domCg_connect_param , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_connect_param)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_connect_param::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_newarray_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_newarray_type.cpp deleted file mode 100644 index 454932a5e..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_newarray_type.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_newarray_type::create(daeInt bytes) -{ - domCg_newarray_typeRef ref = new(bytes) domCg_newarray_type; - return ref; -} - - -daeMetaElement * -domCg_newarray_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_newarray_type" ); - _Meta->registerClass(domCg_newarray_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "cg_param_type" ); - mea->setOffset( daeOffsetOf(domCg_newarray_type,elemCg_param_type_array) ); - mea->setElementType( domCg_param_type::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "array" ); - mea->setOffset( daeOffsetOf(domCg_newarray_type,elemArray_array) ); - mea->setElementType( domCg_newarray_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "usertype" ); - mea->setOffset( daeOffsetOf(domCg_newarray_type,elemUsertype_array) ); - mea->setElementType( domCg_setuser_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "connect_param" ); - mea->setOffset( daeOffsetOf(domCg_newarray_type,elemConnect_param_array) ); - mea->setElementType( domCg_connect_param::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3000 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCg_newarray_type,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCg_newarray_type,_contentsOrder)); - - - // Add attribute: length - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "length" ); - ma->setType( daeAtomicType::get("xsPositiveInteger")); - ma->setOffset( daeOffsetOf( domCg_newarray_type , attrLength )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_newarray_type)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_newarray_type::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_newparam.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_newparam.cpp deleted file mode 100644 index ba30c2d93..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_newparam.cpp +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_newparam::create(daeInt bytes) -{ - domCg_newparamRef ref = new(bytes) domCg_newparam; - return ref; -} - - -daeMetaElement * -domCg_newparam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_newparam" ); - _Meta->registerClass(domCg_newparam::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domCg_newparam,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "semantic" ); - mea->setOffset( daeOffsetOf(domCg_newparam,elemSemantic) ); - mea->setElementType( domCg_newparam::domSemantic::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "modifier" ); - mea->setOffset( daeOffsetOf(domCg_newparam,elemModifier) ); - mea->setElementType( domCg_newparam::domModifier::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 3, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "cg_param_type" ); - mea->setOffset( daeOffsetOf(domCg_newparam,elemCg_param_type) ); - mea->setElementType( domCg_param_type::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "usertype" ); - mea->setOffset( daeOffsetOf(domCg_newparam,elemUsertype) ); - mea->setElementType( domCg_setuser_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "array" ); - mea->setOffset( daeOffsetOf(domCg_newparam,elemArray) ); - mea->setElementType( domCg_newarray_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCg_newparam,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCg_newparam,_contentsOrder)); - - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("Cg_identifier")); - ma->setOffset( daeOffsetOf( domCg_newparam , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_newparam)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_newparam::domSemantic::create(daeInt bytes) -{ - domCg_newparam::domSemanticRef ref = new(bytes) domCg_newparam::domSemantic; - return ref; -} - - -daeMetaElement * -domCg_newparam::domSemantic::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "semantic" ); - _Meta->registerClass(domCg_newparam::domSemantic::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCg_newparam::domSemantic , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_newparam::domSemantic)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_newparam::domModifier::create(daeInt bytes) -{ - domCg_newparam::domModifierRef ref = new(bytes) domCg_newparam::domModifier; - return ref; -} - - -daeMetaElement * -domCg_newparam::domModifier::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "modifier" ); - _Meta->registerClass(domCg_newparam::domModifier::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_modifier_enum_common")); - ma->setOffset( daeOffsetOf( domCg_newparam::domModifier , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_newparam::domModifier)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_newparam::_Meta = NULL; -daeMetaElement * domCg_newparam::domSemantic::_Meta = NULL; -daeMetaElement * domCg_newparam::domModifier::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_param_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_param_type.cpp deleted file mode 100644 index d62bf7616..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_param_type.cpp +++ /dev/null @@ -1,4598 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_param_type::create(daeInt bytes) -{ - domCg_param_typeRef ref = new(bytes) domCg_param_type; - return ref; -} - - -daeMetaElement * -domCg_param_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_param_type" ); - _Meta->registerClass(domCg_param_type::create, &_Meta); - - _Meta->setIsTransparent( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool) ); - mea->setElementType( domCg_param_type::domBool::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool1) ); - mea->setElementType( domCg_param_type::domBool1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool2) ); - mea->setElementType( domCg_param_type::domBool2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool3) ); - mea->setElementType( domCg_param_type::domBool3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool4) ); - mea->setElementType( domCg_param_type::domBool4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool1x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool1x1) ); - mea->setElementType( domCg_param_type::domBool1x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool1x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool1x2) ); - mea->setElementType( domCg_param_type::domBool1x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool1x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool1x3) ); - mea->setElementType( domCg_param_type::domBool1x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool1x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool1x4) ); - mea->setElementType( domCg_param_type::domBool1x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool2x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool2x1) ); - mea->setElementType( domCg_param_type::domBool2x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool2x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool2x2) ); - mea->setElementType( domCg_param_type::domBool2x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool2x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool2x3) ); - mea->setElementType( domCg_param_type::domBool2x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool2x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool2x4) ); - mea->setElementType( domCg_param_type::domBool2x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool3x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool3x1) ); - mea->setElementType( domCg_param_type::domBool3x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool3x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool3x2) ); - mea->setElementType( domCg_param_type::domBool3x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool3x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool3x3) ); - mea->setElementType( domCg_param_type::domBool3x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool3x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool3x4) ); - mea->setElementType( domCg_param_type::domBool3x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool4x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool4x1) ); - mea->setElementType( domCg_param_type::domBool4x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool4x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool4x2) ); - mea->setElementType( domCg_param_type::domBool4x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool4x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool4x3) ); - mea->setElementType( domCg_param_type::domBool4x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool4x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemBool4x4) ); - mea->setElementType( domCg_param_type::domBool4x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat) ); - mea->setElementType( domCg_param_type::domFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat1) ); - mea->setElementType( domCg_param_type::domFloat1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat2) ); - mea->setElementType( domCg_param_type::domFloat2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat3) ); - mea->setElementType( domCg_param_type::domFloat3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat4) ); - mea->setElementType( domCg_param_type::domFloat4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float1x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat1x1) ); - mea->setElementType( domCg_param_type::domFloat1x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float1x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat1x2) ); - mea->setElementType( domCg_param_type::domFloat1x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float1x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat1x3) ); - mea->setElementType( domCg_param_type::domFloat1x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float1x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat1x4) ); - mea->setElementType( domCg_param_type::domFloat1x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat2x1) ); - mea->setElementType( domCg_param_type::domFloat2x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat2x2) ); - mea->setElementType( domCg_param_type::domFloat2x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat2x3) ); - mea->setElementType( domCg_param_type::domFloat2x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat2x4) ); - mea->setElementType( domCg_param_type::domFloat2x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat3x1) ); - mea->setElementType( domCg_param_type::domFloat3x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat3x2) ); - mea->setElementType( domCg_param_type::domFloat3x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat3x3) ); - mea->setElementType( domCg_param_type::domFloat3x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat3x4) ); - mea->setElementType( domCg_param_type::domFloat3x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat4x1) ); - mea->setElementType( domCg_param_type::domFloat4x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat4x2) ); - mea->setElementType( domCg_param_type::domFloat4x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat4x3) ); - mea->setElementType( domCg_param_type::domFloat4x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFloat4x4) ); - mea->setElementType( domCg_param_type::domFloat4x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt) ); - mea->setElementType( domCg_param_type::domInt::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt1) ); - mea->setElementType( domCg_param_type::domInt1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt2) ); - mea->setElementType( domCg_param_type::domInt2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt3) ); - mea->setElementType( domCg_param_type::domInt3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt4) ); - mea->setElementType( domCg_param_type::domInt4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int1x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt1x1) ); - mea->setElementType( domCg_param_type::domInt1x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int1x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt1x2) ); - mea->setElementType( domCg_param_type::domInt1x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int1x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt1x3) ); - mea->setElementType( domCg_param_type::domInt1x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int1x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt1x4) ); - mea->setElementType( domCg_param_type::domInt1x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int2x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt2x1) ); - mea->setElementType( domCg_param_type::domInt2x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int2x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt2x2) ); - mea->setElementType( domCg_param_type::domInt2x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int2x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt2x3) ); - mea->setElementType( domCg_param_type::domInt2x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int2x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt2x4) ); - mea->setElementType( domCg_param_type::domInt2x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int3x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt3x1) ); - mea->setElementType( domCg_param_type::domInt3x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int3x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt3x2) ); - mea->setElementType( domCg_param_type::domInt3x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int3x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt3x3) ); - mea->setElementType( domCg_param_type::domInt3x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int3x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt3x4) ); - mea->setElementType( domCg_param_type::domInt3x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int4x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt4x1) ); - mea->setElementType( domCg_param_type::domInt4x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int4x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt4x2) ); - mea->setElementType( domCg_param_type::domInt4x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int4x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt4x3) ); - mea->setElementType( domCg_param_type::domInt4x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int4x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemInt4x4) ); - mea->setElementType( domCg_param_type::domInt4x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf) ); - mea->setElementType( domCg_param_type::domHalf::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf1) ); - mea->setElementType( domCg_param_type::domHalf1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf2) ); - mea->setElementType( domCg_param_type::domHalf2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf3) ); - mea->setElementType( domCg_param_type::domHalf3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf4) ); - mea->setElementType( domCg_param_type::domHalf4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half1x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf1x1) ); - mea->setElementType( domCg_param_type::domHalf1x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half1x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf1x2) ); - mea->setElementType( domCg_param_type::domHalf1x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half1x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf1x3) ); - mea->setElementType( domCg_param_type::domHalf1x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half1x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf1x4) ); - mea->setElementType( domCg_param_type::domHalf1x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half2x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf2x1) ); - mea->setElementType( domCg_param_type::domHalf2x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half2x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf2x2) ); - mea->setElementType( domCg_param_type::domHalf2x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half2x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf2x3) ); - mea->setElementType( domCg_param_type::domHalf2x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half2x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf2x4) ); - mea->setElementType( domCg_param_type::domHalf2x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half3x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf3x1) ); - mea->setElementType( domCg_param_type::domHalf3x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half3x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf3x2) ); - mea->setElementType( domCg_param_type::domHalf3x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half3x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf3x3) ); - mea->setElementType( domCg_param_type::domHalf3x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half3x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf3x4) ); - mea->setElementType( domCg_param_type::domHalf3x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half4x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf4x1) ); - mea->setElementType( domCg_param_type::domHalf4x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half4x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf4x2) ); - mea->setElementType( domCg_param_type::domHalf4x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half4x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf4x3) ); - mea->setElementType( domCg_param_type::domHalf4x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "half4x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemHalf4x4) ); - mea->setElementType( domCg_param_type::domHalf4x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed) ); - mea->setElementType( domCg_param_type::domFixed::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed1) ); - mea->setElementType( domCg_param_type::domFixed1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed2) ); - mea->setElementType( domCg_param_type::domFixed2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed3) ); - mea->setElementType( domCg_param_type::domFixed3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed4) ); - mea->setElementType( domCg_param_type::domFixed4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed1x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed1x1) ); - mea->setElementType( domCg_param_type::domFixed1x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed1x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed1x2) ); - mea->setElementType( domCg_param_type::domFixed1x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed1x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed1x3) ); - mea->setElementType( domCg_param_type::domFixed1x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed1x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed1x4) ); - mea->setElementType( domCg_param_type::domFixed1x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed2x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed2x1) ); - mea->setElementType( domCg_param_type::domFixed2x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed2x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed2x2) ); - mea->setElementType( domCg_param_type::domFixed2x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed2x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed2x3) ); - mea->setElementType( domCg_param_type::domFixed2x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed2x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed2x4) ); - mea->setElementType( domCg_param_type::domFixed2x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed3x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed3x1) ); - mea->setElementType( domCg_param_type::domFixed3x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed3x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed3x2) ); - mea->setElementType( domCg_param_type::domFixed3x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed3x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed3x3) ); - mea->setElementType( domCg_param_type::domFixed3x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed3x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed3x4) ); - mea->setElementType( domCg_param_type::domFixed3x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed4x1" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed4x1) ); - mea->setElementType( domCg_param_type::domFixed4x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed4x2" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed4x2) ); - mea->setElementType( domCg_param_type::domFixed4x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed4x3" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed4x3) ); - mea->setElementType( domCg_param_type::domFixed4x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fixed4x4" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemFixed4x4) ); - mea->setElementType( domCg_param_type::domFixed4x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "surface" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemSurface) ); - mea->setElementType( domCg_surface_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sampler1D" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemSampler1D) ); - mea->setElementType( domCg_sampler1D::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sampler2D" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemSampler2D) ); - mea->setElementType( domCg_sampler2D::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sampler3D" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemSampler3D) ); - mea->setElementType( domCg_sampler3D::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "samplerRECT" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemSamplerRECT) ); - mea->setElementType( domCg_samplerRECT::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "samplerCUBE" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemSamplerCUBE) ); - mea->setElementType( domCg_samplerCUBE::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "samplerDEPTH" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemSamplerDEPTH) ); - mea->setElementType( domCg_samplerDEPTH::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "string" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemString) ); - mea->setElementType( domCg_param_type::domString::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "enum" ); - mea->setOffset( daeOffsetOf(domCg_param_type,elemEnum) ); - mea->setElementType( domCg_param_type::domEnum::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCg_param_type,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCg_param_type,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domCg_param_type)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool::create(daeInt bytes) -{ - domCg_param_type::domBoolRef ref = new(bytes) domCg_param_type::domBool; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool" ); - _Meta->registerClass(domCg_param_type::domBool::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool1::create(daeInt bytes) -{ - domCg_param_type::domBool1Ref ref = new(bytes) domCg_param_type::domBool1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool1" ); - _Meta->registerClass(domCg_param_type::domBool1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool2::create(daeInt bytes) -{ - domCg_param_type::domBool2Ref ref = new(bytes) domCg_param_type::domBool2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool2" ); - _Meta->registerClass(domCg_param_type::domBool2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool3::create(daeInt bytes) -{ - domCg_param_type::domBool3Ref ref = new(bytes) domCg_param_type::domBool3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool3" ); - _Meta->registerClass(domCg_param_type::domBool3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool4::create(daeInt bytes) -{ - domCg_param_type::domBool4Ref ref = new(bytes) domCg_param_type::domBool4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool4" ); - _Meta->registerClass(domCg_param_type::domBool4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool1x1::create(daeInt bytes) -{ - domCg_param_type::domBool1x1Ref ref = new(bytes) domCg_param_type::domBool1x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool1x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool1x1" ); - _Meta->registerClass(domCg_param_type::domBool1x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool1x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool1x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool1x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool1x2::create(daeInt bytes) -{ - domCg_param_type::domBool1x2Ref ref = new(bytes) domCg_param_type::domBool1x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool1x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool1x2" ); - _Meta->registerClass(domCg_param_type::domBool1x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool1x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool1x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool1x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool1x3::create(daeInt bytes) -{ - domCg_param_type::domBool1x3Ref ref = new(bytes) domCg_param_type::domBool1x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool1x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool1x3" ); - _Meta->registerClass(domCg_param_type::domBool1x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool1x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool1x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool1x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool1x4::create(daeInt bytes) -{ - domCg_param_type::domBool1x4Ref ref = new(bytes) domCg_param_type::domBool1x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool1x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool1x4" ); - _Meta->registerClass(domCg_param_type::domBool1x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool1x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool1x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool1x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool2x1::create(daeInt bytes) -{ - domCg_param_type::domBool2x1Ref ref = new(bytes) domCg_param_type::domBool2x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool2x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool2x1" ); - _Meta->registerClass(domCg_param_type::domBool2x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool2x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool2x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool2x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool2x2::create(daeInt bytes) -{ - domCg_param_type::domBool2x2Ref ref = new(bytes) domCg_param_type::domBool2x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool2x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool2x2" ); - _Meta->registerClass(domCg_param_type::domBool2x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool2x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool2x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool2x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool2x3::create(daeInt bytes) -{ - domCg_param_type::domBool2x3Ref ref = new(bytes) domCg_param_type::domBool2x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool2x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool2x3" ); - _Meta->registerClass(domCg_param_type::domBool2x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool2x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool2x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool2x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool2x4::create(daeInt bytes) -{ - domCg_param_type::domBool2x4Ref ref = new(bytes) domCg_param_type::domBool2x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool2x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool2x4" ); - _Meta->registerClass(domCg_param_type::domBool2x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool2x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool2x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool2x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool3x1::create(daeInt bytes) -{ - domCg_param_type::domBool3x1Ref ref = new(bytes) domCg_param_type::domBool3x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool3x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool3x1" ); - _Meta->registerClass(domCg_param_type::domBool3x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool3x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool3x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool3x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool3x2::create(daeInt bytes) -{ - domCg_param_type::domBool3x2Ref ref = new(bytes) domCg_param_type::domBool3x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool3x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool3x2" ); - _Meta->registerClass(domCg_param_type::domBool3x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool3x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool3x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool3x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool3x3::create(daeInt bytes) -{ - domCg_param_type::domBool3x3Ref ref = new(bytes) domCg_param_type::domBool3x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool3x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool3x3" ); - _Meta->registerClass(domCg_param_type::domBool3x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool3x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool3x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool3x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool3x4::create(daeInt bytes) -{ - domCg_param_type::domBool3x4Ref ref = new(bytes) domCg_param_type::domBool3x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool3x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool3x4" ); - _Meta->registerClass(domCg_param_type::domBool3x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool3x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool3x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool3x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool4x1::create(daeInt bytes) -{ - domCg_param_type::domBool4x1Ref ref = new(bytes) domCg_param_type::domBool4x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool4x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool4x1" ); - _Meta->registerClass(domCg_param_type::domBool4x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool4x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool4x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool4x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool4x2::create(daeInt bytes) -{ - domCg_param_type::domBool4x2Ref ref = new(bytes) domCg_param_type::domBool4x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool4x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool4x2" ); - _Meta->registerClass(domCg_param_type::domBool4x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool4x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool4x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool4x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool4x3::create(daeInt bytes) -{ - domCg_param_type::domBool4x3Ref ref = new(bytes) domCg_param_type::domBool4x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool4x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool4x3" ); - _Meta->registerClass(domCg_param_type::domBool4x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool4x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool4x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool4x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domBool4x4::create(daeInt bytes) -{ - domCg_param_type::domBool4x4Ref ref = new(bytes) domCg_param_type::domBool4x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domBool4x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool4x4" ); - _Meta->registerClass(domCg_param_type::domBool4x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_bool4x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domBool4x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domBool4x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat::create(daeInt bytes) -{ - domCg_param_type::domFloatRef ref = new(bytes) domCg_param_type::domFloat; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float" ); - _Meta->registerClass(domCg_param_type::domFloat::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat1::create(daeInt bytes) -{ - domCg_param_type::domFloat1Ref ref = new(bytes) domCg_param_type::domFloat1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float1" ); - _Meta->registerClass(domCg_param_type::domFloat1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat2::create(daeInt bytes) -{ - domCg_param_type::domFloat2Ref ref = new(bytes) domCg_param_type::domFloat2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2" ); - _Meta->registerClass(domCg_param_type::domFloat2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat3::create(daeInt bytes) -{ - domCg_param_type::domFloat3Ref ref = new(bytes) domCg_param_type::domFloat3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3" ); - _Meta->registerClass(domCg_param_type::domFloat3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat4::create(daeInt bytes) -{ - domCg_param_type::domFloat4Ref ref = new(bytes) domCg_param_type::domFloat4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4" ); - _Meta->registerClass(domCg_param_type::domFloat4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat1x1::create(daeInt bytes) -{ - domCg_param_type::domFloat1x1Ref ref = new(bytes) domCg_param_type::domFloat1x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat1x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float1x1" ); - _Meta->registerClass(domCg_param_type::domFloat1x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float1x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat1x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat1x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat1x2::create(daeInt bytes) -{ - domCg_param_type::domFloat1x2Ref ref = new(bytes) domCg_param_type::domFloat1x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat1x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float1x2" ); - _Meta->registerClass(domCg_param_type::domFloat1x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float1x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat1x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat1x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat1x3::create(daeInt bytes) -{ - domCg_param_type::domFloat1x3Ref ref = new(bytes) domCg_param_type::domFloat1x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat1x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float1x3" ); - _Meta->registerClass(domCg_param_type::domFloat1x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float1x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat1x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat1x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat1x4::create(daeInt bytes) -{ - domCg_param_type::domFloat1x4Ref ref = new(bytes) domCg_param_type::domFloat1x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat1x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float1x4" ); - _Meta->registerClass(domCg_param_type::domFloat1x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float1x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat1x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat1x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat2x1::create(daeInt bytes) -{ - domCg_param_type::domFloat2x1Ref ref = new(bytes) domCg_param_type::domFloat2x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat2x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x1" ); - _Meta->registerClass(domCg_param_type::domFloat2x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float2x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat2x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat2x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat2x2::create(daeInt bytes) -{ - domCg_param_type::domFloat2x2Ref ref = new(bytes) domCg_param_type::domFloat2x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat2x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x2" ); - _Meta->registerClass(domCg_param_type::domFloat2x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float2x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat2x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat2x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat2x3::create(daeInt bytes) -{ - domCg_param_type::domFloat2x3Ref ref = new(bytes) domCg_param_type::domFloat2x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat2x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x3" ); - _Meta->registerClass(domCg_param_type::domFloat2x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float2x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat2x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat2x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat2x4::create(daeInt bytes) -{ - domCg_param_type::domFloat2x4Ref ref = new(bytes) domCg_param_type::domFloat2x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat2x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x4" ); - _Meta->registerClass(domCg_param_type::domFloat2x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float2x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat2x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat2x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat3x1::create(daeInt bytes) -{ - domCg_param_type::domFloat3x1Ref ref = new(bytes) domCg_param_type::domFloat3x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat3x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x1" ); - _Meta->registerClass(domCg_param_type::domFloat3x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float3x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat3x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat3x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat3x2::create(daeInt bytes) -{ - domCg_param_type::domFloat3x2Ref ref = new(bytes) domCg_param_type::domFloat3x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat3x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x2" ); - _Meta->registerClass(domCg_param_type::domFloat3x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float3x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat3x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat3x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat3x3::create(daeInt bytes) -{ - domCg_param_type::domFloat3x3Ref ref = new(bytes) domCg_param_type::domFloat3x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat3x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x3" ); - _Meta->registerClass(domCg_param_type::domFloat3x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float3x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat3x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat3x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat3x4::create(daeInt bytes) -{ - domCg_param_type::domFloat3x4Ref ref = new(bytes) domCg_param_type::domFloat3x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat3x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x4" ); - _Meta->registerClass(domCg_param_type::domFloat3x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float3x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat3x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat3x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat4x1::create(daeInt bytes) -{ - domCg_param_type::domFloat4x1Ref ref = new(bytes) domCg_param_type::domFloat4x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat4x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x1" ); - _Meta->registerClass(domCg_param_type::domFloat4x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float4x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat4x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat4x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat4x2::create(daeInt bytes) -{ - domCg_param_type::domFloat4x2Ref ref = new(bytes) domCg_param_type::domFloat4x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat4x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x2" ); - _Meta->registerClass(domCg_param_type::domFloat4x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float4x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat4x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat4x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat4x3::create(daeInt bytes) -{ - domCg_param_type::domFloat4x3Ref ref = new(bytes) domCg_param_type::domFloat4x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat4x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x3" ); - _Meta->registerClass(domCg_param_type::domFloat4x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float4x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat4x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat4x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFloat4x4::create(daeInt bytes) -{ - domCg_param_type::domFloat4x4Ref ref = new(bytes) domCg_param_type::domFloat4x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFloat4x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x4" ); - _Meta->registerClass(domCg_param_type::domFloat4x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_float4x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFloat4x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFloat4x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt::create(daeInt bytes) -{ - domCg_param_type::domIntRef ref = new(bytes) domCg_param_type::domInt; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int" ); - _Meta->registerClass(domCg_param_type::domInt::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt1::create(daeInt bytes) -{ - domCg_param_type::domInt1Ref ref = new(bytes) domCg_param_type::domInt1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int1" ); - _Meta->registerClass(domCg_param_type::domInt1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt2::create(daeInt bytes) -{ - domCg_param_type::domInt2Ref ref = new(bytes) domCg_param_type::domInt2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int2" ); - _Meta->registerClass(domCg_param_type::domInt2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt3::create(daeInt bytes) -{ - domCg_param_type::domInt3Ref ref = new(bytes) domCg_param_type::domInt3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int3" ); - _Meta->registerClass(domCg_param_type::domInt3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt4::create(daeInt bytes) -{ - domCg_param_type::domInt4Ref ref = new(bytes) domCg_param_type::domInt4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int4" ); - _Meta->registerClass(domCg_param_type::domInt4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt1x1::create(daeInt bytes) -{ - domCg_param_type::domInt1x1Ref ref = new(bytes) domCg_param_type::domInt1x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt1x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int1x1" ); - _Meta->registerClass(domCg_param_type::domInt1x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int1x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt1x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt1x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt1x2::create(daeInt bytes) -{ - domCg_param_type::domInt1x2Ref ref = new(bytes) domCg_param_type::domInt1x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt1x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int1x2" ); - _Meta->registerClass(domCg_param_type::domInt1x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int1x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt1x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt1x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt1x3::create(daeInt bytes) -{ - domCg_param_type::domInt1x3Ref ref = new(bytes) domCg_param_type::domInt1x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt1x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int1x3" ); - _Meta->registerClass(domCg_param_type::domInt1x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int1x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt1x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt1x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt1x4::create(daeInt bytes) -{ - domCg_param_type::domInt1x4Ref ref = new(bytes) domCg_param_type::domInt1x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt1x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int1x4" ); - _Meta->registerClass(domCg_param_type::domInt1x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int1x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt1x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt1x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt2x1::create(daeInt bytes) -{ - domCg_param_type::domInt2x1Ref ref = new(bytes) domCg_param_type::domInt2x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt2x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int2x1" ); - _Meta->registerClass(domCg_param_type::domInt2x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int2x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt2x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt2x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt2x2::create(daeInt bytes) -{ - domCg_param_type::domInt2x2Ref ref = new(bytes) domCg_param_type::domInt2x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt2x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int2x2" ); - _Meta->registerClass(domCg_param_type::domInt2x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int2x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt2x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt2x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt2x3::create(daeInt bytes) -{ - domCg_param_type::domInt2x3Ref ref = new(bytes) domCg_param_type::domInt2x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt2x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int2x3" ); - _Meta->registerClass(domCg_param_type::domInt2x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int2x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt2x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt2x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt2x4::create(daeInt bytes) -{ - domCg_param_type::domInt2x4Ref ref = new(bytes) domCg_param_type::domInt2x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt2x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int2x4" ); - _Meta->registerClass(domCg_param_type::domInt2x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int2x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt2x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt2x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt3x1::create(daeInt bytes) -{ - domCg_param_type::domInt3x1Ref ref = new(bytes) domCg_param_type::domInt3x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt3x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int3x1" ); - _Meta->registerClass(domCg_param_type::domInt3x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int3x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt3x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt3x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt3x2::create(daeInt bytes) -{ - domCg_param_type::domInt3x2Ref ref = new(bytes) domCg_param_type::domInt3x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt3x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int3x2" ); - _Meta->registerClass(domCg_param_type::domInt3x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int3x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt3x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt3x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt3x3::create(daeInt bytes) -{ - domCg_param_type::domInt3x3Ref ref = new(bytes) domCg_param_type::domInt3x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt3x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int3x3" ); - _Meta->registerClass(domCg_param_type::domInt3x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int3x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt3x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt3x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt3x4::create(daeInt bytes) -{ - domCg_param_type::domInt3x4Ref ref = new(bytes) domCg_param_type::domInt3x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt3x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int3x4" ); - _Meta->registerClass(domCg_param_type::domInt3x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int3x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt3x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt3x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt4x1::create(daeInt bytes) -{ - domCg_param_type::domInt4x1Ref ref = new(bytes) domCg_param_type::domInt4x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt4x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int4x1" ); - _Meta->registerClass(domCg_param_type::domInt4x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int4x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt4x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt4x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt4x2::create(daeInt bytes) -{ - domCg_param_type::domInt4x2Ref ref = new(bytes) domCg_param_type::domInt4x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt4x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int4x2" ); - _Meta->registerClass(domCg_param_type::domInt4x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int4x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt4x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt4x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt4x3::create(daeInt bytes) -{ - domCg_param_type::domInt4x3Ref ref = new(bytes) domCg_param_type::domInt4x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt4x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int4x3" ); - _Meta->registerClass(domCg_param_type::domInt4x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int4x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt4x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt4x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domInt4x4::create(daeInt bytes) -{ - domCg_param_type::domInt4x4Ref ref = new(bytes) domCg_param_type::domInt4x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domInt4x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int4x4" ); - _Meta->registerClass(domCg_param_type::domInt4x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_int4x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domInt4x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domInt4x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf::create(daeInt bytes) -{ - domCg_param_type::domHalfRef ref = new(bytes) domCg_param_type::domHalf; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half" ); - _Meta->registerClass(domCg_param_type::domHalf::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf1::create(daeInt bytes) -{ - domCg_param_type::domHalf1Ref ref = new(bytes) domCg_param_type::domHalf1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half1" ); - _Meta->registerClass(domCg_param_type::domHalf1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf2::create(daeInt bytes) -{ - domCg_param_type::domHalf2Ref ref = new(bytes) domCg_param_type::domHalf2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half2" ); - _Meta->registerClass(domCg_param_type::domHalf2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf3::create(daeInt bytes) -{ - domCg_param_type::domHalf3Ref ref = new(bytes) domCg_param_type::domHalf3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half3" ); - _Meta->registerClass(domCg_param_type::domHalf3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf4::create(daeInt bytes) -{ - domCg_param_type::domHalf4Ref ref = new(bytes) domCg_param_type::domHalf4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half4" ); - _Meta->registerClass(domCg_param_type::domHalf4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf1x1::create(daeInt bytes) -{ - domCg_param_type::domHalf1x1Ref ref = new(bytes) domCg_param_type::domHalf1x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf1x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half1x1" ); - _Meta->registerClass(domCg_param_type::domHalf1x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half1x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf1x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf1x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf1x2::create(daeInt bytes) -{ - domCg_param_type::domHalf1x2Ref ref = new(bytes) domCg_param_type::domHalf1x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf1x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half1x2" ); - _Meta->registerClass(domCg_param_type::domHalf1x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half1x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf1x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf1x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf1x3::create(daeInt bytes) -{ - domCg_param_type::domHalf1x3Ref ref = new(bytes) domCg_param_type::domHalf1x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf1x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half1x3" ); - _Meta->registerClass(domCg_param_type::domHalf1x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half1x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf1x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf1x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf1x4::create(daeInt bytes) -{ - domCg_param_type::domHalf1x4Ref ref = new(bytes) domCg_param_type::domHalf1x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf1x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half1x4" ); - _Meta->registerClass(domCg_param_type::domHalf1x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half1x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf1x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf1x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf2x1::create(daeInt bytes) -{ - domCg_param_type::domHalf2x1Ref ref = new(bytes) domCg_param_type::domHalf2x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf2x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half2x1" ); - _Meta->registerClass(domCg_param_type::domHalf2x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half2x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf2x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf2x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf2x2::create(daeInt bytes) -{ - domCg_param_type::domHalf2x2Ref ref = new(bytes) domCg_param_type::domHalf2x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf2x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half2x2" ); - _Meta->registerClass(domCg_param_type::domHalf2x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half2x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf2x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf2x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf2x3::create(daeInt bytes) -{ - domCg_param_type::domHalf2x3Ref ref = new(bytes) domCg_param_type::domHalf2x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf2x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half2x3" ); - _Meta->registerClass(domCg_param_type::domHalf2x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half2x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf2x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf2x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf2x4::create(daeInt bytes) -{ - domCg_param_type::domHalf2x4Ref ref = new(bytes) domCg_param_type::domHalf2x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf2x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half2x4" ); - _Meta->registerClass(domCg_param_type::domHalf2x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half2x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf2x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf2x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf3x1::create(daeInt bytes) -{ - domCg_param_type::domHalf3x1Ref ref = new(bytes) domCg_param_type::domHalf3x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf3x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half3x1" ); - _Meta->registerClass(domCg_param_type::domHalf3x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half3x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf3x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf3x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf3x2::create(daeInt bytes) -{ - domCg_param_type::domHalf3x2Ref ref = new(bytes) domCg_param_type::domHalf3x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf3x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half3x2" ); - _Meta->registerClass(domCg_param_type::domHalf3x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half3x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf3x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf3x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf3x3::create(daeInt bytes) -{ - domCg_param_type::domHalf3x3Ref ref = new(bytes) domCg_param_type::domHalf3x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf3x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half3x3" ); - _Meta->registerClass(domCg_param_type::domHalf3x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half3x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf3x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf3x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf3x4::create(daeInt bytes) -{ - domCg_param_type::domHalf3x4Ref ref = new(bytes) domCg_param_type::domHalf3x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf3x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half3x4" ); - _Meta->registerClass(domCg_param_type::domHalf3x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half3x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf3x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf3x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf4x1::create(daeInt bytes) -{ - domCg_param_type::domHalf4x1Ref ref = new(bytes) domCg_param_type::domHalf4x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf4x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half4x1" ); - _Meta->registerClass(domCg_param_type::domHalf4x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half4x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf4x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf4x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf4x2::create(daeInt bytes) -{ - domCg_param_type::domHalf4x2Ref ref = new(bytes) domCg_param_type::domHalf4x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf4x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half4x2" ); - _Meta->registerClass(domCg_param_type::domHalf4x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half4x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf4x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf4x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf4x3::create(daeInt bytes) -{ - domCg_param_type::domHalf4x3Ref ref = new(bytes) domCg_param_type::domHalf4x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf4x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half4x3" ); - _Meta->registerClass(domCg_param_type::domHalf4x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half4x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf4x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf4x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domHalf4x4::create(daeInt bytes) -{ - domCg_param_type::domHalf4x4Ref ref = new(bytes) domCg_param_type::domHalf4x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domHalf4x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "half4x4" ); - _Meta->registerClass(domCg_param_type::domHalf4x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_half4x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domHalf4x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domHalf4x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed::create(daeInt bytes) -{ - domCg_param_type::domFixedRef ref = new(bytes) domCg_param_type::domFixed; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed" ); - _Meta->registerClass(domCg_param_type::domFixed::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed1::create(daeInt bytes) -{ - domCg_param_type::domFixed1Ref ref = new(bytes) domCg_param_type::domFixed1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed1" ); - _Meta->registerClass(domCg_param_type::domFixed1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed2::create(daeInt bytes) -{ - domCg_param_type::domFixed2Ref ref = new(bytes) domCg_param_type::domFixed2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed2" ); - _Meta->registerClass(domCg_param_type::domFixed2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed3::create(daeInt bytes) -{ - domCg_param_type::domFixed3Ref ref = new(bytes) domCg_param_type::domFixed3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed3" ); - _Meta->registerClass(domCg_param_type::domFixed3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed4::create(daeInt bytes) -{ - domCg_param_type::domFixed4Ref ref = new(bytes) domCg_param_type::domFixed4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed4" ); - _Meta->registerClass(domCg_param_type::domFixed4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed1x1::create(daeInt bytes) -{ - domCg_param_type::domFixed1x1Ref ref = new(bytes) domCg_param_type::domFixed1x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed1x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed1x1" ); - _Meta->registerClass(domCg_param_type::domFixed1x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed1x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed1x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed1x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed1x2::create(daeInt bytes) -{ - domCg_param_type::domFixed1x2Ref ref = new(bytes) domCg_param_type::domFixed1x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed1x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed1x2" ); - _Meta->registerClass(domCg_param_type::domFixed1x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed1x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed1x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed1x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed1x3::create(daeInt bytes) -{ - domCg_param_type::domFixed1x3Ref ref = new(bytes) domCg_param_type::domFixed1x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed1x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed1x3" ); - _Meta->registerClass(domCg_param_type::domFixed1x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed1x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed1x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed1x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed1x4::create(daeInt bytes) -{ - domCg_param_type::domFixed1x4Ref ref = new(bytes) domCg_param_type::domFixed1x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed1x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed1x4" ); - _Meta->registerClass(domCg_param_type::domFixed1x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed1x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed1x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed1x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed2x1::create(daeInt bytes) -{ - domCg_param_type::domFixed2x1Ref ref = new(bytes) domCg_param_type::domFixed2x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed2x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed2x1" ); - _Meta->registerClass(domCg_param_type::domFixed2x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed2x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed2x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed2x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed2x2::create(daeInt bytes) -{ - domCg_param_type::domFixed2x2Ref ref = new(bytes) domCg_param_type::domFixed2x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed2x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed2x2" ); - _Meta->registerClass(domCg_param_type::domFixed2x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed2x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed2x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed2x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed2x3::create(daeInt bytes) -{ - domCg_param_type::domFixed2x3Ref ref = new(bytes) domCg_param_type::domFixed2x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed2x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed2x3" ); - _Meta->registerClass(domCg_param_type::domFixed2x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed2x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed2x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed2x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed2x4::create(daeInt bytes) -{ - domCg_param_type::domFixed2x4Ref ref = new(bytes) domCg_param_type::domFixed2x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed2x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed2x4" ); - _Meta->registerClass(domCg_param_type::domFixed2x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed2x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed2x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed2x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed3x1::create(daeInt bytes) -{ - domCg_param_type::domFixed3x1Ref ref = new(bytes) domCg_param_type::domFixed3x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed3x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed3x1" ); - _Meta->registerClass(domCg_param_type::domFixed3x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed3x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed3x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed3x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed3x2::create(daeInt bytes) -{ - domCg_param_type::domFixed3x2Ref ref = new(bytes) domCg_param_type::domFixed3x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed3x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed3x2" ); - _Meta->registerClass(domCg_param_type::domFixed3x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed3x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed3x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed3x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed3x3::create(daeInt bytes) -{ - domCg_param_type::domFixed3x3Ref ref = new(bytes) domCg_param_type::domFixed3x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed3x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed3x3" ); - _Meta->registerClass(domCg_param_type::domFixed3x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed3x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed3x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed3x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed3x4::create(daeInt bytes) -{ - domCg_param_type::domFixed3x4Ref ref = new(bytes) domCg_param_type::domFixed3x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed3x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed3x4" ); - _Meta->registerClass(domCg_param_type::domFixed3x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed3x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed3x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed3x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed4x1::create(daeInt bytes) -{ - domCg_param_type::domFixed4x1Ref ref = new(bytes) domCg_param_type::domFixed4x1; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed4x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed4x1" ); - _Meta->registerClass(domCg_param_type::domFixed4x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed4x1")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed4x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed4x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed4x2::create(daeInt bytes) -{ - domCg_param_type::domFixed4x2Ref ref = new(bytes) domCg_param_type::domFixed4x2; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed4x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed4x2" ); - _Meta->registerClass(domCg_param_type::domFixed4x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed4x2")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed4x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed4x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed4x3::create(daeInt bytes) -{ - domCg_param_type::domFixed4x3Ref ref = new(bytes) domCg_param_type::domFixed4x3; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed4x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed4x3" ); - _Meta->registerClass(domCg_param_type::domFixed4x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed4x3")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed4x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed4x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domFixed4x4::create(daeInt bytes) -{ - domCg_param_type::domFixed4x4Ref ref = new(bytes) domCg_param_type::domFixed4x4; - return ref; -} - - -daeMetaElement * -domCg_param_type::domFixed4x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fixed4x4" ); - _Meta->registerClass(domCg_param_type::domFixed4x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Cg_fixed4x4")); - ma->setOffset( daeOffsetOf( domCg_param_type::domFixed4x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domFixed4x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domString::create(daeInt bytes) -{ - domCg_param_type::domStringRef ref = new(bytes) domCg_param_type::domString; - return ref; -} - - -daeMetaElement * -domCg_param_type::domString::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "string" ); - _Meta->registerClass(domCg_param_type::domString::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domCg_param_type::domString , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domString)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_param_type::domEnum::create(daeInt bytes) -{ - domCg_param_type::domEnumRef ref = new(bytes) domCg_param_type::domEnum; - return ref; -} - - -daeMetaElement * -domCg_param_type::domEnum::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "enum" ); - _Meta->registerClass(domCg_param_type::domEnum::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Gl_enumeration")); - ma->setOffset( daeOffsetOf( domCg_param_type::domEnum , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_param_type::domEnum)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_param_type::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool1::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool2::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool3::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool4::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool1x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool1x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool1x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool1x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool2x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool2x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool2x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool2x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool3x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool3x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool3x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool3x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool4x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool4x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool4x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domBool4x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat1::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat2::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat3::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat4::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat1x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat1x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat1x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat1x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat2x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat2x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat2x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat2x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat3x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat3x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat3x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat3x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat4x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat4x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat4x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domFloat4x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt1::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt2::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt3::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt4::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt1x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt1x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt1x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt1x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt2x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt2x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt2x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt2x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt3x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt3x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt3x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt3x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt4x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt4x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt4x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domInt4x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf1::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf2::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf3::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf4::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf1x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf1x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf1x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf1x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf2x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf2x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf2x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf2x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf3x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf3x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf3x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf3x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf4x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf4x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf4x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domHalf4x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed1::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed2::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed3::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed4::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed1x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed1x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed1x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed1x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed2x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed2x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed2x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed2x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed3x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed3x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed3x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed3x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed4x1::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed4x2::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed4x3::_Meta = NULL; -daeMetaElement * domCg_param_type::domFixed4x4::_Meta = NULL; -daeMetaElement * domCg_param_type::domString::_Meta = NULL; -daeMetaElement * domCg_param_type::domEnum::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler1D.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler1D.cpp deleted file mode 100644 index 0e48cfbd7..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler1D.cpp +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_sampler1D::create(daeInt bytes) -{ - domCg_sampler1DRef ref = new(bytes) domCg_sampler1D; - return ref; -} - - -daeMetaElement * -domCg_sampler1D::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_sampler1D" ); - _Meta->registerClass(domCg_sampler1D::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domCg_sampler1D,elemSource) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domCg_sampler1D,elemWrap_s) ); - mea->setElementType( domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domCg_sampler1D,elemMinfilter) ); - mea->setElementType( domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domCg_sampler1D,elemMagfilter) ); - mea->setElementType( domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domCg_sampler1D,elemMipfilter) ); - mea->setElementType( domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domCg_sampler1D,elemBorder_color) ); - mea->setElementType( domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domCg_sampler1D,elemMipmap_maxlevel) ); - mea->setElementType( domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domCg_sampler1D,elemMipmap_bias) ); - mea->setElementType( domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 8, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCg_sampler1D,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 8 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 8 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domCg_sampler1D)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_sampler1D::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler2D.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler2D.cpp deleted file mode 100644 index 4540aa7d6..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler2D.cpp +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_sampler2D::create(daeInt bytes) -{ - domCg_sampler2DRef ref = new(bytes) domCg_sampler2D; - return ref; -} - - -daeMetaElement * -domCg_sampler2D::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_sampler2D" ); - _Meta->registerClass(domCg_sampler2D::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domCg_sampler2D,elemSource) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domCg_sampler2D,elemWrap_s) ); - mea->setElementType( domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domCg_sampler2D,elemWrap_t) ); - mea->setElementType( domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domCg_sampler2D,elemMinfilter) ); - mea->setElementType( domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domCg_sampler2D,elemMagfilter) ); - mea->setElementType( domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domCg_sampler2D,elemMipfilter) ); - mea->setElementType( domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domCg_sampler2D,elemBorder_color) ); - mea->setElementType( domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domCg_sampler2D,elemMipmap_maxlevel) ); - mea->setElementType( domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domCg_sampler2D,elemMipmap_bias) ); - mea->setElementType( domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 9, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCg_sampler2D,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 9 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 9 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domCg_sampler2D)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_sampler2D::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler3D.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler3D.cpp deleted file mode 100644 index fed172e5d..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_sampler3D.cpp +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_sampler3D::create(daeInt bytes) -{ - domCg_sampler3DRef ref = new(bytes) domCg_sampler3D; - return ref; -} - - -daeMetaElement * -domCg_sampler3D::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_sampler3D" ); - _Meta->registerClass(domCg_sampler3D::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domCg_sampler3D,elemSource) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domCg_sampler3D,elemWrap_s) ); - mea->setElementType( domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domCg_sampler3D,elemWrap_t) ); - mea->setElementType( domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "wrap_p" ); - mea->setOffset( daeOffsetOf(domCg_sampler3D,elemWrap_p) ); - mea->setElementType( domWrap_p::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domCg_sampler3D,elemMinfilter) ); - mea->setElementType( domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domCg_sampler3D,elemMagfilter) ); - mea->setElementType( domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domCg_sampler3D,elemMipfilter) ); - mea->setElementType( domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domCg_sampler3D,elemBorder_color) ); - mea->setElementType( domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domCg_sampler3D,elemMipmap_maxlevel) ); - mea->setElementType( domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 9, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domCg_sampler3D,elemMipmap_bias) ); - mea->setElementType( domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 10, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCg_sampler3D,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 10 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 10 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domCg_sampler3D)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_sampler3D::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerCUBE.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerCUBE.cpp deleted file mode 100644 index 3c052fab2..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerCUBE.cpp +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_samplerCUBE::create(daeInt bytes) -{ - domCg_samplerCUBERef ref = new(bytes) domCg_samplerCUBE; - return ref; -} - - -daeMetaElement * -domCg_samplerCUBE::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_samplerCUBE" ); - _Meta->registerClass(domCg_samplerCUBE::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domCg_samplerCUBE,elemSource) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domCg_samplerCUBE,elemWrap_s) ); - mea->setElementType( domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domCg_samplerCUBE,elemWrap_t) ); - mea->setElementType( domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "wrap_p" ); - mea->setOffset( daeOffsetOf(domCg_samplerCUBE,elemWrap_p) ); - mea->setElementType( domWrap_p::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domCg_samplerCUBE,elemMinfilter) ); - mea->setElementType( domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domCg_samplerCUBE,elemMagfilter) ); - mea->setElementType( domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domCg_samplerCUBE,elemMipfilter) ); - mea->setElementType( domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domCg_samplerCUBE,elemBorder_color) ); - mea->setElementType( domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domCg_samplerCUBE,elemMipmap_maxlevel) ); - mea->setElementType( domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 9, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domCg_samplerCUBE,elemMipmap_bias) ); - mea->setElementType( domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 10, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCg_samplerCUBE,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 10 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 10 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domCg_samplerCUBE)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_samplerCUBE::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerDEPTH.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerDEPTH.cpp deleted file mode 100644 index 694b7bf4b..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerDEPTH.cpp +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_samplerDEPTH::create(daeInt bytes) -{ - domCg_samplerDEPTHRef ref = new(bytes) domCg_samplerDEPTH; - return ref; -} - - -daeMetaElement * -domCg_samplerDEPTH::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_samplerDEPTH" ); - _Meta->registerClass(domCg_samplerDEPTH::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domCg_samplerDEPTH,elemSource) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domCg_samplerDEPTH,elemWrap_s) ); - mea->setElementType( domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domCg_samplerDEPTH,elemWrap_t) ); - mea->setElementType( domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domCg_samplerDEPTH,elemMinfilter) ); - mea->setElementType( domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domCg_samplerDEPTH,elemMagfilter) ); - mea->setElementType( domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 5, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCg_samplerDEPTH,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 5 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 5 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domCg_samplerDEPTH)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_samplerDEPTH::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerRECT.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerRECT.cpp deleted file mode 100644 index 88f05c770..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_samplerRECT.cpp +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_samplerRECT::create(daeInt bytes) -{ - domCg_samplerRECTRef ref = new(bytes) domCg_samplerRECT; - return ref; -} - - -daeMetaElement * -domCg_samplerRECT::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_samplerRECT" ); - _Meta->registerClass(domCg_samplerRECT::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domCg_samplerRECT,elemSource) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domCg_samplerRECT,elemWrap_s) ); - mea->setElementType( domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domCg_samplerRECT,elemWrap_t) ); - mea->setElementType( domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domCg_samplerRECT,elemMinfilter) ); - mea->setElementType( domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domCg_samplerRECT,elemMagfilter) ); - mea->setElementType( domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domCg_samplerRECT,elemMipfilter) ); - mea->setElementType( domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domCg_samplerRECT,elemBorder_color) ); - mea->setElementType( domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domCg_samplerRECT,elemMipmap_maxlevel) ); - mea->setElementType( domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domCg_samplerRECT,elemMipmap_bias) ); - mea->setElementType( domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 9, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCg_samplerRECT,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 9 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 9 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domCg_samplerRECT)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_samplerRECT::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_setarray_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_setarray_type.cpp deleted file mode 100644 index e64ff0459..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_setarray_type.cpp +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_setarray_type::create(daeInt bytes) -{ - domCg_setarray_typeRef ref = new(bytes) domCg_setarray_type; - return ref; -} - - -daeMetaElement * -domCg_setarray_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_setarray_type" ); - _Meta->registerClass(domCg_setarray_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "cg_param_type" ); - mea->setOffset( daeOffsetOf(domCg_setarray_type,elemCg_param_type_array) ); - mea->setElementType( domCg_param_type::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "array" ); - mea->setOffset( daeOffsetOf(domCg_setarray_type,elemArray_array) ); - mea->setElementType( domCg_setarray_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "usertype" ); - mea->setOffset( daeOffsetOf(domCg_setarray_type,elemUsertype_array) ); - mea->setElementType( domCg_setuser_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3000 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCg_setarray_type,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCg_setarray_type,_contentsOrder)); - - - // Add attribute: length - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "length" ); - ma->setType( daeAtomicType::get("xsPositiveInteger")); - ma->setOffset( daeOffsetOf( domCg_setarray_type , attrLength )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_setarray_type)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_setarray_type::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_setparam.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_setparam.cpp deleted file mode 100644 index 7ef0abfd3..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_setparam.cpp +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_setparam::create(daeInt bytes) -{ - domCg_setparamRef ref = new(bytes) domCg_setparam; - return ref; -} - - -daeMetaElement * -domCg_setparam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_setparam" ); - _Meta->registerClass(domCg_setparam::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "cg_param_type" ); - mea->setOffset( daeOffsetOf(domCg_setparam,elemCg_param_type) ); - mea->setElementType( domCg_param_type::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "usertype" ); - mea->setOffset( daeOffsetOf(domCg_setparam,elemUsertype) ); - mea->setElementType( domCg_setuser_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "array" ); - mea->setOffset( daeOffsetOf(domCg_setparam,elemArray) ); - mea->setElementType( domCg_setarray_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "connect_param" ); - mea->setOffset( daeOffsetOf(domCg_setparam,elemConnect_param) ); - mea->setElementType( domCg_connect_param::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCg_setparam,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCg_setparam,_contentsOrder)); - - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("Cg_identifier")); - ma->setOffset( daeOffsetOf( domCg_setparam , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: program - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "program" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCg_setparam , attrProgram )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_setparam)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_setparam::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_setparam_simple.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_setparam_simple.cpp deleted file mode 100644 index 0e08feb05..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_setparam_simple.cpp +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_setparam_simple::create(daeInt bytes) -{ - domCg_setparam_simpleRef ref = new(bytes) domCg_setparam_simple; - return ref; -} - - -daeMetaElement * -domCg_setparam_simple::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_setparam_simple" ); - _Meta->registerClass(domCg_setparam_simple::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domCg_setparam_simple,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "cg_param_type" ); - mea->setOffset( daeOffsetOf(domCg_setparam_simple,elemCg_param_type) ); - mea->setElementType( domCg_param_type::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 1, 1, 1 ) ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("Cg_identifier")); - ma->setOffset( daeOffsetOf( domCg_setparam_simple , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_setparam_simple)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_setparam_simple::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_setuser_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_setuser_type.cpp deleted file mode 100644 index 6ac9b6f28..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_setuser_type.cpp +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_setuser_type::create(daeInt bytes) -{ - domCg_setuser_typeRef ref = new(bytes) domCg_setuser_type; - return ref; -} - - -daeMetaElement * -domCg_setuser_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_setuser_type" ); - _Meta->registerClass(domCg_setuser_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 0, 1 ); - - cm = new daeMetaChoice( _Meta, cm, 0, 1, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "cg_param_type" ); - mea->setOffset( daeOffsetOf(domCg_setuser_type,elemCg_param_type_array) ); - mea->setElementType( domCg_param_type::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "array" ); - mea->setOffset( daeOffsetOf(domCg_setuser_type,elemArray_array) ); - mea->setElementType( domCg_setarray_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "usertype" ); - mea->setOffset( daeOffsetOf(domCg_setuser_type,elemUsertype_array) ); - mea->setElementType( domCg_setuser_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "connect_param" ); - mea->setOffset( daeOffsetOf(domCg_setuser_type,elemConnect_param_array) ); - mea->setElementType( domCg_connect_param::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3001, 1, -1 ); - mea->setName( "setparam" ); - mea->setOffset( daeOffsetOf(domCg_setuser_type,elemSetparam_array) ); - mea->setElementType( domCg_setparam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCg_setuser_type,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCg_setuser_type,_contentsOrder)); - - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("Cg_identifier")); - ma->setOffset( daeOffsetOf( domCg_setuser_type , attrName )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCg_setuser_type , attrSource )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_setuser_type)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_setuser_type::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCg_surface_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCg_surface_type.cpp deleted file mode 100644 index 315e18b50..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCg_surface_type.cpp +++ /dev/null @@ -1,266 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCg_surface_type::create(daeInt bytes) -{ - domCg_surface_typeRef ref = new(bytes) domCg_surface_type; - return ref; -} - - -daeMetaElement * -domCg_surface_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cg_surface_type" ); - _Meta->registerClass(domCg_surface_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "fx_surface_init_common" ); - mea->setOffset( daeOffsetOf(domCg_surface_type,elemFx_surface_init_common) ); - mea->setElementType( domFx_surface_init_common::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 0, 1 ) ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "format" ); - mea->setOffset( daeOffsetOf(domCg_surface_type,elemFormat) ); - mea->setElementType( domFormat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "format_hint" ); - mea->setOffset( daeOffsetOf(domCg_surface_type,elemFormat_hint) ); - mea->setElementType( domFx_surface_format_hint_common::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 3, 0, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "size" ); - mea->setOffset( daeOffsetOf(domCg_surface_type,elemSize) ); - mea->setElementType( domSize::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "viewport_ratio" ); - mea->setOffset( daeOffsetOf(domCg_surface_type,elemViewport_ratio) ); - mea->setElementType( domViewport_ratio::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "mip_levels" ); - mea->setOffset( daeOffsetOf(domCg_surface_type,elemMip_levels) ); - mea->setElementType( domMip_levels::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "mipmap_generate" ); - mea->setOffset( daeOffsetOf(domCg_surface_type,elemMipmap_generate) ); - mea->setElementType( domMipmap_generate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 6, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCg_surface_type,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 6 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaSequence( _Meta, cm, 7, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "generator" ); - mea->setOffset( daeOffsetOf(domCg_surface_type,elemGenerator) ); - mea->setElementType( domGenerator::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 7 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCg_surface_type,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCg_surface_type,_contentsOrder)); - - - // Add attribute: type - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "type" ); - ma->setType( daeAtomicType::get("Fx_surface_type_enum")); - ma->setOffset( daeOffsetOf( domCg_surface_type , attrType )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_surface_type)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_surface_type::domGenerator::create(daeInt bytes) -{ - domCg_surface_type::domGeneratorRef ref = new(bytes) domCg_surface_type::domGenerator; - return ref; -} - - -daeMetaElement * -domCg_surface_type::domGenerator::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "generator" ); - _Meta->registerClass(domCg_surface_type::domGenerator::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domCg_surface_type::domGenerator,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 1, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "code" ); - mea->setOffset( daeOffsetOf(domCg_surface_type::domGenerator,elemCode_array) ); - mea->setElementType( domFx_code_profile::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "include" ); - mea->setOffset( daeOffsetOf(domCg_surface_type::domGenerator,elemInclude_array) ); - mea->setElementType( domFx_include_common::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementAttribute( _Meta, cm, 3002, 1, 1 ); - mea->setName( "name" ); - mea->setOffset( daeOffsetOf(domCg_surface_type::domGenerator,elemName) ); - mea->setElementType( domCg_surface_type::domGenerator::domName::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3003, 0, -1 ); - mea->setName( "setparam" ); - mea->setOffset( daeOffsetOf(domCg_surface_type::domGenerator,elemSetparam_array) ); - mea->setElementType( domCg_setparam_simple::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3003 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCg_surface_type::domGenerator,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCg_surface_type::domGenerator,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domCg_surface_type::domGenerator)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCg_surface_type::domGenerator::domName::create(daeInt bytes) -{ - domCg_surface_type::domGenerator::domNameRef ref = new(bytes) domCg_surface_type::domGenerator::domName; - return ref; -} - - -daeMetaElement * -domCg_surface_type::domGenerator::domName::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "name" ); - _Meta->registerClass(domCg_surface_type::domGenerator::domName::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCg_surface_type::domGenerator::domName , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCg_surface_type::domGenerator::domName , attrSource )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCg_surface_type::domGenerator::domName)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCg_surface_type::_Meta = NULL; -daeMetaElement * domCg_surface_type::domGenerator::_Meta = NULL; -daeMetaElement * domCg_surface_type::domGenerator::domName::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domChannel.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domChannel.cpp deleted file mode 100644 index ad55aa4ba..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domChannel.cpp +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domChannel::create(daeInt bytes) -{ - domChannelRef ref = new(bytes) domChannel; - ref->attrSource.setContainer( (domChannel*)ref ); - return ref; -} - - -daeMetaElement * -domChannel::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "channel" ); - _Meta->registerClass(domChannel::create, &_Meta); - - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("URIFragmentType")); - ma->setOffset( daeOffsetOf( domChannel , attrSource )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: target - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "target" ); - ma->setType( daeAtomicType::get("xsToken")); - ma->setOffset( daeOffsetOf( domChannel , attrTarget )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domChannel)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domChannel::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCommon_color_or_texture_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCommon_color_or_texture_type.cpp deleted file mode 100644 index 18f31acb8..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCommon_color_or_texture_type.cpp +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCommon_color_or_texture_type::create(daeInt bytes) -{ - domCommon_color_or_texture_typeRef ref = new(bytes) domCommon_color_or_texture_type; - return ref; -} - - -daeMetaElement * -domCommon_color_or_texture_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "common_color_or_texture_type" ); - _Meta->registerClass(domCommon_color_or_texture_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "color" ); - mea->setOffset( daeOffsetOf(domCommon_color_or_texture_type,elemColor) ); - mea->setElementType( domCommon_color_or_texture_type::domColor::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "param" ); - mea->setOffset( daeOffsetOf(domCommon_color_or_texture_type,elemParam) ); - mea->setElementType( domCommon_color_or_texture_type::domParam::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture" ); - mea->setOffset( daeOffsetOf(domCommon_color_or_texture_type,elemTexture) ); - mea->setElementType( domCommon_color_or_texture_type::domTexture::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCommon_color_or_texture_type,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCommon_color_or_texture_type,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domCommon_color_or_texture_type)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCommon_color_or_texture_type::domColor::create(daeInt bytes) -{ - domCommon_color_or_texture_type::domColorRef ref = new(bytes) domCommon_color_or_texture_type::domColor; - return ref; -} - - -daeMetaElement * -domCommon_color_or_texture_type::domColor::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "color" ); - _Meta->registerClass(domCommon_color_or_texture_type::domColor::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_color_common")); - ma->setOffset( daeOffsetOf( domCommon_color_or_texture_type::domColor , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCommon_color_or_texture_type::domColor , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCommon_color_or_texture_type::domColor)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCommon_color_or_texture_type::domParam::create(daeInt bytes) -{ - domCommon_color_or_texture_type::domParamRef ref = new(bytes) domCommon_color_or_texture_type::domParam; - return ref; -} - - -daeMetaElement * -domCommon_color_or_texture_type::domParam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "param" ); - _Meta->registerClass(domCommon_color_or_texture_type::domParam::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCommon_color_or_texture_type::domParam , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCommon_color_or_texture_type::domParam)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCommon_color_or_texture_type::domTexture::create(daeInt bytes) -{ - domCommon_color_or_texture_type::domTextureRef ref = new(bytes) domCommon_color_or_texture_type::domTexture; - return ref; -} - - -daeMetaElement * -domCommon_color_or_texture_type::domTexture::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "texture" ); - _Meta->registerClass(domCommon_color_or_texture_type::domTexture::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCommon_color_or_texture_type::domTexture,elemExtra) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: texture - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "texture" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCommon_color_or_texture_type::domTexture , attrTexture )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: texcoord - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "texcoord" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCommon_color_or_texture_type::domTexture , attrTexcoord )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCommon_color_or_texture_type::domTexture)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCommon_color_or_texture_type::_Meta = NULL; -daeMetaElement * domCommon_color_or_texture_type::domColor::_Meta = NULL; -daeMetaElement * domCommon_color_or_texture_type::domParam::_Meta = NULL; -daeMetaElement * domCommon_color_or_texture_type::domTexture::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCommon_float_or_param_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCommon_float_or_param_type.cpp deleted file mode 100644 index 8eb09dfee..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCommon_float_or_param_type.cpp +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCommon_float_or_param_type::create(daeInt bytes) -{ - domCommon_float_or_param_typeRef ref = new(bytes) domCommon_float_or_param_type; - return ref; -} - - -daeMetaElement * -domCommon_float_or_param_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "common_float_or_param_type" ); - _Meta->registerClass(domCommon_float_or_param_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float" ); - mea->setOffset( daeOffsetOf(domCommon_float_or_param_type,elemFloat) ); - mea->setElementType( domCommon_float_or_param_type::domFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "param" ); - mea->setOffset( daeOffsetOf(domCommon_float_or_param_type,elemParam) ); - mea->setElementType( domCommon_float_or_param_type::domParam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCommon_float_or_param_type,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCommon_float_or_param_type,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domCommon_float_or_param_type)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCommon_float_or_param_type::domFloat::create(daeInt bytes) -{ - domCommon_float_or_param_type::domFloatRef ref = new(bytes) domCommon_float_or_param_type::domFloat; - return ref; -} - - -daeMetaElement * -domCommon_float_or_param_type::domFloat::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float" ); - _Meta->registerClass(domCommon_float_or_param_type::domFloat::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domCommon_float_or_param_type::domFloat , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCommon_float_or_param_type::domFloat , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCommon_float_or_param_type::domFloat)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCommon_float_or_param_type::domParam::create(daeInt bytes) -{ - domCommon_float_or_param_type::domParamRef ref = new(bytes) domCommon_float_or_param_type::domParam; - return ref; -} - - -daeMetaElement * -domCommon_float_or_param_type::domParam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "param" ); - _Meta->registerClass(domCommon_float_or_param_type::domParam::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCommon_float_or_param_type::domParam , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCommon_float_or_param_type::domParam)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCommon_float_or_param_type::_Meta = NULL; -daeMetaElement * domCommon_float_or_param_type::domFloat::_Meta = NULL; -daeMetaElement * domCommon_float_or_param_type::domParam::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCommon_newparam_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCommon_newparam_type.cpp deleted file mode 100644 index 89e0982ab..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCommon_newparam_type.cpp +++ /dev/null @@ -1,301 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCommon_newparam_type::create(daeInt bytes) -{ - domCommon_newparam_typeRef ref = new(bytes) domCommon_newparam_type; - return ref; -} - - -daeMetaElement * -domCommon_newparam_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "common_newparam_type" ); - _Meta->registerClass(domCommon_newparam_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "semantic" ); - mea->setOffset( daeOffsetOf(domCommon_newparam_type,elemSemantic) ); - mea->setElementType( domCommon_newparam_type::domSemantic::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float" ); - mea->setOffset( daeOffsetOf(domCommon_newparam_type,elemFloat) ); - mea->setElementType( domCommon_newparam_type::domFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2" ); - mea->setOffset( daeOffsetOf(domCommon_newparam_type,elemFloat2) ); - mea->setElementType( domCommon_newparam_type::domFloat2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3" ); - mea->setOffset( daeOffsetOf(domCommon_newparam_type,elemFloat3) ); - mea->setElementType( domCommon_newparam_type::domFloat3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4" ); - mea->setOffset( daeOffsetOf(domCommon_newparam_type,elemFloat4) ); - mea->setElementType( domCommon_newparam_type::domFloat4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "surface" ); - mea->setOffset( daeOffsetOf(domCommon_newparam_type,elemSurface) ); - mea->setElementType( domFx_surface_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sampler2D" ); - mea->setOffset( daeOffsetOf(domCommon_newparam_type,elemSampler2D) ); - mea->setElementType( domFx_sampler2D_common::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCommon_newparam_type,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCommon_newparam_type,_contentsOrder)); - - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCommon_newparam_type , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCommon_newparam_type)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCommon_newparam_type::domSemantic::create(daeInt bytes) -{ - domCommon_newparam_type::domSemanticRef ref = new(bytes) domCommon_newparam_type::domSemantic; - return ref; -} - - -daeMetaElement * -domCommon_newparam_type::domSemantic::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "semantic" ); - _Meta->registerClass(domCommon_newparam_type::domSemantic::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domCommon_newparam_type::domSemantic , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCommon_newparam_type::domSemantic)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCommon_newparam_type::domFloat::create(daeInt bytes) -{ - domCommon_newparam_type::domFloatRef ref = new(bytes) domCommon_newparam_type::domFloat; - return ref; -} - - -daeMetaElement * -domCommon_newparam_type::domFloat::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float" ); - _Meta->registerClass(domCommon_newparam_type::domFloat::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domCommon_newparam_type::domFloat , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCommon_newparam_type::domFloat)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCommon_newparam_type::domFloat2::create(daeInt bytes) -{ - domCommon_newparam_type::domFloat2Ref ref = new(bytes) domCommon_newparam_type::domFloat2; - return ref; -} - - -daeMetaElement * -domCommon_newparam_type::domFloat2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2" ); - _Meta->registerClass(domCommon_newparam_type::domFloat2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domCommon_newparam_type::domFloat2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCommon_newparam_type::domFloat2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCommon_newparam_type::domFloat3::create(daeInt bytes) -{ - domCommon_newparam_type::domFloat3Ref ref = new(bytes) domCommon_newparam_type::domFloat3; - return ref; -} - - -daeMetaElement * -domCommon_newparam_type::domFloat3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3" ); - _Meta->registerClass(domCommon_newparam_type::domFloat3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domCommon_newparam_type::domFloat3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCommon_newparam_type::domFloat3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCommon_newparam_type::domFloat4::create(daeInt bytes) -{ - domCommon_newparam_type::domFloat4Ref ref = new(bytes) domCommon_newparam_type::domFloat4; - return ref; -} - - -daeMetaElement * -domCommon_newparam_type::domFloat4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4" ); - _Meta->registerClass(domCommon_newparam_type::domFloat4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domCommon_newparam_type::domFloat4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCommon_newparam_type::domFloat4)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCommon_newparam_type::_Meta = NULL; -daeMetaElement * domCommon_newparam_type::domSemantic::_Meta = NULL; -daeMetaElement * domCommon_newparam_type::domFloat::_Meta = NULL; -daeMetaElement * domCommon_newparam_type::domFloat2::_Meta = NULL; -daeMetaElement * domCommon_newparam_type::domFloat3::_Meta = NULL; -daeMetaElement * domCommon_newparam_type::domFloat4::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCommon_transparent_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCommon_transparent_type.cpp deleted file mode 100644 index 641c4e229..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCommon_transparent_type.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCommon_transparent_type::create(daeInt bytes) -{ - domCommon_transparent_typeRef ref = new(bytes) domCommon_transparent_type; - return ref; -} - - -daeMetaElement * -domCommon_transparent_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "common_transparent_type" ); - _Meta->registerClass(domCommon_transparent_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "color" ); - mea->setOffset( daeOffsetOf(domCommon_transparent_type,elemColor) ); - mea->setElementType( domColor::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "param" ); - mea->setOffset( daeOffsetOf(domCommon_transparent_type,elemParam) ); - mea->setElementType( domParam::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture" ); - mea->setOffset( daeOffsetOf(domCommon_transparent_type,elemTexture) ); - mea->setElementType( domTexture::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domCommon_transparent_type,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domCommon_transparent_type,_contentsOrder)); - - - // Add attribute: opaque - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "opaque" ); - ma->setType( daeAtomicType::get("Fx_opaque_enum")); - ma->setOffset( daeOffsetOf( domCommon_transparent_type , attrOpaque )); - ma->setContainer( _Meta ); - ma->setDefault( "A_ONE"); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCommon_transparent_type)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCommon_transparent_type::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domConstants.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domConstants.cpp deleted file mode 100644 index fa23d70e5..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domConstants.cpp +++ /dev/null @@ -1,1088 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include - -DLLSPEC daeString COLLADA_VERSION = "1.4.1"; -DLLSPEC daeString COLLADA_NAMESPACE = "http://www.collada.org/2005/11/COLLADASchema"; - -DLLSPEC daeString COMMON_PROFILE_INPUT_BINORMAL = "BINORMAL"; -DLLSPEC daeString COMMON_PROFILE_INPUT_COLOR = "COLOR"; -DLLSPEC daeString COMMON_PROFILE_INPUT_CONTINUITY = "CONTINUITY"; -DLLSPEC daeString COMMON_PROFILE_INPUT_IMAGE = "IMAGE"; -DLLSPEC daeString COMMON_PROFILE_INPUT_IN_TANGENT = "IN_TANGENT"; -DLLSPEC daeString COMMON_PROFILE_INPUT_INPUT = "INPUT"; -DLLSPEC daeString COMMON_PROFILE_INPUT_INTERPOLATION = "INTERPOLATION"; -DLLSPEC daeString COMMON_PROFILE_INPUT_INV_BIND_MATRIX = "INV_BIND_MATRIX"; -DLLSPEC daeString COMMON_PROFILE_INPUT_JOINT = "JOINT"; -DLLSPEC daeString COMMON_PROFILE_INPUT_LINEAR_STEPS = "LINEAR_STEPS"; -DLLSPEC daeString COMMON_PROFILE_INPUT_MORPH_TARGET = "MORPH_TARGET"; -DLLSPEC daeString COMMON_PROFILE_INPUT_MORPH_WEIGHT = "MORPH_WEIGHT"; -DLLSPEC daeString COMMON_PROFILE_INPUT_NORMAL = "NORMAL"; -DLLSPEC daeString COMMON_PROFILE_INPUT_OUTPUT = "OUTPUT"; -DLLSPEC daeString COMMON_PROFILE_INPUT_OUT_TANGENT = "OUT_TANGENT"; -DLLSPEC daeString COMMON_PROFILE_INPUT_POSITION = "POSITION"; -DLLSPEC daeString COMMON_PROFILE_INPUT_TANGENT = "TANGENT"; -DLLSPEC daeString COMMON_PROFILE_INPUT_TEXBINORMAL = "TEXBINORMAL"; -DLLSPEC daeString COMMON_PROFILE_INPUT_TEXCOORD = "TEXCOORD"; -DLLSPEC daeString COMMON_PROFILE_INPUT_TEXTANGENT = "TEXTANGENT"; -DLLSPEC daeString COMMON_PROFILE_INPUT_UV = "UV"; -DLLSPEC daeString COMMON_PROFILE_INPUT_VERTEX = "VERTEX"; -DLLSPEC daeString COMMON_PROFILE_INPUT_WEIGHT = "WEIGHT"; - -DLLSPEC daeString COMMON_PROFILE_PARAM_A = "A"; -DLLSPEC daeString COMMON_PROFILE_PARAM_ANGLE = "ANGLE"; -DLLSPEC daeString COMMON_PROFILE_PARAM_B = "B"; -DLLSPEC daeString COMMON_PROFILE_PARAM_DOUBLE_SIDED = "DOUBLE_SIDED"; -DLLSPEC daeString COMMON_PROFILE_PARAM_G = "G"; -DLLSPEC daeString COMMON_PROFILE_PARAM_P = "P"; -DLLSPEC daeString COMMON_PROFILE_PARAM_Q = "Q"; -DLLSPEC daeString COMMON_PROFILE_PARAM_R = "R"; -DLLSPEC daeString COMMON_PROFILE_PARAM_S = "S"; -DLLSPEC daeString COMMON_PROFILE_PARAM_T = "T"; -DLLSPEC daeString COMMON_PROFILE_PARAM_TIME = "TIME"; -DLLSPEC daeString COMMON_PROFILE_PARAM_U = "U"; -DLLSPEC daeString COMMON_PROFILE_PARAM_V = "V"; -DLLSPEC daeString COMMON_PROFILE_PARAM_W = "W"; -DLLSPEC daeString COMMON_PROFILE_PARAM_X = "X"; -DLLSPEC daeString COMMON_PROFILE_PARAM_Y = "Y"; -DLLSPEC daeString COMMON_PROFILE_PARAM_Z = "Z"; - - -DLLSPEC daeString COLLADA_TYPE_INPUTGLOBAL = "InputGlobal"; -DLLSPEC daeString COLLADA_TYPE_INPUTLOCAL = "InputLocal"; -DLLSPEC daeString COLLADA_TYPE_INPUTLOCALOFFSET = "InputLocalOffset"; -DLLSPEC daeString COLLADA_TYPE_INSTANCEWITHEXTRA = "InstanceWithExtra"; -DLLSPEC daeString COLLADA_TYPE_TARGETABLEFLOAT = "TargetableFloat"; -DLLSPEC daeString COLLADA_TYPE_TARGETABLEFLOAT3 = "TargetableFloat3"; -DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_FORMAT_HINT_COMMON = "fx_surface_format_hint_common"; -DLLSPEC daeString COLLADA_TYPE_CHANNELS = "channels"; -DLLSPEC daeString COLLADA_TYPE_RANGE = "range"; -DLLSPEC daeString COLLADA_TYPE_PRECISION = "precision"; -DLLSPEC daeString COLLADA_TYPE_OPTION = "option"; -DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_INIT_PLANAR_COMMON = "fx_surface_init_planar_common"; -DLLSPEC daeString COLLADA_TYPE_ALL = "all"; -DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_INIT_VOLUME_COMMON = "fx_surface_init_volume_common"; -DLLSPEC daeString COLLADA_TYPE_PRIMARY = "primary"; -DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_INIT_CUBE_COMMON = "fx_surface_init_cube_common"; -DLLSPEC daeString COLLADA_TYPE_ORDER = "order"; -DLLSPEC daeString COLLADA_TYPE_FACE = "face"; -DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_INIT_FROM_COMMON = "fx_surface_init_from_common"; -DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_COMMON = "fx_surface_common"; -DLLSPEC daeString COLLADA_TYPE_FORMAT = "format"; -DLLSPEC daeString COLLADA_TYPE_SIZE = "size"; -DLLSPEC daeString COLLADA_TYPE_VIEWPORT_RATIO = "viewport_ratio"; -DLLSPEC daeString COLLADA_TYPE_MIP_LEVELS = "mip_levels"; -DLLSPEC daeString COLLADA_TYPE_MIPMAP_GENERATE = "mipmap_generate"; -DLLSPEC daeString COLLADA_TYPE_FX_SAMPLER1D_COMMON = "fx_sampler1D_common"; -DLLSPEC daeString COLLADA_TYPE_SOURCE = "source"; -DLLSPEC daeString COLLADA_TYPE_WRAP_S = "wrap_s"; -DLLSPEC daeString COLLADA_TYPE_MINFILTER = "minfilter"; -DLLSPEC daeString COLLADA_TYPE_MAGFILTER = "magfilter"; -DLLSPEC daeString COLLADA_TYPE_MIPFILTER = "mipfilter"; -DLLSPEC daeString COLLADA_TYPE_BORDER_COLOR = "border_color"; -DLLSPEC daeString COLLADA_TYPE_MIPMAP_MAXLEVEL = "mipmap_maxlevel"; -DLLSPEC daeString COLLADA_TYPE_MIPMAP_BIAS = "mipmap_bias"; -DLLSPEC daeString COLLADA_TYPE_FX_SAMPLER2D_COMMON = "fx_sampler2D_common"; -DLLSPEC daeString COLLADA_TYPE_WRAP_T = "wrap_t"; -DLLSPEC daeString COLLADA_TYPE_FX_SAMPLER3D_COMMON = "fx_sampler3D_common"; -DLLSPEC daeString COLLADA_TYPE_WRAP_P = "wrap_p"; -DLLSPEC daeString COLLADA_TYPE_FX_SAMPLERCUBE_COMMON = "fx_samplerCUBE_common"; -DLLSPEC daeString COLLADA_TYPE_FX_SAMPLERRECT_COMMON = "fx_samplerRECT_common"; -DLLSPEC daeString COLLADA_TYPE_FX_SAMPLERDEPTH_COMMON = "fx_samplerDEPTH_common"; -DLLSPEC daeString COLLADA_TYPE_FX_COLORTARGET_COMMON = "fx_colortarget_common"; -DLLSPEC daeString COLLADA_TYPE_FX_DEPTHTARGET_COMMON = "fx_depthtarget_common"; -DLLSPEC daeString COLLADA_TYPE_FX_STENCILTARGET_COMMON = "fx_stenciltarget_common"; -DLLSPEC daeString COLLADA_TYPE_FX_CLEARCOLOR_COMMON = "fx_clearcolor_common"; -DLLSPEC daeString COLLADA_TYPE_FX_CLEARDEPTH_COMMON = "fx_cleardepth_common"; -DLLSPEC daeString COLLADA_TYPE_FX_CLEARSTENCIL_COMMON = "fx_clearstencil_common"; -DLLSPEC daeString COLLADA_TYPE_FX_ANNOTATE_COMMON = "fx_annotate_common"; -DLLSPEC daeString COLLADA_TYPE_FX_INCLUDE_COMMON = "fx_include_common"; -DLLSPEC daeString COLLADA_TYPE_FX_NEWPARAM_COMMON = "fx_newparam_common"; -DLLSPEC daeString COLLADA_TYPE_SEMANTIC = "semantic"; -DLLSPEC daeString COLLADA_TYPE_MODIFIER = "modifier"; -DLLSPEC daeString COLLADA_TYPE_FX_CODE_PROFILE = "fx_code_profile"; -DLLSPEC daeString COLLADA_TYPE_GL_SAMPLER1D = "gl_sampler1D"; -DLLSPEC daeString COLLADA_TYPE_GL_SAMPLER2D = "gl_sampler2D"; -DLLSPEC daeString COLLADA_TYPE_GL_SAMPLER3D = "gl_sampler3D"; -DLLSPEC daeString COLLADA_TYPE_GL_SAMPLERCUBE = "gl_samplerCUBE"; -DLLSPEC daeString COLLADA_TYPE_GL_SAMPLERRECT = "gl_samplerRECT"; -DLLSPEC daeString COLLADA_TYPE_GL_SAMPLERDEPTH = "gl_samplerDEPTH"; -DLLSPEC daeString COLLADA_TYPE_GLSL_NEWARRAY_TYPE = "glsl_newarray_type"; -DLLSPEC daeString COLLADA_TYPE_GLSL_SETARRAY_TYPE = "glsl_setarray_type"; -DLLSPEC daeString COLLADA_TYPE_GLSL_SURFACE_TYPE = "glsl_surface_type"; -DLLSPEC daeString COLLADA_TYPE_GENERATOR = "generator"; -DLLSPEC daeString COLLADA_TYPE_NAME = "name"; -DLLSPEC daeString COLLADA_TYPE_GLSL_NEWPARAM = "glsl_newparam"; -DLLSPEC daeString COLLADA_TYPE_GLSL_SETPARAM_SIMPLE = "glsl_setparam_simple"; -DLLSPEC daeString COLLADA_TYPE_GLSL_SETPARAM = "glsl_setparam"; -DLLSPEC daeString COLLADA_TYPE_COMMON_FLOAT_OR_PARAM_TYPE = "common_float_or_param_type"; -DLLSPEC daeString COLLADA_TYPE_FLOAT = "float"; -DLLSPEC daeString COLLADA_TYPE_PARAM = "param"; -DLLSPEC daeString COLLADA_TYPE_COMMON_COLOR_OR_TEXTURE_TYPE = "common_color_or_texture_type"; -DLLSPEC daeString COLLADA_TYPE_COLOR = "color"; -DLLSPEC daeString COLLADA_TYPE_TEXTURE = "texture"; -DLLSPEC daeString COLLADA_TYPE_COMMON_TRANSPARENT_TYPE = "common_transparent_type"; -DLLSPEC daeString COLLADA_TYPE_COMMON_NEWPARAM_TYPE = "common_newparam_type"; -DLLSPEC daeString COLLADA_TYPE_FLOAT2 = "float2"; -DLLSPEC daeString COLLADA_TYPE_FLOAT3 = "float3"; -DLLSPEC daeString COLLADA_TYPE_FLOAT4 = "float4"; -DLLSPEC daeString COLLADA_TYPE_CG_SAMPLER1D = "cg_sampler1D"; -DLLSPEC daeString COLLADA_TYPE_CG_SAMPLER2D = "cg_sampler2D"; -DLLSPEC daeString COLLADA_TYPE_CG_SAMPLER3D = "cg_sampler3D"; -DLLSPEC daeString COLLADA_TYPE_CG_SAMPLERCUBE = "cg_samplerCUBE"; -DLLSPEC daeString COLLADA_TYPE_CG_SAMPLERRECT = "cg_samplerRECT"; -DLLSPEC daeString COLLADA_TYPE_CG_SAMPLERDEPTH = "cg_samplerDEPTH"; -DLLSPEC daeString COLLADA_TYPE_CG_CONNECT_PARAM = "cg_connect_param"; -DLLSPEC daeString COLLADA_TYPE_CG_NEWARRAY_TYPE = "cg_newarray_type"; -DLLSPEC daeString COLLADA_TYPE_CG_SETARRAY_TYPE = "cg_setarray_type"; -DLLSPEC daeString COLLADA_TYPE_CG_SETUSER_TYPE = "cg_setuser_type"; -DLLSPEC daeString COLLADA_TYPE_CG_SURFACE_TYPE = "cg_surface_type"; -DLLSPEC daeString COLLADA_TYPE_CG_NEWPARAM = "cg_newparam"; -DLLSPEC daeString COLLADA_TYPE_CG_SETPARAM_SIMPLE = "cg_setparam_simple"; -DLLSPEC daeString COLLADA_TYPE_CG_SETPARAM = "cg_setparam"; -DLLSPEC daeString COLLADA_TYPE_GLES_TEXTURE_CONSTANT_TYPE = "gles_texture_constant_type"; -DLLSPEC daeString COLLADA_TYPE_GLES_TEXENV_COMMAND_TYPE = "gles_texenv_command_type"; -DLLSPEC daeString COLLADA_TYPE_GLES_TEXCOMBINER_ARGUMENTRGB_TYPE = "gles_texcombiner_argumentRGB_type"; -DLLSPEC daeString COLLADA_TYPE_GLES_TEXCOMBINER_ARGUMENTALPHA_TYPE = "gles_texcombiner_argumentAlpha_type"; -DLLSPEC daeString COLLADA_TYPE_GLES_TEXCOMBINER_COMMANDRGB_TYPE = "gles_texcombiner_commandRGB_type"; -DLLSPEC daeString COLLADA_TYPE_GLES_TEXCOMBINER_COMMANDALPHA_TYPE = "gles_texcombiner_commandAlpha_type"; -DLLSPEC daeString COLLADA_TYPE_GLES_TEXCOMBINER_COMMAND_TYPE = "gles_texcombiner_command_type"; -DLLSPEC daeString COLLADA_TYPE_GLES_TEXTURE_PIPELINE = "gles_texture_pipeline"; -DLLSPEC daeString COLLADA_TYPE_GLES_TEXTURE_UNIT = "gles_texture_unit"; -DLLSPEC daeString COLLADA_TYPE_SURFACE = "surface"; -DLLSPEC daeString COLLADA_TYPE_SAMPLER_STATE = "sampler_state"; -DLLSPEC daeString COLLADA_TYPE_TEXCOORD = "texcoord"; -DLLSPEC daeString COLLADA_TYPE_GLES_SAMPLER_STATE = "gles_sampler_state"; -DLLSPEC daeString COLLADA_TYPE_GLES_NEWPARAM = "gles_newparam"; -DLLSPEC daeString COLLADA_TYPE_FX_SURFACE_INIT_COMMON = "fx_surface_init_common"; -DLLSPEC daeString COLLADA_TYPE_INIT_AS_NULL = "init_as_null"; -DLLSPEC daeString COLLADA_TYPE_INIT_AS_TARGET = "init_as_target"; -DLLSPEC daeString COLLADA_TYPE_FX_ANNOTATE_TYPE_COMMON = "fx_annotate_type_common"; -DLLSPEC daeString COLLADA_TYPE_BOOL = "bool"; -DLLSPEC daeString COLLADA_TYPE_BOOL2 = "bool2"; -DLLSPEC daeString COLLADA_TYPE_BOOL3 = "bool3"; -DLLSPEC daeString COLLADA_TYPE_BOOL4 = "bool4"; -DLLSPEC daeString COLLADA_TYPE_INT = "int"; -DLLSPEC daeString COLLADA_TYPE_INT2 = "int2"; -DLLSPEC daeString COLLADA_TYPE_INT3 = "int3"; -DLLSPEC daeString COLLADA_TYPE_INT4 = "int4"; -DLLSPEC daeString COLLADA_TYPE_FLOAT2X2 = "float2x2"; -DLLSPEC daeString COLLADA_TYPE_FLOAT3X3 = "float3x3"; -DLLSPEC daeString COLLADA_TYPE_FLOAT4X4 = "float4x4"; -DLLSPEC daeString COLLADA_TYPE_STRING = "string"; -DLLSPEC daeString COLLADA_TYPE_FX_BASIC_TYPE_COMMON = "fx_basic_type_common"; -DLLSPEC daeString COLLADA_TYPE_FLOAT1X1 = "float1x1"; -DLLSPEC daeString COLLADA_TYPE_FLOAT1X2 = "float1x2"; -DLLSPEC daeString COLLADA_TYPE_FLOAT1X3 = "float1x3"; -DLLSPEC daeString COLLADA_TYPE_FLOAT1X4 = "float1x4"; -DLLSPEC daeString COLLADA_TYPE_FLOAT2X1 = "float2x1"; -DLLSPEC daeString COLLADA_TYPE_FLOAT2X3 = "float2x3"; -DLLSPEC daeString COLLADA_TYPE_FLOAT2X4 = "float2x4"; -DLLSPEC daeString COLLADA_TYPE_FLOAT3X1 = "float3x1"; -DLLSPEC daeString COLLADA_TYPE_FLOAT3X2 = "float3x2"; -DLLSPEC daeString COLLADA_TYPE_FLOAT3X4 = "float3x4"; -DLLSPEC daeString COLLADA_TYPE_FLOAT4X1 = "float4x1"; -DLLSPEC daeString COLLADA_TYPE_FLOAT4X2 = "float4x2"; -DLLSPEC daeString COLLADA_TYPE_FLOAT4X3 = "float4x3"; -DLLSPEC daeString COLLADA_TYPE_ENUM = "enum"; -DLLSPEC daeString COLLADA_TYPE_GL_PIPELINE_SETTINGS = "gl_pipeline_settings"; -DLLSPEC daeString COLLADA_TYPE_ALPHA_FUNC = "alpha_func"; -DLLSPEC daeString COLLADA_TYPE_FUNC = "func"; -DLLSPEC daeString COLLADA_TYPE_VALUE = "value"; -DLLSPEC daeString COLLADA_TYPE_BLEND_FUNC = "blend_func"; -DLLSPEC daeString COLLADA_TYPE_SRC = "src"; -DLLSPEC daeString COLLADA_TYPE_DEST = "dest"; -DLLSPEC daeString COLLADA_TYPE_BLEND_FUNC_SEPARATE = "blend_func_separate"; -DLLSPEC daeString COLLADA_TYPE_SRC_RGB = "src_rgb"; -DLLSPEC daeString COLLADA_TYPE_DEST_RGB = "dest_rgb"; -DLLSPEC daeString COLLADA_TYPE_SRC_ALPHA = "src_alpha"; -DLLSPEC daeString COLLADA_TYPE_DEST_ALPHA = "dest_alpha"; -DLLSPEC daeString COLLADA_TYPE_BLEND_EQUATION = "blend_equation"; -DLLSPEC daeString COLLADA_TYPE_BLEND_EQUATION_SEPARATE = "blend_equation_separate"; -DLLSPEC daeString COLLADA_TYPE_RGB = "rgb"; -DLLSPEC daeString COLLADA_TYPE_ALPHA = "alpha"; -DLLSPEC daeString COLLADA_TYPE_COLOR_MATERIAL = "color_material"; -DLLSPEC daeString COLLADA_TYPE_MODE = "mode"; -DLLSPEC daeString COLLADA_TYPE_CULL_FACE = "cull_face"; -DLLSPEC daeString COLLADA_TYPE_DEPTH_FUNC = "depth_func"; -DLLSPEC daeString COLLADA_TYPE_FOG_MODE = "fog_mode"; -DLLSPEC daeString COLLADA_TYPE_FOG_COORD_SRC = "fog_coord_src"; -DLLSPEC daeString COLLADA_TYPE_FRONT_FACE = "front_face"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_MODEL_COLOR_CONTROL = "light_model_color_control"; -DLLSPEC daeString COLLADA_TYPE_LOGIC_OP = "logic_op"; -DLLSPEC daeString COLLADA_TYPE_POLYGON_MODE = "polygon_mode"; -DLLSPEC daeString COLLADA_TYPE_SHADE_MODEL = "shade_model"; -DLLSPEC daeString COLLADA_TYPE_STENCIL_FUNC = "stencil_func"; -DLLSPEC daeString COLLADA_TYPE_REF = "ref"; -DLLSPEC daeString COLLADA_TYPE_MASK = "mask"; -DLLSPEC daeString COLLADA_TYPE_STENCIL_OP = "stencil_op"; -DLLSPEC daeString COLLADA_TYPE_FAIL = "fail"; -DLLSPEC daeString COLLADA_TYPE_ZFAIL = "zfail"; -DLLSPEC daeString COLLADA_TYPE_ZPASS = "zpass"; -DLLSPEC daeString COLLADA_TYPE_STENCIL_FUNC_SEPARATE = "stencil_func_separate"; -DLLSPEC daeString COLLADA_TYPE_FRONT = "front"; -DLLSPEC daeString COLLADA_TYPE_BACK = "back"; -DLLSPEC daeString COLLADA_TYPE_STENCIL_OP_SEPARATE = "stencil_op_separate"; -DLLSPEC daeString COLLADA_TYPE_STENCIL_MASK_SEPARATE = "stencil_mask_separate"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_ENABLE = "light_enable"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_AMBIENT = "light_ambient"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_DIFFUSE = "light_diffuse"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_SPECULAR = "light_specular"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_POSITION = "light_position"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_CONSTANT_ATTENUATION = "light_constant_attenuation"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_LINEAR_ATTENUATION = "light_linear_attenuation"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_QUADRATIC_ATTENUATION = "light_quadratic_attenuation"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_SPOT_CUTOFF = "light_spot_cutoff"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_SPOT_DIRECTION = "light_spot_direction"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_SPOT_EXPONENT = "light_spot_exponent"; -DLLSPEC daeString COLLADA_TYPE_TEXTURE1D = "texture1D"; -DLLSPEC daeString COLLADA_TYPE_TEXTURE2D = "texture2D"; -DLLSPEC daeString COLLADA_TYPE_TEXTURE3D = "texture3D"; -DLLSPEC daeString COLLADA_TYPE_TEXTURECUBE = "textureCUBE"; -DLLSPEC daeString COLLADA_TYPE_TEXTURERECT = "textureRECT"; -DLLSPEC daeString COLLADA_TYPE_TEXTUREDEPTH = "textureDEPTH"; -DLLSPEC daeString COLLADA_TYPE_TEXTURE1D_ENABLE = "texture1D_enable"; -DLLSPEC daeString COLLADA_TYPE_TEXTURE2D_ENABLE = "texture2D_enable"; -DLLSPEC daeString COLLADA_TYPE_TEXTURE3D_ENABLE = "texture3D_enable"; -DLLSPEC daeString COLLADA_TYPE_TEXTURECUBE_ENABLE = "textureCUBE_enable"; -DLLSPEC daeString COLLADA_TYPE_TEXTURERECT_ENABLE = "textureRECT_enable"; -DLLSPEC daeString COLLADA_TYPE_TEXTUREDEPTH_ENABLE = "textureDEPTH_enable"; -DLLSPEC daeString COLLADA_TYPE_TEXTURE_ENV_COLOR = "texture_env_color"; -DLLSPEC daeString COLLADA_TYPE_TEXTURE_ENV_MODE = "texture_env_mode"; -DLLSPEC daeString COLLADA_TYPE_CLIP_PLANE = "clip_plane"; -DLLSPEC daeString COLLADA_TYPE_CLIP_PLANE_ENABLE = "clip_plane_enable"; -DLLSPEC daeString COLLADA_TYPE_BLEND_COLOR = "blend_color"; -DLLSPEC daeString COLLADA_TYPE_CLEAR_COLOR = "clear_color"; -DLLSPEC daeString COLLADA_TYPE_CLEAR_STENCIL = "clear_stencil"; -DLLSPEC daeString COLLADA_TYPE_CLEAR_DEPTH = "clear_depth"; -DLLSPEC daeString COLLADA_TYPE_COLOR_MASK = "color_mask"; -DLLSPEC daeString COLLADA_TYPE_DEPTH_BOUNDS = "depth_bounds"; -DLLSPEC daeString COLLADA_TYPE_DEPTH_MASK = "depth_mask"; -DLLSPEC daeString COLLADA_TYPE_DEPTH_RANGE = "depth_range"; -DLLSPEC daeString COLLADA_TYPE_FOG_DENSITY = "fog_density"; -DLLSPEC daeString COLLADA_TYPE_FOG_START = "fog_start"; -DLLSPEC daeString COLLADA_TYPE_FOG_END = "fog_end"; -DLLSPEC daeString COLLADA_TYPE_FOG_COLOR = "fog_color"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_MODEL_AMBIENT = "light_model_ambient"; -DLLSPEC daeString COLLADA_TYPE_LIGHTING_ENABLE = "lighting_enable"; -DLLSPEC daeString COLLADA_TYPE_LINE_STIPPLE = "line_stipple"; -DLLSPEC daeString COLLADA_TYPE_LINE_WIDTH = "line_width"; -DLLSPEC daeString COLLADA_TYPE_MATERIAL_AMBIENT = "material_ambient"; -DLLSPEC daeString COLLADA_TYPE_MATERIAL_DIFFUSE = "material_diffuse"; -DLLSPEC daeString COLLADA_TYPE_MATERIAL_EMISSION = "material_emission"; -DLLSPEC daeString COLLADA_TYPE_MATERIAL_SHININESS = "material_shininess"; -DLLSPEC daeString COLLADA_TYPE_MATERIAL_SPECULAR = "material_specular"; -DLLSPEC daeString COLLADA_TYPE_MODEL_VIEW_MATRIX = "model_view_matrix"; -DLLSPEC daeString COLLADA_TYPE_POINT_DISTANCE_ATTENUATION = "point_distance_attenuation"; -DLLSPEC daeString COLLADA_TYPE_POINT_FADE_THRESHOLD_SIZE = "point_fade_threshold_size"; -DLLSPEC daeString COLLADA_TYPE_POINT_SIZE = "point_size"; -DLLSPEC daeString COLLADA_TYPE_POINT_SIZE_MIN = "point_size_min"; -DLLSPEC daeString COLLADA_TYPE_POINT_SIZE_MAX = "point_size_max"; -DLLSPEC daeString COLLADA_TYPE_POLYGON_OFFSET = "polygon_offset"; -DLLSPEC daeString COLLADA_TYPE_PROJECTION_MATRIX = "projection_matrix"; -DLLSPEC daeString COLLADA_TYPE_SCISSOR = "scissor"; -DLLSPEC daeString COLLADA_TYPE_STENCIL_MASK = "stencil_mask"; -DLLSPEC daeString COLLADA_TYPE_ALPHA_TEST_ENABLE = "alpha_test_enable"; -DLLSPEC daeString COLLADA_TYPE_AUTO_NORMAL_ENABLE = "auto_normal_enable"; -DLLSPEC daeString COLLADA_TYPE_BLEND_ENABLE = "blend_enable"; -DLLSPEC daeString COLLADA_TYPE_COLOR_LOGIC_OP_ENABLE = "color_logic_op_enable"; -DLLSPEC daeString COLLADA_TYPE_COLOR_MATERIAL_ENABLE = "color_material_enable"; -DLLSPEC daeString COLLADA_TYPE_CULL_FACE_ENABLE = "cull_face_enable"; -DLLSPEC daeString COLLADA_TYPE_DEPTH_BOUNDS_ENABLE = "depth_bounds_enable"; -DLLSPEC daeString COLLADA_TYPE_DEPTH_CLAMP_ENABLE = "depth_clamp_enable"; -DLLSPEC daeString COLLADA_TYPE_DEPTH_TEST_ENABLE = "depth_test_enable"; -DLLSPEC daeString COLLADA_TYPE_DITHER_ENABLE = "dither_enable"; -DLLSPEC daeString COLLADA_TYPE_FOG_ENABLE = "fog_enable"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_MODEL_LOCAL_VIEWER_ENABLE = "light_model_local_viewer_enable"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_MODEL_TWO_SIDE_ENABLE = "light_model_two_side_enable"; -DLLSPEC daeString COLLADA_TYPE_LINE_SMOOTH_ENABLE = "line_smooth_enable"; -DLLSPEC daeString COLLADA_TYPE_LINE_STIPPLE_ENABLE = "line_stipple_enable"; -DLLSPEC daeString COLLADA_TYPE_LOGIC_OP_ENABLE = "logic_op_enable"; -DLLSPEC daeString COLLADA_TYPE_MULTISAMPLE_ENABLE = "multisample_enable"; -DLLSPEC daeString COLLADA_TYPE_NORMALIZE_ENABLE = "normalize_enable"; -DLLSPEC daeString COLLADA_TYPE_POINT_SMOOTH_ENABLE = "point_smooth_enable"; -DLLSPEC daeString COLLADA_TYPE_POLYGON_OFFSET_FILL_ENABLE = "polygon_offset_fill_enable"; -DLLSPEC daeString COLLADA_TYPE_POLYGON_OFFSET_LINE_ENABLE = "polygon_offset_line_enable"; -DLLSPEC daeString COLLADA_TYPE_POLYGON_OFFSET_POINT_ENABLE = "polygon_offset_point_enable"; -DLLSPEC daeString COLLADA_TYPE_POLYGON_SMOOTH_ENABLE = "polygon_smooth_enable"; -DLLSPEC daeString COLLADA_TYPE_POLYGON_STIPPLE_ENABLE = "polygon_stipple_enable"; -DLLSPEC daeString COLLADA_TYPE_RESCALE_NORMAL_ENABLE = "rescale_normal_enable"; -DLLSPEC daeString COLLADA_TYPE_SAMPLE_ALPHA_TO_COVERAGE_ENABLE = "sample_alpha_to_coverage_enable"; -DLLSPEC daeString COLLADA_TYPE_SAMPLE_ALPHA_TO_ONE_ENABLE = "sample_alpha_to_one_enable"; -DLLSPEC daeString COLLADA_TYPE_SAMPLE_COVERAGE_ENABLE = "sample_coverage_enable"; -DLLSPEC daeString COLLADA_TYPE_SCISSOR_TEST_ENABLE = "scissor_test_enable"; -DLLSPEC daeString COLLADA_TYPE_STENCIL_TEST_ENABLE = "stencil_test_enable"; -DLLSPEC daeString COLLADA_TYPE_GLSL_PARAM_TYPE = "glsl_param_type"; -DLLSPEC daeString COLLADA_TYPE_CG_PARAM_TYPE = "cg_param_type"; -DLLSPEC daeString COLLADA_TYPE_BOOL1 = "bool1"; -DLLSPEC daeString COLLADA_TYPE_BOOL1X1 = "bool1x1"; -DLLSPEC daeString COLLADA_TYPE_BOOL1X2 = "bool1x2"; -DLLSPEC daeString COLLADA_TYPE_BOOL1X3 = "bool1x3"; -DLLSPEC daeString COLLADA_TYPE_BOOL1X4 = "bool1x4"; -DLLSPEC daeString COLLADA_TYPE_BOOL2X1 = "bool2x1"; -DLLSPEC daeString COLLADA_TYPE_BOOL2X2 = "bool2x2"; -DLLSPEC daeString COLLADA_TYPE_BOOL2X3 = "bool2x3"; -DLLSPEC daeString COLLADA_TYPE_BOOL2X4 = "bool2x4"; -DLLSPEC daeString COLLADA_TYPE_BOOL3X1 = "bool3x1"; -DLLSPEC daeString COLLADA_TYPE_BOOL3X2 = "bool3x2"; -DLLSPEC daeString COLLADA_TYPE_BOOL3X3 = "bool3x3"; -DLLSPEC daeString COLLADA_TYPE_BOOL3X4 = "bool3x4"; -DLLSPEC daeString COLLADA_TYPE_BOOL4X1 = "bool4x1"; -DLLSPEC daeString COLLADA_TYPE_BOOL4X2 = "bool4x2"; -DLLSPEC daeString COLLADA_TYPE_BOOL4X3 = "bool4x3"; -DLLSPEC daeString COLLADA_TYPE_BOOL4X4 = "bool4x4"; -DLLSPEC daeString COLLADA_TYPE_FLOAT1 = "float1"; -DLLSPEC daeString COLLADA_TYPE_INT1 = "int1"; -DLLSPEC daeString COLLADA_TYPE_INT1X1 = "int1x1"; -DLLSPEC daeString COLLADA_TYPE_INT1X2 = "int1x2"; -DLLSPEC daeString COLLADA_TYPE_INT1X3 = "int1x3"; -DLLSPEC daeString COLLADA_TYPE_INT1X4 = "int1x4"; -DLLSPEC daeString COLLADA_TYPE_INT2X1 = "int2x1"; -DLLSPEC daeString COLLADA_TYPE_INT2X2 = "int2x2"; -DLLSPEC daeString COLLADA_TYPE_INT2X3 = "int2x3"; -DLLSPEC daeString COLLADA_TYPE_INT2X4 = "int2x4"; -DLLSPEC daeString COLLADA_TYPE_INT3X1 = "int3x1"; -DLLSPEC daeString COLLADA_TYPE_INT3X2 = "int3x2"; -DLLSPEC daeString COLLADA_TYPE_INT3X3 = "int3x3"; -DLLSPEC daeString COLLADA_TYPE_INT3X4 = "int3x4"; -DLLSPEC daeString COLLADA_TYPE_INT4X1 = "int4x1"; -DLLSPEC daeString COLLADA_TYPE_INT4X2 = "int4x2"; -DLLSPEC daeString COLLADA_TYPE_INT4X3 = "int4x3"; -DLLSPEC daeString COLLADA_TYPE_INT4X4 = "int4x4"; -DLLSPEC daeString COLLADA_TYPE_HALF = "half"; -DLLSPEC daeString COLLADA_TYPE_HALF1 = "half1"; -DLLSPEC daeString COLLADA_TYPE_HALF2 = "half2"; -DLLSPEC daeString COLLADA_TYPE_HALF3 = "half3"; -DLLSPEC daeString COLLADA_TYPE_HALF4 = "half4"; -DLLSPEC daeString COLLADA_TYPE_HALF1X1 = "half1x1"; -DLLSPEC daeString COLLADA_TYPE_HALF1X2 = "half1x2"; -DLLSPEC daeString COLLADA_TYPE_HALF1X3 = "half1x3"; -DLLSPEC daeString COLLADA_TYPE_HALF1X4 = "half1x4"; -DLLSPEC daeString COLLADA_TYPE_HALF2X1 = "half2x1"; -DLLSPEC daeString COLLADA_TYPE_HALF2X2 = "half2x2"; -DLLSPEC daeString COLLADA_TYPE_HALF2X3 = "half2x3"; -DLLSPEC daeString COLLADA_TYPE_HALF2X4 = "half2x4"; -DLLSPEC daeString COLLADA_TYPE_HALF3X1 = "half3x1"; -DLLSPEC daeString COLLADA_TYPE_HALF3X2 = "half3x2"; -DLLSPEC daeString COLLADA_TYPE_HALF3X3 = "half3x3"; -DLLSPEC daeString COLLADA_TYPE_HALF3X4 = "half3x4"; -DLLSPEC daeString COLLADA_TYPE_HALF4X1 = "half4x1"; -DLLSPEC daeString COLLADA_TYPE_HALF4X2 = "half4x2"; -DLLSPEC daeString COLLADA_TYPE_HALF4X3 = "half4x3"; -DLLSPEC daeString COLLADA_TYPE_HALF4X4 = "half4x4"; -DLLSPEC daeString COLLADA_TYPE_FIXED = "fixed"; -DLLSPEC daeString COLLADA_TYPE_FIXED1 = "fixed1"; -DLLSPEC daeString COLLADA_TYPE_FIXED2 = "fixed2"; -DLLSPEC daeString COLLADA_TYPE_FIXED3 = "fixed3"; -DLLSPEC daeString COLLADA_TYPE_FIXED4 = "fixed4"; -DLLSPEC daeString COLLADA_TYPE_FIXED1X1 = "fixed1x1"; -DLLSPEC daeString COLLADA_TYPE_FIXED1X2 = "fixed1x2"; -DLLSPEC daeString COLLADA_TYPE_FIXED1X3 = "fixed1x3"; -DLLSPEC daeString COLLADA_TYPE_FIXED1X4 = "fixed1x4"; -DLLSPEC daeString COLLADA_TYPE_FIXED2X1 = "fixed2x1"; -DLLSPEC daeString COLLADA_TYPE_FIXED2X2 = "fixed2x2"; -DLLSPEC daeString COLLADA_TYPE_FIXED2X3 = "fixed2x3"; -DLLSPEC daeString COLLADA_TYPE_FIXED2X4 = "fixed2x4"; -DLLSPEC daeString COLLADA_TYPE_FIXED3X1 = "fixed3x1"; -DLLSPEC daeString COLLADA_TYPE_FIXED3X2 = "fixed3x2"; -DLLSPEC daeString COLLADA_TYPE_FIXED3X3 = "fixed3x3"; -DLLSPEC daeString COLLADA_TYPE_FIXED3X4 = "fixed3x4"; -DLLSPEC daeString COLLADA_TYPE_FIXED4X1 = "fixed4x1"; -DLLSPEC daeString COLLADA_TYPE_FIXED4X2 = "fixed4x2"; -DLLSPEC daeString COLLADA_TYPE_FIXED4X3 = "fixed4x3"; -DLLSPEC daeString COLLADA_TYPE_FIXED4X4 = "fixed4x4"; -DLLSPEC daeString COLLADA_TYPE_GLES_PIPELINE_SETTINGS = "gles_pipeline_settings"; -DLLSPEC daeString COLLADA_TYPE_TEXTURE_PIPELINE = "texture_pipeline"; -DLLSPEC daeString COLLADA_TYPE_LIGHT_LINEAR_ATTENUTATION = "light_linear_attenutation"; -DLLSPEC daeString COLLADA_TYPE_TEXTURE_PIPELINE_ENABLE = "texture_pipeline_enable"; -DLLSPEC daeString COLLADA_TYPE_GLES_BASIC_TYPE_COMMON = "gles_basic_type_common"; -DLLSPEC daeString COLLADA_TYPE_COLLADA = "COLLADA"; -DLLSPEC daeString COLLADA_TYPE_SCENE = "scene"; -DLLSPEC daeString COLLADA_TYPE_IDREF_ARRAY = "IDREF_array"; -DLLSPEC daeString COLLADA_TYPE_NAME_ARRAY = "Name_array"; -DLLSPEC daeString COLLADA_TYPE_BOOL_ARRAY = "bool_array"; -DLLSPEC daeString COLLADA_TYPE_FLOAT_ARRAY = "float_array"; -DLLSPEC daeString COLLADA_TYPE_INT_ARRAY = "int_array"; -DLLSPEC daeString COLLADA_TYPE_ACCESSOR = "accessor"; -DLLSPEC daeString COLLADA_TYPE_TECHNIQUE_COMMON = "technique_common"; -DLLSPEC daeString COLLADA_TYPE_GEOMETRY = "geometry"; -DLLSPEC daeString COLLADA_TYPE_MESH = "mesh"; -DLLSPEC daeString COLLADA_TYPE_SPLINE = "spline"; -DLLSPEC daeString COLLADA_TYPE_CONTROL_VERTICES = "control_vertices"; -DLLSPEC daeString COLLADA_TYPE_P = "p"; -DLLSPEC daeString COLLADA_TYPE_LINES = "lines"; -DLLSPEC daeString COLLADA_TYPE_LINESTRIPS = "linestrips"; -DLLSPEC daeString COLLADA_TYPE_POLYGONS = "polygons"; -DLLSPEC daeString COLLADA_TYPE_PH = "ph"; -DLLSPEC daeString COLLADA_TYPE_H = "h"; -DLLSPEC daeString COLLADA_TYPE_POLYLIST = "polylist"; -DLLSPEC daeString COLLADA_TYPE_VCOUNT = "vcount"; -DLLSPEC daeString COLLADA_TYPE_TRIANGLES = "triangles"; -DLLSPEC daeString COLLADA_TYPE_TRIFANS = "trifans"; -DLLSPEC daeString COLLADA_TYPE_TRISTRIPS = "tristrips"; -DLLSPEC daeString COLLADA_TYPE_VERTICES = "vertices"; -DLLSPEC daeString COLLADA_TYPE_LOOKAT = "lookat"; -DLLSPEC daeString COLLADA_TYPE_MATRIX = "matrix"; -DLLSPEC daeString COLLADA_TYPE_ROTATE = "rotate"; -DLLSPEC daeString COLLADA_TYPE_SCALE = "scale"; -DLLSPEC daeString COLLADA_TYPE_SKEW = "skew"; -DLLSPEC daeString COLLADA_TYPE_TRANSLATE = "translate"; -DLLSPEC daeString COLLADA_TYPE_IMAGE = "image"; -DLLSPEC daeString COLLADA_TYPE_DATA = "data"; -DLLSPEC daeString COLLADA_TYPE_INIT_FROM = "init_from"; -DLLSPEC daeString COLLADA_TYPE_LIGHT = "light"; -DLLSPEC daeString COLLADA_TYPE_AMBIENT = "ambient"; -DLLSPEC daeString COLLADA_TYPE_DIRECTIONAL = "directional"; -DLLSPEC daeString COLLADA_TYPE_POINT = "point"; -DLLSPEC daeString COLLADA_TYPE_SPOT = "spot"; -DLLSPEC daeString COLLADA_TYPE_MATERIAL = "material"; -DLLSPEC daeString COLLADA_TYPE_CAMERA = "camera"; -DLLSPEC daeString COLLADA_TYPE_OPTICS = "optics"; -DLLSPEC daeString COLLADA_TYPE_ORTHOGRAPHIC = "orthographic"; -DLLSPEC daeString COLLADA_TYPE_PERSPECTIVE = "perspective"; -DLLSPEC daeString COLLADA_TYPE_IMAGER = "imager"; -DLLSPEC daeString COLLADA_TYPE_ANIMATION = "animation"; -DLLSPEC daeString COLLADA_TYPE_ANIMATION_CLIP = "animation_clip"; -DLLSPEC daeString COLLADA_TYPE_CHANNEL = "channel"; -DLLSPEC daeString COLLADA_TYPE_SAMPLER = "sampler"; -DLLSPEC daeString COLLADA_TYPE_CONTROLLER = "controller"; -DLLSPEC daeString COLLADA_TYPE_SKIN = "skin"; -DLLSPEC daeString COLLADA_TYPE_BIND_SHAPE_MATRIX = "bind_shape_matrix"; -DLLSPEC daeString COLLADA_TYPE_JOINTS = "joints"; -DLLSPEC daeString COLLADA_TYPE_VERTEX_WEIGHTS = "vertex_weights"; -DLLSPEC daeString COLLADA_TYPE_V = "v"; -DLLSPEC daeString COLLADA_TYPE_MORPH = "morph"; -DLLSPEC daeString COLLADA_TYPE_TARGETS = "targets"; -DLLSPEC daeString COLLADA_TYPE_ASSET = "asset"; -DLLSPEC daeString COLLADA_TYPE_CONTRIBUTOR = "contributor"; -DLLSPEC daeString COLLADA_TYPE_AUTHOR = "author"; -DLLSPEC daeString COLLADA_TYPE_AUTHORING_TOOL = "authoring_tool"; -DLLSPEC daeString COLLADA_TYPE_COMMENTS = "comments"; -DLLSPEC daeString COLLADA_TYPE_COPYRIGHT = "copyright"; -DLLSPEC daeString COLLADA_TYPE_SOURCE_DATA = "source_data"; -DLLSPEC daeString COLLADA_TYPE_CREATED = "created"; -DLLSPEC daeString COLLADA_TYPE_KEYWORDS = "keywords"; -DLLSPEC daeString COLLADA_TYPE_MODIFIED = "modified"; -DLLSPEC daeString COLLADA_TYPE_REVISION = "revision"; -DLLSPEC daeString COLLADA_TYPE_SUBJECT = "subject"; -DLLSPEC daeString COLLADA_TYPE_TITLE = "title"; -DLLSPEC daeString COLLADA_TYPE_UNIT = "unit"; -DLLSPEC daeString COLLADA_TYPE_UP_AXIS = "up_axis"; -DLLSPEC daeString COLLADA_TYPE_EXTRA = "extra"; -DLLSPEC daeString COLLADA_TYPE_TECHNIQUE = "technique"; -DLLSPEC daeString COLLADA_TYPE_NODE = "node"; -DLLSPEC daeString COLLADA_TYPE_VISUAL_SCENE = "visual_scene"; -DLLSPEC daeString COLLADA_TYPE_EVALUATE_SCENE = "evaluate_scene"; -DLLSPEC daeString COLLADA_TYPE_RENDER = "render"; -DLLSPEC daeString COLLADA_TYPE_LAYER = "layer"; -DLLSPEC daeString COLLADA_TYPE_BIND_MATERIAL = "bind_material"; -DLLSPEC daeString COLLADA_TYPE_INSTANCE_CAMERA = "instance_camera"; -DLLSPEC daeString COLLADA_TYPE_INSTANCE_CONTROLLER = "instance_controller"; -DLLSPEC daeString COLLADA_TYPE_SKELETON = "skeleton"; -DLLSPEC daeString COLLADA_TYPE_INSTANCE_EFFECT = "instance_effect"; -DLLSPEC daeString COLLADA_TYPE_TECHNIQUE_HINT = "technique_hint"; -DLLSPEC daeString COLLADA_TYPE_SETPARAM = "setparam"; -DLLSPEC daeString COLLADA_TYPE_INSTANCE_FORCE_FIELD = "instance_force_field"; -DLLSPEC daeString COLLADA_TYPE_INSTANCE_GEOMETRY = "instance_geometry"; -DLLSPEC daeString COLLADA_TYPE_INSTANCE_LIGHT = "instance_light"; -DLLSPEC daeString COLLADA_TYPE_INSTANCE_MATERIAL = "instance_material"; -DLLSPEC daeString COLLADA_TYPE_BIND = "bind"; -DLLSPEC daeString COLLADA_TYPE_BIND_VERTEX_INPUT = "bind_vertex_input"; -DLLSPEC daeString COLLADA_TYPE_INSTANCE_NODE = "instance_node"; -DLLSPEC daeString COLLADA_TYPE_INSTANCE_PHYSICS_MATERIAL = "instance_physics_material"; -DLLSPEC daeString COLLADA_TYPE_INSTANCE_PHYSICS_MODEL = "instance_physics_model"; -DLLSPEC daeString COLLADA_TYPE_INSTANCE_RIGID_BODY = "instance_rigid_body"; -DLLSPEC daeString COLLADA_TYPE_ANGULAR_VELOCITY = "angular_velocity"; -DLLSPEC daeString COLLADA_TYPE_VELOCITY = "velocity"; -DLLSPEC daeString COLLADA_TYPE_DYNAMIC = "dynamic"; -DLLSPEC daeString COLLADA_TYPE_MASS_FRAME = "mass_frame"; -DLLSPEC daeString COLLADA_TYPE_SHAPE = "shape"; -DLLSPEC daeString COLLADA_TYPE_HOLLOW = "hollow"; -DLLSPEC daeString COLLADA_TYPE_INSTANCE_RIGID_CONSTRAINT = "instance_rigid_constraint"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_ANIMATIONS = "library_animations"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_ANIMATION_CLIPS = "library_animation_clips"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_CAMERAS = "library_cameras"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_CONTROLLERS = "library_controllers"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_GEOMETRIES = "library_geometries"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_EFFECTS = "library_effects"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_FORCE_FIELDS = "library_force_fields"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_IMAGES = "library_images"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_LIGHTS = "library_lights"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_MATERIALS = "library_materials"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_NODES = "library_nodes"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_PHYSICS_MATERIALS = "library_physics_materials"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_PHYSICS_MODELS = "library_physics_models"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_PHYSICS_SCENES = "library_physics_scenes"; -DLLSPEC daeString COLLADA_TYPE_LIBRARY_VISUAL_SCENES = "library_visual_scenes"; -DLLSPEC daeString COLLADA_TYPE_FX_PROFILE_ABSTRACT = "fx_profile_abstract"; -DLLSPEC daeString COLLADA_TYPE_EFFECT = "effect"; -DLLSPEC daeString COLLADA_TYPE_GL_HOOK_ABSTRACT = "gl_hook_abstract"; -DLLSPEC daeString COLLADA_TYPE_PROFILE_GLSL = "profile_GLSL"; -DLLSPEC daeString COLLADA_TYPE_PASS = "pass"; -DLLSPEC daeString COLLADA_TYPE_DRAW = "draw"; -DLLSPEC daeString COLLADA_TYPE_SHADER = "shader"; -DLLSPEC daeString COLLADA_TYPE_COMPILER_TARGET = "compiler_target"; -DLLSPEC daeString COLLADA_TYPE_COMPILER_OPTIONS = "compiler_options"; -DLLSPEC daeString COLLADA_TYPE_PROFILE_COMMON = "profile_COMMON"; -DLLSPEC daeString COLLADA_TYPE_CONSTANT = "constant"; -DLLSPEC daeString COLLADA_TYPE_LAMBERT = "lambert"; -DLLSPEC daeString COLLADA_TYPE_PHONG = "phong"; -DLLSPEC daeString COLLADA_TYPE_BLINN = "blinn"; -DLLSPEC daeString COLLADA_TYPE_PROFILE_CG = "profile_CG"; -DLLSPEC daeString COLLADA_TYPE_PROFILE_GLES = "profile_GLES"; -DLLSPEC daeString COLLADA_TYPE_COLOR_TARGET = "color_target"; -DLLSPEC daeString COLLADA_TYPE_DEPTH_TARGET = "depth_target"; -DLLSPEC daeString COLLADA_TYPE_STENCIL_TARGET = "stencil_target"; -DLLSPEC daeString COLLADA_TYPE_COLOR_CLEAR = "color_clear"; -DLLSPEC daeString COLLADA_TYPE_DEPTH_CLEAR = "depth_clear"; -DLLSPEC daeString COLLADA_TYPE_STENCIL_CLEAR = "stencil_clear"; -DLLSPEC daeString COLLADA_TYPE_BOX = "box"; -DLLSPEC daeString COLLADA_TYPE_HALF_EXTENTS = "half_extents"; -DLLSPEC daeString COLLADA_TYPE_PLANE = "plane"; -DLLSPEC daeString COLLADA_TYPE_EQUATION = "equation"; -DLLSPEC daeString COLLADA_TYPE_SPHERE = "sphere"; -DLLSPEC daeString COLLADA_TYPE_RADIUS = "radius"; -DLLSPEC daeString COLLADA_TYPE_ELLIPSOID = "ellipsoid"; -DLLSPEC daeString COLLADA_TYPE_CYLINDER = "cylinder"; -DLLSPEC daeString COLLADA_TYPE_HEIGHT = "height"; -DLLSPEC daeString COLLADA_TYPE_TAPERED_CYLINDER = "tapered_cylinder"; -DLLSPEC daeString COLLADA_TYPE_RADIUS1 = "radius1"; -DLLSPEC daeString COLLADA_TYPE_RADIUS2 = "radius2"; -DLLSPEC daeString COLLADA_TYPE_CAPSULE = "capsule"; -DLLSPEC daeString COLLADA_TYPE_TAPERED_CAPSULE = "tapered_capsule"; -DLLSPEC daeString COLLADA_TYPE_CONVEX_MESH = "convex_mesh"; -DLLSPEC daeString COLLADA_TYPE_FORCE_FIELD = "force_field"; -DLLSPEC daeString COLLADA_TYPE_PHYSICS_MATERIAL = "physics_material"; -DLLSPEC daeString COLLADA_TYPE_PHYSICS_SCENE = "physics_scene"; -DLLSPEC daeString COLLADA_TYPE_RIGID_BODY = "rigid_body"; -DLLSPEC daeString COLLADA_TYPE_RIGID_CONSTRAINT = "rigid_constraint"; -DLLSPEC daeString COLLADA_TYPE_REF_ATTACHMENT = "ref_attachment"; -DLLSPEC daeString COLLADA_TYPE_ATTACHMENT = "attachment"; -DLLSPEC daeString COLLADA_TYPE_ENABLED = "enabled"; -DLLSPEC daeString COLLADA_TYPE_INTERPENETRATE = "interpenetrate"; -DLLSPEC daeString COLLADA_TYPE_LIMITS = "limits"; -DLLSPEC daeString COLLADA_TYPE_SWING_CONE_AND_TWIST = "swing_cone_and_twist"; -DLLSPEC daeString COLLADA_TYPE_LINEAR = "linear"; -DLLSPEC daeString COLLADA_TYPE_SPRING = "spring"; -DLLSPEC daeString COLLADA_TYPE_ANGULAR = "angular"; -DLLSPEC daeString COLLADA_TYPE_PHYSICS_MODEL = "physics_model"; - -DLLSPEC daeString COLLADA_ELEMENT_COLLADA = "COLLADA"; -DLLSPEC daeString COLLADA_ELEMENT_EXTRA = "extra"; -DLLSPEC daeString COLLADA_ELEMENT_CHANNELS = "channels"; -DLLSPEC daeString COLLADA_ELEMENT_RANGE = "range"; -DLLSPEC daeString COLLADA_ELEMENT_PRECISION = "precision"; -DLLSPEC daeString COLLADA_ELEMENT_OPTION = "option"; -DLLSPEC daeString COLLADA_ELEMENT_ALL = "all"; -DLLSPEC daeString COLLADA_ELEMENT_PRIMARY = "primary"; -DLLSPEC daeString COLLADA_ELEMENT_FACE = "face"; -DLLSPEC daeString COLLADA_ELEMENT_ORDER = "order"; -DLLSPEC daeString COLLADA_ELEMENT_FX_SURFACE_INIT_COMMON = "fx_surface_init_common"; -DLLSPEC daeString COLLADA_ELEMENT_FORMAT = "format"; -DLLSPEC daeString COLLADA_ELEMENT_FORMAT_HINT = "format_hint"; -DLLSPEC daeString COLLADA_ELEMENT_SIZE = "size"; -DLLSPEC daeString COLLADA_ELEMENT_VIEWPORT_RATIO = "viewport_ratio"; -DLLSPEC daeString COLLADA_ELEMENT_MIP_LEVELS = "mip_levels"; -DLLSPEC daeString COLLADA_ELEMENT_MIPMAP_GENERATE = "mipmap_generate"; -DLLSPEC daeString COLLADA_ELEMENT_SOURCE = "source"; -DLLSPEC daeString COLLADA_ELEMENT_WRAP_S = "wrap_s"; -DLLSPEC daeString COLLADA_ELEMENT_MINFILTER = "minfilter"; -DLLSPEC daeString COLLADA_ELEMENT_MAGFILTER = "magfilter"; -DLLSPEC daeString COLLADA_ELEMENT_MIPFILTER = "mipfilter"; -DLLSPEC daeString COLLADA_ELEMENT_BORDER_COLOR = "border_color"; -DLLSPEC daeString COLLADA_ELEMENT_MIPMAP_MAXLEVEL = "mipmap_maxlevel"; -DLLSPEC daeString COLLADA_ELEMENT_MIPMAP_BIAS = "mipmap_bias"; -DLLSPEC daeString COLLADA_ELEMENT_WRAP_T = "wrap_t"; -DLLSPEC daeString COLLADA_ELEMENT_WRAP_P = "wrap_p"; -DLLSPEC daeString COLLADA_ELEMENT_FX_ANNOTATE_TYPE_COMMON = "fx_annotate_type_common"; -DLLSPEC daeString COLLADA_ELEMENT_ANNOTATE = "annotate"; -DLLSPEC daeString COLLADA_ELEMENT_SEMANTIC = "semantic"; -DLLSPEC daeString COLLADA_ELEMENT_MODIFIER = "modifier"; -DLLSPEC daeString COLLADA_ELEMENT_FX_BASIC_TYPE_COMMON = "fx_basic_type_common"; -DLLSPEC daeString COLLADA_ELEMENT_GLSL_PARAM_TYPE = "glsl_param_type"; -DLLSPEC daeString COLLADA_ELEMENT_ARRAY = "array"; -DLLSPEC daeString COLLADA_ELEMENT_GENERATOR = "generator"; -DLLSPEC daeString COLLADA_ELEMENT_CODE = "code"; -DLLSPEC daeString COLLADA_ELEMENT_INCLUDE = "include"; -DLLSPEC daeString COLLADA_ELEMENT_NAME = "name"; -DLLSPEC daeString COLLADA_ELEMENT_SETPARAM = "setparam"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT = "float"; -DLLSPEC daeString COLLADA_ELEMENT_PARAM = "param"; -DLLSPEC daeString COLLADA_ELEMENT_COLOR = "color"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURE = "texture"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT2 = "float2"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT3 = "float3"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT4 = "float4"; -DLLSPEC daeString COLLADA_ELEMENT_SURFACE = "surface"; -DLLSPEC daeString COLLADA_ELEMENT_SAMPLER2D = "sampler2D"; -DLLSPEC daeString COLLADA_ELEMENT_CG_PARAM_TYPE = "cg_param_type"; -DLLSPEC daeString COLLADA_ELEMENT_USERTYPE = "usertype"; -DLLSPEC daeString COLLADA_ELEMENT_CONNECT_PARAM = "connect_param"; -DLLSPEC daeString COLLADA_ELEMENT_CONSTANT = "constant"; -DLLSPEC daeString COLLADA_ELEMENT_ARGUMENT = "argument"; -DLLSPEC daeString COLLADA_ELEMENT_RGB = "RGB"; -DLLSPEC daeString COLLADA_ELEMENT_ALPHA = "alpha"; -DLLSPEC daeString COLLADA_ELEMENT_TEXCOMBINER = "texcombiner"; -DLLSPEC daeString COLLADA_ELEMENT_TEXENV = "texenv"; -DLLSPEC daeString COLLADA_ELEMENT_SAMPLER_STATE = "sampler_state"; -DLLSPEC daeString COLLADA_ELEMENT_TEXCOORD = "texcoord"; -DLLSPEC daeString COLLADA_ELEMENT_GLES_BASIC_TYPE_COMMON = "gles_basic_type_common"; -DLLSPEC daeString COLLADA_ELEMENT_INIT_AS_NULL = "init_as_null"; -DLLSPEC daeString COLLADA_ELEMENT_INIT_AS_TARGET = "init_as_target"; -DLLSPEC daeString COLLADA_ELEMENT_INIT_CUBE = "init_cube"; -DLLSPEC daeString COLLADA_ELEMENT_INIT_VOLUME = "init_volume"; -DLLSPEC daeString COLLADA_ELEMENT_INIT_PLANAR = "init_planar"; -DLLSPEC daeString COLLADA_ELEMENT_INIT_FROM = "init_from"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL = "bool"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL2 = "bool2"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL3 = "bool3"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL4 = "bool4"; -DLLSPEC daeString COLLADA_ELEMENT_INT = "int"; -DLLSPEC daeString COLLADA_ELEMENT_INT2 = "int2"; -DLLSPEC daeString COLLADA_ELEMENT_INT3 = "int3"; -DLLSPEC daeString COLLADA_ELEMENT_INT4 = "int4"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT2X2 = "float2x2"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT3X3 = "float3x3"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT4X4 = "float4x4"; -DLLSPEC daeString COLLADA_ELEMENT_STRING = "string"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT1X1 = "float1x1"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT1X2 = "float1x2"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT1X3 = "float1x3"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT1X4 = "float1x4"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT2X1 = "float2x1"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT2X3 = "float2x3"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT2X4 = "float2x4"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT3X1 = "float3x1"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT3X2 = "float3x2"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT3X4 = "float3x4"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT4X1 = "float4x1"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT4X2 = "float4x2"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT4X3 = "float4x3"; -DLLSPEC daeString COLLADA_ELEMENT_SAMPLER1D = "sampler1D"; -DLLSPEC daeString COLLADA_ELEMENT_SAMPLER3D = "sampler3D"; -DLLSPEC daeString COLLADA_ELEMENT_SAMPLERCUBE = "samplerCUBE"; -DLLSPEC daeString COLLADA_ELEMENT_SAMPLERRECT = "samplerRECT"; -DLLSPEC daeString COLLADA_ELEMENT_SAMPLERDEPTH = "samplerDEPTH"; -DLLSPEC daeString COLLADA_ELEMENT_ENUM = "enum"; -DLLSPEC daeString COLLADA_ELEMENT_ALPHA_FUNC = "alpha_func"; -DLLSPEC daeString COLLADA_ELEMENT_BLEND_FUNC = "blend_func"; -DLLSPEC daeString COLLADA_ELEMENT_BLEND_FUNC_SEPARATE = "blend_func_separate"; -DLLSPEC daeString COLLADA_ELEMENT_BLEND_EQUATION = "blend_equation"; -DLLSPEC daeString COLLADA_ELEMENT_BLEND_EQUATION_SEPARATE = "blend_equation_separate"; -DLLSPEC daeString COLLADA_ELEMENT_COLOR_MATERIAL = "color_material"; -DLLSPEC daeString COLLADA_ELEMENT_CULL_FACE = "cull_face"; -DLLSPEC daeString COLLADA_ELEMENT_DEPTH_FUNC = "depth_func"; -DLLSPEC daeString COLLADA_ELEMENT_FOG_MODE = "fog_mode"; -DLLSPEC daeString COLLADA_ELEMENT_FOG_COORD_SRC = "fog_coord_src"; -DLLSPEC daeString COLLADA_ELEMENT_FRONT_FACE = "front_face"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_MODEL_COLOR_CONTROL = "light_model_color_control"; -DLLSPEC daeString COLLADA_ELEMENT_LOGIC_OP = "logic_op"; -DLLSPEC daeString COLLADA_ELEMENT_POLYGON_MODE = "polygon_mode"; -DLLSPEC daeString COLLADA_ELEMENT_SHADE_MODEL = "shade_model"; -DLLSPEC daeString COLLADA_ELEMENT_STENCIL_FUNC = "stencil_func"; -DLLSPEC daeString COLLADA_ELEMENT_STENCIL_OP = "stencil_op"; -DLLSPEC daeString COLLADA_ELEMENT_STENCIL_FUNC_SEPARATE = "stencil_func_separate"; -DLLSPEC daeString COLLADA_ELEMENT_STENCIL_OP_SEPARATE = "stencil_op_separate"; -DLLSPEC daeString COLLADA_ELEMENT_STENCIL_MASK_SEPARATE = "stencil_mask_separate"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_ENABLE = "light_enable"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_AMBIENT = "light_ambient"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_DIFFUSE = "light_diffuse"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_SPECULAR = "light_specular"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_POSITION = "light_position"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_CONSTANT_ATTENUATION = "light_constant_attenuation"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_LINEAR_ATTENUATION = "light_linear_attenuation"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_QUADRATIC_ATTENUATION = "light_quadratic_attenuation"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_SPOT_CUTOFF = "light_spot_cutoff"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_SPOT_DIRECTION = "light_spot_direction"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_SPOT_EXPONENT = "light_spot_exponent"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURE1D = "texture1D"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURE2D = "texture2D"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURE3D = "texture3D"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURECUBE = "textureCUBE"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURERECT = "textureRECT"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTUREDEPTH = "textureDEPTH"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURE1D_ENABLE = "texture1D_enable"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURE2D_ENABLE = "texture2D_enable"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURE3D_ENABLE = "texture3D_enable"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURECUBE_ENABLE = "textureCUBE_enable"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURERECT_ENABLE = "textureRECT_enable"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTUREDEPTH_ENABLE = "textureDEPTH_enable"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURE_ENV_COLOR = "texture_env_color"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURE_ENV_MODE = "texture_env_mode"; -DLLSPEC daeString COLLADA_ELEMENT_CLIP_PLANE = "clip_plane"; -DLLSPEC daeString COLLADA_ELEMENT_CLIP_PLANE_ENABLE = "clip_plane_enable"; -DLLSPEC daeString COLLADA_ELEMENT_BLEND_COLOR = "blend_color"; -DLLSPEC daeString COLLADA_ELEMENT_CLEAR_COLOR = "clear_color"; -DLLSPEC daeString COLLADA_ELEMENT_CLEAR_STENCIL = "clear_stencil"; -DLLSPEC daeString COLLADA_ELEMENT_CLEAR_DEPTH = "clear_depth"; -DLLSPEC daeString COLLADA_ELEMENT_COLOR_MASK = "color_mask"; -DLLSPEC daeString COLLADA_ELEMENT_DEPTH_BOUNDS = "depth_bounds"; -DLLSPEC daeString COLLADA_ELEMENT_DEPTH_MASK = "depth_mask"; -DLLSPEC daeString COLLADA_ELEMENT_DEPTH_RANGE = "depth_range"; -DLLSPEC daeString COLLADA_ELEMENT_FOG_DENSITY = "fog_density"; -DLLSPEC daeString COLLADA_ELEMENT_FOG_START = "fog_start"; -DLLSPEC daeString COLLADA_ELEMENT_FOG_END = "fog_end"; -DLLSPEC daeString COLLADA_ELEMENT_FOG_COLOR = "fog_color"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_MODEL_AMBIENT = "light_model_ambient"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHTING_ENABLE = "lighting_enable"; -DLLSPEC daeString COLLADA_ELEMENT_LINE_STIPPLE = "line_stipple"; -DLLSPEC daeString COLLADA_ELEMENT_LINE_WIDTH = "line_width"; -DLLSPEC daeString COLLADA_ELEMENT_MATERIAL_AMBIENT = "material_ambient"; -DLLSPEC daeString COLLADA_ELEMENT_MATERIAL_DIFFUSE = "material_diffuse"; -DLLSPEC daeString COLLADA_ELEMENT_MATERIAL_EMISSION = "material_emission"; -DLLSPEC daeString COLLADA_ELEMENT_MATERIAL_SHININESS = "material_shininess"; -DLLSPEC daeString COLLADA_ELEMENT_MATERIAL_SPECULAR = "material_specular"; -DLLSPEC daeString COLLADA_ELEMENT_MODEL_VIEW_MATRIX = "model_view_matrix"; -DLLSPEC daeString COLLADA_ELEMENT_POINT_DISTANCE_ATTENUATION = "point_distance_attenuation"; -DLLSPEC daeString COLLADA_ELEMENT_POINT_FADE_THRESHOLD_SIZE = "point_fade_threshold_size"; -DLLSPEC daeString COLLADA_ELEMENT_POINT_SIZE = "point_size"; -DLLSPEC daeString COLLADA_ELEMENT_POINT_SIZE_MIN = "point_size_min"; -DLLSPEC daeString COLLADA_ELEMENT_POINT_SIZE_MAX = "point_size_max"; -DLLSPEC daeString COLLADA_ELEMENT_POLYGON_OFFSET = "polygon_offset"; -DLLSPEC daeString COLLADA_ELEMENT_PROJECTION_MATRIX = "projection_matrix"; -DLLSPEC daeString COLLADA_ELEMENT_SCISSOR = "scissor"; -DLLSPEC daeString COLLADA_ELEMENT_STENCIL_MASK = "stencil_mask"; -DLLSPEC daeString COLLADA_ELEMENT_ALPHA_TEST_ENABLE = "alpha_test_enable"; -DLLSPEC daeString COLLADA_ELEMENT_AUTO_NORMAL_ENABLE = "auto_normal_enable"; -DLLSPEC daeString COLLADA_ELEMENT_BLEND_ENABLE = "blend_enable"; -DLLSPEC daeString COLLADA_ELEMENT_COLOR_LOGIC_OP_ENABLE = "color_logic_op_enable"; -DLLSPEC daeString COLLADA_ELEMENT_COLOR_MATERIAL_ENABLE = "color_material_enable"; -DLLSPEC daeString COLLADA_ELEMENT_CULL_FACE_ENABLE = "cull_face_enable"; -DLLSPEC daeString COLLADA_ELEMENT_DEPTH_BOUNDS_ENABLE = "depth_bounds_enable"; -DLLSPEC daeString COLLADA_ELEMENT_DEPTH_CLAMP_ENABLE = "depth_clamp_enable"; -DLLSPEC daeString COLLADA_ELEMENT_DEPTH_TEST_ENABLE = "depth_test_enable"; -DLLSPEC daeString COLLADA_ELEMENT_DITHER_ENABLE = "dither_enable"; -DLLSPEC daeString COLLADA_ELEMENT_FOG_ENABLE = "fog_enable"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_MODEL_LOCAL_VIEWER_ENABLE = "light_model_local_viewer_enable"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_MODEL_TWO_SIDE_ENABLE = "light_model_two_side_enable"; -DLLSPEC daeString COLLADA_ELEMENT_LINE_SMOOTH_ENABLE = "line_smooth_enable"; -DLLSPEC daeString COLLADA_ELEMENT_LINE_STIPPLE_ENABLE = "line_stipple_enable"; -DLLSPEC daeString COLLADA_ELEMENT_LOGIC_OP_ENABLE = "logic_op_enable"; -DLLSPEC daeString COLLADA_ELEMENT_MULTISAMPLE_ENABLE = "multisample_enable"; -DLLSPEC daeString COLLADA_ELEMENT_NORMALIZE_ENABLE = "normalize_enable"; -DLLSPEC daeString COLLADA_ELEMENT_POINT_SMOOTH_ENABLE = "point_smooth_enable"; -DLLSPEC daeString COLLADA_ELEMENT_POLYGON_OFFSET_FILL_ENABLE = "polygon_offset_fill_enable"; -DLLSPEC daeString COLLADA_ELEMENT_POLYGON_OFFSET_LINE_ENABLE = "polygon_offset_line_enable"; -DLLSPEC daeString COLLADA_ELEMENT_POLYGON_OFFSET_POINT_ENABLE = "polygon_offset_point_enable"; -DLLSPEC daeString COLLADA_ELEMENT_POLYGON_SMOOTH_ENABLE = "polygon_smooth_enable"; -DLLSPEC daeString COLLADA_ELEMENT_POLYGON_STIPPLE_ENABLE = "polygon_stipple_enable"; -DLLSPEC daeString COLLADA_ELEMENT_RESCALE_NORMAL_ENABLE = "rescale_normal_enable"; -DLLSPEC daeString COLLADA_ELEMENT_SAMPLE_ALPHA_TO_COVERAGE_ENABLE = "sample_alpha_to_coverage_enable"; -DLLSPEC daeString COLLADA_ELEMENT_SAMPLE_ALPHA_TO_ONE_ENABLE = "sample_alpha_to_one_enable"; -DLLSPEC daeString COLLADA_ELEMENT_SAMPLE_COVERAGE_ENABLE = "sample_coverage_enable"; -DLLSPEC daeString COLLADA_ELEMENT_SCISSOR_TEST_ENABLE = "scissor_test_enable"; -DLLSPEC daeString COLLADA_ELEMENT_STENCIL_TEST_ENABLE = "stencil_test_enable"; -DLLSPEC daeString COLLADA_ELEMENT_GL_HOOK_ABSTRACT = "gl_hook_abstract"; -DLLSPEC daeString COLLADA_ELEMENT_FUNC = "func"; -DLLSPEC daeString COLLADA_ELEMENT_VALUE = "value"; -DLLSPEC daeString COLLADA_ELEMENT_SRC = "src"; -DLLSPEC daeString COLLADA_ELEMENT_DEST = "dest"; -DLLSPEC daeString COLLADA_ELEMENT_SRC_RGB = "src_rgb"; -DLLSPEC daeString COLLADA_ELEMENT_DEST_RGB = "dest_rgb"; -DLLSPEC daeString COLLADA_ELEMENT_SRC_ALPHA = "src_alpha"; -DLLSPEC daeString COLLADA_ELEMENT_DEST_ALPHA = "dest_alpha"; -DLLSPEC daeString COLLADA_ELEMENT_rgb = "rgb"; -DLLSPEC daeString COLLADA_ELEMENT_MODE = "mode"; -DLLSPEC daeString COLLADA_ELEMENT_REF = "ref"; -DLLSPEC daeString COLLADA_ELEMENT_MASK = "mask"; -DLLSPEC daeString COLLADA_ELEMENT_FAIL = "fail"; -DLLSPEC daeString COLLADA_ELEMENT_ZFAIL = "zfail"; -DLLSPEC daeString COLLADA_ELEMENT_ZPASS = "zpass"; -DLLSPEC daeString COLLADA_ELEMENT_FRONT = "front"; -DLLSPEC daeString COLLADA_ELEMENT_BACK = "back"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL1 = "bool1"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL1X1 = "bool1x1"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL1X2 = "bool1x2"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL1X3 = "bool1x3"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL1X4 = "bool1x4"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL2X1 = "bool2x1"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL2X2 = "bool2x2"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL2X3 = "bool2x3"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL2X4 = "bool2x4"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL3X1 = "bool3x1"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL3X2 = "bool3x2"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL3X3 = "bool3x3"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL3X4 = "bool3x4"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL4X1 = "bool4x1"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL4X2 = "bool4x2"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL4X3 = "bool4x3"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL4X4 = "bool4x4"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT1 = "float1"; -DLLSPEC daeString COLLADA_ELEMENT_INT1 = "int1"; -DLLSPEC daeString COLLADA_ELEMENT_INT1X1 = "int1x1"; -DLLSPEC daeString COLLADA_ELEMENT_INT1X2 = "int1x2"; -DLLSPEC daeString COLLADA_ELEMENT_INT1X3 = "int1x3"; -DLLSPEC daeString COLLADA_ELEMENT_INT1X4 = "int1x4"; -DLLSPEC daeString COLLADA_ELEMENT_INT2X1 = "int2x1"; -DLLSPEC daeString COLLADA_ELEMENT_INT2X2 = "int2x2"; -DLLSPEC daeString COLLADA_ELEMENT_INT2X3 = "int2x3"; -DLLSPEC daeString COLLADA_ELEMENT_INT2X4 = "int2x4"; -DLLSPEC daeString COLLADA_ELEMENT_INT3X1 = "int3x1"; -DLLSPEC daeString COLLADA_ELEMENT_INT3X2 = "int3x2"; -DLLSPEC daeString COLLADA_ELEMENT_INT3X3 = "int3x3"; -DLLSPEC daeString COLLADA_ELEMENT_INT3X4 = "int3x4"; -DLLSPEC daeString COLLADA_ELEMENT_INT4X1 = "int4x1"; -DLLSPEC daeString COLLADA_ELEMENT_INT4X2 = "int4x2"; -DLLSPEC daeString COLLADA_ELEMENT_INT4X3 = "int4x3"; -DLLSPEC daeString COLLADA_ELEMENT_INT4X4 = "int4x4"; -DLLSPEC daeString COLLADA_ELEMENT_HALF = "half"; -DLLSPEC daeString COLLADA_ELEMENT_HALF1 = "half1"; -DLLSPEC daeString COLLADA_ELEMENT_HALF2 = "half2"; -DLLSPEC daeString COLLADA_ELEMENT_HALF3 = "half3"; -DLLSPEC daeString COLLADA_ELEMENT_HALF4 = "half4"; -DLLSPEC daeString COLLADA_ELEMENT_HALF1X1 = "half1x1"; -DLLSPEC daeString COLLADA_ELEMENT_HALF1X2 = "half1x2"; -DLLSPEC daeString COLLADA_ELEMENT_HALF1X3 = "half1x3"; -DLLSPEC daeString COLLADA_ELEMENT_HALF1X4 = "half1x4"; -DLLSPEC daeString COLLADA_ELEMENT_HALF2X1 = "half2x1"; -DLLSPEC daeString COLLADA_ELEMENT_HALF2X2 = "half2x2"; -DLLSPEC daeString COLLADA_ELEMENT_HALF2X3 = "half2x3"; -DLLSPEC daeString COLLADA_ELEMENT_HALF2X4 = "half2x4"; -DLLSPEC daeString COLLADA_ELEMENT_HALF3X1 = "half3x1"; -DLLSPEC daeString COLLADA_ELEMENT_HALF3X2 = "half3x2"; -DLLSPEC daeString COLLADA_ELEMENT_HALF3X3 = "half3x3"; -DLLSPEC daeString COLLADA_ELEMENT_HALF3X4 = "half3x4"; -DLLSPEC daeString COLLADA_ELEMENT_HALF4X1 = "half4x1"; -DLLSPEC daeString COLLADA_ELEMENT_HALF4X2 = "half4x2"; -DLLSPEC daeString COLLADA_ELEMENT_HALF4X3 = "half4x3"; -DLLSPEC daeString COLLADA_ELEMENT_HALF4X4 = "half4x4"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED = "fixed"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED1 = "fixed1"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED2 = "fixed2"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED3 = "fixed3"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED4 = "fixed4"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED1X1 = "fixed1x1"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED1X2 = "fixed1x2"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED1X3 = "fixed1x3"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED1X4 = "fixed1x4"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED2X1 = "fixed2x1"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED2X2 = "fixed2x2"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED2X3 = "fixed2x3"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED2X4 = "fixed2x4"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED3X1 = "fixed3x1"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED3X2 = "fixed3x2"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED3X3 = "fixed3x3"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED3X4 = "fixed3x4"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED4X1 = "fixed4x1"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED4X2 = "fixed4x2"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED4X3 = "fixed4x3"; -DLLSPEC daeString COLLADA_ELEMENT_FIXED4X4 = "fixed4x4"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURE_PIPELINE = "texture_pipeline"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT_LINEAR_ATTENUTATION = "light_linear_attenutation"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURE_PIPELINE_ENABLE = "texture_pipeline_enable"; -DLLSPEC daeString COLLADA_ELEMENT_TEXTURE_UNIT = "texture_unit"; -DLLSPEC daeString COLLADA_ELEMENT_ASSET = "asset"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_ANIMATIONS = "library_animations"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_ANIMATION_CLIPS = "library_animation_clips"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_CAMERAS = "library_cameras"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_CONTROLLERS = "library_controllers"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_GEOMETRIES = "library_geometries"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_EFFECTS = "library_effects"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_FORCE_FIELDS = "library_force_fields"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_IMAGES = "library_images"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_LIGHTS = "library_lights"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_MATERIALS = "library_materials"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_NODES = "library_nodes"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_PHYSICS_MATERIALS = "library_physics_materials"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_PHYSICS_MODELS = "library_physics_models"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_PHYSICS_SCENES = "library_physics_scenes"; -DLLSPEC daeString COLLADA_ELEMENT_LIBRARY_VISUAL_SCENES = "library_visual_scenes"; -DLLSPEC daeString COLLADA_ELEMENT_SCENE = "scene"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_PHYSICS_SCENE = "instance_physics_scene"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_VISUAL_SCENE = "instance_visual_scene"; -DLLSPEC daeString COLLADA_ELEMENT_IDREF_ARRAY = "IDREF_array"; -DLLSPEC daeString COLLADA_ELEMENT_NAME_ARRAY = "Name_array"; -DLLSPEC daeString COLLADA_ELEMENT_BOOL_ARRAY = "bool_array"; -DLLSPEC daeString COLLADA_ELEMENT_FLOAT_ARRAY = "float_array"; -DLLSPEC daeString COLLADA_ELEMENT_INT_ARRAY = "int_array"; -DLLSPEC daeString COLLADA_ELEMENT_TECHNIQUE_COMMON = "technique_common"; -DLLSPEC daeString COLLADA_ELEMENT_TECHNIQUE = "technique"; -DLLSPEC daeString COLLADA_ELEMENT_ACCESSOR = "accessor"; -DLLSPEC daeString COLLADA_ELEMENT_CONVEX_MESH = "convex_mesh"; -DLLSPEC daeString COLLADA_ELEMENT_MESH = "mesh"; -DLLSPEC daeString COLLADA_ELEMENT_SPLINE = "spline"; -DLLSPEC daeString COLLADA_ELEMENT_VERTICES = "vertices"; -DLLSPEC daeString COLLADA_ELEMENT_LINES = "lines"; -DLLSPEC daeString COLLADA_ELEMENT_LINESTRIPS = "linestrips"; -DLLSPEC daeString COLLADA_ELEMENT_POLYGONS = "polygons"; -DLLSPEC daeString COLLADA_ELEMENT_POLYLIST = "polylist"; -DLLSPEC daeString COLLADA_ELEMENT_TRIANGLES = "triangles"; -DLLSPEC daeString COLLADA_ELEMENT_TRIFANS = "trifans"; -DLLSPEC daeString COLLADA_ELEMENT_TRISTRIPS = "tristrips"; -DLLSPEC daeString COLLADA_ELEMENT_CONTROL_VERTICES = "control_vertices"; -DLLSPEC daeString COLLADA_ELEMENT_INPUT = "input"; -DLLSPEC daeString COLLADA_ELEMENT_P = "p"; -DLLSPEC daeString COLLADA_ELEMENT_PH = "ph"; -DLLSPEC daeString COLLADA_ELEMENT_H = "h"; -DLLSPEC daeString COLLADA_ELEMENT_VCOUNT = "vcount"; -DLLSPEC daeString COLLADA_ELEMENT_DATA = "data"; -DLLSPEC daeString COLLADA_ELEMENT_AMBIENT = "ambient"; -DLLSPEC daeString COLLADA_ELEMENT_DIRECTIONAL = "directional"; -DLLSPEC daeString COLLADA_ELEMENT_POINT = "point"; -DLLSPEC daeString COLLADA_ELEMENT_SPOT = "spot"; -DLLSPEC daeString COLLADA_ELEMENT_CONSTANT_ATTENUATION = "constant_attenuation"; -DLLSPEC daeString COLLADA_ELEMENT_LINEAR_ATTENUATION = "linear_attenuation"; -DLLSPEC daeString COLLADA_ELEMENT_QUADRATIC_ATTENUATION = "quadratic_attenuation"; -DLLSPEC daeString COLLADA_ELEMENT_FALLOFF_ANGLE = "falloff_angle"; -DLLSPEC daeString COLLADA_ELEMENT_FALLOFF_EXPONENT = "falloff_exponent"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_EFFECT = "instance_effect"; -DLLSPEC daeString COLLADA_ELEMENT_OPTICS = "optics"; -DLLSPEC daeString COLLADA_ELEMENT_IMAGER = "imager"; -DLLSPEC daeString COLLADA_ELEMENT_ORTHOGRAPHIC = "orthographic"; -DLLSPEC daeString COLLADA_ELEMENT_PERSPECTIVE = "perspective"; -DLLSPEC daeString COLLADA_ELEMENT_XMAG = "xmag"; -DLLSPEC daeString COLLADA_ELEMENT_YMAG = "ymag"; -DLLSPEC daeString COLLADA_ELEMENT_ASPECT_RATIO = "aspect_ratio"; -DLLSPEC daeString COLLADA_ELEMENT_ZNEAR = "znear"; -DLLSPEC daeString COLLADA_ELEMENT_ZFAR = "zfar"; -DLLSPEC daeString COLLADA_ELEMENT_XFOV = "xfov"; -DLLSPEC daeString COLLADA_ELEMENT_YFOV = "yfov"; -DLLSPEC daeString COLLADA_ELEMENT_SAMPLER = "sampler"; -DLLSPEC daeString COLLADA_ELEMENT_CHANNEL = "channel"; -DLLSPEC daeString COLLADA_ELEMENT_ANIMATION = "animation"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_ANIMATION = "instance_animation"; -DLLSPEC daeString COLLADA_ELEMENT_SKIN = "skin"; -DLLSPEC daeString COLLADA_ELEMENT_MORPH = "morph"; -DLLSPEC daeString COLLADA_ELEMENT_BIND_SHAPE_MATRIX = "bind_shape_matrix"; -DLLSPEC daeString COLLADA_ELEMENT_JOINTS = "joints"; -DLLSPEC daeString COLLADA_ELEMENT_VERTEX_WEIGHTS = "vertex_weights"; -DLLSPEC daeString COLLADA_ELEMENT_V = "v"; -DLLSPEC daeString COLLADA_ELEMENT_TARGETS = "targets"; -DLLSPEC daeString COLLADA_ELEMENT_CONTRIBUTOR = "contributor"; -DLLSPEC daeString COLLADA_ELEMENT_CREATED = "created"; -DLLSPEC daeString COLLADA_ELEMENT_KEYWORDS = "keywords"; -DLLSPEC daeString COLLADA_ELEMENT_MODIFIED = "modified"; -DLLSPEC daeString COLLADA_ELEMENT_REVISION = "revision"; -DLLSPEC daeString COLLADA_ELEMENT_SUBJECT = "subject"; -DLLSPEC daeString COLLADA_ELEMENT_TITLE = "title"; -DLLSPEC daeString COLLADA_ELEMENT_UNIT = "unit"; -DLLSPEC daeString COLLADA_ELEMENT_UP_AXIS = "up_axis"; -DLLSPEC daeString COLLADA_ELEMENT_AUTHOR = "author"; -DLLSPEC daeString COLLADA_ELEMENT_AUTHORING_TOOL = "authoring_tool"; -DLLSPEC daeString COLLADA_ELEMENT_COMMENTS = "comments"; -DLLSPEC daeString COLLADA_ELEMENT_COPYRIGHT = "copyright"; -DLLSPEC daeString COLLADA_ELEMENT_SOURCE_DATA = "source_data"; -DLLSPEC daeString COLLADA_ELEMENT_LOOKAT = "lookat"; -DLLSPEC daeString COLLADA_ELEMENT_MATRIX = "matrix"; -DLLSPEC daeString COLLADA_ELEMENT_ROTATE = "rotate"; -DLLSPEC daeString COLLADA_ELEMENT_SCALE = "scale"; -DLLSPEC daeString COLLADA_ELEMENT_SKEW = "skew"; -DLLSPEC daeString COLLADA_ELEMENT_TRANSLATE = "translate"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_CAMERA = "instance_camera"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_CONTROLLER = "instance_controller"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_GEOMETRY = "instance_geometry"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_LIGHT = "instance_light"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_NODE = "instance_node"; -DLLSPEC daeString COLLADA_ELEMENT_NODE = "node"; -DLLSPEC daeString COLLADA_ELEMENT_EVALUATE_SCENE = "evaluate_scene"; -DLLSPEC daeString COLLADA_ELEMENT_RENDER = "render"; -DLLSPEC daeString COLLADA_ELEMENT_LAYER = "layer"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_MATERIAL = "instance_material"; -DLLSPEC daeString COLLADA_ELEMENT_SKELETON = "skeleton"; -DLLSPEC daeString COLLADA_ELEMENT_BIND_MATERIAL = "bind_material"; -DLLSPEC daeString COLLADA_ELEMENT_TECHNIQUE_HINT = "technique_hint"; -DLLSPEC daeString COLLADA_ELEMENT_BIND = "bind"; -DLLSPEC daeString COLLADA_ELEMENT_BIND_VERTEX_INPUT = "bind_vertex_input"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_FORCE_FIELD = "instance_force_field"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_RIGID_BODY = "instance_rigid_body"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_RIGID_CONSTRAINT = "instance_rigid_constraint"; -DLLSPEC daeString COLLADA_ELEMENT_ANGULAR_VELOCITY = "angular_velocity"; -DLLSPEC daeString COLLADA_ELEMENT_VELOCITY = "velocity"; -DLLSPEC daeString COLLADA_ELEMENT_DYNAMIC = "dynamic"; -DLLSPEC daeString COLLADA_ELEMENT_MASS = "mass"; -DLLSPEC daeString COLLADA_ELEMENT_MASS_FRAME = "mass_frame"; -DLLSPEC daeString COLLADA_ELEMENT_INERTIA = "inertia"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_PHYSICS_MATERIAL = "instance_physics_material"; -DLLSPEC daeString COLLADA_ELEMENT_PHYSICS_MATERIAL = "physics_material"; -DLLSPEC daeString COLLADA_ELEMENT_SHAPE = "shape"; -DLLSPEC daeString COLLADA_ELEMENT_HOLLOW = "hollow"; -DLLSPEC daeString COLLADA_ELEMENT_DENSITY = "density"; -DLLSPEC daeString COLLADA_ELEMENT_PLANE = "plane"; -DLLSPEC daeString COLLADA_ELEMENT_BOX = "box"; -DLLSPEC daeString COLLADA_ELEMENT_SPHERE = "sphere"; -DLLSPEC daeString COLLADA_ELEMENT_CYLINDER = "cylinder"; -DLLSPEC daeString COLLADA_ELEMENT_TAPERED_CYLINDER = "tapered_cylinder"; -DLLSPEC daeString COLLADA_ELEMENT_CAPSULE = "capsule"; -DLLSPEC daeString COLLADA_ELEMENT_TAPERED_CAPSULE = "tapered_capsule"; -DLLSPEC daeString COLLADA_ELEMENT_ANIMATION_CLIP = "animation_clip"; -DLLSPEC daeString COLLADA_ELEMENT_CAMERA = "camera"; -DLLSPEC daeString COLLADA_ELEMENT_CONTROLLER = "controller"; -DLLSPEC daeString COLLADA_ELEMENT_GEOMETRY = "geometry"; -DLLSPEC daeString COLLADA_ELEMENT_EFFECT = "effect"; -DLLSPEC daeString COLLADA_ELEMENT_FORCE_FIELD = "force_field"; -DLLSPEC daeString COLLADA_ELEMENT_IMAGE = "image"; -DLLSPEC daeString COLLADA_ELEMENT_LIGHT = "light"; -DLLSPEC daeString COLLADA_ELEMENT_MATERIAL = "material"; -DLLSPEC daeString COLLADA_ELEMENT_PHYSICS_MODEL = "physics_model"; -DLLSPEC daeString COLLADA_ELEMENT_PHYSICS_SCENE = "physics_scene"; -DLLSPEC daeString COLLADA_ELEMENT_VISUAL_SCENE = "visual_scene"; -DLLSPEC daeString COLLADA_ELEMENT_NEWPARAM = "newparam"; -DLLSPEC daeString COLLADA_ELEMENT_FX_PROFILE_ABSTRACT = "fx_profile_abstract"; -DLLSPEC daeString COLLADA_ELEMENT_PROFILE_GLSL = "profile_GLSL"; -DLLSPEC daeString COLLADA_ELEMENT_PASS = "pass"; -DLLSPEC daeString COLLADA_ELEMENT_COLOR_TARGET = "color_target"; -DLLSPEC daeString COLLADA_ELEMENT_DEPTH_TARGET = "depth_target"; -DLLSPEC daeString COLLADA_ELEMENT_STENCIL_TARGET = "stencil_target"; -DLLSPEC daeString COLLADA_ELEMENT_COLOR_CLEAR = "color_clear"; -DLLSPEC daeString COLLADA_ELEMENT_DEPTH_CLEAR = "depth_clear"; -DLLSPEC daeString COLLADA_ELEMENT_STENCIL_CLEAR = "stencil_clear"; -DLLSPEC daeString COLLADA_ELEMENT_DRAW = "draw"; -DLLSPEC daeString COLLADA_ELEMENT_GL_PIPELINE_SETTINGS = "gl_pipeline_settings"; -DLLSPEC daeString COLLADA_ELEMENT_SHADER = "shader"; -DLLSPEC daeString COLLADA_ELEMENT_COMPILER_TARGET = "compiler_target"; -DLLSPEC daeString COLLADA_ELEMENT_COMPILER_OPTIONS = "compiler_options"; -DLLSPEC daeString COLLADA_ELEMENT_PROFILE_COMMON = "profile_COMMON"; -DLLSPEC daeString COLLADA_ELEMENT_LAMBERT = "lambert"; -DLLSPEC daeString COLLADA_ELEMENT_PHONG = "phong"; -DLLSPEC daeString COLLADA_ELEMENT_BLINN = "blinn"; -DLLSPEC daeString COLLADA_ELEMENT_EMISSION = "emission"; -DLLSPEC daeString COLLADA_ELEMENT_REFLECTIVE = "reflective"; -DLLSPEC daeString COLLADA_ELEMENT_REFLECTIVITY = "reflectivity"; -DLLSPEC daeString COLLADA_ELEMENT_TRANSPARENT = "transparent"; -DLLSPEC daeString COLLADA_ELEMENT_TRANSPARENCY = "transparency"; -DLLSPEC daeString COLLADA_ELEMENT_INDEX_OF_REFRACTION = "index_of_refraction"; -DLLSPEC daeString COLLADA_ELEMENT_DIFFUSE = "diffuse"; -DLLSPEC daeString COLLADA_ELEMENT_SPECULAR = "specular"; -DLLSPEC daeString COLLADA_ELEMENT_SHININESS = "shininess"; -DLLSPEC daeString COLLADA_ELEMENT_PROFILE_CG = "profile_CG"; -DLLSPEC daeString COLLADA_ELEMENT_PROFILE_GLES = "profile_GLES"; -DLLSPEC daeString COLLADA_ELEMENT_GLES_PIPELINE_SETTINGS = "gles_pipeline_settings"; -DLLSPEC daeString COLLADA_ELEMENT_HALF_EXTENTS = "half_extents"; -DLLSPEC daeString COLLADA_ELEMENT_EQUATION = "equation"; -DLLSPEC daeString COLLADA_ELEMENT_RADIUS = "radius"; -DLLSPEC daeString COLLADA_ELEMENT_HEIGHT = "height"; -DLLSPEC daeString COLLADA_ELEMENT_RADIUS1 = "radius1"; -DLLSPEC daeString COLLADA_ELEMENT_RADIUS2 = "radius2"; -DLLSPEC daeString COLLADA_ELEMENT_DYNAMIC_FRICTION = "dynamic_friction"; -DLLSPEC daeString COLLADA_ELEMENT_RESTITUTION = "restitution"; -DLLSPEC daeString COLLADA_ELEMENT_STATIC_FRICTION = "static_friction"; -DLLSPEC daeString COLLADA_ELEMENT_INSTANCE_PHYSICS_MODEL = "instance_physics_model"; -DLLSPEC daeString COLLADA_ELEMENT_GRAVITY = "gravity"; -DLLSPEC daeString COLLADA_ELEMENT_TIME_STEP = "time_step"; -DLLSPEC daeString COLLADA_ELEMENT_REF_ATTACHMENT = "ref_attachment"; -DLLSPEC daeString COLLADA_ELEMENT_ATTACHMENT = "attachment"; -DLLSPEC daeString COLLADA_ELEMENT_ENABLED = "enabled"; -DLLSPEC daeString COLLADA_ELEMENT_INTERPENETRATE = "interpenetrate"; -DLLSPEC daeString COLLADA_ELEMENT_LIMITS = "limits"; -DLLSPEC daeString COLLADA_ELEMENT_SPRING = "spring"; -DLLSPEC daeString COLLADA_ELEMENT_SWING_CONE_AND_TWIST = "swing_cone_and_twist"; -DLLSPEC daeString COLLADA_ELEMENT_LINEAR = "linear"; -DLLSPEC daeString COLLADA_ELEMENT_MIN = "min"; -DLLSPEC daeString COLLADA_ELEMENT_MAX = "max"; -DLLSPEC daeString COLLADA_ELEMENT_ANGULAR = "angular"; -DLLSPEC daeString COLLADA_ELEMENT_STIFFNESS = "stiffness"; -DLLSPEC daeString COLLADA_ELEMENT_DAMPING = "damping"; -DLLSPEC daeString COLLADA_ELEMENT_TARGET_VALUE = "target_value"; -DLLSPEC daeString COLLADA_ELEMENT_RIGID_BODY = "rigid_body"; -DLLSPEC daeString COLLADA_ELEMENT_RIGID_CONSTRAINT = "rigid_constraint"; diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domController.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domController.cpp deleted file mode 100644 index a8dcd23d3..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domController.cpp +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domController::create(daeInt bytes) -{ - domControllerRef ref = new(bytes) domController; - return ref; -} - - -daeMetaElement * -domController::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "controller" ); - _Meta->registerClass(domController::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domController,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "skin" ); - mea->setOffset( daeOffsetOf(domController,elemSkin) ); - mea->setElementType( domSkin::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "morph" ); - mea->setOffset( daeOffsetOf(domController,elemMorph) ); - mea->setElementType( domMorph::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domController,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domController,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domController,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domController , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domController , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domController)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domController::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domConvex_mesh.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domConvex_mesh.cpp deleted file mode 100644 index 27f640fcc..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domConvex_mesh.cpp +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domConvex_mesh::create(daeInt bytes) -{ - domConvex_meshRef ref = new(bytes) domConvex_mesh; - ref->attrConvex_hull_of.setContainer( (domConvex_mesh*)ref ); - return ref; -} - - -daeMetaElement * -domConvex_mesh::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "convex_mesh" ); - _Meta->registerClass(domConvex_mesh::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 0, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, -1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domConvex_mesh,elemSource_array) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "vertices" ); - mea->setOffset( daeOffsetOf(domConvex_mesh,elemVertices) ); - mea->setElementType( domVertices::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 2, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "lines" ); - mea->setOffset( daeOffsetOf(domConvex_mesh,elemLines_array) ); - mea->setElementType( domLines::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "linestrips" ); - mea->setOffset( daeOffsetOf(domConvex_mesh,elemLinestrips_array) ); - mea->setElementType( domLinestrips::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "polygons" ); - mea->setOffset( daeOffsetOf(domConvex_mesh,elemPolygons_array) ); - mea->setElementType( domPolygons::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "polylist" ); - mea->setOffset( daeOffsetOf(domConvex_mesh,elemPolylist_array) ); - mea->setElementType( domPolylist::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "triangles" ); - mea->setOffset( daeOffsetOf(domConvex_mesh,elemTriangles_array) ); - mea->setElementType( domTriangles::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "trifans" ); - mea->setOffset( daeOffsetOf(domConvex_mesh,elemTrifans_array) ); - mea->setElementType( domTrifans::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "tristrips" ); - mea->setOffset( daeOffsetOf(domConvex_mesh,elemTristrips_array) ); - mea->setElementType( domTristrips::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3003, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domConvex_mesh,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3003 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domConvex_mesh,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domConvex_mesh,_contentsOrder)); - - - // Add attribute: convex_hull_of - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "convex_hull_of" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domConvex_mesh , attrConvex_hull_of )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domConvex_mesh)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domConvex_mesh::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domCylinder.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domCylinder.cpp deleted file mode 100644 index c58c34899..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domCylinder.cpp +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domCylinder::create(daeInt bytes) -{ - domCylinderRef ref = new(bytes) domCylinder; - return ref; -} - - -daeMetaElement * -domCylinder::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cylinder" ); - _Meta->registerClass(domCylinder::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "height" ); - mea->setOffset( daeOffsetOf(domCylinder,elemHeight) ); - mea->setElementType( domCylinder::domHeight::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "radius" ); - mea->setOffset( daeOffsetOf(domCylinder,elemRadius) ); - mea->setElementType( domCylinder::domRadius::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domCylinder,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domCylinder)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCylinder::domHeight::create(daeInt bytes) -{ - domCylinder::domHeightRef ref = new(bytes) domCylinder::domHeight; - return ref; -} - - -daeMetaElement * -domCylinder::domHeight::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "height" ); - _Meta->registerClass(domCylinder::domHeight::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domCylinder::domHeight , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCylinder::domHeight)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domCylinder::domRadius::create(daeInt bytes) -{ - domCylinder::domRadiusRef ref = new(bytes) domCylinder::domRadius; - return ref; -} - - -daeMetaElement * -domCylinder::domRadius::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "radius" ); - _Meta->registerClass(domCylinder::domRadius::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domCylinder::domRadius , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domCylinder::domRadius)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domCylinder::_Meta = NULL; -daeMetaElement * domCylinder::domHeight::_Meta = NULL; -daeMetaElement * domCylinder::domRadius::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domEffect.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domEffect.cpp deleted file mode 100644 index 87fa06f86..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domEffect.cpp +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domEffect::create(daeInt bytes) -{ - domEffectRef ref = new(bytes) domEffect; - return ref; -} - -#include -#include -#include -#include - -daeMetaElement * -domEffect::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "effect" ); - _Meta->registerClass(domEffect::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domEffect,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domEffect,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "image" ); - mea->setOffset( daeOffsetOf(domEffect,elemImage_array) ); - mea->setElementType( domImage::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "newparam" ); - mea->setOffset( daeOffsetOf(domEffect,elemNewparam_array) ); - mea->setElementType( domFx_newparam_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 1, -1 ); - mea->setName( "fx_profile_abstract" ); - mea->setOffset( daeOffsetOf(domEffect,elemFx_profile_abstract_array) ); - mea->setElementType( domFx_profile_abstract::registerElement() ); - cm->appendChild( mea ); - - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 1, -1 ); - mea->setName( "profile_GLSL" ); - mea->setOffset( daeOffsetOf(domEffect,elemFx_profile_abstract_array) ); - mea->setElementType( domProfile_GLSL::registerElement() ); - cm->appendChild( mea ); - - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 1, -1 ); - mea->setName( "profile_COMMON" ); - mea->setOffset( daeOffsetOf(domEffect,elemFx_profile_abstract_array) ); - mea->setElementType( domProfile_COMMON::registerElement() ); - cm->appendChild( mea ); - - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 1, -1 ); - mea->setName( "profile_CG" ); - mea->setOffset( daeOffsetOf(domEffect,elemFx_profile_abstract_array) ); - mea->setElementType( domProfile_CG::registerElement() ); - cm->appendChild( mea ); - - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 1, -1 ); - mea->setName( "profile_GLES" ); - mea->setOffset( daeOffsetOf(domEffect,elemFx_profile_abstract_array) ); - mea->setElementType( domProfile_GLES::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 5, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domEffect,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 5 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domEffect,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domEffect,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domEffect , attrId )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domEffect , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domEffect)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domEffect::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domEllipsoid.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domEllipsoid.cpp deleted file mode 100644 index da6cfc1e9..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domEllipsoid.cpp +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domEllipsoid::create(daeInt bytes) -{ - domEllipsoidRef ref = new(bytes) domEllipsoid; - return ref; -} - - -daeMetaElement * -domEllipsoid::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "ellipsoid" ); - _Meta->registerClass(domEllipsoid::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "size" ); - mea->setOffset( daeOffsetOf(domEllipsoid,elemSize) ); - mea->setElementType( domEllipsoid::domSize::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domEllipsoid)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domEllipsoid::domSize::create(daeInt bytes) -{ - domEllipsoid::domSizeRef ref = new(bytes) domEllipsoid::domSize; - return ref; -} - - -daeMetaElement * -domEllipsoid::domSize::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "size" ); - _Meta->registerClass(domEllipsoid::domSize::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domEllipsoid::domSize , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domEllipsoid::domSize)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domEllipsoid::_Meta = NULL; -daeMetaElement * domEllipsoid::domSize::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domExtra.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domExtra.cpp deleted file mode 100644 index fddd82dbd..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domExtra.cpp +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domExtra::create(daeInt bytes) -{ - domExtraRef ref = new(bytes) domExtra; - return ref; -} - - -daeMetaElement * -domExtra::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "extra" ); - _Meta->registerClass(domExtra::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domExtra,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domExtra,elemTechnique_array) ); - mea->setElementType( domTechnique::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domExtra , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domExtra , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: type - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "type" ); - ma->setType( daeAtomicType::get("xsNMTOKEN")); - ma->setOffset( daeOffsetOf( domExtra , attrType )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domExtra)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domExtra::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFloat_array.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFloat_array.cpp deleted file mode 100644 index c1b8079f2..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFloat_array.cpp +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFloat_array::create(daeInt bytes) -{ - domFloat_arrayRef ref = new(bytes) domFloat_array; - return ref; -} - - -daeMetaElement * -domFloat_array::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float_array" ); - _Meta->registerClass(domFloat_array::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("ListOfFloats")); - ma->setOffset( daeOffsetOf( domFloat_array , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domFloat_array , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFloat_array , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domFloat_array , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: digits - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "digits" ); - ma->setType( daeAtomicType::get("xsShort")); - ma->setOffset( daeOffsetOf( domFloat_array , attrDigits )); - ma->setContainer( _Meta ); - ma->setDefault( "6"); - - _Meta->appendAttribute(ma); - } - - // Add attribute: magnitude - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "magnitude" ); - ma->setType( daeAtomicType::get("xsShort")); - ma->setOffset( daeOffsetOf( domFloat_array , attrMagnitude )); - ma->setContainer( _Meta ); - ma->setDefault( "38"); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFloat_array)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFloat_array::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domForce_field.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domForce_field.cpp deleted file mode 100644 index 1d04374f0..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domForce_field.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domForce_field::create(daeInt bytes) -{ - domForce_fieldRef ref = new(bytes) domForce_field; - return ref; -} - - -daeMetaElement * -domForce_field::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "force_field" ); - _Meta->registerClass(domForce_field::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domForce_field,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domForce_field,elemTechnique_array) ); - mea->setElementType( domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domForce_field,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domForce_field , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domForce_field , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domForce_field)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domForce_field::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_annotate_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_annotate_common.cpp deleted file mode 100644 index e9cbb6726..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_annotate_common.cpp +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_annotate_common::create(daeInt bytes) -{ - domFx_annotate_commonRef ref = new(bytes) domFx_annotate_common; - return ref; -} - - -daeMetaElement * -domFx_annotate_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_annotate_common" ); - _Meta->registerClass(domFx_annotate_common::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fx_annotate_type_common" ); - mea->setOffset( daeOffsetOf(domFx_annotate_common,elemFx_annotate_type_common) ); - mea->setElementType( domFx_annotate_type_common::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_annotate_common , attrName )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_common)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_annotate_common::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_annotate_type_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_annotate_type_common.cpp deleted file mode 100644 index 1fc62e5f9..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_annotate_type_common.cpp +++ /dev/null @@ -1,734 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_annotate_type_common::create(daeInt bytes) -{ - domFx_annotate_type_commonRef ref = new(bytes) domFx_annotate_type_common; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_annotate_type_common" ); - _Meta->registerClass(domFx_annotate_type_common::create, &_Meta); - - _Meta->setIsTransparent( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemBool) ); - mea->setElementType( domFx_annotate_type_common::domBool::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool2" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemBool2) ); - mea->setElementType( domFx_annotate_type_common::domBool2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool3" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemBool3) ); - mea->setElementType( domFx_annotate_type_common::domBool3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool4" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemBool4) ); - mea->setElementType( domFx_annotate_type_common::domBool4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemInt) ); - mea->setElementType( domFx_annotate_type_common::domInt::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int2" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemInt2) ); - mea->setElementType( domFx_annotate_type_common::domInt2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int3" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemInt3) ); - mea->setElementType( domFx_annotate_type_common::domInt3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int4" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemInt4) ); - mea->setElementType( domFx_annotate_type_common::domInt4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemFloat) ); - mea->setElementType( domFx_annotate_type_common::domFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemFloat2) ); - mea->setElementType( domFx_annotate_type_common::domFloat2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemFloat3) ); - mea->setElementType( domFx_annotate_type_common::domFloat3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemFloat4) ); - mea->setElementType( domFx_annotate_type_common::domFloat4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x2" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemFloat2x2) ); - mea->setElementType( domFx_annotate_type_common::domFloat2x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x3" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemFloat3x3) ); - mea->setElementType( domFx_annotate_type_common::domFloat3x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x4" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemFloat4x4) ); - mea->setElementType( domFx_annotate_type_common::domFloat4x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "string" ); - mea->setOffset( daeOffsetOf(domFx_annotate_type_common,elemString) ); - mea->setElementType( domFx_annotate_type_common::domString::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domFx_annotate_type_common,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domFx_annotate_type_common,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domBool::create(daeInt bytes) -{ - domFx_annotate_type_common::domBoolRef ref = new(bytes) domFx_annotate_type_common::domBool; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domBool::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool" ); - _Meta->registerClass(domFx_annotate_type_common::domBool::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domBool , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domBool)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domBool2::create(daeInt bytes) -{ - domFx_annotate_type_common::domBool2Ref ref = new(bytes) domFx_annotate_type_common::domBool2; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domBool2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool2" ); - _Meta->registerClass(domFx_annotate_type_common::domBool2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool2")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domBool2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domBool2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domBool3::create(daeInt bytes) -{ - domFx_annotate_type_common::domBool3Ref ref = new(bytes) domFx_annotate_type_common::domBool3; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domBool3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool3" ); - _Meta->registerClass(domFx_annotate_type_common::domBool3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool3")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domBool3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domBool3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domBool4::create(daeInt bytes) -{ - domFx_annotate_type_common::domBool4Ref ref = new(bytes) domFx_annotate_type_common::domBool4; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domBool4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool4" ); - _Meta->registerClass(domFx_annotate_type_common::domBool4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool4")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domBool4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domBool4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domInt::create(daeInt bytes) -{ - domFx_annotate_type_common::domIntRef ref = new(bytes) domFx_annotate_type_common::domInt; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domInt::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int" ); - _Meta->registerClass(domFx_annotate_type_common::domInt::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Int")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domInt , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domInt)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domInt2::create(daeInt bytes) -{ - domFx_annotate_type_common::domInt2Ref ref = new(bytes) domFx_annotate_type_common::domInt2; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domInt2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int2" ); - _Meta->registerClass(domFx_annotate_type_common::domInt2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Int2")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domInt2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domInt2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domInt3::create(daeInt bytes) -{ - domFx_annotate_type_common::domInt3Ref ref = new(bytes) domFx_annotate_type_common::domInt3; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domInt3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int3" ); - _Meta->registerClass(domFx_annotate_type_common::domInt3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Int3")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domInt3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domInt3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domInt4::create(daeInt bytes) -{ - domFx_annotate_type_common::domInt4Ref ref = new(bytes) domFx_annotate_type_common::domInt4; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domInt4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int4" ); - _Meta->registerClass(domFx_annotate_type_common::domInt4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Int4")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domInt4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domInt4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domFloat::create(daeInt bytes) -{ - domFx_annotate_type_common::domFloatRef ref = new(bytes) domFx_annotate_type_common::domFloat; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domFloat::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float" ); - _Meta->registerClass(domFx_annotate_type_common::domFloat::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domFloat2::create(daeInt bytes) -{ - domFx_annotate_type_common::domFloat2Ref ref = new(bytes) domFx_annotate_type_common::domFloat2; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domFloat2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2" ); - _Meta->registerClass(domFx_annotate_type_common::domFloat2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domFloat3::create(daeInt bytes) -{ - domFx_annotate_type_common::domFloat3Ref ref = new(bytes) domFx_annotate_type_common::domFloat3; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domFloat3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3" ); - _Meta->registerClass(domFx_annotate_type_common::domFloat3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domFloat4::create(daeInt bytes) -{ - domFx_annotate_type_common::domFloat4Ref ref = new(bytes) domFx_annotate_type_common::domFloat4; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domFloat4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4" ); - _Meta->registerClass(domFx_annotate_type_common::domFloat4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domFloat2x2::create(daeInt bytes) -{ - domFx_annotate_type_common::domFloat2x2Ref ref = new(bytes) domFx_annotate_type_common::domFloat2x2; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domFloat2x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x2" ); - _Meta->registerClass(domFx_annotate_type_common::domFloat2x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2x2")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat2x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat2x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domFloat3x3::create(daeInt bytes) -{ - domFx_annotate_type_common::domFloat3x3Ref ref = new(bytes) domFx_annotate_type_common::domFloat3x3; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domFloat3x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x3" ); - _Meta->registerClass(domFx_annotate_type_common::domFloat3x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3x3")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat3x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat3x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domFloat4x4::create(daeInt bytes) -{ - domFx_annotate_type_common::domFloat4x4Ref ref = new(bytes) domFx_annotate_type_common::domFloat4x4; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domFloat4x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x4" ); - _Meta->registerClass(domFx_annotate_type_common::domFloat4x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4x4")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domFloat4x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domFloat4x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_annotate_type_common::domString::create(daeInt bytes) -{ - domFx_annotate_type_common::domStringRef ref = new(bytes) domFx_annotate_type_common::domString; - return ref; -} - - -daeMetaElement * -domFx_annotate_type_common::domString::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "string" ); - _Meta->registerClass(domFx_annotate_type_common::domString::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domFx_annotate_type_common::domString , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_annotate_type_common::domString)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_annotate_type_common::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domBool::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domBool2::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domBool3::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domBool4::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domInt::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domInt2::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domInt3::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domInt4::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domFloat::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domFloat2::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domFloat3::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domFloat4::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domFloat2x2::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domFloat3x3::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domFloat4x4::_Meta = NULL; -daeMetaElement * domFx_annotate_type_common::domString::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_basic_type_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_basic_type_common.cpp deleted file mode 100644 index b769e1d22..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_basic_type_common.cpp +++ /dev/null @@ -1,1322 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_basic_type_common::create(daeInt bytes) -{ - domFx_basic_type_commonRef ref = new(bytes) domFx_basic_type_common; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_basic_type_common" ); - _Meta->registerClass(domFx_basic_type_common::create, &_Meta); - - _Meta->setIsTransparent( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemBool) ); - mea->setElementType( domFx_basic_type_common::domBool::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool2" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemBool2) ); - mea->setElementType( domFx_basic_type_common::domBool2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool3" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemBool3) ); - mea->setElementType( domFx_basic_type_common::domBool3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool4" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemBool4) ); - mea->setElementType( domFx_basic_type_common::domBool4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemInt) ); - mea->setElementType( domFx_basic_type_common::domInt::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int2" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemInt2) ); - mea->setElementType( domFx_basic_type_common::domInt2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int3" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemInt3) ); - mea->setElementType( domFx_basic_type_common::domInt3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int4" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemInt4) ); - mea->setElementType( domFx_basic_type_common::domInt4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat) ); - mea->setElementType( domFx_basic_type_common::domFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat2) ); - mea->setElementType( domFx_basic_type_common::domFloat2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat3) ); - mea->setElementType( domFx_basic_type_common::domFloat3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat4) ); - mea->setElementType( domFx_basic_type_common::domFloat4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float1x1" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat1x1) ); - mea->setElementType( domFx_basic_type_common::domFloat1x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float1x2" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat1x2) ); - mea->setElementType( domFx_basic_type_common::domFloat1x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float1x3" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat1x3) ); - mea->setElementType( domFx_basic_type_common::domFloat1x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float1x4" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat1x4) ); - mea->setElementType( domFx_basic_type_common::domFloat1x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x1" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat2x1) ); - mea->setElementType( domFx_basic_type_common::domFloat2x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x2" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat2x2) ); - mea->setElementType( domFx_basic_type_common::domFloat2x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x3" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat2x3) ); - mea->setElementType( domFx_basic_type_common::domFloat2x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x4" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat2x4) ); - mea->setElementType( domFx_basic_type_common::domFloat2x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x1" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat3x1) ); - mea->setElementType( domFx_basic_type_common::domFloat3x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x2" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat3x2) ); - mea->setElementType( domFx_basic_type_common::domFloat3x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x3" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat3x3) ); - mea->setElementType( domFx_basic_type_common::domFloat3x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x4" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat3x4) ); - mea->setElementType( domFx_basic_type_common::domFloat3x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x1" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat4x1) ); - mea->setElementType( domFx_basic_type_common::domFloat4x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x2" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat4x2) ); - mea->setElementType( domFx_basic_type_common::domFloat4x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x3" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat4x3) ); - mea->setElementType( domFx_basic_type_common::domFloat4x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x4" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemFloat4x4) ); - mea->setElementType( domFx_basic_type_common::domFloat4x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "surface" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemSurface) ); - mea->setElementType( domFx_surface_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sampler1D" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemSampler1D) ); - mea->setElementType( domFx_sampler1D_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sampler2D" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemSampler2D) ); - mea->setElementType( domFx_sampler2D_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sampler3D" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemSampler3D) ); - mea->setElementType( domFx_sampler3D_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "samplerCUBE" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemSamplerCUBE) ); - mea->setElementType( domFx_samplerCUBE_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "samplerRECT" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemSamplerRECT) ); - mea->setElementType( domFx_samplerRECT_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "samplerDEPTH" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemSamplerDEPTH) ); - mea->setElementType( domFx_samplerDEPTH_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "enum" ); - mea->setOffset( daeOffsetOf(domFx_basic_type_common,elemEnum) ); - mea->setElementType( domFx_basic_type_common::domEnum::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domFx_basic_type_common,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domFx_basic_type_common,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domFx_basic_type_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domBool::create(daeInt bytes) -{ - domFx_basic_type_common::domBoolRef ref = new(bytes) domFx_basic_type_common::domBool; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domBool::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool" ); - _Meta->registerClass(domFx_basic_type_common::domBool::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domBool , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domBool)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domBool2::create(daeInt bytes) -{ - domFx_basic_type_common::domBool2Ref ref = new(bytes) domFx_basic_type_common::domBool2; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domBool2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool2" ); - _Meta->registerClass(domFx_basic_type_common::domBool2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool2")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domBool2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domBool2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domBool3::create(daeInt bytes) -{ - domFx_basic_type_common::domBool3Ref ref = new(bytes) domFx_basic_type_common::domBool3; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domBool3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool3" ); - _Meta->registerClass(domFx_basic_type_common::domBool3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool3")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domBool3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domBool3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domBool4::create(daeInt bytes) -{ - domFx_basic_type_common::domBool4Ref ref = new(bytes) domFx_basic_type_common::domBool4; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domBool4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool4" ); - _Meta->registerClass(domFx_basic_type_common::domBool4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool4")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domBool4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domBool4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domInt::create(daeInt bytes) -{ - domFx_basic_type_common::domIntRef ref = new(bytes) domFx_basic_type_common::domInt; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domInt::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int" ); - _Meta->registerClass(domFx_basic_type_common::domInt::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Int")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domInt , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domInt)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domInt2::create(daeInt bytes) -{ - domFx_basic_type_common::domInt2Ref ref = new(bytes) domFx_basic_type_common::domInt2; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domInt2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int2" ); - _Meta->registerClass(domFx_basic_type_common::domInt2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Int2")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domInt2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domInt2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domInt3::create(daeInt bytes) -{ - domFx_basic_type_common::domInt3Ref ref = new(bytes) domFx_basic_type_common::domInt3; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domInt3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int3" ); - _Meta->registerClass(domFx_basic_type_common::domInt3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Int3")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domInt3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domInt3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domInt4::create(daeInt bytes) -{ - domFx_basic_type_common::domInt4Ref ref = new(bytes) domFx_basic_type_common::domInt4; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domInt4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int4" ); - _Meta->registerClass(domFx_basic_type_common::domInt4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Int4")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domInt4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domInt4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat::create(daeInt bytes) -{ - domFx_basic_type_common::domFloatRef ref = new(bytes) domFx_basic_type_common::domFloat; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float" ); - _Meta->registerClass(domFx_basic_type_common::domFloat::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat2::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat2Ref ref = new(bytes) domFx_basic_type_common::domFloat2; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2" ); - _Meta->registerClass(domFx_basic_type_common::domFloat2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat3::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat3Ref ref = new(bytes) domFx_basic_type_common::domFloat3; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3" ); - _Meta->registerClass(domFx_basic_type_common::domFloat3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat4::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat4Ref ref = new(bytes) domFx_basic_type_common::domFloat4; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4" ); - _Meta->registerClass(domFx_basic_type_common::domFloat4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat1x1::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat1x1Ref ref = new(bytes) domFx_basic_type_common::domFloat1x1; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat1x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float1x1" ); - _Meta->registerClass(domFx_basic_type_common::domFloat1x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat1x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat1x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat1x2::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat1x2Ref ref = new(bytes) domFx_basic_type_common::domFloat1x2; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat1x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float1x2" ); - _Meta->registerClass(domFx_basic_type_common::domFloat1x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat1x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat1x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat1x3::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat1x3Ref ref = new(bytes) domFx_basic_type_common::domFloat1x3; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat1x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float1x3" ); - _Meta->registerClass(domFx_basic_type_common::domFloat1x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat1x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat1x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat1x4::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat1x4Ref ref = new(bytes) domFx_basic_type_common::domFloat1x4; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat1x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float1x4" ); - _Meta->registerClass(domFx_basic_type_common::domFloat1x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat1x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat1x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat2x1::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat2x1Ref ref = new(bytes) domFx_basic_type_common::domFloat2x1; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat2x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x1" ); - _Meta->registerClass(domFx_basic_type_common::domFloat2x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat2x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat2x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat2x2::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat2x2Ref ref = new(bytes) domFx_basic_type_common::domFloat2x2; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat2x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x2" ); - _Meta->registerClass(domFx_basic_type_common::domFloat2x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2x2")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat2x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat2x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat2x3::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat2x3Ref ref = new(bytes) domFx_basic_type_common::domFloat2x3; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat2x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x3" ); - _Meta->registerClass(domFx_basic_type_common::domFloat2x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2x3")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat2x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat2x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat2x4::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat2x4Ref ref = new(bytes) domFx_basic_type_common::domFloat2x4; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat2x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x4" ); - _Meta->registerClass(domFx_basic_type_common::domFloat2x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2x4")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat2x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat2x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat3x1::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat3x1Ref ref = new(bytes) domFx_basic_type_common::domFloat3x1; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat3x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x1" ); - _Meta->registerClass(domFx_basic_type_common::domFloat3x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat3x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat3x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat3x2::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat3x2Ref ref = new(bytes) domFx_basic_type_common::domFloat3x2; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat3x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x2" ); - _Meta->registerClass(domFx_basic_type_common::domFloat3x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3x2")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat3x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat3x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat3x3::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat3x3Ref ref = new(bytes) domFx_basic_type_common::domFloat3x3; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat3x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x3" ); - _Meta->registerClass(domFx_basic_type_common::domFloat3x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3x3")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat3x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat3x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat3x4::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat3x4Ref ref = new(bytes) domFx_basic_type_common::domFloat3x4; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat3x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x4" ); - _Meta->registerClass(domFx_basic_type_common::domFloat3x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3x4")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat3x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat3x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat4x1::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat4x1Ref ref = new(bytes) domFx_basic_type_common::domFloat4x1; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat4x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x1" ); - _Meta->registerClass(domFx_basic_type_common::domFloat4x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat4x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat4x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat4x2::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat4x2Ref ref = new(bytes) domFx_basic_type_common::domFloat4x2; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat4x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x2" ); - _Meta->registerClass(domFx_basic_type_common::domFloat4x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4x2")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat4x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat4x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat4x3::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat4x3Ref ref = new(bytes) domFx_basic_type_common::domFloat4x3; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat4x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x3" ); - _Meta->registerClass(domFx_basic_type_common::domFloat4x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4x3")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat4x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat4x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domFloat4x4::create(daeInt bytes) -{ - domFx_basic_type_common::domFloat4x4Ref ref = new(bytes) domFx_basic_type_common::domFloat4x4; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domFloat4x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x4" ); - _Meta->registerClass(domFx_basic_type_common::domFloat4x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4x4")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domFloat4x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domFloat4x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_basic_type_common::domEnum::create(daeInt bytes) -{ - domFx_basic_type_common::domEnumRef ref = new(bytes) domFx_basic_type_common::domEnum; - return ref; -} - - -daeMetaElement * -domFx_basic_type_common::domEnum::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "enum" ); - _Meta->registerClass(domFx_basic_type_common::domEnum::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domFx_basic_type_common::domEnum , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_basic_type_common::domEnum)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_basic_type_common::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domBool::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domBool2::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domBool3::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domBool4::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domInt::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domInt2::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domInt3::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domInt4::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat2::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat3::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat4::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat1x1::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat1x2::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat1x3::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat1x4::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat2x1::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat2x2::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat2x3::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat2x4::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat3x1::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat3x2::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat3x3::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat3x4::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat4x1::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat4x2::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat4x3::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domFloat4x4::_Meta = NULL; -daeMetaElement * domFx_basic_type_common::domEnum::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_clearcolor_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_clearcolor_common.cpp deleted file mode 100644 index 916a5bf60..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_clearcolor_common.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_clearcolor_common::create(daeInt bytes) -{ - domFx_clearcolor_commonRef ref = new(bytes) domFx_clearcolor_common; - return ref; -} - - -daeMetaElement * -domFx_clearcolor_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_clearcolor_common" ); - _Meta->registerClass(domFx_clearcolor_common::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_color_common")); - ma->setOffset( daeOffsetOf( domFx_clearcolor_common , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("xsNonNegativeInteger")); - ma->setOffset( daeOffsetOf( domFx_clearcolor_common , attrIndex )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_clearcolor_common)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_clearcolor_common::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_cleardepth_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_cleardepth_common.cpp deleted file mode 100644 index 61e8dd58f..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_cleardepth_common.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_cleardepth_common::create(daeInt bytes) -{ - domFx_cleardepth_commonRef ref = new(bytes) domFx_cleardepth_common; - return ref; -} - - -daeMetaElement * -domFx_cleardepth_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_cleardepth_common" ); - _Meta->registerClass(domFx_cleardepth_common::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domFx_cleardepth_common , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("xsNonNegativeInteger")); - ma->setOffset( daeOffsetOf( domFx_cleardepth_common , attrIndex )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_cleardepth_common)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_cleardepth_common::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_clearstencil_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_clearstencil_common.cpp deleted file mode 100644 index 3dcd90622..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_clearstencil_common.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_clearstencil_common::create(daeInt bytes) -{ - domFx_clearstencil_commonRef ref = new(bytes) domFx_clearstencil_common; - return ref; -} - - -daeMetaElement * -domFx_clearstencil_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_clearstencil_common" ); - _Meta->registerClass(domFx_clearstencil_common::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsByte")); - ma->setOffset( daeOffsetOf( domFx_clearstencil_common , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("xsNonNegativeInteger")); - ma->setOffset( daeOffsetOf( domFx_clearstencil_common , attrIndex )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_clearstencil_common)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_clearstencil_common::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_code_profile.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_code_profile.cpp deleted file mode 100644 index f89a36810..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_code_profile.cpp +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_code_profile::create(daeInt bytes) -{ - domFx_code_profileRef ref = new(bytes) domFx_code_profile; - return ref; -} - - -daeMetaElement * -domFx_code_profile::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_code_profile" ); - _Meta->registerClass(domFx_code_profile::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domFx_code_profile , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_code_profile , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_code_profile)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_code_profile::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_colortarget_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_colortarget_common.cpp deleted file mode 100644 index 78e4ae7e3..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_colortarget_common.cpp +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_colortarget_common::create(daeInt bytes) -{ - domFx_colortarget_commonRef ref = new(bytes) domFx_colortarget_common; - return ref; -} - - -daeMetaElement * -domFx_colortarget_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_colortarget_common" ); - _Meta->registerClass(domFx_colortarget_common::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_colortarget_common , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("xsNonNegativeInteger")); - ma->setOffset( daeOffsetOf( domFx_colortarget_common , attrIndex )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: face - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "face" ); - ma->setType( daeAtomicType::get("Fx_surface_face_enum")); - ma->setOffset( daeOffsetOf( domFx_colortarget_common , attrFace )); - ma->setContainer( _Meta ); - ma->setDefault( "POSITIVE_X"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: mip - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "mip" ); - ma->setType( daeAtomicType::get("xsNonNegativeInteger")); - ma->setOffset( daeOffsetOf( domFx_colortarget_common , attrMip )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: slice - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "slice" ); - ma->setType( daeAtomicType::get("xsNonNegativeInteger")); - ma->setOffset( daeOffsetOf( domFx_colortarget_common , attrSlice )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_colortarget_common)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_colortarget_common::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_depthtarget_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_depthtarget_common.cpp deleted file mode 100644 index 79384d64a..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_depthtarget_common.cpp +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_depthtarget_common::create(daeInt bytes) -{ - domFx_depthtarget_commonRef ref = new(bytes) domFx_depthtarget_common; - return ref; -} - - -daeMetaElement * -domFx_depthtarget_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_depthtarget_common" ); - _Meta->registerClass(domFx_depthtarget_common::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_depthtarget_common , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("xsNonNegativeInteger")); - ma->setOffset( daeOffsetOf( domFx_depthtarget_common , attrIndex )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: face - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "face" ); - ma->setType( daeAtomicType::get("Fx_surface_face_enum")); - ma->setOffset( daeOffsetOf( domFx_depthtarget_common , attrFace )); - ma->setContainer( _Meta ); - ma->setDefault( "POSITIVE_X"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: mip - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "mip" ); - ma->setType( daeAtomicType::get("xsNonNegativeInteger")); - ma->setOffset( daeOffsetOf( domFx_depthtarget_common , attrMip )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: slice - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "slice" ); - ma->setType( daeAtomicType::get("xsNonNegativeInteger")); - ma->setOffset( daeOffsetOf( domFx_depthtarget_common , attrSlice )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_depthtarget_common)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_depthtarget_common::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_include_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_include_common.cpp deleted file mode 100644 index 294226037..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_include_common.cpp +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_include_common::create(daeInt bytes) -{ - domFx_include_commonRef ref = new(bytes) domFx_include_common; - ref->attrUrl.setContainer( (domFx_include_common*)ref ); - return ref; -} - - -daeMetaElement * -domFx_include_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_include_common" ); - _Meta->registerClass(domFx_include_common::create, &_Meta); - - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_include_common , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: url - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "url" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domFx_include_common , attrUrl )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_include_common)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_include_common::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_newparam_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_newparam_common.cpp deleted file mode 100644 index d7643a9d9..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_newparam_common.cpp +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_newparam_common::create(daeInt bytes) -{ - domFx_newparam_commonRef ref = new(bytes) domFx_newparam_common; - return ref; -} - - -daeMetaElement * -domFx_newparam_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_newparam_common" ); - _Meta->registerClass(domFx_newparam_common::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domFx_newparam_common,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "semantic" ); - mea->setOffset( daeOffsetOf(domFx_newparam_common,elemSemantic) ); - mea->setElementType( domFx_newparam_common::domSemantic::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "modifier" ); - mea->setOffset( daeOffsetOf(domFx_newparam_common,elemModifier) ); - mea->setElementType( domFx_newparam_common::domModifier::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 1, 1 ); - mea->setName( "fx_basic_type_common" ); - mea->setOffset( daeOffsetOf(domFx_newparam_common,elemFx_basic_type_common) ); - mea->setElementType( domFx_basic_type_common::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 3, 1, 1 ) ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_newparam_common , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_newparam_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_newparam_common::domSemantic::create(daeInt bytes) -{ - domFx_newparam_common::domSemanticRef ref = new(bytes) domFx_newparam_common::domSemantic; - return ref; -} - - -daeMetaElement * -domFx_newparam_common::domSemantic::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "semantic" ); - _Meta->registerClass(domFx_newparam_common::domSemantic::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_newparam_common::domSemantic , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_newparam_common::domSemantic)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_newparam_common::domModifier::create(daeInt bytes) -{ - domFx_newparam_common::domModifierRef ref = new(bytes) domFx_newparam_common::domModifier; - return ref; -} - - -daeMetaElement * -domFx_newparam_common::domModifier::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "modifier" ); - _Meta->registerClass(domFx_newparam_common::domModifier::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_modifier_enum_common")); - ma->setOffset( daeOffsetOf( domFx_newparam_common::domModifier , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_newparam_common::domModifier)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_newparam_common::_Meta = NULL; -daeMetaElement * domFx_newparam_common::domSemantic::_Meta = NULL; -daeMetaElement * domFx_newparam_common::domModifier::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_profile_abstract.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_profile_abstract.cpp deleted file mode 100644 index 1f2158c4a..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_profile_abstract.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_profile_abstract::create(daeInt bytes) -{ - domFx_profile_abstractRef ref = new(bytes) domFx_profile_abstract; - return ref; -} - - -daeMetaElement * -domFx_profile_abstract::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_profile_abstract" ); - _Meta->registerClass(domFx_profile_abstract::create, &_Meta); - - _Meta->setIsAbstract( true ); - - - _Meta->setElementSize(sizeof(domFx_profile_abstract)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_profile_abstract::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler1D_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler1D_common.cpp deleted file mode 100644 index e2eab0736..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler1D_common.cpp +++ /dev/null @@ -1,399 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_sampler1D_common::create(daeInt bytes) -{ - domFx_sampler1D_commonRef ref = new(bytes) domFx_sampler1D_common; - return ref; -} - - -daeMetaElement * -domFx_sampler1D_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_sampler1D_common" ); - _Meta->registerClass(domFx_sampler1D_common::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domFx_sampler1D_common,elemSource) ); - mea->setElementType( domFx_sampler1D_common::domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domFx_sampler1D_common,elemWrap_s) ); - mea->setElementType( domFx_sampler1D_common::domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domFx_sampler1D_common,elemMinfilter) ); - mea->setElementType( domFx_sampler1D_common::domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domFx_sampler1D_common,elemMagfilter) ); - mea->setElementType( domFx_sampler1D_common::domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domFx_sampler1D_common,elemMipfilter) ); - mea->setElementType( domFx_sampler1D_common::domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domFx_sampler1D_common,elemBorder_color) ); - mea->setElementType( domFx_sampler1D_common::domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domFx_sampler1D_common,elemMipmap_maxlevel) ); - mea->setElementType( domFx_sampler1D_common::domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domFx_sampler1D_common,elemMipmap_bias) ); - mea->setElementType( domFx_sampler1D_common::domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 8, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domFx_sampler1D_common,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 8 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domFx_sampler1D_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler1D_common::domSource::create(daeInt bytes) -{ - domFx_sampler1D_common::domSourceRef ref = new(bytes) domFx_sampler1D_common::domSource; - return ref; -} - - -daeMetaElement * -domFx_sampler1D_common::domSource::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "source" ); - _Meta->registerClass(domFx_sampler1D_common::domSource::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domSource , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler1D_common::domSource)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler1D_common::domWrap_s::create(daeInt bytes) -{ - domFx_sampler1D_common::domWrap_sRef ref = new(bytes) domFx_sampler1D_common::domWrap_s; - return ref; -} - - -daeMetaElement * -domFx_sampler1D_common::domWrap_s::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_s" ); - _Meta->registerClass(domFx_sampler1D_common::domWrap_s::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); - ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domWrap_s , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler1D_common::domWrap_s)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler1D_common::domMinfilter::create(daeInt bytes) -{ - domFx_sampler1D_common::domMinfilterRef ref = new(bytes) domFx_sampler1D_common::domMinfilter; - return ref; -} - - -daeMetaElement * -domFx_sampler1D_common::domMinfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "minfilter" ); - _Meta->registerClass(domFx_sampler1D_common::domMinfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domMinfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler1D_common::domMinfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler1D_common::domMagfilter::create(daeInt bytes) -{ - domFx_sampler1D_common::domMagfilterRef ref = new(bytes) domFx_sampler1D_common::domMagfilter; - return ref; -} - - -daeMetaElement * -domFx_sampler1D_common::domMagfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "magfilter" ); - _Meta->registerClass(domFx_sampler1D_common::domMagfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domMagfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler1D_common::domMagfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler1D_common::domMipfilter::create(daeInt bytes) -{ - domFx_sampler1D_common::domMipfilterRef ref = new(bytes) domFx_sampler1D_common::domMipfilter; - return ref; -} - - -daeMetaElement * -domFx_sampler1D_common::domMipfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipfilter" ); - _Meta->registerClass(domFx_sampler1D_common::domMipfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domMipfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler1D_common::domMipfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler1D_common::domBorder_color::create(daeInt bytes) -{ - domFx_sampler1D_common::domBorder_colorRef ref = new(bytes) domFx_sampler1D_common::domBorder_color; - return ref; -} - - -daeMetaElement * -domFx_sampler1D_common::domBorder_color::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "border_color" ); - _Meta->registerClass(domFx_sampler1D_common::domBorder_color::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_color_common")); - ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domBorder_color , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler1D_common::domBorder_color)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler1D_common::domMipmap_maxlevel::create(daeInt bytes) -{ - domFx_sampler1D_common::domMipmap_maxlevelRef ref = new(bytes) domFx_sampler1D_common::domMipmap_maxlevel; - return ref; -} - - -daeMetaElement * -domFx_sampler1D_common::domMipmap_maxlevel::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipmap_maxlevel" ); - _Meta->registerClass(domFx_sampler1D_common::domMipmap_maxlevel::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsUnsignedByte")); - ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domMipmap_maxlevel , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler1D_common::domMipmap_maxlevel)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler1D_common::domMipmap_bias::create(daeInt bytes) -{ - domFx_sampler1D_common::domMipmap_biasRef ref = new(bytes) domFx_sampler1D_common::domMipmap_bias; - return ref; -} - - -daeMetaElement * -domFx_sampler1D_common::domMipmap_bias::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipmap_bias" ); - _Meta->registerClass(domFx_sampler1D_common::domMipmap_bias::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsFloat")); - ma->setOffset( daeOffsetOf( domFx_sampler1D_common::domMipmap_bias , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler1D_common::domMipmap_bias)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_sampler1D_common::_Meta = NULL; -daeMetaElement * domFx_sampler1D_common::domSource::_Meta = NULL; -daeMetaElement * domFx_sampler1D_common::domWrap_s::_Meta = NULL; -daeMetaElement * domFx_sampler1D_common::domMinfilter::_Meta = NULL; -daeMetaElement * domFx_sampler1D_common::domMagfilter::_Meta = NULL; -daeMetaElement * domFx_sampler1D_common::domMipfilter::_Meta = NULL; -daeMetaElement * domFx_sampler1D_common::domBorder_color::_Meta = NULL; -daeMetaElement * domFx_sampler1D_common::domMipmap_maxlevel::_Meta = NULL; -daeMetaElement * domFx_sampler1D_common::domMipmap_bias::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler2D_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler2D_common.cpp deleted file mode 100644 index cd4620533..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler2D_common.cpp +++ /dev/null @@ -1,441 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_sampler2D_common::create(daeInt bytes) -{ - domFx_sampler2D_commonRef ref = new(bytes) domFx_sampler2D_common; - return ref; -} - - -daeMetaElement * -domFx_sampler2D_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_sampler2D_common" ); - _Meta->registerClass(domFx_sampler2D_common::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domFx_sampler2D_common,elemSource) ); - mea->setElementType( domFx_sampler2D_common::domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domFx_sampler2D_common,elemWrap_s) ); - mea->setElementType( domFx_sampler2D_common::domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domFx_sampler2D_common,elemWrap_t) ); - mea->setElementType( domFx_sampler2D_common::domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domFx_sampler2D_common,elemMinfilter) ); - mea->setElementType( domFx_sampler2D_common::domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domFx_sampler2D_common,elemMagfilter) ); - mea->setElementType( domFx_sampler2D_common::domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domFx_sampler2D_common,elemMipfilter) ); - mea->setElementType( domFx_sampler2D_common::domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domFx_sampler2D_common,elemBorder_color) ); - mea->setElementType( domFx_sampler2D_common::domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domFx_sampler2D_common,elemMipmap_maxlevel) ); - mea->setElementType( domFx_sampler2D_common::domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domFx_sampler2D_common,elemMipmap_bias) ); - mea->setElementType( domFx_sampler2D_common::domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 9, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domFx_sampler2D_common,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 9 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domFx_sampler2D_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler2D_common::domSource::create(daeInt bytes) -{ - domFx_sampler2D_common::domSourceRef ref = new(bytes) domFx_sampler2D_common::domSource; - return ref; -} - - -daeMetaElement * -domFx_sampler2D_common::domSource::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "source" ); - _Meta->registerClass(domFx_sampler2D_common::domSource::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domSource , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler2D_common::domSource)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler2D_common::domWrap_s::create(daeInt bytes) -{ - domFx_sampler2D_common::domWrap_sRef ref = new(bytes) domFx_sampler2D_common::domWrap_s; - return ref; -} - - -daeMetaElement * -domFx_sampler2D_common::domWrap_s::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_s" ); - _Meta->registerClass(domFx_sampler2D_common::domWrap_s::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); - ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domWrap_s , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler2D_common::domWrap_s)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler2D_common::domWrap_t::create(daeInt bytes) -{ - domFx_sampler2D_common::domWrap_tRef ref = new(bytes) domFx_sampler2D_common::domWrap_t; - return ref; -} - - -daeMetaElement * -domFx_sampler2D_common::domWrap_t::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_t" ); - _Meta->registerClass(domFx_sampler2D_common::domWrap_t::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); - ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domWrap_t , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler2D_common::domWrap_t)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler2D_common::domMinfilter::create(daeInt bytes) -{ - domFx_sampler2D_common::domMinfilterRef ref = new(bytes) domFx_sampler2D_common::domMinfilter; - return ref; -} - - -daeMetaElement * -domFx_sampler2D_common::domMinfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "minfilter" ); - _Meta->registerClass(domFx_sampler2D_common::domMinfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domMinfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler2D_common::domMinfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler2D_common::domMagfilter::create(daeInt bytes) -{ - domFx_sampler2D_common::domMagfilterRef ref = new(bytes) domFx_sampler2D_common::domMagfilter; - return ref; -} - - -daeMetaElement * -domFx_sampler2D_common::domMagfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "magfilter" ); - _Meta->registerClass(domFx_sampler2D_common::domMagfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domMagfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler2D_common::domMagfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler2D_common::domMipfilter::create(daeInt bytes) -{ - domFx_sampler2D_common::domMipfilterRef ref = new(bytes) domFx_sampler2D_common::domMipfilter; - return ref; -} - - -daeMetaElement * -domFx_sampler2D_common::domMipfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipfilter" ); - _Meta->registerClass(domFx_sampler2D_common::domMipfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domMipfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler2D_common::domMipfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler2D_common::domBorder_color::create(daeInt bytes) -{ - domFx_sampler2D_common::domBorder_colorRef ref = new(bytes) domFx_sampler2D_common::domBorder_color; - return ref; -} - - -daeMetaElement * -domFx_sampler2D_common::domBorder_color::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "border_color" ); - _Meta->registerClass(domFx_sampler2D_common::domBorder_color::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_color_common")); - ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domBorder_color , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler2D_common::domBorder_color)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler2D_common::domMipmap_maxlevel::create(daeInt bytes) -{ - domFx_sampler2D_common::domMipmap_maxlevelRef ref = new(bytes) domFx_sampler2D_common::domMipmap_maxlevel; - return ref; -} - - -daeMetaElement * -domFx_sampler2D_common::domMipmap_maxlevel::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipmap_maxlevel" ); - _Meta->registerClass(domFx_sampler2D_common::domMipmap_maxlevel::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsUnsignedByte")); - ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domMipmap_maxlevel , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler2D_common::domMipmap_maxlevel)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler2D_common::domMipmap_bias::create(daeInt bytes) -{ - domFx_sampler2D_common::domMipmap_biasRef ref = new(bytes) domFx_sampler2D_common::domMipmap_bias; - return ref; -} - - -daeMetaElement * -domFx_sampler2D_common::domMipmap_bias::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipmap_bias" ); - _Meta->registerClass(domFx_sampler2D_common::domMipmap_bias::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsFloat")); - ma->setOffset( daeOffsetOf( domFx_sampler2D_common::domMipmap_bias , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler2D_common::domMipmap_bias)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_sampler2D_common::_Meta = NULL; -daeMetaElement * domFx_sampler2D_common::domSource::_Meta = NULL; -daeMetaElement * domFx_sampler2D_common::domWrap_s::_Meta = NULL; -daeMetaElement * domFx_sampler2D_common::domWrap_t::_Meta = NULL; -daeMetaElement * domFx_sampler2D_common::domMinfilter::_Meta = NULL; -daeMetaElement * domFx_sampler2D_common::domMagfilter::_Meta = NULL; -daeMetaElement * domFx_sampler2D_common::domMipfilter::_Meta = NULL; -daeMetaElement * domFx_sampler2D_common::domBorder_color::_Meta = NULL; -daeMetaElement * domFx_sampler2D_common::domMipmap_maxlevel::_Meta = NULL; -daeMetaElement * domFx_sampler2D_common::domMipmap_bias::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler3D_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler3D_common.cpp deleted file mode 100644 index bd439ad75..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_sampler3D_common.cpp +++ /dev/null @@ -1,483 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_sampler3D_common::create(daeInt bytes) -{ - domFx_sampler3D_commonRef ref = new(bytes) domFx_sampler3D_common; - return ref; -} - - -daeMetaElement * -domFx_sampler3D_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_sampler3D_common" ); - _Meta->registerClass(domFx_sampler3D_common::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domFx_sampler3D_common,elemSource) ); - mea->setElementType( domFx_sampler3D_common::domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domFx_sampler3D_common,elemWrap_s) ); - mea->setElementType( domFx_sampler3D_common::domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domFx_sampler3D_common,elemWrap_t) ); - mea->setElementType( domFx_sampler3D_common::domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "wrap_p" ); - mea->setOffset( daeOffsetOf(domFx_sampler3D_common,elemWrap_p) ); - mea->setElementType( domFx_sampler3D_common::domWrap_p::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domFx_sampler3D_common,elemMinfilter) ); - mea->setElementType( domFx_sampler3D_common::domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domFx_sampler3D_common,elemMagfilter) ); - mea->setElementType( domFx_sampler3D_common::domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domFx_sampler3D_common,elemMipfilter) ); - mea->setElementType( domFx_sampler3D_common::domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domFx_sampler3D_common,elemBorder_color) ); - mea->setElementType( domFx_sampler3D_common::domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domFx_sampler3D_common,elemMipmap_maxlevel) ); - mea->setElementType( domFx_sampler3D_common::domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 9, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domFx_sampler3D_common,elemMipmap_bias) ); - mea->setElementType( domFx_sampler3D_common::domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 10, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domFx_sampler3D_common,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 10 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domFx_sampler3D_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler3D_common::domSource::create(daeInt bytes) -{ - domFx_sampler3D_common::domSourceRef ref = new(bytes) domFx_sampler3D_common::domSource; - return ref; -} - - -daeMetaElement * -domFx_sampler3D_common::domSource::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "source" ); - _Meta->registerClass(domFx_sampler3D_common::domSource::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domSource , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler3D_common::domSource)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler3D_common::domWrap_s::create(daeInt bytes) -{ - domFx_sampler3D_common::domWrap_sRef ref = new(bytes) domFx_sampler3D_common::domWrap_s; - return ref; -} - - -daeMetaElement * -domFx_sampler3D_common::domWrap_s::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_s" ); - _Meta->registerClass(domFx_sampler3D_common::domWrap_s::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); - ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domWrap_s , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler3D_common::domWrap_s)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler3D_common::domWrap_t::create(daeInt bytes) -{ - domFx_sampler3D_common::domWrap_tRef ref = new(bytes) domFx_sampler3D_common::domWrap_t; - return ref; -} - - -daeMetaElement * -domFx_sampler3D_common::domWrap_t::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_t" ); - _Meta->registerClass(domFx_sampler3D_common::domWrap_t::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); - ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domWrap_t , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler3D_common::domWrap_t)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler3D_common::domWrap_p::create(daeInt bytes) -{ - domFx_sampler3D_common::domWrap_pRef ref = new(bytes) domFx_sampler3D_common::domWrap_p; - return ref; -} - - -daeMetaElement * -domFx_sampler3D_common::domWrap_p::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_p" ); - _Meta->registerClass(domFx_sampler3D_common::domWrap_p::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); - ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domWrap_p , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler3D_common::domWrap_p)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler3D_common::domMinfilter::create(daeInt bytes) -{ - domFx_sampler3D_common::domMinfilterRef ref = new(bytes) domFx_sampler3D_common::domMinfilter; - return ref; -} - - -daeMetaElement * -domFx_sampler3D_common::domMinfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "minfilter" ); - _Meta->registerClass(domFx_sampler3D_common::domMinfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domMinfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler3D_common::domMinfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler3D_common::domMagfilter::create(daeInt bytes) -{ - domFx_sampler3D_common::domMagfilterRef ref = new(bytes) domFx_sampler3D_common::domMagfilter; - return ref; -} - - -daeMetaElement * -domFx_sampler3D_common::domMagfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "magfilter" ); - _Meta->registerClass(domFx_sampler3D_common::domMagfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domMagfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler3D_common::domMagfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler3D_common::domMipfilter::create(daeInt bytes) -{ - domFx_sampler3D_common::domMipfilterRef ref = new(bytes) domFx_sampler3D_common::domMipfilter; - return ref; -} - - -daeMetaElement * -domFx_sampler3D_common::domMipfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipfilter" ); - _Meta->registerClass(domFx_sampler3D_common::domMipfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domMipfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler3D_common::domMipfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler3D_common::domBorder_color::create(daeInt bytes) -{ - domFx_sampler3D_common::domBorder_colorRef ref = new(bytes) domFx_sampler3D_common::domBorder_color; - return ref; -} - - -daeMetaElement * -domFx_sampler3D_common::domBorder_color::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "border_color" ); - _Meta->registerClass(domFx_sampler3D_common::domBorder_color::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_color_common")); - ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domBorder_color , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler3D_common::domBorder_color)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler3D_common::domMipmap_maxlevel::create(daeInt bytes) -{ - domFx_sampler3D_common::domMipmap_maxlevelRef ref = new(bytes) domFx_sampler3D_common::domMipmap_maxlevel; - return ref; -} - - -daeMetaElement * -domFx_sampler3D_common::domMipmap_maxlevel::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipmap_maxlevel" ); - _Meta->registerClass(domFx_sampler3D_common::domMipmap_maxlevel::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsUnsignedByte")); - ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domMipmap_maxlevel , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler3D_common::domMipmap_maxlevel)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_sampler3D_common::domMipmap_bias::create(daeInt bytes) -{ - domFx_sampler3D_common::domMipmap_biasRef ref = new(bytes) domFx_sampler3D_common::domMipmap_bias; - return ref; -} - - -daeMetaElement * -domFx_sampler3D_common::domMipmap_bias::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipmap_bias" ); - _Meta->registerClass(domFx_sampler3D_common::domMipmap_bias::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsFloat")); - ma->setOffset( daeOffsetOf( domFx_sampler3D_common::domMipmap_bias , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_sampler3D_common::domMipmap_bias)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_sampler3D_common::_Meta = NULL; -daeMetaElement * domFx_sampler3D_common::domSource::_Meta = NULL; -daeMetaElement * domFx_sampler3D_common::domWrap_s::_Meta = NULL; -daeMetaElement * domFx_sampler3D_common::domWrap_t::_Meta = NULL; -daeMetaElement * domFx_sampler3D_common::domWrap_p::_Meta = NULL; -daeMetaElement * domFx_sampler3D_common::domMinfilter::_Meta = NULL; -daeMetaElement * domFx_sampler3D_common::domMagfilter::_Meta = NULL; -daeMetaElement * domFx_sampler3D_common::domMipfilter::_Meta = NULL; -daeMetaElement * domFx_sampler3D_common::domBorder_color::_Meta = NULL; -daeMetaElement * domFx_sampler3D_common::domMipmap_maxlevel::_Meta = NULL; -daeMetaElement * domFx_sampler3D_common::domMipmap_bias::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerCUBE_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerCUBE_common.cpp deleted file mode 100644 index 42dc0197c..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerCUBE_common.cpp +++ /dev/null @@ -1,483 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_samplerCUBE_common::create(daeInt bytes) -{ - domFx_samplerCUBE_commonRef ref = new(bytes) domFx_samplerCUBE_common; - return ref; -} - - -daeMetaElement * -domFx_samplerCUBE_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_samplerCUBE_common" ); - _Meta->registerClass(domFx_samplerCUBE_common::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domFx_samplerCUBE_common,elemSource) ); - mea->setElementType( domFx_samplerCUBE_common::domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domFx_samplerCUBE_common,elemWrap_s) ); - mea->setElementType( domFx_samplerCUBE_common::domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domFx_samplerCUBE_common,elemWrap_t) ); - mea->setElementType( domFx_samplerCUBE_common::domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "wrap_p" ); - mea->setOffset( daeOffsetOf(domFx_samplerCUBE_common,elemWrap_p) ); - mea->setElementType( domFx_samplerCUBE_common::domWrap_p::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domFx_samplerCUBE_common,elemMinfilter) ); - mea->setElementType( domFx_samplerCUBE_common::domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domFx_samplerCUBE_common,elemMagfilter) ); - mea->setElementType( domFx_samplerCUBE_common::domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domFx_samplerCUBE_common,elemMipfilter) ); - mea->setElementType( domFx_samplerCUBE_common::domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domFx_samplerCUBE_common,elemBorder_color) ); - mea->setElementType( domFx_samplerCUBE_common::domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domFx_samplerCUBE_common,elemMipmap_maxlevel) ); - mea->setElementType( domFx_samplerCUBE_common::domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 9, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domFx_samplerCUBE_common,elemMipmap_bias) ); - mea->setElementType( domFx_samplerCUBE_common::domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 10, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domFx_samplerCUBE_common,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 10 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domFx_samplerCUBE_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerCUBE_common::domSource::create(daeInt bytes) -{ - domFx_samplerCUBE_common::domSourceRef ref = new(bytes) domFx_samplerCUBE_common::domSource; - return ref; -} - - -daeMetaElement * -domFx_samplerCUBE_common::domSource::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "source" ); - _Meta->registerClass(domFx_samplerCUBE_common::domSource::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domSource , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domSource)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerCUBE_common::domWrap_s::create(daeInt bytes) -{ - domFx_samplerCUBE_common::domWrap_sRef ref = new(bytes) domFx_samplerCUBE_common::domWrap_s; - return ref; -} - - -daeMetaElement * -domFx_samplerCUBE_common::domWrap_s::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_s" ); - _Meta->registerClass(domFx_samplerCUBE_common::domWrap_s::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); - ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domWrap_s , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domWrap_s)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerCUBE_common::domWrap_t::create(daeInt bytes) -{ - domFx_samplerCUBE_common::domWrap_tRef ref = new(bytes) domFx_samplerCUBE_common::domWrap_t; - return ref; -} - - -daeMetaElement * -domFx_samplerCUBE_common::domWrap_t::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_t" ); - _Meta->registerClass(domFx_samplerCUBE_common::domWrap_t::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); - ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domWrap_t , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domWrap_t)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerCUBE_common::domWrap_p::create(daeInt bytes) -{ - domFx_samplerCUBE_common::domWrap_pRef ref = new(bytes) domFx_samplerCUBE_common::domWrap_p; - return ref; -} - - -daeMetaElement * -domFx_samplerCUBE_common::domWrap_p::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_p" ); - _Meta->registerClass(domFx_samplerCUBE_common::domWrap_p::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); - ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domWrap_p , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domWrap_p)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerCUBE_common::domMinfilter::create(daeInt bytes) -{ - domFx_samplerCUBE_common::domMinfilterRef ref = new(bytes) domFx_samplerCUBE_common::domMinfilter; - return ref; -} - - -daeMetaElement * -domFx_samplerCUBE_common::domMinfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "minfilter" ); - _Meta->registerClass(domFx_samplerCUBE_common::domMinfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domMinfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domMinfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerCUBE_common::domMagfilter::create(daeInt bytes) -{ - domFx_samplerCUBE_common::domMagfilterRef ref = new(bytes) domFx_samplerCUBE_common::domMagfilter; - return ref; -} - - -daeMetaElement * -domFx_samplerCUBE_common::domMagfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "magfilter" ); - _Meta->registerClass(domFx_samplerCUBE_common::domMagfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domMagfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domMagfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerCUBE_common::domMipfilter::create(daeInt bytes) -{ - domFx_samplerCUBE_common::domMipfilterRef ref = new(bytes) domFx_samplerCUBE_common::domMipfilter; - return ref; -} - - -daeMetaElement * -domFx_samplerCUBE_common::domMipfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipfilter" ); - _Meta->registerClass(domFx_samplerCUBE_common::domMipfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domMipfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domMipfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerCUBE_common::domBorder_color::create(daeInt bytes) -{ - domFx_samplerCUBE_common::domBorder_colorRef ref = new(bytes) domFx_samplerCUBE_common::domBorder_color; - return ref; -} - - -daeMetaElement * -domFx_samplerCUBE_common::domBorder_color::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "border_color" ); - _Meta->registerClass(domFx_samplerCUBE_common::domBorder_color::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_color_common")); - ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domBorder_color , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domBorder_color)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerCUBE_common::domMipmap_maxlevel::create(daeInt bytes) -{ - domFx_samplerCUBE_common::domMipmap_maxlevelRef ref = new(bytes) domFx_samplerCUBE_common::domMipmap_maxlevel; - return ref; -} - - -daeMetaElement * -domFx_samplerCUBE_common::domMipmap_maxlevel::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipmap_maxlevel" ); - _Meta->registerClass(domFx_samplerCUBE_common::domMipmap_maxlevel::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsUnsignedByte")); - ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domMipmap_maxlevel , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domMipmap_maxlevel)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerCUBE_common::domMipmap_bias::create(daeInt bytes) -{ - domFx_samplerCUBE_common::domMipmap_biasRef ref = new(bytes) domFx_samplerCUBE_common::domMipmap_bias; - return ref; -} - - -daeMetaElement * -domFx_samplerCUBE_common::domMipmap_bias::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipmap_bias" ); - _Meta->registerClass(domFx_samplerCUBE_common::domMipmap_bias::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsFloat")); - ma->setOffset( daeOffsetOf( domFx_samplerCUBE_common::domMipmap_bias , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerCUBE_common::domMipmap_bias)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_samplerCUBE_common::_Meta = NULL; -daeMetaElement * domFx_samplerCUBE_common::domSource::_Meta = NULL; -daeMetaElement * domFx_samplerCUBE_common::domWrap_s::_Meta = NULL; -daeMetaElement * domFx_samplerCUBE_common::domWrap_t::_Meta = NULL; -daeMetaElement * domFx_samplerCUBE_common::domWrap_p::_Meta = NULL; -daeMetaElement * domFx_samplerCUBE_common::domMinfilter::_Meta = NULL; -daeMetaElement * domFx_samplerCUBE_common::domMagfilter::_Meta = NULL; -daeMetaElement * domFx_samplerCUBE_common::domMipfilter::_Meta = NULL; -daeMetaElement * domFx_samplerCUBE_common::domBorder_color::_Meta = NULL; -daeMetaElement * domFx_samplerCUBE_common::domMipmap_maxlevel::_Meta = NULL; -daeMetaElement * domFx_samplerCUBE_common::domMipmap_bias::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerDEPTH_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerDEPTH_common.cpp deleted file mode 100644 index 5b9e65a41..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerDEPTH_common.cpp +++ /dev/null @@ -1,273 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_samplerDEPTH_common::create(daeInt bytes) -{ - domFx_samplerDEPTH_commonRef ref = new(bytes) domFx_samplerDEPTH_common; - return ref; -} - - -daeMetaElement * -domFx_samplerDEPTH_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_samplerDEPTH_common" ); - _Meta->registerClass(domFx_samplerDEPTH_common::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domFx_samplerDEPTH_common,elemSource) ); - mea->setElementType( domFx_samplerDEPTH_common::domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domFx_samplerDEPTH_common,elemWrap_s) ); - mea->setElementType( domFx_samplerDEPTH_common::domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domFx_samplerDEPTH_common,elemWrap_t) ); - mea->setElementType( domFx_samplerDEPTH_common::domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domFx_samplerDEPTH_common,elemMinfilter) ); - mea->setElementType( domFx_samplerDEPTH_common::domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domFx_samplerDEPTH_common,elemMagfilter) ); - mea->setElementType( domFx_samplerDEPTH_common::domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 5, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domFx_samplerDEPTH_common,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 5 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domFx_samplerDEPTH_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerDEPTH_common::domSource::create(daeInt bytes) -{ - domFx_samplerDEPTH_common::domSourceRef ref = new(bytes) domFx_samplerDEPTH_common::domSource; - return ref; -} - - -daeMetaElement * -domFx_samplerDEPTH_common::domSource::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "source" ); - _Meta->registerClass(domFx_samplerDEPTH_common::domSource::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domSource , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domSource)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerDEPTH_common::domWrap_s::create(daeInt bytes) -{ - domFx_samplerDEPTH_common::domWrap_sRef ref = new(bytes) domFx_samplerDEPTH_common::domWrap_s; - return ref; -} - - -daeMetaElement * -domFx_samplerDEPTH_common::domWrap_s::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_s" ); - _Meta->registerClass(domFx_samplerDEPTH_common::domWrap_s::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); - ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domWrap_s , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domWrap_s)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerDEPTH_common::domWrap_t::create(daeInt bytes) -{ - domFx_samplerDEPTH_common::domWrap_tRef ref = new(bytes) domFx_samplerDEPTH_common::domWrap_t; - return ref; -} - - -daeMetaElement * -domFx_samplerDEPTH_common::domWrap_t::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_t" ); - _Meta->registerClass(domFx_samplerDEPTH_common::domWrap_t::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); - ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domWrap_t , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domWrap_t)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerDEPTH_common::domMinfilter::create(daeInt bytes) -{ - domFx_samplerDEPTH_common::domMinfilterRef ref = new(bytes) domFx_samplerDEPTH_common::domMinfilter; - return ref; -} - - -daeMetaElement * -domFx_samplerDEPTH_common::domMinfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "minfilter" ); - _Meta->registerClass(domFx_samplerDEPTH_common::domMinfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domMinfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domMinfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerDEPTH_common::domMagfilter::create(daeInt bytes) -{ - domFx_samplerDEPTH_common::domMagfilterRef ref = new(bytes) domFx_samplerDEPTH_common::domMagfilter; - return ref; -} - - -daeMetaElement * -domFx_samplerDEPTH_common::domMagfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "magfilter" ); - _Meta->registerClass(domFx_samplerDEPTH_common::domMagfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domMagfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domMagfilter)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_samplerDEPTH_common::_Meta = NULL; -daeMetaElement * domFx_samplerDEPTH_common::domSource::_Meta = NULL; -daeMetaElement * domFx_samplerDEPTH_common::domWrap_s::_Meta = NULL; -daeMetaElement * domFx_samplerDEPTH_common::domWrap_t::_Meta = NULL; -daeMetaElement * domFx_samplerDEPTH_common::domMinfilter::_Meta = NULL; -daeMetaElement * domFx_samplerDEPTH_common::domMagfilter::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerRECT_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerRECT_common.cpp deleted file mode 100644 index 04140933f..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_samplerRECT_common.cpp +++ /dev/null @@ -1,441 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_samplerRECT_common::create(daeInt bytes) -{ - domFx_samplerRECT_commonRef ref = new(bytes) domFx_samplerRECT_common; - return ref; -} - - -daeMetaElement * -domFx_samplerRECT_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_samplerRECT_common" ); - _Meta->registerClass(domFx_samplerRECT_common::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domFx_samplerRECT_common,elemSource) ); - mea->setElementType( domFx_samplerRECT_common::domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domFx_samplerRECT_common,elemWrap_s) ); - mea->setElementType( domFx_samplerRECT_common::domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domFx_samplerRECT_common,elemWrap_t) ); - mea->setElementType( domFx_samplerRECT_common::domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domFx_samplerRECT_common,elemMinfilter) ); - mea->setElementType( domFx_samplerRECT_common::domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domFx_samplerRECT_common,elemMagfilter) ); - mea->setElementType( domFx_samplerRECT_common::domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domFx_samplerRECT_common,elemMipfilter) ); - mea->setElementType( domFx_samplerRECT_common::domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domFx_samplerRECT_common,elemBorder_color) ); - mea->setElementType( domFx_samplerRECT_common::domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domFx_samplerRECT_common,elemMipmap_maxlevel) ); - mea->setElementType( domFx_samplerRECT_common::domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domFx_samplerRECT_common,elemMipmap_bias) ); - mea->setElementType( domFx_samplerRECT_common::domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 9, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domFx_samplerRECT_common,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 9 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domFx_samplerRECT_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerRECT_common::domSource::create(daeInt bytes) -{ - domFx_samplerRECT_common::domSourceRef ref = new(bytes) domFx_samplerRECT_common::domSource; - return ref; -} - - -daeMetaElement * -domFx_samplerRECT_common::domSource::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "source" ); - _Meta->registerClass(domFx_samplerRECT_common::domSource::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domSource , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domSource)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerRECT_common::domWrap_s::create(daeInt bytes) -{ - domFx_samplerRECT_common::domWrap_sRef ref = new(bytes) domFx_samplerRECT_common::domWrap_s; - return ref; -} - - -daeMetaElement * -domFx_samplerRECT_common::domWrap_s::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_s" ); - _Meta->registerClass(domFx_samplerRECT_common::domWrap_s::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); - ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domWrap_s , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domWrap_s)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerRECT_common::domWrap_t::create(daeInt bytes) -{ - domFx_samplerRECT_common::domWrap_tRef ref = new(bytes) domFx_samplerRECT_common::domWrap_t; - return ref; -} - - -daeMetaElement * -domFx_samplerRECT_common::domWrap_t::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_t" ); - _Meta->registerClass(domFx_samplerRECT_common::domWrap_t::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_wrap_common")); - ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domWrap_t , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domWrap_t)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerRECT_common::domMinfilter::create(daeInt bytes) -{ - domFx_samplerRECT_common::domMinfilterRef ref = new(bytes) domFx_samplerRECT_common::domMinfilter; - return ref; -} - - -daeMetaElement * -domFx_samplerRECT_common::domMinfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "minfilter" ); - _Meta->registerClass(domFx_samplerRECT_common::domMinfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domMinfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domMinfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerRECT_common::domMagfilter::create(daeInt bytes) -{ - domFx_samplerRECT_common::domMagfilterRef ref = new(bytes) domFx_samplerRECT_common::domMagfilter; - return ref; -} - - -daeMetaElement * -domFx_samplerRECT_common::domMagfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "magfilter" ); - _Meta->registerClass(domFx_samplerRECT_common::domMagfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domMagfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domMagfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerRECT_common::domMipfilter::create(daeInt bytes) -{ - domFx_samplerRECT_common::domMipfilterRef ref = new(bytes) domFx_samplerRECT_common::domMipfilter; - return ref; -} - - -daeMetaElement * -domFx_samplerRECT_common::domMipfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipfilter" ); - _Meta->registerClass(domFx_samplerRECT_common::domMipfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domMipfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domMipfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerRECT_common::domBorder_color::create(daeInt bytes) -{ - domFx_samplerRECT_common::domBorder_colorRef ref = new(bytes) domFx_samplerRECT_common::domBorder_color; - return ref; -} - - -daeMetaElement * -domFx_samplerRECT_common::domBorder_color::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "border_color" ); - _Meta->registerClass(domFx_samplerRECT_common::domBorder_color::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_color_common")); - ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domBorder_color , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domBorder_color)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerRECT_common::domMipmap_maxlevel::create(daeInt bytes) -{ - domFx_samplerRECT_common::domMipmap_maxlevelRef ref = new(bytes) domFx_samplerRECT_common::domMipmap_maxlevel; - return ref; -} - - -daeMetaElement * -domFx_samplerRECT_common::domMipmap_maxlevel::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipmap_maxlevel" ); - _Meta->registerClass(domFx_samplerRECT_common::domMipmap_maxlevel::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsUnsignedByte")); - ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domMipmap_maxlevel , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domMipmap_maxlevel)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_samplerRECT_common::domMipmap_bias::create(daeInt bytes) -{ - domFx_samplerRECT_common::domMipmap_biasRef ref = new(bytes) domFx_samplerRECT_common::domMipmap_bias; - return ref; -} - - -daeMetaElement * -domFx_samplerRECT_common::domMipmap_bias::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipmap_bias" ); - _Meta->registerClass(domFx_samplerRECT_common::domMipmap_bias::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsFloat")); - ma->setOffset( daeOffsetOf( domFx_samplerRECT_common::domMipmap_bias , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_samplerRECT_common::domMipmap_bias)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_samplerRECT_common::_Meta = NULL; -daeMetaElement * domFx_samplerRECT_common::domSource::_Meta = NULL; -daeMetaElement * domFx_samplerRECT_common::domWrap_s::_Meta = NULL; -daeMetaElement * domFx_samplerRECT_common::domWrap_t::_Meta = NULL; -daeMetaElement * domFx_samplerRECT_common::domMinfilter::_Meta = NULL; -daeMetaElement * domFx_samplerRECT_common::domMagfilter::_Meta = NULL; -daeMetaElement * domFx_samplerRECT_common::domMipfilter::_Meta = NULL; -daeMetaElement * domFx_samplerRECT_common::domBorder_color::_Meta = NULL; -daeMetaElement * domFx_samplerRECT_common::domMipmap_maxlevel::_Meta = NULL; -daeMetaElement * domFx_samplerRECT_common::domMipmap_bias::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_stenciltarget_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_stenciltarget_common.cpp deleted file mode 100644 index 2c376ee75..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_stenciltarget_common.cpp +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_stenciltarget_common::create(daeInt bytes) -{ - domFx_stenciltarget_commonRef ref = new(bytes) domFx_stenciltarget_common; - return ref; -} - - -daeMetaElement * -domFx_stenciltarget_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_stenciltarget_common" ); - _Meta->registerClass(domFx_stenciltarget_common::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domFx_stenciltarget_common , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("xsNonNegativeInteger")); - ma->setOffset( daeOffsetOf( domFx_stenciltarget_common , attrIndex )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: face - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "face" ); - ma->setType( daeAtomicType::get("Fx_surface_face_enum")); - ma->setOffset( daeOffsetOf( domFx_stenciltarget_common , attrFace )); - ma->setContainer( _Meta ); - ma->setDefault( "POSITIVE_X"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: mip - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "mip" ); - ma->setType( daeAtomicType::get("xsNonNegativeInteger")); - ma->setOffset( daeOffsetOf( domFx_stenciltarget_common , attrMip )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: slice - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "slice" ); - ma->setType( daeAtomicType::get("xsNonNegativeInteger")); - ma->setOffset( daeOffsetOf( domFx_stenciltarget_common , attrSlice )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_stenciltarget_common)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_stenciltarget_common::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_common.cpp deleted file mode 100644 index b2fd47847..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_common.cpp +++ /dev/null @@ -1,322 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_surface_common::create(daeInt bytes) -{ - domFx_surface_commonRef ref = new(bytes) domFx_surface_common; - return ref; -} - - -daeMetaElement * -domFx_surface_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_surface_common" ); - _Meta->registerClass(domFx_surface_common::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "fx_surface_init_common" ); - mea->setOffset( daeOffsetOf(domFx_surface_common,elemFx_surface_init_common) ); - mea->setElementType( domFx_surface_init_common::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 0, 1 ) ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "format" ); - mea->setOffset( daeOffsetOf(domFx_surface_common,elemFormat) ); - mea->setElementType( domFx_surface_common::domFormat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "format_hint" ); - mea->setOffset( daeOffsetOf(domFx_surface_common,elemFormat_hint) ); - mea->setElementType( domFx_surface_format_hint_common::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 3, 0, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "size" ); - mea->setOffset( daeOffsetOf(domFx_surface_common,elemSize) ); - mea->setElementType( domFx_surface_common::domSize::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "viewport_ratio" ); - mea->setOffset( daeOffsetOf(domFx_surface_common,elemViewport_ratio) ); - mea->setElementType( domFx_surface_common::domViewport_ratio::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "mip_levels" ); - mea->setOffset( daeOffsetOf(domFx_surface_common,elemMip_levels) ); - mea->setElementType( domFx_surface_common::domMip_levels::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "mipmap_generate" ); - mea->setOffset( daeOffsetOf(domFx_surface_common,elemMipmap_generate) ); - mea->setElementType( domFx_surface_common::domMipmap_generate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 6, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domFx_surface_common,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 6 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domFx_surface_common,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domFx_surface_common,_contentsOrder)); - - - // Add attribute: type - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "type" ); - ma->setType( daeAtomicType::get("Fx_surface_type_enum")); - ma->setOffset( daeOffsetOf( domFx_surface_common , attrType )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_common::domFormat::create(daeInt bytes) -{ - domFx_surface_common::domFormatRef ref = new(bytes) domFx_surface_common::domFormat; - return ref; -} - - -daeMetaElement * -domFx_surface_common::domFormat::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "format" ); - _Meta->registerClass(domFx_surface_common::domFormat::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsToken")); - ma->setOffset( daeOffsetOf( domFx_surface_common::domFormat , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_common::domFormat)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_common::domSize::create(daeInt bytes) -{ - domFx_surface_common::domSizeRef ref = new(bytes) domFx_surface_common::domSize; - return ref; -} - - -daeMetaElement * -domFx_surface_common::domSize::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "size" ); - _Meta->registerClass(domFx_surface_common::domSize::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Int3")); - ma->setOffset( daeOffsetOf( domFx_surface_common::domSize , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_common::domSize)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_common::domViewport_ratio::create(daeInt bytes) -{ - domFx_surface_common::domViewport_ratioRef ref = new(bytes) domFx_surface_common::domViewport_ratio; - return ref; -} - - -daeMetaElement * -domFx_surface_common::domViewport_ratio::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "viewport_ratio" ); - _Meta->registerClass(domFx_surface_common::domViewport_ratio::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domFx_surface_common::domViewport_ratio , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_common::domViewport_ratio)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_common::domMip_levels::create(daeInt bytes) -{ - domFx_surface_common::domMip_levelsRef ref = new(bytes) domFx_surface_common::domMip_levels; - return ref; -} - - -daeMetaElement * -domFx_surface_common::domMip_levels::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mip_levels" ); - _Meta->registerClass(domFx_surface_common::domMip_levels::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsUnsignedInt")); - ma->setOffset( daeOffsetOf( domFx_surface_common::domMip_levels , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_common::domMip_levels)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_common::domMipmap_generate::create(daeInt bytes) -{ - domFx_surface_common::domMipmap_generateRef ref = new(bytes) domFx_surface_common::domMipmap_generate; - return ref; -} - - -daeMetaElement * -domFx_surface_common::domMipmap_generate::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipmap_generate" ); - _Meta->registerClass(domFx_surface_common::domMipmap_generate::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsBoolean")); - ma->setOffset( daeOffsetOf( domFx_surface_common::domMipmap_generate , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_common::domMipmap_generate)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_surface_common::_Meta = NULL; -daeMetaElement * domFx_surface_common::domFormat::_Meta = NULL; -daeMetaElement * domFx_surface_common::domSize::_Meta = NULL; -daeMetaElement * domFx_surface_common::domViewport_ratio::_Meta = NULL; -daeMetaElement * domFx_surface_common::domMip_levels::_Meta = NULL; -daeMetaElement * domFx_surface_common::domMipmap_generate::_Meta = NULL; - - -//Backwards Compatibility functions -domFx_surface_common_complexType::domInit_from_Array &domFx_surface_common_complexType::getInit_from_array() { - if (elemFx_surface_init_common != NULL ) { - return elemFx_surface_init_common->getInit_from_array(); - } - return emptyArray; -} - -const domFx_surface_common_complexType::domInit_from_Array &domFx_surface_common_complexType::getInit_from_array() const { - if (elemFx_surface_init_common != NULL ) { - return elemFx_surface_init_common->getInit_from_array(); - } - return emptyArray; -} - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_format_hint_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_format_hint_common.cpp deleted file mode 100644 index 15417168f..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_format_hint_common.cpp +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_surface_format_hint_common::create(daeInt bytes) -{ - domFx_surface_format_hint_commonRef ref = new(bytes) domFx_surface_format_hint_common; - return ref; -} - - -daeMetaElement * -domFx_surface_format_hint_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_surface_format_hint_common" ); - _Meta->registerClass(domFx_surface_format_hint_common::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "channels" ); - mea->setOffset( daeOffsetOf(domFx_surface_format_hint_common,elemChannels) ); - mea->setElementType( domFx_surface_format_hint_common::domChannels::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "range" ); - mea->setOffset( daeOffsetOf(domFx_surface_format_hint_common,elemRange) ); - mea->setElementType( domFx_surface_format_hint_common::domRange::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "precision" ); - mea->setOffset( daeOffsetOf(domFx_surface_format_hint_common,elemPrecision) ); - mea->setElementType( domFx_surface_format_hint_common::domPrecision::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "option" ); - mea->setOffset( daeOffsetOf(domFx_surface_format_hint_common,elemOption_array) ); - mea->setElementType( domFx_surface_format_hint_common::domOption::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domFx_surface_format_hint_common,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 4 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domFx_surface_format_hint_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_format_hint_common::domChannels::create(daeInt bytes) -{ - domFx_surface_format_hint_common::domChannelsRef ref = new(bytes) domFx_surface_format_hint_common::domChannels; - return ref; -} - - -daeMetaElement * -domFx_surface_format_hint_common::domChannels::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "channels" ); - _Meta->registerClass(domFx_surface_format_hint_common::domChannels::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_surface_format_hint_channels_enum")); - ma->setOffset( daeOffsetOf( domFx_surface_format_hint_common::domChannels , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_format_hint_common::domChannels)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_format_hint_common::domRange::create(daeInt bytes) -{ - domFx_surface_format_hint_common::domRangeRef ref = new(bytes) domFx_surface_format_hint_common::domRange; - return ref; -} - - -daeMetaElement * -domFx_surface_format_hint_common::domRange::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "range" ); - _Meta->registerClass(domFx_surface_format_hint_common::domRange::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_surface_format_hint_range_enum")); - ma->setOffset( daeOffsetOf( domFx_surface_format_hint_common::domRange , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_format_hint_common::domRange)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_format_hint_common::domPrecision::create(daeInt bytes) -{ - domFx_surface_format_hint_common::domPrecisionRef ref = new(bytes) domFx_surface_format_hint_common::domPrecision; - return ref; -} - - -daeMetaElement * -domFx_surface_format_hint_common::domPrecision::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "precision" ); - _Meta->registerClass(domFx_surface_format_hint_common::domPrecision::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_surface_format_hint_precision_enum")); - ma->setOffset( daeOffsetOf( domFx_surface_format_hint_common::domPrecision , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_format_hint_common::domPrecision)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_format_hint_common::domOption::create(daeInt bytes) -{ - domFx_surface_format_hint_common::domOptionRef ref = new(bytes) domFx_surface_format_hint_common::domOption; - return ref; -} - - -daeMetaElement * -domFx_surface_format_hint_common::domOption::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "option" ); - _Meta->registerClass(domFx_surface_format_hint_common::domOption::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_surface_format_hint_option_enum")); - ma->setOffset( daeOffsetOf( domFx_surface_format_hint_common::domOption , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_format_hint_common::domOption)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_surface_format_hint_common::_Meta = NULL; -daeMetaElement * domFx_surface_format_hint_common::domChannels::_Meta = NULL; -daeMetaElement * domFx_surface_format_hint_common::domRange::_Meta = NULL; -daeMetaElement * domFx_surface_format_hint_common::domPrecision::_Meta = NULL; -daeMetaElement * domFx_surface_format_hint_common::domOption::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_common.cpp deleted file mode 100644 index 47499ec82..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_common.cpp +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_surface_init_common::create(daeInt bytes) -{ - domFx_surface_init_commonRef ref = new(bytes) domFx_surface_init_common; - return ref; -} - - -daeMetaElement * -domFx_surface_init_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_surface_init_common" ); - _Meta->registerClass(domFx_surface_init_common::create, &_Meta); - - _Meta->setIsTransparent( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "init_as_null" ); - mea->setOffset( daeOffsetOf(domFx_surface_init_common,elemInit_as_null) ); - mea->setElementType( domFx_surface_init_common::domInit_as_null::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "init_as_target" ); - mea->setOffset( daeOffsetOf(domFx_surface_init_common,elemInit_as_target) ); - mea->setElementType( domFx_surface_init_common::domInit_as_target::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "init_cube" ); - mea->setOffset( daeOffsetOf(domFx_surface_init_common,elemInit_cube) ); - mea->setElementType( domFx_surface_init_cube_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "init_volume" ); - mea->setOffset( daeOffsetOf(domFx_surface_init_common,elemInit_volume) ); - mea->setElementType( domFx_surface_init_volume_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "init_planar" ); - mea->setOffset( daeOffsetOf(domFx_surface_init_common,elemInit_planar) ); - mea->setElementType( domFx_surface_init_planar_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, -1 ); - mea->setName( "init_from" ); - mea->setOffset( daeOffsetOf(domFx_surface_init_common,elemInit_from_array) ); - mea->setElementType( domFx_surface_init_from_common::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domFx_surface_init_common,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domFx_surface_init_common,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domFx_surface_init_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_init_common::domInit_as_null::create(daeInt bytes) -{ - domFx_surface_init_common::domInit_as_nullRef ref = new(bytes) domFx_surface_init_common::domInit_as_null; - return ref; -} - - -daeMetaElement * -domFx_surface_init_common::domInit_as_null::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "init_as_null" ); - _Meta->registerClass(domFx_surface_init_common::domInit_as_null::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - - _Meta->setElementSize(sizeof(domFx_surface_init_common::domInit_as_null)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_init_common::domInit_as_target::create(daeInt bytes) -{ - domFx_surface_init_common::domInit_as_targetRef ref = new(bytes) domFx_surface_init_common::domInit_as_target; - return ref; -} - - -daeMetaElement * -domFx_surface_init_common::domInit_as_target::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "init_as_target" ); - _Meta->registerClass(domFx_surface_init_common::domInit_as_target::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - - _Meta->setElementSize(sizeof(domFx_surface_init_common::domInit_as_target)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_surface_init_common::_Meta = NULL; -daeMetaElement * domFx_surface_init_common::domInit_as_null::_Meta = NULL; -daeMetaElement * domFx_surface_init_common::domInit_as_target::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_cube_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_cube_common.cpp deleted file mode 100644 index 81ea80a38..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_cube_common.cpp +++ /dev/null @@ -1,244 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_surface_init_cube_common::create(daeInt bytes) -{ - domFx_surface_init_cube_commonRef ref = new(bytes) domFx_surface_init_cube_common; - return ref; -} - - -daeMetaElement * -domFx_surface_init_cube_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_surface_init_cube_common" ); - _Meta->registerClass(domFx_surface_init_cube_common::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "all" ); - mea->setOffset( daeOffsetOf(domFx_surface_init_cube_common,elemAll) ); - mea->setElementType( domFx_surface_init_cube_common::domAll::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "primary" ); - mea->setOffset( daeOffsetOf(domFx_surface_init_cube_common,elemPrimary) ); - mea->setElementType( domFx_surface_init_cube_common::domPrimary::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 6, 6 ); - mea->setName( "face" ); - mea->setOffset( daeOffsetOf(domFx_surface_init_cube_common,elemFace_array) ); - mea->setElementType( domFx_surface_init_cube_common::domFace::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domFx_surface_init_cube_common,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domFx_surface_init_cube_common,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domFx_surface_init_cube_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_init_cube_common::domAll::create(daeInt bytes) -{ - domFx_surface_init_cube_common::domAllRef ref = new(bytes) domFx_surface_init_cube_common::domAll; - return ref; -} - - -daeMetaElement * -domFx_surface_init_cube_common::domAll::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "all" ); - _Meta->registerClass(domFx_surface_init_cube_common::domAll::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("xsIDREF")); - ma->setOffset( daeOffsetOf( domFx_surface_init_cube_common::domAll , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_init_cube_common::domAll)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_init_cube_common::domPrimary::create(daeInt bytes) -{ - domFx_surface_init_cube_common::domPrimaryRef ref = new(bytes) domFx_surface_init_cube_common::domPrimary; - return ref; -} - - -daeMetaElement * -domFx_surface_init_cube_common::domPrimary::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "primary" ); - _Meta->registerClass(domFx_surface_init_cube_common::domPrimary::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 0, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 6, 6 ); - mea->setName( "order" ); - mea->setOffset( daeOffsetOf(domFx_surface_init_cube_common::domPrimary,elemOrder_array) ); - mea->setElementType( domFx_surface_init_cube_common::domPrimary::domOrder::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("xsIDREF")); - ma->setOffset( daeOffsetOf( domFx_surface_init_cube_common::domPrimary , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_init_cube_common::domPrimary)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_init_cube_common::domPrimary::domOrder::create(daeInt bytes) -{ - domFx_surface_init_cube_common::domPrimary::domOrderRef ref = new(bytes) domFx_surface_init_cube_common::domPrimary::domOrder; - return ref; -} - - -daeMetaElement * -domFx_surface_init_cube_common::domPrimary::domOrder::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "order" ); - _Meta->registerClass(domFx_surface_init_cube_common::domPrimary::domOrder::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_surface_face_enum")); - ma->setOffset( daeOffsetOf( domFx_surface_init_cube_common::domPrimary::domOrder , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_init_cube_common::domPrimary::domOrder)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_init_cube_common::domFace::create(daeInt bytes) -{ - domFx_surface_init_cube_common::domFaceRef ref = new(bytes) domFx_surface_init_cube_common::domFace; - return ref; -} - - -daeMetaElement * -domFx_surface_init_cube_common::domFace::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "face" ); - _Meta->registerClass(domFx_surface_init_cube_common::domFace::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("xsIDREF")); - ma->setOffset( daeOffsetOf( domFx_surface_init_cube_common::domFace , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_init_cube_common::domFace)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_surface_init_cube_common::_Meta = NULL; -daeMetaElement * domFx_surface_init_cube_common::domAll::_Meta = NULL; -daeMetaElement * domFx_surface_init_cube_common::domPrimary::_Meta = NULL; -daeMetaElement * domFx_surface_init_cube_common::domPrimary::domOrder::_Meta = NULL; -daeMetaElement * domFx_surface_init_cube_common::domFace::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_from_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_from_common.cpp deleted file mode 100644 index 5e8981ead..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_from_common.cpp +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_surface_init_from_common::create(daeInt bytes) -{ - domFx_surface_init_from_commonRef ref = new(bytes) domFx_surface_init_from_common; - return ref; -} - - -daeMetaElement * -domFx_surface_init_from_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_surface_init_from_common" ); - _Meta->registerClass(domFx_surface_init_from_common::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsIDREF")); - ma->setOffset( daeOffsetOf( domFx_surface_init_from_common , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: mip - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "mip" ); - ma->setType( daeAtomicType::get("xsUnsignedInt")); - ma->setOffset( daeOffsetOf( domFx_surface_init_from_common , attrMip )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - - _Meta->appendAttribute(ma); - } - - // Add attribute: slice - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "slice" ); - ma->setType( daeAtomicType::get("xsUnsignedInt")); - ma->setOffset( daeOffsetOf( domFx_surface_init_from_common , attrSlice )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - - _Meta->appendAttribute(ma); - } - - // Add attribute: face - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "face" ); - ma->setType( daeAtomicType::get("Fx_surface_face_enum")); - ma->setOffset( daeOffsetOf( domFx_surface_init_from_common , attrFace )); - ma->setContainer( _Meta ); - ma->setDefault( "POSITIVE_X"); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_init_from_common)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_surface_init_from_common::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_planar_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_planar_common.cpp deleted file mode 100644 index 4a6da0006..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_planar_common.cpp +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_surface_init_planar_common::create(daeInt bytes) -{ - domFx_surface_init_planar_commonRef ref = new(bytes) domFx_surface_init_planar_common; - return ref; -} - - -daeMetaElement * -domFx_surface_init_planar_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_surface_init_planar_common" ); - _Meta->registerClass(domFx_surface_init_planar_common::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "all" ); - mea->setOffset( daeOffsetOf(domFx_surface_init_planar_common,elemAll) ); - mea->setElementType( domFx_surface_init_planar_common::domAll::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - _Meta->setElementSize(sizeof(domFx_surface_init_planar_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_init_planar_common::domAll::create(daeInt bytes) -{ - domFx_surface_init_planar_common::domAllRef ref = new(bytes) domFx_surface_init_planar_common::domAll; - return ref; -} - - -daeMetaElement * -domFx_surface_init_planar_common::domAll::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "all" ); - _Meta->registerClass(domFx_surface_init_planar_common::domAll::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("xsIDREF")); - ma->setOffset( daeOffsetOf( domFx_surface_init_planar_common::domAll , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_init_planar_common::domAll)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_surface_init_planar_common::_Meta = NULL; -daeMetaElement * domFx_surface_init_planar_common::domAll::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_volume_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_volume_common.cpp deleted file mode 100644 index 24450b422..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domFx_surface_init_volume_common.cpp +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domFx_surface_init_volume_common::create(daeInt bytes) -{ - domFx_surface_init_volume_commonRef ref = new(bytes) domFx_surface_init_volume_common; - return ref; -} - - -daeMetaElement * -domFx_surface_init_volume_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fx_surface_init_volume_common" ); - _Meta->registerClass(domFx_surface_init_volume_common::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "all" ); - mea->setOffset( daeOffsetOf(domFx_surface_init_volume_common,elemAll) ); - mea->setElementType( domFx_surface_init_volume_common::domAll::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "primary" ); - mea->setOffset( daeOffsetOf(domFx_surface_init_volume_common,elemPrimary) ); - mea->setElementType( domFx_surface_init_volume_common::domPrimary::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domFx_surface_init_volume_common,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domFx_surface_init_volume_common,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domFx_surface_init_volume_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_init_volume_common::domAll::create(daeInt bytes) -{ - domFx_surface_init_volume_common::domAllRef ref = new(bytes) domFx_surface_init_volume_common::domAll; - return ref; -} - - -daeMetaElement * -domFx_surface_init_volume_common::domAll::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "all" ); - _Meta->registerClass(domFx_surface_init_volume_common::domAll::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("xsIDREF")); - ma->setOffset( daeOffsetOf( domFx_surface_init_volume_common::domAll , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_init_volume_common::domAll)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domFx_surface_init_volume_common::domPrimary::create(daeInt bytes) -{ - domFx_surface_init_volume_common::domPrimaryRef ref = new(bytes) domFx_surface_init_volume_common::domPrimary; - return ref; -} - - -daeMetaElement * -domFx_surface_init_volume_common::domPrimary::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "primary" ); - _Meta->registerClass(domFx_surface_init_volume_common::domPrimary::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("xsIDREF")); - ma->setOffset( daeOffsetOf( domFx_surface_init_volume_common::domPrimary , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domFx_surface_init_volume_common::domPrimary)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domFx_surface_init_volume_common::_Meta = NULL; -daeMetaElement * domFx_surface_init_volume_common::domAll::_Meta = NULL; -daeMetaElement * domFx_surface_init_volume_common::domPrimary::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGeometry.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGeometry.cpp deleted file mode 100644 index 52a5f397a..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGeometry.cpp +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGeometry::create(daeInt bytes) -{ - domGeometryRef ref = new(bytes) domGeometry; - return ref; -} - - -daeMetaElement * -domGeometry::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "geometry" ); - _Meta->registerClass(domGeometry::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domGeometry,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "convex_mesh" ); - mea->setOffset( daeOffsetOf(domGeometry,elemConvex_mesh) ); - mea->setElementType( domConvex_mesh::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "mesh" ); - mea->setOffset( daeOffsetOf(domGeometry,elemMesh) ); - mea->setElementType( domMesh::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "spline" ); - mea->setOffset( daeOffsetOf(domGeometry,elemSpline) ); - mea->setElementType( domSpline::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domGeometry,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGeometry,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGeometry,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domGeometry , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGeometry , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGeometry)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGeometry::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_hook_abstract.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_hook_abstract.cpp deleted file mode 100644 index d0d127415..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGl_hook_abstract.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGl_hook_abstract::create(daeInt bytes) -{ - domGl_hook_abstractRef ref = new(bytes) domGl_hook_abstract; - return ref; -} - - -daeMetaElement * -domGl_hook_abstract::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gl_hook_abstract" ); - _Meta->registerClass(domGl_hook_abstract::create, &_Meta); - - _Meta->setIsAbstract( true ); - - - _Meta->setElementSize(sizeof(domGl_hook_abstract)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGl_hook_abstract::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_pipeline_settings.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_pipeline_settings.cpp deleted file mode 100644 index 2872a85e7..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGl_pipeline_settings.cpp +++ /dev/null @@ -1,8371 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGl_pipeline_settings::create(daeInt bytes) -{ - domGl_pipeline_settingsRef ref = new(bytes) domGl_pipeline_settings; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gl_pipeline_settings" ); - _Meta->registerClass(domGl_pipeline_settings::create, &_Meta); - - _Meta->setIsTransparent( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "alpha_func" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemAlpha_func) ); - mea->setElementType( domGl_pipeline_settings::domAlpha_func::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "blend_func" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemBlend_func) ); - mea->setElementType( domGl_pipeline_settings::domBlend_func::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "blend_func_separate" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemBlend_func_separate) ); - mea->setElementType( domGl_pipeline_settings::domBlend_func_separate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "blend_equation" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemBlend_equation) ); - mea->setElementType( domGl_pipeline_settings::domBlend_equation::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "blend_equation_separate" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemBlend_equation_separate) ); - mea->setElementType( domGl_pipeline_settings::domBlend_equation_separate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "color_material" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemColor_material) ); - mea->setElementType( domGl_pipeline_settings::domColor_material::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "cull_face" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemCull_face) ); - mea->setElementType( domGl_pipeline_settings::domCull_face::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "depth_func" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemDepth_func) ); - mea->setElementType( domGl_pipeline_settings::domDepth_func::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fog_mode" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemFog_mode) ); - mea->setElementType( domGl_pipeline_settings::domFog_mode::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fog_coord_src" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemFog_coord_src) ); - mea->setElementType( domGl_pipeline_settings::domFog_coord_src::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "front_face" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemFront_face) ); - mea->setElementType( domGl_pipeline_settings::domFront_face::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_model_color_control" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_model_color_control) ); - mea->setElementType( domGl_pipeline_settings::domLight_model_color_control::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "logic_op" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLogic_op) ); - mea->setElementType( domGl_pipeline_settings::domLogic_op::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "polygon_mode" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemPolygon_mode) ); - mea->setElementType( domGl_pipeline_settings::domPolygon_mode::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "shade_model" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemShade_model) ); - mea->setElementType( domGl_pipeline_settings::domShade_model::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "stencil_func" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemStencil_func) ); - mea->setElementType( domGl_pipeline_settings::domStencil_func::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "stencil_op" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemStencil_op) ); - mea->setElementType( domGl_pipeline_settings::domStencil_op::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "stencil_func_separate" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemStencil_func_separate) ); - mea->setElementType( domGl_pipeline_settings::domStencil_func_separate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "stencil_op_separate" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemStencil_op_separate) ); - mea->setElementType( domGl_pipeline_settings::domStencil_op_separate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "stencil_mask_separate" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemStencil_mask_separate) ); - mea->setElementType( domGl_pipeline_settings::domStencil_mask_separate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_enable) ); - mea->setElementType( domGl_pipeline_settings::domLight_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_ambient" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_ambient) ); - mea->setElementType( domGl_pipeline_settings::domLight_ambient::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_diffuse" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_diffuse) ); - mea->setElementType( domGl_pipeline_settings::domLight_diffuse::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_specular" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_specular) ); - mea->setElementType( domGl_pipeline_settings::domLight_specular::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_position" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_position) ); - mea->setElementType( domGl_pipeline_settings::domLight_position::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_constant_attenuation" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_constant_attenuation) ); - mea->setElementType( domGl_pipeline_settings::domLight_constant_attenuation::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_linear_attenuation" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_linear_attenuation) ); - mea->setElementType( domGl_pipeline_settings::domLight_linear_attenuation::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_quadratic_attenuation" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_quadratic_attenuation) ); - mea->setElementType( domGl_pipeline_settings::domLight_quadratic_attenuation::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_spot_cutoff" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_spot_cutoff) ); - mea->setElementType( domGl_pipeline_settings::domLight_spot_cutoff::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_spot_direction" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_spot_direction) ); - mea->setElementType( domGl_pipeline_settings::domLight_spot_direction::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_spot_exponent" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_spot_exponent) ); - mea->setElementType( domGl_pipeline_settings::domLight_spot_exponent::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture1D" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTexture1D) ); - mea->setElementType( domGl_pipeline_settings::domTexture1D::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture2D" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTexture2D) ); - mea->setElementType( domGl_pipeline_settings::domTexture2D::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture3D" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTexture3D) ); - mea->setElementType( domGl_pipeline_settings::domTexture3D::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "textureCUBE" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTextureCUBE) ); - mea->setElementType( domGl_pipeline_settings::domTextureCUBE::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "textureRECT" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTextureRECT) ); - mea->setElementType( domGl_pipeline_settings::domTextureRECT::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "textureDEPTH" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTextureDEPTH) ); - mea->setElementType( domGl_pipeline_settings::domTextureDEPTH::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture1D_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTexture1D_enable) ); - mea->setElementType( domGl_pipeline_settings::domTexture1D_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture2D_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTexture2D_enable) ); - mea->setElementType( domGl_pipeline_settings::domTexture2D_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture3D_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTexture3D_enable) ); - mea->setElementType( domGl_pipeline_settings::domTexture3D_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "textureCUBE_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTextureCUBE_enable) ); - mea->setElementType( domGl_pipeline_settings::domTextureCUBE_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "textureRECT_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTextureRECT_enable) ); - mea->setElementType( domGl_pipeline_settings::domTextureRECT_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "textureDEPTH_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTextureDEPTH_enable) ); - mea->setElementType( domGl_pipeline_settings::domTextureDEPTH_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture_env_color" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTexture_env_color) ); - mea->setElementType( domGl_pipeline_settings::domTexture_env_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture_env_mode" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemTexture_env_mode) ); - mea->setElementType( domGl_pipeline_settings::domTexture_env_mode::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "clip_plane" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemClip_plane) ); - mea->setElementType( domGl_pipeline_settings::domClip_plane::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "clip_plane_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemClip_plane_enable) ); - mea->setElementType( domGl_pipeline_settings::domClip_plane_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "blend_color" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemBlend_color) ); - mea->setElementType( domGl_pipeline_settings::domBlend_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "clear_color" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemClear_color) ); - mea->setElementType( domGl_pipeline_settings::domClear_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "clear_stencil" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemClear_stencil) ); - mea->setElementType( domGl_pipeline_settings::domClear_stencil::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "clear_depth" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemClear_depth) ); - mea->setElementType( domGl_pipeline_settings::domClear_depth::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "color_mask" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemColor_mask) ); - mea->setElementType( domGl_pipeline_settings::domColor_mask::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "depth_bounds" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemDepth_bounds) ); - mea->setElementType( domGl_pipeline_settings::domDepth_bounds::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "depth_mask" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemDepth_mask) ); - mea->setElementType( domGl_pipeline_settings::domDepth_mask::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "depth_range" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemDepth_range) ); - mea->setElementType( domGl_pipeline_settings::domDepth_range::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fog_density" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemFog_density) ); - mea->setElementType( domGl_pipeline_settings::domFog_density::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fog_start" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemFog_start) ); - mea->setElementType( domGl_pipeline_settings::domFog_start::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fog_end" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemFog_end) ); - mea->setElementType( domGl_pipeline_settings::domFog_end::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fog_color" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemFog_color) ); - mea->setElementType( domGl_pipeline_settings::domFog_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_model_ambient" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_model_ambient) ); - mea->setElementType( domGl_pipeline_settings::domLight_model_ambient::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "lighting_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLighting_enable) ); - mea->setElementType( domGl_pipeline_settings::domLighting_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "line_stipple" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLine_stipple) ); - mea->setElementType( domGl_pipeline_settings::domLine_stipple::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "line_width" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLine_width) ); - mea->setElementType( domGl_pipeline_settings::domLine_width::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "material_ambient" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemMaterial_ambient) ); - mea->setElementType( domGl_pipeline_settings::domMaterial_ambient::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "material_diffuse" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemMaterial_diffuse) ); - mea->setElementType( domGl_pipeline_settings::domMaterial_diffuse::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "material_emission" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemMaterial_emission) ); - mea->setElementType( domGl_pipeline_settings::domMaterial_emission::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "material_shininess" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemMaterial_shininess) ); - mea->setElementType( domGl_pipeline_settings::domMaterial_shininess::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "material_specular" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemMaterial_specular) ); - mea->setElementType( domGl_pipeline_settings::domMaterial_specular::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "model_view_matrix" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemModel_view_matrix) ); - mea->setElementType( domGl_pipeline_settings::domModel_view_matrix::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "point_distance_attenuation" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemPoint_distance_attenuation) ); - mea->setElementType( domGl_pipeline_settings::domPoint_distance_attenuation::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "point_fade_threshold_size" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemPoint_fade_threshold_size) ); - mea->setElementType( domGl_pipeline_settings::domPoint_fade_threshold_size::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "point_size" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemPoint_size) ); - mea->setElementType( domGl_pipeline_settings::domPoint_size::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "point_size_min" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemPoint_size_min) ); - mea->setElementType( domGl_pipeline_settings::domPoint_size_min::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "point_size_max" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemPoint_size_max) ); - mea->setElementType( domGl_pipeline_settings::domPoint_size_max::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "polygon_offset" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemPolygon_offset) ); - mea->setElementType( domGl_pipeline_settings::domPolygon_offset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "projection_matrix" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemProjection_matrix) ); - mea->setElementType( domGl_pipeline_settings::domProjection_matrix::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "scissor" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemScissor) ); - mea->setElementType( domGl_pipeline_settings::domScissor::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "stencil_mask" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemStencil_mask) ); - mea->setElementType( domGl_pipeline_settings::domStencil_mask::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "alpha_test_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemAlpha_test_enable) ); - mea->setElementType( domGl_pipeline_settings::domAlpha_test_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "auto_normal_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemAuto_normal_enable) ); - mea->setElementType( domGl_pipeline_settings::domAuto_normal_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "blend_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemBlend_enable) ); - mea->setElementType( domGl_pipeline_settings::domBlend_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "color_logic_op_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemColor_logic_op_enable) ); - mea->setElementType( domGl_pipeline_settings::domColor_logic_op_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "color_material_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemColor_material_enable) ); - mea->setElementType( domGl_pipeline_settings::domColor_material_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "cull_face_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemCull_face_enable) ); - mea->setElementType( domGl_pipeline_settings::domCull_face_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "depth_bounds_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemDepth_bounds_enable) ); - mea->setElementType( domGl_pipeline_settings::domDepth_bounds_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "depth_clamp_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemDepth_clamp_enable) ); - mea->setElementType( domGl_pipeline_settings::domDepth_clamp_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "depth_test_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemDepth_test_enable) ); - mea->setElementType( domGl_pipeline_settings::domDepth_test_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "dither_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemDither_enable) ); - mea->setElementType( domGl_pipeline_settings::domDither_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fog_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemFog_enable) ); - mea->setElementType( domGl_pipeline_settings::domFog_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_model_local_viewer_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_model_local_viewer_enable) ); - mea->setElementType( domGl_pipeline_settings::domLight_model_local_viewer_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_model_two_side_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLight_model_two_side_enable) ); - mea->setElementType( domGl_pipeline_settings::domLight_model_two_side_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "line_smooth_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLine_smooth_enable) ); - mea->setElementType( domGl_pipeline_settings::domLine_smooth_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "line_stipple_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLine_stipple_enable) ); - mea->setElementType( domGl_pipeline_settings::domLine_stipple_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "logic_op_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemLogic_op_enable) ); - mea->setElementType( domGl_pipeline_settings::domLogic_op_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "multisample_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemMultisample_enable) ); - mea->setElementType( domGl_pipeline_settings::domMultisample_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "normalize_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemNormalize_enable) ); - mea->setElementType( domGl_pipeline_settings::domNormalize_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "point_smooth_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemPoint_smooth_enable) ); - mea->setElementType( domGl_pipeline_settings::domPoint_smooth_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "polygon_offset_fill_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemPolygon_offset_fill_enable) ); - mea->setElementType( domGl_pipeline_settings::domPolygon_offset_fill_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "polygon_offset_line_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemPolygon_offset_line_enable) ); - mea->setElementType( domGl_pipeline_settings::domPolygon_offset_line_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "polygon_offset_point_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemPolygon_offset_point_enable) ); - mea->setElementType( domGl_pipeline_settings::domPolygon_offset_point_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "polygon_smooth_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemPolygon_smooth_enable) ); - mea->setElementType( domGl_pipeline_settings::domPolygon_smooth_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "polygon_stipple_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemPolygon_stipple_enable) ); - mea->setElementType( domGl_pipeline_settings::domPolygon_stipple_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "rescale_normal_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemRescale_normal_enable) ); - mea->setElementType( domGl_pipeline_settings::domRescale_normal_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sample_alpha_to_coverage_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemSample_alpha_to_coverage_enable) ); - mea->setElementType( domGl_pipeline_settings::domSample_alpha_to_coverage_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sample_alpha_to_one_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemSample_alpha_to_one_enable) ); - mea->setElementType( domGl_pipeline_settings::domSample_alpha_to_one_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sample_coverage_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemSample_coverage_enable) ); - mea->setElementType( domGl_pipeline_settings::domSample_coverage_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "scissor_test_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemScissor_test_enable) ); - mea->setElementType( domGl_pipeline_settings::domScissor_test_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "stencil_test_enable" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemStencil_test_enable) ); - mea->setElementType( domGl_pipeline_settings::domStencil_test_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "gl_hook_abstract" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings,elemGl_hook_abstract) ); - mea->setElementType( domGl_hook_abstract::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGl_pipeline_settings,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGl_pipeline_settings,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domAlpha_func::create(daeInt bytes) -{ - domGl_pipeline_settings::domAlpha_funcRef ref = new(bytes) domGl_pipeline_settings::domAlpha_func; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domAlpha_func::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "alpha_func" ); - _Meta->registerClass(domGl_pipeline_settings::domAlpha_func::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "func" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domAlpha_func,elemFunc) ); - mea->setElementType( domGl_pipeline_settings::domAlpha_func::domFunc::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "value" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domAlpha_func,elemValue) ); - mea->setElementType( domGl_pipeline_settings::domAlpha_func::domValue::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domAlpha_func)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domAlpha_func::domFunc::create(daeInt bytes) -{ - domGl_pipeline_settings::domAlpha_func::domFuncRef ref = new(bytes) domGl_pipeline_settings::domAlpha_func::domFunc; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domAlpha_func::domFunc::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "func" ); - _Meta->registerClass(domGl_pipeline_settings::domAlpha_func::domFunc::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_func_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAlpha_func::domFunc , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ALWAYS"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAlpha_func::domFunc , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domAlpha_func::domFunc)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domAlpha_func::domValue::create(daeInt bytes) -{ - domGl_pipeline_settings::domAlpha_func::domValueRef ref = new(bytes) domGl_pipeline_settings::domAlpha_func::domValue; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domAlpha_func::domValue::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "value" ); - _Meta->registerClass(domGl_pipeline_settings::domAlpha_func::domValue::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_alpha_value_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAlpha_func::domValue , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0.0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAlpha_func::domValue , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domAlpha_func::domValue)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_func::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_funcRef ref = new(bytes) domGl_pipeline_settings::domBlend_func; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_func::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "blend_func" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_func::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "src" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domBlend_func,elemSrc) ); - mea->setElementType( domGl_pipeline_settings::domBlend_func::domSrc::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "dest" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domBlend_func,elemDest) ); - mea->setElementType( domGl_pipeline_settings::domBlend_func::domDest::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_func::domSrc::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_func::domSrcRef ref = new(bytes) domGl_pipeline_settings::domBlend_func::domSrc; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_func::domSrc::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "src" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_func::domSrc::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_blend_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func::domSrc , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ONE"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func::domSrc , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func::domSrc)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_func::domDest::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_func::domDestRef ref = new(bytes) domGl_pipeline_settings::domBlend_func::domDest; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_func::domDest::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "dest" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_func::domDest::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_blend_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func::domDest , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ZERO"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func::domDest , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func::domDest)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_func_separate::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_func_separateRef ref = new(bytes) domGl_pipeline_settings::domBlend_func_separate; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_func_separate::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "blend_func_separate" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_func_separate::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "src_rgb" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domBlend_func_separate,elemSrc_rgb) ); - mea->setElementType( domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "dest_rgb" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domBlend_func_separate,elemDest_rgb) ); - mea->setElementType( domGl_pipeline_settings::domBlend_func_separate::domDest_rgb::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 1, 1 ); - mea->setName( "src_alpha" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domBlend_func_separate,elemSrc_alpha) ); - mea->setElementType( domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 1, 1 ); - mea->setName( "dest_alpha" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domBlend_func_separate,elemDest_alpha) ); - mea->setElementType( domGl_pipeline_settings::domBlend_func_separate::domDest_alpha::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func_separate)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_func_separate::domSrc_rgbRef ref = new(bytes) domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "src_rgb" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_blend_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ONE"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_func_separate::domDest_rgb::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_func_separate::domDest_rgbRef ref = new(bytes) domGl_pipeline_settings::domBlend_func_separate::domDest_rgb; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_func_separate::domDest_rgb::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "dest_rgb" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_func_separate::domDest_rgb::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_blend_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domDest_rgb , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ZERO"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domDest_rgb , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func_separate::domDest_rgb)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_func_separate::domSrc_alphaRef ref = new(bytes) domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "src_alpha" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_blend_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ONE"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_func_separate::domDest_alpha::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_func_separate::domDest_alphaRef ref = new(bytes) domGl_pipeline_settings::domBlend_func_separate::domDest_alpha; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_func_separate::domDest_alpha::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "dest_alpha" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_func_separate::domDest_alpha::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_blend_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domDest_alpha , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ZERO"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_func_separate::domDest_alpha , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_func_separate::domDest_alpha)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_equation::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_equationRef ref = new(bytes) domGl_pipeline_settings::domBlend_equation; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_equation::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "blend_equation" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_equation::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_blend_equation_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_equation , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "FUNC_ADD"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_equation , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_equation)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_equation_separate::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_equation_separateRef ref = new(bytes) domGl_pipeline_settings::domBlend_equation_separate; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_equation_separate::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "blend_equation_separate" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_equation_separate::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "rgb" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domBlend_equation_separate,elemRgb) ); - mea->setElementType( domGl_pipeline_settings::domBlend_equation_separate::domRgb::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "alpha" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domBlend_equation_separate,elemAlpha) ); - mea->setElementType( domGl_pipeline_settings::domBlend_equation_separate::domAlpha::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_equation_separate)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_equation_separate::domRgb::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_equation_separate::domRgbRef ref = new(bytes) domGl_pipeline_settings::domBlend_equation_separate::domRgb; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_equation_separate::domRgb::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "rgb" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_equation_separate::domRgb::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_blend_equation_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_equation_separate::domRgb , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "FUNC_ADD"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_equation_separate::domRgb , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_equation_separate::domRgb)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_equation_separate::domAlpha::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_equation_separate::domAlphaRef ref = new(bytes) domGl_pipeline_settings::domBlend_equation_separate::domAlpha; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_equation_separate::domAlpha::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "alpha" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_equation_separate::domAlpha::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_blend_equation_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_equation_separate::domAlpha , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "FUNC_ADD"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_equation_separate::domAlpha , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_equation_separate::domAlpha)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domColor_material::create(daeInt bytes) -{ - domGl_pipeline_settings::domColor_materialRef ref = new(bytes) domGl_pipeline_settings::domColor_material; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domColor_material::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "color_material" ); - _Meta->registerClass(domGl_pipeline_settings::domColor_material::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "face" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domColor_material,elemFace) ); - mea->setElementType( domGl_pipeline_settings::domColor_material::domFace::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "mode" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domColor_material,elemMode) ); - mea->setElementType( domGl_pipeline_settings::domColor_material::domMode::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domColor_material)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domColor_material::domFace::create(daeInt bytes) -{ - domGl_pipeline_settings::domColor_material::domFaceRef ref = new(bytes) domGl_pipeline_settings::domColor_material::domFace; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domColor_material::domFace::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "face" ); - _Meta->registerClass(domGl_pipeline_settings::domColor_material::domFace::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_face_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_material::domFace , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "FRONT_AND_BACK"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_material::domFace , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domColor_material::domFace)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domColor_material::domMode::create(daeInt bytes) -{ - domGl_pipeline_settings::domColor_material::domModeRef ref = new(bytes) domGl_pipeline_settings::domColor_material::domMode; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domColor_material::domMode::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mode" ); - _Meta->registerClass(domGl_pipeline_settings::domColor_material::domMode::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_material_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_material::domMode , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "AMBIENT_AND_DIFFUSE"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_material::domMode , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domColor_material::domMode)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domCull_face::create(daeInt bytes) -{ - domGl_pipeline_settings::domCull_faceRef ref = new(bytes) domGl_pipeline_settings::domCull_face; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domCull_face::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cull_face" ); - _Meta->registerClass(domGl_pipeline_settings::domCull_face::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_face_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domCull_face , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "BACK"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domCull_face , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domCull_face)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domDepth_func::create(daeInt bytes) -{ - domGl_pipeline_settings::domDepth_funcRef ref = new(bytes) domGl_pipeline_settings::domDepth_func; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domDepth_func::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "depth_func" ); - _Meta->registerClass(domGl_pipeline_settings::domDepth_func::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_func_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_func , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ALWAYS"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_func , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_func)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domFog_mode::create(daeInt bytes) -{ - domGl_pipeline_settings::domFog_modeRef ref = new(bytes) domGl_pipeline_settings::domFog_mode; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domFog_mode::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fog_mode" ); - _Meta->registerClass(domGl_pipeline_settings::domFog_mode::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_fog_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_mode , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "EXP"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_mode , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_mode)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domFog_coord_src::create(daeInt bytes) -{ - domGl_pipeline_settings::domFog_coord_srcRef ref = new(bytes) domGl_pipeline_settings::domFog_coord_src; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domFog_coord_src::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fog_coord_src" ); - _Meta->registerClass(domGl_pipeline_settings::domFog_coord_src::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_fog_coord_src_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_coord_src , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "FOG_COORDINATE"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_coord_src , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_coord_src)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domFront_face::create(daeInt bytes) -{ - domGl_pipeline_settings::domFront_faceRef ref = new(bytes) domGl_pipeline_settings::domFront_face; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domFront_face::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "front_face" ); - _Meta->registerClass(domGl_pipeline_settings::domFront_face::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_front_face_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFront_face , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "CCW"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFront_face , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFront_face)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_model_color_control::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_model_color_controlRef ref = new(bytes) domGl_pipeline_settings::domLight_model_color_control; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_model_color_control::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_model_color_control" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_model_color_control::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_light_model_color_control_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_color_control , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "SINGLE_COLOR"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_color_control , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_model_color_control)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLogic_op::create(daeInt bytes) -{ - domGl_pipeline_settings::domLogic_opRef ref = new(bytes) domGl_pipeline_settings::domLogic_op; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLogic_op::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "logic_op" ); - _Meta->registerClass(domGl_pipeline_settings::domLogic_op::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_logic_op_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLogic_op , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "COPY"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLogic_op , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLogic_op)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPolygon_mode::create(daeInt bytes) -{ - domGl_pipeline_settings::domPolygon_modeRef ref = new(bytes) domGl_pipeline_settings::domPolygon_mode; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPolygon_mode::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "polygon_mode" ); - _Meta->registerClass(domGl_pipeline_settings::domPolygon_mode::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "face" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domPolygon_mode,elemFace) ); - mea->setElementType( domGl_pipeline_settings::domPolygon_mode::domFace::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "mode" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domPolygon_mode,elemMode) ); - mea->setElementType( domGl_pipeline_settings::domPolygon_mode::domMode::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_mode)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPolygon_mode::domFace::create(daeInt bytes) -{ - domGl_pipeline_settings::domPolygon_mode::domFaceRef ref = new(bytes) domGl_pipeline_settings::domPolygon_mode::domFace; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPolygon_mode::domFace::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "face" ); - _Meta->registerClass(domGl_pipeline_settings::domPolygon_mode::domFace::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_face_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_mode::domFace , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "FRONT_AND_BACK"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_mode::domFace , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_mode::domFace)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPolygon_mode::domMode::create(daeInt bytes) -{ - domGl_pipeline_settings::domPolygon_mode::domModeRef ref = new(bytes) domGl_pipeline_settings::domPolygon_mode::domMode; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPolygon_mode::domMode::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mode" ); - _Meta->registerClass(domGl_pipeline_settings::domPolygon_mode::domMode::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_polygon_mode_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_mode::domMode , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "FILL"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_mode::domMode , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_mode::domMode)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domShade_model::create(daeInt bytes) -{ - domGl_pipeline_settings::domShade_modelRef ref = new(bytes) domGl_pipeline_settings::domShade_model; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domShade_model::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "shade_model" ); - _Meta->registerClass(domGl_pipeline_settings::domShade_model::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_shade_model_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domShade_model , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "SMOOTH"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domShade_model , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domShade_model)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_func::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_funcRef ref = new(bytes) domGl_pipeline_settings::domStencil_func; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_func::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "stencil_func" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_func::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "func" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_func,elemFunc) ); - mea->setElementType( domGl_pipeline_settings::domStencil_func::domFunc::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "ref" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_func,elemRef) ); - mea->setElementType( domGl_pipeline_settings::domStencil_func::domRef::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 1, 1 ); - mea->setName( "mask" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_func,elemMask) ); - mea->setElementType( domGl_pipeline_settings::domStencil_func::domMask::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_func::domFunc::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_func::domFuncRef ref = new(bytes) domGl_pipeline_settings::domStencil_func::domFunc; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_func::domFunc::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "func" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_func::domFunc::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_func_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func::domFunc , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ALWAYS"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func::domFunc , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func::domFunc)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_func::domRef::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_func::domRefRef ref = new(bytes) domGl_pipeline_settings::domStencil_func::domRef; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_func::domRef::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "ref" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_func::domRef::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("xsUnsignedByte")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func::domRef , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func::domRef , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func::domRef)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_func::domMask::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_func::domMaskRef ref = new(bytes) domGl_pipeline_settings::domStencil_func::domMask; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_func::domMask::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mask" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_func::domMask::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("xsUnsignedByte")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func::domMask , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "255"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func::domMask , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func::domMask)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_op::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_opRef ref = new(bytes) domGl_pipeline_settings::domStencil_op; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_op::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "stencil_op" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_op::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fail" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_op,elemFail) ); - mea->setElementType( domGl_pipeline_settings::domStencil_op::domFail::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "zfail" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_op,elemZfail) ); - mea->setElementType( domGl_pipeline_settings::domStencil_op::domZfail::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 1, 1 ); - mea->setName( "zpass" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_op,elemZpass) ); - mea->setElementType( domGl_pipeline_settings::domStencil_op::domZpass::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_op::domFail::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_op::domFailRef ref = new(bytes) domGl_pipeline_settings::domStencil_op::domFail; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_op::domFail::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fail" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_op::domFail::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_stencil_op_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op::domFail , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "KEEP"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op::domFail , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op::domFail)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_op::domZfail::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_op::domZfailRef ref = new(bytes) domGl_pipeline_settings::domStencil_op::domZfail; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_op::domZfail::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "zfail" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_op::domZfail::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_stencil_op_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op::domZfail , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "KEEP"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op::domZfail , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op::domZfail)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_op::domZpass::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_op::domZpassRef ref = new(bytes) domGl_pipeline_settings::domStencil_op::domZpass; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_op::domZpass::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "zpass" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_op::domZpass::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_stencil_op_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op::domZpass , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "KEEP"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op::domZpass , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op::domZpass)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_func_separate::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_func_separateRef ref = new(bytes) domGl_pipeline_settings::domStencil_func_separate; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_func_separate::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "stencil_func_separate" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_func_separate::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "front" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_func_separate,elemFront) ); - mea->setElementType( domGl_pipeline_settings::domStencil_func_separate::domFront::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "back" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_func_separate,elemBack) ); - mea->setElementType( domGl_pipeline_settings::domStencil_func_separate::domBack::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 1, 1 ); - mea->setName( "ref" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_func_separate,elemRef) ); - mea->setElementType( domGl_pipeline_settings::domStencil_func_separate::domRef::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 1, 1 ); - mea->setName( "mask" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_func_separate,elemMask) ); - mea->setElementType( domGl_pipeline_settings::domStencil_func_separate::domMask::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func_separate)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_func_separate::domFront::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_func_separate::domFrontRef ref = new(bytes) domGl_pipeline_settings::domStencil_func_separate::domFront; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_func_separate::domFront::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "front" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_func_separate::domFront::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_func_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domFront , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ALWAYS"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domFront , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func_separate::domFront)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_func_separate::domBack::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_func_separate::domBackRef ref = new(bytes) domGl_pipeline_settings::domStencil_func_separate::domBack; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_func_separate::domBack::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "back" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_func_separate::domBack::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_func_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domBack , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ALWAYS"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domBack , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func_separate::domBack)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_func_separate::domRef::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_func_separate::domRefRef ref = new(bytes) domGl_pipeline_settings::domStencil_func_separate::domRef; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_func_separate::domRef::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "ref" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_func_separate::domRef::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("xsUnsignedByte")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domRef , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domRef , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func_separate::domRef)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_func_separate::domMask::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_func_separate::domMaskRef ref = new(bytes) domGl_pipeline_settings::domStencil_func_separate::domMask; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_func_separate::domMask::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mask" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_func_separate::domMask::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("xsUnsignedByte")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domMask , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "255"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_func_separate::domMask , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_func_separate::domMask)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_op_separate::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_op_separateRef ref = new(bytes) domGl_pipeline_settings::domStencil_op_separate; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_op_separate::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "stencil_op_separate" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_op_separate::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "face" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_op_separate,elemFace) ); - mea->setElementType( domGl_pipeline_settings::domStencil_op_separate::domFace::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "fail" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_op_separate,elemFail) ); - mea->setElementType( domGl_pipeline_settings::domStencil_op_separate::domFail::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 1, 1 ); - mea->setName( "zfail" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_op_separate,elemZfail) ); - mea->setElementType( domGl_pipeline_settings::domStencil_op_separate::domZfail::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 1, 1 ); - mea->setName( "zpass" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_op_separate,elemZpass) ); - mea->setElementType( domGl_pipeline_settings::domStencil_op_separate::domZpass::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op_separate)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_op_separate::domFace::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_op_separate::domFaceRef ref = new(bytes) domGl_pipeline_settings::domStencil_op_separate::domFace; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_op_separate::domFace::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "face" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_op_separate::domFace::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_face_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domFace , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "FRONT_AND_BACK"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domFace , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op_separate::domFace)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_op_separate::domFail::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_op_separate::domFailRef ref = new(bytes) domGl_pipeline_settings::domStencil_op_separate::domFail; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_op_separate::domFail::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fail" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_op_separate::domFail::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_stencil_op_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domFail , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "KEEP"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domFail , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op_separate::domFail)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_op_separate::domZfail::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_op_separate::domZfailRef ref = new(bytes) domGl_pipeline_settings::domStencil_op_separate::domZfail; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_op_separate::domZfail::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "zfail" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_op_separate::domZfail::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_stencil_op_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domZfail , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "KEEP"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domZfail , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op_separate::domZfail)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_op_separate::domZpass::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_op_separate::domZpassRef ref = new(bytes) domGl_pipeline_settings::domStencil_op_separate::domZpass; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_op_separate::domZpass::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "zpass" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_op_separate::domZpass::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_stencil_op_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domZpass , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "KEEP"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_op_separate::domZpass , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_op_separate::domZpass)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_mask_separate::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_mask_separateRef ref = new(bytes) domGl_pipeline_settings::domStencil_mask_separate; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_mask_separate::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "stencil_mask_separate" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_mask_separate::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "face" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_mask_separate,elemFace) ); - mea->setElementType( domGl_pipeline_settings::domStencil_mask_separate::domFace::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "mask" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domStencil_mask_separate,elemMask) ); - mea->setElementType( domGl_pipeline_settings::domStencil_mask_separate::domMask::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_mask_separate)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_mask_separate::domFace::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_mask_separate::domFaceRef ref = new(bytes) domGl_pipeline_settings::domStencil_mask_separate::domFace; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_mask_separate::domFace::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "face" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_mask_separate::domFace::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_face_type")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_mask_separate::domFace , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "FRONT_AND_BACK"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_mask_separate::domFace , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_mask_separate::domFace)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_mask_separate::domMask::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_mask_separate::domMaskRef ref = new(bytes) domGl_pipeline_settings::domStencil_mask_separate::domMask; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_mask_separate::domMask::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mask" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_mask_separate::domMask::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("xsUnsignedByte")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_mask_separate::domMask , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "255"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_mask_separate::domMask , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_mask_separate::domMask)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_enableRef ref = new(bytes) domGl_pipeline_settings::domLight_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_enable , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_ambient::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_ambientRef ref = new(bytes) domGl_pipeline_settings::domLight_ambient; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_ambient::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_ambient" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_ambient::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_ambient , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_ambient , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_ambient , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_ambient)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_diffuse::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_diffuseRef ref = new(bytes) domGl_pipeline_settings::domLight_diffuse; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_diffuse::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_diffuse" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_diffuse::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_diffuse , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_diffuse , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_diffuse , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_diffuse)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_specular::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_specularRef ref = new(bytes) domGl_pipeline_settings::domLight_specular; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_specular::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_specular" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_specular::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_specular , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_specular , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_specular , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_specular)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_position::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_positionRef ref = new(bytes) domGl_pipeline_settings::domLight_position; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_position::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_position" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_position::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_position , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 1 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_position , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_position , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_position)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_constant_attenuation::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_constant_attenuationRef ref = new(bytes) domGl_pipeline_settings::domLight_constant_attenuation; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_constant_attenuation::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_constant_attenuation" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_constant_attenuation::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_constant_attenuation , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_constant_attenuation , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_constant_attenuation , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_constant_attenuation)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_linear_attenuation::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_linear_attenuationRef ref = new(bytes) domGl_pipeline_settings::domLight_linear_attenuation; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_linear_attenuation::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_linear_attenuation" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_linear_attenuation::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_linear_attenuation , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_linear_attenuation , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_linear_attenuation , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_linear_attenuation)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_quadratic_attenuation::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_quadratic_attenuationRef ref = new(bytes) domGl_pipeline_settings::domLight_quadratic_attenuation; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_quadratic_attenuation::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_quadratic_attenuation" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_quadratic_attenuation::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_quadratic_attenuation , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_quadratic_attenuation , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_quadratic_attenuation , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_quadratic_attenuation)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_spot_cutoff::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_spot_cutoffRef ref = new(bytes) domGl_pipeline_settings::domLight_spot_cutoff; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_spot_cutoff::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_spot_cutoff" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_spot_cutoff::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_cutoff , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "180"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_cutoff , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_cutoff , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_spot_cutoff)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_spot_direction::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_spot_directionRef ref = new(bytes) domGl_pipeline_settings::domLight_spot_direction; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_spot_direction::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_spot_direction" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_spot_direction::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_direction , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 -1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_direction , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_direction , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_spot_direction)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_spot_exponent::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_spot_exponentRef ref = new(bytes) domGl_pipeline_settings::domLight_spot_exponent; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_spot_exponent::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_spot_exponent" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_spot_exponent::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_exponent , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_exponent , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_spot_exponent , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_spot_exponent)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTexture1D::create(daeInt bytes) -{ - domGl_pipeline_settings::domTexture1DRef ref = new(bytes) domGl_pipeline_settings::domTexture1D; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTexture1D::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "texture1D" ); - _Meta->registerClass(domGl_pipeline_settings::domTexture1D::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "value" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domTexture1D,elemValue) ); - mea->setElementType( domGl_sampler1D::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "param" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domTexture1D,elemParam) ); - mea->setElementType( domGl_pipeline_settings::domTexture1D::domParam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGl_pipeline_settings::domTexture1D,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGl_pipeline_settings::domTexture1D,_contentsOrder)); - - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture1D , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture1D)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTexture1D::domParam::create(daeInt bytes) -{ - domGl_pipeline_settings::domTexture1D::domParamRef ref = new(bytes) domGl_pipeline_settings::domTexture1D::domParam; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTexture1D::domParam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "param" ); - _Meta->registerClass(domGl_pipeline_settings::domTexture1D::domParam::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture1D::domParam , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture1D::domParam)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTexture2D::create(daeInt bytes) -{ - domGl_pipeline_settings::domTexture2DRef ref = new(bytes) domGl_pipeline_settings::domTexture2D; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTexture2D::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "texture2D" ); - _Meta->registerClass(domGl_pipeline_settings::domTexture2D::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "value" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domTexture2D,elemValue) ); - mea->setElementType( domGl_sampler2D::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "param" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domTexture2D,elemParam) ); - mea->setElementType( domGl_pipeline_settings::domTexture2D::domParam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGl_pipeline_settings::domTexture2D,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGl_pipeline_settings::domTexture2D,_contentsOrder)); - - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture2D , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture2D)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTexture2D::domParam::create(daeInt bytes) -{ - domGl_pipeline_settings::domTexture2D::domParamRef ref = new(bytes) domGl_pipeline_settings::domTexture2D::domParam; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTexture2D::domParam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "param" ); - _Meta->registerClass(domGl_pipeline_settings::domTexture2D::domParam::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture2D::domParam , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture2D::domParam)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTexture3D::create(daeInt bytes) -{ - domGl_pipeline_settings::domTexture3DRef ref = new(bytes) domGl_pipeline_settings::domTexture3D; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTexture3D::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "texture3D" ); - _Meta->registerClass(domGl_pipeline_settings::domTexture3D::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "value" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domTexture3D,elemValue) ); - mea->setElementType( domGl_sampler3D::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "param" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domTexture3D,elemParam) ); - mea->setElementType( domGl_pipeline_settings::domTexture3D::domParam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGl_pipeline_settings::domTexture3D,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGl_pipeline_settings::domTexture3D,_contentsOrder)); - - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture3D , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture3D)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTexture3D::domParam::create(daeInt bytes) -{ - domGl_pipeline_settings::domTexture3D::domParamRef ref = new(bytes) domGl_pipeline_settings::domTexture3D::domParam; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTexture3D::domParam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "param" ); - _Meta->registerClass(domGl_pipeline_settings::domTexture3D::domParam::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture3D::domParam , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture3D::domParam)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTextureCUBE::create(daeInt bytes) -{ - domGl_pipeline_settings::domTextureCUBERef ref = new(bytes) domGl_pipeline_settings::domTextureCUBE; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTextureCUBE::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "textureCUBE" ); - _Meta->registerClass(domGl_pipeline_settings::domTextureCUBE::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "value" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domTextureCUBE,elemValue) ); - mea->setElementType( domGl_samplerCUBE::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "param" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domTextureCUBE,elemParam) ); - mea->setElementType( domGl_pipeline_settings::domTextureCUBE::domParam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGl_pipeline_settings::domTextureCUBE,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGl_pipeline_settings::domTextureCUBE,_contentsOrder)); - - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureCUBE , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureCUBE)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTextureCUBE::domParam::create(daeInt bytes) -{ - domGl_pipeline_settings::domTextureCUBE::domParamRef ref = new(bytes) domGl_pipeline_settings::domTextureCUBE::domParam; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTextureCUBE::domParam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "param" ); - _Meta->registerClass(domGl_pipeline_settings::domTextureCUBE::domParam::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureCUBE::domParam , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureCUBE::domParam)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTextureRECT::create(daeInt bytes) -{ - domGl_pipeline_settings::domTextureRECTRef ref = new(bytes) domGl_pipeline_settings::domTextureRECT; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTextureRECT::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "textureRECT" ); - _Meta->registerClass(domGl_pipeline_settings::domTextureRECT::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "value" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domTextureRECT,elemValue) ); - mea->setElementType( domGl_samplerRECT::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "param" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domTextureRECT,elemParam) ); - mea->setElementType( domGl_pipeline_settings::domTextureRECT::domParam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGl_pipeline_settings::domTextureRECT,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGl_pipeline_settings::domTextureRECT,_contentsOrder)); - - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureRECT , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureRECT)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTextureRECT::domParam::create(daeInt bytes) -{ - domGl_pipeline_settings::domTextureRECT::domParamRef ref = new(bytes) domGl_pipeline_settings::domTextureRECT::domParam; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTextureRECT::domParam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "param" ); - _Meta->registerClass(domGl_pipeline_settings::domTextureRECT::domParam::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureRECT::domParam , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureRECT::domParam)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTextureDEPTH::create(daeInt bytes) -{ - domGl_pipeline_settings::domTextureDEPTHRef ref = new(bytes) domGl_pipeline_settings::domTextureDEPTH; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTextureDEPTH::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "textureDEPTH" ); - _Meta->registerClass(domGl_pipeline_settings::domTextureDEPTH::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "value" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domTextureDEPTH,elemValue) ); - mea->setElementType( domGl_samplerDEPTH::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "param" ); - mea->setOffset( daeOffsetOf(domGl_pipeline_settings::domTextureDEPTH,elemParam) ); - mea->setElementType( domGl_pipeline_settings::domTextureDEPTH::domParam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGl_pipeline_settings::domTextureDEPTH,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGl_pipeline_settings::domTextureDEPTH,_contentsOrder)); - - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureDEPTH , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureDEPTH)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTextureDEPTH::domParam::create(daeInt bytes) -{ - domGl_pipeline_settings::domTextureDEPTH::domParamRef ref = new(bytes) domGl_pipeline_settings::domTextureDEPTH::domParam; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTextureDEPTH::domParam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "param" ); - _Meta->registerClass(domGl_pipeline_settings::domTextureDEPTH::domParam::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureDEPTH::domParam , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureDEPTH::domParam)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTexture1D_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domTexture1D_enableRef ref = new(bytes) domGl_pipeline_settings::domTexture1D_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTexture1D_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "texture1D_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domTexture1D_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture1D_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture1D_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture1D_enable , attrIndex )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture1D_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTexture2D_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domTexture2D_enableRef ref = new(bytes) domGl_pipeline_settings::domTexture2D_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTexture2D_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "texture2D_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domTexture2D_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture2D_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture2D_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture2D_enable , attrIndex )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture2D_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTexture3D_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domTexture3D_enableRef ref = new(bytes) domGl_pipeline_settings::domTexture3D_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTexture3D_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "texture3D_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domTexture3D_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture3D_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture3D_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture3D_enable , attrIndex )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture3D_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTextureCUBE_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domTextureCUBE_enableRef ref = new(bytes) domGl_pipeline_settings::domTextureCUBE_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTextureCUBE_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "textureCUBE_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domTextureCUBE_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureCUBE_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureCUBE_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureCUBE_enable , attrIndex )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureCUBE_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTextureRECT_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domTextureRECT_enableRef ref = new(bytes) domGl_pipeline_settings::domTextureRECT_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTextureRECT_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "textureRECT_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domTextureRECT_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureRECT_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureRECT_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureRECT_enable , attrIndex )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureRECT_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTextureDEPTH_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domTextureDEPTH_enableRef ref = new(bytes) domGl_pipeline_settings::domTextureDEPTH_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTextureDEPTH_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "textureDEPTH_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domTextureDEPTH_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureDEPTH_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureDEPTH_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTextureDEPTH_enable , attrIndex )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTextureDEPTH_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTexture_env_color::create(daeInt bytes) -{ - domGl_pipeline_settings::domTexture_env_colorRef ref = new(bytes) domGl_pipeline_settings::domTexture_env_color; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTexture_env_color::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "texture_env_color" ); - _Meta->registerClass(domGl_pipeline_settings::domTexture_env_color::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture_env_color , attrValue )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture_env_color , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture_env_color , attrIndex )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture_env_color)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domTexture_env_mode::create(daeInt bytes) -{ - domGl_pipeline_settings::domTexture_env_modeRef ref = new(bytes) domGl_pipeline_settings::domTexture_env_mode; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domTexture_env_mode::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "texture_env_mode" ); - _Meta->registerClass(domGl_pipeline_settings::domTexture_env_mode::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("String")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture_env_mode , attrValue )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture_env_mode , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_TEXTURE_IMAGE_UNITS_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domTexture_env_mode , attrIndex )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domTexture_env_mode)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domClip_plane::create(daeInt bytes) -{ - domGl_pipeline_settings::domClip_planeRef ref = new(bytes) domGl_pipeline_settings::domClip_plane; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domClip_plane::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "clip_plane" ); - _Meta->registerClass(domGl_pipeline_settings::domClip_plane::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClip_plane , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClip_plane , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_CLIP_PLANES_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClip_plane , attrIndex )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domClip_plane)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domClip_plane_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domClip_plane_enableRef ref = new(bytes) domGl_pipeline_settings::domClip_plane_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domClip_plane_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "clip_plane_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domClip_plane_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClip_plane_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClip_plane_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GL_MAX_CLIP_PLANES_index")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClip_plane_enable , attrIndex )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domClip_plane_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_color::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_colorRef ref = new(bytes) domGl_pipeline_settings::domBlend_color; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_color::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "blend_color" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_color::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_color , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_color , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_color)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domClear_color::create(daeInt bytes) -{ - domGl_pipeline_settings::domClear_colorRef ref = new(bytes) domGl_pipeline_settings::domClear_color; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domClear_color::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "clear_color" ); - _Meta->registerClass(domGl_pipeline_settings::domClear_color::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClear_color , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClear_color , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domClear_color)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domClear_stencil::create(daeInt bytes) -{ - domGl_pipeline_settings::domClear_stencilRef ref = new(bytes) domGl_pipeline_settings::domClear_stencil; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domClear_stencil::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "clear_stencil" ); - _Meta->registerClass(domGl_pipeline_settings::domClear_stencil::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Int")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClear_stencil , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClear_stencil , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domClear_stencil)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domClear_depth::create(daeInt bytes) -{ - domGl_pipeline_settings::domClear_depthRef ref = new(bytes) domGl_pipeline_settings::domClear_depth; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domClear_depth::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "clear_depth" ); - _Meta->registerClass(domGl_pipeline_settings::domClear_depth::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClear_depth , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domClear_depth , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domClear_depth)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domColor_mask::create(daeInt bytes) -{ - domGl_pipeline_settings::domColor_maskRef ref = new(bytes) domGl_pipeline_settings::domColor_mask; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domColor_mask::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "color_mask" ); - _Meta->registerClass(domGl_pipeline_settings::domColor_mask::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_mask , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "true true true true"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_mask , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domColor_mask)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domDepth_bounds::create(daeInt bytes) -{ - domGl_pipeline_settings::domDepth_boundsRef ref = new(bytes) domGl_pipeline_settings::domDepth_bounds; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domDepth_bounds::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "depth_bounds" ); - _Meta->registerClass(domGl_pipeline_settings::domDepth_bounds::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_bounds , attrValue )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_bounds , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_bounds)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domDepth_mask::create(daeInt bytes) -{ - domGl_pipeline_settings::domDepth_maskRef ref = new(bytes) domGl_pipeline_settings::domDepth_mask; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domDepth_mask::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "depth_mask" ); - _Meta->registerClass(domGl_pipeline_settings::domDepth_mask::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_mask , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "true"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_mask , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_mask)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domDepth_range::create(daeInt bytes) -{ - domGl_pipeline_settings::domDepth_rangeRef ref = new(bytes) domGl_pipeline_settings::domDepth_range; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domDepth_range::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "depth_range" ); - _Meta->registerClass(domGl_pipeline_settings::domDepth_range::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_range , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_range , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_range)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domFog_density::create(daeInt bytes) -{ - domGl_pipeline_settings::domFog_densityRef ref = new(bytes) domGl_pipeline_settings::domFog_density; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domFog_density::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fog_density" ); - _Meta->registerClass(domGl_pipeline_settings::domFog_density::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_density , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_density , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_density)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domFog_start::create(daeInt bytes) -{ - domGl_pipeline_settings::domFog_startRef ref = new(bytes) domGl_pipeline_settings::domFog_start; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domFog_start::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fog_start" ); - _Meta->registerClass(domGl_pipeline_settings::domFog_start::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_start , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_start , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_start)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domFog_end::create(daeInt bytes) -{ - domGl_pipeline_settings::domFog_endRef ref = new(bytes) domGl_pipeline_settings::domFog_end; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domFog_end::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fog_end" ); - _Meta->registerClass(domGl_pipeline_settings::domFog_end::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_end , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_end , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_end)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domFog_color::create(daeInt bytes) -{ - domGl_pipeline_settings::domFog_colorRef ref = new(bytes) domGl_pipeline_settings::domFog_color; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domFog_color::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fog_color" ); - _Meta->registerClass(domGl_pipeline_settings::domFog_color::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_color , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_color , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_color)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_model_ambient::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_model_ambientRef ref = new(bytes) domGl_pipeline_settings::domLight_model_ambient; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_model_ambient::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_model_ambient" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_model_ambient::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_ambient , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0.2 0.2 0.2 1.0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_ambient , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_model_ambient)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLighting_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domLighting_enableRef ref = new(bytes) domGl_pipeline_settings::domLighting_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLighting_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "lighting_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domLighting_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLighting_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLighting_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLighting_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLine_stipple::create(daeInt bytes) -{ - domGl_pipeline_settings::domLine_stippleRef ref = new(bytes) domGl_pipeline_settings::domLine_stipple; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLine_stipple::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "line_stipple" ); - _Meta->registerClass(domGl_pipeline_settings::domLine_stipple::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Int2")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_stipple , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1 65536"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_stipple , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLine_stipple)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLine_width::create(daeInt bytes) -{ - domGl_pipeline_settings::domLine_widthRef ref = new(bytes) domGl_pipeline_settings::domLine_width; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLine_width::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "line_width" ); - _Meta->registerClass(domGl_pipeline_settings::domLine_width::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_width , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_width , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLine_width)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domMaterial_ambient::create(daeInt bytes) -{ - domGl_pipeline_settings::domMaterial_ambientRef ref = new(bytes) domGl_pipeline_settings::domMaterial_ambient; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domMaterial_ambient::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "material_ambient" ); - _Meta->registerClass(domGl_pipeline_settings::domMaterial_ambient::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_ambient , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0.2 0.2 0.2 1.0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_ambient , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domMaterial_ambient)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domMaterial_diffuse::create(daeInt bytes) -{ - domGl_pipeline_settings::domMaterial_diffuseRef ref = new(bytes) domGl_pipeline_settings::domMaterial_diffuse; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domMaterial_diffuse::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "material_diffuse" ); - _Meta->registerClass(domGl_pipeline_settings::domMaterial_diffuse::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_diffuse , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0.8 0.8 0.8 1.0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_diffuse , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domMaterial_diffuse)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domMaterial_emission::create(daeInt bytes) -{ - domGl_pipeline_settings::domMaterial_emissionRef ref = new(bytes) domGl_pipeline_settings::domMaterial_emission; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domMaterial_emission::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "material_emission" ); - _Meta->registerClass(domGl_pipeline_settings::domMaterial_emission::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_emission , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_emission , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domMaterial_emission)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domMaterial_shininess::create(daeInt bytes) -{ - domGl_pipeline_settings::domMaterial_shininessRef ref = new(bytes) domGl_pipeline_settings::domMaterial_shininess; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domMaterial_shininess::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "material_shininess" ); - _Meta->registerClass(domGl_pipeline_settings::domMaterial_shininess::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_shininess , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_shininess , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domMaterial_shininess)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domMaterial_specular::create(daeInt bytes) -{ - domGl_pipeline_settings::domMaterial_specularRef ref = new(bytes) domGl_pipeline_settings::domMaterial_specular; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domMaterial_specular::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "material_specular" ); - _Meta->registerClass(domGl_pipeline_settings::domMaterial_specular::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_specular , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMaterial_specular , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domMaterial_specular)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domModel_view_matrix::create(daeInt bytes) -{ - domGl_pipeline_settings::domModel_view_matrixRef ref = new(bytes) domGl_pipeline_settings::domModel_view_matrix; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domModel_view_matrix::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "model_view_matrix" ); - _Meta->registerClass(domGl_pipeline_settings::domModel_view_matrix::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4x4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domModel_view_matrix , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domModel_view_matrix , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domModel_view_matrix)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPoint_distance_attenuation::create(daeInt bytes) -{ - domGl_pipeline_settings::domPoint_distance_attenuationRef ref = new(bytes) domGl_pipeline_settings::domPoint_distance_attenuation; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPoint_distance_attenuation::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "point_distance_attenuation" ); - _Meta->registerClass(domGl_pipeline_settings::domPoint_distance_attenuation::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_distance_attenuation , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1 0 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_distance_attenuation , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPoint_distance_attenuation)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPoint_fade_threshold_size::create(daeInt bytes) -{ - domGl_pipeline_settings::domPoint_fade_threshold_sizeRef ref = new(bytes) domGl_pipeline_settings::domPoint_fade_threshold_size; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPoint_fade_threshold_size::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "point_fade_threshold_size" ); - _Meta->registerClass(domGl_pipeline_settings::domPoint_fade_threshold_size::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_fade_threshold_size , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_fade_threshold_size , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPoint_fade_threshold_size)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPoint_size::create(daeInt bytes) -{ - domGl_pipeline_settings::domPoint_sizeRef ref = new(bytes) domGl_pipeline_settings::domPoint_size; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPoint_size::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "point_size" ); - _Meta->registerClass(domGl_pipeline_settings::domPoint_size::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_size , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_size , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPoint_size)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPoint_size_min::create(daeInt bytes) -{ - domGl_pipeline_settings::domPoint_size_minRef ref = new(bytes) domGl_pipeline_settings::domPoint_size_min; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPoint_size_min::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "point_size_min" ); - _Meta->registerClass(domGl_pipeline_settings::domPoint_size_min::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_size_min , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_size_min , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPoint_size_min)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPoint_size_max::create(daeInt bytes) -{ - domGl_pipeline_settings::domPoint_size_maxRef ref = new(bytes) domGl_pipeline_settings::domPoint_size_max; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPoint_size_max::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "point_size_max" ); - _Meta->registerClass(domGl_pipeline_settings::domPoint_size_max::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_size_max , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_size_max , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPoint_size_max)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPolygon_offset::create(daeInt bytes) -{ - domGl_pipeline_settings::domPolygon_offsetRef ref = new(bytes) domGl_pipeline_settings::domPolygon_offset; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPolygon_offset::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "polygon_offset" ); - _Meta->registerClass(domGl_pipeline_settings::domPolygon_offset::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_offset)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domProjection_matrix::create(daeInt bytes) -{ - domGl_pipeline_settings::domProjection_matrixRef ref = new(bytes) domGl_pipeline_settings::domProjection_matrix; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domProjection_matrix::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "projection_matrix" ); - _Meta->registerClass(domGl_pipeline_settings::domProjection_matrix::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4x4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domProjection_matrix , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domProjection_matrix , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domProjection_matrix)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domScissor::create(daeInt bytes) -{ - domGl_pipeline_settings::domScissorRef ref = new(bytes) domGl_pipeline_settings::domScissor; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domScissor::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "scissor" ); - _Meta->registerClass(domGl_pipeline_settings::domScissor::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Int4")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domScissor , attrValue )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domScissor , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domScissor)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_mask::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_maskRef ref = new(bytes) domGl_pipeline_settings::domStencil_mask; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_mask::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "stencil_mask" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_mask::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Int")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_mask , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "4294967295"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_mask , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_mask)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domAlpha_test_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domAlpha_test_enableRef ref = new(bytes) domGl_pipeline_settings::domAlpha_test_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domAlpha_test_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "alpha_test_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domAlpha_test_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAlpha_test_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAlpha_test_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domAlpha_test_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domAuto_normal_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domAuto_normal_enableRef ref = new(bytes) domGl_pipeline_settings::domAuto_normal_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domAuto_normal_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "auto_normal_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domAuto_normal_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAuto_normal_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domAuto_normal_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domAuto_normal_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domBlend_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domBlend_enableRef ref = new(bytes) domGl_pipeline_settings::domBlend_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domBlend_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "blend_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domBlend_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domBlend_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domBlend_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domColor_logic_op_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domColor_logic_op_enableRef ref = new(bytes) domGl_pipeline_settings::domColor_logic_op_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domColor_logic_op_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "color_logic_op_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domColor_logic_op_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_logic_op_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_logic_op_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domColor_logic_op_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domColor_material_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domColor_material_enableRef ref = new(bytes) domGl_pipeline_settings::domColor_material_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domColor_material_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "color_material_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domColor_material_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_material_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "true"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domColor_material_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domColor_material_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domCull_face_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domCull_face_enableRef ref = new(bytes) domGl_pipeline_settings::domCull_face_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domCull_face_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cull_face_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domCull_face_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domCull_face_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domCull_face_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domCull_face_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domDepth_bounds_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domDepth_bounds_enableRef ref = new(bytes) domGl_pipeline_settings::domDepth_bounds_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domDepth_bounds_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "depth_bounds_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domDepth_bounds_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_bounds_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_bounds_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_bounds_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domDepth_clamp_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domDepth_clamp_enableRef ref = new(bytes) domGl_pipeline_settings::domDepth_clamp_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domDepth_clamp_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "depth_clamp_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domDepth_clamp_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_clamp_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_clamp_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_clamp_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domDepth_test_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domDepth_test_enableRef ref = new(bytes) domGl_pipeline_settings::domDepth_test_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domDepth_test_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "depth_test_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domDepth_test_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_test_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDepth_test_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDepth_test_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domDither_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domDither_enableRef ref = new(bytes) domGl_pipeline_settings::domDither_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domDither_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "dither_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domDither_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDither_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "true"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domDither_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domDither_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domFog_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domFog_enableRef ref = new(bytes) domGl_pipeline_settings::domFog_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domFog_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fog_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domFog_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domFog_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domFog_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_model_local_viewer_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_model_local_viewer_enableRef ref = new(bytes) domGl_pipeline_settings::domLight_model_local_viewer_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_model_local_viewer_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_model_local_viewer_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_model_local_viewer_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_local_viewer_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_local_viewer_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_model_local_viewer_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLight_model_two_side_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domLight_model_two_side_enableRef ref = new(bytes) domGl_pipeline_settings::domLight_model_two_side_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLight_model_two_side_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_model_two_side_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domLight_model_two_side_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_two_side_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLight_model_two_side_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLight_model_two_side_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLine_smooth_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domLine_smooth_enableRef ref = new(bytes) domGl_pipeline_settings::domLine_smooth_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLine_smooth_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "line_smooth_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domLine_smooth_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_smooth_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_smooth_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLine_smooth_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLine_stipple_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domLine_stipple_enableRef ref = new(bytes) domGl_pipeline_settings::domLine_stipple_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLine_stipple_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "line_stipple_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domLine_stipple_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_stipple_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLine_stipple_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLine_stipple_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domLogic_op_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domLogic_op_enableRef ref = new(bytes) domGl_pipeline_settings::domLogic_op_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domLogic_op_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "logic_op_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domLogic_op_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLogic_op_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domLogic_op_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domLogic_op_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domMultisample_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domMultisample_enableRef ref = new(bytes) domGl_pipeline_settings::domMultisample_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domMultisample_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "multisample_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domMultisample_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMultisample_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domMultisample_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domMultisample_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domNormalize_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domNormalize_enableRef ref = new(bytes) domGl_pipeline_settings::domNormalize_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domNormalize_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "normalize_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domNormalize_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domNormalize_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domNormalize_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domNormalize_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPoint_smooth_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domPoint_smooth_enableRef ref = new(bytes) domGl_pipeline_settings::domPoint_smooth_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPoint_smooth_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "point_smooth_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domPoint_smooth_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_smooth_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPoint_smooth_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPoint_smooth_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPolygon_offset_fill_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domPolygon_offset_fill_enableRef ref = new(bytes) domGl_pipeline_settings::domPolygon_offset_fill_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPolygon_offset_fill_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "polygon_offset_fill_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domPolygon_offset_fill_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset_fill_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset_fill_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_offset_fill_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPolygon_offset_line_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domPolygon_offset_line_enableRef ref = new(bytes) domGl_pipeline_settings::domPolygon_offset_line_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPolygon_offset_line_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "polygon_offset_line_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domPolygon_offset_line_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset_line_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset_line_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_offset_line_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPolygon_offset_point_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domPolygon_offset_point_enableRef ref = new(bytes) domGl_pipeline_settings::domPolygon_offset_point_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPolygon_offset_point_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "polygon_offset_point_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domPolygon_offset_point_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset_point_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_offset_point_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_offset_point_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPolygon_smooth_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domPolygon_smooth_enableRef ref = new(bytes) domGl_pipeline_settings::domPolygon_smooth_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPolygon_smooth_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "polygon_smooth_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domPolygon_smooth_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_smooth_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_smooth_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_smooth_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domPolygon_stipple_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domPolygon_stipple_enableRef ref = new(bytes) domGl_pipeline_settings::domPolygon_stipple_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domPolygon_stipple_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "polygon_stipple_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domPolygon_stipple_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_stipple_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domPolygon_stipple_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domPolygon_stipple_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domRescale_normal_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domRescale_normal_enableRef ref = new(bytes) domGl_pipeline_settings::domRescale_normal_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domRescale_normal_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "rescale_normal_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domRescale_normal_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domRescale_normal_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domRescale_normal_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domRescale_normal_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domSample_alpha_to_coverage_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domSample_alpha_to_coverage_enableRef ref = new(bytes) domGl_pipeline_settings::domSample_alpha_to_coverage_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domSample_alpha_to_coverage_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "sample_alpha_to_coverage_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domSample_alpha_to_coverage_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domSample_alpha_to_coverage_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domSample_alpha_to_coverage_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domSample_alpha_to_coverage_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domSample_alpha_to_one_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domSample_alpha_to_one_enableRef ref = new(bytes) domGl_pipeline_settings::domSample_alpha_to_one_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domSample_alpha_to_one_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "sample_alpha_to_one_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domSample_alpha_to_one_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domSample_alpha_to_one_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domSample_alpha_to_one_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domSample_alpha_to_one_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domSample_coverage_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domSample_coverage_enableRef ref = new(bytes) domGl_pipeline_settings::domSample_coverage_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domSample_coverage_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "sample_coverage_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domSample_coverage_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domSample_coverage_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domSample_coverage_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domSample_coverage_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domScissor_test_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domScissor_test_enableRef ref = new(bytes) domGl_pipeline_settings::domScissor_test_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domScissor_test_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "scissor_test_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domScissor_test_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domScissor_test_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domScissor_test_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domScissor_test_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGl_pipeline_settings::domStencil_test_enable::create(daeInt bytes) -{ - domGl_pipeline_settings::domStencil_test_enableRef ref = new(bytes) domGl_pipeline_settings::domStencil_test_enable; - return ref; -} - - -daeMetaElement * -domGl_pipeline_settings::domStencil_test_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "stencil_test_enable" ); - _Meta->registerClass(domGl_pipeline_settings::domStencil_test_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_test_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGl_pipeline_settings::domStencil_test_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGl_pipeline_settings::domStencil_test_enable)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGl_pipeline_settings::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domAlpha_func::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domAlpha_func::domFunc::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domAlpha_func::domValue::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_func::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_func::domSrc::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_func::domDest::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_func_separate::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_func_separate::domSrc_rgb::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_func_separate::domDest_rgb::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_func_separate::domSrc_alpha::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_func_separate::domDest_alpha::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_equation::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_equation_separate::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_equation_separate::domRgb::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_equation_separate::domAlpha::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domColor_material::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domColor_material::domFace::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domColor_material::domMode::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domCull_face::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domDepth_func::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domFog_mode::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domFog_coord_src::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domFront_face::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_model_color_control::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLogic_op::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPolygon_mode::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPolygon_mode::domFace::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPolygon_mode::domMode::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domShade_model::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_func::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_func::domFunc::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_func::domRef::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_func::domMask::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_op::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_op::domFail::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_op::domZfail::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_op::domZpass::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_func_separate::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_func_separate::domFront::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_func_separate::domBack::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_func_separate::domRef::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_func_separate::domMask::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_op_separate::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_op_separate::domFace::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_op_separate::domFail::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_op_separate::domZfail::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_op_separate::domZpass::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_mask_separate::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_mask_separate::domFace::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_mask_separate::domMask::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_ambient::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_diffuse::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_specular::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_position::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_constant_attenuation::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_linear_attenuation::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_quadratic_attenuation::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_spot_cutoff::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_spot_direction::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_spot_exponent::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTexture1D::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTexture1D::domParam::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTexture2D::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTexture2D::domParam::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTexture3D::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTexture3D::domParam::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTextureCUBE::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTextureCUBE::domParam::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTextureRECT::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTextureRECT::domParam::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTextureDEPTH::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTextureDEPTH::domParam::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTexture1D_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTexture2D_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTexture3D_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTextureCUBE_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTextureRECT_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTextureDEPTH_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTexture_env_color::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domTexture_env_mode::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domClip_plane::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domClip_plane_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_color::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domClear_color::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domClear_stencil::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domClear_depth::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domColor_mask::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domDepth_bounds::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domDepth_mask::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domDepth_range::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domFog_density::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domFog_start::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domFog_end::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domFog_color::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_model_ambient::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLighting_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLine_stipple::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLine_width::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domMaterial_ambient::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domMaterial_diffuse::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domMaterial_emission::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domMaterial_shininess::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domMaterial_specular::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domModel_view_matrix::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPoint_distance_attenuation::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPoint_fade_threshold_size::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPoint_size::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPoint_size_min::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPoint_size_max::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPolygon_offset::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domProjection_matrix::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domScissor::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_mask::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domAlpha_test_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domAuto_normal_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domBlend_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domColor_logic_op_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domColor_material_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domCull_face_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domDepth_bounds_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domDepth_clamp_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domDepth_test_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domDither_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domFog_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_model_local_viewer_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLight_model_two_side_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLine_smooth_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLine_stipple_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domLogic_op_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domMultisample_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domNormalize_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPoint_smooth_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPolygon_offset_fill_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPolygon_offset_line_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPolygon_offset_point_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPolygon_smooth_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domPolygon_stipple_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domRescale_normal_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domSample_alpha_to_coverage_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domSample_alpha_to_one_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domSample_coverage_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domScissor_test_enable::_Meta = NULL; -daeMetaElement * domGl_pipeline_settings::domStencil_test_enable::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler1D.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler1D.cpp deleted file mode 100644 index 3751a6b69..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler1D.cpp +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGl_sampler1D::create(daeInt bytes) -{ - domGl_sampler1DRef ref = new(bytes) domGl_sampler1D; - return ref; -} - - -daeMetaElement * -domGl_sampler1D::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gl_sampler1D" ); - _Meta->registerClass(domGl_sampler1D::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domGl_sampler1D,elemSource) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domGl_sampler1D,elemWrap_s) ); - mea->setElementType( domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domGl_sampler1D,elemMinfilter) ); - mea->setElementType( domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domGl_sampler1D,elemMagfilter) ); - mea->setElementType( domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domGl_sampler1D,elemMipfilter) ); - mea->setElementType( domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domGl_sampler1D,elemBorder_color) ); - mea->setElementType( domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domGl_sampler1D,elemMipmap_maxlevel) ); - mea->setElementType( domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domGl_sampler1D,elemMipmap_bias) ); - mea->setElementType( domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 8, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domGl_sampler1D,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 8 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 8 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_sampler1D)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGl_sampler1D::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler2D.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler2D.cpp deleted file mode 100644 index b622403b1..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler2D.cpp +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGl_sampler2D::create(daeInt bytes) -{ - domGl_sampler2DRef ref = new(bytes) domGl_sampler2D; - return ref; -} - - -daeMetaElement * -domGl_sampler2D::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gl_sampler2D" ); - _Meta->registerClass(domGl_sampler2D::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domGl_sampler2D,elemSource) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domGl_sampler2D,elemWrap_s) ); - mea->setElementType( domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domGl_sampler2D,elemWrap_t) ); - mea->setElementType( domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domGl_sampler2D,elemMinfilter) ); - mea->setElementType( domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domGl_sampler2D,elemMagfilter) ); - mea->setElementType( domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domGl_sampler2D,elemMipfilter) ); - mea->setElementType( domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domGl_sampler2D,elemBorder_color) ); - mea->setElementType( domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domGl_sampler2D,elemMipmap_maxlevel) ); - mea->setElementType( domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domGl_sampler2D,elemMipmap_bias) ); - mea->setElementType( domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 9, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domGl_sampler2D,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 9 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 9 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_sampler2D)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGl_sampler2D::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler3D.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler3D.cpp deleted file mode 100644 index 47b98f0a7..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGl_sampler3D.cpp +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGl_sampler3D::create(daeInt bytes) -{ - domGl_sampler3DRef ref = new(bytes) domGl_sampler3D; - return ref; -} - - -daeMetaElement * -domGl_sampler3D::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gl_sampler3D" ); - _Meta->registerClass(domGl_sampler3D::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domGl_sampler3D,elemSource) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domGl_sampler3D,elemWrap_s) ); - mea->setElementType( domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domGl_sampler3D,elemWrap_t) ); - mea->setElementType( domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "wrap_p" ); - mea->setOffset( daeOffsetOf(domGl_sampler3D,elemWrap_p) ); - mea->setElementType( domWrap_p::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domGl_sampler3D,elemMinfilter) ); - mea->setElementType( domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domGl_sampler3D,elemMagfilter) ); - mea->setElementType( domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domGl_sampler3D,elemMipfilter) ); - mea->setElementType( domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domGl_sampler3D,elemBorder_color) ); - mea->setElementType( domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domGl_sampler3D,elemMipmap_maxlevel) ); - mea->setElementType( domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 9, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domGl_sampler3D,elemMipmap_bias) ); - mea->setElementType( domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 10, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domGl_sampler3D,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 10 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 10 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_sampler3D)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGl_sampler3D::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerCUBE.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerCUBE.cpp deleted file mode 100644 index dc0bf3590..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerCUBE.cpp +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGl_samplerCUBE::create(daeInt bytes) -{ - domGl_samplerCUBERef ref = new(bytes) domGl_samplerCUBE; - return ref; -} - - -daeMetaElement * -domGl_samplerCUBE::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gl_samplerCUBE" ); - _Meta->registerClass(domGl_samplerCUBE::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domGl_samplerCUBE,elemSource) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domGl_samplerCUBE,elemWrap_s) ); - mea->setElementType( domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domGl_samplerCUBE,elemWrap_t) ); - mea->setElementType( domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "wrap_p" ); - mea->setOffset( daeOffsetOf(domGl_samplerCUBE,elemWrap_p) ); - mea->setElementType( domWrap_p::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domGl_samplerCUBE,elemMinfilter) ); - mea->setElementType( domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domGl_samplerCUBE,elemMagfilter) ); - mea->setElementType( domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domGl_samplerCUBE,elemMipfilter) ); - mea->setElementType( domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domGl_samplerCUBE,elemBorder_color) ); - mea->setElementType( domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domGl_samplerCUBE,elemMipmap_maxlevel) ); - mea->setElementType( domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 9, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domGl_samplerCUBE,elemMipmap_bias) ); - mea->setElementType( domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 10, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domGl_samplerCUBE,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 10 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 10 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_samplerCUBE)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGl_samplerCUBE::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerDEPTH.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerDEPTH.cpp deleted file mode 100644 index 92d65d892..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerDEPTH.cpp +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGl_samplerDEPTH::create(daeInt bytes) -{ - domGl_samplerDEPTHRef ref = new(bytes) domGl_samplerDEPTH; - return ref; -} - - -daeMetaElement * -domGl_samplerDEPTH::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gl_samplerDEPTH" ); - _Meta->registerClass(domGl_samplerDEPTH::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domGl_samplerDEPTH,elemSource) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domGl_samplerDEPTH,elemWrap_s) ); - mea->setElementType( domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domGl_samplerDEPTH,elemWrap_t) ); - mea->setElementType( domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domGl_samplerDEPTH,elemMinfilter) ); - mea->setElementType( domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domGl_samplerDEPTH,elemMagfilter) ); - mea->setElementType( domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 5, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domGl_samplerDEPTH,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 5 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 5 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_samplerDEPTH)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGl_samplerDEPTH::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerRECT.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerRECT.cpp deleted file mode 100644 index 2c25201e6..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGl_samplerRECT.cpp +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGl_samplerRECT::create(daeInt bytes) -{ - domGl_samplerRECTRef ref = new(bytes) domGl_samplerRECT; - return ref; -} - - -daeMetaElement * -domGl_samplerRECT::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gl_samplerRECT" ); - _Meta->registerClass(domGl_samplerRECT::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domGl_samplerRECT,elemSource) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domGl_samplerRECT,elemWrap_s) ); - mea->setElementType( domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domGl_samplerRECT,elemWrap_t) ); - mea->setElementType( domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domGl_samplerRECT,elemMinfilter) ); - mea->setElementType( domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domGl_samplerRECT,elemMagfilter) ); - mea->setElementType( domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domGl_samplerRECT,elemMipfilter) ); - mea->setElementType( domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "border_color" ); - mea->setOffset( daeOffsetOf(domGl_samplerRECT,elemBorder_color) ); - mea->setElementType( domBorder_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domGl_samplerRECT,elemMipmap_maxlevel) ); - mea->setElementType( domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domGl_samplerRECT,elemMipmap_bias) ); - mea->setElementType( domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 9, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domGl_samplerRECT,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 9 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 9 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGl_samplerRECT)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGl_samplerRECT::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_basic_type_common.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_basic_type_common.cpp deleted file mode 100644 index 1f84688a8..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGles_basic_type_common.cpp +++ /dev/null @@ -1,1304 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGles_basic_type_common::create(daeInt bytes) -{ - domGles_basic_type_commonRef ref = new(bytes) domGles_basic_type_common; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gles_basic_type_common" ); - _Meta->registerClass(domGles_basic_type_common::create, &_Meta); - - _Meta->setIsTransparent( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemBool) ); - mea->setElementType( domGles_basic_type_common::domBool::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool2" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemBool2) ); - mea->setElementType( domGles_basic_type_common::domBool2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool3" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemBool3) ); - mea->setElementType( domGles_basic_type_common::domBool3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool4" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemBool4) ); - mea->setElementType( domGles_basic_type_common::domBool4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemInt) ); - mea->setElementType( domGles_basic_type_common::domInt::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int2" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemInt2) ); - mea->setElementType( domGles_basic_type_common::domInt2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int3" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemInt3) ); - mea->setElementType( domGles_basic_type_common::domInt3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int4" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemInt4) ); - mea->setElementType( domGles_basic_type_common::domInt4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat) ); - mea->setElementType( domGles_basic_type_common::domFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat2) ); - mea->setElementType( domGles_basic_type_common::domFloat2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat3) ); - mea->setElementType( domGles_basic_type_common::domFloat3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat4) ); - mea->setElementType( domGles_basic_type_common::domFloat4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float1x1" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat1x1) ); - mea->setElementType( domGles_basic_type_common::domFloat1x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float1x2" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat1x2) ); - mea->setElementType( domGles_basic_type_common::domFloat1x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float1x3" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat1x3) ); - mea->setElementType( domGles_basic_type_common::domFloat1x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float1x4" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat1x4) ); - mea->setElementType( domGles_basic_type_common::domFloat1x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x1" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat2x1) ); - mea->setElementType( domGles_basic_type_common::domFloat2x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x2" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat2x2) ); - mea->setElementType( domGles_basic_type_common::domFloat2x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x3" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat2x3) ); - mea->setElementType( domGles_basic_type_common::domFloat2x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x4" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat2x4) ); - mea->setElementType( domGles_basic_type_common::domFloat2x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x1" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat3x1) ); - mea->setElementType( domGles_basic_type_common::domFloat3x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x2" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat3x2) ); - mea->setElementType( domGles_basic_type_common::domFloat3x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x3" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat3x3) ); - mea->setElementType( domGles_basic_type_common::domFloat3x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x4" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat3x4) ); - mea->setElementType( domGles_basic_type_common::domFloat3x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x1" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat4x1) ); - mea->setElementType( domGles_basic_type_common::domFloat4x1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x2" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat4x2) ); - mea->setElementType( domGles_basic_type_common::domFloat4x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x3" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat4x3) ); - mea->setElementType( domGles_basic_type_common::domFloat4x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x4" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemFloat4x4) ); - mea->setElementType( domGles_basic_type_common::domFloat4x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "surface" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemSurface) ); - mea->setElementType( domFx_surface_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture_pipeline" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemTexture_pipeline) ); - mea->setElementType( domGles_texture_pipeline::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sampler_state" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemSampler_state) ); - mea->setElementType( domGles_sampler_state::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture_unit" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemTexture_unit) ); - mea->setElementType( domGles_texture_unit::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "enum" ); - mea->setOffset( daeOffsetOf(domGles_basic_type_common,elemEnum) ); - mea->setElementType( domGles_basic_type_common::domEnum::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGles_basic_type_common,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGles_basic_type_common,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domGles_basic_type_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domBool::create(daeInt bytes) -{ - domGles_basic_type_common::domBoolRef ref = new(bytes) domGles_basic_type_common::domBool; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domBool::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool" ); - _Meta->registerClass(domGles_basic_type_common::domBool::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domBool , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domBool)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domBool2::create(daeInt bytes) -{ - domGles_basic_type_common::domBool2Ref ref = new(bytes) domGles_basic_type_common::domBool2; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domBool2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool2" ); - _Meta->registerClass(domGles_basic_type_common::domBool2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool2")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domBool2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domBool2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domBool3::create(daeInt bytes) -{ - domGles_basic_type_common::domBool3Ref ref = new(bytes) domGles_basic_type_common::domBool3; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domBool3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool3" ); - _Meta->registerClass(domGles_basic_type_common::domBool3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool3")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domBool3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domBool3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domBool4::create(daeInt bytes) -{ - domGles_basic_type_common::domBool4Ref ref = new(bytes) domGles_basic_type_common::domBool4; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domBool4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool4" ); - _Meta->registerClass(domGles_basic_type_common::domBool4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool4")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domBool4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domBool4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domInt::create(daeInt bytes) -{ - domGles_basic_type_common::domIntRef ref = new(bytes) domGles_basic_type_common::domInt; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domInt::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int" ); - _Meta->registerClass(domGles_basic_type_common::domInt::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Int")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domInt , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domInt)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domInt2::create(daeInt bytes) -{ - domGles_basic_type_common::domInt2Ref ref = new(bytes) domGles_basic_type_common::domInt2; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domInt2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int2" ); - _Meta->registerClass(domGles_basic_type_common::domInt2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Int2")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domInt2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domInt2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domInt3::create(daeInt bytes) -{ - domGles_basic_type_common::domInt3Ref ref = new(bytes) domGles_basic_type_common::domInt3; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domInt3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int3" ); - _Meta->registerClass(domGles_basic_type_common::domInt3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Int3")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domInt3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domInt3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domInt4::create(daeInt bytes) -{ - domGles_basic_type_common::domInt4Ref ref = new(bytes) domGles_basic_type_common::domInt4; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domInt4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int4" ); - _Meta->registerClass(domGles_basic_type_common::domInt4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Int4")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domInt4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domInt4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat::create(daeInt bytes) -{ - domGles_basic_type_common::domFloatRef ref = new(bytes) domGles_basic_type_common::domFloat; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float" ); - _Meta->registerClass(domGles_basic_type_common::domFloat::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat2::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat2Ref ref = new(bytes) domGles_basic_type_common::domFloat2; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2" ); - _Meta->registerClass(domGles_basic_type_common::domFloat2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat3::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat3Ref ref = new(bytes) domGles_basic_type_common::domFloat3; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3" ); - _Meta->registerClass(domGles_basic_type_common::domFloat3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat4::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat4Ref ref = new(bytes) domGles_basic_type_common::domFloat4; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4" ); - _Meta->registerClass(domGles_basic_type_common::domFloat4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat1x1::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat1x1Ref ref = new(bytes) domGles_basic_type_common::domFloat1x1; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat1x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float1x1" ); - _Meta->registerClass(domGles_basic_type_common::domFloat1x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat1x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat1x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat1x2::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat1x2Ref ref = new(bytes) domGles_basic_type_common::domFloat1x2; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat1x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float1x2" ); - _Meta->registerClass(domGles_basic_type_common::domFloat1x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat1x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat1x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat1x3::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat1x3Ref ref = new(bytes) domGles_basic_type_common::domFloat1x3; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat1x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float1x3" ); - _Meta->registerClass(domGles_basic_type_common::domFloat1x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat1x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat1x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat1x4::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat1x4Ref ref = new(bytes) domGles_basic_type_common::domFloat1x4; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat1x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float1x4" ); - _Meta->registerClass(domGles_basic_type_common::domFloat1x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat1x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat1x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat2x1::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat2x1Ref ref = new(bytes) domGles_basic_type_common::domFloat2x1; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat2x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x1" ); - _Meta->registerClass(domGles_basic_type_common::domFloat2x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat2x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat2x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat2x2::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat2x2Ref ref = new(bytes) domGles_basic_type_common::domFloat2x2; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat2x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x2" ); - _Meta->registerClass(domGles_basic_type_common::domFloat2x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2x2")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat2x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat2x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat2x3::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat2x3Ref ref = new(bytes) domGles_basic_type_common::domFloat2x3; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat2x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x3" ); - _Meta->registerClass(domGles_basic_type_common::domFloat2x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2x3")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat2x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat2x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat2x4::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat2x4Ref ref = new(bytes) domGles_basic_type_common::domFloat2x4; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat2x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x4" ); - _Meta->registerClass(domGles_basic_type_common::domFloat2x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2x4")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat2x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat2x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat3x1::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat3x1Ref ref = new(bytes) domGles_basic_type_common::domFloat3x1; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat3x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x1" ); - _Meta->registerClass(domGles_basic_type_common::domFloat3x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat3x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat3x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat3x2::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat3x2Ref ref = new(bytes) domGles_basic_type_common::domFloat3x2; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat3x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x2" ); - _Meta->registerClass(domGles_basic_type_common::domFloat3x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3x2")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat3x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat3x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat3x3::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat3x3Ref ref = new(bytes) domGles_basic_type_common::domFloat3x3; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat3x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x3" ); - _Meta->registerClass(domGles_basic_type_common::domFloat3x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3x3")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat3x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat3x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat3x4::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat3x4Ref ref = new(bytes) domGles_basic_type_common::domFloat3x4; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat3x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x4" ); - _Meta->registerClass(domGles_basic_type_common::domFloat3x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3x4")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat3x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat3x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat4x1::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat4x1Ref ref = new(bytes) domGles_basic_type_common::domFloat4x1; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat4x1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x1" ); - _Meta->registerClass(domGles_basic_type_common::domFloat4x1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat4x1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat4x1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat4x2::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat4x2Ref ref = new(bytes) domGles_basic_type_common::domFloat4x2; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat4x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x2" ); - _Meta->registerClass(domGles_basic_type_common::domFloat4x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4x2")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat4x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat4x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat4x3::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat4x3Ref ref = new(bytes) domGles_basic_type_common::domFloat4x3; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat4x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x3" ); - _Meta->registerClass(domGles_basic_type_common::domFloat4x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4x3")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat4x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat4x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domFloat4x4::create(daeInt bytes) -{ - domGles_basic_type_common::domFloat4x4Ref ref = new(bytes) domGles_basic_type_common::domFloat4x4; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domFloat4x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x4" ); - _Meta->registerClass(domGles_basic_type_common::domFloat4x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4x4")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domFloat4x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domFloat4x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_basic_type_common::domEnum::create(daeInt bytes) -{ - domGles_basic_type_common::domEnumRef ref = new(bytes) domGles_basic_type_common::domEnum; - return ref; -} - - -daeMetaElement * -domGles_basic_type_common::domEnum::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "enum" ); - _Meta->registerClass(domGles_basic_type_common::domEnum::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Gles_enumeration")); - ma->setOffset( daeOffsetOf( domGles_basic_type_common::domEnum , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_basic_type_common::domEnum)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGles_basic_type_common::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domBool::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domBool2::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domBool3::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domBool4::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domInt::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domInt2::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domInt3::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domInt4::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat2::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat3::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat4::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat1x1::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat1x2::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat1x3::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat1x4::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat2x1::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat2x2::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat2x3::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat2x4::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat3x1::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat3x2::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat3x3::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat3x4::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat4x1::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat4x2::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat4x3::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domFloat4x4::_Meta = NULL; -daeMetaElement * domGles_basic_type_common::domEnum::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_newparam.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_newparam.cpp deleted file mode 100644 index 7381d69bf..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGles_newparam.cpp +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGles_newparam::create(daeInt bytes) -{ - domGles_newparamRef ref = new(bytes) domGles_newparam; - return ref; -} - - -daeMetaElement * -domGles_newparam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gles_newparam" ); - _Meta->registerClass(domGles_newparam::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domGles_newparam,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "semantic" ); - mea->setOffset( daeOffsetOf(domGles_newparam,elemSemantic) ); - mea->setElementType( domGles_newparam::domSemantic::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "modifier" ); - mea->setOffset( daeOffsetOf(domGles_newparam,elemModifier) ); - mea->setElementType( domGles_newparam::domModifier::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 1, 1 ); - mea->setName( "gles_basic_type_common" ); - mea->setOffset( daeOffsetOf(domGles_newparam,elemGles_basic_type_common) ); - mea->setElementType( domGles_basic_type_common::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 3, 1, 1 ) ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_newparam , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_newparam)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_newparam::domSemantic::create(daeInt bytes) -{ - domGles_newparam::domSemanticRef ref = new(bytes) domGles_newparam::domSemantic; - return ref; -} - - -daeMetaElement * -domGles_newparam::domSemantic::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "semantic" ); - _Meta->registerClass(domGles_newparam::domSemantic::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_newparam::domSemantic , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_newparam::domSemantic)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_newparam::domModifier::create(daeInt bytes) -{ - domGles_newparam::domModifierRef ref = new(bytes) domGles_newparam::domModifier; - return ref; -} - - -daeMetaElement * -domGles_newparam::domModifier::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "modifier" ); - _Meta->registerClass(domGles_newparam::domModifier::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_modifier_enum_common")); - ma->setOffset( daeOffsetOf( domGles_newparam::domModifier , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_newparam::domModifier)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGles_newparam::_Meta = NULL; -daeMetaElement * domGles_newparam::domSemantic::_Meta = NULL; -daeMetaElement * domGles_newparam::domModifier::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_pipeline_settings.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_pipeline_settings.cpp deleted file mode 100644 index 2e2c3c93a..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGles_pipeline_settings.cpp +++ /dev/null @@ -1,4948 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGles_pipeline_settings::create(daeInt bytes) -{ - domGles_pipeline_settingsRef ref = new(bytes) domGles_pipeline_settings; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gles_pipeline_settings" ); - _Meta->registerClass(domGles_pipeline_settings::create, &_Meta); - - _Meta->setIsTransparent( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "alpha_func" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemAlpha_func) ); - mea->setElementType( domGles_pipeline_settings::domAlpha_func::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "blend_func" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemBlend_func) ); - mea->setElementType( domGles_pipeline_settings::domBlend_func::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "clear_color" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemClear_color) ); - mea->setElementType( domGles_pipeline_settings::domClear_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "clear_stencil" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemClear_stencil) ); - mea->setElementType( domGles_pipeline_settings::domClear_stencil::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "clear_depth" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemClear_depth) ); - mea->setElementType( domGles_pipeline_settings::domClear_depth::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "clip_plane" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemClip_plane) ); - mea->setElementType( domGles_pipeline_settings::domClip_plane::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "color_mask" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemColor_mask) ); - mea->setElementType( domGles_pipeline_settings::domColor_mask::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "cull_face" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemCull_face) ); - mea->setElementType( domGles_pipeline_settings::domCull_face::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "depth_func" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemDepth_func) ); - mea->setElementType( domGles_pipeline_settings::domDepth_func::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "depth_mask" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemDepth_mask) ); - mea->setElementType( domGles_pipeline_settings::domDepth_mask::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "depth_range" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemDepth_range) ); - mea->setElementType( domGles_pipeline_settings::domDepth_range::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fog_color" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemFog_color) ); - mea->setElementType( domGles_pipeline_settings::domFog_color::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fog_density" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemFog_density) ); - mea->setElementType( domGles_pipeline_settings::domFog_density::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fog_mode" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemFog_mode) ); - mea->setElementType( domGles_pipeline_settings::domFog_mode::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fog_start" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemFog_start) ); - mea->setElementType( domGles_pipeline_settings::domFog_start::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fog_end" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemFog_end) ); - mea->setElementType( domGles_pipeline_settings::domFog_end::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "front_face" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemFront_face) ); - mea->setElementType( domGles_pipeline_settings::domFront_face::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture_pipeline" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemTexture_pipeline) ); - mea->setElementType( domGles_pipeline_settings::domTexture_pipeline::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "logic_op" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLogic_op) ); - mea->setElementType( domGles_pipeline_settings::domLogic_op::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_ambient" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLight_ambient) ); - mea->setElementType( domGles_pipeline_settings::domLight_ambient::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_diffuse" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLight_diffuse) ); - mea->setElementType( domGles_pipeline_settings::domLight_diffuse::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_specular" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLight_specular) ); - mea->setElementType( domGles_pipeline_settings::domLight_specular::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_position" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLight_position) ); - mea->setElementType( domGles_pipeline_settings::domLight_position::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_constant_attenuation" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLight_constant_attenuation) ); - mea->setElementType( domGles_pipeline_settings::domLight_constant_attenuation::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_linear_attenutation" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLight_linear_attenutation) ); - mea->setElementType( domGles_pipeline_settings::domLight_linear_attenutation::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_quadratic_attenuation" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLight_quadratic_attenuation) ); - mea->setElementType( domGles_pipeline_settings::domLight_quadratic_attenuation::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_spot_cutoff" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLight_spot_cutoff) ); - mea->setElementType( domGles_pipeline_settings::domLight_spot_cutoff::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_spot_direction" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLight_spot_direction) ); - mea->setElementType( domGles_pipeline_settings::domLight_spot_direction::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_spot_exponent" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLight_spot_exponent) ); - mea->setElementType( domGles_pipeline_settings::domLight_spot_exponent::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_model_ambient" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLight_model_ambient) ); - mea->setElementType( domGles_pipeline_settings::domLight_model_ambient::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "line_width" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLine_width) ); - mea->setElementType( domGles_pipeline_settings::domLine_width::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "material_ambient" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemMaterial_ambient) ); - mea->setElementType( domGles_pipeline_settings::domMaterial_ambient::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "material_diffuse" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemMaterial_diffuse) ); - mea->setElementType( domGles_pipeline_settings::domMaterial_diffuse::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "material_emission" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemMaterial_emission) ); - mea->setElementType( domGles_pipeline_settings::domMaterial_emission::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "material_shininess" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemMaterial_shininess) ); - mea->setElementType( domGles_pipeline_settings::domMaterial_shininess::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "material_specular" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemMaterial_specular) ); - mea->setElementType( domGles_pipeline_settings::domMaterial_specular::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "model_view_matrix" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemModel_view_matrix) ); - mea->setElementType( domGles_pipeline_settings::domModel_view_matrix::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "point_distance_attenuation" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemPoint_distance_attenuation) ); - mea->setElementType( domGles_pipeline_settings::domPoint_distance_attenuation::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "point_fade_threshold_size" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemPoint_fade_threshold_size) ); - mea->setElementType( domGles_pipeline_settings::domPoint_fade_threshold_size::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "point_size" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemPoint_size) ); - mea->setElementType( domGles_pipeline_settings::domPoint_size::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "point_size_min" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemPoint_size_min) ); - mea->setElementType( domGles_pipeline_settings::domPoint_size_min::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "point_size_max" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemPoint_size_max) ); - mea->setElementType( domGles_pipeline_settings::domPoint_size_max::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "polygon_offset" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemPolygon_offset) ); - mea->setElementType( domGles_pipeline_settings::domPolygon_offset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "projection_matrix" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemProjection_matrix) ); - mea->setElementType( domGles_pipeline_settings::domProjection_matrix::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "scissor" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemScissor) ); - mea->setElementType( domGles_pipeline_settings::domScissor::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "shade_model" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemShade_model) ); - mea->setElementType( domGles_pipeline_settings::domShade_model::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "stencil_func" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemStencil_func) ); - mea->setElementType( domGles_pipeline_settings::domStencil_func::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "stencil_mask" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemStencil_mask) ); - mea->setElementType( domGles_pipeline_settings::domStencil_mask::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "stencil_op" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemStencil_op) ); - mea->setElementType( domGles_pipeline_settings::domStencil_op::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "alpha_test_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemAlpha_test_enable) ); - mea->setElementType( domGles_pipeline_settings::domAlpha_test_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "blend_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemBlend_enable) ); - mea->setElementType( domGles_pipeline_settings::domBlend_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "clip_plane_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemClip_plane_enable) ); - mea->setElementType( domGles_pipeline_settings::domClip_plane_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "color_logic_op_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemColor_logic_op_enable) ); - mea->setElementType( domGles_pipeline_settings::domColor_logic_op_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "color_material_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemColor_material_enable) ); - mea->setElementType( domGles_pipeline_settings::domColor_material_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "cull_face_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemCull_face_enable) ); - mea->setElementType( domGles_pipeline_settings::domCull_face_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "depth_test_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemDepth_test_enable) ); - mea->setElementType( domGles_pipeline_settings::domDepth_test_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "dither_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemDither_enable) ); - mea->setElementType( domGles_pipeline_settings::domDither_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fog_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemFog_enable) ); - mea->setElementType( domGles_pipeline_settings::domFog_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texture_pipeline_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemTexture_pipeline_enable) ); - mea->setElementType( domGles_pipeline_settings::domTexture_pipeline_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLight_enable) ); - mea->setElementType( domGles_pipeline_settings::domLight_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "lighting_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLighting_enable) ); - mea->setElementType( domGles_pipeline_settings::domLighting_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "light_model_two_side_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLight_model_two_side_enable) ); - mea->setElementType( domGles_pipeline_settings::domLight_model_two_side_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "line_smooth_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemLine_smooth_enable) ); - mea->setElementType( domGles_pipeline_settings::domLine_smooth_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "multisample_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemMultisample_enable) ); - mea->setElementType( domGles_pipeline_settings::domMultisample_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "normalize_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemNormalize_enable) ); - mea->setElementType( domGles_pipeline_settings::domNormalize_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "point_smooth_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemPoint_smooth_enable) ); - mea->setElementType( domGles_pipeline_settings::domPoint_smooth_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "polygon_offset_fill_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemPolygon_offset_fill_enable) ); - mea->setElementType( domGles_pipeline_settings::domPolygon_offset_fill_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "rescale_normal_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemRescale_normal_enable) ); - mea->setElementType( domGles_pipeline_settings::domRescale_normal_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sample_alpha_to_coverage_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemSample_alpha_to_coverage_enable) ); - mea->setElementType( domGles_pipeline_settings::domSample_alpha_to_coverage_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sample_alpha_to_one_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemSample_alpha_to_one_enable) ); - mea->setElementType( domGles_pipeline_settings::domSample_alpha_to_one_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sample_coverage_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemSample_coverage_enable) ); - mea->setElementType( domGles_pipeline_settings::domSample_coverage_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "scissor_test_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemScissor_test_enable) ); - mea->setElementType( domGles_pipeline_settings::domScissor_test_enable::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "stencil_test_enable" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings,elemStencil_test_enable) ); - mea->setElementType( domGles_pipeline_settings::domStencil_test_enable::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGles_pipeline_settings,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGles_pipeline_settings,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domAlpha_func::create(daeInt bytes) -{ - domGles_pipeline_settings::domAlpha_funcRef ref = new(bytes) domGles_pipeline_settings::domAlpha_func; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domAlpha_func::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "alpha_func" ); - _Meta->registerClass(domGles_pipeline_settings::domAlpha_func::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "func" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings::domAlpha_func,elemFunc) ); - mea->setElementType( domGles_pipeline_settings::domAlpha_func::domFunc::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "value" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings::domAlpha_func,elemValue) ); - mea->setElementType( domGles_pipeline_settings::domAlpha_func::domValue::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domAlpha_func)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domAlpha_func::domFunc::create(daeInt bytes) -{ - domGles_pipeline_settings::domAlpha_func::domFuncRef ref = new(bytes) domGles_pipeline_settings::domAlpha_func::domFunc; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domAlpha_func::domFunc::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "func" ); - _Meta->registerClass(domGles_pipeline_settings::domAlpha_func::domFunc::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_func_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domAlpha_func::domFunc , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ALWAYS"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domAlpha_func::domFunc , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domAlpha_func::domFunc)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domAlpha_func::domValue::create(daeInt bytes) -{ - domGles_pipeline_settings::domAlpha_func::domValueRef ref = new(bytes) domGles_pipeline_settings::domAlpha_func::domValue; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domAlpha_func::domValue::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "value" ); - _Meta->registerClass(domGles_pipeline_settings::domAlpha_func::domValue::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_alpha_value_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domAlpha_func::domValue , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0.0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domAlpha_func::domValue , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domAlpha_func::domValue)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domBlend_func::create(daeInt bytes) -{ - domGles_pipeline_settings::domBlend_funcRef ref = new(bytes) domGles_pipeline_settings::domBlend_func; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domBlend_func::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "blend_func" ); - _Meta->registerClass(domGles_pipeline_settings::domBlend_func::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "src" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings::domBlend_func,elemSrc) ); - mea->setElementType( domGles_pipeline_settings::domBlend_func::domSrc::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "dest" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings::domBlend_func,elemDest) ); - mea->setElementType( domGles_pipeline_settings::domBlend_func::domDest::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domBlend_func)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domBlend_func::domSrc::create(daeInt bytes) -{ - domGles_pipeline_settings::domBlend_func::domSrcRef ref = new(bytes) domGles_pipeline_settings::domBlend_func::domSrc; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domBlend_func::domSrc::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "src" ); - _Meta->registerClass(domGles_pipeline_settings::domBlend_func::domSrc::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_blend_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domBlend_func::domSrc , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ONE"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domBlend_func::domSrc , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domBlend_func::domSrc)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domBlend_func::domDest::create(daeInt bytes) -{ - domGles_pipeline_settings::domBlend_func::domDestRef ref = new(bytes) domGles_pipeline_settings::domBlend_func::domDest; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domBlend_func::domDest::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "dest" ); - _Meta->registerClass(domGles_pipeline_settings::domBlend_func::domDest::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_blend_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domBlend_func::domDest , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ZERO"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domBlend_func::domDest , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domBlend_func::domDest)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domClear_color::create(daeInt bytes) -{ - domGles_pipeline_settings::domClear_colorRef ref = new(bytes) domGles_pipeline_settings::domClear_color; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domClear_color::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "clear_color" ); - _Meta->registerClass(domGles_pipeline_settings::domClear_color::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClear_color , attrValue )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClear_color , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domClear_color)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domClear_stencil::create(daeInt bytes) -{ - domGles_pipeline_settings::domClear_stencilRef ref = new(bytes) domGles_pipeline_settings::domClear_stencil; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domClear_stencil::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "clear_stencil" ); - _Meta->registerClass(domGles_pipeline_settings::domClear_stencil::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Int")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClear_stencil , attrValue )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClear_stencil , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domClear_stencil)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domClear_depth::create(daeInt bytes) -{ - domGles_pipeline_settings::domClear_depthRef ref = new(bytes) domGles_pipeline_settings::domClear_depth; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domClear_depth::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "clear_depth" ); - _Meta->registerClass(domGles_pipeline_settings::domClear_depth::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClear_depth , attrValue )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClear_depth , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domClear_depth)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domClip_plane::create(daeInt bytes) -{ - domGles_pipeline_settings::domClip_planeRef ref = new(bytes) domGles_pipeline_settings::domClip_plane; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domClip_plane::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "clip_plane" ); - _Meta->registerClass(domGles_pipeline_settings::domClip_plane::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClip_plane , attrValue )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClip_plane , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GLES_MAX_CLIP_PLANES_index")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClip_plane , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domClip_plane)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domColor_mask::create(daeInt bytes) -{ - domGles_pipeline_settings::domColor_maskRef ref = new(bytes) domGles_pipeline_settings::domColor_mask; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domColor_mask::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "color_mask" ); - _Meta->registerClass(domGles_pipeline_settings::domColor_mask::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domColor_mask , attrValue )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domColor_mask , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domColor_mask)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domCull_face::create(daeInt bytes) -{ - domGles_pipeline_settings::domCull_faceRef ref = new(bytes) domGles_pipeline_settings::domCull_face; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domCull_face::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cull_face" ); - _Meta->registerClass(domGles_pipeline_settings::domCull_face::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_face_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domCull_face , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "BACK"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domCull_face , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domCull_face)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domDepth_func::create(daeInt bytes) -{ - domGles_pipeline_settings::domDepth_funcRef ref = new(bytes) domGles_pipeline_settings::domDepth_func; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domDepth_func::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "depth_func" ); - _Meta->registerClass(domGles_pipeline_settings::domDepth_func::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_func_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_func , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ALWAYS"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_func , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domDepth_func)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domDepth_mask::create(daeInt bytes) -{ - domGles_pipeline_settings::domDepth_maskRef ref = new(bytes) domGles_pipeline_settings::domDepth_mask; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domDepth_mask::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "depth_mask" ); - _Meta->registerClass(domGles_pipeline_settings::domDepth_mask::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_mask , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_mask , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domDepth_mask)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domDepth_range::create(daeInt bytes) -{ - domGles_pipeline_settings::domDepth_rangeRef ref = new(bytes) domGles_pipeline_settings::domDepth_range; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domDepth_range::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "depth_range" ); - _Meta->registerClass(domGles_pipeline_settings::domDepth_range::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_range , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_range , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domDepth_range)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domFog_color::create(daeInt bytes) -{ - domGles_pipeline_settings::domFog_colorRef ref = new(bytes) domGles_pipeline_settings::domFog_color; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domFog_color::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fog_color" ); - _Meta->registerClass(domGles_pipeline_settings::domFog_color::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_color , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_color , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFog_color)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domFog_density::create(daeInt bytes) -{ - domGles_pipeline_settings::domFog_densityRef ref = new(bytes) domGles_pipeline_settings::domFog_density; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domFog_density::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fog_density" ); - _Meta->registerClass(domGles_pipeline_settings::domFog_density::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_density , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_density , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFog_density)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domFog_mode::create(daeInt bytes) -{ - domGles_pipeline_settings::domFog_modeRef ref = new(bytes) domGles_pipeline_settings::domFog_mode; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domFog_mode::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fog_mode" ); - _Meta->registerClass(domGles_pipeline_settings::domFog_mode::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_fog_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_mode , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "EXP"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_mode , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFog_mode)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domFog_start::create(daeInt bytes) -{ - domGles_pipeline_settings::domFog_startRef ref = new(bytes) domGles_pipeline_settings::domFog_start; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domFog_start::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fog_start" ); - _Meta->registerClass(domGles_pipeline_settings::domFog_start::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_start , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_start , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFog_start)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domFog_end::create(daeInt bytes) -{ - domGles_pipeline_settings::domFog_endRef ref = new(bytes) domGles_pipeline_settings::domFog_end; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domFog_end::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fog_end" ); - _Meta->registerClass(domGles_pipeline_settings::domFog_end::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_end , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_end , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFog_end)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domFront_face::create(daeInt bytes) -{ - domGles_pipeline_settings::domFront_faceRef ref = new(bytes) domGles_pipeline_settings::domFront_face; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domFront_face::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "front_face" ); - _Meta->registerClass(domGles_pipeline_settings::domFront_face::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_front_face_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFront_face , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "CCW"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFront_face , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFront_face)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domTexture_pipeline::create(daeInt bytes) -{ - domGles_pipeline_settings::domTexture_pipelineRef ref = new(bytes) domGles_pipeline_settings::domTexture_pipeline; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domTexture_pipeline::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "texture_pipeline" ); - _Meta->registerClass(domGles_pipeline_settings::domTexture_pipeline::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "value" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings::domTexture_pipeline,elemValue) ); - mea->setElementType( domGles_texture_pipeline::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domTexture_pipeline , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domTexture_pipeline)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLogic_op::create(daeInt bytes) -{ - domGles_pipeline_settings::domLogic_opRef ref = new(bytes) domGles_pipeline_settings::domLogic_op; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLogic_op::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "logic_op" ); - _Meta->registerClass(domGles_pipeline_settings::domLogic_op::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_logic_op_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLogic_op , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "COPY"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLogic_op , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLogic_op)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLight_ambient::create(daeInt bytes) -{ - domGles_pipeline_settings::domLight_ambientRef ref = new(bytes) domGles_pipeline_settings::domLight_ambient; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLight_ambient::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_ambient" ); - _Meta->registerClass(domGles_pipeline_settings::domLight_ambient::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_ambient , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_ambient , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_ambient , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_ambient)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLight_diffuse::create(daeInt bytes) -{ - domGles_pipeline_settings::domLight_diffuseRef ref = new(bytes) domGles_pipeline_settings::domLight_diffuse; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLight_diffuse::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_diffuse" ); - _Meta->registerClass(domGles_pipeline_settings::domLight_diffuse::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_diffuse , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_diffuse , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_diffuse , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_diffuse)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLight_specular::create(daeInt bytes) -{ - domGles_pipeline_settings::domLight_specularRef ref = new(bytes) domGles_pipeline_settings::domLight_specular; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLight_specular::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_specular" ); - _Meta->registerClass(domGles_pipeline_settings::domLight_specular::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_specular , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_specular , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_specular , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_specular)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLight_position::create(daeInt bytes) -{ - domGles_pipeline_settings::domLight_positionRef ref = new(bytes) domGles_pipeline_settings::domLight_position; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLight_position::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_position" ); - _Meta->registerClass(domGles_pipeline_settings::domLight_position::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_position , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 1 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_position , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_position , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_position)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLight_constant_attenuation::create(daeInt bytes) -{ - domGles_pipeline_settings::domLight_constant_attenuationRef ref = new(bytes) domGles_pipeline_settings::domLight_constant_attenuation; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLight_constant_attenuation::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_constant_attenuation" ); - _Meta->registerClass(domGles_pipeline_settings::domLight_constant_attenuation::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_constant_attenuation , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_constant_attenuation , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_constant_attenuation , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_constant_attenuation)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLight_linear_attenutation::create(daeInt bytes) -{ - domGles_pipeline_settings::domLight_linear_attenutationRef ref = new(bytes) domGles_pipeline_settings::domLight_linear_attenutation; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLight_linear_attenutation::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_linear_attenutation" ); - _Meta->registerClass(domGles_pipeline_settings::domLight_linear_attenutation::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_linear_attenutation , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_linear_attenutation , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_linear_attenutation , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_linear_attenutation)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLight_quadratic_attenuation::create(daeInt bytes) -{ - domGles_pipeline_settings::domLight_quadratic_attenuationRef ref = new(bytes) domGles_pipeline_settings::domLight_quadratic_attenuation; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLight_quadratic_attenuation::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_quadratic_attenuation" ); - _Meta->registerClass(domGles_pipeline_settings::domLight_quadratic_attenuation::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_quadratic_attenuation , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_quadratic_attenuation , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_quadratic_attenuation , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_quadratic_attenuation)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLight_spot_cutoff::create(daeInt bytes) -{ - domGles_pipeline_settings::domLight_spot_cutoffRef ref = new(bytes) domGles_pipeline_settings::domLight_spot_cutoff; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLight_spot_cutoff::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_spot_cutoff" ); - _Meta->registerClass(domGles_pipeline_settings::domLight_spot_cutoff::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_cutoff , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "180"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_cutoff , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_cutoff , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_spot_cutoff)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLight_spot_direction::create(daeInt bytes) -{ - domGles_pipeline_settings::domLight_spot_directionRef ref = new(bytes) domGles_pipeline_settings::domLight_spot_direction; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLight_spot_direction::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_spot_direction" ); - _Meta->registerClass(domGles_pipeline_settings::domLight_spot_direction::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_direction , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 -1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_direction , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_direction , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_spot_direction)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLight_spot_exponent::create(daeInt bytes) -{ - domGles_pipeline_settings::domLight_spot_exponentRef ref = new(bytes) domGles_pipeline_settings::domLight_spot_exponent; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLight_spot_exponent::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_spot_exponent" ); - _Meta->registerClass(domGles_pipeline_settings::domLight_spot_exponent::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_exponent , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_exponent , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_spot_exponent , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_spot_exponent)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLight_model_ambient::create(daeInt bytes) -{ - domGles_pipeline_settings::domLight_model_ambientRef ref = new(bytes) domGles_pipeline_settings::domLight_model_ambient; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLight_model_ambient::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_model_ambient" ); - _Meta->registerClass(domGles_pipeline_settings::domLight_model_ambient::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_model_ambient , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0.2 0.2 0.2 1.0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_model_ambient , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_model_ambient)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLine_width::create(daeInt bytes) -{ - domGles_pipeline_settings::domLine_widthRef ref = new(bytes) domGles_pipeline_settings::domLine_width; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLine_width::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "line_width" ); - _Meta->registerClass(domGles_pipeline_settings::domLine_width::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLine_width , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLine_width , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLine_width)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domMaterial_ambient::create(daeInt bytes) -{ - domGles_pipeline_settings::domMaterial_ambientRef ref = new(bytes) domGles_pipeline_settings::domMaterial_ambient; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domMaterial_ambient::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "material_ambient" ); - _Meta->registerClass(domGles_pipeline_settings::domMaterial_ambient::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_ambient , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0.2 0.2 0.2 1.0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_ambient , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domMaterial_ambient)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domMaterial_diffuse::create(daeInt bytes) -{ - domGles_pipeline_settings::domMaterial_diffuseRef ref = new(bytes) domGles_pipeline_settings::domMaterial_diffuse; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domMaterial_diffuse::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "material_diffuse" ); - _Meta->registerClass(domGles_pipeline_settings::domMaterial_diffuse::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_diffuse , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0.8 0.8 0.8 1.0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_diffuse , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domMaterial_diffuse)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domMaterial_emission::create(daeInt bytes) -{ - domGles_pipeline_settings::domMaterial_emissionRef ref = new(bytes) domGles_pipeline_settings::domMaterial_emission; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domMaterial_emission::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "material_emission" ); - _Meta->registerClass(domGles_pipeline_settings::domMaterial_emission::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_emission , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_emission , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domMaterial_emission)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domMaterial_shininess::create(daeInt bytes) -{ - domGles_pipeline_settings::domMaterial_shininessRef ref = new(bytes) domGles_pipeline_settings::domMaterial_shininess; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domMaterial_shininess::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "material_shininess" ); - _Meta->registerClass(domGles_pipeline_settings::domMaterial_shininess::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_shininess , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_shininess , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domMaterial_shininess)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domMaterial_specular::create(daeInt bytes) -{ - domGles_pipeline_settings::domMaterial_specularRef ref = new(bytes) domGles_pipeline_settings::domMaterial_specular; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domMaterial_specular::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "material_specular" ); - _Meta->registerClass(domGles_pipeline_settings::domMaterial_specular::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_specular , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0 0 1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMaterial_specular , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domMaterial_specular)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domModel_view_matrix::create(daeInt bytes) -{ - domGles_pipeline_settings::domModel_view_matrixRef ref = new(bytes) domGles_pipeline_settings::domModel_view_matrix; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domModel_view_matrix::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "model_view_matrix" ); - _Meta->registerClass(domGles_pipeline_settings::domModel_view_matrix::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4x4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domModel_view_matrix , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domModel_view_matrix , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domModel_view_matrix)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domPoint_distance_attenuation::create(daeInt bytes) -{ - domGles_pipeline_settings::domPoint_distance_attenuationRef ref = new(bytes) domGles_pipeline_settings::domPoint_distance_attenuation; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domPoint_distance_attenuation::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "point_distance_attenuation" ); - _Meta->registerClass(domGles_pipeline_settings::domPoint_distance_attenuation::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_distance_attenuation , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1 0 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_distance_attenuation , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPoint_distance_attenuation)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domPoint_fade_threshold_size::create(daeInt bytes) -{ - domGles_pipeline_settings::domPoint_fade_threshold_sizeRef ref = new(bytes) domGles_pipeline_settings::domPoint_fade_threshold_size; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domPoint_fade_threshold_size::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "point_fade_threshold_size" ); - _Meta->registerClass(domGles_pipeline_settings::domPoint_fade_threshold_size::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_fade_threshold_size , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_fade_threshold_size , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPoint_fade_threshold_size)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domPoint_size::create(daeInt bytes) -{ - domGles_pipeline_settings::domPoint_sizeRef ref = new(bytes) domGles_pipeline_settings::domPoint_size; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domPoint_size::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "point_size" ); - _Meta->registerClass(domGles_pipeline_settings::domPoint_size::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_size , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_size , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPoint_size)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domPoint_size_min::create(daeInt bytes) -{ - domGles_pipeline_settings::domPoint_size_minRef ref = new(bytes) domGles_pipeline_settings::domPoint_size_min; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domPoint_size_min::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "point_size_min" ); - _Meta->registerClass(domGles_pipeline_settings::domPoint_size_min::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_size_min , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_size_min , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPoint_size_min)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domPoint_size_max::create(daeInt bytes) -{ - domGles_pipeline_settings::domPoint_size_maxRef ref = new(bytes) domGles_pipeline_settings::domPoint_size_max; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domPoint_size_max::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "point_size_max" ); - _Meta->registerClass(domGles_pipeline_settings::domPoint_size_max::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_size_max , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_size_max , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPoint_size_max)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domPolygon_offset::create(daeInt bytes) -{ - domGles_pipeline_settings::domPolygon_offsetRef ref = new(bytes) domGles_pipeline_settings::domPolygon_offset; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domPolygon_offset::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "polygon_offset" ); - _Meta->registerClass(domGles_pipeline_settings::domPolygon_offset::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPolygon_offset , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0 0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPolygon_offset , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPolygon_offset)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domProjection_matrix::create(daeInt bytes) -{ - domGles_pipeline_settings::domProjection_matrixRef ref = new(bytes) domGles_pipeline_settings::domProjection_matrix; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domProjection_matrix::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "projection_matrix" ); - _Meta->registerClass(domGles_pipeline_settings::domProjection_matrix::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4x4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domProjection_matrix , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domProjection_matrix , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domProjection_matrix)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domScissor::create(daeInt bytes) -{ - domGles_pipeline_settings::domScissorRef ref = new(bytes) domGles_pipeline_settings::domScissor; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domScissor::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "scissor" ); - _Meta->registerClass(domGles_pipeline_settings::domScissor::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Int4")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domScissor , attrValue )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domScissor , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domScissor)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domShade_model::create(daeInt bytes) -{ - domGles_pipeline_settings::domShade_modelRef ref = new(bytes) domGles_pipeline_settings::domShade_model; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domShade_model::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "shade_model" ); - _Meta->registerClass(domGles_pipeline_settings::domShade_model::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_shade_model_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domShade_model , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "SMOOTH"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domShade_model , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domShade_model)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domStencil_func::create(daeInt bytes) -{ - domGles_pipeline_settings::domStencil_funcRef ref = new(bytes) domGles_pipeline_settings::domStencil_func; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domStencil_func::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "stencil_func" ); - _Meta->registerClass(domGles_pipeline_settings::domStencil_func::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "func" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings::domStencil_func,elemFunc) ); - mea->setElementType( domGles_pipeline_settings::domStencil_func::domFunc::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "ref" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings::domStencil_func,elemRef) ); - mea->setElementType( domGles_pipeline_settings::domStencil_func::domRef::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 1, 1 ); - mea->setName( "mask" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings::domStencil_func,elemMask) ); - mea->setElementType( domGles_pipeline_settings::domStencil_func::domMask::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_func)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domStencil_func::domFunc::create(daeInt bytes) -{ - domGles_pipeline_settings::domStencil_func::domFuncRef ref = new(bytes) domGles_pipeline_settings::domStencil_func::domFunc; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domStencil_func::domFunc::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "func" ); - _Meta->registerClass(domGles_pipeline_settings::domStencil_func::domFunc::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gl_func_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_func::domFunc , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "ALWAYS"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_func::domFunc , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_func::domFunc)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domStencil_func::domRef::create(daeInt bytes) -{ - domGles_pipeline_settings::domStencil_func::domRefRef ref = new(bytes) domGles_pipeline_settings::domStencil_func::domRef; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domStencil_func::domRef::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "ref" ); - _Meta->registerClass(domGles_pipeline_settings::domStencil_func::domRef::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("xsUnsignedByte")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_func::domRef , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "0"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_func::domRef , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_func::domRef)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domStencil_func::domMask::create(daeInt bytes) -{ - domGles_pipeline_settings::domStencil_func::domMaskRef ref = new(bytes) domGles_pipeline_settings::domStencil_func::domMask; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domStencil_func::domMask::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mask" ); - _Meta->registerClass(domGles_pipeline_settings::domStencil_func::domMask::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("xsUnsignedByte")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_func::domMask , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "255"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_func::domMask , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_func::domMask)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domStencil_mask::create(daeInt bytes) -{ - domGles_pipeline_settings::domStencil_maskRef ref = new(bytes) domGles_pipeline_settings::domStencil_mask; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domStencil_mask::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "stencil_mask" ); - _Meta->registerClass(domGles_pipeline_settings::domStencil_mask::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Int")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_mask , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "4294967295"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_mask , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_mask)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domStencil_op::create(daeInt bytes) -{ - domGles_pipeline_settings::domStencil_opRef ref = new(bytes) domGles_pipeline_settings::domStencil_op; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domStencil_op::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "stencil_op" ); - _Meta->registerClass(domGles_pipeline_settings::domStencil_op::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fail" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings::domStencil_op,elemFail) ); - mea->setElementType( domGles_pipeline_settings::domStencil_op::domFail::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "zfail" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings::domStencil_op,elemZfail) ); - mea->setElementType( domGles_pipeline_settings::domStencil_op::domZfail::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 1, 1 ); - mea->setName( "zpass" ); - mea->setOffset( daeOffsetOf(domGles_pipeline_settings::domStencil_op,elemZpass) ); - mea->setElementType( domGles_pipeline_settings::domStencil_op::domZpass::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_op)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domStencil_op::domFail::create(daeInt bytes) -{ - domGles_pipeline_settings::domStencil_op::domFailRef ref = new(bytes) domGles_pipeline_settings::domStencil_op::domFail; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domStencil_op::domFail::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fail" ); - _Meta->registerClass(domGles_pipeline_settings::domStencil_op::domFail::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gles_stencil_op_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_op::domFail , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "KEEP"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_op::domFail , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_op::domFail)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domStencil_op::domZfail::create(daeInt bytes) -{ - domGles_pipeline_settings::domStencil_op::domZfailRef ref = new(bytes) domGles_pipeline_settings::domStencil_op::domZfail; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domStencil_op::domZfail::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "zfail" ); - _Meta->registerClass(domGles_pipeline_settings::domStencil_op::domZfail::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gles_stencil_op_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_op::domZfail , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "KEEP"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_op::domZfail , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_op::domZfail)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domStencil_op::domZpass::create(daeInt bytes) -{ - domGles_pipeline_settings::domStencil_op::domZpassRef ref = new(bytes) domGles_pipeline_settings::domStencil_op::domZpass; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domStencil_op::domZpass::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "zpass" ); - _Meta->registerClass(domGles_pipeline_settings::domStencil_op::domZpass::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Gles_stencil_op_type")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_op::domZpass , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "KEEP"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_op::domZpass , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_op::domZpass)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domAlpha_test_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domAlpha_test_enableRef ref = new(bytes) domGles_pipeline_settings::domAlpha_test_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domAlpha_test_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "alpha_test_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domAlpha_test_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domAlpha_test_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domAlpha_test_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domAlpha_test_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domBlend_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domBlend_enableRef ref = new(bytes) domGles_pipeline_settings::domBlend_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domBlend_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "blend_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domBlend_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domBlend_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domBlend_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domBlend_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domClip_plane_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domClip_plane_enableRef ref = new(bytes) domGles_pipeline_settings::domClip_plane_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domClip_plane_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "clip_plane_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domClip_plane_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClip_plane_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClip_plane_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GLES_MAX_CLIP_PLANES_index")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domClip_plane_enable , attrIndex )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domClip_plane_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domColor_logic_op_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domColor_logic_op_enableRef ref = new(bytes) domGles_pipeline_settings::domColor_logic_op_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domColor_logic_op_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "color_logic_op_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domColor_logic_op_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domColor_logic_op_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domColor_logic_op_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domColor_logic_op_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domColor_material_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domColor_material_enableRef ref = new(bytes) domGles_pipeline_settings::domColor_material_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domColor_material_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "color_material_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domColor_material_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domColor_material_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "true"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domColor_material_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domColor_material_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domCull_face_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domCull_face_enableRef ref = new(bytes) domGles_pipeline_settings::domCull_face_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domCull_face_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "cull_face_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domCull_face_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domCull_face_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domCull_face_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domCull_face_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domDepth_test_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domDepth_test_enableRef ref = new(bytes) domGles_pipeline_settings::domDepth_test_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domDepth_test_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "depth_test_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domDepth_test_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_test_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDepth_test_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domDepth_test_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domDither_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domDither_enableRef ref = new(bytes) domGles_pipeline_settings::domDither_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domDither_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "dither_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domDither_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDither_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domDither_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domDither_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domFog_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domFog_enableRef ref = new(bytes) domGles_pipeline_settings::domFog_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domFog_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "fog_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domFog_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domFog_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domFog_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domTexture_pipeline_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domTexture_pipeline_enableRef ref = new(bytes) domGles_pipeline_settings::domTexture_pipeline_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domTexture_pipeline_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "texture_pipeline_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domTexture_pipeline_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domTexture_pipeline_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domTexture_pipeline_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domTexture_pipeline_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLight_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domLight_enableRef ref = new(bytes) domGles_pipeline_settings::domLight_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLight_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domLight_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: index - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "index" ); - ma->setType( daeAtomicType::get("GLES_MAX_LIGHTS_index")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_enable , attrIndex )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLighting_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domLighting_enableRef ref = new(bytes) domGles_pipeline_settings::domLighting_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLighting_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "lighting_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domLighting_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLighting_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLighting_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLighting_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLight_model_two_side_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domLight_model_two_side_enableRef ref = new(bytes) domGles_pipeline_settings::domLight_model_two_side_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLight_model_two_side_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light_model_two_side_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domLight_model_two_side_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_model_two_side_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLight_model_two_side_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLight_model_two_side_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domLine_smooth_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domLine_smooth_enableRef ref = new(bytes) domGles_pipeline_settings::domLine_smooth_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domLine_smooth_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "line_smooth_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domLine_smooth_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLine_smooth_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domLine_smooth_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domLine_smooth_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domMultisample_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domMultisample_enableRef ref = new(bytes) domGles_pipeline_settings::domMultisample_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domMultisample_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "multisample_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domMultisample_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMultisample_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domMultisample_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domMultisample_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domNormalize_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domNormalize_enableRef ref = new(bytes) domGles_pipeline_settings::domNormalize_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domNormalize_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "normalize_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domNormalize_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domNormalize_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domNormalize_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domNormalize_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domPoint_smooth_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domPoint_smooth_enableRef ref = new(bytes) domGles_pipeline_settings::domPoint_smooth_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domPoint_smooth_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "point_smooth_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domPoint_smooth_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_smooth_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPoint_smooth_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPoint_smooth_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domPolygon_offset_fill_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domPolygon_offset_fill_enableRef ref = new(bytes) domGles_pipeline_settings::domPolygon_offset_fill_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domPolygon_offset_fill_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "polygon_offset_fill_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domPolygon_offset_fill_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPolygon_offset_fill_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domPolygon_offset_fill_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domPolygon_offset_fill_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domRescale_normal_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domRescale_normal_enableRef ref = new(bytes) domGles_pipeline_settings::domRescale_normal_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domRescale_normal_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "rescale_normal_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domRescale_normal_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domRescale_normal_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domRescale_normal_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domRescale_normal_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domSample_alpha_to_coverage_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domSample_alpha_to_coverage_enableRef ref = new(bytes) domGles_pipeline_settings::domSample_alpha_to_coverage_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domSample_alpha_to_coverage_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "sample_alpha_to_coverage_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domSample_alpha_to_coverage_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domSample_alpha_to_coverage_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domSample_alpha_to_coverage_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domSample_alpha_to_coverage_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domSample_alpha_to_one_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domSample_alpha_to_one_enableRef ref = new(bytes) domGles_pipeline_settings::domSample_alpha_to_one_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domSample_alpha_to_one_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "sample_alpha_to_one_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domSample_alpha_to_one_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domSample_alpha_to_one_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domSample_alpha_to_one_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domSample_alpha_to_one_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domSample_coverage_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domSample_coverage_enableRef ref = new(bytes) domGles_pipeline_settings::domSample_coverage_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domSample_coverage_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "sample_coverage_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domSample_coverage_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domSample_coverage_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domSample_coverage_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domSample_coverage_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domScissor_test_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domScissor_test_enableRef ref = new(bytes) domGles_pipeline_settings::domScissor_test_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domScissor_test_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "scissor_test_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domScissor_test_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domScissor_test_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domScissor_test_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domScissor_test_enable)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_pipeline_settings::domStencil_test_enable::create(daeInt bytes) -{ - domGles_pipeline_settings::domStencil_test_enableRef ref = new(bytes) domGles_pipeline_settings::domStencil_test_enable; - return ref; -} - - -daeMetaElement * -domGles_pipeline_settings::domStencil_test_enable::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "stencil_test_enable" ); - _Meta->registerClass(domGles_pipeline_settings::domStencil_test_enable::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_test_enable , attrValue )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_pipeline_settings::domStencil_test_enable , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_pipeline_settings::domStencil_test_enable)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGles_pipeline_settings::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domAlpha_func::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domAlpha_func::domFunc::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domAlpha_func::domValue::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domBlend_func::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domBlend_func::domSrc::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domBlend_func::domDest::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domClear_color::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domClear_stencil::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domClear_depth::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domClip_plane::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domColor_mask::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domCull_face::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domDepth_func::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domDepth_mask::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domDepth_range::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domFog_color::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domFog_density::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domFog_mode::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domFog_start::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domFog_end::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domFront_face::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domTexture_pipeline::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLogic_op::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLight_ambient::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLight_diffuse::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLight_specular::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLight_position::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLight_constant_attenuation::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLight_linear_attenutation::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLight_quadratic_attenuation::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLight_spot_cutoff::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLight_spot_direction::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLight_spot_exponent::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLight_model_ambient::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLine_width::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domMaterial_ambient::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domMaterial_diffuse::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domMaterial_emission::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domMaterial_shininess::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domMaterial_specular::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domModel_view_matrix::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domPoint_distance_attenuation::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domPoint_fade_threshold_size::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domPoint_size::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domPoint_size_min::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domPoint_size_max::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domPolygon_offset::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domProjection_matrix::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domScissor::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domShade_model::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domStencil_func::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domStencil_func::domFunc::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domStencil_func::domRef::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domStencil_func::domMask::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domStencil_mask::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domStencil_op::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domStencil_op::domFail::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domStencil_op::domZfail::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domStencil_op::domZpass::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domAlpha_test_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domBlend_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domClip_plane_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domColor_logic_op_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domColor_material_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domCull_face_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domDepth_test_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domDither_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domFog_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domTexture_pipeline_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLight_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLighting_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLight_model_two_side_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domLine_smooth_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domMultisample_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domNormalize_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domPoint_smooth_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domPolygon_offset_fill_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domRescale_normal_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domSample_alpha_to_coverage_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domSample_alpha_to_one_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domSample_coverage_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domScissor_test_enable::_Meta = NULL; -daeMetaElement * domGles_pipeline_settings::domStencil_test_enable::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_sampler_state.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_sampler_state.cpp deleted file mode 100644 index c0e1888a9..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGles_sampler_state.cpp +++ /dev/null @@ -1,368 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGles_sampler_state::create(daeInt bytes) -{ - domGles_sampler_stateRef ref = new(bytes) domGles_sampler_state; - return ref; -} - - -daeMetaElement * -domGles_sampler_state::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gles_sampler_state" ); - _Meta->registerClass(domGles_sampler_state::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "wrap_s" ); - mea->setOffset( daeOffsetOf(domGles_sampler_state,elemWrap_s) ); - mea->setElementType( domGles_sampler_state::domWrap_s::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "wrap_t" ); - mea->setOffset( daeOffsetOf(domGles_sampler_state,elemWrap_t) ); - mea->setElementType( domGles_sampler_state::domWrap_t::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "minfilter" ); - mea->setOffset( daeOffsetOf(domGles_sampler_state,elemMinfilter) ); - mea->setElementType( domGles_sampler_state::domMinfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "magfilter" ); - mea->setOffset( daeOffsetOf(domGles_sampler_state,elemMagfilter) ); - mea->setElementType( domGles_sampler_state::domMagfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "mipfilter" ); - mea->setOffset( daeOffsetOf(domGles_sampler_state,elemMipfilter) ); - mea->setElementType( domGles_sampler_state::domMipfilter::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "mipmap_maxlevel" ); - mea->setOffset( daeOffsetOf(domGles_sampler_state,elemMipmap_maxlevel) ); - mea->setElementType( domGles_sampler_state::domMipmap_maxlevel::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "mipmap_bias" ); - mea->setOffset( daeOffsetOf(domGles_sampler_state,elemMipmap_bias) ); - mea->setElementType( domGles_sampler_state::domMipmap_bias::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 7, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domGles_sampler_state,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 7 ); - _Meta->setCMRoot( cm ); - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_sampler_state , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_sampler_state)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_sampler_state::domWrap_s::create(daeInt bytes) -{ - domGles_sampler_state::domWrap_sRef ref = new(bytes) domGles_sampler_state::domWrap_s; - return ref; -} - - -daeMetaElement * -domGles_sampler_state::domWrap_s::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_s" ); - _Meta->registerClass(domGles_sampler_state::domWrap_s::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Gles_sampler_wrap")); - ma->setOffset( daeOffsetOf( domGles_sampler_state::domWrap_s , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_sampler_state::domWrap_s)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_sampler_state::domWrap_t::create(daeInt bytes) -{ - domGles_sampler_state::domWrap_tRef ref = new(bytes) domGles_sampler_state::domWrap_t; - return ref; -} - - -daeMetaElement * -domGles_sampler_state::domWrap_t::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "wrap_t" ); - _Meta->registerClass(domGles_sampler_state::domWrap_t::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Gles_sampler_wrap")); - ma->setOffset( daeOffsetOf( domGles_sampler_state::domWrap_t , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_sampler_state::domWrap_t)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_sampler_state::domMinfilter::create(daeInt bytes) -{ - domGles_sampler_state::domMinfilterRef ref = new(bytes) domGles_sampler_state::domMinfilter; - return ref; -} - - -daeMetaElement * -domGles_sampler_state::domMinfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "minfilter" ); - _Meta->registerClass(domGles_sampler_state::domMinfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domGles_sampler_state::domMinfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_sampler_state::domMinfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_sampler_state::domMagfilter::create(daeInt bytes) -{ - domGles_sampler_state::domMagfilterRef ref = new(bytes) domGles_sampler_state::domMagfilter; - return ref; -} - - -daeMetaElement * -domGles_sampler_state::domMagfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "magfilter" ); - _Meta->registerClass(domGles_sampler_state::domMagfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domGles_sampler_state::domMagfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_sampler_state::domMagfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_sampler_state::domMipfilter::create(daeInt bytes) -{ - domGles_sampler_state::domMipfilterRef ref = new(bytes) domGles_sampler_state::domMipfilter; - return ref; -} - - -daeMetaElement * -domGles_sampler_state::domMipfilter::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipfilter" ); - _Meta->registerClass(domGles_sampler_state::domMipfilter::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_sampler_filter_common")); - ma->setOffset( daeOffsetOf( domGles_sampler_state::domMipfilter , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_sampler_state::domMipfilter)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_sampler_state::domMipmap_maxlevel::create(daeInt bytes) -{ - domGles_sampler_state::domMipmap_maxlevelRef ref = new(bytes) domGles_sampler_state::domMipmap_maxlevel; - return ref; -} - - -daeMetaElement * -domGles_sampler_state::domMipmap_maxlevel::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipmap_maxlevel" ); - _Meta->registerClass(domGles_sampler_state::domMipmap_maxlevel::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsUnsignedByte")); - ma->setOffset( daeOffsetOf( domGles_sampler_state::domMipmap_maxlevel , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_sampler_state::domMipmap_maxlevel)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_sampler_state::domMipmap_bias::create(daeInt bytes) -{ - domGles_sampler_state::domMipmap_biasRef ref = new(bytes) domGles_sampler_state::domMipmap_bias; - return ref; -} - - -daeMetaElement * -domGles_sampler_state::domMipmap_bias::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mipmap_bias" ); - _Meta->registerClass(domGles_sampler_state::domMipmap_bias::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsFloat")); - ma->setOffset( daeOffsetOf( domGles_sampler_state::domMipmap_bias , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_sampler_state::domMipmap_bias)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGles_sampler_state::_Meta = NULL; -daeMetaElement * domGles_sampler_state::domWrap_s::_Meta = NULL; -daeMetaElement * domGles_sampler_state::domWrap_t::_Meta = NULL; -daeMetaElement * domGles_sampler_state::domMinfilter::_Meta = NULL; -daeMetaElement * domGles_sampler_state::domMagfilter::_Meta = NULL; -daeMetaElement * domGles_sampler_state::domMipfilter::_Meta = NULL; -daeMetaElement * domGles_sampler_state::domMipmap_maxlevel::_Meta = NULL; -daeMetaElement * domGles_sampler_state::domMipmap_bias::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_argumentAlpha_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_argumentAlpha_type.cpp deleted file mode 100644 index d72b09cad..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_argumentAlpha_type.cpp +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGles_texcombiner_argumentAlpha_type::create(daeInt bytes) -{ - domGles_texcombiner_argumentAlpha_typeRef ref = new(bytes) domGles_texcombiner_argumentAlpha_type; - return ref; -} - - -daeMetaElement * -domGles_texcombiner_argumentAlpha_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gles_texcombiner_argumentAlpha_type" ); - _Meta->registerClass(domGles_texcombiner_argumentAlpha_type::create, &_Meta); - - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("Gles_texcombiner_source_enums")); - ma->setOffset( daeOffsetOf( domGles_texcombiner_argumentAlpha_type , attrSource )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: operand - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "operand" ); - ma->setType( daeAtomicType::get("Gles_texcombiner_operandAlpha_enums")); - ma->setOffset( daeOffsetOf( domGles_texcombiner_argumentAlpha_type , attrOperand )); - ma->setContainer( _Meta ); - ma->setDefault( "SRC_ALPHA"); - - _Meta->appendAttribute(ma); - } - - // Add attribute: unit - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "unit" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_texcombiner_argumentAlpha_type , attrUnit )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_texcombiner_argumentAlpha_type)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGles_texcombiner_argumentAlpha_type::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_argumentRGB_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_argumentRGB_type.cpp deleted file mode 100644 index ac0774ad5..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_argumentRGB_type.cpp +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGles_texcombiner_argumentRGB_type::create(daeInt bytes) -{ - domGles_texcombiner_argumentRGB_typeRef ref = new(bytes) domGles_texcombiner_argumentRGB_type; - return ref; -} - - -daeMetaElement * -domGles_texcombiner_argumentRGB_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gles_texcombiner_argumentRGB_type" ); - _Meta->registerClass(domGles_texcombiner_argumentRGB_type::create, &_Meta); - - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("Gles_texcombiner_source_enums")); - ma->setOffset( daeOffsetOf( domGles_texcombiner_argumentRGB_type , attrSource )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: operand - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "operand" ); - ma->setType( daeAtomicType::get("Gles_texcombiner_operandRGB_enums")); - ma->setOffset( daeOffsetOf( domGles_texcombiner_argumentRGB_type , attrOperand )); - ma->setContainer( _Meta ); - ma->setDefault( "SRC_COLOR"); - - _Meta->appendAttribute(ma); - } - - // Add attribute: unit - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "unit" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_texcombiner_argumentRGB_type , attrUnit )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_texcombiner_argumentRGB_type)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGles_texcombiner_argumentRGB_type::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_commandAlpha_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_commandAlpha_type.cpp deleted file mode 100644 index 89a966f24..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_commandAlpha_type.cpp +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGles_texcombiner_commandAlpha_type::create(daeInt bytes) -{ - domGles_texcombiner_commandAlpha_typeRef ref = new(bytes) domGles_texcombiner_commandAlpha_type; - return ref; -} - - -daeMetaElement * -domGles_texcombiner_commandAlpha_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gles_texcombiner_commandAlpha_type" ); - _Meta->registerClass(domGles_texcombiner_commandAlpha_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 3 ); - mea->setName( "argument" ); - mea->setOffset( daeOffsetOf(domGles_texcombiner_commandAlpha_type,elemArgument_array) ); - mea->setElementType( domGles_texcombiner_argumentAlpha_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: operator - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "operator" ); - ma->setType( daeAtomicType::get("Gles_texcombiner_operatorAlpha_enums")); - ma->setOffset( daeOffsetOf( domGles_texcombiner_commandAlpha_type , attrOperator )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: scale - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "scale" ); - ma->setType( daeAtomicType::get("xsFloat")); - ma->setOffset( daeOffsetOf( domGles_texcombiner_commandAlpha_type , attrScale )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_texcombiner_commandAlpha_type)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGles_texcombiner_commandAlpha_type::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_commandRGB_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_commandRGB_type.cpp deleted file mode 100644 index 599014c1f..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_commandRGB_type.cpp +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGles_texcombiner_commandRGB_type::create(daeInt bytes) -{ - domGles_texcombiner_commandRGB_typeRef ref = new(bytes) domGles_texcombiner_commandRGB_type; - return ref; -} - - -daeMetaElement * -domGles_texcombiner_commandRGB_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gles_texcombiner_commandRGB_type" ); - _Meta->registerClass(domGles_texcombiner_commandRGB_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 3 ); - mea->setName( "argument" ); - mea->setOffset( daeOffsetOf(domGles_texcombiner_commandRGB_type,elemArgument_array) ); - mea->setElementType( domGles_texcombiner_argumentRGB_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: operator - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "operator" ); - ma->setType( daeAtomicType::get("Gles_texcombiner_operatorRGB_enums")); - ma->setOffset( daeOffsetOf( domGles_texcombiner_commandRGB_type , attrOperator )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: scale - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "scale" ); - ma->setType( daeAtomicType::get("xsFloat")); - ma->setOffset( daeOffsetOf( domGles_texcombiner_commandRGB_type , attrScale )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_texcombiner_commandRGB_type)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGles_texcombiner_commandRGB_type::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_command_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_command_type.cpp deleted file mode 100644 index 1c3f73d95..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texcombiner_command_type.cpp +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGles_texcombiner_command_type::create(daeInt bytes) -{ - domGles_texcombiner_command_typeRef ref = new(bytes) domGles_texcombiner_command_type; - return ref; -} - - -daeMetaElement * -domGles_texcombiner_command_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gles_texcombiner_command_type" ); - _Meta->registerClass(domGles_texcombiner_command_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "constant" ); - mea->setOffset( daeOffsetOf(domGles_texcombiner_command_type,elemConstant) ); - mea->setElementType( domGles_texture_constant_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "RGB" ); - mea->setOffset( daeOffsetOf(domGles_texcombiner_command_type,elemRGB) ); - mea->setElementType( domGles_texcombiner_commandRGB_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "alpha" ); - mea->setOffset( daeOffsetOf(domGles_texcombiner_command_type,elemAlpha) ); - mea->setElementType( domGles_texcombiner_commandAlpha_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domGles_texcombiner_command_type)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGles_texcombiner_command_type::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texenv_command_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texenv_command_type.cpp deleted file mode 100644 index 3c5600baf..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texenv_command_type.cpp +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGles_texenv_command_type::create(daeInt bytes) -{ - domGles_texenv_command_typeRef ref = new(bytes) domGles_texenv_command_type; - return ref; -} - - -daeMetaElement * -domGles_texenv_command_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gles_texenv_command_type" ); - _Meta->registerClass(domGles_texenv_command_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "constant" ); - mea->setOffset( daeOffsetOf(domGles_texenv_command_type,elemConstant) ); - mea->setElementType( domGles_texture_constant_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: operator - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "operator" ); - ma->setType( daeAtomicType::get("Gles_texenv_mode_enums")); - ma->setOffset( daeOffsetOf( domGles_texenv_command_type , attrOperator )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: unit - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "unit" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_texenv_command_type , attrUnit )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_texenv_command_type)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGles_texenv_command_type::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_constant_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_constant_type.cpp deleted file mode 100644 index d36de1790..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_constant_type.cpp +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGles_texture_constant_type::create(daeInt bytes) -{ - domGles_texture_constant_typeRef ref = new(bytes) domGles_texture_constant_type; - return ref; -} - - -daeMetaElement * -domGles_texture_constant_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gles_texture_constant_type" ); - _Meta->registerClass(domGles_texture_constant_type::create, &_Meta); - - - // Add attribute: value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domGles_texture_constant_type , attrValue )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: param - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "param" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_texture_constant_type , attrParam )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_texture_constant_type)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGles_texture_constant_type::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_pipeline.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_pipeline.cpp deleted file mode 100644 index be73c5a21..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_pipeline.cpp +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGles_texture_pipeline::create(daeInt bytes) -{ - domGles_texture_pipelineRef ref = new(bytes) domGles_texture_pipeline; - return ref; -} - - -daeMetaElement * -domGles_texture_pipeline::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gles_texture_pipeline" ); - _Meta->registerClass(domGles_texture_pipeline::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texcombiner" ); - mea->setOffset( daeOffsetOf(domGles_texture_pipeline,elemTexcombiner_array) ); - mea->setElementType( domGles_texcombiner_command_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "texenv" ); - mea->setOffset( daeOffsetOf(domGles_texture_pipeline,elemTexenv_array) ); - mea->setElementType( domGles_texenv_command_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domGles_texture_pipeline,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3000 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGles_texture_pipeline,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGles_texture_pipeline,_contentsOrder)); - - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_texture_pipeline , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_texture_pipeline)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGles_texture_pipeline::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_unit.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_unit.cpp deleted file mode 100644 index b6e77306f..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_unit.cpp +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGles_texture_unit::create(daeInt bytes) -{ - domGles_texture_unitRef ref = new(bytes) domGles_texture_unit; - return ref; -} - - -daeMetaElement * -domGles_texture_unit::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "gles_texture_unit" ); - _Meta->registerClass(domGles_texture_unit::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "surface" ); - mea->setOffset( daeOffsetOf(domGles_texture_unit,elemSurface) ); - mea->setElementType( domGles_texture_unit::domSurface::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "sampler_state" ); - mea->setOffset( daeOffsetOf(domGles_texture_unit,elemSampler_state) ); - mea->setElementType( domGles_texture_unit::domSampler_state::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "texcoord" ); - mea->setOffset( daeOffsetOf(domGles_texture_unit,elemTexcoord) ); - mea->setElementType( domGles_texture_unit::domTexcoord::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domGles_texture_unit,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_texture_unit , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_texture_unit)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_texture_unit::domSurface::create(daeInt bytes) -{ - domGles_texture_unit::domSurfaceRef ref = new(bytes) domGles_texture_unit::domSurface; - return ref; -} - - -daeMetaElement * -domGles_texture_unit::domSurface::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "surface" ); - _Meta->registerClass(domGles_texture_unit::domSurface::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_texture_unit::domSurface , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_texture_unit::domSurface)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_texture_unit::domSampler_state::create(daeInt bytes) -{ - domGles_texture_unit::domSampler_stateRef ref = new(bytes) domGles_texture_unit::domSampler_state; - return ref; -} - - -daeMetaElement * -domGles_texture_unit::domSampler_state::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "sampler_state" ); - _Meta->registerClass(domGles_texture_unit::domSampler_state::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_texture_unit::domSampler_state , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_texture_unit::domSampler_state)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGles_texture_unit::domTexcoord::create(daeInt bytes) -{ - domGles_texture_unit::domTexcoordRef ref = new(bytes) domGles_texture_unit::domTexcoord; - return ref; -} - - -daeMetaElement * -domGles_texture_unit::domTexcoord::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "texcoord" ); - _Meta->registerClass(domGles_texture_unit::domTexcoord::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: semantic - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "semantic" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGles_texture_unit::domTexcoord , attrSemantic )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGles_texture_unit::domTexcoord)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGles_texture_unit::_Meta = NULL; -daeMetaElement * domGles_texture_unit::domSurface::_Meta = NULL; -daeMetaElement * domGles_texture_unit::domSampler_state::_Meta = NULL; -daeMetaElement * domGles_texture_unit::domTexcoord::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_newarray_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_newarray_type.cpp deleted file mode 100644 index 586c8d230..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_newarray_type.cpp +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGlsl_newarray_type::create(daeInt bytes) -{ - domGlsl_newarray_typeRef ref = new(bytes) domGlsl_newarray_type; - return ref; -} - - -daeMetaElement * -domGlsl_newarray_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "glsl_newarray_type" ); - _Meta->registerClass(domGlsl_newarray_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "glsl_param_type" ); - mea->setOffset( daeOffsetOf(domGlsl_newarray_type,elemGlsl_param_type_array) ); - mea->setElementType( domGlsl_param_type::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "array" ); - mea->setOffset( daeOffsetOf(domGlsl_newarray_type,elemArray_array) ); - mea->setElementType( domGlsl_newarray_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3000 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGlsl_newarray_type,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGlsl_newarray_type,_contentsOrder)); - - - // Add attribute: length - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "length" ); - ma->setType( daeAtomicType::get("xsPositiveInteger")); - ma->setOffset( daeOffsetOf( domGlsl_newarray_type , attrLength )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_newarray_type)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGlsl_newarray_type::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_newparam.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_newparam.cpp deleted file mode 100644 index 0dd072d96..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_newparam.cpp +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGlsl_newparam::create(daeInt bytes) -{ - domGlsl_newparamRef ref = new(bytes) domGlsl_newparam; - return ref; -} - - -daeMetaElement * -domGlsl_newparam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "glsl_newparam" ); - _Meta->registerClass(domGlsl_newparam::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domGlsl_newparam,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "semantic" ); - mea->setOffset( daeOffsetOf(domGlsl_newparam,elemSemantic) ); - mea->setElementType( domGlsl_newparam::domSemantic::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "modifier" ); - mea->setOffset( daeOffsetOf(domGlsl_newparam,elemModifier) ); - mea->setElementType( domGlsl_newparam::domModifier::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 3, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "glsl_param_type" ); - mea->setOffset( daeOffsetOf(domGlsl_newparam,elemGlsl_param_type) ); - mea->setElementType( domGlsl_param_type::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "array" ); - mea->setOffset( daeOffsetOf(domGlsl_newparam,elemArray) ); - mea->setElementType( domGlsl_newarray_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGlsl_newparam,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGlsl_newparam,_contentsOrder)); - - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("Glsl_identifier")); - ma->setOffset( daeOffsetOf( domGlsl_newparam , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_newparam)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_newparam::domSemantic::create(daeInt bytes) -{ - domGlsl_newparam::domSemanticRef ref = new(bytes) domGlsl_newparam::domSemantic; - return ref; -} - - -daeMetaElement * -domGlsl_newparam::domSemantic::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "semantic" ); - _Meta->registerClass(domGlsl_newparam::domSemantic::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGlsl_newparam::domSemantic , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_newparam::domSemantic)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_newparam::domModifier::create(daeInt bytes) -{ - domGlsl_newparam::domModifierRef ref = new(bytes) domGlsl_newparam::domModifier; - return ref; -} - - -daeMetaElement * -domGlsl_newparam::domModifier::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "modifier" ); - _Meta->registerClass(domGlsl_newparam::domModifier::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_modifier_enum_common")); - ma->setOffset( daeOffsetOf( domGlsl_newparam::domModifier , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_newparam::domModifier)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGlsl_newparam::_Meta = NULL; -daeMetaElement * domGlsl_newparam::domSemantic::_Meta = NULL; -daeMetaElement * domGlsl_newparam::domModifier::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_param_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_param_type.cpp deleted file mode 100644 index 5a2ec31a2..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_param_type.cpp +++ /dev/null @@ -1,776 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGlsl_param_type::create(daeInt bytes) -{ - domGlsl_param_typeRef ref = new(bytes) domGlsl_param_type; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "glsl_param_type" ); - _Meta->registerClass(domGlsl_param_type::create, &_Meta); - - _Meta->setIsTransparent( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemBool) ); - mea->setElementType( domGlsl_param_type::domBool::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool2" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemBool2) ); - mea->setElementType( domGlsl_param_type::domBool2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool3" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemBool3) ); - mea->setElementType( domGlsl_param_type::domBool3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool4" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemBool4) ); - mea->setElementType( domGlsl_param_type::domBool4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemFloat) ); - mea->setElementType( domGlsl_param_type::domFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemFloat2) ); - mea->setElementType( domGlsl_param_type::domFloat2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemFloat3) ); - mea->setElementType( domGlsl_param_type::domFloat3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemFloat4) ); - mea->setElementType( domGlsl_param_type::domFloat4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float2x2" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemFloat2x2) ); - mea->setElementType( domGlsl_param_type::domFloat2x2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float3x3" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemFloat3x3) ); - mea->setElementType( domGlsl_param_type::domFloat3x3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float4x4" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemFloat4x4) ); - mea->setElementType( domGlsl_param_type::domFloat4x4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemInt) ); - mea->setElementType( domGlsl_param_type::domInt::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int2" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemInt2) ); - mea->setElementType( domGlsl_param_type::domInt2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int3" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemInt3) ); - mea->setElementType( domGlsl_param_type::domInt3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int4" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemInt4) ); - mea->setElementType( domGlsl_param_type::domInt4::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "surface" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemSurface) ); - mea->setElementType( domGlsl_surface_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sampler1D" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemSampler1D) ); - mea->setElementType( domGl_sampler1D::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sampler2D" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemSampler2D) ); - mea->setElementType( domGl_sampler2D::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sampler3D" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemSampler3D) ); - mea->setElementType( domGl_sampler3D::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "samplerCUBE" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemSamplerCUBE) ); - mea->setElementType( domGl_samplerCUBE::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "samplerRECT" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemSamplerRECT) ); - mea->setElementType( domGl_samplerRECT::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "samplerDEPTH" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemSamplerDEPTH) ); - mea->setElementType( domGl_samplerDEPTH::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "enum" ); - mea->setOffset( daeOffsetOf(domGlsl_param_type,elemEnum) ); - mea->setElementType( domGlsl_param_type::domEnum::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGlsl_param_type,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGlsl_param_type,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domGlsl_param_type)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domBool::create(daeInt bytes) -{ - domGlsl_param_type::domBoolRef ref = new(bytes) domGlsl_param_type::domBool; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domBool::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool" ); - _Meta->registerClass(domGlsl_param_type::domBool::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_bool")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domBool , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domBool)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domBool2::create(daeInt bytes) -{ - domGlsl_param_type::domBool2Ref ref = new(bytes) domGlsl_param_type::domBool2; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domBool2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool2" ); - _Meta->registerClass(domGlsl_param_type::domBool2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_bool2")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domBool2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domBool2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domBool3::create(daeInt bytes) -{ - domGlsl_param_type::domBool3Ref ref = new(bytes) domGlsl_param_type::domBool3; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domBool3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool3" ); - _Meta->registerClass(domGlsl_param_type::domBool3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_bool3")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domBool3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domBool3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domBool4::create(daeInt bytes) -{ - domGlsl_param_type::domBool4Ref ref = new(bytes) domGlsl_param_type::domBool4; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domBool4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bool4" ); - _Meta->registerClass(domGlsl_param_type::domBool4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_bool4")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domBool4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domBool4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domFloat::create(daeInt bytes) -{ - domGlsl_param_type::domFloatRef ref = new(bytes) domGlsl_param_type::domFloat; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domFloat::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float" ); - _Meta->registerClass(domGlsl_param_type::domFloat::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_float")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domFloat2::create(daeInt bytes) -{ - domGlsl_param_type::domFloat2Ref ref = new(bytes) domGlsl_param_type::domFloat2; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domFloat2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2" ); - _Meta->registerClass(domGlsl_param_type::domFloat2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_float2")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domFloat3::create(daeInt bytes) -{ - domGlsl_param_type::domFloat3Ref ref = new(bytes) domGlsl_param_type::domFloat3; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domFloat3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3" ); - _Meta->registerClass(domGlsl_param_type::domFloat3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_float3")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domFloat4::create(daeInt bytes) -{ - domGlsl_param_type::domFloat4Ref ref = new(bytes) domGlsl_param_type::domFloat4; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domFloat4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4" ); - _Meta->registerClass(domGlsl_param_type::domFloat4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_float4")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domFloat2x2::create(daeInt bytes) -{ - domGlsl_param_type::domFloat2x2Ref ref = new(bytes) domGlsl_param_type::domFloat2x2; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domFloat2x2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float2x2" ); - _Meta->registerClass(domGlsl_param_type::domFloat2x2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_float2x2")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat2x2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat2x2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domFloat3x3::create(daeInt bytes) -{ - domGlsl_param_type::domFloat3x3Ref ref = new(bytes) domGlsl_param_type::domFloat3x3; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domFloat3x3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float3x3" ); - _Meta->registerClass(domGlsl_param_type::domFloat3x3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_float3x3")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat3x3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat3x3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domFloat4x4::create(daeInt bytes) -{ - domGlsl_param_type::domFloat4x4Ref ref = new(bytes) domGlsl_param_type::domFloat4x4; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domFloat4x4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "float4x4" ); - _Meta->registerClass(domGlsl_param_type::domFloat4x4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_float4x4")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domFloat4x4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domFloat4x4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domInt::create(daeInt bytes) -{ - domGlsl_param_type::domIntRef ref = new(bytes) domGlsl_param_type::domInt; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domInt::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int" ); - _Meta->registerClass(domGlsl_param_type::domInt::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_int")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domInt , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domInt)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domInt2::create(daeInt bytes) -{ - domGlsl_param_type::domInt2Ref ref = new(bytes) domGlsl_param_type::domInt2; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domInt2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int2" ); - _Meta->registerClass(domGlsl_param_type::domInt2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_int2")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domInt2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domInt2)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domInt3::create(daeInt bytes) -{ - domGlsl_param_type::domInt3Ref ref = new(bytes) domGlsl_param_type::domInt3; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domInt3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int3" ); - _Meta->registerClass(domGlsl_param_type::domInt3::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_int3")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domInt3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domInt3)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domInt4::create(daeInt bytes) -{ - domGlsl_param_type::domInt4Ref ref = new(bytes) domGlsl_param_type::domInt4; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domInt4::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int4" ); - _Meta->registerClass(domGlsl_param_type::domInt4::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Glsl_int4")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domInt4 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domInt4)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_param_type::domEnum::create(daeInt bytes) -{ - domGlsl_param_type::domEnumRef ref = new(bytes) domGlsl_param_type::domEnum; - return ref; -} - - -daeMetaElement * -domGlsl_param_type::domEnum::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "enum" ); - _Meta->registerClass(domGlsl_param_type::domEnum::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Gl_enumeration")); - ma->setOffset( daeOffsetOf( domGlsl_param_type::domEnum , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_param_type::domEnum)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGlsl_param_type::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domBool::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domBool2::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domBool3::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domBool4::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domFloat::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domFloat2::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domFloat3::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domFloat4::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domFloat2x2::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domFloat3x3::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domFloat4x4::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domInt::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domInt2::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domInt3::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domInt4::_Meta = NULL; -daeMetaElement * domGlsl_param_type::domEnum::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setarray_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setarray_type.cpp deleted file mode 100644 index 2eefe1f1e..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setarray_type.cpp +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGlsl_setarray_type::create(daeInt bytes) -{ - domGlsl_setarray_typeRef ref = new(bytes) domGlsl_setarray_type; - return ref; -} - - -daeMetaElement * -domGlsl_setarray_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "glsl_setarray_type" ); - _Meta->registerClass(domGlsl_setarray_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "glsl_param_type" ); - mea->setOffset( daeOffsetOf(domGlsl_setarray_type,elemGlsl_param_type_array) ); - mea->setElementType( domGlsl_param_type::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "array" ); - mea->setOffset( daeOffsetOf(domGlsl_setarray_type,elemArray_array) ); - mea->setElementType( domGlsl_setarray_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3000 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGlsl_setarray_type,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGlsl_setarray_type,_contentsOrder)); - - - // Add attribute: length - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "length" ); - ma->setType( daeAtomicType::get("xsPositiveInteger")); - ma->setOffset( daeOffsetOf( domGlsl_setarray_type , attrLength )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_setarray_type)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGlsl_setarray_type::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setparam.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setparam.cpp deleted file mode 100644 index 20ec4b71e..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setparam.cpp +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGlsl_setparam::create(daeInt bytes) -{ - domGlsl_setparamRef ref = new(bytes) domGlsl_setparam; - return ref; -} - - -daeMetaElement * -domGlsl_setparam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "glsl_setparam" ); - _Meta->registerClass(domGlsl_setparam::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domGlsl_setparam,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "glsl_param_type" ); - mea->setOffset( daeOffsetOf(domGlsl_setparam,elemGlsl_param_type) ); - mea->setElementType( domGlsl_param_type::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "array" ); - mea->setOffset( daeOffsetOf(domGlsl_setparam,elemArray) ); - mea->setElementType( domGlsl_setarray_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGlsl_setparam,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGlsl_setparam,_contentsOrder)); - - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("Glsl_identifier")); - ma->setOffset( daeOffsetOf( domGlsl_setparam , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: program - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "program" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGlsl_setparam , attrProgram )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_setparam)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGlsl_setparam::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setparam_simple.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setparam_simple.cpp deleted file mode 100644 index 59fee2d1b..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_setparam_simple.cpp +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGlsl_setparam_simple::create(daeInt bytes) -{ - domGlsl_setparam_simpleRef ref = new(bytes) domGlsl_setparam_simple; - return ref; -} - - -daeMetaElement * -domGlsl_setparam_simple::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "glsl_setparam_simple" ); - _Meta->registerClass(domGlsl_setparam_simple::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domGlsl_setparam_simple,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "glsl_param_type" ); - mea->setOffset( daeOffsetOf(domGlsl_setparam_simple,elemGlsl_param_type) ); - mea->setElementType( domGlsl_param_type::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 1, 1, 1 ) ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("Glsl_identifier")); - ma->setOffset( daeOffsetOf( domGlsl_setparam_simple , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_setparam_simple)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGlsl_setparam_simple::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_surface_type.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_surface_type.cpp deleted file mode 100644 index 956e38c1b..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domGlsl_surface_type.cpp +++ /dev/null @@ -1,266 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domGlsl_surface_type::create(daeInt bytes) -{ - domGlsl_surface_typeRef ref = new(bytes) domGlsl_surface_type; - return ref; -} - - -daeMetaElement * -domGlsl_surface_type::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "glsl_surface_type" ); - _Meta->registerClass(domGlsl_surface_type::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "fx_surface_init_common" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type,elemFx_surface_init_common) ); - mea->setElementType( domFx_surface_init_common::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 0, 1 ) ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "format" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type,elemFormat) ); - mea->setElementType( domFormat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "format_hint" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type,elemFormat_hint) ); - mea->setElementType( domFx_surface_format_hint_common::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 3, 0, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "size" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type,elemSize) ); - mea->setElementType( domSize::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "viewport_ratio" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type,elemViewport_ratio) ); - mea->setElementType( domViewport_ratio::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "mip_levels" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type,elemMip_levels) ); - mea->setElementType( domMip_levels::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "mipmap_generate" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type,elemMipmap_generate) ); - mea->setElementType( domMipmap_generate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 6, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 6 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaSequence( _Meta, cm, 7, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "generator" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type,elemGenerator) ); - mea->setElementType( domGenerator::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 7 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGlsl_surface_type,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGlsl_surface_type,_contentsOrder)); - - - // Add attribute: type - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "type" ); - ma->setType( daeAtomicType::get("Fx_surface_type_enum")); - ma->setOffset( daeOffsetOf( domGlsl_surface_type , attrType )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_surface_type)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_surface_type::domGenerator::create(daeInt bytes) -{ - domGlsl_surface_type::domGeneratorRef ref = new(bytes) domGlsl_surface_type::domGenerator; - return ref; -} - - -daeMetaElement * -domGlsl_surface_type::domGenerator::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "generator" ); - _Meta->registerClass(domGlsl_surface_type::domGenerator::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type::domGenerator,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 1, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "code" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type::domGenerator,elemCode_array) ); - mea->setElementType( domFx_code_profile::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "include" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type::domGenerator,elemInclude_array) ); - mea->setElementType( domFx_include_common::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementAttribute( _Meta, cm, 3002, 1, 1 ); - mea->setName( "name" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type::domGenerator,elemName) ); - mea->setElementType( domGlsl_surface_type::domGenerator::domName::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3003, 0, -1 ); - mea->setName( "setparam" ); - mea->setOffset( daeOffsetOf(domGlsl_surface_type::domGenerator,elemSetparam_array) ); - mea->setElementType( domGlsl_setparam_simple::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3003 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domGlsl_surface_type::domGenerator,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domGlsl_surface_type::domGenerator,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domGlsl_surface_type::domGenerator)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domGlsl_surface_type::domGenerator::domName::create(daeInt bytes) -{ - domGlsl_surface_type::domGenerator::domNameRef ref = new(bytes) domGlsl_surface_type::domGenerator::domName; - return ref; -} - - -daeMetaElement * -domGlsl_surface_type::domGenerator::domName::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "name" ); - _Meta->registerClass(domGlsl_surface_type::domGenerator::domName::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGlsl_surface_type::domGenerator::domName , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domGlsl_surface_type::domGenerator::domName , attrSource )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domGlsl_surface_type::domGenerator::domName)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domGlsl_surface_type::_Meta = NULL; -daeMetaElement * domGlsl_surface_type::domGenerator::_Meta = NULL; -daeMetaElement * domGlsl_surface_type::domGenerator::domName::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domIDREF_array.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domIDREF_array.cpp deleted file mode 100644 index e2d61d0b4..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domIDREF_array.cpp +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domIDREF_array::create(daeInt bytes) -{ - domIDREF_arrayRef ref = new(bytes) domIDREF_array; - return ref; -} - - -daeMetaElement * -domIDREF_array::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "IDREF_array" ); - _Meta->registerClass(domIDREF_array::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsIDREFS")); - ma->setOffset( daeOffsetOf( domIDREF_array , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domIDREF_array , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domIDREF_array , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domIDREF_array , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domIDREF_array)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domIDREF_array::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domImage.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domImage.cpp deleted file mode 100644 index 04c5c3e7e..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domImage.cpp +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domImage::create(daeInt bytes) -{ - domImageRef ref = new(bytes) domImage; - return ref; -} - - -daeMetaElement * -domImage::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "image" ); - _Meta->registerClass(domImage::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domImage,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "data" ); - mea->setOffset( daeOffsetOf(domImage,elemData) ); - mea->setElementType( domImage::domData::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "init_from" ); - mea->setOffset( daeOffsetOf(domImage,elemInit_from) ); - mea->setElementType( domImage::domInit_from::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domImage,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domImage,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domImage,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domImage , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domImage , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: format - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "format" ); - ma->setType( daeAtomicType::get("xsToken")); - ma->setOffset( daeOffsetOf( domImage , attrFormat )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: height - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "height" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domImage , attrHeight )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: width - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "width" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domImage , attrWidth )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: depth - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "depth" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domImage , attrDepth )); - ma->setContainer( _Meta ); - ma->setDefault( "1"); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domImage)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domImage::domData::create(daeInt bytes) -{ - domImage::domDataRef ref = new(bytes) domImage::domData; - return ref; -} - - -daeMetaElement * -domImage::domData::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "data" ); - _Meta->registerClass(domImage::domData::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("ListOfHexBinary")); - ma->setOffset( daeOffsetOf( domImage::domData , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domImage::domData)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domImage::domInit_from::create(daeInt bytes) -{ - domImage::domInit_fromRef ref = new(bytes) domImage::domInit_from; - ref->_value.setContainer( (domImage::domInit_from*)ref ); - return ref; -} - - -daeMetaElement * -domImage::domInit_from::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "init_from" ); - _Meta->registerClass(domImage::domInit_from::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domImage::domInit_from , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domImage::domInit_from)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domImage::_Meta = NULL; -daeMetaElement * domImage::domData::_Meta = NULL; -daeMetaElement * domImage::domInit_from::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInputGlobal.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInputGlobal.cpp deleted file mode 100644 index 183acb511..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInputGlobal.cpp +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInputGlobal::create(daeInt bytes) -{ - domInputGlobalRef ref = new(bytes) domInputGlobal; - ref->attrSource.setContainer( (domInputGlobal*)ref ); - return ref; -} - - -daeMetaElement * -domInputGlobal::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "InputGlobal" ); - _Meta->registerClass(domInputGlobal::create, &_Meta); - - - // Add attribute: semantic - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "semantic" ); - ma->setType( daeAtomicType::get("xsNMTOKEN")); - ma->setOffset( daeOffsetOf( domInputGlobal , attrSemantic )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInputGlobal , attrSource )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInputGlobal)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInputGlobal::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInputLocal.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInputLocal.cpp deleted file mode 100644 index b65f06311..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInputLocal.cpp +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInputLocal::create(daeInt bytes) -{ - domInputLocalRef ref = new(bytes) domInputLocal; - ref->attrSource.setContainer( (domInputLocal*)ref ); - return ref; -} - - -daeMetaElement * -domInputLocal::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "InputLocal" ); - _Meta->registerClass(domInputLocal::create, &_Meta); - - - // Add attribute: semantic - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "semantic" ); - ma->setType( daeAtomicType::get("xsNMTOKEN")); - ma->setOffset( daeOffsetOf( domInputLocal , attrSemantic )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("URIFragmentType")); - ma->setOffset( daeOffsetOf( domInputLocal , attrSource )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInputLocal)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInputLocal::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInputLocalOffset.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInputLocalOffset.cpp deleted file mode 100644 index c77878e00..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInputLocalOffset.cpp +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInputLocalOffset::create(daeInt bytes) -{ - domInputLocalOffsetRef ref = new(bytes) domInputLocalOffset; - ref->attrSource.setContainer( (domInputLocalOffset*)ref ); - return ref; -} - - -daeMetaElement * -domInputLocalOffset::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "InputLocalOffset" ); - _Meta->registerClass(domInputLocalOffset::create, &_Meta); - - - // Add attribute: offset - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "offset" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domInputLocalOffset , attrOffset )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: semantic - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "semantic" ); - ma->setType( daeAtomicType::get("xsNMTOKEN")); - ma->setOffset( daeOffsetOf( domInputLocalOffset , attrSemantic )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("URIFragmentType")); - ma->setOffset( daeOffsetOf( domInputLocalOffset , attrSource )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: set - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "set" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domInputLocalOffset , attrSet )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInputLocalOffset)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInputLocalOffset::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstanceWithExtra.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstanceWithExtra.cpp deleted file mode 100644 index 0dac4fbd5..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInstanceWithExtra.cpp +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInstanceWithExtra::create(daeInt bytes) -{ - domInstanceWithExtraRef ref = new(bytes) domInstanceWithExtra; - ref->attrUrl.setContainer( (domInstanceWithExtra*)ref ); - return ref; -} - - -daeMetaElement * -domInstanceWithExtra::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "InstanceWithExtra" ); - _Meta->registerClass(domInstanceWithExtra::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstanceWithExtra,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: url - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "url" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstanceWithExtra , attrUrl )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstanceWithExtra , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstanceWithExtra , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstanceWithExtra)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInstanceWithExtra::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_camera.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_camera.cpp deleted file mode 100644 index dd01eac1f..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_camera.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInstance_camera::create(daeInt bytes) -{ - domInstance_cameraRef ref = new(bytes) domInstance_camera; - return ref; -} - - -daeMetaElement * -domInstance_camera::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "instance_camera" ); - _Meta->registerClass(domInstance_camera::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstance_camera,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: url - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "url" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstance_camera , attrUrl )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_camera , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_camera , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_camera)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInstance_camera::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_controller.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_controller.cpp deleted file mode 100644 index 13baee87d..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_controller.cpp +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInstance_controller::create(daeInt bytes) -{ - domInstance_controllerRef ref = new(bytes) domInstance_controller; - ref->attrUrl.setContainer( (domInstance_controller*)ref ); - return ref; -} - - -daeMetaElement * -domInstance_controller::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "instance_controller" ); - _Meta->registerClass(domInstance_controller::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "skeleton" ); - mea->setOffset( daeOffsetOf(domInstance_controller,elemSkeleton_array) ); - mea->setElementType( domInstance_controller::domSkeleton::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "bind_material" ); - mea->setOffset( daeOffsetOf(domInstance_controller,elemBind_material) ); - mea->setElementType( domBind_material::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstance_controller,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: url - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "url" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstance_controller , attrUrl )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_controller , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_controller , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_controller)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domInstance_controller::domSkeleton::create(daeInt bytes) -{ - domInstance_controller::domSkeletonRef ref = new(bytes) domInstance_controller::domSkeleton; - ref->_value.setContainer( (domInstance_controller::domSkeleton*)ref ); - return ref; -} - - -daeMetaElement * -domInstance_controller::domSkeleton::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "skeleton" ); - _Meta->registerClass(domInstance_controller::domSkeleton::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstance_controller::domSkeleton , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_controller::domSkeleton)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInstance_controller::_Meta = NULL; -daeMetaElement * domInstance_controller::domSkeleton::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_effect.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_effect.cpp deleted file mode 100644 index f1beb62bc..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_effect.cpp +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInstance_effect::create(daeInt bytes) -{ - domInstance_effectRef ref = new(bytes) domInstance_effect; - ref->attrUrl.setContainer( (domInstance_effect*)ref ); - return ref; -} - - -daeMetaElement * -domInstance_effect::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "instance_effect" ); - _Meta->registerClass(domInstance_effect::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "technique_hint" ); - mea->setOffset( daeOffsetOf(domInstance_effect,elemTechnique_hint_array) ); - mea->setElementType( domInstance_effect::domTechnique_hint::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "setparam" ); - mea->setOffset( daeOffsetOf(domInstance_effect,elemSetparam_array) ); - mea->setElementType( domInstance_effect::domSetparam::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstance_effect,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: url - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "url" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstance_effect , attrUrl )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_effect , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_effect , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_effect)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domInstance_effect::domTechnique_hint::create(daeInt bytes) -{ - domInstance_effect::domTechnique_hintRef ref = new(bytes) domInstance_effect::domTechnique_hint; - return ref; -} - - -daeMetaElement * -domInstance_effect::domTechnique_hint::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique_hint" ); - _Meta->registerClass(domInstance_effect::domTechnique_hint::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: platform - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "platform" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_effect::domTechnique_hint , attrPlatform )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: profile - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "profile" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_effect::domTechnique_hint , attrProfile )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_effect::domTechnique_hint , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_effect::domTechnique_hint)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domInstance_effect::domSetparam::create(daeInt bytes) -{ - domInstance_effect::domSetparamRef ref = new(bytes) domInstance_effect::domSetparam; - return ref; -} - - -daeMetaElement * -domInstance_effect::domSetparam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "setparam" ); - _Meta->registerClass(domInstance_effect::domSetparam::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "fx_basic_type_common" ); - mea->setOffset( daeOffsetOf(domInstance_effect::domSetparam,elemFx_basic_type_common) ); - mea->setElementType( domFx_basic_type_common::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("xsToken")); - ma->setOffset( daeOffsetOf( domInstance_effect::domSetparam , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_effect::domSetparam)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInstance_effect::_Meta = NULL; -daeMetaElement * domInstance_effect::domTechnique_hint::_Meta = NULL; -daeMetaElement * domInstance_effect::domSetparam::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_force_field.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_force_field.cpp deleted file mode 100644 index 3dda2fa87..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_force_field.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInstance_force_field::create(daeInt bytes) -{ - domInstance_force_fieldRef ref = new(bytes) domInstance_force_field; - return ref; -} - - -daeMetaElement * -domInstance_force_field::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "instance_force_field" ); - _Meta->registerClass(domInstance_force_field::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstance_force_field,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: url - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "url" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstance_force_field , attrUrl )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_force_field , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_force_field , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_force_field)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInstance_force_field::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_geometry.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_geometry.cpp deleted file mode 100644 index 3369b4a39..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_geometry.cpp +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInstance_geometry::create(daeInt bytes) -{ - domInstance_geometryRef ref = new(bytes) domInstance_geometry; - ref->attrUrl.setContainer( (domInstance_geometry*)ref ); - return ref; -} - - -daeMetaElement * -domInstance_geometry::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "instance_geometry" ); - _Meta->registerClass(domInstance_geometry::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "bind_material" ); - mea->setOffset( daeOffsetOf(domInstance_geometry,elemBind_material) ); - mea->setElementType( domBind_material::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstance_geometry,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - // Add attribute: url - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "url" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstance_geometry , attrUrl )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_geometry , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_geometry , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_geometry)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInstance_geometry::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_light.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_light.cpp deleted file mode 100644 index 4139d0deb..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_light.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInstance_light::create(daeInt bytes) -{ - domInstance_lightRef ref = new(bytes) domInstance_light; - return ref; -} - - -daeMetaElement * -domInstance_light::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "instance_light" ); - _Meta->registerClass(domInstance_light::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstance_light,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: url - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "url" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstance_light , attrUrl )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_light , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_light , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_light)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInstance_light::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_material.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_material.cpp deleted file mode 100644 index 4de460cd1..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_material.cpp +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInstance_material::create(daeInt bytes) -{ - domInstance_materialRef ref = new(bytes) domInstance_material; - ref->attrTarget.setContainer( (domInstance_material*)ref ); - return ref; -} - - -daeMetaElement * -domInstance_material::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "instance_material" ); - _Meta->registerClass(domInstance_material::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "bind" ); - mea->setOffset( daeOffsetOf(domInstance_material,elemBind_array) ); - mea->setElementType( domInstance_material::domBind::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "bind_vertex_input" ); - mea->setOffset( daeOffsetOf(domInstance_material,elemBind_vertex_input_array) ); - mea->setElementType( domInstance_material::domBind_vertex_input::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstance_material,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: symbol - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "symbol" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_material , attrSymbol )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: target - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "target" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstance_material , attrTarget )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_material , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_material , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_material)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domInstance_material::domBind::create(daeInt bytes) -{ - domInstance_material::domBindRef ref = new(bytes) domInstance_material::domBind; - return ref; -} - - -daeMetaElement * -domInstance_material::domBind::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bind" ); - _Meta->registerClass(domInstance_material::domBind::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: semantic - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "semantic" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_material::domBind , attrSemantic )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: target - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "target" ); - ma->setType( daeAtomicType::get("xsToken")); - ma->setOffset( daeOffsetOf( domInstance_material::domBind , attrTarget )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_material::domBind)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domInstance_material::domBind_vertex_input::create(daeInt bytes) -{ - domInstance_material::domBind_vertex_inputRef ref = new(bytes) domInstance_material::domBind_vertex_input; - return ref; -} - - -daeMetaElement * -domInstance_material::domBind_vertex_input::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bind_vertex_input" ); - _Meta->registerClass(domInstance_material::domBind_vertex_input::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: semantic - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "semantic" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_material::domBind_vertex_input , attrSemantic )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: input_semantic - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "input_semantic" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_material::domBind_vertex_input , attrInput_semantic )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: input_set - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "input_set" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domInstance_material::domBind_vertex_input , attrInput_set )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_material::domBind_vertex_input)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInstance_material::_Meta = NULL; -daeMetaElement * domInstance_material::domBind::_Meta = NULL; -daeMetaElement * domInstance_material::domBind_vertex_input::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_node.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_node.cpp deleted file mode 100644 index af1452878..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_node.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInstance_node::create(daeInt bytes) -{ - domInstance_nodeRef ref = new(bytes) domInstance_node; - return ref; -} - - -daeMetaElement * -domInstance_node::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "instance_node" ); - _Meta->registerClass(domInstance_node::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstance_node,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: url - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "url" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstance_node , attrUrl )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_node , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_node , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_node)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInstance_node::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_physics_material.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_physics_material.cpp deleted file mode 100644 index 6063c48dd..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_physics_material.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInstance_physics_material::create(daeInt bytes) -{ - domInstance_physics_materialRef ref = new(bytes) domInstance_physics_material; - return ref; -} - - -daeMetaElement * -domInstance_physics_material::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "instance_physics_material" ); - _Meta->registerClass(domInstance_physics_material::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstance_physics_material,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: url - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "url" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstance_physics_material , attrUrl )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_physics_material , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_physics_material , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_physics_material)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInstance_physics_material::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_physics_model.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_physics_model.cpp deleted file mode 100644 index 4b9ed324c..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_physics_model.cpp +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInstance_physics_model::create(daeInt bytes) -{ - domInstance_physics_modelRef ref = new(bytes) domInstance_physics_model; - ref->attrUrl.setContainer( (domInstance_physics_model*)ref ); - ref->attrParent.setContainer( (domInstance_physics_model*)ref ); - return ref; -} - - -daeMetaElement * -domInstance_physics_model::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "instance_physics_model" ); - _Meta->registerClass(domInstance_physics_model::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "instance_force_field" ); - mea->setOffset( daeOffsetOf(domInstance_physics_model,elemInstance_force_field_array) ); - mea->setElementType( domInstance_force_field::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "instance_rigid_body" ); - mea->setOffset( daeOffsetOf(domInstance_physics_model,elemInstance_rigid_body_array) ); - mea->setElementType( domInstance_rigid_body::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "instance_rigid_constraint" ); - mea->setOffset( daeOffsetOf(domInstance_physics_model,elemInstance_rigid_constraint_array) ); - mea->setElementType( domInstance_rigid_constraint::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstance_physics_model,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - // Add attribute: url - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "url" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstance_physics_model , attrUrl )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_physics_model , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_physics_model , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: parent - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "parent" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstance_physics_model , attrParent )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_physics_model)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInstance_physics_model::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_rigid_body.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_rigid_body.cpp deleted file mode 100644 index 832e12b53..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_rigid_body.cpp +++ /dev/null @@ -1,585 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInstance_rigid_body::create(daeInt bytes) -{ - domInstance_rigid_bodyRef ref = new(bytes) domInstance_rigid_body; - ref->attrTarget.setContainer( (domInstance_rigid_body*)ref ); - return ref; -} - - -daeMetaElement * -domInstance_rigid_body::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "instance_rigid_body" ); - _Meta->registerClass(domInstance_rigid_body::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "technique_common" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body,elemTechnique_common) ); - mea->setElementType( domInstance_rigid_body::domTechnique_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body,elemTechnique_array) ); - mea->setElementType( domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: body - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "body" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_rigid_body , attrBody )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_rigid_body , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_rigid_body , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: target - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "target" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domInstance_rigid_body , attrTarget )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_rigid_body)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domInstance_rigid_body::domTechnique_common::create(daeInt bytes) -{ - domInstance_rigid_body::domTechnique_commonRef ref = new(bytes) domInstance_rigid_body::domTechnique_common; - return ref; -} - - -daeMetaElement * -domInstance_rigid_body::domTechnique_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique_common" ); - _Meta->registerClass(domInstance_rigid_body::domTechnique_common::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "angular_velocity" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemAngular_velocity) ); - mea->setElementType( domInstance_rigid_body::domTechnique_common::domAngular_velocity::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "velocity" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemVelocity) ); - mea->setElementType( domInstance_rigid_body::domTechnique_common::domVelocity::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "dynamic" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemDynamic) ); - mea->setElementType( domInstance_rigid_body::domTechnique_common::domDynamic::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "mass" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemMass) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "mass_frame" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemMass_frame) ); - mea->setElementType( domInstance_rigid_body::domTechnique_common::domMass_frame::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "inertia" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemInertia) ); - mea->setElementType( domTargetableFloat3::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 6, 0, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "instance_physics_material" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemInstance_physics_material) ); - mea->setElementType( domInstance_physics_material::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "physics_material" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemPhysics_material) ); - mea->setElementType( domPhysics_material::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 7, 0, -1 ); - mea->setName( "shape" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common,elemShape_array) ); - mea->setElementType( domInstance_rigid_body::domTechnique_common::domShape::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 7 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domInstance_rigid_body::domTechnique_common,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domInstance_rigid_body::domTechnique_common,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domInstance_rigid_body::domTechnique_common::domAngular_velocity::create(daeInt bytes) -{ - domInstance_rigid_body::domTechnique_common::domAngular_velocityRef ref = new(bytes) domInstance_rigid_body::domTechnique_common::domAngular_velocity; - return ref; -} - - -daeMetaElement * -domInstance_rigid_body::domTechnique_common::domAngular_velocity::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "angular_velocity" ); - _Meta->registerClass(domInstance_rigid_body::domTechnique_common::domAngular_velocity::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domInstance_rigid_body::domTechnique_common::domAngular_velocity , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common::domAngular_velocity)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domInstance_rigid_body::domTechnique_common::domVelocity::create(daeInt bytes) -{ - domInstance_rigid_body::domTechnique_common::domVelocityRef ref = new(bytes) domInstance_rigid_body::domTechnique_common::domVelocity; - return ref; -} - - -daeMetaElement * -domInstance_rigid_body::domTechnique_common::domVelocity::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "velocity" ); - _Meta->registerClass(domInstance_rigid_body::domTechnique_common::domVelocity::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domInstance_rigid_body::domTechnique_common::domVelocity , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common::domVelocity)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domInstance_rigid_body::domTechnique_common::domDynamic::create(daeInt bytes) -{ - domInstance_rigid_body::domTechnique_common::domDynamicRef ref = new(bytes) domInstance_rigid_body::domTechnique_common::domDynamic; - return ref; -} - - -daeMetaElement * -domInstance_rigid_body::domTechnique_common::domDynamic::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "dynamic" ); - _Meta->registerClass(domInstance_rigid_body::domTechnique_common::domDynamic::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domInstance_rigid_body::domTechnique_common::domDynamic , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_rigid_body::domTechnique_common::domDynamic , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common::domDynamic)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domInstance_rigid_body::domTechnique_common::domMass_frame::create(daeInt bytes) -{ - domInstance_rigid_body::domTechnique_common::domMass_frameRef ref = new(bytes) domInstance_rigid_body::domTechnique_common::domMass_frame; - return ref; -} - - -daeMetaElement * -domInstance_rigid_body::domTechnique_common::domMass_frame::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mass_frame" ); - _Meta->registerClass(domInstance_rigid_body::domTechnique_common::domMass_frame::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "translate" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domMass_frame,elemTranslate_array) ); - mea->setElementType( domTranslate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "rotate" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domMass_frame,elemRotate_array) ); - mea->setElementType( domRotate::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3000 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domInstance_rigid_body::domTechnique_common::domMass_frame,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domInstance_rigid_body::domTechnique_common::domMass_frame,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common::domMass_frame)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domInstance_rigid_body::domTechnique_common::domShape::create(daeInt bytes) -{ - domInstance_rigid_body::domTechnique_common::domShapeRef ref = new(bytes) domInstance_rigid_body::domTechnique_common::domShape; - return ref; -} - - -daeMetaElement * -domInstance_rigid_body::domTechnique_common::domShape::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "shape" ); - _Meta->registerClass(domInstance_rigid_body::domTechnique_common::domShape::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "hollow" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemHollow) ); - mea->setElementType( domInstance_rigid_body::domTechnique_common::domShape::domHollow::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "mass" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemMass) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "density" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemDensity) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 3, 0, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "instance_physics_material" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemInstance_physics_material) ); - mea->setElementType( domInstance_physics_material::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "physics_material" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemPhysics_material) ); - mea->setElementType( domPhysics_material::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaChoice( _Meta, cm, 4, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "instance_geometry" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemInstance_geometry) ); - mea->setElementType( domInstance_geometry::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "plane" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemPlane) ); - mea->setElementType( domPlane::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "box" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemBox) ); - mea->setElementType( domBox::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sphere" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemSphere) ); - mea->setElementType( domSphere::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "cylinder" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemCylinder) ); - mea->setElementType( domCylinder::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "tapered_cylinder" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemTapered_cylinder) ); - mea->setElementType( domTapered_cylinder::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "capsule" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemCapsule) ); - mea->setElementType( domCapsule::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "tapered_capsule" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemTapered_capsule) ); - mea->setElementType( domTapered_capsule::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaChoice( _Meta, cm, 5, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "translate" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemTranslate_array) ); - mea->setElementType( domTranslate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "rotate" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemRotate_array) ); - mea->setElementType( domRotate::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3006, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3006 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domInstance_rigid_body::domTechnique_common::domShape,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common::domShape)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domInstance_rigid_body::domTechnique_common::domShape::domHollow::create(daeInt bytes) -{ - domInstance_rigid_body::domTechnique_common::domShape::domHollowRef ref = new(bytes) domInstance_rigid_body::domTechnique_common::domShape::domHollow; - return ref; -} - - -daeMetaElement * -domInstance_rigid_body::domTechnique_common::domShape::domHollow::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "hollow" ); - _Meta->registerClass(domInstance_rigid_body::domTechnique_common::domShape::domHollow::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domInstance_rigid_body::domTechnique_common::domShape::domHollow , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_rigid_body::domTechnique_common::domShape::domHollow , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_rigid_body::domTechnique_common::domShape::domHollow)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInstance_rigid_body::_Meta = NULL; -daeMetaElement * domInstance_rigid_body::domTechnique_common::_Meta = NULL; -daeMetaElement * domInstance_rigid_body::domTechnique_common::domAngular_velocity::_Meta = NULL; -daeMetaElement * domInstance_rigid_body::domTechnique_common::domVelocity::_Meta = NULL; -daeMetaElement * domInstance_rigid_body::domTechnique_common::domDynamic::_Meta = NULL; -daeMetaElement * domInstance_rigid_body::domTechnique_common::domMass_frame::_Meta = NULL; -daeMetaElement * domInstance_rigid_body::domTechnique_common::domShape::_Meta = NULL; -daeMetaElement * domInstance_rigid_body::domTechnique_common::domShape::domHollow::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_rigid_constraint.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInstance_rigid_constraint.cpp deleted file mode 100644 index a612cee15..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInstance_rigid_constraint.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInstance_rigid_constraint::create(daeInt bytes) -{ - domInstance_rigid_constraintRef ref = new(bytes) domInstance_rigid_constraint; - return ref; -} - - -daeMetaElement * -domInstance_rigid_constraint::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "instance_rigid_constraint" ); - _Meta->registerClass(domInstance_rigid_constraint::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domInstance_rigid_constraint,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: constraint - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "constraint" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_rigid_constraint , attrConstraint )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_rigid_constraint , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInstance_rigid_constraint , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInstance_rigid_constraint)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInstance_rigid_constraint::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domInt_array.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domInt_array.cpp deleted file mode 100644 index 33b7d753a..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domInt_array.cpp +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domInt_array::create(daeInt bytes) -{ - domInt_arrayRef ref = new(bytes) domInt_array; - return ref; -} - - -daeMetaElement * -domInt_array::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "int_array" ); - _Meta->registerClass(domInt_array::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("ListOfInts")); - ma->setOffset( daeOffsetOf( domInt_array , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domInt_array , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domInt_array , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domInt_array , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: minInclusive - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "minInclusive" ); - ma->setType( daeAtomicType::get("xsInteger")); - ma->setOffset( daeOffsetOf( domInt_array , attrMinInclusive )); - ma->setContainer( _Meta ); - ma->setDefault( "-2147483648"); - - _Meta->appendAttribute(ma); - } - - // Add attribute: maxInclusive - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "maxInclusive" ); - ma->setType( daeAtomicType::get("xsInteger")); - ma->setOffset( daeOffsetOf( domInt_array , attrMaxInclusive )); - ma->setContainer( _Meta ); - ma->setDefault( "2147483647"); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domInt_array)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domInt_array::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_animation_clips.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_animation_clips.cpp deleted file mode 100644 index f0025b49f..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_animation_clips.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_animation_clips::create(daeInt bytes) -{ - domLibrary_animation_clipsRef ref = new(bytes) domLibrary_animation_clips; - return ref; -} - - -daeMetaElement * -domLibrary_animation_clips::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_animation_clips" ); - _Meta->registerClass(domLibrary_animation_clips::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_animation_clips,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "animation_clip" ); - mea->setOffset( daeOffsetOf(domLibrary_animation_clips,elemAnimation_clip_array) ); - mea->setElementType( domAnimation_clip::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_animation_clips,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_animation_clips , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_animation_clips , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_animation_clips)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_animation_clips::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_animations.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_animations.cpp deleted file mode 100644 index d3519df3a..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_animations.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_animations::create(daeInt bytes) -{ - domLibrary_animationsRef ref = new(bytes) domLibrary_animations; - return ref; -} - - -daeMetaElement * -domLibrary_animations::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_animations" ); - _Meta->registerClass(domLibrary_animations::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_animations,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "animation" ); - mea->setOffset( daeOffsetOf(domLibrary_animations,elemAnimation_array) ); - mea->setElementType( domAnimation::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_animations,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_animations , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_animations , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_animations)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_animations::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_cameras.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_cameras.cpp deleted file mode 100644 index a3e495d93..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_cameras.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_cameras::create(daeInt bytes) -{ - domLibrary_camerasRef ref = new(bytes) domLibrary_cameras; - return ref; -} - - -daeMetaElement * -domLibrary_cameras::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_cameras" ); - _Meta->registerClass(domLibrary_cameras::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_cameras,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "camera" ); - mea->setOffset( daeOffsetOf(domLibrary_cameras,elemCamera_array) ); - mea->setElementType( domCamera::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_cameras,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_cameras , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_cameras , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_cameras)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_cameras::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_controllers.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_controllers.cpp deleted file mode 100644 index fa0c90f49..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_controllers.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_controllers::create(daeInt bytes) -{ - domLibrary_controllersRef ref = new(bytes) domLibrary_controllers; - return ref; -} - - -daeMetaElement * -domLibrary_controllers::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_controllers" ); - _Meta->registerClass(domLibrary_controllers::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_controllers,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "controller" ); - mea->setOffset( daeOffsetOf(domLibrary_controllers,elemController_array) ); - mea->setElementType( domController::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_controllers,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_controllers , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_controllers , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_controllers)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_controllers::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_effects.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_effects.cpp deleted file mode 100644 index 0c9eafb58..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_effects.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_effects::create(daeInt bytes) -{ - domLibrary_effectsRef ref = new(bytes) domLibrary_effects; - return ref; -} - - -daeMetaElement * -domLibrary_effects::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_effects" ); - _Meta->registerClass(domLibrary_effects::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_effects,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "effect" ); - mea->setOffset( daeOffsetOf(domLibrary_effects,elemEffect_array) ); - mea->setElementType( domEffect::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_effects,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_effects , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_effects , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_effects)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_effects::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_force_fields.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_force_fields.cpp deleted file mode 100644 index 9fd6438d0..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_force_fields.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_force_fields::create(daeInt bytes) -{ - domLibrary_force_fieldsRef ref = new(bytes) domLibrary_force_fields; - return ref; -} - - -daeMetaElement * -domLibrary_force_fields::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_force_fields" ); - _Meta->registerClass(domLibrary_force_fields::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_force_fields,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "force_field" ); - mea->setOffset( daeOffsetOf(domLibrary_force_fields,elemForce_field_array) ); - mea->setElementType( domForce_field::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_force_fields,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_force_fields , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_force_fields , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_force_fields)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_force_fields::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_geometries.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_geometries.cpp deleted file mode 100644 index 53c312645..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_geometries.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_geometries::create(daeInt bytes) -{ - domLibrary_geometriesRef ref = new(bytes) domLibrary_geometries; - return ref; -} - - -daeMetaElement * -domLibrary_geometries::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_geometries" ); - _Meta->registerClass(domLibrary_geometries::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_geometries,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "geometry" ); - mea->setOffset( daeOffsetOf(domLibrary_geometries,elemGeometry_array) ); - mea->setElementType( domGeometry::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_geometries,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_geometries , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_geometries , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_geometries)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_geometries::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_images.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_images.cpp deleted file mode 100644 index 9384c08c2..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_images.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_images::create(daeInt bytes) -{ - domLibrary_imagesRef ref = new(bytes) domLibrary_images; - return ref; -} - - -daeMetaElement * -domLibrary_images::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_images" ); - _Meta->registerClass(domLibrary_images::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_images,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "image" ); - mea->setOffset( daeOffsetOf(domLibrary_images,elemImage_array) ); - mea->setElementType( domImage::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_images,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_images , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_images , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_images)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_images::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_lights.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_lights.cpp deleted file mode 100644 index 276eb3a02..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_lights.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_lights::create(daeInt bytes) -{ - domLibrary_lightsRef ref = new(bytes) domLibrary_lights; - return ref; -} - - -daeMetaElement * -domLibrary_lights::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_lights" ); - _Meta->registerClass(domLibrary_lights::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_lights,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "light" ); - mea->setOffset( daeOffsetOf(domLibrary_lights,elemLight_array) ); - mea->setElementType( domLight::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_lights,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_lights , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_lights , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_lights)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_lights::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_materials.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_materials.cpp deleted file mode 100644 index 62406b392..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_materials.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_materials::create(daeInt bytes) -{ - domLibrary_materialsRef ref = new(bytes) domLibrary_materials; - return ref; -} - - -daeMetaElement * -domLibrary_materials::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_materials" ); - _Meta->registerClass(domLibrary_materials::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_materials,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "material" ); - mea->setOffset( daeOffsetOf(domLibrary_materials,elemMaterial_array) ); - mea->setElementType( domMaterial::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_materials,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_materials , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_materials , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_materials)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_materials::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_nodes.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_nodes.cpp deleted file mode 100644 index 117f9fde0..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_nodes.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_nodes::create(daeInt bytes) -{ - domLibrary_nodesRef ref = new(bytes) domLibrary_nodes; - return ref; -} - - -daeMetaElement * -domLibrary_nodes::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_nodes" ); - _Meta->registerClass(domLibrary_nodes::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_nodes,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "node" ); - mea->setOffset( daeOffsetOf(domLibrary_nodes,elemNode_array) ); - mea->setElementType( domNode::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_nodes,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_nodes , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_nodes , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_nodes)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_nodes::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_materials.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_materials.cpp deleted file mode 100644 index 0c1c987b3..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_materials.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_physics_materials::create(daeInt bytes) -{ - domLibrary_physics_materialsRef ref = new(bytes) domLibrary_physics_materials; - return ref; -} - - -daeMetaElement * -domLibrary_physics_materials::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_physics_materials" ); - _Meta->registerClass(domLibrary_physics_materials::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_physics_materials,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "physics_material" ); - mea->setOffset( daeOffsetOf(domLibrary_physics_materials,elemPhysics_material_array) ); - mea->setElementType( domPhysics_material::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_physics_materials,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_physics_materials , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_physics_materials , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_physics_materials)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_physics_materials::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_models.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_models.cpp deleted file mode 100644 index b685ca0c9..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_models.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_physics_models::create(daeInt bytes) -{ - domLibrary_physics_modelsRef ref = new(bytes) domLibrary_physics_models; - return ref; -} - - -daeMetaElement * -domLibrary_physics_models::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_physics_models" ); - _Meta->registerClass(domLibrary_physics_models::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_physics_models,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "physics_model" ); - mea->setOffset( daeOffsetOf(domLibrary_physics_models,elemPhysics_model_array) ); - mea->setElementType( domPhysics_model::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_physics_models,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_physics_models , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_physics_models , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_physics_models)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_physics_models::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_scenes.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_scenes.cpp deleted file mode 100644 index 55a2fbf89..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_physics_scenes.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_physics_scenes::create(daeInt bytes) -{ - domLibrary_physics_scenesRef ref = new(bytes) domLibrary_physics_scenes; - return ref; -} - - -daeMetaElement * -domLibrary_physics_scenes::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_physics_scenes" ); - _Meta->registerClass(domLibrary_physics_scenes::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_physics_scenes,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "physics_scene" ); - mea->setOffset( daeOffsetOf(domLibrary_physics_scenes,elemPhysics_scene_array) ); - mea->setElementType( domPhysics_scene::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_physics_scenes,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_physics_scenes , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_physics_scenes , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_physics_scenes)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_physics_scenes::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_visual_scenes.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_visual_scenes.cpp deleted file mode 100644 index 891165d97..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLibrary_visual_scenes.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLibrary_visual_scenes::create(daeInt bytes) -{ - domLibrary_visual_scenesRef ref = new(bytes) domLibrary_visual_scenes; - return ref; -} - - -daeMetaElement * -domLibrary_visual_scenes::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "library_visual_scenes" ); - _Meta->registerClass(domLibrary_visual_scenes::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLibrary_visual_scenes,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "visual_scene" ); - mea->setOffset( daeOffsetOf(domLibrary_visual_scenes,elemVisual_scene_array) ); - mea->setElementType( domVisual_scene::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLibrary_visual_scenes,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLibrary_visual_scenes , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLibrary_visual_scenes , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLibrary_visual_scenes)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLibrary_visual_scenes::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLight.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLight.cpp deleted file mode 100644 index aaa4e692c..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLight.cpp +++ /dev/null @@ -1,368 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLight::create(daeInt bytes) -{ - domLightRef ref = new(bytes) domLight; - return ref; -} - - -daeMetaElement * -domLight::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "light" ); - _Meta->registerClass(domLight::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domLight,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "technique_common" ); - mea->setOffset( daeOffsetOf(domLight,elemTechnique_common) ); - mea->setElementType( domLight::domTechnique_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domLight,elemTechnique_array) ); - mea->setElementType( domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLight,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domLight , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLight , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLight)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domLight::domTechnique_common::create(daeInt bytes) -{ - domLight::domTechnique_commonRef ref = new(bytes) domLight::domTechnique_common; - return ref; -} - - -daeMetaElement * -domLight::domTechnique_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique_common" ); - _Meta->registerClass(domLight::domTechnique_common::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "ambient" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common,elemAmbient) ); - mea->setElementType( domLight::domTechnique_common::domAmbient::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "directional" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common,elemDirectional) ); - mea->setElementType( domLight::domTechnique_common::domDirectional::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "point" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common,elemPoint) ); - mea->setElementType( domLight::domTechnique_common::domPoint::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "spot" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common,elemSpot) ); - mea->setElementType( domLight::domTechnique_common::domSpot::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domLight::domTechnique_common,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domLight::domTechnique_common,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domLight::domTechnique_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domLight::domTechnique_common::domAmbient::create(daeInt bytes) -{ - domLight::domTechnique_common::domAmbientRef ref = new(bytes) domLight::domTechnique_common::domAmbient; - return ref; -} - - -daeMetaElement * -domLight::domTechnique_common::domAmbient::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "ambient" ); - _Meta->registerClass(domLight::domTechnique_common::domAmbient::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "color" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common::domAmbient,elemColor) ); - mea->setElementType( domTargetableFloat3::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domLight::domTechnique_common::domAmbient)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domLight::domTechnique_common::domDirectional::create(daeInt bytes) -{ - domLight::domTechnique_common::domDirectionalRef ref = new(bytes) domLight::domTechnique_common::domDirectional; - return ref; -} - - -daeMetaElement * -domLight::domTechnique_common::domDirectional::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "directional" ); - _Meta->registerClass(domLight::domTechnique_common::domDirectional::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "color" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common::domDirectional,elemColor) ); - mea->setElementType( domTargetableFloat3::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domLight::domTechnique_common::domDirectional)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domLight::domTechnique_common::domPoint::create(daeInt bytes) -{ - domLight::domTechnique_common::domPointRef ref = new(bytes) domLight::domTechnique_common::domPoint; - return ref; -} - - -daeMetaElement * -domLight::domTechnique_common::domPoint::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "point" ); - _Meta->registerClass(domLight::domTechnique_common::domPoint::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "color" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common::domPoint,elemColor) ); - mea->setElementType( domTargetableFloat3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "constant_attenuation" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common::domPoint,elemConstant_attenuation) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "linear_attenuation" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common::domPoint,elemLinear_attenuation) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "quadratic_attenuation" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common::domPoint,elemQuadratic_attenuation) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domLight::domTechnique_common::domPoint)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domLight::domTechnique_common::domSpot::create(daeInt bytes) -{ - domLight::domTechnique_common::domSpotRef ref = new(bytes) domLight::domTechnique_common::domSpot; - return ref; -} - - -daeMetaElement * -domLight::domTechnique_common::domSpot::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "spot" ); - _Meta->registerClass(domLight::domTechnique_common::domSpot::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "color" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common::domSpot,elemColor) ); - mea->setElementType( domTargetableFloat3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "constant_attenuation" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common::domSpot,elemConstant_attenuation) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "linear_attenuation" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common::domSpot,elemLinear_attenuation) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "quadratic_attenuation" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common::domSpot,elemQuadratic_attenuation) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "falloff_angle" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common::domSpot,elemFalloff_angle) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "falloff_exponent" ); - mea->setOffset( daeOffsetOf(domLight::domTechnique_common::domSpot,elemFalloff_exponent) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 5 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domLight::domTechnique_common::domSpot)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLight::_Meta = NULL; -daeMetaElement * domLight::domTechnique_common::_Meta = NULL; -daeMetaElement * domLight::domTechnique_common::domAmbient::_Meta = NULL; -daeMetaElement * domLight::domTechnique_common::domDirectional::_Meta = NULL; -daeMetaElement * domLight::domTechnique_common::domPoint::_Meta = NULL; -daeMetaElement * domLight::domTechnique_common::domSpot::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLines.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLines.cpp deleted file mode 100644 index 27f2dae26..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLines.cpp +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLines::create(daeInt bytes) -{ - domLinesRef ref = new(bytes) domLines; - return ref; -} - - -daeMetaElement * -domLines::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "lines" ); - _Meta->registerClass(domLines::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "input" ); - mea->setOffset( daeOffsetOf(domLines,elemInput_array) ); - mea->setElementType( domInputLocalOffset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "p" ); - mea->setOffset( daeOffsetOf(domLines,elemP) ); - mea->setElementType( domP::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLines,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLines , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domLines , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: material - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "material" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLines , attrMaterial )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLines)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLines::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLinestrips.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLinestrips.cpp deleted file mode 100644 index 6533f20c5..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLinestrips.cpp +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLinestrips::create(daeInt bytes) -{ - domLinestripsRef ref = new(bytes) domLinestrips; - return ref; -} - - -daeMetaElement * -domLinestrips::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "linestrips" ); - _Meta->registerClass(domLinestrips::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "input" ); - mea->setOffset( daeOffsetOf(domLinestrips,elemInput_array) ); - mea->setElementType( domInputLocalOffset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "p" ); - mea->setOffset( daeOffsetOf(domLinestrips,elemP_array) ); - mea->setElementType( domP::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domLinestrips,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLinestrips , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domLinestrips , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: material - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "material" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLinestrips , attrMaterial )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLinestrips)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLinestrips::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domLookat.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domLookat.cpp deleted file mode 100644 index b65135929..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domLookat.cpp +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domLookat::create(daeInt bytes) -{ - domLookatRef ref = new(bytes) domLookat; - return ref; -} - - -daeMetaElement * -domLookat::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "lookat" ); - _Meta->registerClass(domLookat::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3x3")); - ma->setOffset( daeOffsetOf( domLookat , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domLookat , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domLookat)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domLookat::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domMaterial.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domMaterial.cpp deleted file mode 100644 index 9b3b3ca9c..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domMaterial.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domMaterial::create(daeInt bytes) -{ - domMaterialRef ref = new(bytes) domMaterial; - return ref; -} - - -daeMetaElement * -domMaterial::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "material" ); - _Meta->registerClass(domMaterial::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domMaterial,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "instance_effect" ); - mea->setOffset( daeOffsetOf(domMaterial,elemInstance_effect) ); - mea->setElementType( domInstance_effect::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domMaterial,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domMaterial , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domMaterial , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domMaterial)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domMaterial::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domMatrix.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domMatrix.cpp deleted file mode 100644 index 4b919ec15..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domMatrix.cpp +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domMatrix::create(daeInt bytes) -{ - domMatrixRef ref = new(bytes) domMatrix; - return ref; -} - - -daeMetaElement * -domMatrix::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "matrix" ); - _Meta->registerClass(domMatrix::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4x4")); - ma->setOffset( daeOffsetOf( domMatrix , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domMatrix , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domMatrix)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domMatrix::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domMesh.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domMesh.cpp deleted file mode 100644 index 2b3250616..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domMesh.cpp +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domMesh::create(daeInt bytes) -{ - domMeshRef ref = new(bytes) domMesh; - return ref; -} - - -daeMetaElement * -domMesh::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mesh" ); - _Meta->registerClass(domMesh::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, -1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domMesh,elemSource_array) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "vertices" ); - mea->setOffset( daeOffsetOf(domMesh,elemVertices) ); - mea->setElementType( domVertices::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 2, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "lines" ); - mea->setOffset( daeOffsetOf(domMesh,elemLines_array) ); - mea->setElementType( domLines::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "linestrips" ); - mea->setOffset( daeOffsetOf(domMesh,elemLinestrips_array) ); - mea->setElementType( domLinestrips::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "polygons" ); - mea->setOffset( daeOffsetOf(domMesh,elemPolygons_array) ); - mea->setElementType( domPolygons::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "polylist" ); - mea->setOffset( daeOffsetOf(domMesh,elemPolylist_array) ); - mea->setElementType( domPolylist::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "triangles" ); - mea->setOffset( daeOffsetOf(domMesh,elemTriangles_array) ); - mea->setElementType( domTriangles::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "trifans" ); - mea->setOffset( daeOffsetOf(domMesh,elemTrifans_array) ); - mea->setElementType( domTrifans::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "tristrips" ); - mea->setOffset( daeOffsetOf(domMesh,elemTristrips_array) ); - mea->setElementType( domTristrips::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3003, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domMesh,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3003 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domMesh,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domMesh,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domMesh)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domMesh::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domMorph.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domMorph.cpp deleted file mode 100644 index 0cfe5e1ae..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domMorph.cpp +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domMorph::create(daeInt bytes) -{ - domMorphRef ref = new(bytes) domMorph; - ref->attrSource.setContainer( (domMorph*)ref ); - return ref; -} - - -daeMetaElement * -domMorph::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "morph" ); - _Meta->registerClass(domMorph::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 2, -1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domMorph,elemSource_array) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "targets" ); - mea->setOffset( daeOffsetOf(domMorph,elemTargets) ); - mea->setElementType( domMorph::domTargets::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domMorph,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: method - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "method" ); - ma->setType( daeAtomicType::get("MorphMethodType")); - ma->setOffset( daeOffsetOf( domMorph , attrMethod )); - ma->setContainer( _Meta ); - ma->setDefault( "NORMALIZED"); - - _Meta->appendAttribute(ma); - } - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domMorph , attrSource )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domMorph)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domMorph::domTargets::create(daeInt bytes) -{ - domMorph::domTargetsRef ref = new(bytes) domMorph::domTargets; - return ref; -} - - -daeMetaElement * -domMorph::domTargets::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "targets" ); - _Meta->registerClass(domMorph::domTargets::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 2, -1 ); - mea->setName( "input" ); - mea->setOffset( daeOffsetOf(domMorph::domTargets,elemInput_array) ); - mea->setElementType( domInputLocal::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domMorph::domTargets,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domMorph::domTargets)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domMorph::_Meta = NULL; -daeMetaElement * domMorph::domTargets::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domName_array.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domName_array.cpp deleted file mode 100644 index ada335aee..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domName_array.cpp +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domName_array::create(daeInt bytes) -{ - domName_arrayRef ref = new(bytes) domName_array; - return ref; -} - - -daeMetaElement * -domName_array::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "Name_array" ); - _Meta->registerClass(domName_array::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("ListOfNames")); - ma->setOffset( daeOffsetOf( domName_array , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domName_array , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domName_array , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domName_array , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domName_array)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domName_array::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domNode.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domNode.cpp deleted file mode 100644 index 77f9f9b30..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domNode.cpp +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domNode::create(daeInt bytes) -{ - domNodeRef ref = new(bytes) domNode; - return ref; -} - - -daeMetaElement * -domNode::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "node" ); - _Meta->registerClass(domNode::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domNode,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "lookat" ); - mea->setOffset( daeOffsetOf(domNode,elemLookat_array) ); - mea->setElementType( domLookat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "matrix" ); - mea->setOffset( daeOffsetOf(domNode,elemMatrix_array) ); - mea->setElementType( domMatrix::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "rotate" ); - mea->setOffset( daeOffsetOf(domNode,elemRotate_array) ); - mea->setElementType( domRotate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "scale" ); - mea->setOffset( daeOffsetOf(domNode,elemScale_array) ); - mea->setElementType( domScale::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "skew" ); - mea->setOffset( daeOffsetOf(domNode,elemSkew_array) ); - mea->setElementType( domSkew::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "translate" ); - mea->setOffset( daeOffsetOf(domNode,elemTranslate_array) ); - mea->setElementType( domTranslate::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3002, 0, -1 ); - mea->setName( "instance_camera" ); - mea->setOffset( daeOffsetOf(domNode,elemInstance_camera_array) ); - mea->setElementType( domInstance_camera::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3003, 0, -1 ); - mea->setName( "instance_controller" ); - mea->setOffset( daeOffsetOf(domNode,elemInstance_controller_array) ); - mea->setElementType( domInstance_controller::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3004, 0, -1 ); - mea->setName( "instance_geometry" ); - mea->setOffset( daeOffsetOf(domNode,elemInstance_geometry_array) ); - mea->setElementType( domInstance_geometry::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3005, 0, -1 ); - mea->setName( "instance_light" ); - mea->setOffset( daeOffsetOf(domNode,elemInstance_light_array) ); - mea->setElementType( domInstance_light::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3006, 0, -1 ); - mea->setName( "instance_node" ); - mea->setOffset( daeOffsetOf(domNode,elemInstance_node_array) ); - mea->setElementType( domInstance_node::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3007, 0, -1 ); - mea->setName( "node" ); - mea->setOffset( daeOffsetOf(domNode,elemNode_array) ); - mea->setElementType( domNode::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3008, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domNode,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3008 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domNode,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domNode,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domNode , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domNode , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domNode , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: type - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "type" ); - ma->setType( daeAtomicType::get("NodeType")); - ma->setOffset( daeOffsetOf( domNode , attrType )); - ma->setContainer( _Meta ); - ma->setDefault( "NODE"); - - _Meta->appendAttribute(ma); - } - - // Add attribute: layer - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "layer" ); - ma->setType( daeAtomicType::get("ListOfNames")); - ma->setOffset( daeOffsetOf( domNode , attrLayer )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domNode)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domNode::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domP.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domP.cpp deleted file mode 100644 index 152e036fe..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domP.cpp +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domP::create(daeInt bytes) -{ - domPRef ref = new(bytes) domP; - return ref; -} - - -daeMetaElement * -domP::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "p" ); - _Meta->registerClass(domP::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("ListOfUInts")); - ma->setOffset( daeOffsetOf( domP , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domP)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domP::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domParam.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domParam.cpp deleted file mode 100644 index e1221a9f1..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domParam.cpp +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domParam::create(daeInt bytes) -{ - domParamRef ref = new(bytes) domParam; - return ref; -} - - -daeMetaElement * -domParam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "param" ); - _Meta->registerClass(domParam::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domParam , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domParam , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domParam , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: semantic - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "semantic" ); - ma->setType( daeAtomicType::get("xsNMTOKEN")); - ma->setOffset( daeOffsetOf( domParam , attrSemantic )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: type - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "type" ); - ma->setType( daeAtomicType::get("xsNMTOKEN")); - ma->setOffset( daeOffsetOf( domParam , attrType )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domParam)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domParam::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_material.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_material.cpp deleted file mode 100644 index d1c88f530..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_material.cpp +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domPhysics_material::create(daeInt bytes) -{ - domPhysics_materialRef ref = new(bytes) domPhysics_material; - return ref; -} - - -daeMetaElement * -domPhysics_material::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "physics_material" ); - _Meta->registerClass(domPhysics_material::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domPhysics_material,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "technique_common" ); - mea->setOffset( daeOffsetOf(domPhysics_material,elemTechnique_common) ); - mea->setElementType( domPhysics_material::domTechnique_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domPhysics_material,elemTechnique_array) ); - mea->setElementType( domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domPhysics_material,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domPhysics_material , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domPhysics_material , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domPhysics_material)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domPhysics_material::domTechnique_common::create(daeInt bytes) -{ - domPhysics_material::domTechnique_commonRef ref = new(bytes) domPhysics_material::domTechnique_common; - return ref; -} - - -daeMetaElement * -domPhysics_material::domTechnique_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique_common" ); - _Meta->registerClass(domPhysics_material::domTechnique_common::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "dynamic_friction" ); - mea->setOffset( daeOffsetOf(domPhysics_material::domTechnique_common,elemDynamic_friction) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "restitution" ); - mea->setOffset( daeOffsetOf(domPhysics_material::domTechnique_common,elemRestitution) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "static_friction" ); - mea->setOffset( daeOffsetOf(domPhysics_material::domTechnique_common,elemStatic_friction) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domPhysics_material::domTechnique_common)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domPhysics_material::_Meta = NULL; -daeMetaElement * domPhysics_material::domTechnique_common::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_model.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_model.cpp deleted file mode 100644 index d321efb14..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_model.cpp +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domPhysics_model::create(daeInt bytes) -{ - domPhysics_modelRef ref = new(bytes) domPhysics_model; - return ref; -} - - -daeMetaElement * -domPhysics_model::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "physics_model" ); - _Meta->registerClass(domPhysics_model::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domPhysics_model,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "rigid_body" ); - mea->setOffset( daeOffsetOf(domPhysics_model,elemRigid_body_array) ); - mea->setElementType( domRigid_body::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "rigid_constraint" ); - mea->setOffset( daeOffsetOf(domPhysics_model,elemRigid_constraint_array) ); - mea->setElementType( domRigid_constraint::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "instance_physics_model" ); - mea->setOffset( daeOffsetOf(domPhysics_model,elemInstance_physics_model_array) ); - mea->setElementType( domInstance_physics_model::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domPhysics_model,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 4 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domPhysics_model , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domPhysics_model , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domPhysics_model)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domPhysics_model::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_scene.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_scene.cpp deleted file mode 100644 index ff945171d..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domPhysics_scene.cpp +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domPhysics_scene::create(daeInt bytes) -{ - domPhysics_sceneRef ref = new(bytes) domPhysics_scene; - return ref; -} - - -daeMetaElement * -domPhysics_scene::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "physics_scene" ); - _Meta->registerClass(domPhysics_scene::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domPhysics_scene,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "instance_force_field" ); - mea->setOffset( daeOffsetOf(domPhysics_scene,elemInstance_force_field_array) ); - mea->setElementType( domInstance_force_field::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "instance_physics_model" ); - mea->setOffset( daeOffsetOf(domPhysics_scene,elemInstance_physics_model_array) ); - mea->setElementType( domInstance_physics_model::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 1, 1 ); - mea->setName( "technique_common" ); - mea->setOffset( daeOffsetOf(domPhysics_scene,elemTechnique_common) ); - mea->setElementType( domPhysics_scene::domTechnique_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 0, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domPhysics_scene,elemTechnique_array) ); - mea->setElementType( domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 5, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domPhysics_scene,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 5 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domPhysics_scene , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domPhysics_scene , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domPhysics_scene)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domPhysics_scene::domTechnique_common::create(daeInt bytes) -{ - domPhysics_scene::domTechnique_commonRef ref = new(bytes) domPhysics_scene::domTechnique_common; - return ref; -} - - -daeMetaElement * -domPhysics_scene::domTechnique_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique_common" ); - _Meta->registerClass(domPhysics_scene::domTechnique_common::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "gravity" ); - mea->setOffset( daeOffsetOf(domPhysics_scene::domTechnique_common,elemGravity) ); - mea->setElementType( domTargetableFloat3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "time_step" ); - mea->setOffset( daeOffsetOf(domPhysics_scene::domTechnique_common,elemTime_step) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domPhysics_scene::domTechnique_common)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domPhysics_scene::_Meta = NULL; -daeMetaElement * domPhysics_scene::domTechnique_common::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domPlane.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domPlane.cpp deleted file mode 100644 index ecc3e11b4..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domPlane.cpp +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domPlane::create(daeInt bytes) -{ - domPlaneRef ref = new(bytes) domPlane; - return ref; -} - - -daeMetaElement * -domPlane::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "plane" ); - _Meta->registerClass(domPlane::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "equation" ); - mea->setOffset( daeOffsetOf(domPlane,elemEquation) ); - mea->setElementType( domPlane::domEquation::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domPlane,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domPlane)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domPlane::domEquation::create(daeInt bytes) -{ - domPlane::domEquationRef ref = new(bytes) domPlane::domEquation; - return ref; -} - - -daeMetaElement * -domPlane::domEquation::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "equation" ); - _Meta->registerClass(domPlane::domEquation::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domPlane::domEquation , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domPlane::domEquation)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domPlane::_Meta = NULL; -daeMetaElement * domPlane::domEquation::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domPolygons.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domPolygons.cpp deleted file mode 100644 index 90967aee4..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domPolygons.cpp +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domPolygons::create(daeInt bytes) -{ - domPolygonsRef ref = new(bytes) domPolygons; - return ref; -} - - -daeMetaElement * -domPolygons::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "polygons" ); - _Meta->registerClass(domPolygons::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "input" ); - mea->setOffset( daeOffsetOf(domPolygons,elemInput_array) ); - mea->setElementType( domInputLocalOffset::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "p" ); - mea->setOffset( daeOffsetOf(domPolygons,elemP_array) ); - mea->setElementType( domP::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "ph" ); - mea->setOffset( daeOffsetOf(domPolygons,elemPh_array) ); - mea->setElementType( domPolygons::domPh::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3002, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domPolygons,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3002 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domPolygons,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domPolygons,_contentsOrder)); - - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domPolygons , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domPolygons , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: material - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "material" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domPolygons , attrMaterial )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domPolygons)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domPolygons::domPh::create(daeInt bytes) -{ - domPolygons::domPhRef ref = new(bytes) domPolygons::domPh; - return ref; -} - - -daeMetaElement * -domPolygons::domPh::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "ph" ); - _Meta->registerClass(domPolygons::domPh::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "p" ); - mea->setOffset( daeOffsetOf(domPolygons::domPh,elemP) ); - mea->setElementType( domP::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "h" ); - mea->setOffset( daeOffsetOf(domPolygons::domPh,elemH_array) ); - mea->setElementType( domPolygons::domPh::domH::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domPolygons::domPh)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domPolygons::domPh::domH::create(daeInt bytes) -{ - domPolygons::domPh::domHRef ref = new(bytes) domPolygons::domPh::domH; - return ref; -} - - -daeMetaElement * -domPolygons::domPh::domH::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "h" ); - _Meta->registerClass(domPolygons::domPh::domH::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("ListOfUInts")); - ma->setOffset( daeOffsetOf( domPolygons::domPh::domH , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domPolygons::domPh::domH)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domPolygons::_Meta = NULL; -daeMetaElement * domPolygons::domPh::_Meta = NULL; -daeMetaElement * domPolygons::domPh::domH::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domPolylist.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domPolylist.cpp deleted file mode 100644 index 1b7d0607f..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domPolylist.cpp +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domPolylist::create(daeInt bytes) -{ - domPolylistRef ref = new(bytes) domPolylist; - return ref; -} - - -daeMetaElement * -domPolylist::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "polylist" ); - _Meta->registerClass(domPolylist::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "input" ); - mea->setOffset( daeOffsetOf(domPolylist,elemInput_array) ); - mea->setElementType( domInputLocalOffset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "vcount" ); - mea->setOffset( daeOffsetOf(domPolylist,elemVcount) ); - mea->setElementType( domPolylist::domVcount::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "p" ); - mea->setOffset( daeOffsetOf(domPolylist,elemP) ); - mea->setElementType( domP::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domPolylist,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domPolylist , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domPolylist , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: material - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "material" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domPolylist , attrMaterial )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domPolylist)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domPolylist::domVcount::create(daeInt bytes) -{ - domPolylist::domVcountRef ref = new(bytes) domPolylist::domVcount; - return ref; -} - - -daeMetaElement * -domPolylist::domVcount::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "vcount" ); - _Meta->registerClass(domPolylist::domVcount::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("ListOfUInts")); - ma->setOffset( daeOffsetOf( domPolylist::domVcount , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domPolylist::domVcount)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domPolylist::_Meta = NULL; -daeMetaElement * domPolylist::domVcount::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domProfile_CG.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domProfile_CG.cpp deleted file mode 100644 index ad5b980e4..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domProfile_CG.cpp +++ /dev/null @@ -1,723 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domProfile_CG::create(daeInt bytes) -{ - domProfile_CGRef ref = new(bytes) domProfile_CG; - return ref; -} - - -daeMetaElement * -domProfile_CG::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "profile_CG" ); - _Meta->registerClass(domProfile_CG::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domProfile_CG,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "code" ); - mea->setOffset( daeOffsetOf(domProfile_CG,elemCode_array) ); - mea->setElementType( domFx_code_profile::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "include" ); - mea->setOffset( daeOffsetOf(domProfile_CG,elemInclude_array) ); - mea->setElementType( domFx_include_common::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaChoice( _Meta, cm, 3002, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "image" ); - mea->setOffset( daeOffsetOf(domProfile_CG,elemImage_array) ); - mea->setElementType( domImage::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "newparam" ); - mea->setOffset( daeOffsetOf(domProfile_CG,elemNewparam_array) ); - mea->setElementType( domCg_newparam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 6003, 1, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domProfile_CG,elemTechnique_array) ); - mea->setElementType( domProfile_CG::domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 6004, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domProfile_CG,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 6004 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domProfile_CG,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domProfile_CG,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domProfile_CG , attrId )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: platform - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "platform" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_CG , attrPlatform )); - ma->setContainer( _Meta ); - ma->setDefault( "PC"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_CG)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_CG::domTechnique::create(daeInt bytes) -{ - domProfile_CG::domTechniqueRef ref = new(bytes) domProfile_CG::domTechnique; - return ref; -} - - -daeMetaElement * -domProfile_CG::domTechnique::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique" ); - _Meta->registerClass(domProfile_CG::domTechnique::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 2, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "code" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique,elemCode_array) ); - mea->setElementType( domFx_code_profile::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "include" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique,elemInclude_array) ); - mea->setElementType( domFx_include_common::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaChoice( _Meta, cm, 3003, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "image" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique,elemImage_array) ); - mea->setElementType( domImage::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "newparam" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique,elemNewparam_array) ); - mea->setElementType( domCg_newparam::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "setparam" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique,elemSetparam_array) ); - mea->setElementType( domCg_setparam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 6004, 1, -1 ); - mea->setName( "pass" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique,elemPass_array) ); - mea->setElementType( domProfile_CG::domTechnique::domPass::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 6005, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 6005 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domProfile_CG::domTechnique,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domProfile_CG::domTechnique,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_CG::domTechnique)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_CG::domTechnique::domPass::create(daeInt bytes) -{ - domProfile_CG::domTechnique::domPassRef ref = new(bytes) domProfile_CG::domTechnique::domPass; - return ref; -} - - -daeMetaElement * -domProfile_CG::domTechnique::domPass::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "pass" ); - _Meta->registerClass(domProfile_CG::domTechnique::domPass::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "color_target" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass,elemColor_target_array) ); - mea->setElementType( domFx_colortarget_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "depth_target" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass,elemDepth_target_array) ); - mea->setElementType( domFx_depthtarget_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "stencil_target" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass,elemStencil_target_array) ); - mea->setElementType( domFx_stenciltarget_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 0, -1 ); - mea->setName( "color_clear" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass,elemColor_clear_array) ); - mea->setElementType( domFx_clearcolor_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 5, 0, -1 ); - mea->setName( "depth_clear" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass,elemDepth_clear_array) ); - mea->setElementType( domFx_cleardepth_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 6, 0, -1 ); - mea->setName( "stencil_clear" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass,elemStencil_clear_array) ); - mea->setElementType( domFx_clearstencil_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "draw" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass,elemDraw) ); - mea->setElementType( domProfile_CG::domTechnique::domPass::domDraw::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 8, 1, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "gl_pipeline_settings" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass,elemGl_pipeline_settings_array) ); - mea->setElementType( domGl_pipeline_settings::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "shader" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass,elemShader_array) ); - mea->setElementType( domProfile_CG::domTechnique::domPass::domShader::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3009, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3009 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domProfile_CG::domTechnique::domPass,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domProfile_CG::domTechnique::domPass,_contentsOrder)); - - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_CG::domTechnique::domPass::domDraw::create(daeInt bytes) -{ - domProfile_CG::domTechnique::domPass::domDrawRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domDraw; - return ref; -} - - -daeMetaElement * -domProfile_CG::domTechnique::domPass::domDraw::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "draw" ); - _Meta->registerClass(domProfile_CG::domTechnique::domPass::domDraw::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_draw_common")); - ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domDraw , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domDraw)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_CG::domTechnique::domPass::domShader::create(daeInt bytes) -{ - domProfile_CG::domTechnique::domPass::domShaderRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domShader; - return ref; -} - - -daeMetaElement * -domProfile_CG::domTechnique::domPass::domShader::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "shader" ); - _Meta->registerClass(domProfile_CG::domTechnique::domPass::domShader::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaSequence( _Meta, cm, 1, 0, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "compiler_target" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader,elemCompiler_target) ); - mea->setElementType( domProfile_CG::domTechnique::domPass::domShader::domCompiler_target::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "compiler_options" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader,elemCompiler_options) ); - mea->setElementType( domProfile_CG::domTechnique::domPass::domShader::domCompiler_options::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 1, 1 ); - mea->setName( "name" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader,elemName) ); - mea->setElementType( domProfile_CG::domTechnique::domPass::domShader::domName::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 0, -1 ); - mea->setName( "bind" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader,elemBind_array) ); - mea->setElementType( domProfile_CG::domTechnique::domPass::domShader::domBind::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 4 ); - _Meta->setCMRoot( cm ); - - // Add attribute: stage - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "stage" ); - ma->setType( daeAtomicType::get("Cg_pipeline_stage")); - ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader , attrStage )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domShader)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_CG::domTechnique::domPass::domShader::domCompiler_target::create(daeInt bytes) -{ - domProfile_CG::domTechnique::domPass::domShader::domCompiler_targetRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domShader::domCompiler_target; - return ref; -} - - -daeMetaElement * -domProfile_CG::domTechnique::domPass::domShader::domCompiler_target::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "compiler_target" ); - _Meta->registerClass(domProfile_CG::domTechnique::domPass::domShader::domCompiler_target::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNMTOKEN")); - ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader::domCompiler_target , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domShader::domCompiler_target)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_CG::domTechnique::domPass::domShader::domCompiler_options::create(daeInt bytes) -{ - domProfile_CG::domTechnique::domPass::domShader::domCompiler_optionsRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domShader::domCompiler_options; - return ref; -} - - -daeMetaElement * -domProfile_CG::domTechnique::domPass::domShader::domCompiler_options::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "compiler_options" ); - _Meta->registerClass(domProfile_CG::domTechnique::domPass::domShader::domCompiler_options::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader::domCompiler_options , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domShader::domCompiler_options)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_CG::domTechnique::domPass::domShader::domName::create(daeInt bytes) -{ - domProfile_CG::domTechnique::domPass::domShader::domNameRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domShader::domName; - return ref; -} - - -daeMetaElement * -domProfile_CG::domTechnique::domPass::domShader::domName::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "name" ); - _Meta->registerClass(domProfile_CG::domTechnique::domPass::domShader::domName::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader::domName , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader::domName , attrSource )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domShader::domName)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_CG::domTechnique::domPass::domShader::domBind::create(daeInt bytes) -{ - domProfile_CG::domTechnique::domPass::domShader::domBindRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domShader::domBind; - return ref; -} - - -daeMetaElement * -domProfile_CG::domTechnique::domPass::domShader::domBind::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bind" ); - _Meta->registerClass(domProfile_CG::domTechnique::domPass::domShader::domBind::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "cg_param_type" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader::domBind,elemCg_param_type) ); - mea->setElementType( domCg_param_type::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "param" ); - mea->setOffset( daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader::domBind,elemParam) ); - mea->setElementType( domProfile_CG::domTechnique::domPass::domShader::domBind::domParam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader::domBind,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domProfile_CG::domTechnique::domPass::domShader::domBind,_contentsOrder)); - - - // Add attribute: symbol - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "symbol" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader::domBind , attrSymbol )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domShader::domBind)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_CG::domTechnique::domPass::domShader::domBind::domParam::create(daeInt bytes) -{ - domProfile_CG::domTechnique::domPass::domShader::domBind::domParamRef ref = new(bytes) domProfile_CG::domTechnique::domPass::domShader::domBind::domParam; - return ref; -} - - -daeMetaElement * -domProfile_CG::domTechnique::domPass::domShader::domBind::domParam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "param" ); - _Meta->registerClass(domProfile_CG::domTechnique::domPass::domShader::domBind::domParam::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_CG::domTechnique::domPass::domShader::domBind::domParam , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_CG::domTechnique::domPass::domShader::domBind::domParam)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domProfile_CG::_Meta = NULL; -daeMetaElement * domProfile_CG::domTechnique::_Meta = NULL; -daeMetaElement * domProfile_CG::domTechnique::domPass::_Meta = NULL; -daeMetaElement * domProfile_CG::domTechnique::domPass::domDraw::_Meta = NULL; -daeMetaElement * domProfile_CG::domTechnique::domPass::domShader::_Meta = NULL; -daeMetaElement * domProfile_CG::domTechnique::domPass::domShader::domCompiler_target::_Meta = NULL; -daeMetaElement * domProfile_CG::domTechnique::domPass::domShader::domCompiler_options::_Meta = NULL; -daeMetaElement * domProfile_CG::domTechnique::domPass::domShader::domName::_Meta = NULL; -daeMetaElement * domProfile_CG::domTechnique::domPass::domShader::domBind::_Meta = NULL; -daeMetaElement * domProfile_CG::domTechnique::domPass::domShader::domBind::domParam::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domProfile_COMMON.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domProfile_COMMON.cpp deleted file mode 100644 index 6ade95620..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domProfile_COMMON.cpp +++ /dev/null @@ -1,565 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domProfile_COMMON::create(daeInt bytes) -{ - domProfile_COMMONRef ref = new(bytes) domProfile_COMMON; - return ref; -} - - -daeMetaElement * -domProfile_COMMON::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "profile_COMMON" ); - _Meta->registerClass(domProfile_COMMON::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "image" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON,elemImage_array) ); - mea->setElementType( domImage::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "newparam" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON,elemNewparam_array) ); - mea->setElementType( domCommon_newparam_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementAttribute( _Meta, cm, 3002, 1, 1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON,elemTechnique) ); - mea->setElementType( domProfile_COMMON::domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3003, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3003 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domProfile_COMMON,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domProfile_COMMON,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domProfile_COMMON , attrId )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_COMMON)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_COMMON::domTechnique::create(daeInt bytes) -{ - domProfile_COMMON::domTechniqueRef ref = new(bytes) domProfile_COMMON::domTechnique; - return ref; -} - - -daeMetaElement * -domProfile_COMMON::domTechnique::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique" ); - _Meta->registerClass(domProfile_COMMON::domTechnique::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "image" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique,elemImage_array) ); - mea->setElementType( domImage::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "newparam" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique,elemNewparam_array) ); - mea->setElementType( domCommon_newparam_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaChoice( _Meta, cm, 3002, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "constant" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique,elemConstant) ); - mea->setElementType( domProfile_COMMON::domTechnique::domConstant::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "lambert" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique,elemLambert) ); - mea->setElementType( domProfile_COMMON::domTechnique::domLambert::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "phong" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique,elemPhong) ); - mea->setElementType( domProfile_COMMON::domTechnique::domPhong::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "blinn" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique,elemBlinn) ); - mea->setElementType( domProfile_COMMON::domTechnique::domBlinn::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3003, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3003 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domProfile_COMMON::domTechnique,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domProfile_COMMON::domTechnique,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domProfile_COMMON::domTechnique , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_COMMON::domTechnique , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_COMMON::domTechnique)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_COMMON::domTechnique::domConstant::create(daeInt bytes) -{ - domProfile_COMMON::domTechnique::domConstantRef ref = new(bytes) domProfile_COMMON::domTechnique::domConstant; - return ref; -} - - -daeMetaElement * -domProfile_COMMON::domTechnique::domConstant::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "constant" ); - _Meta->registerClass(domProfile_COMMON::domTechnique::domConstant::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "emission" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domConstant,elemEmission) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "reflective" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domConstant,elemReflective) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "reflectivity" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domConstant,elemReflectivity) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "transparent" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domConstant,elemTransparent) ); - mea->setElementType( domCommon_transparent_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "transparency" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domConstant,elemTransparency) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "index_of_refraction" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domConstant,elemIndex_of_refraction) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 5 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domProfile_COMMON::domTechnique::domConstant)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_COMMON::domTechnique::domLambert::create(daeInt bytes) -{ - domProfile_COMMON::domTechnique::domLambertRef ref = new(bytes) domProfile_COMMON::domTechnique::domLambert; - return ref; -} - - -daeMetaElement * -domProfile_COMMON::domTechnique::domLambert::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "lambert" ); - _Meta->registerClass(domProfile_COMMON::domTechnique::domLambert::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "emission" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemEmission) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "ambient" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemAmbient) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "diffuse" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemDiffuse) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "reflective" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemReflective) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "reflectivity" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemReflectivity) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "transparent" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemTransparent) ); - mea->setElementType( domCommon_transparent_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "transparency" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemTransparency) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "index_of_refraction" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domLambert,elemIndex_of_refraction) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 7 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domProfile_COMMON::domTechnique::domLambert)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_COMMON::domTechnique::domPhong::create(daeInt bytes) -{ - domProfile_COMMON::domTechnique::domPhongRef ref = new(bytes) domProfile_COMMON::domTechnique::domPhong; - return ref; -} - - -daeMetaElement * -domProfile_COMMON::domTechnique::domPhong::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "phong" ); - _Meta->registerClass(domProfile_COMMON::domTechnique::domPhong::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "emission" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemEmission) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "ambient" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemAmbient) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "diffuse" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemDiffuse) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "specular" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemSpecular) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "shininess" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemShininess) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "reflective" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemReflective) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "reflectivity" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemReflectivity) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "transparent" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemTransparent) ); - mea->setElementType( domCommon_transparent_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "transparency" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemTransparency) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 9, 0, 1 ); - mea->setName( "index_of_refraction" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domPhong,elemIndex_of_refraction) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 9 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domProfile_COMMON::domTechnique::domPhong)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_COMMON::domTechnique::domBlinn::create(daeInt bytes) -{ - domProfile_COMMON::domTechnique::domBlinnRef ref = new(bytes) domProfile_COMMON::domTechnique::domBlinn; - return ref; -} - - -daeMetaElement * -domProfile_COMMON::domTechnique::domBlinn::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "blinn" ); - _Meta->registerClass(domProfile_COMMON::domTechnique::domBlinn::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "emission" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemEmission) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "ambient" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemAmbient) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "diffuse" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemDiffuse) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "specular" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemSpecular) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "shininess" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemShininess) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "reflective" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemReflective) ); - mea->setElementType( domCommon_color_or_texture_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "reflectivity" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemReflectivity) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "transparent" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemTransparent) ); - mea->setElementType( domCommon_transparent_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 8, 0, 1 ); - mea->setName( "transparency" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemTransparency) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 9, 0, 1 ); - mea->setName( "index_of_refraction" ); - mea->setOffset( daeOffsetOf(domProfile_COMMON::domTechnique::domBlinn,elemIndex_of_refraction) ); - mea->setElementType( domCommon_float_or_param_type::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 9 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domProfile_COMMON::domTechnique::domBlinn)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domProfile_COMMON::_Meta = NULL; -daeMetaElement * domProfile_COMMON::domTechnique::_Meta = NULL; -daeMetaElement * domProfile_COMMON::domTechnique::domConstant::_Meta = NULL; -daeMetaElement * domProfile_COMMON::domTechnique::domLambert::_Meta = NULL; -daeMetaElement * domProfile_COMMON::domTechnique::domPhong::_Meta = NULL; -daeMetaElement * domProfile_COMMON::domTechnique::domBlinn::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domProfile_GLES.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domProfile_GLES.cpp deleted file mode 100644 index e8e01a06d..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domProfile_GLES.cpp +++ /dev/null @@ -1,654 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domProfile_GLES::create(daeInt bytes) -{ - domProfile_GLESRef ref = new(bytes) domProfile_GLES; - return ref; -} - - -daeMetaElement * -domProfile_GLES::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "profile_GLES" ); - _Meta->registerClass(domProfile_GLES::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domProfile_GLES,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "image" ); - mea->setOffset( daeOffsetOf(domProfile_GLES,elemImage_array) ); - mea->setElementType( domImage::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "newparam" ); - mea->setOffset( daeOffsetOf(domProfile_GLES,elemNewparam_array) ); - mea->setElementType( domGles_newparam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3002, 1, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domProfile_GLES,elemTechnique_array) ); - mea->setElementType( domProfile_GLES::domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3003, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domProfile_GLES,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3003 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domProfile_GLES,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domProfile_GLES,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domProfile_GLES , attrId )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: platform - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "platform" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_GLES , attrPlatform )); - ma->setContainer( _Meta ); - ma->setDefault( "PC"); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLES)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLES::domTechnique::create(daeInt bytes) -{ - domProfile_GLES::domTechniqueRef ref = new(bytes) domProfile_GLES::domTechnique; - return ref; -} - - -daeMetaElement * -domProfile_GLES::domTechnique::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique" ); - _Meta->registerClass(domProfile_GLES::domTechnique::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 2, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "image" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique,elemImage_array) ); - mea->setElementType( domImage::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "newparam" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique,elemNewparam_array) ); - mea->setElementType( domGles_newparam::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "setparam" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique,elemSetparam_array) ); - mea->setElementType( domProfile_GLES::domTechnique::domSetparam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3003, 1, -1 ); - mea->setName( "pass" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique,elemPass_array) ); - mea->setElementType( domProfile_GLES::domTechnique::domPass::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3004, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3004 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domProfile_GLES::domTechnique,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domProfile_GLES::domTechnique,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLES::domTechnique::domSetparam::create(daeInt bytes) -{ - domProfile_GLES::domTechnique::domSetparamRef ref = new(bytes) domProfile_GLES::domTechnique::domSetparam; - return ref; -} - - -daeMetaElement * -domProfile_GLES::domTechnique::domSetparam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "setparam" ); - _Meta->registerClass(domProfile_GLES::domTechnique::domSetparam::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique::domSetparam,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "gles_basic_type_common" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique::domSetparam,elemGles_basic_type_common) ); - mea->setElementType( domGles_basic_type_common::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 1, 1, 1 ) ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domSetparam , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domSetparam)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLES::domTechnique::domPass::create(daeInt bytes) -{ - domProfile_GLES::domTechnique::domPassRef ref = new(bytes) domProfile_GLES::domTechnique::domPass; - return ref; -} - - -daeMetaElement * -domProfile_GLES::domTechnique::domPass::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "pass" ); - _Meta->registerClass(domProfile_GLES::domTechnique::domPass::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "color_target" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemColor_target) ); - mea->setElementType( domProfile_GLES::domTechnique::domPass::domColor_target::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "depth_target" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemDepth_target) ); - mea->setElementType( domProfile_GLES::domTechnique::domPass::domDepth_target::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "stencil_target" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemStencil_target) ); - mea->setElementType( domProfile_GLES::domTechnique::domPass::domStencil_target::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 4, 0, 1 ); - mea->setName( "color_clear" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemColor_clear) ); - mea->setElementType( domProfile_GLES::domTechnique::domPass::domColor_clear::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 5, 0, 1 ); - mea->setName( "depth_clear" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemDepth_clear) ); - mea->setElementType( domProfile_GLES::domTechnique::domPass::domDepth_clear::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 6, 0, 1 ); - mea->setName( "stencil_clear" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemStencil_clear) ); - mea->setElementType( domProfile_GLES::domTechnique::domPass::domStencil_clear::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "draw" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemDraw) ); - mea->setElementType( domProfile_GLES::domTechnique::domPass::domDraw::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 8, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "gles_pipeline_settings" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemGles_pipeline_settings_array) ); - mea->setElementType( domGles_pipeline_settings::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3009, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domProfile_GLES::domTechnique::domPass,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3009 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domProfile_GLES::domTechnique::domPass,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domProfile_GLES::domTechnique::domPass,_contentsOrder)); - - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLES::domTechnique::domPass::domColor_target::create(daeInt bytes) -{ - domProfile_GLES::domTechnique::domPass::domColor_targetRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domColor_target; - return ref; -} - - -daeMetaElement * -domProfile_GLES::domTechnique::domPass::domColor_target::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "color_target" ); - _Meta->registerClass(domProfile_GLES::domTechnique::domPass::domColor_target::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Gles_rendertarget_common")); - ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domColor_target , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domColor_target)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLES::domTechnique::domPass::domDepth_target::create(daeInt bytes) -{ - domProfile_GLES::domTechnique::domPass::domDepth_targetRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domDepth_target; - return ref; -} - - -daeMetaElement * -domProfile_GLES::domTechnique::domPass::domDepth_target::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "depth_target" ); - _Meta->registerClass(domProfile_GLES::domTechnique::domPass::domDepth_target::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Gles_rendertarget_common")); - ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domDepth_target , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domDepth_target)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLES::domTechnique::domPass::domStencil_target::create(daeInt bytes) -{ - domProfile_GLES::domTechnique::domPass::domStencil_targetRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domStencil_target; - return ref; -} - - -daeMetaElement * -domProfile_GLES::domTechnique::domPass::domStencil_target::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "stencil_target" ); - _Meta->registerClass(domProfile_GLES::domTechnique::domPass::domStencil_target::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Gles_rendertarget_common")); - ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domStencil_target , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domStencil_target)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLES::domTechnique::domPass::domColor_clear::create(daeInt bytes) -{ - domProfile_GLES::domTechnique::domPass::domColor_clearRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domColor_clear; - return ref; -} - - -daeMetaElement * -domProfile_GLES::domTechnique::domPass::domColor_clear::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "color_clear" ); - _Meta->registerClass(domProfile_GLES::domTechnique::domPass::domColor_clear::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_color_common")); - ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domColor_clear , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domColor_clear)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLES::domTechnique::domPass::domDepth_clear::create(daeInt bytes) -{ - domProfile_GLES::domTechnique::domPass::domDepth_clearRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domDepth_clear; - return ref; -} - - -daeMetaElement * -domProfile_GLES::domTechnique::domPass::domDepth_clear::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "depth_clear" ); - _Meta->registerClass(domProfile_GLES::domTechnique::domPass::domDepth_clear::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domDepth_clear , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domDepth_clear)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLES::domTechnique::domPass::domStencil_clear::create(daeInt bytes) -{ - domProfile_GLES::domTechnique::domPass::domStencil_clearRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domStencil_clear; - return ref; -} - - -daeMetaElement * -domProfile_GLES::domTechnique::domPass::domStencil_clear::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "stencil_clear" ); - _Meta->registerClass(domProfile_GLES::domTechnique::domPass::domStencil_clear::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsByte")); - ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domStencil_clear , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domStencil_clear)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLES::domTechnique::domPass::domDraw::create(daeInt bytes) -{ - domProfile_GLES::domTechnique::domPass::domDrawRef ref = new(bytes) domProfile_GLES::domTechnique::domPass::domDraw; - return ref; -} - - -daeMetaElement * -domProfile_GLES::domTechnique::domPass::domDraw::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "draw" ); - _Meta->registerClass(domProfile_GLES::domTechnique::domPass::domDraw::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_draw_common")); - ma->setOffset( daeOffsetOf( domProfile_GLES::domTechnique::domPass::domDraw , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLES::domTechnique::domPass::domDraw)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domProfile_GLES::_Meta = NULL; -daeMetaElement * domProfile_GLES::domTechnique::_Meta = NULL; -daeMetaElement * domProfile_GLES::domTechnique::domSetparam::_Meta = NULL; -daeMetaElement * domProfile_GLES::domTechnique::domPass::_Meta = NULL; -daeMetaElement * domProfile_GLES::domTechnique::domPass::domColor_target::_Meta = NULL; -daeMetaElement * domProfile_GLES::domTechnique::domPass::domDepth_target::_Meta = NULL; -daeMetaElement * domProfile_GLES::domTechnique::domPass::domStencil_target::_Meta = NULL; -daeMetaElement * domProfile_GLES::domTechnique::domPass::domColor_clear::_Meta = NULL; -daeMetaElement * domProfile_GLES::domTechnique::domPass::domDepth_clear::_Meta = NULL; -daeMetaElement * domProfile_GLES::domTechnique::domPass::domStencil_clear::_Meta = NULL; -daeMetaElement * domProfile_GLES::domTechnique::domPass::domDraw::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domProfile_GLSL.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domProfile_GLSL.cpp deleted file mode 100644 index 94bed2e37..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domProfile_GLSL.cpp +++ /dev/null @@ -1,704 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domProfile_GLSL::create(daeInt bytes) -{ - domProfile_GLSLRef ref = new(bytes) domProfile_GLSL; - return ref; -} - - -daeMetaElement * -domProfile_GLSL::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "profile_GLSL" ); - _Meta->registerClass(domProfile_GLSL::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "code" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL,elemCode_array) ); - mea->setElementType( domFx_code_profile::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "include" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL,elemInclude_array) ); - mea->setElementType( domFx_include_common::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaChoice( _Meta, cm, 3002, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "image" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL,elemImage_array) ); - mea->setElementType( domImage::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "newparam" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL,elemNewparam_array) ); - mea->setElementType( domGlsl_newparam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 6003, 1, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL,elemTechnique_array) ); - mea->setElementType( domProfile_GLSL::domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 6004, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 6004 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domProfile_GLSL,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domProfile_GLSL,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domProfile_GLSL , attrId )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLSL)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLSL::domTechnique::create(daeInt bytes) -{ - domProfile_GLSL::domTechniqueRef ref = new(bytes) domProfile_GLSL::domTechnique; - return ref; -} - - -daeMetaElement * -domProfile_GLSL::domTechnique::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique" ); - _Meta->registerClass(domProfile_GLSL::domTechnique::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "code" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemCode_array) ); - mea->setElementType( domFx_code_profile::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "include" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemInclude_array) ); - mea->setElementType( domFx_include_common::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaChoice( _Meta, cm, 3002, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "image" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemImage_array) ); - mea->setElementType( domImage::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "newparam" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemNewparam_array) ); - mea->setElementType( domGlsl_newparam::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "setparam" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemSetparam_array) ); - mea->setElementType( domGlsl_setparam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 6003, 1, -1 ); - mea->setName( "pass" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemPass_array) ); - mea->setElementType( domProfile_GLSL::domTechnique::domPass::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 6004, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 6004 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domProfile_GLSL::domTechnique,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domProfile_GLSL::domTechnique,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLSL::domTechnique::domPass::create(daeInt bytes) -{ - domProfile_GLSL::domTechnique::domPassRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass; - return ref; -} - - -daeMetaElement * -domProfile_GLSL::domTechnique::domPass::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "pass" ); - _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "color_target" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemColor_target_array) ); - mea->setElementType( domFx_colortarget_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "depth_target" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemDepth_target_array) ); - mea->setElementType( domFx_depthtarget_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "stencil_target" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemStencil_target_array) ); - mea->setElementType( domFx_stenciltarget_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 0, -1 ); - mea->setName( "color_clear" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemColor_clear_array) ); - mea->setElementType( domFx_clearcolor_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 5, 0, -1 ); - mea->setName( "depth_clear" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemDepth_clear_array) ); - mea->setElementType( domFx_cleardepth_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 6, 0, -1 ); - mea->setName( "stencil_clear" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemStencil_clear_array) ); - mea->setElementType( domFx_clearstencil_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 7, 0, 1 ); - mea->setName( "draw" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemDraw) ); - mea->setElementType( domProfile_GLSL::domTechnique::domPass::domDraw::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 8, 1, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "gl_pipeline_settings" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemGl_pipeline_settings_array) ); - mea->setElementType( domGl_pipeline_settings::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "shader" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemShader_array) ); - mea->setElementType( domProfile_GLSL::domTechnique::domPass::domShader::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3009, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3009 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domProfile_GLSL::domTechnique::domPass,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domProfile_GLSL::domTechnique::domPass,_contentsOrder)); - - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLSL::domTechnique::domPass::domDraw::create(daeInt bytes) -{ - domProfile_GLSL::domTechnique::domPass::domDrawRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domDraw; - return ref; -} - - -daeMetaElement * -domProfile_GLSL::domTechnique::domPass::domDraw::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "draw" ); - _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domDraw::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Fx_draw_common")); - ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domDraw , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domDraw)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLSL::domTechnique::domPass::domShader::create(daeInt bytes) -{ - domProfile_GLSL::domTechnique::domPass::domShaderRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader; - return ref; -} - - -daeMetaElement * -domProfile_GLSL::domTechnique::domPass::domShader::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "shader" ); - _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domShader::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "annotate" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemAnnotate_array) ); - mea->setElementType( domFx_annotate_common::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaSequence( _Meta, cm, 1, 0, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "compiler_target" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemCompiler_target) ); - mea->setElementType( domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "compiler_options" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemCompiler_options) ); - mea->setElementType( domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 1, 1 ); - mea->setName( "name" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemName) ); - mea->setElementType( domProfile_GLSL::domTechnique::domPass::domShader::domName::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 0, -1 ); - mea->setName( "bind" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader,elemBind_array) ); - mea->setElementType( domProfile_GLSL::domTechnique::domPass::domShader::domBind::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 4 ); - _Meta->setCMRoot( cm ); - - // Add attribute: stage - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "stage" ); - ma->setType( daeAtomicType::get("Glsl_pipeline_stage")); - ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader , attrStage )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::create(daeInt bytes) -{ - domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_targetRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target; - return ref; -} - - -daeMetaElement * -domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "compiler_target" ); - _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNMTOKEN")); - ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::create(daeInt bytes) -{ - domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_optionsRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options; - return ref; -} - - -daeMetaElement * -domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "compiler_options" ); - _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLSL::domTechnique::domPass::domShader::domName::create(daeInt bytes) -{ - domProfile_GLSL::domTechnique::domPass::domShader::domNameRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domName; - return ref; -} - - -daeMetaElement * -domProfile_GLSL::domTechnique::domPass::domShader::domName::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "name" ); - _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domShader::domName::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domName , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domName , attrSource )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domName)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLSL::domTechnique::domPass::domShader::domBind::create(daeInt bytes) -{ - domProfile_GLSL::domTechnique::domPass::domShader::domBindRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domBind; - return ref; -} - - -daeMetaElement * -domProfile_GLSL::domTechnique::domPass::domShader::domBind::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bind" ); - _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domShader::domBind::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "glsl_param_type" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader::domBind,elemGlsl_param_type) ); - mea->setElementType( domGlsl_param_type::registerElement() ); - cm->appendChild( new daeMetaGroup( mea, _Meta, cm, 0, 1, 1 ) ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "param" ); - mea->setOffset( daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader::domBind,elemParam) ); - mea->setElementType( domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader::domBind,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domProfile_GLSL::domTechnique::domPass::domShader::domBind,_contentsOrder)); - - - // Add attribute: symbol - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "symbol" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domBind , attrSymbol )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domBind)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::create(daeInt bytes) -{ - domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParamRef ref = new(bytes) domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam; - return ref; -} - - -daeMetaElement * -domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "param" ); - _Meta->registerClass(domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::create, &_Meta); - - _Meta->setIsInnerClass( true ); - - // Add attribute: ref - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "ref" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam , attrRef )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domProfile_GLSL::_Meta = NULL; -daeMetaElement * domProfile_GLSL::domTechnique::_Meta = NULL; -daeMetaElement * domProfile_GLSL::domTechnique::domPass::_Meta = NULL; -daeMetaElement * domProfile_GLSL::domTechnique::domPass::domDraw::_Meta = NULL; -daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::_Meta = NULL; -daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_target::_Meta = NULL; -daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domCompiler_options::_Meta = NULL; -daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domName::_Meta = NULL; -daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domBind::_Meta = NULL; -daeMetaElement * domProfile_GLSL::domTechnique::domPass::domShader::domBind::domParam::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domRigid_body.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domRigid_body.cpp deleted file mode 100644 index 22caad88a..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domRigid_body.cpp +++ /dev/null @@ -1,477 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domRigid_body::create(daeInt bytes) -{ - domRigid_bodyRef ref = new(bytes) domRigid_body; - return ref; -} - - -daeMetaElement * -domRigid_body::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "rigid_body" ); - _Meta->registerClass(domRigid_body::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "technique_common" ); - mea->setOffset( daeOffsetOf(domRigid_body,elemTechnique_common) ); - mea->setElementType( domRigid_body::domTechnique_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domRigid_body,elemTechnique_array) ); - mea->setElementType( domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domRigid_body,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domRigid_body , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domRigid_body , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domRigid_body)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_body::domTechnique_common::create(daeInt bytes) -{ - domRigid_body::domTechnique_commonRef ref = new(bytes) domRigid_body::domTechnique_common; - return ref; -} - - -daeMetaElement * -domRigid_body::domTechnique_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique_common" ); - _Meta->registerClass(domRigid_body::domTechnique_common::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "dynamic" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common,elemDynamic) ); - mea->setElementType( domRigid_body::domTechnique_common::domDynamic::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "mass" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common,elemMass) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "mass_frame" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common,elemMass_frame) ); - mea->setElementType( domRigid_body::domTechnique_common::domMass_frame::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "inertia" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common,elemInertia) ); - mea->setElementType( domTargetableFloat3::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 4, 0, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "instance_physics_material" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common,elemInstance_physics_material) ); - mea->setElementType( domInstance_physics_material::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "physics_material" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common,elemPhysics_material) ); - mea->setElementType( domPhysics_material::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 5, 1, -1 ); - mea->setName( "shape" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common,elemShape_array) ); - mea->setElementType( domRigid_body::domTechnique_common::domShape::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 5 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domRigid_body::domTechnique_common,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domRigid_body::domTechnique_common,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domRigid_body::domTechnique_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_body::domTechnique_common::domDynamic::create(daeInt bytes) -{ - domRigid_body::domTechnique_common::domDynamicRef ref = new(bytes) domRigid_body::domTechnique_common::domDynamic; - return ref; -} - - -daeMetaElement * -domRigid_body::domTechnique_common::domDynamic::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "dynamic" ); - _Meta->registerClass(domRigid_body::domTechnique_common::domDynamic::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domRigid_body::domTechnique_common::domDynamic , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domRigid_body::domTechnique_common::domDynamic , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domRigid_body::domTechnique_common::domDynamic)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_body::domTechnique_common::domMass_frame::create(daeInt bytes) -{ - domRigid_body::domTechnique_common::domMass_frameRef ref = new(bytes) domRigid_body::domTechnique_common::domMass_frame; - return ref; -} - - -daeMetaElement * -domRigid_body::domTechnique_common::domMass_frame::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "mass_frame" ); - _Meta->registerClass(domRigid_body::domTechnique_common::domMass_frame::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 1, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "translate" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domMass_frame,elemTranslate_array) ); - mea->setElementType( domTranslate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "rotate" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domMass_frame,elemRotate_array) ); - mea->setElementType( domRotate::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3000 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domRigid_body::domTechnique_common::domMass_frame,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domRigid_body::domTechnique_common::domMass_frame,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domRigid_body::domTechnique_common::domMass_frame)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_body::domTechnique_common::domShape::create(daeInt bytes) -{ - domRigid_body::domTechnique_common::domShapeRef ref = new(bytes) domRigid_body::domTechnique_common::domShape; - return ref; -} - - -daeMetaElement * -domRigid_body::domTechnique_common::domShape::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "shape" ); - _Meta->registerClass(domRigid_body::domTechnique_common::domShape::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "hollow" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemHollow) ); - mea->setElementType( domRigid_body::domTechnique_common::domShape::domHollow::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "mass" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemMass) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "density" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemDensity) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 3, 0, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "instance_physics_material" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemInstance_physics_material) ); - mea->setElementType( domInstance_physics_material::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "physics_material" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemPhysics_material) ); - mea->setElementType( domPhysics_material::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaChoice( _Meta, cm, 4, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "instance_geometry" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemInstance_geometry) ); - mea->setElementType( domInstance_geometry::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "plane" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemPlane) ); - mea->setElementType( domPlane::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "box" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemBox) ); - mea->setElementType( domBox::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "sphere" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemSphere) ); - mea->setElementType( domSphere::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "cylinder" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemCylinder) ); - mea->setElementType( domCylinder::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "tapered_cylinder" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemTapered_cylinder) ); - mea->setElementType( domTapered_cylinder::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "capsule" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemCapsule) ); - mea->setElementType( domCapsule::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "tapered_capsule" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemTapered_capsule) ); - mea->setElementType( domTapered_capsule::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm = new daeMetaChoice( _Meta, cm, 5, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "translate" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemTranslate_array) ); - mea->setElementType( domTranslate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "rotate" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemRotate_array) ); - mea->setElementType( domRotate::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3006, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domRigid_body::domTechnique_common::domShape,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3006 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domRigid_body::domTechnique_common::domShape,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domRigid_body::domTechnique_common::domShape,_contentsOrder)); - - - - _Meta->setElementSize(sizeof(domRigid_body::domTechnique_common::domShape)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_body::domTechnique_common::domShape::domHollow::create(daeInt bytes) -{ - domRigid_body::domTechnique_common::domShape::domHollowRef ref = new(bytes) domRigid_body::domTechnique_common::domShape::domHollow; - return ref; -} - - -daeMetaElement * -domRigid_body::domTechnique_common::domShape::domHollow::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "hollow" ); - _Meta->registerClass(domRigid_body::domTechnique_common::domShape::domHollow::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domRigid_body::domTechnique_common::domShape::domHollow , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domRigid_body::domTechnique_common::domShape::domHollow , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domRigid_body::domTechnique_common::domShape::domHollow)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domRigid_body::_Meta = NULL; -daeMetaElement * domRigid_body::domTechnique_common::_Meta = NULL; -daeMetaElement * domRigid_body::domTechnique_common::domDynamic::_Meta = NULL; -daeMetaElement * domRigid_body::domTechnique_common::domMass_frame::_Meta = NULL; -daeMetaElement * domRigid_body::domTechnique_common::domShape::_Meta = NULL; -daeMetaElement * domRigid_body::domTechnique_common::domShape::domHollow::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domRigid_constraint.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domRigid_constraint.cpp deleted file mode 100644 index 5d54a1544..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domRigid_constraint.cpp +++ /dev/null @@ -1,677 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domRigid_constraint::create(daeInt bytes) -{ - domRigid_constraintRef ref = new(bytes) domRigid_constraint; - return ref; -} - - -daeMetaElement * -domRigid_constraint::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "rigid_constraint" ); - _Meta->registerClass(domRigid_constraint::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "ref_attachment" ); - mea->setOffset( daeOffsetOf(domRigid_constraint,elemRef_attachment) ); - mea->setElementType( domRigid_constraint::domRef_attachment::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "attachment" ); - mea->setOffset( daeOffsetOf(domRigid_constraint,elemAttachment) ); - mea->setElementType( domRigid_constraint::domAttachment::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 1, 1 ); - mea->setName( "technique_common" ); - mea->setOffset( daeOffsetOf(domRigid_constraint,elemTechnique_common) ); - mea->setElementType( domRigid_constraint::domTechnique_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domRigid_constraint,elemTechnique_array) ); - mea->setElementType( domTechnique::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domRigid_constraint,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 4 ); - _Meta->setCMRoot( cm ); - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domRigid_constraint , attrSid )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domRigid_constraint , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domRigid_constraint)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_constraint::domRef_attachment::create(daeInt bytes) -{ - domRigid_constraint::domRef_attachmentRef ref = new(bytes) domRigid_constraint::domRef_attachment; - ref->attrRigid_body.setContainer( (domRigid_constraint::domRef_attachment*)ref ); - return ref; -} - - -daeMetaElement * -domRigid_constraint::domRef_attachment::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "ref_attachment" ); - _Meta->registerClass(domRigid_constraint::domRef_attachment::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "translate" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domRef_attachment,elemTranslate_array) ); - mea->setElementType( domTranslate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "rotate" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domRef_attachment,elemRotate_array) ); - mea->setElementType( domRotate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domRef_attachment,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3000 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domRigid_constraint::domRef_attachment,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domRigid_constraint::domRef_attachment,_contentsOrder)); - - - // Add attribute: rigid_body - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "rigid_body" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domRigid_constraint::domRef_attachment , attrRigid_body )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domRigid_constraint::domRef_attachment)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_constraint::domAttachment::create(daeInt bytes) -{ - domRigid_constraint::domAttachmentRef ref = new(bytes) domRigid_constraint::domAttachment; - ref->attrRigid_body.setContainer( (domRigid_constraint::domAttachment*)ref ); - return ref; -} - - -daeMetaElement * -domRigid_constraint::domAttachment::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "attachment" ); - _Meta->registerClass(domRigid_constraint::domAttachment::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaChoice( _Meta, cm, 0, 0, -1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "translate" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domAttachment,elemTranslate_array) ); - mea->setElementType( domTranslate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "rotate" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domAttachment,elemRotate_array) ); - mea->setElementType( domRotate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domAttachment,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3000 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domRigid_constraint::domAttachment,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domRigid_constraint::domAttachment,_contentsOrder)); - - - // Add attribute: rigid_body - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "rigid_body" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domRigid_constraint::domAttachment , attrRigid_body )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domRigid_constraint::domAttachment)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_constraint::domTechnique_common::create(daeInt bytes) -{ - domRigid_constraint::domTechnique_commonRef ref = new(bytes) domRigid_constraint::domTechnique_common; - return ref; -} - - -daeMetaElement * -domRigid_constraint::domTechnique_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique_common" ); - _Meta->registerClass(domRigid_constraint::domTechnique_common::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "enabled" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common,elemEnabled) ); - mea->setElementType( domRigid_constraint::domTechnique_common::domEnabled::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "interpenetrate" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common,elemInterpenetrate) ); - mea->setElementType( domRigid_constraint::domTechnique_common::domInterpenetrate::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "limits" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common,elemLimits) ); - mea->setElementType( domRigid_constraint::domTechnique_common::domLimits::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 0, 1 ); - mea->setName( "spring" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common,elemSpring) ); - mea->setElementType( domRigid_constraint::domTechnique_common::domSpring::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_constraint::domTechnique_common::domEnabled::create(daeInt bytes) -{ - domRigid_constraint::domTechnique_common::domEnabledRef ref = new(bytes) domRigid_constraint::domTechnique_common::domEnabled; - return ref; -} - - -daeMetaElement * -domRigid_constraint::domTechnique_common::domEnabled::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "enabled" ); - _Meta->registerClass(domRigid_constraint::domTechnique_common::domEnabled::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domRigid_constraint::domTechnique_common::domEnabled , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domRigid_constraint::domTechnique_common::domEnabled , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domEnabled)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_constraint::domTechnique_common::domInterpenetrate::create(daeInt bytes) -{ - domRigid_constraint::domTechnique_common::domInterpenetrateRef ref = new(bytes) domRigid_constraint::domTechnique_common::domInterpenetrate; - return ref; -} - - -daeMetaElement * -domRigid_constraint::domTechnique_common::domInterpenetrate::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "interpenetrate" ); - _Meta->registerClass(domRigid_constraint::domTechnique_common::domInterpenetrate::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domRigid_constraint::domTechnique_common::domInterpenetrate , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domRigid_constraint::domTechnique_common::domInterpenetrate , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domInterpenetrate)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_constraint::domTechnique_common::domLimits::create(daeInt bytes) -{ - domRigid_constraint::domTechnique_common::domLimitsRef ref = new(bytes) domRigid_constraint::domTechnique_common::domLimits; - return ref; -} - - -daeMetaElement * -domRigid_constraint::domTechnique_common::domLimits::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "limits" ); - _Meta->registerClass(domRigid_constraint::domTechnique_common::domLimits::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "swing_cone_and_twist" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domLimits,elemSwing_cone_and_twist) ); - mea->setElementType( domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "linear" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domLimits,elemLinear) ); - mea->setElementType( domRigid_constraint::domTechnique_common::domLimits::domLinear::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domLimits)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist::create(daeInt bytes) -{ - domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twistRef ref = new(bytes) domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist; - return ref; -} - - -daeMetaElement * -domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "swing_cone_and_twist" ); - _Meta->registerClass(domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "min" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist,elemMin) ); - mea->setElementType( domTargetableFloat3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "max" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist,elemMax) ); - mea->setElementType( domTargetableFloat3::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_constraint::domTechnique_common::domLimits::domLinear::create(daeInt bytes) -{ - domRigid_constraint::domTechnique_common::domLimits::domLinearRef ref = new(bytes) domRigid_constraint::domTechnique_common::domLimits::domLinear; - return ref; -} - - -daeMetaElement * -domRigid_constraint::domTechnique_common::domLimits::domLinear::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "linear" ); - _Meta->registerClass(domRigid_constraint::domTechnique_common::domLimits::domLinear::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "min" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domLimits::domLinear,elemMin) ); - mea->setElementType( domTargetableFloat3::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "max" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domLimits::domLinear,elemMax) ); - mea->setElementType( domTargetableFloat3::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domLimits::domLinear)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_constraint::domTechnique_common::domSpring::create(daeInt bytes) -{ - domRigid_constraint::domTechnique_common::domSpringRef ref = new(bytes) domRigid_constraint::domTechnique_common::domSpring; - return ref; -} - - -daeMetaElement * -domRigid_constraint::domTechnique_common::domSpring::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "spring" ); - _Meta->registerClass(domRigid_constraint::domTechnique_common::domSpring::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "angular" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring,elemAngular) ); - mea->setElementType( domRigid_constraint::domTechnique_common::domSpring::domAngular::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "linear" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring,elemLinear) ); - mea->setElementType( domRigid_constraint::domTechnique_common::domSpring::domLinear::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domSpring)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_constraint::domTechnique_common::domSpring::domAngular::create(daeInt bytes) -{ - domRigid_constraint::domTechnique_common::domSpring::domAngularRef ref = new(bytes) domRigid_constraint::domTechnique_common::domSpring::domAngular; - return ref; -} - - -daeMetaElement * -domRigid_constraint::domTechnique_common::domSpring::domAngular::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "angular" ); - _Meta->registerClass(domRigid_constraint::domTechnique_common::domSpring::domAngular::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "stiffness" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring::domAngular,elemStiffness) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "damping" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring::domAngular,elemDamping) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "target_value" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring::domAngular,elemTarget_value) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domSpring::domAngular)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domRigid_constraint::domTechnique_common::domSpring::domLinear::create(daeInt bytes) -{ - domRigid_constraint::domTechnique_common::domSpring::domLinearRef ref = new(bytes) domRigid_constraint::domTechnique_common::domSpring::domLinear; - return ref; -} - - -daeMetaElement * -domRigid_constraint::domTechnique_common::domSpring::domLinear::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "linear" ); - _Meta->registerClass(domRigid_constraint::domTechnique_common::domSpring::domLinear::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "stiffness" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring::domLinear,elemStiffness) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "damping" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring::domLinear,elemDamping) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "target_value" ); - mea->setOffset( daeOffsetOf(domRigid_constraint::domTechnique_common::domSpring::domLinear,elemTarget_value) ); - mea->setElementType( domTargetableFloat::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domRigid_constraint::domTechnique_common::domSpring::domLinear)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domRigid_constraint::_Meta = NULL; -daeMetaElement * domRigid_constraint::domRef_attachment::_Meta = NULL; -daeMetaElement * domRigid_constraint::domAttachment::_Meta = NULL; -daeMetaElement * domRigid_constraint::domTechnique_common::_Meta = NULL; -daeMetaElement * domRigid_constraint::domTechnique_common::domEnabled::_Meta = NULL; -daeMetaElement * domRigid_constraint::domTechnique_common::domInterpenetrate::_Meta = NULL; -daeMetaElement * domRigid_constraint::domTechnique_common::domLimits::_Meta = NULL; -daeMetaElement * domRigid_constraint::domTechnique_common::domLimits::domSwing_cone_and_twist::_Meta = NULL; -daeMetaElement * domRigid_constraint::domTechnique_common::domLimits::domLinear::_Meta = NULL; -daeMetaElement * domRigid_constraint::domTechnique_common::domSpring::_Meta = NULL; -daeMetaElement * domRigid_constraint::domTechnique_common::domSpring::domAngular::_Meta = NULL; -daeMetaElement * domRigid_constraint::domTechnique_common::domSpring::domLinear::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domRotate.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domRotate.cpp deleted file mode 100644 index a5d9a4f86..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domRotate.cpp +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domRotate::create(daeInt bytes) -{ - domRotateRef ref = new(bytes) domRotate; - return ref; -} - - -daeMetaElement * -domRotate::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "rotate" ); - _Meta->registerClass(domRotate::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4")); - ma->setOffset( daeOffsetOf( domRotate , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domRotate , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domRotate)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domRotate::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domSampler.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domSampler.cpp deleted file mode 100644 index 1eaae9dd0..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domSampler.cpp +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domSampler::create(daeInt bytes) -{ - domSamplerRef ref = new(bytes) domSampler; - return ref; -} - - -daeMetaElement * -domSampler::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "sampler" ); - _Meta->registerClass(domSampler::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, -1 ); - mea->setName( "input" ); - mea->setOffset( daeOffsetOf(domSampler,elemInput_array) ); - mea->setElementType( domInputLocal::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domSampler , attrId )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domSampler)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domSampler::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domScale.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domScale.cpp deleted file mode 100644 index dac262b50..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domScale.cpp +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domScale::create(daeInt bytes) -{ - domScaleRef ref = new(bytes) domScale; - return ref; -} - - -daeMetaElement * -domScale::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "scale" ); - _Meta->registerClass(domScale::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domScale , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domScale , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domScale)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domScale::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domSkew.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domSkew.cpp deleted file mode 100644 index 37caae206..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domSkew.cpp +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domSkew::create(daeInt bytes) -{ - domSkewRef ref = new(bytes) domSkew; - return ref; -} - - -daeMetaElement * -domSkew::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "skew" ); - _Meta->registerClass(domSkew::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float7")); - ma->setOffset( daeOffsetOf( domSkew , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domSkew , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domSkew)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domSkew::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domSkin.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domSkin.cpp deleted file mode 100644 index ffbc4e635..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domSkin.cpp +++ /dev/null @@ -1,322 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domSkin::create(daeInt bytes) -{ - domSkinRef ref = new(bytes) domSkin; - ref->attrSource.setContainer( (domSkin*)ref ); - return ref; -} - - -daeMetaElement * -domSkin::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "skin" ); - _Meta->registerClass(domSkin::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "bind_shape_matrix" ); - mea->setOffset( daeOffsetOf(domSkin,elemBind_shape_matrix) ); - mea->setElementType( domSkin::domBind_shape_matrix::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 3, -1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domSkin,elemSource_array) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 1, 1 ); - mea->setName( "joints" ); - mea->setOffset( daeOffsetOf(domSkin,elemJoints) ); - mea->setElementType( domSkin::domJoints::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 3, 1, 1 ); - mea->setName( "vertex_weights" ); - mea->setOffset( daeOffsetOf(domSkin,elemVertex_weights) ); - mea->setElementType( domSkin::domVertex_weights::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 4, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domSkin,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 4 ); - _Meta->setCMRoot( cm ); - - // Add attribute: source - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "source" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domSkin , attrSource )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domSkin)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domSkin::domBind_shape_matrix::create(daeInt bytes) -{ - domSkin::domBind_shape_matrixRef ref = new(bytes) domSkin::domBind_shape_matrix; - return ref; -} - - -daeMetaElement * -domSkin::domBind_shape_matrix::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "bind_shape_matrix" ); - _Meta->registerClass(domSkin::domBind_shape_matrix::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float4x4")); - ma->setOffset( daeOffsetOf( domSkin::domBind_shape_matrix , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domSkin::domBind_shape_matrix)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domSkin::domJoints::create(daeInt bytes) -{ - domSkin::domJointsRef ref = new(bytes) domSkin::domJoints; - return ref; -} - - -daeMetaElement * -domSkin::domJoints::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "joints" ); - _Meta->registerClass(domSkin::domJoints::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 2, -1 ); - mea->setName( "input" ); - mea->setOffset( daeOffsetOf(domSkin::domJoints,elemInput_array) ); - mea->setElementType( domInputLocal::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domSkin::domJoints,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domSkin::domJoints)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domSkin::domVertex_weights::create(daeInt bytes) -{ - domSkin::domVertex_weightsRef ref = new(bytes) domSkin::domVertex_weights; - return ref; -} - - -daeMetaElement * -domSkin::domVertex_weights::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "vertex_weights" ); - _Meta->registerClass(domSkin::domVertex_weights::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 2, -1 ); - mea->setName( "input" ); - mea->setOffset( daeOffsetOf(domSkin::domVertex_weights,elemInput_array) ); - mea->setElementType( domInputLocalOffset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "vcount" ); - mea->setOffset( daeOffsetOf(domSkin::domVertex_weights,elemVcount) ); - mea->setElementType( domSkin::domVertex_weights::domVcount::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "v" ); - mea->setOffset( daeOffsetOf(domSkin::domVertex_weights,elemV) ); - mea->setElementType( domSkin::domVertex_weights::domV::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domSkin::domVertex_weights,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domSkin::domVertex_weights , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domSkin::domVertex_weights)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domSkin::domVertex_weights::domVcount::create(daeInt bytes) -{ - domSkin::domVertex_weights::domVcountRef ref = new(bytes) domSkin::domVertex_weights::domVcount; - return ref; -} - - -daeMetaElement * -domSkin::domVertex_weights::domVcount::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "vcount" ); - _Meta->registerClass(domSkin::domVertex_weights::domVcount::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("ListOfUInts")); - ma->setOffset( daeOffsetOf( domSkin::domVertex_weights::domVcount , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domSkin::domVertex_weights::domVcount)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domSkin::domVertex_weights::domV::create(daeInt bytes) -{ - domSkin::domVertex_weights::domVRef ref = new(bytes) domSkin::domVertex_weights::domV; - return ref; -} - - -daeMetaElement * -domSkin::domVertex_weights::domV::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "v" ); - _Meta->registerClass(domSkin::domVertex_weights::domV::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("ListOfInts")); - ma->setOffset( daeOffsetOf( domSkin::domVertex_weights::domV , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domSkin::domVertex_weights::domV)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domSkin::_Meta = NULL; -daeMetaElement * domSkin::domBind_shape_matrix::_Meta = NULL; -daeMetaElement * domSkin::domJoints::_Meta = NULL; -daeMetaElement * domSkin::domVertex_weights::_Meta = NULL; -daeMetaElement * domSkin::domVertex_weights::domVcount::_Meta = NULL; -daeMetaElement * domSkin::domVertex_weights::domV::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domSource.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domSource.cpp deleted file mode 100644 index 633c81785..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domSource.cpp +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domSource::create(daeInt bytes) -{ - domSourceRef ref = new(bytes) domSource; - return ref; -} - - -daeMetaElement * -domSource::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "source" ); - _Meta->registerClass(domSource::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domSource,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - cm = new daeMetaChoice( _Meta, cm, 1, 0, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "IDREF_array" ); - mea->setOffset( daeOffsetOf(domSource,elemIDREF_array) ); - mea->setElementType( domIDREF_array::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "Name_array" ); - mea->setOffset( daeOffsetOf(domSource,elemName_array) ); - mea->setElementType( domName_array::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "bool_array" ); - mea->setOffset( daeOffsetOf(domSource,elemBool_array) ); - mea->setElementType( domBool_array::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "float_array" ); - mea->setOffset( daeOffsetOf(domSource,elemFloat_array) ); - mea->setElementType( domFloat_array::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "int_array" ); - mea->setOffset( daeOffsetOf(domSource,elemInt_array) ); - mea->setElementType( domInt_array::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 0, 1 ); - mea->setName( "technique_common" ); - mea->setOffset( daeOffsetOf(domSource,elemTechnique_common) ); - mea->setElementType( domSource::domTechnique_common::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "technique" ); - mea->setOffset( daeOffsetOf(domSource,elemTechnique_array) ); - mea->setElementType( domTechnique::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domSource,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domSource,_contentsOrder)); - - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domSource , attrId )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domSource , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domSource)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domSource::domTechnique_common::create(daeInt bytes) -{ - domSource::domTechnique_commonRef ref = new(bytes) domSource::domTechnique_common; - return ref; -} - - -daeMetaElement * -domSource::domTechnique_common::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique_common" ); - _Meta->registerClass(domSource::domTechnique_common::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "accessor" ); - mea->setOffset( daeOffsetOf(domSource::domTechnique_common,elemAccessor) ); - mea->setElementType( domAccessor::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domSource::domTechnique_common)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domSource::_Meta = NULL; -daeMetaElement * domSource::domTechnique_common::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domSphere.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domSphere.cpp deleted file mode 100644 index 972caf105..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domSphere.cpp +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domSphere::create(daeInt bytes) -{ - domSphereRef ref = new(bytes) domSphere; - return ref; -} - - -daeMetaElement * -domSphere::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "sphere" ); - _Meta->registerClass(domSphere::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "radius" ); - mea->setOffset( daeOffsetOf(domSphere,elemRadius) ); - mea->setElementType( domSphere::domRadius::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domSphere,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domSphere)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domSphere::domRadius::create(daeInt bytes) -{ - domSphere::domRadiusRef ref = new(bytes) domSphere::domRadius; - return ref; -} - - -daeMetaElement * -domSphere::domRadius::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "radius" ); - _Meta->registerClass(domSphere::domRadius::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domSphere::domRadius , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domSphere::domRadius)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domSphere::_Meta = NULL; -daeMetaElement * domSphere::domRadius::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domSpline.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domSpline.cpp deleted file mode 100644 index e1cc90755..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domSpline.cpp +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domSpline::create(daeInt bytes) -{ - domSplineRef ref = new(bytes) domSpline; - return ref; -} - - -daeMetaElement * -domSpline::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "spline" ); - _Meta->registerClass(domSpline::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, -1 ); - mea->setName( "source" ); - mea->setOffset( daeOffsetOf(domSpline,elemSource_array) ); - mea->setElementType( domSource::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "control_vertices" ); - mea->setOffset( daeOffsetOf(domSpline,elemControl_vertices) ); - mea->setElementType( domSpline::domControl_vertices::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domSpline,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: closed - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "closed" ); - ma->setType( daeAtomicType::get("Bool")); - ma->setOffset( daeOffsetOf( domSpline , attrClosed )); - ma->setContainer( _Meta ); - ma->setDefault( "false"); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domSpline)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domSpline::domControl_vertices::create(daeInt bytes) -{ - domSpline::domControl_verticesRef ref = new(bytes) domSpline::domControl_vertices; - return ref; -} - - -daeMetaElement * -domSpline::domControl_vertices::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "control_vertices" ); - _Meta->registerClass(domSpline::domControl_vertices::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, -1 ); - mea->setName( "input" ); - mea->setOffset( daeOffsetOf(domSpline::domControl_vertices,elemInput_array) ); - mea->setElementType( domInputLocal::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domSpline::domControl_vertices,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domSpline::domControl_vertices)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domSpline::_Meta = NULL; -daeMetaElement * domSpline::domControl_vertices::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTapered_capsule.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTapered_capsule.cpp deleted file mode 100644 index 1410fc09c..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domTapered_capsule.cpp +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domTapered_capsule::create(daeInt bytes) -{ - domTapered_capsuleRef ref = new(bytes) domTapered_capsule; - return ref; -} - - -daeMetaElement * -domTapered_capsule::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "tapered_capsule" ); - _Meta->registerClass(domTapered_capsule::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "height" ); - mea->setOffset( daeOffsetOf(domTapered_capsule,elemHeight) ); - mea->setElementType( domTapered_capsule::domHeight::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "radius1" ); - mea->setOffset( daeOffsetOf(domTapered_capsule,elemRadius1) ); - mea->setElementType( domTapered_capsule::domRadius1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 1, 1 ); - mea->setName( "radius2" ); - mea->setOffset( daeOffsetOf(domTapered_capsule,elemRadius2) ); - mea->setElementType( domTapered_capsule::domRadius2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domTapered_capsule,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domTapered_capsule)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domTapered_capsule::domHeight::create(daeInt bytes) -{ - domTapered_capsule::domHeightRef ref = new(bytes) domTapered_capsule::domHeight; - return ref; -} - - -daeMetaElement * -domTapered_capsule::domHeight::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "height" ); - _Meta->registerClass(domTapered_capsule::domHeight::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domTapered_capsule::domHeight , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domTapered_capsule::domHeight)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domTapered_capsule::domRadius1::create(daeInt bytes) -{ - domTapered_capsule::domRadius1Ref ref = new(bytes) domTapered_capsule::domRadius1; - return ref; -} - - -daeMetaElement * -domTapered_capsule::domRadius1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "radius1" ); - _Meta->registerClass(domTapered_capsule::domRadius1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domTapered_capsule::domRadius1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domTapered_capsule::domRadius1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domTapered_capsule::domRadius2::create(daeInt bytes) -{ - domTapered_capsule::domRadius2Ref ref = new(bytes) domTapered_capsule::domRadius2; - return ref; -} - - -daeMetaElement * -domTapered_capsule::domRadius2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "radius2" ); - _Meta->registerClass(domTapered_capsule::domRadius2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domTapered_capsule::domRadius2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domTapered_capsule::domRadius2)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domTapered_capsule::_Meta = NULL; -daeMetaElement * domTapered_capsule::domHeight::_Meta = NULL; -daeMetaElement * domTapered_capsule::domRadius1::_Meta = NULL; -daeMetaElement * domTapered_capsule::domRadius2::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTapered_cylinder.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTapered_cylinder.cpp deleted file mode 100644 index 10b6ff3e4..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domTapered_cylinder.cpp +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domTapered_cylinder::create(daeInt bytes) -{ - domTapered_cylinderRef ref = new(bytes) domTapered_cylinder; - return ref; -} - - -daeMetaElement * -domTapered_cylinder::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "tapered_cylinder" ); - _Meta->registerClass(domTapered_cylinder::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 1, 1 ); - mea->setName( "height" ); - mea->setOffset( daeOffsetOf(domTapered_cylinder,elemHeight) ); - mea->setElementType( domTapered_cylinder::domHeight::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 1, 1 ); - mea->setName( "radius1" ); - mea->setOffset( daeOffsetOf(domTapered_cylinder,elemRadius1) ); - mea->setElementType( domTapered_cylinder::domRadius1::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 2, 1, 1 ); - mea->setName( "radius2" ); - mea->setOffset( daeOffsetOf(domTapered_cylinder,elemRadius2) ); - mea->setElementType( domTapered_cylinder::domRadius2::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domTapered_cylinder,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - - _Meta->setElementSize(sizeof(domTapered_cylinder)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domTapered_cylinder::domHeight::create(daeInt bytes) -{ - domTapered_cylinder::domHeightRef ref = new(bytes) domTapered_cylinder::domHeight; - return ref; -} - - -daeMetaElement * -domTapered_cylinder::domHeight::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "height" ); - _Meta->registerClass(domTapered_cylinder::domHeight::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domTapered_cylinder::domHeight , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domTapered_cylinder::domHeight)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domTapered_cylinder::domRadius1::create(daeInt bytes) -{ - domTapered_cylinder::domRadius1Ref ref = new(bytes) domTapered_cylinder::domRadius1; - return ref; -} - - -daeMetaElement * -domTapered_cylinder::domRadius1::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "radius1" ); - _Meta->registerClass(domTapered_cylinder::domRadius1::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domTapered_cylinder::domRadius1 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domTapered_cylinder::domRadius1)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domTapered_cylinder::domRadius2::create(daeInt bytes) -{ - domTapered_cylinder::domRadius2Ref ref = new(bytes) domTapered_cylinder::domRadius2; - return ref; -} - - -daeMetaElement * -domTapered_cylinder::domRadius2::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "radius2" ); - _Meta->registerClass(domTapered_cylinder::domRadius2::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float2")); - ma->setOffset( daeOffsetOf( domTapered_cylinder::domRadius2 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domTapered_cylinder::domRadius2)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domTapered_cylinder::_Meta = NULL; -daeMetaElement * domTapered_cylinder::domHeight::_Meta = NULL; -daeMetaElement * domTapered_cylinder::domRadius1::_Meta = NULL; -daeMetaElement * domTapered_cylinder::domRadius2::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTargetableFloat.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTargetableFloat.cpp deleted file mode 100644 index 1eebd6155..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domTargetableFloat.cpp +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domTargetableFloat::create(daeInt bytes) -{ - domTargetableFloatRef ref = new(bytes) domTargetableFloat; - return ref; -} - - -daeMetaElement * -domTargetableFloat::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "TargetableFloat" ); - _Meta->registerClass(domTargetableFloat::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float")); - ma->setOffset( daeOffsetOf( domTargetableFloat , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domTargetableFloat , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domTargetableFloat)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domTargetableFloat::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTargetableFloat3.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTargetableFloat3.cpp deleted file mode 100644 index b876e49ca..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domTargetableFloat3.cpp +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domTargetableFloat3::create(daeInt bytes) -{ - domTargetableFloat3Ref ref = new(bytes) domTargetableFloat3; - return ref; -} - - -daeMetaElement * -domTargetableFloat3::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "TargetableFloat3" ); - _Meta->registerClass(domTargetableFloat3::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domTargetableFloat3 , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domTargetableFloat3 , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domTargetableFloat3)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domTargetableFloat3::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTechnique.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTechnique.cpp deleted file mode 100644 index 11b311cdd..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domTechnique.cpp +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domTechnique::create(daeInt bytes) -{ - domTechniqueRef ref = new(bytes) domTechnique; - ref->attrXmlns.setContainer( (domTechnique*)ref ); - return ref; -} - - -daeMetaElement * -domTechnique::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "technique" ); - _Meta->registerClass(domTechnique::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaAny( _Meta, cm, 0, 0, -1 ); - - cm->setMaxOrdinal( 0 ); - cm->getParent()->appendChild( cm ); - cm = cm->getParent(); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - _Meta->setAllowsAny( true ); - // Ordered list of sub-elements - _Meta->addContents(daeOffsetOf(domTechnique,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domTechnique,_contentsOrder)); - - // Add attribute: xmlns - { - daeMetaAttribute* ma = new daeMetaAttribute; - ma->setName( "xmlns" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domTechnique , attrXmlns )); - ma->setContainer( _Meta ); - //ma->setIsRequired( true ); - _Meta->appendAttribute(ma); - } - - // Add attribute: profile - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "profile" ); - ma->setType( daeAtomicType::get("xsNMTOKEN")); - ma->setOffset( daeOffsetOf( domTechnique , attrProfile )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domTechnique)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domTechnique::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTranslate.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTranslate.cpp deleted file mode 100644 index 630c5821f..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domTranslate.cpp +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domTranslate::create(daeInt bytes) -{ - domTranslateRef ref = new(bytes) domTranslate; - return ref; -} - - -daeMetaElement * -domTranslate::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "translate" ); - _Meta->registerClass(domTranslate::create, &_Meta); - - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaArrayAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("Float3")); - ma->setOffset( daeOffsetOf( domTranslate , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - // Add attribute: sid - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "sid" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domTranslate , attrSid )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domTranslate)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domTranslate::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTriangles.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTriangles.cpp deleted file mode 100644 index 7d2cc0cda..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domTriangles.cpp +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domTriangles::create(daeInt bytes) -{ - domTrianglesRef ref = new(bytes) domTriangles; - return ref; -} - - -daeMetaElement * -domTriangles::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "triangles" ); - _Meta->registerClass(domTriangles::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "input" ); - mea->setOffset( daeOffsetOf(domTriangles,elemInput_array) ); - mea->setElementType( domInputLocalOffset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "p" ); - mea->setOffset( daeOffsetOf(domTriangles,elemP) ); - mea->setElementType( domP::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domTriangles,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domTriangles , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domTriangles , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: material - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "material" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domTriangles , attrMaterial )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domTriangles)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domTriangles::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTrifans.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTrifans.cpp deleted file mode 100644 index ff31efa22..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domTrifans.cpp +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domTrifans::create(daeInt bytes) -{ - domTrifansRef ref = new(bytes) domTrifans; - return ref; -} - - -daeMetaElement * -domTrifans::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "trifans" ); - _Meta->registerClass(domTrifans::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "input" ); - mea->setOffset( daeOffsetOf(domTrifans,elemInput_array) ); - mea->setElementType( domInputLocalOffset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "p" ); - mea->setOffset( daeOffsetOf(domTrifans,elemP_array) ); - mea->setElementType( domP::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domTrifans,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domTrifans , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domTrifans , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: material - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "material" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domTrifans , attrMaterial )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domTrifans)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domTrifans::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTristrips.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTristrips.cpp deleted file mode 100644 index f97c77f68..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domTristrips.cpp +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domTristrips::create(daeInt bytes) -{ - domTristripsRef ref = new(bytes) domTristrips; - return ref; -} - - -daeMetaElement * -domTristrips::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "tristrips" ); - _Meta->registerClass(domTristrips::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "input" ); - mea->setOffset( daeOffsetOf(domTristrips,elemInput_array) ); - mea->setElementType( domInputLocalOffset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "p" ); - mea->setOffset( daeOffsetOf(domTristrips,elemP_array) ); - mea->setElementType( domP::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domTristrips,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 2 ); - _Meta->setCMRoot( cm ); - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domTristrips , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: count - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "count" ); - ma->setType( daeAtomicType::get("Uint")); - ma->setOffset( daeOffsetOf( domTristrips , attrCount )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: material - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "material" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domTristrips , attrMaterial )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domTristrips)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domTristrips::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domTypes.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domTypes.cpp deleted file mode 100644 index 9e6673588..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domTypes.cpp +++ /dev/null @@ -1,2937 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - - -#include -#include -#include - - -void registerDomTypes() -{ - - daeAtomicType* type = NULL; - // TYPEDEF: Bool //check if this type has an existing base - type = daeAtomicType::get("xsBoolean"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Bool"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Bool"); - } - - // TYPEDEF: DateTime //check if this type has an existing base - type = daeAtomicType::get("xsDateTime"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("DateTime"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("DateTime"); - } - - // TYPEDEF: Float //check if this type has an existing base - type = daeAtomicType::get("xsDouble"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float"); - } - - // TYPEDEF: Int //check if this type has an existing base - type = daeAtomicType::get("xsLong"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Int"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Int"); - } - - // TYPEDEF: Name //check if this type has an existing base - type = daeAtomicType::get("xsName"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Name"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Name"); - } - - // TYPEDEF: String //check if this type has an existing base - type = daeAtomicType::get("xsString"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("String"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("String"); - } - - // TYPEDEF: Token //check if this type has an existing base - type = daeAtomicType::get("xsToken"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Token"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Token"); - } - - // TYPEDEF: Uint //check if this type has an existing base - type = daeAtomicType::get("xsUnsignedLong"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Uint"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Uint"); - } - - // TYPEDEF: ListOfBools //check if this type has an existing base - type = daeAtomicType::get("Bool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("ListOfBools"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("ListOfBools"); - } - - // TYPEDEF: ListOfFloats //check if this type has an existing base - type = daeAtomicType::get("Float"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("ListOfFloats"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("ListOfFloats"); - } - - // TYPEDEF: ListOfHexBinary //check if this type has an existing base - type = daeAtomicType::get("xsHexBinary"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("ListOfHexBinary"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("ListOfHexBinary"); - } - - // TYPEDEF: ListOfInts //check if this type has an existing base - type = daeAtomicType::get("Int"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("ListOfInts"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("ListOfInts"); - } - - // TYPEDEF: ListOfNames //check if this type has an existing base - type = daeAtomicType::get("Name"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("ListOfNames"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("ListOfNames"); - } - - // TYPEDEF: ListOfTokens //check if this type has an existing base - type = daeAtomicType::get("Token"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("ListOfTokens"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("ListOfTokens"); - } - - // TYPEDEF: ListOfUInts //check if this type has an existing base - type = daeAtomicType::get("Uint"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("ListOfUInts"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("ListOfUInts"); - } - - // TYPEDEF: Bool2 //check if this type has an existing base - type = daeAtomicType::get("ListOfBools"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Bool2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Bool2"); - } - - // TYPEDEF: Bool3 //check if this type has an existing base - type = daeAtomicType::get("ListOfBools"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Bool3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Bool3"); - } - - // TYPEDEF: Bool4 //check if this type has an existing base - type = daeAtomicType::get("ListOfBools"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Bool4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Bool4"); - } - - // TYPEDEF: Float2 //check if this type has an existing base - type = daeAtomicType::get("ListOfFloats"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float2"); - } - - // TYPEDEF: Float3 //check if this type has an existing base - type = daeAtomicType::get("ListOfFloats"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float3"); - } - - // TYPEDEF: Float4 //check if this type has an existing base - type = daeAtomicType::get("ListOfFloats"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float4"); - } - - // TYPEDEF: Float7 //check if this type has an existing base - type = daeAtomicType::get("ListOfFloats"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float7"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float7"); - } - - // TYPEDEF: Float2x2 //check if this type has an existing base - type = daeAtomicType::get("ListOfFloats"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float2x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float2x2"); - } - - // TYPEDEF: Float3x3 //check if this type has an existing base - type = daeAtomicType::get("ListOfFloats"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float3x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float3x3"); - } - - // TYPEDEF: Float4x4 //check if this type has an existing base - type = daeAtomicType::get("ListOfFloats"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float4x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float4x4"); - } - - // TYPEDEF: Float2x3 //check if this type has an existing base - type = daeAtomicType::get("ListOfFloats"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float2x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float2x3"); - } - - // TYPEDEF: Float2x4 //check if this type has an existing base - type = daeAtomicType::get("ListOfFloats"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float2x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float2x4"); - } - - // TYPEDEF: Float3x2 //check if this type has an existing base - type = daeAtomicType::get("ListOfFloats"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float3x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float3x2"); - } - - // TYPEDEF: Float3x4 //check if this type has an existing base - type = daeAtomicType::get("ListOfFloats"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float3x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float3x4"); - } - - // TYPEDEF: Float4x2 //check if this type has an existing base - type = daeAtomicType::get("ListOfFloats"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float4x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float4x2"); - } - - // TYPEDEF: Float4x3 //check if this type has an existing base - type = daeAtomicType::get("ListOfFloats"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Float4x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Float4x3"); - } - - // TYPEDEF: Int2 //check if this type has an existing base - type = daeAtomicType::get("ListOfInts"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Int2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Int2"); - } - - // TYPEDEF: Int3 //check if this type has an existing base - type = daeAtomicType::get("ListOfInts"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Int3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Int3"); - } - - // TYPEDEF: Int4 //check if this type has an existing base - type = daeAtomicType::get("ListOfInts"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Int4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Int4"); - } - - // TYPEDEF: Int2x2 //check if this type has an existing base - type = daeAtomicType::get("ListOfInts"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Int2x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Int2x2"); - } - - // TYPEDEF: Int3x3 //check if this type has an existing base - type = daeAtomicType::get("ListOfInts"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Int3x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Int3x3"); - } - - // TYPEDEF: Int4x4 //check if this type has an existing base - type = daeAtomicType::get("ListOfInts"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Int4x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Int4x4"); - } - - // ENUM: MorphMethodType - type = new daeEnumType; - type->_nameBindings.append("MorphMethodType"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("NORMALIZED"); - ((daeEnumType*)type)->_values->append(MORPHMETHODTYPE_NORMALIZED); - ((daeEnumType*)type)->_strings->append("RELATIVE"); - ((daeEnumType*)type)->_values->append(MORPHMETHODTYPE_RELATIVE); - daeAtomicType::append( type ); - - // ENUM: NodeType - type = new daeEnumType; - type->_nameBindings.append("NodeType"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("JOINT"); - ((daeEnumType*)type)->_values->append(NODETYPE_JOINT); - ((daeEnumType*)type)->_strings->append("NODE"); - ((daeEnumType*)type)->_values->append(NODETYPE_NODE); - daeAtomicType::append( type ); - - // TYPEDEF: URIFragmentType //check if this type has an existing base - type = daeAtomicType::get("xsAnyURI"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("URIFragmentType"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("URIFragmentType"); - } - - // ENUM: UpAxisType - type = new daeEnumType; - type->_nameBindings.append("UpAxisType"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("X_UP"); - ((daeEnumType*)type)->_values->append(UPAXISTYPE_X_UP); - ((daeEnumType*)type)->_strings->append("Y_UP"); - ((daeEnumType*)type)->_values->append(UPAXISTYPE_Y_UP); - ((daeEnumType*)type)->_strings->append("Z_UP"); - ((daeEnumType*)type)->_values->append(UPAXISTYPE_Z_UP); - daeAtomicType::append( type ); - - // ENUM: VersionType - type = new daeEnumType; - type->_nameBindings.append("VersionType"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("1.4.0"); - ((daeEnumType*)type)->_values->append(VERSIONTYPE_1_4_0); - ((daeEnumType*)type)->_strings->append("1.4.1"); - ((daeEnumType*)type)->_values->append(VERSIONTYPE_1_4_1); - daeAtomicType::append( type ); - - // TYPEDEF: Fx_color_common //check if this type has an existing base - type = daeAtomicType::get("Float4"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Fx_color_common"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Fx_color_common"); - } - - // ENUM: Fx_opaque_enum - type = new daeEnumType; - type->_nameBindings.append("Fx_opaque_enum"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("A_ONE"); - ((daeEnumType*)type)->_values->append(FX_OPAQUE_ENUM_A_ONE); - ((daeEnumType*)type)->_strings->append("RGB_ZERO"); - ((daeEnumType*)type)->_values->append(FX_OPAQUE_ENUM_RGB_ZERO); - daeAtomicType::append( type ); - - // ENUM: Fx_surface_type_enum - type = new daeEnumType; - type->_nameBindings.append("Fx_surface_type_enum"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("UNTYPED"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_UNTYPED); - ((daeEnumType*)type)->_strings->append("1D"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_1D); - ((daeEnumType*)type)->_strings->append("2D"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_2D); - ((daeEnumType*)type)->_strings->append("3D"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_3D); - ((daeEnumType*)type)->_strings->append("RECT"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_RECT); - ((daeEnumType*)type)->_strings->append("CUBE"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_CUBE); - ((daeEnumType*)type)->_strings->append("DEPTH"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_TYPE_ENUM_DEPTH); - daeAtomicType::append( type ); - - // ENUM: Fx_surface_face_enum - type = new daeEnumType; - type->_nameBindings.append("Fx_surface_face_enum"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("POSITIVE_X"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FACE_ENUM_POSITIVE_X); - ((daeEnumType*)type)->_strings->append("NEGATIVE_X"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FACE_ENUM_NEGATIVE_X); - ((daeEnumType*)type)->_strings->append("POSITIVE_Y"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FACE_ENUM_POSITIVE_Y); - ((daeEnumType*)type)->_strings->append("NEGATIVE_Y"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FACE_ENUM_NEGATIVE_Y); - ((daeEnumType*)type)->_strings->append("POSITIVE_Z"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FACE_ENUM_POSITIVE_Z); - ((daeEnumType*)type)->_strings->append("NEGATIVE_Z"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FACE_ENUM_NEGATIVE_Z); - daeAtomicType::append( type ); - - // ENUM: Fx_surface_format_hint_channels_enum - type = new daeEnumType; - type->_nameBindings.append("Fx_surface_format_hint_channels_enum"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("RGB"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_RGB); - ((daeEnumType*)type)->_strings->append("RGBA"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_RGBA); - ((daeEnumType*)type)->_strings->append("L"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_L); - ((daeEnumType*)type)->_strings->append("LA"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_LA); - ((daeEnumType*)type)->_strings->append("D"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_D); - ((daeEnumType*)type)->_strings->append("XYZ"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_XYZ); - ((daeEnumType*)type)->_strings->append("XYZW"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_CHANNELS_ENUM_XYZW); - daeAtomicType::append( type ); - - // ENUM: Fx_surface_format_hint_precision_enum - type = new daeEnumType; - type->_nameBindings.append("Fx_surface_format_hint_precision_enum"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("LOW"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_PRECISION_ENUM_LOW); - ((daeEnumType*)type)->_strings->append("MID"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_PRECISION_ENUM_MID); - ((daeEnumType*)type)->_strings->append("HIGH"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_PRECISION_ENUM_HIGH); - daeAtomicType::append( type ); - - // ENUM: Fx_surface_format_hint_range_enum - type = new daeEnumType; - type->_nameBindings.append("Fx_surface_format_hint_range_enum"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("SNORM"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_RANGE_ENUM_SNORM); - ((daeEnumType*)type)->_strings->append("UNORM"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_RANGE_ENUM_UNORM); - ((daeEnumType*)type)->_strings->append("SINT"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_RANGE_ENUM_SINT); - ((daeEnumType*)type)->_strings->append("UINT"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_RANGE_ENUM_UINT); - ((daeEnumType*)type)->_strings->append("FLOAT"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_RANGE_ENUM_FLOAT); - daeAtomicType::append( type ); - - // ENUM: Fx_surface_format_hint_option_enum - type = new daeEnumType; - type->_nameBindings.append("Fx_surface_format_hint_option_enum"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("SRGB_GAMMA"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_OPTION_ENUM_SRGB_GAMMA); - ((daeEnumType*)type)->_strings->append("NORMALIZED3"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_OPTION_ENUM_NORMALIZED3); - ((daeEnumType*)type)->_strings->append("NORMALIZED4"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_OPTION_ENUM_NORMALIZED4); - ((daeEnumType*)type)->_strings->append("COMPRESSABLE"); - ((daeEnumType*)type)->_values->append(FX_SURFACE_FORMAT_HINT_OPTION_ENUM_COMPRESSABLE); - daeAtomicType::append( type ); - - // ENUM: Fx_sampler_wrap_common - type = new daeEnumType; - type->_nameBindings.append("Fx_sampler_wrap_common"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("NONE"); - ((daeEnumType*)type)->_values->append(FX_SAMPLER_WRAP_COMMON_NONE); - ((daeEnumType*)type)->_strings->append("WRAP"); - ((daeEnumType*)type)->_values->append(FX_SAMPLER_WRAP_COMMON_WRAP); - ((daeEnumType*)type)->_strings->append("MIRROR"); - ((daeEnumType*)type)->_values->append(FX_SAMPLER_WRAP_COMMON_MIRROR); - ((daeEnumType*)type)->_strings->append("CLAMP"); - ((daeEnumType*)type)->_values->append(FX_SAMPLER_WRAP_COMMON_CLAMP); - ((daeEnumType*)type)->_strings->append("BORDER"); - ((daeEnumType*)type)->_values->append(FX_SAMPLER_WRAP_COMMON_BORDER); - daeAtomicType::append( type ); - - // ENUM: Fx_sampler_filter_common - type = new daeEnumType; - type->_nameBindings.append("Fx_sampler_filter_common"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("NONE"); - ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_NONE); - ((daeEnumType*)type)->_strings->append("NEAREST"); - ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_NEAREST); - ((daeEnumType*)type)->_strings->append("LINEAR"); - ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_LINEAR); - ((daeEnumType*)type)->_strings->append("NEAREST_MIPMAP_NEAREST"); - ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_NEAREST_MIPMAP_NEAREST); - ((daeEnumType*)type)->_strings->append("LINEAR_MIPMAP_NEAREST"); - ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_LINEAR_MIPMAP_NEAREST); - ((daeEnumType*)type)->_strings->append("NEAREST_MIPMAP_LINEAR"); - ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_NEAREST_MIPMAP_LINEAR); - ((daeEnumType*)type)->_strings->append("LINEAR_MIPMAP_LINEAR"); - ((daeEnumType*)type)->_values->append(FX_SAMPLER_FILTER_COMMON_LINEAR_MIPMAP_LINEAR); - daeAtomicType::append( type ); - - // ENUM: Fx_modifier_enum_common - type = new daeEnumType; - type->_nameBindings.append("Fx_modifier_enum_common"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("CONST"); - ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_CONST); - ((daeEnumType*)type)->_strings->append("UNIFORM"); - ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_UNIFORM); - ((daeEnumType*)type)->_strings->append("VARYING"); - ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_VARYING); - ((daeEnumType*)type)->_strings->append("STATIC"); - ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_STATIC); - ((daeEnumType*)type)->_strings->append("VOLATILE"); - ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_VOLATILE); - ((daeEnumType*)type)->_strings->append("EXTERN"); - ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_EXTERN); - ((daeEnumType*)type)->_strings->append("SHARED"); - ((daeEnumType*)type)->_values->append(FX_MODIFIER_ENUM_COMMON_SHARED); - daeAtomicType::append( type ); - - // TYPEDEF: Fx_draw_common //check if this type has an existing base - type = daeAtomicType::get("xsString"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Fx_draw_common"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Fx_draw_common"); - } - - // ENUM: Fx_pipeline_stage_common - type = new daeEnumType; - type->_nameBindings.append("Fx_pipeline_stage_common"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("VERTEXPROGRAM"); - ((daeEnumType*)type)->_values->append(FX_PIPELINE_STAGE_COMMON_VERTEXPROGRAM); - ((daeEnumType*)type)->_strings->append("FRAGMENTPROGRAM"); - ((daeEnumType*)type)->_values->append(FX_PIPELINE_STAGE_COMMON_FRAGMENTPROGRAM); - ((daeEnumType*)type)->_strings->append("VERTEXSHADER"); - ((daeEnumType*)type)->_values->append(FX_PIPELINE_STAGE_COMMON_VERTEXSHADER); - ((daeEnumType*)type)->_strings->append("PIXELSHADER"); - ((daeEnumType*)type)->_values->append(FX_PIPELINE_STAGE_COMMON_PIXELSHADER); - daeAtomicType::append( type ); - - // TYPEDEF: GL_MAX_LIGHTS_index //check if this type has an existing base - type = daeAtomicType::get("xsNonNegativeInteger"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("GL_MAX_LIGHTS_index"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("GL_MAX_LIGHTS_index"); - } - - // TYPEDEF: GL_MAX_CLIP_PLANES_index //check if this type has an existing base - type = daeAtomicType::get("xsNonNegativeInteger"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("GL_MAX_CLIP_PLANES_index"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("GL_MAX_CLIP_PLANES_index"); - } - - // TYPEDEF: GL_MAX_TEXTURE_IMAGE_UNITS_index //check if this type has an existing base - type = daeAtomicType::get("xsNonNegativeInteger"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("GL_MAX_TEXTURE_IMAGE_UNITS_index"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("GL_MAX_TEXTURE_IMAGE_UNITS_index"); - } - - // ENUM: Gl_blend_type - type = new daeEnumType; - type->_nameBindings.append("Gl_blend_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("ZERO"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ZERO); - ((daeEnumType*)type)->_strings->append("ONE"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE); - ((daeEnumType*)type)->_strings->append("SRC_COLOR"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_SRC_COLOR); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_COLOR"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE_MINUS_SRC_COLOR); - ((daeEnumType*)type)->_strings->append("DEST_COLOR"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_DEST_COLOR); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_DEST_COLOR"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE_MINUS_DEST_COLOR); - ((daeEnumType*)type)->_strings->append("SRC_ALPHA"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_SRC_ALPHA); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_ALPHA"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE_MINUS_SRC_ALPHA); - ((daeEnumType*)type)->_strings->append("DST_ALPHA"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_DST_ALPHA); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_DST_ALPHA"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE_MINUS_DST_ALPHA); - ((daeEnumType*)type)->_strings->append("CONSTANT_COLOR"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_CONSTANT_COLOR); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_CONSTANT_COLOR"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE_MINUS_CONSTANT_COLOR); - ((daeEnumType*)type)->_strings->append("CONSTANT_ALPHA"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_CONSTANT_ALPHA); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_CONSTANT_ALPHA"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_ONE_MINUS_CONSTANT_ALPHA); - ((daeEnumType*)type)->_strings->append("SRC_ALPHA_SATURATE"); - ((daeEnumType*)type)->_values->append(GL_BLEND_TYPE_SRC_ALPHA_SATURATE); - daeAtomicType::append( type ); - - // ENUM: Gl_face_type - type = new daeEnumType; - type->_nameBindings.append("Gl_face_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("FRONT"); - ((daeEnumType*)type)->_values->append(GL_FACE_TYPE_FRONT); - ((daeEnumType*)type)->_strings->append("BACK"); - ((daeEnumType*)type)->_values->append(GL_FACE_TYPE_BACK); - ((daeEnumType*)type)->_strings->append("FRONT_AND_BACK"); - ((daeEnumType*)type)->_values->append(GL_FACE_TYPE_FRONT_AND_BACK); - daeAtomicType::append( type ); - - // ENUM: Gl_blend_equation_type - type = new daeEnumType; - type->_nameBindings.append("Gl_blend_equation_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("FUNC_ADD"); - ((daeEnumType*)type)->_values->append(GL_BLEND_EQUATION_TYPE_FUNC_ADD); - ((daeEnumType*)type)->_strings->append("FUNC_SUBTRACT"); - ((daeEnumType*)type)->_values->append(GL_BLEND_EQUATION_TYPE_FUNC_SUBTRACT); - ((daeEnumType*)type)->_strings->append("FUNC_REVERSE_SUBTRACT"); - ((daeEnumType*)type)->_values->append(GL_BLEND_EQUATION_TYPE_FUNC_REVERSE_SUBTRACT); - ((daeEnumType*)type)->_strings->append("MIN"); - ((daeEnumType*)type)->_values->append(GL_BLEND_EQUATION_TYPE_MIN); - ((daeEnumType*)type)->_strings->append("MAX"); - ((daeEnumType*)type)->_values->append(GL_BLEND_EQUATION_TYPE_MAX); - daeAtomicType::append( type ); - - // ENUM: Gl_func_type - type = new daeEnumType; - type->_nameBindings.append("Gl_func_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("NEVER"); - ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_NEVER); - ((daeEnumType*)type)->_strings->append("LESS"); - ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_LESS); - ((daeEnumType*)type)->_strings->append("LEQUAL"); - ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_LEQUAL); - ((daeEnumType*)type)->_strings->append("EQUAL"); - ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_EQUAL); - ((daeEnumType*)type)->_strings->append("GREATER"); - ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_GREATER); - ((daeEnumType*)type)->_strings->append("NOTEQUAL"); - ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_NOTEQUAL); - ((daeEnumType*)type)->_strings->append("GEQUAL"); - ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_GEQUAL); - ((daeEnumType*)type)->_strings->append("ALWAYS"); - ((daeEnumType*)type)->_values->append(GL_FUNC_TYPE_ALWAYS); - daeAtomicType::append( type ); - - // ENUM: Gl_stencil_op_type - type = new daeEnumType; - type->_nameBindings.append("Gl_stencil_op_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("KEEP"); - ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_KEEP); - ((daeEnumType*)type)->_strings->append("ZERO"); - ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_ZERO); - ((daeEnumType*)type)->_strings->append("REPLACE"); - ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_REPLACE); - ((daeEnumType*)type)->_strings->append("INCR"); - ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_INCR); - ((daeEnumType*)type)->_strings->append("DECR"); - ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_DECR); - ((daeEnumType*)type)->_strings->append("INVERT"); - ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_INVERT); - ((daeEnumType*)type)->_strings->append("INCR_WRAP"); - ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_INCR_WRAP); - ((daeEnumType*)type)->_strings->append("DECR_WRAP"); - ((daeEnumType*)type)->_values->append(GL_STENCIL_OP_TYPE_DECR_WRAP); - daeAtomicType::append( type ); - - // ENUM: Gl_material_type - type = new daeEnumType; - type->_nameBindings.append("Gl_material_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("EMISSION"); - ((daeEnumType*)type)->_values->append(GL_MATERIAL_TYPE_EMISSION); - ((daeEnumType*)type)->_strings->append("AMBIENT"); - ((daeEnumType*)type)->_values->append(GL_MATERIAL_TYPE_AMBIENT); - ((daeEnumType*)type)->_strings->append("DIFFUSE"); - ((daeEnumType*)type)->_values->append(GL_MATERIAL_TYPE_DIFFUSE); - ((daeEnumType*)type)->_strings->append("SPECULAR"); - ((daeEnumType*)type)->_values->append(GL_MATERIAL_TYPE_SPECULAR); - ((daeEnumType*)type)->_strings->append("AMBIENT_AND_DIFFUSE"); - ((daeEnumType*)type)->_values->append(GL_MATERIAL_TYPE_AMBIENT_AND_DIFFUSE); - daeAtomicType::append( type ); - - // ENUM: Gl_fog_type - type = new daeEnumType; - type->_nameBindings.append("Gl_fog_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("LINEAR"); - ((daeEnumType*)type)->_values->append(GL_FOG_TYPE_LINEAR); - ((daeEnumType*)type)->_strings->append("EXP"); - ((daeEnumType*)type)->_values->append(GL_FOG_TYPE_EXP); - ((daeEnumType*)type)->_strings->append("EXP2"); - ((daeEnumType*)type)->_values->append(GL_FOG_TYPE_EXP2); - daeAtomicType::append( type ); - - // ENUM: Gl_fog_coord_src_type - type = new daeEnumType; - type->_nameBindings.append("Gl_fog_coord_src_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("FOG_COORDINATE"); - ((daeEnumType*)type)->_values->append(GL_FOG_COORD_SRC_TYPE_FOG_COORDINATE); - ((daeEnumType*)type)->_strings->append("FRAGMENT_DEPTH"); - ((daeEnumType*)type)->_values->append(GL_FOG_COORD_SRC_TYPE_FRAGMENT_DEPTH); - daeAtomicType::append( type ); - - // ENUM: Gl_front_face_type - type = new daeEnumType; - type->_nameBindings.append("Gl_front_face_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("CW"); - ((daeEnumType*)type)->_values->append(GL_FRONT_FACE_TYPE_CW); - ((daeEnumType*)type)->_strings->append("CCW"); - ((daeEnumType*)type)->_values->append(GL_FRONT_FACE_TYPE_CCW); - daeAtomicType::append( type ); - - // ENUM: Gl_light_model_color_control_type - type = new daeEnumType; - type->_nameBindings.append("Gl_light_model_color_control_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("SINGLE_COLOR"); - ((daeEnumType*)type)->_values->append(GL_LIGHT_MODEL_COLOR_CONTROL_TYPE_SINGLE_COLOR); - ((daeEnumType*)type)->_strings->append("SEPARATE_SPECULAR_COLOR"); - ((daeEnumType*)type)->_values->append(GL_LIGHT_MODEL_COLOR_CONTROL_TYPE_SEPARATE_SPECULAR_COLOR); - daeAtomicType::append( type ); - - // ENUM: Gl_logic_op_type - type = new daeEnumType; - type->_nameBindings.append("Gl_logic_op_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("CLEAR"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_CLEAR); - ((daeEnumType*)type)->_strings->append("AND"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_AND); - ((daeEnumType*)type)->_strings->append("AND_REVERSE"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_AND_REVERSE); - ((daeEnumType*)type)->_strings->append("COPY"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_COPY); - ((daeEnumType*)type)->_strings->append("AND_INVERTED"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_AND_INVERTED); - ((daeEnumType*)type)->_strings->append("NOOP"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_NOOP); - ((daeEnumType*)type)->_strings->append("XOR"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_XOR); - ((daeEnumType*)type)->_strings->append("OR"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_OR); - ((daeEnumType*)type)->_strings->append("NOR"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_NOR); - ((daeEnumType*)type)->_strings->append("EQUIV"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_EQUIV); - ((daeEnumType*)type)->_strings->append("INVERT"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_INVERT); - ((daeEnumType*)type)->_strings->append("OR_REVERSE"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_OR_REVERSE); - ((daeEnumType*)type)->_strings->append("COPY_INVERTED"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_COPY_INVERTED); - ((daeEnumType*)type)->_strings->append("NAND"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_NAND); - ((daeEnumType*)type)->_strings->append("SET"); - ((daeEnumType*)type)->_values->append(GL_LOGIC_OP_TYPE_SET); - daeAtomicType::append( type ); - - // ENUM: Gl_polygon_mode_type - type = new daeEnumType; - type->_nameBindings.append("Gl_polygon_mode_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("POINT"); - ((daeEnumType*)type)->_values->append(GL_POLYGON_MODE_TYPE_POINT); - ((daeEnumType*)type)->_strings->append("LINE"); - ((daeEnumType*)type)->_values->append(GL_POLYGON_MODE_TYPE_LINE); - ((daeEnumType*)type)->_strings->append("FILL"); - ((daeEnumType*)type)->_values->append(GL_POLYGON_MODE_TYPE_FILL); - daeAtomicType::append( type ); - - // ENUM: Gl_shade_model_type - type = new daeEnumType; - type->_nameBindings.append("Gl_shade_model_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("FLAT"); - ((daeEnumType*)type)->_values->append(GL_SHADE_MODEL_TYPE_FLAT); - ((daeEnumType*)type)->_strings->append("SMOOTH"); - ((daeEnumType*)type)->_values->append(GL_SHADE_MODEL_TYPE_SMOOTH); - daeAtomicType::append( type ); - - // TYPEDEF: Gl_alpha_value_type //check if this type has an existing base - type = daeAtomicType::get("xsFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Gl_alpha_value_type"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Gl_alpha_value_type"); - } - - // ENUM: Gl_enumeration - type = new daeEnumType; - type->_nameBindings.append("Gl_enumeration"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("ZERO"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ZERO); - ((daeEnumType*)type)->_strings->append("ONE"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE); - ((daeEnumType*)type)->_strings->append("SRC_COLOR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SRC_COLOR); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_COLOR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE_MINUS_SRC_COLOR); - ((daeEnumType*)type)->_strings->append("DEST_COLOR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_DEST_COLOR); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_DEST_COLOR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE_MINUS_DEST_COLOR); - ((daeEnumType*)type)->_strings->append("SRC_ALPHA"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SRC_ALPHA); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_ALPHA"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE_MINUS_SRC_ALPHA); - ((daeEnumType*)type)->_strings->append("DST_ALPHA"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_DST_ALPHA); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_DST_ALPHA"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE_MINUS_DST_ALPHA); - ((daeEnumType*)type)->_strings->append("CONSTANT_COLOR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_CONSTANT_COLOR); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_CONSTANT_COLOR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE_MINUS_CONSTANT_COLOR); - ((daeEnumType*)type)->_strings->append("CONSTANT_ALPHA"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_CONSTANT_ALPHA); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_CONSTANT_ALPHA"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ONE_MINUS_CONSTANT_ALPHA); - ((daeEnumType*)type)->_strings->append("SRC_ALPHA_SATURATE"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SRC_ALPHA_SATURATE); - ((daeEnumType*)type)->_strings->append("FRONT"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FRONT); - ((daeEnumType*)type)->_strings->append("BACK"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_BACK); - ((daeEnumType*)type)->_strings->append("FRONT_AND_BACK"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FRONT_AND_BACK); - ((daeEnumType*)type)->_strings->append("FUNC_ADD"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FUNC_ADD); - ((daeEnumType*)type)->_strings->append("FUNC_SUBTRACT"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FUNC_SUBTRACT); - ((daeEnumType*)type)->_strings->append("FUNC_REVERSE_SUBTRACT"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FUNC_REVERSE_SUBTRACT); - ((daeEnumType*)type)->_strings->append("MIN"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_MIN); - ((daeEnumType*)type)->_strings->append("MAX"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_MAX); - ((daeEnumType*)type)->_strings->append("NEVER"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_NEVER); - ((daeEnumType*)type)->_strings->append("LESS"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_LESS); - ((daeEnumType*)type)->_strings->append("LEQUAL"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_LEQUAL); - ((daeEnumType*)type)->_strings->append("EQUAL"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_EQUAL); - ((daeEnumType*)type)->_strings->append("GREATER"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_GREATER); - ((daeEnumType*)type)->_strings->append("NOTEQUAL"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_NOTEQUAL); - ((daeEnumType*)type)->_strings->append("GEQUAL"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_GEQUAL); - ((daeEnumType*)type)->_strings->append("ALWAYS"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_ALWAYS); - ((daeEnumType*)type)->_strings->append("KEEP"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_KEEP); - ((daeEnumType*)type)->_strings->append("REPLACE"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_REPLACE); - ((daeEnumType*)type)->_strings->append("INCR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_INCR); - ((daeEnumType*)type)->_strings->append("DECR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_DECR); - ((daeEnumType*)type)->_strings->append("INVERT"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_INVERT); - ((daeEnumType*)type)->_strings->append("INCR_WRAP"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_INCR_WRAP); - ((daeEnumType*)type)->_strings->append("DECR_WRAP"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_DECR_WRAP); - ((daeEnumType*)type)->_strings->append("EMISSION"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_EMISSION); - ((daeEnumType*)type)->_strings->append("AMBIENT"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_AMBIENT); - ((daeEnumType*)type)->_strings->append("DIFFUSE"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_DIFFUSE); - ((daeEnumType*)type)->_strings->append("SPECULAR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SPECULAR); - ((daeEnumType*)type)->_strings->append("AMBIENT_AND_DIFFUSE"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_AMBIENT_AND_DIFFUSE); - ((daeEnumType*)type)->_strings->append("LINEAR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_LINEAR); - ((daeEnumType*)type)->_strings->append("EXP"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_EXP); - ((daeEnumType*)type)->_strings->append("EXP2"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_EXP2); - ((daeEnumType*)type)->_strings->append("FOG_COORDINATE"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FOG_COORDINATE); - ((daeEnumType*)type)->_strings->append("FRAGMENT_DEPTH"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FRAGMENT_DEPTH); - ((daeEnumType*)type)->_strings->append("CW"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_CW); - ((daeEnumType*)type)->_strings->append("CCW"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_CCW); - ((daeEnumType*)type)->_strings->append("SINGLE_COLOR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SINGLE_COLOR); - ((daeEnumType*)type)->_strings->append("SEPARATE_SPECULAR_COLOR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SEPARATE_SPECULAR_COLOR); - ((daeEnumType*)type)->_strings->append("CLEAR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_CLEAR); - ((daeEnumType*)type)->_strings->append("AND"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_AND); - ((daeEnumType*)type)->_strings->append("AND_REVERSE"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_AND_REVERSE); - ((daeEnumType*)type)->_strings->append("COPY"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_COPY); - ((daeEnumType*)type)->_strings->append("AND_INVERTED"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_AND_INVERTED); - ((daeEnumType*)type)->_strings->append("NOOP"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_NOOP); - ((daeEnumType*)type)->_strings->append("XOR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_XOR); - ((daeEnumType*)type)->_strings->append("OR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_OR); - ((daeEnumType*)type)->_strings->append("NOR"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_NOR); - ((daeEnumType*)type)->_strings->append("EQUIV"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_EQUIV); - ((daeEnumType*)type)->_strings->append("OR_REVERSE"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_OR_REVERSE); - ((daeEnumType*)type)->_strings->append("COPY_INVERTED"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_COPY_INVERTED); - ((daeEnumType*)type)->_strings->append("NAND"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_NAND); - ((daeEnumType*)type)->_strings->append("SET"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SET); - ((daeEnumType*)type)->_strings->append("POINT"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_POINT); - ((daeEnumType*)type)->_strings->append("LINE"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_LINE); - ((daeEnumType*)type)->_strings->append("FILL"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FILL); - ((daeEnumType*)type)->_strings->append("FLAT"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_FLAT); - ((daeEnumType*)type)->_strings->append("SMOOTH"); - ((daeEnumType*)type)->_values->append(GL_ENUMERATION_SMOOTH); - daeAtomicType::append( type ); - - // TYPEDEF: Glsl_float //check if this type has an existing base - type = daeAtomicType::get("xsFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_float"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_float"); - } - - // TYPEDEF: Glsl_int //check if this type has an existing base - type = daeAtomicType::get("xsInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_int"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_int"); - } - - // TYPEDEF: Glsl_bool //check if this type has an existing base - type = daeAtomicType::get("xsBoolean"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_bool"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_bool"); - } - - // TYPEDEF: Glsl_ListOfBool //check if this type has an existing base - type = daeAtomicType::get("Glsl_bool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_ListOfBool"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_ListOfBool"); - } - - // TYPEDEF: Glsl_ListOfFloat //check if this type has an existing base - type = daeAtomicType::get("Glsl_float"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_ListOfFloat"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_ListOfFloat"); - } - - // TYPEDEF: Glsl_ListOfInt //check if this type has an existing base - type = daeAtomicType::get("Glsl_int"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_ListOfInt"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_ListOfInt"); - } - - // TYPEDEF: Glsl_bool2 //check if this type has an existing base - type = daeAtomicType::get("Glsl_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_bool2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_bool2"); - } - - // TYPEDEF: Glsl_bool3 //check if this type has an existing base - type = daeAtomicType::get("Glsl_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_bool3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_bool3"); - } - - // TYPEDEF: Glsl_bool4 //check if this type has an existing base - type = daeAtomicType::get("Glsl_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_bool4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_bool4"); - } - - // TYPEDEF: Glsl_float2 //check if this type has an existing base - type = daeAtomicType::get("Glsl_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_float2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_float2"); - } - - // TYPEDEF: Glsl_float3 //check if this type has an existing base - type = daeAtomicType::get("Glsl_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_float3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_float3"); - } - - // TYPEDEF: Glsl_float4 //check if this type has an existing base - type = daeAtomicType::get("Glsl_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_float4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_float4"); - } - - // TYPEDEF: Glsl_float2x2 //check if this type has an existing base - type = daeAtomicType::get("Glsl_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_float2x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_float2x2"); - } - - // TYPEDEF: Glsl_float3x3 //check if this type has an existing base - type = daeAtomicType::get("Glsl_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_float3x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_float3x3"); - } - - // TYPEDEF: Glsl_float4x4 //check if this type has an existing base - type = daeAtomicType::get("Glsl_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_float4x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_float4x4"); - } - - // TYPEDEF: Glsl_int2 //check if this type has an existing base - type = daeAtomicType::get("Glsl_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_int2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_int2"); - } - - // TYPEDEF: Glsl_int3 //check if this type has an existing base - type = daeAtomicType::get("Glsl_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_int3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_int3"); - } - - // TYPEDEF: Glsl_int4 //check if this type has an existing base - type = daeAtomicType::get("Glsl_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_int4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_int4"); - } - - // ENUM: Glsl_pipeline_stage - type = new daeEnumType; - type->_nameBindings.append("Glsl_pipeline_stage"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("VERTEXPROGRAM"); - ((daeEnumType*)type)->_values->append(GLSL_PIPELINE_STAGE_VERTEXPROGRAM); - ((daeEnumType*)type)->_strings->append("FRAGMENTPROGRAM"); - ((daeEnumType*)type)->_values->append(GLSL_PIPELINE_STAGE_FRAGMENTPROGRAM); - daeAtomicType::append( type ); - - // TYPEDEF: Glsl_identifier //check if this type has an existing base - type = daeAtomicType::get("xsToken"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Glsl_identifier"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Glsl_identifier"); - } - - // TYPEDEF: Cg_bool //check if this type has an existing base - type = daeAtomicType::get("xsBoolean"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool"); - } - - // TYPEDEF: Cg_float //check if this type has an existing base - type = daeAtomicType::get("xsFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float"); - } - - // TYPEDEF: Cg_int //check if this type has an existing base - type = daeAtomicType::get("xsInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int"); - } - - // TYPEDEF: Cg_half //check if this type has an existing base - type = daeAtomicType::get("xsFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half"); - } - - // TYPEDEF: Cg_fixed //check if this type has an existing base - type = daeAtomicType::get("xsFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed"); - } - - // TYPEDEF: Cg_bool1 //check if this type has an existing base - type = daeAtomicType::get("xsBoolean"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool1"); - } - - // TYPEDEF: Cg_float1 //check if this type has an existing base - type = daeAtomicType::get("xsFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float1"); - } - - // TYPEDEF: Cg_int1 //check if this type has an existing base - type = daeAtomicType::get("xsInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int1"); - } - - // TYPEDEF: Cg_half1 //check if this type has an existing base - type = daeAtomicType::get("xsFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half1"); - } - - // TYPEDEF: Cg_fixed1 //check if this type has an existing base - type = daeAtomicType::get("xsFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed1"); - } - - // TYPEDEF: Cg_ListOfBool //check if this type has an existing base - type = daeAtomicType::get("Cg_bool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_ListOfBool"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_ListOfBool"); - } - - // TYPEDEF: Cg_ListOfFloat //check if this type has an existing base - type = daeAtomicType::get("Cg_float"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_ListOfFloat"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_ListOfFloat"); - } - - // TYPEDEF: Cg_ListOfInt //check if this type has an existing base - type = daeAtomicType::get("Cg_int"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_ListOfInt"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_ListOfInt"); - } - - // TYPEDEF: Cg_ListOfHalf //check if this type has an existing base - type = daeAtomicType::get("Cg_half"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_ListOfHalf"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_ListOfHalf"); - } - - // TYPEDEF: Cg_ListOfFixed //check if this type has an existing base - type = daeAtomicType::get("Cg_fixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_ListOfFixed"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_ListOfFixed"); - } - - // TYPEDEF: Cg_bool2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool2"); - } - - // TYPEDEF: Cg_bool3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool3"); - } - - // TYPEDEF: Cg_bool4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool4"); - } - - // TYPEDEF: Cg_bool1x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool1x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool1x1"); - } - - // TYPEDEF: Cg_bool1x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool1x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool1x2"); - } - - // TYPEDEF: Cg_bool1x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool1x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool1x3"); - } - - // TYPEDEF: Cg_bool1x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool1x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool1x4"); - } - - // TYPEDEF: Cg_bool2x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool2x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool2x1"); - } - - // TYPEDEF: Cg_bool2x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool2x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool2x2"); - } - - // TYPEDEF: Cg_bool2x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool2x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool2x3"); - } - - // TYPEDEF: Cg_bool2x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool2x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool2x4"); - } - - // TYPEDEF: Cg_bool3x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool3x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool3x1"); - } - - // TYPEDEF: Cg_bool3x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool3x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool3x2"); - } - - // TYPEDEF: Cg_bool3x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool3x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool3x3"); - } - - // TYPEDEF: Cg_bool3x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool3x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool3x4"); - } - - // TYPEDEF: Cg_bool4x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool4x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool4x1"); - } - - // TYPEDEF: Cg_bool4x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool4x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool4x2"); - } - - // TYPEDEF: Cg_bool4x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool4x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool4x3"); - } - - // TYPEDEF: Cg_bool4x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfBool"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_bool4x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_bool4x4"); - } - - // TYPEDEF: Cg_float2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float2"); - } - - // TYPEDEF: Cg_float3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float3"); - } - - // TYPEDEF: Cg_float4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float4"); - } - - // TYPEDEF: Cg_float1x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float1x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float1x1"); - } - - // TYPEDEF: Cg_float1x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float1x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float1x2"); - } - - // TYPEDEF: Cg_float1x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float1x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float1x3"); - } - - // TYPEDEF: Cg_float1x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float1x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float1x4"); - } - - // TYPEDEF: Cg_float2x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float2x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float2x1"); - } - - // TYPEDEF: Cg_float2x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float2x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float2x2"); - } - - // TYPEDEF: Cg_float2x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float2x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float2x3"); - } - - // TYPEDEF: Cg_float2x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float2x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float2x4"); - } - - // TYPEDEF: Cg_float3x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float3x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float3x1"); - } - - // TYPEDEF: Cg_float3x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float3x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float3x2"); - } - - // TYPEDEF: Cg_float3x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float3x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float3x3"); - } - - // TYPEDEF: Cg_float3x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float3x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float3x4"); - } - - // TYPEDEF: Cg_float4x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float4x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float4x1"); - } - - // TYPEDEF: Cg_float4x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float4x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float4x2"); - } - - // TYPEDEF: Cg_float4x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float4x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float4x3"); - } - - // TYPEDEF: Cg_float4x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFloat"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_float4x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_float4x4"); - } - - // TYPEDEF: Cg_int2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int2"); - } - - // TYPEDEF: Cg_int3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int3"); - } - - // TYPEDEF: Cg_int4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int4"); - } - - // TYPEDEF: Cg_int1x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int1x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int1x1"); - } - - // TYPEDEF: Cg_int1x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int1x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int1x2"); - } - - // TYPEDEF: Cg_int1x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int1x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int1x3"); - } - - // TYPEDEF: Cg_int1x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int1x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int1x4"); - } - - // TYPEDEF: Cg_int2x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int2x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int2x1"); - } - - // TYPEDEF: Cg_int2x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int2x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int2x2"); - } - - // TYPEDEF: Cg_int2x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int2x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int2x3"); - } - - // TYPEDEF: Cg_int2x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int2x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int2x4"); - } - - // TYPEDEF: Cg_int3x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int3x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int3x1"); - } - - // TYPEDEF: Cg_int3x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int3x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int3x2"); - } - - // TYPEDEF: Cg_int3x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int3x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int3x3"); - } - - // TYPEDEF: Cg_int3x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int3x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int3x4"); - } - - // TYPEDEF: Cg_int4x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int4x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int4x1"); - } - - // TYPEDEF: Cg_int4x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int4x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int4x2"); - } - - // TYPEDEF: Cg_int4x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int4x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int4x3"); - } - - // TYPEDEF: Cg_int4x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfInt"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_int4x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_int4x4"); - } - - // TYPEDEF: Cg_half2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half2"); - } - - // TYPEDEF: Cg_half3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half3"); - } - - // TYPEDEF: Cg_half4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half4"); - } - - // TYPEDEF: Cg_half1x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half1x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half1x1"); - } - - // TYPEDEF: Cg_half1x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half1x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half1x2"); - } - - // TYPEDEF: Cg_half1x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half1x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half1x3"); - } - - // TYPEDEF: Cg_half1x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half1x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half1x4"); - } - - // TYPEDEF: Cg_half2x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half2x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half2x1"); - } - - // TYPEDEF: Cg_half2x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half2x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half2x2"); - } - - // TYPEDEF: Cg_half2x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half2x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half2x3"); - } - - // TYPEDEF: Cg_half2x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half2x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half2x4"); - } - - // TYPEDEF: Cg_half3x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half3x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half3x1"); - } - - // TYPEDEF: Cg_half3x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half3x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half3x2"); - } - - // TYPEDEF: Cg_half3x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half3x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half3x3"); - } - - // TYPEDEF: Cg_half3x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half3x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half3x4"); - } - - // TYPEDEF: Cg_half4x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half4x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half4x1"); - } - - // TYPEDEF: Cg_half4x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half4x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half4x2"); - } - - // TYPEDEF: Cg_half4x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half4x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half4x3"); - } - - // TYPEDEF: Cg_half4x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfHalf"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_half4x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_half4x4"); - } - - // TYPEDEF: Cg_fixed2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed2"); - } - - // TYPEDEF: Cg_fixed3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed3"); - } - - // TYPEDEF: Cg_fixed4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed4"); - } - - // TYPEDEF: Cg_fixed1x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed1x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed1x1"); - } - - // TYPEDEF: Cg_fixed1x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed1x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed1x2"); - } - - // TYPEDEF: Cg_fixed1x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed1x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed1x3"); - } - - // TYPEDEF: Cg_fixed1x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed1x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed1x4"); - } - - // TYPEDEF: Cg_fixed2x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed2x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed2x1"); - } - - // TYPEDEF: Cg_fixed2x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed2x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed2x2"); - } - - // TYPEDEF: Cg_fixed2x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed2x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed2x3"); - } - - // TYPEDEF: Cg_fixed2x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed2x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed2x4"); - } - - // TYPEDEF: Cg_fixed3x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed3x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed3x1"); - } - - // TYPEDEF: Cg_fixed3x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed3x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed3x2"); - } - - // TYPEDEF: Cg_fixed3x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed3x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed3x3"); - } - - // TYPEDEF: Cg_fixed3x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed3x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed3x4"); - } - - // TYPEDEF: Cg_fixed4x1 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed4x1"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed4x1"); - } - - // TYPEDEF: Cg_fixed4x2 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed4x2"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed4x2"); - } - - // TYPEDEF: Cg_fixed4x3 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed4x3"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed4x3"); - } - - // TYPEDEF: Cg_fixed4x4 //check if this type has an existing base - type = daeAtomicType::get("Cg_ListOfFixed"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_fixed4x4"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_fixed4x4"); - } - - // ENUM: Cg_pipeline_stage - type = new daeEnumType; - type->_nameBindings.append("Cg_pipeline_stage"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("VERTEX"); - ((daeEnumType*)type)->_values->append(CG_PIPELINE_STAGE_VERTEX); - ((daeEnumType*)type)->_strings->append("FRAGMENT"); - ((daeEnumType*)type)->_values->append(CG_PIPELINE_STAGE_FRAGMENT); - daeAtomicType::append( type ); - - // TYPEDEF: Cg_identifier //check if this type has an existing base - type = daeAtomicType::get("xsToken"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Cg_identifier"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Cg_identifier"); - } - - // TYPEDEF: GLES_MAX_LIGHTS_index //check if this type has an existing base - type = daeAtomicType::get("xsNonNegativeInteger"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("GLES_MAX_LIGHTS_index"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("GLES_MAX_LIGHTS_index"); - } - - // TYPEDEF: GLES_MAX_CLIP_PLANES_index //check if this type has an existing base - type = daeAtomicType::get("xsNonNegativeInteger"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("GLES_MAX_CLIP_PLANES_index"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("GLES_MAX_CLIP_PLANES_index"); - } - - // TYPEDEF: GLES_MAX_TEXTURE_COORDS_index //check if this type has an existing base - type = daeAtomicType::get("xsNonNegativeInteger"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("GLES_MAX_TEXTURE_COORDS_index"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("GLES_MAX_TEXTURE_COORDS_index"); - } - - // TYPEDEF: GLES_MAX_TEXTURE_IMAGE_UNITS_index //check if this type has an existing base - type = daeAtomicType::get("xsNonNegativeInteger"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("GLES_MAX_TEXTURE_IMAGE_UNITS_index"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("GLES_MAX_TEXTURE_IMAGE_UNITS_index"); - } - - // ENUM: Gles_texenv_mode_enums - type = new daeEnumType; - type->_nameBindings.append("Gles_texenv_mode_enums"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("REPLACE"); - ((daeEnumType*)type)->_values->append(GLES_TEXENV_MODE_ENUMS_REPLACE); - ((daeEnumType*)type)->_strings->append("MODULATE"); - ((daeEnumType*)type)->_values->append(GLES_TEXENV_MODE_ENUMS_MODULATE); - ((daeEnumType*)type)->_strings->append("DECAL"); - ((daeEnumType*)type)->_values->append(GLES_TEXENV_MODE_ENUMS_DECAL); - ((daeEnumType*)type)->_strings->append("BLEND"); - ((daeEnumType*)type)->_values->append(GLES_TEXENV_MODE_ENUMS_BLEND); - ((daeEnumType*)type)->_strings->append("ADD"); - ((daeEnumType*)type)->_values->append(GLES_TEXENV_MODE_ENUMS_ADD); - daeAtomicType::append( type ); - - // ENUM: Gles_texcombiner_operatorRGB_enums - type = new daeEnumType; - type->_nameBindings.append("Gles_texcombiner_operatorRGB_enums"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("REPLACE"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_REPLACE); - ((daeEnumType*)type)->_strings->append("MODULATE"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_MODULATE); - ((daeEnumType*)type)->_strings->append("ADD"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_ADD); - ((daeEnumType*)type)->_strings->append("ADD_SIGNED"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_ADD_SIGNED); - ((daeEnumType*)type)->_strings->append("INTERPOLATE"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_INTERPOLATE); - ((daeEnumType*)type)->_strings->append("SUBTRACT"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_SUBTRACT); - ((daeEnumType*)type)->_strings->append("DOT3_RGB"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_DOT3_RGB); - ((daeEnumType*)type)->_strings->append("DOT3_RGBA"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORRGB_ENUMS_DOT3_RGBA); - daeAtomicType::append( type ); - - // ENUM: Gles_texcombiner_operatorAlpha_enums - type = new daeEnumType; - type->_nameBindings.append("Gles_texcombiner_operatorAlpha_enums"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("REPLACE"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_REPLACE); - ((daeEnumType*)type)->_strings->append("MODULATE"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_MODULATE); - ((daeEnumType*)type)->_strings->append("ADD"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_ADD); - ((daeEnumType*)type)->_strings->append("ADD_SIGNED"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_ADD_SIGNED); - ((daeEnumType*)type)->_strings->append("INTERPOLATE"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_INTERPOLATE); - ((daeEnumType*)type)->_strings->append("SUBTRACT"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERATORALPHA_ENUMS_SUBTRACT); - daeAtomicType::append( type ); - - // ENUM: Gles_texcombiner_source_enums - type = new daeEnumType; - type->_nameBindings.append("Gles_texcombiner_source_enums"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("TEXTURE"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_SOURCE_ENUMS_TEXTURE); - ((daeEnumType*)type)->_strings->append("CONSTANT"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_SOURCE_ENUMS_CONSTANT); - ((daeEnumType*)type)->_strings->append("PRIMARY"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_SOURCE_ENUMS_PRIMARY); - ((daeEnumType*)type)->_strings->append("PREVIOUS"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_SOURCE_ENUMS_PREVIOUS); - daeAtomicType::append( type ); - - // ENUM: Gles_texcombiner_operandRGB_enums - type = new daeEnumType; - type->_nameBindings.append("Gles_texcombiner_operandRGB_enums"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("SRC_COLOR"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERANDRGB_ENUMS_SRC_COLOR); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_COLOR"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERANDRGB_ENUMS_ONE_MINUS_SRC_COLOR); - ((daeEnumType*)type)->_strings->append("SRC_ALPHA"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERANDRGB_ENUMS_SRC_ALPHA); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_ALPHA"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERANDRGB_ENUMS_ONE_MINUS_SRC_ALPHA); - daeAtomicType::append( type ); - - // ENUM: Gles_texcombiner_operandAlpha_enums - type = new daeEnumType; - type->_nameBindings.append("Gles_texcombiner_operandAlpha_enums"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("SRC_ALPHA"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERANDALPHA_ENUMS_SRC_ALPHA); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_ALPHA"); - ((daeEnumType*)type)->_values->append(GLES_TEXCOMBINER_OPERANDALPHA_ENUMS_ONE_MINUS_SRC_ALPHA); - daeAtomicType::append( type ); - - // TYPEDEF: Gles_texcombiner_argument_index_type //check if this type has an existing base - type = daeAtomicType::get("xsNonNegativeInteger"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Gles_texcombiner_argument_index_type"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Gles_texcombiner_argument_index_type"); - } - - // ENUM: Gles_sampler_wrap - type = new daeEnumType; - type->_nameBindings.append("Gles_sampler_wrap"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("REPEAT"); - ((daeEnumType*)type)->_values->append(GLES_SAMPLER_WRAP_REPEAT); - ((daeEnumType*)type)->_strings->append("CLAMP"); - ((daeEnumType*)type)->_values->append(GLES_SAMPLER_WRAP_CLAMP); - ((daeEnumType*)type)->_strings->append("CLAMP_TO_EDGE"); - ((daeEnumType*)type)->_values->append(GLES_SAMPLER_WRAP_CLAMP_TO_EDGE); - ((daeEnumType*)type)->_strings->append("MIRRORED_REPEAT"); - ((daeEnumType*)type)->_values->append(GLES_SAMPLER_WRAP_MIRRORED_REPEAT); - daeAtomicType::append( type ); - - // ENUM: Gles_stencil_op_type - type = new daeEnumType; - type->_nameBindings.append("Gles_stencil_op_type"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("KEEP"); - ((daeEnumType*)type)->_values->append(GLES_STENCIL_OP_TYPE_KEEP); - ((daeEnumType*)type)->_strings->append("ZERO"); - ((daeEnumType*)type)->_values->append(GLES_STENCIL_OP_TYPE_ZERO); - ((daeEnumType*)type)->_strings->append("REPLACE"); - ((daeEnumType*)type)->_values->append(GLES_STENCIL_OP_TYPE_REPLACE); - ((daeEnumType*)type)->_strings->append("INCR"); - ((daeEnumType*)type)->_values->append(GLES_STENCIL_OP_TYPE_INCR); - ((daeEnumType*)type)->_strings->append("DECR"); - ((daeEnumType*)type)->_values->append(GLES_STENCIL_OP_TYPE_DECR); - ((daeEnumType*)type)->_strings->append("INVERT"); - ((daeEnumType*)type)->_values->append(GLES_STENCIL_OP_TYPE_INVERT); - daeAtomicType::append( type ); - - // ENUM: Gles_enumeration - type = new daeEnumType; - type->_nameBindings.append("Gles_enumeration"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("ZERO"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ZERO); - ((daeEnumType*)type)->_strings->append("ONE"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE); - ((daeEnumType*)type)->_strings->append("SRC_COLOR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SRC_COLOR); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_COLOR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE_MINUS_SRC_COLOR); - ((daeEnumType*)type)->_strings->append("DEST_COLOR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_DEST_COLOR); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_DEST_COLOR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE_MINUS_DEST_COLOR); - ((daeEnumType*)type)->_strings->append("SRC_ALPHA"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SRC_ALPHA); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_SRC_ALPHA"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE_MINUS_SRC_ALPHA); - ((daeEnumType*)type)->_strings->append("DST_ALPHA"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_DST_ALPHA); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_DST_ALPHA"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE_MINUS_DST_ALPHA); - ((daeEnumType*)type)->_strings->append("CONSTANT_COLOR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_CONSTANT_COLOR); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_CONSTANT_COLOR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE_MINUS_CONSTANT_COLOR); - ((daeEnumType*)type)->_strings->append("CONSTANT_ALPHA"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_CONSTANT_ALPHA); - ((daeEnumType*)type)->_strings->append("ONE_MINUS_CONSTANT_ALPHA"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ONE_MINUS_CONSTANT_ALPHA); - ((daeEnumType*)type)->_strings->append("SRC_ALPHA_SATURATE"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SRC_ALPHA_SATURATE); - ((daeEnumType*)type)->_strings->append("FRONT"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_FRONT); - ((daeEnumType*)type)->_strings->append("BACK"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_BACK); - ((daeEnumType*)type)->_strings->append("FRONT_AND_BACK"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_FRONT_AND_BACK); - ((daeEnumType*)type)->_strings->append("NEVER"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_NEVER); - ((daeEnumType*)type)->_strings->append("LESS"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_LESS); - ((daeEnumType*)type)->_strings->append("LEQUAL"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_LEQUAL); - ((daeEnumType*)type)->_strings->append("EQUAL"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_EQUAL); - ((daeEnumType*)type)->_strings->append("GREATER"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_GREATER); - ((daeEnumType*)type)->_strings->append("NOTEQUAL"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_NOTEQUAL); - ((daeEnumType*)type)->_strings->append("GEQUAL"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_GEQUAL); - ((daeEnumType*)type)->_strings->append("ALWAYS"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_ALWAYS); - ((daeEnumType*)type)->_strings->append("KEEP"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_KEEP); - ((daeEnumType*)type)->_strings->append("REPLACE"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_REPLACE); - ((daeEnumType*)type)->_strings->append("INCR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_INCR); - ((daeEnumType*)type)->_strings->append("DECR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_DECR); - ((daeEnumType*)type)->_strings->append("INVERT"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_INVERT); - ((daeEnumType*)type)->_strings->append("INCR_WRAP"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_INCR_WRAP); - ((daeEnumType*)type)->_strings->append("DECR_WRAP"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_DECR_WRAP); - ((daeEnumType*)type)->_strings->append("EMISSION"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_EMISSION); - ((daeEnumType*)type)->_strings->append("AMBIENT"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_AMBIENT); - ((daeEnumType*)type)->_strings->append("DIFFUSE"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_DIFFUSE); - ((daeEnumType*)type)->_strings->append("SPECULAR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SPECULAR); - ((daeEnumType*)type)->_strings->append("AMBIENT_AND_DIFFUSE"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_AMBIENT_AND_DIFFUSE); - ((daeEnumType*)type)->_strings->append("LINEAR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_LINEAR); - ((daeEnumType*)type)->_strings->append("EXP"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_EXP); - ((daeEnumType*)type)->_strings->append("EXP2"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_EXP2); - ((daeEnumType*)type)->_strings->append("CW"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_CW); - ((daeEnumType*)type)->_strings->append("CCW"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_CCW); - ((daeEnumType*)type)->_strings->append("SINGLE_COLOR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SINGLE_COLOR); - ((daeEnumType*)type)->_strings->append("SEPARATE_SPECULAR_COLOR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SEPARATE_SPECULAR_COLOR); - ((daeEnumType*)type)->_strings->append("CLEAR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_CLEAR); - ((daeEnumType*)type)->_strings->append("AND"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_AND); - ((daeEnumType*)type)->_strings->append("AND_REVERSE"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_AND_REVERSE); - ((daeEnumType*)type)->_strings->append("COPY"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_COPY); - ((daeEnumType*)type)->_strings->append("AND_INVERTED"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_AND_INVERTED); - ((daeEnumType*)type)->_strings->append("NOOP"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_NOOP); - ((daeEnumType*)type)->_strings->append("XOR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_XOR); - ((daeEnumType*)type)->_strings->append("OR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_OR); - ((daeEnumType*)type)->_strings->append("NOR"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_NOR); - ((daeEnumType*)type)->_strings->append("EQUIV"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_EQUIV); - ((daeEnumType*)type)->_strings->append("OR_REVERSE"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_OR_REVERSE); - ((daeEnumType*)type)->_strings->append("COPY_INVERTED"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_COPY_INVERTED); - ((daeEnumType*)type)->_strings->append("NAND"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_NAND); - ((daeEnumType*)type)->_strings->append("SET"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SET); - ((daeEnumType*)type)->_strings->append("POINT"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_POINT); - ((daeEnumType*)type)->_strings->append("LINE"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_LINE); - ((daeEnumType*)type)->_strings->append("FILL"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_FILL); - ((daeEnumType*)type)->_strings->append("FLAT"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_FLAT); - ((daeEnumType*)type)->_strings->append("SMOOTH"); - ((daeEnumType*)type)->_values->append(GLES_ENUMERATION_SMOOTH); - daeAtomicType::append( type ); - - // TYPEDEF: Gles_rendertarget_common //check if this type has an existing base - type = daeAtomicType::get("xsNCName"); - if ( type == NULL ) { //register as a raw type - type = new daeRawRefType; - type->_nameBindings.append("Gles_rendertarget_common"); - daeAtomicType::append( type ); - } - else { //add binding to existing type - type->_nameBindings.append("Gles_rendertarget_common"); - } - - // ENUM: SpringType - type = new daeEnumType; - type->_nameBindings.append("SpringType"); - ((daeEnumType*)type)->_strings = new daeStringRefArray; - ((daeEnumType*)type)->_values = new daeEnumArray; - ((daeEnumType*)type)->_strings->append("LINEAR"); - ((daeEnumType*)type)->_values->append(SPRINGTYPE_LINEAR); - ((daeEnumType*)type)->_strings->append("ANGULAR"); - ((daeEnumType*)type)->_values->append(SPRINGTYPE_ANGULAR); - daeAtomicType::append( type ); - -} - -daeMetaElement* registerDomElements() -{ - daeMetaElement* meta = domCOLLADA::registerElement(); - // Enable tracking of top level object by default - domCOLLADA::_Meta->setIsTrackableForQueries(true); - return meta; -} diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domVertices.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domVertices.cpp deleted file mode 100644 index 08f9ccac9..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domVertices.cpp +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domVertices::create(daeInt bytes) -{ - domVerticesRef ref = new(bytes) domVertices; - return ref; -} - - -daeMetaElement * -domVertices::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "vertices" ); - _Meta->registerClass(domVertices::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, -1 ); - mea->setName( "input" ); - mea->setOffset( daeOffsetOf(domVertices,elemInput_array) ); - mea->setElementType( domInputLocal::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domVertices,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domVertices , attrId )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domVertices , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domVertices)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domVertices::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/1.4/dom/domVisual_scene.cpp b/Extras/COLLADA_DOM/src/1.4/dom/domVisual_scene.cpp deleted file mode 100644 index 91084acfa..000000000 --- a/Extras/COLLADA_DOM/src/1.4/dom/domVisual_scene.cpp +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domVisual_scene::create(daeInt bytes) -{ - domVisual_sceneRef ref = new(bytes) domVisual_scene; - return ref; -} - - -daeMetaElement * -domVisual_scene::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "visual_scene" ); - _Meta->registerClass(domVisual_scene::create, &_Meta); - - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementAttribute( _Meta, cm, 0, 0, 1 ); - mea->setName( "asset" ); - mea->setOffset( daeOffsetOf(domVisual_scene,elemAsset) ); - mea->setElementType( domAsset::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 1, 1, -1 ); - mea->setName( "node" ); - mea->setOffset( daeOffsetOf(domVisual_scene,elemNode_array) ); - mea->setElementType( domNode::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 2, 0, -1 ); - mea->setName( "evaluate_scene" ); - mea->setOffset( daeOffsetOf(domVisual_scene,elemEvaluate_scene_array) ); - mea->setElementType( domVisual_scene::domEvaluate_scene::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 3, 0, -1 ); - mea->setName( "extra" ); - mea->setOffset( daeOffsetOf(domVisual_scene,elemExtra_array) ); - mea->setElementType( domExtra::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 3 ); - _Meta->setCMRoot( cm ); - - // Add attribute: id - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "id" ); - ma->setType( daeAtomicType::get("xsID")); - ma->setOffset( daeOffsetOf( domVisual_scene , attrId )); - ma->setContainer( _Meta ); - ma->setIsRequired( false ); - - _Meta->appendAttribute(ma); - } - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domVisual_scene , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domVisual_scene)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domVisual_scene::domEvaluate_scene::create(daeInt bytes) -{ - domVisual_scene::domEvaluate_sceneRef ref = new(bytes) domVisual_scene::domEvaluate_scene; - return ref; -} - - -daeMetaElement * -domVisual_scene::domEvaluate_scene::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "evaluate_scene" ); - _Meta->registerClass(domVisual_scene::domEvaluate_scene::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 1, -1 ); - mea->setName( "render" ); - mea->setOffset( daeOffsetOf(domVisual_scene::domEvaluate_scene,elemRender_array) ); - mea->setElementType( domVisual_scene::domEvaluate_scene::domRender::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - - // Add attribute: name - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "name" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domVisual_scene::domEvaluate_scene , attrName )); - ma->setContainer( _Meta ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domVisual_scene::domEvaluate_scene)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domVisual_scene::domEvaluate_scene::domRender::create(daeInt bytes) -{ - domVisual_scene::domEvaluate_scene::domRenderRef ref = new(bytes) domVisual_scene::domEvaluate_scene::domRender; - ref->attrCamera_node.setContainer( (domVisual_scene::domEvaluate_scene::domRender*)ref ); - return ref; -} - - -daeMetaElement * -domVisual_scene::domEvaluate_scene::domRender::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "render" ); - _Meta->registerClass(domVisual_scene::domEvaluate_scene::domRender::create, &_Meta); - - _Meta->setIsInnerClass( true ); - daeMetaCMPolicy *cm = NULL; - daeMetaElementAttribute *mea = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - mea = new daeMetaElementArrayAttribute( _Meta, cm, 0, 0, -1 ); - mea->setName( "layer" ); - mea->setOffset( daeOffsetOf(domVisual_scene::domEvaluate_scene::domRender,elemLayer_array) ); - mea->setElementType( domVisual_scene::domEvaluate_scene::domRender::domLayer::registerElement() ); - cm->appendChild( mea ); - - mea = new daeMetaElementAttribute( _Meta, cm, 1, 0, 1 ); - mea->setName( "instance_effect" ); - mea->setOffset( daeOffsetOf(domVisual_scene::domEvaluate_scene::domRender,elemInstance_effect) ); - mea->setElementType( domInstance_effect::registerElement() ); - cm->appendChild( mea ); - - cm->setMaxOrdinal( 1 ); - _Meta->setCMRoot( cm ); - - // Add attribute: camera_node - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "camera_node" ); - ma->setType( daeAtomicType::get("xsAnyURI")); - ma->setOffset( daeOffsetOf( domVisual_scene::domEvaluate_scene::domRender , attrCamera_node )); - ma->setContainer( _Meta ); - ma->setIsRequired( true ); - - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domVisual_scene::domEvaluate_scene::domRender)); - _Meta->validate(); - - return _Meta; -} - -daeElementRef -domVisual_scene::domEvaluate_scene::domRender::domLayer::create(daeInt bytes) -{ - domVisual_scene::domEvaluate_scene::domRender::domLayerRef ref = new(bytes) domVisual_scene::domEvaluate_scene::domRender::domLayer; - return ref; -} - - -daeMetaElement * -domVisual_scene::domEvaluate_scene::domRender::domLayer::registerElement() -{ - if ( _Meta != NULL ) return _Meta; - - _Meta = new daeMetaElement; - _Meta->setName( "layer" ); - _Meta->registerClass(domVisual_scene::domEvaluate_scene::domRender::domLayer::create, &_Meta); - - _Meta->setIsInnerClass( true ); - // Add attribute: _value - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsNCName")); - ma->setOffset( daeOffsetOf( domVisual_scene::domEvaluate_scene::domRender::domLayer , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - - _Meta->setElementSize(sizeof(domVisual_scene::domEvaluate_scene::domRender::domLayer)); - _Meta->validate(); - - return _Meta; -} - - -daeMetaElement * domVisual_scene::_Meta = NULL; -daeMetaElement * domVisual_scene::domEvaluate_scene::_Meta = NULL; -daeMetaElement * domVisual_scene::domEvaluate_scene::domRender::_Meta = NULL; -daeMetaElement * domVisual_scene::domEvaluate_scene::domRender::domLayer::_Meta = NULL; - - diff --git a/Extras/COLLADA_DOM/src/dae/dae.cpp b/Extras/COLLADA_DOM/src/dae/dae.cpp deleted file mode 100644 index a3855c78a..000000000 --- a/Extras/COLLADA_DOM/src/dae/dae.cpp +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include - -#ifndef NO_DEFAULT_PLUGIN -#ifndef DEFAULT_BXCEPLUGIN -#include -#include -#else -//This plugin is not provided with the public release. If you don't know about it then you don't need -//to worry about it. -#include -#include -#endif -#endif - -// Don't include domConstants.h because it varies depending on the dom version, -// just extern the one thing we need (COLLADA_VERSION) which all versions of -// domConstants.h/.cpp are required to define. - -extern daeString COLLADA_VERSION; - -daeInt DAEInstanceCount = 0; -daeMetaElement *DAE::topMeta = NULL; - -void -DAE::cleanup() -{ - if (topMeta != NULL) { - daeMetaElement::releaseMetas(); - daeAtomicType::uninitializeKnownTypes(); - topMeta = NULL; -//Contributed by Nus - Wed, 08 Nov 2006 - terminateURI(); - terminateResolveArray(); - daeStringRef::releaseStringTable(); - daeIDRefResolver::terminateIDRefSolver(); -//---------------------- - } -} - -// constructor -DAE::DAE() : database(NULL), - plugin(NULL), - resolver(NULL), - idResolver(NULL), - defaultDatabase(false), - defaultPlugin(false), - registerFunc(NULL) -{ -//Contributed by Nus - Wed, 08 Nov 2006 - initializeURI(); - initializeResolveArray(); - daeIDRefResolver::initializeIDRefSolver(); -//------------------------ - if ( DAEInstanceCount == 0 ) { - topMeta = initializeDomMeta(); - } - DAEInstanceCount++; -} - -DAE::~DAE() -{ - if (defaultDatabase) - delete database; - if (defaultPlugin) { - delete plugin; - delete resolver; - delete idResolver; - } - daeElement::clearResolveArray(); - --DAEInstanceCount; - if ( DAEInstanceCount <= 0 ) - { - cleanup(); - } -} - -// Database setup -daeDatabase* DAE::getDatabase() -{ - return database; -} - -daeInt DAE::setDatabase(daeDatabase* _database) -{ - if (defaultDatabase) - delete database; - if (_database) - database = _database; - else - { - //create default database - database = new daeSTLDatabase; - defaultDatabase = true; - } - // !!!GAC Not sure what good the error return is, current implementations never fail, what would we do if they did? - int res = database->setMeta(topMeta); - (void)res; - return DAE_OK; -} - -// IO Plugin setup -daeIOPlugin* DAE::getIOPlugin() -{ - return plugin; -} - -daeInt DAE::setIOPlugin(daeIOPlugin* _plugin) -{ - if (defaultPlugin) - delete plugin; - if (_plugin) - plugin = _plugin; - else - { - //create default plugin -#ifndef NO_DEFAULT_PLUGIN -#ifndef DEFAULT_BXCEPLUGIN - plugin = new daeLIBXMLPlugin; - defaultPlugin = true; - resolver = new daeLIBXMLResolver(database,plugin); -#else - plugin = new daebXCePlugin(); - defaultPlugin = true; - resolver = new daebXCeResolver(database, plugin); -#endif -#else - daeErrorHandler::get()->handleWarning( "No IOPlugin Set! NO_DEFAULT_PLUGIN is defined." ); - plugin = NULL; - return DAE_ERR_BACKEND_IO; -#endif - - // Setup the IDRef resolver - idResolver = new daeDefaultIDRefResolver(database); - } - int res = plugin->setMeta(topMeta); - if (res != DAE_OK) - { - if (defaultPlugin) - { - defaultPlugin = false; - delete plugin; - } - plugin = NULL; - return res; - } - return DAE_OK; -} - -// Integration Library Setup -daeIntegrationLibraryFunc DAE::getIntegrationLibrary() -{ - return registerFunc; -} - -daeInt DAE::setIntegrationLibrary(daeIntegrationLibraryFunc _registerFunc) -{ - registerFunc = _registerFunc; - return DAE_OK; -} - -// batch file operations -daeInt DAE::load(daeString name, daeString docBuffer) -{ - if (!database) - setDatabase(NULL); - - if (!plugin) - setIOPlugin(NULL); - - if (registerFunc) - registerFunc(); - - if ( !plugin || !database ) { - //printf( "no plugin or database\n" ); - daeErrorHandler::get()->handleError("no plugin or database\n"); - return DAE_ERR_BACKEND_IO; - } - - plugin->setDatabase(database); - - if (!name || name[0] == '\0') - return DAE_ERR_INVALID_CALL; - - daeURI tempURI(name); - - return plugin->read(tempURI, docBuffer); -} -daeInt DAE::save(daeString documentName, daeBool replace) -{ - if (!database) - setDatabase(NULL); - - if (!plugin) - setIOPlugin(NULL); - - if (registerFunc) - registerFunc(); - - if ( !plugin || !database ) { - return DAE_ERR_BACKEND_IO; - } - - plugin->setDatabase(database); - - // Find the document we want by name - daeDocument* document = database->getDocument(documentName); - if(document == NULL) - return DAE_ERR_COLLECTION_DOES_NOT_EXIST; - - // Save it out to the URI it was loaded from - return plugin->write(document->getDocumentURI(), document, replace); - -} -daeInt DAE::save(daeUInt documentIndex, daeBool replace) -{ - if (!database) - setDatabase(NULL); - - if (!plugin) - setIOPlugin(NULL); - - if (registerFunc) - registerFunc(); - - if ( !plugin || !database ) { - return DAE_ERR_BACKEND_IO; - } - - plugin->setDatabase(database); - - if(documentIndex >= database->getDocumentCount()) - return DAE_ERR_COLLECTION_DOES_NOT_EXIST; - - daeDocument *document = database->getDocument(documentIndex); - - // Save it out to the URI it was loaded from - return plugin->write(document->getDocumentURI(), document, replace); -} -daeInt DAE::saveAs(daeString name, daeString documentName, daeBool replace) -{ - if (!database) - setDatabase(NULL); - - if (!plugin) - setIOPlugin(NULL); - - if (registerFunc) - registerFunc(); - - if ( !plugin || !database ) { - return DAE_ERR_BACKEND_IO; - } - - plugin->setDatabase(database); - - // Find the document we want by name - daeDocument* document = database->getDocument(documentName); - if(document == NULL) - return DAE_ERR_COLLECTION_DOES_NOT_EXIST; - - // Make a URI from "name" and save to that - - daeURI tempURI(name, true); - return plugin->write(&tempURI, document, replace); - -} -daeInt DAE::saveAs(daeString name, daeUInt documentIndex, daeBool replace) -{ - if (!database) - setDatabase(NULL); - - if (!plugin) - setIOPlugin(NULL); - - if (registerFunc) - registerFunc(); - - if ( !plugin || !database ) { - return DAE_ERR_BACKEND_IO; - } - - plugin->setDatabase(database); - - if(documentIndex >= database->getDocumentCount()) - return DAE_ERR_COLLECTION_DOES_NOT_EXIST; - - daeDocument *document = database->getDocument(documentIndex); - - daeURI tempURI(name); - return plugin->write(&tempURI, document, replace); -} -daeInt DAE::unload(daeString name) -{ - daeDocument *col = database->getDocument( name ); - if ( col == NULL ) return DAE_ERR_COLLECTION_DOES_NOT_EXIST; - return database->removeDocument( col ); -} - -daeInt DAE::clear() -{ - daeElement::clearResolveArray(); - if (database) - database->clear(); - return DAE_OK; -} - -// Load/Save Progress -void DAE::getProgress(daeInt* bytesParsed,daeInt* lineNumber,daeInt* totalBytes,daeBool reset) -{ - if (!database || !plugin) - { - if (bytesParsed) - *bytesParsed=0; - if (bytesParsed) - *lineNumber=0; - if (totalBytes) - *totalBytes=0; - } - else - plugin->getProgress(bytesParsed,lineNumber,totalBytes,reset); -} - -// Simple Query -domCOLLADA* DAE::getDom(daeString name) -{ - if (!database) - return NULL; - - // Find the document by name - daeDocument *document = database->getDocument(name); - if(document) - { - // Return the root domCOLLADA element - return (domCOLLADA*)(daeElement*)document->getDomRoot(); - } - else - { - return(NULL); - } -} - -daeInt DAE::setDom(daeString name, domCOLLADA* dom) -{ - if (!database) - setDatabase(NULL); - - // Find the document by name - - daeDocument *document = database->getDocument(name); - - if(document) - { - //replace a DOM on an existing document by the one provided. - // Note that the casts are needed because we don't want to include the full definition of domCOLLADA - document->setDomRoot((daeElement*)dom); - return DAE_OK; - } - else - { - // Document doesn't exist, make a new one - return database->insertDocument(name,(daeElement*)dom); - } -} -daeString DAE::getDomVersion() -{ - return(COLLADA_VERSION); -} diff --git a/Extras/COLLADA_DOM/src/dae/daeArray.cpp b/Extras/COLLADA_DOM/src/dae/daeArray.cpp deleted file mode 100644 index 13945d909..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeArray.cpp +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include - -daeArray::daeArray():_count(0),_capacity(0),_data(NULL),_elementSize(4),_type(NULL) -{ -} - -daeArray::~daeArray() -{ - clear(); -} - -void -daeArray::clear() -{ - if (_data) - { - daeMemorySystem::free("array",_data); - _capacity = 0; - _data = NULL; - _count = 0; - } -} - -daeInt -daeArray::removeIndex(size_t index) -{ - if ((index >= _count)||(_count < 1)||(_data == NULL)) - return(DAE_ERR_INVALID_CALL); - if (_count-1-index) - memmove(_data+index*_elementSize, _data+(index+1)*_elementSize, _elementSize*(_count-1-index)); - memset(_data+(_count-1)*_elementSize,0,_elementSize); - _count--; - return(DAE_OK); -} - -void -daeArray::grow(size_t sz) -{ - - if (sz < _capacity) - return; - - size_t newSize = 4*_elementSize; - size_t neccesarySize = (sz+1)*_elementSize; - - while(newSize < neccesarySize) { - if (newSize < 16384) - newSize *= 2; - else - newSize += 16384; - } - - size_t newCapacity = newSize/_elementSize; - daeChar* newData = - (daeChar*)daeMemorySystem::malloc("array", newCapacity*_elementSize); - - if (_data != NULL) - memcpy(newData,_data,_capacity*_elementSize); - //else - // memset(newData,0,_capacity*_elementSize); - - memset(newData+_capacity*_elementSize,0, - (newCapacity-_capacity)*_elementSize); - - if (_data != NULL) - daeMemorySystem::free("array",_data); - - _data = newData; - _capacity = newCapacity; -} - diff --git a/Extras/COLLADA_DOM/src/dae/daeAtomicType.cpp b/Extras/COLLADA_DOM/src/dae/daeAtomicType.cpp deleted file mode 100644 index f2f4c5c51..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeAtomicType.cpp +++ /dev/null @@ -1,779 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include - -daeAtomicTypeArray* daeAtomicType::_Types = NULL; -daeBool daeAtomicType::_TypesInitialized = false; - -void -daeAtomicType::initializeKnownTypes() -{ - _Types = new daeAtomicTypeArray; - initializeKnownBaseTypes(); - //mandatory to set here, because the array types are querying the atomic types - _TypesInitialized = true; -} - -void -daeAtomicType::uninitializeKnownTypes() -{ - if ( _TypesInitialized ) - { - _TypesInitialized = false; - unsigned int i; - for (i=0;i<_Types->getCount();i++) - { - daeAtomicType* type = _Types->get(i); - delete type; - } - delete _Types; - } -} - -void -daeAtomicType::initializeKnownBaseTypes() -{ - _Types->append(new daeUIntType); - _Types->append(new daeIntType); - _Types->append(new daeLongType); - _Types->append(new daeShortType); - _Types->append(new daeUIntType); - _Types->append(new daeULongType); - _Types->append(new daeFloatType); - _Types->append(new daeDoubleType); - _Types->append(new daeStringRefType); - _Types->append(new daeElementRefType); - _Types->append(new daeEnumType); - _Types->append(new daeRawRefType); - _Types->append(new daeResolverType); - _Types->append(new daeIDResolverType); - _Types->append(new daeBoolType); - _Types->append(new daeTokenType); -} - -daeAtomicType* -daeAtomicType::get(daeStringRef typeString) -{ - if (!_TypesInitialized) - daeAtomicType::initializeKnownTypes(); - - int tCount = (int)_Types->getCount(); - int i; - for(i=0; iget(i); - daeStringRefArray& nameBindings = type->getNameBindings(); - int count = (int)nameBindings.getCount(); - int j; - for(j=0;jgetCount(); - int i; - for(i=0; iget(i); - if (type->getTypeEnum() == typeEnum) - return type; - } - return NULL; -} - -daeBool -daeAtomicType::stringToMemory(daeChar *src, daeChar* dstMemory) -{ - sscanf(src, _scanFormat, dstMemory); - return true; -} - -daeBool -daeAtomicType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - // just to remove the warnings - (void)src; - - if (dstSize > 32) - sprintf(dst,"unknown type string conversion\n"); - return true; -} - -daeInt -daeAtomicType::append(daeAtomicType* t) { - if (!_TypesInitialized) - daeAtomicType::initializeKnownTypes(); - return (daeInt)_Types->append(t); -} - -const daeAtomicType* -daeAtomicType::getByIndex(daeInt index) { - return _Types->get(index); -} - -daeInt -daeAtomicType::getCount() { - return (daeInt)_Types->getCount(); -} - -daeEnumType::daeEnumType() -{ - _size = sizeof(daeEnum); - _alignment = sizeof(daeEnum); - _typeEnum = EnumType; - _nameBindings.append("enum"); - _printFormat = "%s";//"%%.%ds"; - _scanFormat = "%s"; - _strings = NULL; - _values = NULL; - _typeString = "enum"; -} - -daeEnumType::~daeEnumType() { - if ( _strings ) { - delete _strings; - _strings = NULL; - } - if ( _values ) { - delete _values; - _values = NULL; - } -} - -daeBoolType::daeBoolType() -{ - _size = sizeof(daeBool); - _alignment = sizeof(daeBool); - _typeEnum = BoolType; - _printFormat = "%d"; - _scanFormat = "%d"; - _typeString = "bool"; - _maxStringLength = (daeInt)strlen("false")+1; - _nameBindings.append("bool"); - //_nameBindings.append("xsBool"); - _nameBindings.append("xsBoolean"); -} - -daeIntType::daeIntType() -{ - _size = sizeof(daeInt); - _alignment = sizeof(daeInt); - _typeEnum = IntType; - _maxStringLength = 16; - _nameBindings.append("int"); - _nameBindings.append("xsInteger"); - _nameBindings.append("xsHexBinary"); - _nameBindings.append("xsIntegerArray"); - _nameBindings.append("xsHexBinaryArray"); - _nameBindings.append("xsByte"); - _nameBindings.append("xsInt"); - _printFormat = "%d"; - _scanFormat = "%d"; - _typeString = "int"; -} -daeLongType::daeLongType() -{ - _size = sizeof(daeLong); - _alignment = sizeof(daeLong); - _typeEnum = LongType; - _maxStringLength = 32; - _nameBindings.append("xsLong"); - _nameBindings.append("xsLongArray"); - _printFormat = "%lld"; - _scanFormat = "%lld"; - _typeString = "long"; -} -daeShortType::daeShortType() -{ - _maxStringLength = 8; - _size = sizeof(daeShort); - _alignment = sizeof(daeShort); - _typeEnum = ShortType; - _nameBindings.append("short"); - _nameBindings.append("xsShort"); - _printFormat = "%hd"; - _scanFormat = "%hd"; - _typeString = "short"; -} -daeUIntType::daeUIntType() -{ - _maxStringLength = 16; - _size = sizeof(daeUInt); - _alignment = sizeof(daeUInt); - _typeEnum = UIntType; - _nameBindings.append("uint"); - _nameBindings.append("xsNonNegativeInteger"); - _nameBindings.append("xsUnsignedByte"); - _nameBindings.append("xsUnsignedInt"); - _nameBindings.append("xsPositiveInteger"); - _printFormat = "%u"; - _scanFormat = "%u"; - _typeString = "uint"; -} -daeULongType::daeULongType() -{ - _size = sizeof(daeULong); - _alignment = sizeof(daeULong); - _typeEnum = ULongType; - _maxStringLength = 32; - _nameBindings.append("ulong"); - _nameBindings.append("xsUnsignedLong"); - _printFormat = "%llu"; - _scanFormat = "%llu"; - _typeString = "ulong"; -} -daeFloatType::daeFloatType() -{ - _maxStringLength = 64; - _size = sizeof(daeFloat); - _alignment = sizeof(daeFloat); - _typeEnum = FloatType; - _nameBindings.append("float"); - _nameBindings.append("xsFloat"); - _printFormat = "%g"; - _scanFormat = "%g"; - _typeString = "float"; -} -daeDoubleType::daeDoubleType() -{ - _size = sizeof(daeDouble); - _alignment = sizeof(daeDouble); - _typeEnum = DoubleType; - _nameBindings.append("double"); - _nameBindings.append("xsDouble"); - _nameBindings.append("xsDecimal"); - _printFormat = "%lg"; - _scanFormat = "%lg"; - _typeString = "double"; - _maxStringLength = 64; -} - -daeStringRefType::daeStringRefType() -{ - _size = sizeof(daeStringRef); - _alignment = sizeof(daeStringRef); - _typeEnum = StringRefType; - _nameBindings.append("string"); - _nameBindings.append("xsString"); - _nameBindings.append("xsDateTime"); - _printFormat = "%s"; - _scanFormat = "%s"; - _typeString = "string"; -} - -daeTokenType::daeTokenType() -{ - _size = sizeof(daeStringRef); - _alignment = sizeof(daeStringRef); - _typeEnum = TokenType; - _nameBindings.append("token"); - _nameBindings.append("xsID"); - _nameBindings.append("xsNCName"); - _nameBindings.append("xsNMTOKEN"); - _nameBindings.append("xsName"); - _nameBindings.append("xsToken"); - _nameBindings.append("xsNameArray"); - _nameBindings.append("xsTokenArray"); - _nameBindings.append("xsNCNameArray"); - _printFormat = "%s"; - _scanFormat = "%s"; - _typeString = "token"; -} - -daeElementRefType::daeElementRefType() -{ - _size = sizeof(daeElementRef); - _alignment = sizeof(daeElementRef); - _typeEnum = ElementRefType; - _nameBindings.append("element"); - _nameBindings.append("Element"); - _nameBindings.append("TrackedElement"); - _printFormat = "%p"; - _scanFormat = "%p"; - _typeString = "element"; - _maxStringLength = 64; -} - -daeRawRefType::daeRawRefType() -{ - _size = sizeof(daeRawRef); - _alignment = sizeof(daeRawRef); - _typeEnum = RawRefType; - _nameBindings.append("raw"); - _printFormat = "%p"; - _scanFormat = "%p"; - _typeString = "raw"; - _maxStringLength = 64; -} - -daeResolverType::daeResolverType() -{ - _size = sizeof(daeURI); - _alignment = sizeof(daeURI); - _typeEnum = ResolverType; - _nameBindings.append("resolver"); - _nameBindings.append("xsAnyURI"); - _printFormat = "%s"; - _scanFormat = "%s"; - _typeString = "resolver"; -} -daeIDResolverType::daeIDResolverType() -{ - _size = sizeof(daeIDRef); - _alignment = sizeof(daeIDRef); - _typeEnum = IDResolverType; - _nameBindings.append("xsIDREF"); - _nameBindings.append("xsIDREFS"); - _printFormat = "%s"; - _scanFormat = "%s"; - _typeString = "idref_resolver"; -} -daeBool - daeIntType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - if (_maxStringLength > dstSize) return false; - sprintf(dst,_printFormat,*((daeInt*)src)); - return true; -} -daeBool - daeLongType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - if (_maxStringLength > dstSize) return false; - sprintf(dst,_printFormat,*((daeLong*)src)); - return true; -} -daeBool - daeShortType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - if (_maxStringLength > dstSize) return false; - sprintf(dst,_printFormat,*((daeShort*)src)); - return true; -} -daeBool - daeUIntType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - if (_maxStringLength > dstSize) return false; - sprintf(dst,_printFormat,*((daeUInt*)src)); - return true; -} -daeBool - daeULongType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - if (_maxStringLength > dstSize) return false; - sprintf(dst,_printFormat,*((daeULong*)src)); - return true; -} -daeBool - daeFloatType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - if (_maxStringLength > dstSize) return false; - if ( *(daeFloat*)src != *(daeFloat*)src ) //NAN - { - strcpy( dst, "NaN" ); - } - else if ( *(daeUInt*)src == 0x7f800000 ) //+INF - { - strcpy( dst, "INF" ); - } - else if ( *(daeUInt*)src == 0xff800000 ) //-INF - { - strcpy( dst, "-INF" ); - } - else - { - sprintf(dst,_printFormat,*((daeFloat*)src)); - } - return true; -} - -daeBool -daeFloatType::stringToMemory(daeChar *src, daeChar* dstMemory) -{ - if ( strcmp(src, "NaN") == 0 ) { - daeErrorHandler::get()->handleWarning("NaN encountered while setting an attribute or value\n"); - *(daeInt*)(dstMemory) = 0x7f800002; - } - else if ( strcmp(src, "INF") == 0 ) { - daeErrorHandler::get()->handleWarning( "INF encountered while setting an attribute or value\n" ); - *(daeInt*)(dstMemory) = 0x7f800000; - } - else if ( strcmp(src, "-INF") == 0 ) { - daeErrorHandler::get()->handleWarning( "-INF encountered while setting an attribute or value\n" ); - *(daeInt*)(dstMemory) = 0xff800000; - } - else - { - sscanf(src, _scanFormat, dstMemory); - } - return true; -} - -daeBool - daeDoubleType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - if (_maxStringLength > dstSize) return false; - if ( *(daeDouble*)src != *(daeDouble*)src ) //NAN - { - strcpy( dst, "NaN" ); - } -#if !(defined (_MSC_VER) && _MSC_VER < 1300) - //this breaks visual studio 2006, so ignore NaN/INF rather then break the build - else if ( *(daeULong*)src == 0x7ff0000000000000LL ) //+INF - { - strcpy( dst, "INF" ); - } - else if ( *(daeULong*)src == 0xfff0000000000000LL ) //-INF - { - strcpy( dst, "-INF" ); - } -#endif - else - { - sprintf(dst,_printFormat,*((daeDouble*)src)); - } - return true; -} - -daeBool -daeDoubleType::stringToMemory(daeChar *src, daeChar* dstMemory) -{ -#if !(defined (_MSC_VER) && _MSC_VER < 1300) - //this breaks visual studio 2006, so ignore NaN/INF rather then break the build - if ( strcmp(src, "NaN") == 0 ) { - daeErrorHandler::get()->handleWarning( "NaN encountered while setting an attribute or value\n" ); - *(daeLong*)(dstMemory) = 0x7ff0000000000002LL; - } - else if ( strcmp(src, "INF") == 0 ) { - daeErrorHandler::get()->handleWarning( "INF encountered while setting an attribute or value\n" ); - *(daeLong*)(dstMemory) = 0x7ff0000000000000LL; - } - else if ( strcmp(src, "-INF") == 0 ) { - daeErrorHandler::get()->handleWarning( "-INF encountered while setting an attribute or value\n" ); - *(daeLong*)(dstMemory) = 0xfff0000000000000LL; - } - else -#endif - { - sscanf(src, _scanFormat, dstMemory); - } - return true; -} - -daeBool - daeRawRefType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - if (_maxStringLength > dstSize) return false; - sprintf(dst,"%p",(void *)(*((daeRawRef*)src))); - return true; -} - -daeBool -daeStringRefType::getUsesStrings() -{ - return true; -} -daeBool -daeTokenType::getUsesStrings() -{ - return false; -} -daeBool -daeStringRefType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - daeString s = *((daeStringRef *)src); - if (!s || strlen(s) == 0) - dst[0] = '\0'; - else { - char tmp[64]; - sprintf(tmp,"%%.%ds",dstSize-1); - sprintf(dst,tmp,(const char*)s); - - if ((daeInt)(strlen(s)+1) > dstSize) - return false; - } - return true; -} - -daeBool -daeResolverType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ -#if 1 - // Get the URI we are trying to write - daeURI *thisURI = ((daeURI *)src); - daeString s; - - // !!!GAC We may want to re-resolve the URI before writing, if so call thisURI->resolveURI() here - // !!!GAC if you're willing to trust that everything is properly resolved, this isn't needed - - // Was this URI successfully resolved ? (if element or collection is null, we can't write the URI correctly) - if(thisURI->getState() != daeURI::uri_success || !(thisURI->getElement()) || !(thisURI->getContainer())) - { - // This URI was never successfully resolved, so write out it's original value - s = thisURI->getOriginalURI(); - if ( s == NULL ) s = ""; - } - else - { - // This URI was successfully resolved, we need to determine if it is referencing this document (the one being written) - // or some other document so we know what URI to write out. - // !!!GAC this approach should be safe, if the collection pointer of our document matches the collection pointer - // !!!GAC of the element our URI is pointing at, we are pointing at our own doc. - if(thisURI->getElement()->getDocument() == thisURI->getContainer()->getDocument()) - { - // we will send back the original URI if we're pointing at ourselves - s = thisURI->getOriginalURI(); - if ( s == NULL ) s = ""; - } - else - { - // !!!GAC change this to test outputting of relative URIs, NOT FULLY TESTED!!! -#if 1 - // we will send back the full resolved URI - s = thisURI->getURI(); - if ( s == NULL ) s = ""; -#else - // Makes the URI relative to the document being written, EXPERIMENTAL, not fully tested!!! - thisURI->makeRelativeTo(thisURI->getDocument()->getCollection()->getDocumentURI()); - s = thisURI->getOriginalURI(); - if ( s == NULL ) s = ""; -#endif - } - } - // Copy at most dstSize-1 characters, null terminate and return error if the string was too long - daeChar *d; - int i; - for(d = dst, i = 1; *s != 0 && iresolveURI(); - - // Get the URI String as set, not the composited one from the base - // as per SCEA request - daeString s = ((daeURI *)src)->getOriginalURI(); - char tmp[64]; - sprintf(tmp,"%%.%ds",dstSize-1); - sprintf(dst,tmp,s); - - if ((daeInt)(strlen(s)+1) > dstSize) - return false; - return true; -#endif -} -daeBool -daeIDResolverType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - ((daeIDRef*)src)->resolveID(); - - daeString s = ((daeIDRef *)src)->getID(); - char tmp[64]; - sprintf(tmp,"%%.%ds",dstSize-1); - sprintf(dst,tmp,s); - - if ((daeInt)(strlen(s)+1) > dstSize) - return false; - return true; -} - -void -daeAtomicType::resolve(daeElementRef element, daeChar* src) -{ - // just to remove the warnings - (void)element; - (void)src; -} - -void -daeResolverType::resolve(daeElementRef element, daeChar* src) -{ - daeURI* resolver = (daeURI*)src; - resolver->setContainer(element); - resolver->resolveElement(); -} - -daeBool -daeResolverType::stringToMemory(daeChar* src, daeChar* dstMemory) -{ -#define MAX_PATH 1024 - daeChar tempstr[MAX_PATH]; - memset(tempstr,0,MAX_PATH); - daeChar* s; - daeChar* t; - for(s=src, t=tempstr; *s!=0; s++,t++) - { - if (*s == '%') { - if ((*(s+1) == '2') && (*(s+2) == '0')) - { - (*t)=' '; - s+=2; - continue; - } - } else if (*s == ' ') { - char err[512]; - memset( err, 0, 512 ); - sprintf(err,"uri contains white space, dom will convert them to %%20 in output files!\n uri=%s", src); - daeErrorHandler::get()->handleWarning( err ); - } - *t=*s; - } - ((daeURI*)dstMemory)->setURI(tempstr); - return true; -} -void -daeIDResolverType::resolve(daeElementRef element, daeChar* src) -{ - daeIDRef* resolver = (daeIDRef*)src; - resolver->setContainer( element ); - resolver->resolveElement(); -} - -daeBool -daeIDResolverType::stringToMemory(daeChar* src, daeChar* dstMemory) -{ - ((daeIDRef*)dstMemory)->setID(src); - return true; -} - -daeBool -daeStringRefType::stringToMemory(daeChar* srcChars, daeChar* dstMemory) -{ - *((daeStringRef*)dstMemory) = srcChars; - return true; -} - -daeBool -daeEnumType::stringToMemory(daeChar* src, daeChar* dst ) -{ - size_t index(0); - if ( _strings->find(src,index) == DAE_ERR_QUERY_NO_MATCH ) return false; - daeEnum val = _values->get( index ); - *((daeEnum*)dst) = val; - - return true; -} - -daeBool -daeEnumType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - daeStringRef s = "unknown"; - if (_strings != NULL) { - size_t index; - if (_values->find(*((daeEnum*)src), index) == DAE_OK) - s = _strings->get(index); - } - sprintf(dst,_printFormat,(const char*)s); - (void)dstSize; - return true; -} -daeBool -daeBoolType::stringToMemory(daeChar* srcChars, daeChar* dstMemory) -{ - if (strncmp(srcChars,"true",4)==0 || strncmp(srcChars,"1",1)==0) - *((daeBool*)dstMemory) = true; - else - *((daeBool*)dstMemory) = false; - return true; -} - -daeBool -daeBoolType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - if (*((daeBool*)src)) { - if (dstSize < 5) - return false; - else - sprintf(dst,"true"); - } - else { - if (dstSize < 6) - return false; - else - sprintf(dst,"false"); - } - return true; -} -//!!!ACL added for 1.4 complex types and groups - -//unImplemented -daeBool -daeElementRefType::memoryToString(daeChar* src, daeChar* dst, daeInt dstSize) -{ - /*if (*((daeBool*)src)) { - if (dstSize < 5) - return false; - else - sprintf(dst,"true"); - } - else { - if (dstSize < 6) - return false; - else - sprintf(dst,"false"); - }*/ - (void)src; - (void)dst; - (void)dstSize; - return false; -} - diff --git a/Extras/COLLADA_DOM/src/dae/daeDocument.cpp b/Extras/COLLADA_DOM/src/dae/daeDocument.cpp deleted file mode 100644 index be42a39e0..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeDocument.cpp +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include - -// sthomas -daeDocument::~daeDocument() -{ - for( unsigned int i = 0; i < externalURIs.getCount(); i++ ) { - delete externalURIs[i]; - } -} - -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; - } - size_t idx; - daeURI tempURI( uri.getURI(), true ); - daeStringRef docURI( tempURI.getURI() ); - if ( referencedDocuments.find( docURI, idx ) == DAE_OK ) { - externalURIs[idx]->appendUnique( &uri ); - } - else { - referencedDocuments.append( docURI ); - idx = externalURIs.append( new daeTArray ); - externalURIs[idx]->append( &uri ); - } -} - -void daeDocument::removeExternalReference( daeURI &uri ) { - for( unsigned int i = 0; i < externalURIs.getCount(); i++ ) { - for ( unsigned int j = 0; j < externalURIs[i]->getCount(); j++ ) { - daeURI *tempURI = externalURIs[i]->get(j); - if ( tempURI == &uri ) { - //found the uri. now remove it - externalURIs[i]->removeIndex(j); - if ( externalURIs[i]->getCount() == 0 ) { - externalURIs.removeIndex(i); - referencedDocuments.removeIndex(i); - } - return; - } - } - } -} - -void daeDocument::resolveExternals( daeString docURI ) { - 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); - tempURI->resolveElement(); - } - return; - } -} - -const daeTArray *daeDocument::getExternalURIs(daeStringRef docURI) const -{ - size_t idx; - - if (referencedDocuments.find(docURI, idx) != DAE_OK) - return NULL; - - return externalURIs[idx]; -} diff --git a/Extras/COLLADA_DOM/src/dae/daeDom.cpp b/Extras/COLLADA_DOM/src/dae/daeDom.cpp deleted file mode 100644 index 34044e446..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeDom.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ -#include - -#include - -#include - -daeMetaElement* initializeDomMeta() -{ - registerDomTypes(); - - return registerDomElements(); -} diff --git a/Extras/COLLADA_DOM/src/dae/daeElement.cpp b/Extras/COLLADA_DOM/src/dae/daeElement.cpp deleted file mode 100644 index da9307d8f..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeElement.cpp +++ /dev/null @@ -1,554 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include - -#include -#include - -void -daeElement::release() const -{ - if (--_refCount <= 0) - delete this; -} -daeElementRef DAECreateElement(int nbytes) -{ - return new(nbytes) daeElement; -} - -//Contributed by Nus - Wed, 08 Nov 2006 -// static daeElementRefArray resolveArray; -static daeElementRefArray* pResolveArray = NULL; -//static char StaticIndentBuf[] = ""; - -extern "C" void initializeResolveArray(void) -{ - if(!pResolveArray) { - pResolveArray = new daeElementRefArray; - } -} - -extern "C" void terminateResolveArray(void) -{ - if(pResolveArray) { - delete pResolveArray; - pResolveArray = NULL; - } -} -//---------------------------------- - -// sthomas (see https://collada.org/public_forum/viewtopic.php?t=325&) -void daeElement::releaseElements() -{ - // resolveArray.clear(); - pResolveArray->clear(); -} - -daeIntegrationObject* -daeElement::getIntObject( IntegrationState from_state, IntegrationState to_state ) -{ - if ( !_intObject ) { - return NULL; - } - if ( from_state >= int_created ) { - if ( _intObject->_from_state < int_created ) { - daeErrorHandler::get()->handleWarning("Warning: getIntObject tries to get object that is not created (from)"); - return NULL; - } - if ( from_state >= int_converted ) { - _intObject->fromCOLLADAChecked(); - if ( from_state == int_finished ) { - _intObject->fromCOLLADAPostProcessChecked(); - } - } - } - if ( to_state >= int_created ) { - if ( _intObject->_to_state < int_created ) { - daeErrorHandler::get()->handleWarning("Warning: getIntObject tries to get object that is not created (to)"); - return NULL; - } - if ( to_state >= int_converted ) { - _intObject->toCOLLADAChecked(); - if ( to_state == int_finished ) { - _intObject->toCOLLADAPostProcessChecked(); - } - } - } - return _intObject; -} - -daeElementRef -daeElement::createElement(daeString className) -{ - daeElementRef elem = _meta->create(className); - // Bug #225 work around -// if ( elem != NULL) -// elem->ref(); // change premature delete into memory leak. - return elem; -} - -daeElement* -daeElement::createAndPlace(daeString className) -{ - daeElementRef elem = _meta->create(className); - daeBool place = false; - if (elem != NULL) - place = placeElement(elem); - if (place) - return elem; - return NULL; -} - -daeElement* -daeElement::createAndPlaceAt(daeInt index, daeString className) -{ - daeElementRef elem = _meta->create(className); - daeBool place = false; - if (elem != NULL) - place = placeElementAt(index, elem); - if (place) - return elem; - return NULL; -} - -daeBool -daeElement::placeElement(daeElement* e) -{ - if (e == NULL || e == this) - return false; - return _meta->place( this, e ); -} - -daeBool daeElement::placeElementAt(daeInt index, daeElement* e) { - if (e == NULL || e == this) - return false; - return _meta->placeAt( index, this, e ); -} - -daeBool daeElement::placeElementBefore( daeElement *marker, daeElement *element ) { - if (marker == NULL || element == NULL || marker->getXMLParentElement() != this ) { - return false; - } - //if ( _meta->getContents() != NULL ) { - // size_t idx; - // daeElementRefArray* contents = - // (daeElementRefArray*)_meta->getContents()->getWritableMemory(this); - // if ( contents->find( marker, idx ) != DAE_OK ) { - // return false; - // } - // return placeElementAt( (daeInt)idx, element ); - //} - //if ( strcmp( marker->getTypeName(), element->getTypeName() ) == 0 ) { - // //same type - // daeMetaElementAttribute *mea = _meta->getChildMetaElementAttribute( element->getTypeName() ); - // daeElementRefArray* era = (daeElementRefArray*)mea->getWritableMemory(this); - // size_t idx; - // if ( era->find( marker, idx ) != DAE_OK ) { - // return false; - // } - // era->insertAt( idx, element ); - // return true; - //} - //return placeElement( element ); - return _meta->placeBefore( marker, this, element ); -} - -daeBool daeElement::placeElementAfter( daeElement *marker, daeElement *element ) { - if (marker == NULL || element == NULL || marker->getXMLParentElement() != this ) { - return false; - } - /*if ( _meta->getContents() != NULL ) { - size_t idx; - daeElementRefArray* contents = - (daeElementRefArray*)_meta->getContents()->getWritableMemory(this); - if ( contents->find( marker, idx ) != DAE_OK ) { - return false; - } - return placeElementAt( (daeInt)idx+1, element ); - } - if ( strcmp( marker->getTypeName(), element->getTypeName() ) == 0 ) { - daeMetaElementAttribute *mea = _meta->getChildMetaElementAttribute( element->getTypeName() ); - daeElementRefArray* era = (daeElementRefArray*)mea->getWritableMemory(this); - size_t idx; - if ( era->find( marker, idx ) != DAE_OK ) { - return false; - } - era->insertAt( idx+1, element ); - return true; - }*/ - return _meta->placeAfter( marker, this, element ); -} - -daeInt daeElement::findLastIndexOf( daeString elementName ) { - if ( _meta->getContents() != NULL ) { - daeElementRefArray* contents = - (daeElementRefArray*)_meta->getContents()->getWritableMemory(this); - for ( int i = (int)contents->getCount()-1; i >= 0; --i ) { - daeString nm = contents->get(i)->getElementName(); - if ( nm == NULL ) { - nm = contents->get(i)->getTypeName(); - } - if ( strcmp( nm, elementName ) == 0 ) { - return i; - } - } - } - return -1; -} - -daeBool -daeElement::removeChildElement(daeElement* element) -{ - // error traps - if(element==NULL) - return false; - if(element->_parent != this) - return false; - - // Clear the element's parent pointer, if the element has references outside - // 'this' it won't go away, so we want to make sure it's parent is valid - if ( _meta->remove( this, element ) ) { - element->_parent = NULL; - return true; - } - return false; -} - -// !!!ACL Added to fix mantis issue 0000416 -void daeElement::setDocument( daeDocument *c ) { - if( _document == c ) { - return; - } - if (_document != NULL ) - { - _document->removeElement(this); - } - _document = c; - if ( _document != NULL ) - { - _document->insertElement(this); - } - - daeElementRefArray ea; - getChildren( ea ); - for ( size_t x = 0; x < ea.getCount(); x++ ) { - ea[x]->setDocument( c ); - } -} - -daeBool -daeElement::setAttribute(daeString attrName, daeString attrValue) -{ - if (_meta == NULL) - return false; - - daeMetaAttributeRefArray& metaAttrs = _meta->getMetaAttributes(); - int n = (int)metaAttrs.getCount(); - int i; - for(i=0;igetName() != NULL) && - (strcmp(metaAttrs[i]->getName(),attrName)==0)) { -#if 0 //debug stuff - printf("%s(%s)->setAttr(%s,%s)\n", - (const char*)_meta->getName(), - metaAttrs[i]->getType()->getTypeString(), - attrName, - attrValue); -#endif - if (metaAttrs[i]->getType() != NULL) - { - metaAttrs[i]->set(this,attrValue); - _validAttributeArray.set(i, true); - } - return true; - } - } - return false; -} - -daeBool daeElement::isAttributeSet( daeString attrName ) { - if (_meta == NULL) - return false; - - daeMetaAttributeRefArray& metaAttrs = _meta->getMetaAttributes(); - int n = (int)metaAttrs.getCount(); - int i; - for(i=0;igetName() != NULL) && - (strcmp(metaAttrs[i]->getName(),attrName)==0)) { - - return _validAttributeArray[i]; - } - } - return false; -} - -daeBool daeElement::hasAttribute( daeString attrName ) { - if (_meta == NULL) - return false; - - daeMetaAttributeRefArray& metaAttrs = _meta->getMetaAttributes(); - int n = (int)metaAttrs.getCount(); - int i; - for(i=0;igetName() != NULL) && - (strcmp(metaAttrs[i]->getName(),attrName)==0)) { - - return true; - } - } - return false; -} - -daeMemoryRef daeElement::getAttributeValue( daeString attrName ) { - if (_meta == NULL) - return false; - - daeMetaAttributeRefArray& metaAttrs = _meta->getMetaAttributes(); - int n = (int)metaAttrs.getCount(); - int i; - for(i=0;igetName() != NULL) && - (strcmp(metaAttrs[i]->getName(),attrName)==0)) { - - return metaAttrs[i]->getWritableMemory(this); - } - } - return NULL; -} - -daeBool daeElement::hasValue() { - if (_meta == NULL) - return false; - - return (_meta->getValueAttribute() != NULL ); -} - -daeMemoryRef daeElement::getValuePointer() { - if (_meta == NULL) - return false; - - if ( _meta->getValueAttribute() != NULL ) - { - return _meta->getValueAttribute()->getWritableMemory(this); - } - return NULL; -} - -void -daeElement::appendResolveElement(daeElement* elem) -{ -//Contributed by Nus - Wed, 08 Nov 2006 - // resolveArray.append(elem); - pResolveArray->append(elem); -//---------------------- -} -void -daeElement::resolveAll() -{ - int cnt; -//Contributed by Nus - Wed, 08 Nov 2006 - // while(resolveArray.getCount()) { - while(pResolveArray->getCount()) { - // cnt = (int)resolveArray.getCount(); - cnt = (int)pResolveArray->getCount(); - // daeElementRef elem = resolveArray[cnt-1]; - daeElementRef elem = (*pResolveArray)[cnt-1]; - // resolveArray.removeIndex(cnt-1); - pResolveArray->removeIndex(cnt-1); -//-------------------------- - elem->resolve(); - } - /*size_t cnt = resolveArray.getCount(); - for ( size_t i =0; i < cnt; i++ ) { - resolveArray[i]->resolve(); - } - resolveArray.clear();*/ -} - -void -daeElement::clearResolveArray() -{ -//Contributed by Nus - Wed, 08 Nov 2006 - // resolveArray.clear(); - pResolveArray->clear(); -//------------------------ -} - -void -daeElement::resolve() -{ - if (_meta == NULL) - return; - - daeMetaAttributePtrArray& maa = _meta->getMetaResolvers(); - int n = (int)maa.getCount(); - int i; - for(i=0;iresolve(this); -} - -void -daeElement::setup(daeMetaElement* meta) -{ - if (_meta) - return; - _meta = meta; - if (meta->needsResolve()) - appendResolveElement((daeElement*)this); - daeMetaElement* intlibMeta = meta->getMetaIntegration(); - if (intlibMeta != NULL) - { - daeElementRef intObj = intlibMeta->create(); - intObj->ref(); //inc the ref count - _intObject = (daeIntegrationObject*)(daeElement*)intObj; - } - daeMetaAttributeRefArray& attrs = meta->getMetaAttributes(); - int macnt = (int)attrs.getCount(); - - _validAttributeArray.setCount( macnt ); - - int i; - for(i=0;igetDefault() != NULL) { - attrs[i]->set(this, attrs[i]->getDefault()); - _validAttributeArray[i] = true; - } -// else { -// _validAttributeArray[i] = false; -// } - } - -#if 0 - // Setup resolvers to know their containers and thus their file context - daeMetaAttributePtrArray& resolvers = meta->getMetaResolvers(); - int racnt = resolvers.getCount(); - for(i=0;igetWritableMemory(this)))->_container = - this; -#endif -} - -daeElement::daeElement(): - _refCount(0), - _intObject(0), - _parent(NULL), - _document(NULL), - _meta(NULL), - _elementName(NULL) -{} - -daeElement::~daeElement() -{ - if (_intObject) - _intObject->release(); - - if (_elementName) { - delete[] (void*) _elementName; - _elementName = NULL; - } -} - -//function used until we clarify what's a type and what's a name for an element -daeString daeElement::getTypeName() const -{ - return _meta->getName(); -} -daeString daeElement::getElementName() const -{ - return _elementName; -} -void daeElement::setElementName( daeString nm ) { - if ( nm == NULL ) { - if ( _elementName ) delete[] (void*)_elementName; - _elementName = NULL; - return; - } - if ( !_elementName ) _elementName = new daeChar[128]; - strcpy( (char*)_elementName, nm ); -} - -daeString daeElement::getID() const -{ - if ((_meta == NULL) || (!_meta->getIDAttribute())) - return NULL; - else - return *(daeStringRef*)_meta->getIDAttribute()->getWritableMemory(const_cast(this)); -} - -void daeElement::getChildren( daeElementRefArray &array ) { - _meta->getChildren( this, array ); -} - -daeSmartRef daeElement::clone(daeString idSuffix, daeString nameSuffix) { - //use the meta object system to create a new instance of this element - daeElementRef ret = _meta->create(); - ret->setElementName( getElementName() ); - //use meta system to copy attributes - daeMetaAttributeRefArray &attrs = _meta->getMetaAttributes(); - for ( unsigned int i = 0; i < attrs.getCount(); i++ ) { - //memcpy( attrs[i]->getWritableMemory( ret ), attrs[i]->getWritableMemory( this ), attrs[i]->getSize() ); - attrs[i]->copy( ret, this ); - ret->_validAttributeArray[i] = _validAttributeArray[i]; - } - if ( _meta->getValueAttribute() != NULL ) { - daeMetaAttribute *val = _meta->getValueAttribute(); - //memcpy( val->getWritableMemory( ret ), val->getWritableMemory( this ), val->getSize() ); - val->copy( ret, this ); - } - daeElementRefArray children; - _meta->getChildren( this, children ); - for ( size_t x = 0; x < children.getCount(); x++ ) { - ret->placeElement( children.get(x)->clone( idSuffix, nameSuffix ) ); - } - - //mangle the id - daeMetaAttribute *id = _meta->getIDAttribute(); - if ( idSuffix != NULL && id != NULL ) { - daeChar str[2048]; - id->getType()->memoryToString( id->getWritableMemory( ret ), str, 2048 ); - if ( strcmp( str, "" ) ) { - strcat( str, idSuffix ); - } - //id->getType()->stringToMemory( str, id->getWritableMemory( ret ) ); - id->set( ret, str ); - } - //mangle the name - daeMetaAttribute *nm = _meta->getMetaAttribute("name"); - if ( nameSuffix != NULL && nm != NULL ) { - daeChar str[2048]; - nm->getType()->memoryToString( nm->getWritableMemory( ret ), str, 2048 ); - if ( strcmp( str, "" ) ) { - strcat( str, nameSuffix ); - } - //nm->getType()->stringToMemory( str, nm->getWritableMemory( ret ) ); - nm->set( ret, str ); - } - //ret->_intObject = _intObject; - return ret; -} - -daeURI *daeElement::getDocumentURI() const { - if ( _document == NULL ) { - return NULL; - } - return _document->getDocumentURI(); -} diff --git a/Extras/COLLADA_DOM/src/dae/daeError.cpp b/Extras/COLLADA_DOM/src/dae/daeError.cpp deleted file mode 100644 index 124f89106..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeError.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include - -typedef struct -{ - int errCode; - const char *errString; -} DAEERROR; - -static DAEERROR errorsArray[] = -{ - { DAE_OK, "Success" }, - { DAE_ERR_INVALID_CALL, "Invalid function call" }, - { DAE_ERR_FATAL, "Fatal" }, - { DAE_ERR_BACKEND_IO, "Backend IO" }, - { DAE_ERR_BACKEND_VALIDATION, "Backend validation" }, - { DAE_ERR_QUERY_SYNTAX, "Query syntax" }, - { DAE_ERR_QUERY_NO_MATCH, "Query no match" }, - { DAE_ERR_COLLECTION_ALREADY_EXISTS, "A document with the same name exists already" }, - { DAE_ERR_COLLECTION_DOES_NOT_EXIST, "No document is loaded with that name or index" }, - { DAE_ERR_NOT_IMPLEMENTED, "This function is not implemented in this reference implementation" }, -}; - -const char *daeErrorString(int errorCode) -{ - int iErrorCount = (int)(sizeof(errorsArray)/sizeof(DAEERROR)); - for (int i=0;i -#include - -daeErrorHandler *daeErrorHandler::_instance = NULL; -daeBool daeErrorHandler::_default = false; - -daeErrorHandler::daeErrorHandler() { -} - -daeErrorHandler::~daeErrorHandler() { - if (_instance != NULL && _default ) { - delete _instance; - _instance = 0; - } -} - -void daeErrorHandler::setErrorHandler( daeErrorHandler *eh ) { - if ( _instance != NULL && _default ) { - delete _instance; - } - _instance = eh; -} - -daeErrorHandler *daeErrorHandler::get() { - if ( _instance == NULL ) { - _instance = new stdErrPlugin(); - _default = true; - } - return _instance; -} diff --git a/Extras/COLLADA_DOM/src/dae/daeIDRef.cpp b/Extras/COLLADA_DOM/src/dae/daeIDRef.cpp deleted file mode 100644 index c965f7e77..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeIDRef.cpp +++ /dev/null @@ -1,276 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include - -//Contributed by Nus - Wed, 08 Nov 2006 -daeIDRefResolverPtrArray* daeIDRefResolver::_KnownResolvers = NULL; -//---------------------------------- - -void -daeIDRef::initialize() -{ - id = NULL; - element = NULL; - container = NULL; -} - -daeIDRef::~daeIDRef() -{ - reset(); -} - -daeIDRef::daeIDRef() -{ - initialize(); - reset(); -} - -daeIDRef::daeIDRef(daeString IDRefString) -{ - initialize(); - setID(IDRefString); - validate(); -} - -daeIDRef::daeIDRef(daeIDRef& copyFrom) -{ - initialize(); - element = copyFrom.element; - setID(copyFrom.getID()); - state = copyFrom.state; - container = copyFrom.container; -} - -void -daeIDRef::copyFrom(daeIDRef& copyFrom) -{ - element = copyFrom.element; - setID(copyFrom.getID()); - state = copyFrom.state; - container = copyFrom.container; -} - -daeString emptyID = ""; - -void -daeIDRef::reset() -{ - if ((id != NULL) && (strcmp(id, emptyID) != 0)) - daeMemorySystem::free("idref",(void*)id); - - id = emptyID; -} - -daeString safeCreateID(daeString src) -{ - if (src == NULL) - return emptyID; - daeChar* ret = (daeChar*)daeMemorySystem::malloc("idref",strlen(src)+1); - if (ret == NULL) - return emptyID; - strcpy(ret,src); - - return ret; -} - -void -daeIDRef::setID(daeString _IDString) -{ - reset(); - - id = safeCreateID(_IDString); - - state = id_loaded; -} - -void -daeIDRef::print() -{ - fprintf(stderr,"id = %s\n",id); - fflush(stderr); -} - -daeString -daeIDRef::getID() const -{ - return id; -} - -void -daeIDRef::validate() -{ - state = id_pending; -} - -void -daeIDRef::resolveElement( daeString typeNameHint ) -{ - if (state == id_empty) - return; - - if (state == id_loaded) - validate(); - - daeIDRefResolver::attemptResolveElement(*((daeIDRef*)this), typeNameHint ); -} - -void -daeIDRef::resolveID() -{ - if (state == id_empty) { - if (element != NULL) - setID(element->getID()); - else - state = id_failed_invalid_reference; - } -} - -//Contributed by Nus - Wed, 08 Nov 2006 -void daeIDRefResolver::initializeIDRefSolver(void) -{ - if(!_KnownResolvers) { - _KnownResolvers = new daeIDRefResolverPtrArray(); - } -} - -void daeIDRefResolver::terminateIDRefSolver(void) -{ - if(_KnownResolvers) { - delete _KnownResolvers; - _KnownResolvers = NULL; - } -} -//------------------------------------- - -void -daeIDRefResolver::attemptResolveElement(daeIDRef& id, daeString typeNameHint) -{ - int i; -//Contributed by Nus - Wed, 08 Nov 2006 - // int cnt = (int)_KnownResolvers.getCount(); - int cnt = (int)_KnownResolvers->getCount(); -//------------------------------- - - for(i=0;iresolveElement(id, typeNameHint)) - if ((*_KnownResolvers)[i]->resolveElement(id, typeNameHint)) -//------------------------- - return; -} - -void -daeIDRefResolver::attemptResolveID(daeIDRef& id) -{ -//Contributed by Nus - Wed, 08 Nov 2006 - // int i,cnt = (int)_KnownResolvers.getCount(); - int i,cnt = (int)_KnownResolvers->getCount(); -//------------------------------- - -// daeBool foundProtocol = false; - for(i=0;iresolveID(id)) - if ((*_KnownResolvers)[i]->resolveID(id)) -//----------------------------- - return; - -#if defined(_DEBUG) && defined(WIN32) - char msg[128]; - sprintf(msg,"daeIDRefResolver::attemptResolveID(%s) - failed\n",id.getID()); - daeErrorHandler::get()->handleWarning( msg ); -#endif - -} - -daeIDRefResolver::daeIDRefResolver() -{ -//Contributed by Nus - Wed, 08 Nov 2006 - // _KnownResolvers.append((daeIDRefResolver*)this); - _KnownResolvers->append((daeIDRefResolver*)this); -//------------------------------ -} - -daeIDRefResolver::~daeIDRefResolver() -{ -//Contributed by Nus - Wed, 08 Nov 2006 - // _KnownResolvers.remove((daeIDRefResolver*)this); - _KnownResolvers->remove((daeIDRefResolver*)this); -//----------------------------------------- -} - - - -daeDefaultIDRefResolver::daeDefaultIDRefResolver(daeDatabase* database) -{ - _database = database; -} - -daeDefaultIDRefResolver::~daeDefaultIDRefResolver() -{ -} - -daeBool -daeDefaultIDRefResolver::resolveID(daeIDRef& id) -{ - (void)id; - return false; -} - -daeString -daeDefaultIDRefResolver::getName() -{ - return "DefaultIDRefResolver"; -} - -daeBool -daeDefaultIDRefResolver::resolveElement(daeIDRef& idref, daeString typeNameHint) -{ - if (idref.getState() == daeIDRef::id_loaded) - idref.validate(); - - daeElement* resolved = NULL; - int status; - - daeString id = idref.getID(); - - if ( idref.getContainer() == NULL ) - { - char msg[128]; - sprintf(msg,"daeDefaultIDRefResolver::resolveElement() - failed to resolve %s%s\n",idref.getID(), ". IDRef needs a container element!" ); - daeErrorHandler::get()->handleWarning( msg ); - return false; - } - - status = _database->getElement( &resolved, 0, id, typeNameHint, idref.getContainer()->getDocumentURI()->getURI() ); - - idref.setElement( resolved ); - - if (status||(resolved==NULL)) { - idref.setState( daeIDRef::id_failed_id_not_found ); - char msg[128]; - sprintf(msg,"daeDefaultIDRefResolver::resolveElement() - failed to resolve %s\n",idref.getID()); - daeErrorHandler::get()->handleWarning( msg ); - return false; - } - - idref.setState( daeIDRef::id_success ); - return true; -} - - - - diff --git a/Extras/COLLADA_DOM/src/dae/daeMemorySystem.cpp b/Extras/COLLADA_DOM/src/dae/daeMemorySystem.cpp deleted file mode 100644 index ec902a3ad..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeMemorySystem.cpp +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -//#include - -daeRawRef -daeMemorySystem::malloc(daeString pool, size_t n) -{ - (void)pool; - void *mem = ::malloc(n); -// memset(mem,0,n); -// printf("alloc[%s] - %d = 0x%x\n",pool,n,mem); - return (daeRawRef)mem; -} - -void -daeMemorySystem::free(daeString pool, daeRawRef mem) -{ - (void)pool; -// printf("free[%s] - 0x%x\n",pool,mem); - ::free(mem); -} - diff --git a/Extras/COLLADA_DOM/src/dae/daeMetaAny.cpp b/Extras/COLLADA_DOM/src/dae/daeMetaAny.cpp deleted file mode 100644 index af4c3e879..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeMetaAny.cpp +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include - -daeMetaAny::daeMetaAny( daeMetaElement *container, daeMetaCMPolicy *parent, daeUInt ordinal, - daeInt minO, daeInt maxO) : daeMetaCMPolicy( container, parent, ordinal, minO, maxO ) -{} - -daeMetaAny::~daeMetaAny() -{} - -daeElement *daeMetaAny::placeElement( daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset, daeElement* before, daeElement *after ) { - //remove element from praent - (void)offset; - (void)before; - (void)after; - daeElement::removeFromParent( child ); - child->setParentElement( parent ); - //************************************************************************* - ordinal = 0; - return child; -} - -daeBool daeMetaAny::removeElement( daeElement *parent, daeElement *child ) { - (void)parent; - (void)child; - return true; -} - -daeMetaElement * daeMetaAny::findChild( daeString elementName ) { - if ( elementName != NULL ) { - const daeMetaElementRefArray &metas = daeMetaElement::getAllMetas(); - size_t cnt = metas.getCount(); - for ( size_t x = 0; x < cnt; x++ ) { - if ( !metas[x]->getIsInnerClass() && strcmp( elementName, metas[x]->getName() ) == 0 ) { - return metas[x]; - } - } - } - return domAny::registerElement(); -} - -void daeMetaAny::getChildren( daeElement *parent, daeElementRefArray &array ) { - (void)parent; - (void)array; - //this is taken care of by the _contents in metaElement -} - diff --git a/Extras/COLLADA_DOM/src/dae/daeMetaAttribute.cpp b/Extras/COLLADA_DOM/src/dae/daeMetaAttribute.cpp deleted file mode 100644 index 0b48c4fb5..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeMetaAttribute.cpp +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include - -void -daeMetaAttribute::set(daeElement* e, daeString s) -{ - if( _type->getTypeEnum() == daeAtomicType::FloatType || _type->getTypeEnum() == daeAtomicType::DoubleType ) { - if ( strcmp(s, "NaN") == 0 ) { - char msg[256]; - sprintf(msg, "NaN encountered while setting %s attribute in %s element.\n", (daeString)_name, (daeString)_container->getName() ); - daeErrorHandler::get()->handleWarning(msg); - } - else if ( strcmp(s, "INF") == 0 ) { - //quick workaround for http://sourceforge.net/tracker/index.php?func=detail&aid=1530106&group_id=157838&atid=805424 - s = "999999.9"; - //char msg[256]; - //sprintf(msg, "INF encountered while setting %s attribute in %s element.\n", (daeString)_name, (daeString)_container->getName() ); - //daeErrorHandler::get()->handleWarning( msg ); - } - else if ( strcmp(s, "-INF") == 0 ) { - s = "-999999.9"; - //quick workaround for http://sourceforge.net/tracker/index.php?func=detail&aid=1530106&group_id=157838&atid=805424 - //char msg[256]; - //sprintf(msg, "-INF encountered while setting %s attribute in %s element.\n", (daeString)_name, (daeString)_container->getName() ); - //daeErrorHandler::get()->handleWarning( msg ); - } - } - _type->stringToMemory((char*)s, getWritableMemory(e)); -} - -void daeMetaAttribute::copy(daeElement* to, daeElement *from) { - daeChar str[4096]; - _type->memoryToString( getWritableMemory(from), str, 4096 ); - _type->stringToMemory( str, getWritableMemory( to ) ); - //memcpy( getWritableMemory( to ), getWritableMemory( from ), getSize() ); -} - -void -daeMetaArrayAttribute::set(daeElement* e, daeString s) -{ - if( _type->getTypeEnum() == daeAtomicType::FloatType || _type->getTypeEnum() == daeAtomicType::DoubleType ) { - if ( strcmp(s, "NaN") == 0 ) { - char msg[256]; - sprintf(msg, "NaN encountered while setting %s attribute in %s element.\n", (daeString)_name, (daeString)_container->getName() ); - daeErrorHandler::get()->handleWarning(msg); - } - else if ( strcmp(s, "INF") == 0 ) { - s = "999999.9"; - //quick workaround for http://sourceforge.net/tracker/index.php?func=detail&aid=1530106&group_id=157838&atid=805424 - //char msg[256]; - //sprintf(msg, "INF encountered while setting %s attribute in %s element.\n", (daeString)_name, (daeString)_container->getName() ); - //daeErrorHandler::get()->handleWarning( msg ); - } - else if ( strcmp(s, "-INF") == 0 ) { - s = "-999999.9"; - //quick workaround for http://sourceforge.net/tracker/index.php?func=detail&aid=1530106&group_id=157838&atid=805424 - //char msg[256]; - //sprintf(msg, "-INF encountered while setting %s attribute in %s element.\n", (daeString)_name, (daeString)_container->getName() ); - //daeErrorHandler::get()->handleWarning( msg ); - } - } - daeArray* array = (daeArray*)getWritableMemory(e); - daeInt typeSize = _type->getSize(); - daeInt cnt = (daeInt)array->getCount(); - array->setRawCount(++cnt); - _type->stringToMemory((char*)s, array->getRawData()+(cnt-1)*typeSize); -} - -void daeMetaArrayAttribute::copy(daeElement* to, daeElement *from) { - daeArray* toArray = (daeArray*)getWritableMemory(to); - daeArray* fromArray = (daeArray*)getWritableMemory(from); - daeInt typeSize = _type->getSize(); - daeInt cnt = (daeInt)fromArray->getCount(); - toArray->setRawCount( cnt ); - //memcpy( toArray->getRawData(), fromArray->getRawData(), cnt * typeSize ); - daeChar *toData = toArray->getRawData(); - daeChar *fromData = fromArray->getRawData(); - daeChar str[4096]; - for ( int i = 0; i < cnt; i++ ) { - _type->memoryToString( fromData+i*typeSize, str, 2048 ); - _type->stringToMemory( str, toData+i*typeSize ); - } -} - -daeMetaAttribute::daeMetaAttribute() -{ - _name = "noname"; - _offset = -1; - _type = NULL; - _container = NULL; - _default = NULL; - _isRequired = false; -} - -void -daeMetaAttribute::resolve(daeElementRef element) -{ - if (_type != NULL) - _type->resolve(element, getWritableMemory(element) ); -} - -void -daeMetaArrayAttribute::resolve(daeElementRef element) -{ - daeArray* era = (daeArray*)getWritableMemory(element); - size_t cnt = era->getCount(); - for ( size_t i = 0; i < cnt; i++ ) - { - _type->resolve( element, era->getRawData()+(i*era->getElementSize()) ); - } -} - -daeInt -daeMetaAttribute::getSize() -{ - return _type->getSize(); -} -daeInt -daeMetaAttribute::getAlignment() -{ - return _type->getAlignment(); -} - -daeInt -daeMetaAttribute::getCount(daeElement* e) -{ - if (e == NULL) - return 0; - return (getWritableMemory(e) != NULL); -} - -daeMemoryRef -daeMetaAttribute::get(daeElement *e, daeInt index) -{ - (void)index; - return getWritableMemory(e); -} - -daeInt -daeMetaArrayAttribute::getCount(daeElement *e) -{ - if (e == NULL) - return 0; - daeArray* era = (daeArray*)getWritableMemory(e); - if (era == NULL) - return 0; - return (daeInt)era->getCount(); -} - -daeMemoryRef -daeMetaArrayAttribute::get(daeElement* e, daeInt index) -{ - if (e == NULL) - return NULL; - daeArray* era = (daeArray*)getWritableMemory(e); - if (era == NULL || index >= (daeInt)era->getCount() ) - return NULL; - return era->getRawData()+(index*era->getElementSize()); -} - diff --git a/Extras/COLLADA_DOM/src/dae/daeMetaCMPolicy.cpp b/Extras/COLLADA_DOM/src/dae/daeMetaCMPolicy.cpp deleted file mode 100644 index 04e4e52e2..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeMetaCMPolicy.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include - -daeMetaCMPolicy::~daeMetaCMPolicy() -{ - for( size_t i = 0; i < _children.getCount(); i++ ) { - delete _children[i]; - } -} - diff --git a/Extras/COLLADA_DOM/src/dae/daeMetaChoice.cpp b/Extras/COLLADA_DOM/src/dae/daeMetaChoice.cpp deleted file mode 100644 index 878e0f16d..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeMetaChoice.cpp +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include - -daeMetaChoice::daeMetaChoice( daeMetaElement *container, daeMetaCMPolicy *parent, daeUInt ordinal, - daeInt minO, daeInt maxO) : daeMetaCMPolicy( container, parent, ordinal, minO, maxO ) -{} - -daeMetaChoice::~daeMetaChoice() -{} - -daeElement *daeMetaChoice::placeElement( daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset, daeElement* before, daeElement *after ) { - (void)offset; - if ( _maxOccurs == -1 ) { - //Needed to prevent infinate loops. If unbounded check to see if you have the child before just trying to place - daeString nm = child->getElementName(); - if ( nm == NULL ) { - nm = child->getTypeName(); - } - if ( findChild( nm ) == NULL ) { - return NULL; - } - } - - daeElement *retVal = NULL; - size_t cnt = _children.getCount(); - - for ( daeInt i = 0; ( i < _maxOccurs || _maxOccurs == -1 ); i++ ) { - for ( size_t x = 0; x < cnt; x++ ) { - if ( _children[x]->placeElement( parent, child, ordinal, i, before, after ) != NULL ) { - retVal = child; - ordinal = ordinal + _ordinalOffset; - break; - } - } - if ( retVal != NULL ) break; - } - /*if ( retVal && _maxOccurs != -1 ) { - //check if the place was valid - only if we aren't unbounded. unbounded is always valid - daeInt cnt = 0; - daeElementRefArray array; - size_t arrayCnt = 0; //saves us from having to clear the array every child - for ( size_t x = 0; x < _children.getCount(); x++ ) { - _children[x]->getChildren( parent, array ); - if ( array.getCount() != arrayCnt ) { - //this part of the content model has children. - cnt++; - if ( cnt > _maxOccurs ) { - //picked too many choices - remove element and return false - removeElement( parent, child ); - return false; - } - arrayCnt = array.getCount(); - } - } - - }*/ - return retVal; -} - -daeBool daeMetaChoice::removeElement( daeElement *parent, daeElement *child ) { - size_t cnt = _children.getCount(); - for ( size_t x = 0; x < cnt; x++ ) { - if ( _children[x]->removeElement( parent, child ) ) { - return true; - } - } - return false; -} - -daeMetaElement * daeMetaChoice::findChild( daeString elementName ) { - daeMetaElement *me = NULL; - size_t cnt = _children.getCount(); - for ( size_t x = 0; x < cnt; x++ ) { - me = _children[x]->findChild( elementName ); - if ( me != NULL ) { - return me; - } - } - return NULL; -} - -void daeMetaChoice::getChildren( daeElement *parent, daeElementRefArray &array ) { - (void)parent; - (void)array; - //this is taken care of by the _contents in metaElement -} - diff --git a/Extras/COLLADA_DOM/src/dae/daeMetaElement.cpp b/Extras/COLLADA_DOM/src/dae/daeMetaElement.cpp deleted file mode 100644 index d88d62992..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeMetaElement.cpp +++ /dev/null @@ -1,522 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include - -static daeMetaElementRefArray *mera = NULL; -static daeTArray< daeMetaElement** > *mes = NULL; - -daeElementRef -daeMetaElement::create() -{ -#if defined(_DEBUG) && defined(WIN32) - if (_createFunc == NULL) - return NULL; -#endif - daeElementRef ret = (*_createFunc)(_elementSize); - ret->setup(this); - - return ret; -} - -daeElementRef -daeMetaElement::create(daeString s) -{ - daeMetaElement* me = NULL; - if ( strcmp( s, _name ) == 0 ) { - //looking for this meta - me = this; - } - else { - me = _contentModel->findChild(s); - } - if (me != NULL) { - daeElementRef ret = me->create(); - if ( strcmp(s, me->getName() ) != 0 ) { - ret->setElementName(s); - } - return ret; - } - if ( getAllowsAny() ) { - daeElementRef ret = domAny::registerElement()->create(); - ret->setElementName(s); - return ret; - } - return NULL; -} - -/* -daeMetaElement* -daeMetaElement::findChild(daeString s) -{ - if (s != NULL) { - if ( strcmp( _name, s) == 0 ) { - return this; - } - int n = (int)_metaElements.getCount(); - int i; - for(i=0;i_elementType; - - if ((me == NULL) || ((daeString)(me->_name) == NULL)) - continue; - - if (strcmp(me->_name,s)==0) - return me; - - if (strcmp(_metaElements[i]->getName(),s)==0) - return me; - } - //!!!ACL Added for testing complex types and groups - for( i =0; i < (int)_otherChildren.getCount(); i++ ) { - if ( strcmp( _otherChildren[i], s) == 0 ) { - daeMetaElementAttribute *mea = _otherChildrenContainer[i]; - daeMetaElement *me = mea->getElementType(); - return me->findChild(s); - } - } - } - return NULL; -}*/ - -daeMetaElement::daeMetaElement() -{ - _name = "noname"; - _createFunc = NULL; - _needsResolve = false; - _elementSize = sizeof(daeElement); - _metaValue = NULL; - _metaContents = NULL; - _metaContentsOrder = NULL; // sthomas - _metaIntegration = NULL; - _metaID = NULL; - _isTrackableForQueries = true; - _usesStringContents = false; - _isTransparent = false; - _isAbstract = false; - _allowsAny = false; - _innerClass = false; - _metas().append(this); - - _contentModel = NULL; -} - -daeMetaElement::~daeMetaElement() -{ - if (_metaContents) - delete _metaContents; - if (_contentModel) // sthomas - delete _contentModel; - if (_metaContentsOrder) // sthomas - delete _metaContentsOrder; -} - -void daeMetaElement::setCMRoot( daeMetaCMPolicy *cm ) -{ - if (_contentModel) - delete _contentModel; - _contentModel = cm; -} - -void -daeMetaElement::addContents(daeInt offset) -{ - daeMetaElementArrayAttribute* meaa = new daeMetaElementArrayAttribute( this, NULL, 0, 1, -1 ); - meaa->setType(daeAtomicType::get("element")); - meaa->setName("contents"); - meaa->setOffset(offset); - meaa->setContainer( this); - meaa->setElementType( daeElement::getMeta() ); - _metaContents = meaa; -} -void -daeMetaElement::addContentsOrder(daeInt offset) -{ - daeMetaArrayAttribute* meaa = new daeMetaArrayAttribute(); - meaa->setType(daeAtomicType::get("uint")); - meaa->setName("contentsOrder"); - meaa->setOffset(offset); - meaa->setContainer( this); - - if (_metaContentsOrder) - delete _metaContentsOrder; - - _metaContentsOrder = meaa; -} - - -/*void -daeMetaElement::appendArrayElement(daeMetaElement* element, daeInt offset, daeString name) -{ - daeMetaElementArrayAttribute* meaa = new daeMetaElementArrayAttribute; - meaa->setType(daeAtomicType::get("element")); - if ( name ) { - meaa->setName(name); - } - else { - meaa->setName(element->getName()); - } - meaa->setOffset(offset); - meaa->setContainer(this); - meaa->setElementType( element); - _metaElements.append(meaa); -} -void -daeMetaElement::appendElement(daeMetaElement* element, daeInt offset, daeString name) -{ - daeMetaElementAttribute* meaa = new daeMetaElementAttribute; - meaa->setType(daeAtomicType::get("element")); - if ( name ) { - meaa->setName(name); - } - else { - meaa->setName(element->getName()); - } - meaa->setOffset( offset); - meaa->setContainer( this ); - meaa->setElementType( element ); - _metaElements.append(meaa); -}*/ - -void -daeMetaElement::appendAttribute(daeMetaAttribute* attr) -{ - if (attr == NULL) - return; - - if (strcmp(attr->getName(),"_value") == 0) { - _usesStringContents = attr->getType()->getUsesStrings(); - - _metaValue = attr; - } - else - _metaAttributes.append(attr); - - if ((attr->getType() != NULL) && - ((strcmp(attr->getType()->getTypeString(),"resolver")==0)|| - (strcmp(attr->getType()->getTypeString(),"idref_resolver")==0))) { - _resolvers.append(attr); - _needsResolve = true; - } - - if ((attr->getName() != NULL) && - (strcmp(attr->getName(),"id") == 0)) { - _metaID = attr; - _isTrackableForQueries = true; - } -} - -void -daeMetaElement::validate() -{ - if (_createFunc == NULL) - _createFunc = (daeElementConstructFunctionPtr) DAECreateElement; - if (_elementSize == 0) - { - daeInt place=0; - unsigned int i; - for(i=0;i<_metaAttributes.getCount();i++) { - place += _metaAttributes[i]->getSize(); - int align = _metaAttributes[i]->getAlignment(); - place += align; - place &= (~(align-1)); - } - _elementSize = place; - } -} - -daeMetaAttribute* -daeMetaElement::getMetaAttribute(daeString s) -{ - int cnt = (int)_metaAttributes.getCount(); - int i; - for(i=0;igetName(),s) == 0) - return _metaAttributes[i]; - return NULL; -} - - -void daeMetaElement::releaseMetas() -{ - _metas().clear(); - size_t count = _classMetaPointers().getCount(); - for ( size_t i = 0; i < count; i++ ) - { - *(_classMetaPointers()[i]) = NULL; - } - _classMetaPointers().clear(); - if (mera) - { - delete mera; - mera = NULL; - } - if (mes) - { - delete mes; - mes = NULL; - } -} - -daeBool daeMetaElement::place(daeElement *parent, daeElement *child, daeUInt *ordinal ) -{ - if (child->getMeta()->getIsAbstract() || parent->getMeta() != this ) { - return false; - } - daeUInt ord; - daeElement *retVal = _contentModel->placeElement( parent, child, ord ); - if ( retVal != NULL ) { - //update document pointer - child->setDocument( parent->getDocument() ); - if ( parent->getDocument() ) { - parent->getDocument()->insertElement( retVal ); - parent->getDocument()->setModified(true); - } - //add to _contents array - if (_metaContents != NULL) { - daeElementRefArray* contents = - (daeElementRefArray*)_metaContents->getWritableMemory(parent); - daeUIntArray* contentsOrder = - (daeUIntArray*)_metaContentsOrder->getWritableMemory(parent); - daeBool needsAppend = true; - size_t cnt = contentsOrder->getCount(); - for ( size_t x = 0; x < cnt; x++ ) { - if ( contentsOrder->get(x) > ord ) { - contents->insertAt( x, retVal ); - contentsOrder->insertAt( x, ord ); - needsAppend = false; - break; - } - } - if ( needsAppend ) { - contents->append(retVal); - contentsOrder->append( ord ); - } - } - if ( ordinal != NULL ) { - *ordinal = ord; - } - } - return retVal!=NULL; -} - -daeBool daeMetaElement::placeAt( daeInt index, daeElement *parent, daeElement *child ) -{ - if (child->getMeta()->getIsAbstract() || parent->getMeta() != this || index < 0 ) { - return false; - } - daeUInt ord; - daeElement *retVal = _contentModel->placeElement( parent, child, ord ); - if ( retVal != NULL ) { - //add to _contents array - if (_metaContents != NULL) { - daeElementRefArray* contents = - (daeElementRefArray*)_metaContents->getWritableMemory(parent); - daeUIntArray* contentsOrder = - (daeUIntArray*)_metaContentsOrder->getWritableMemory(parent); - daeBool validLoc; - if ( index > 0 ) { - validLoc = contentsOrder->get(index) >= ord && contentsOrder->get(index) <= ord; - } - else { - if ( contentsOrder->getCount() == 0 ) { - validLoc = true; - } - else { - validLoc = contentsOrder->get(index) >= ord; - } - } - if ( validLoc ) { - contents->insertAt( index, retVal ); - contentsOrder->insertAt( index, ord ); - } - else { - _contentModel->removeElement( parent, retVal ); - retVal = NULL; - } - } - } - if ( retVal != NULL ) { - //update document pointer - child->setDocument( parent->getDocument() ); - if ( parent->getDocument() ) { - parent->getDocument()->insertElement( retVal ); - parent->getDocument()->setModified(true); - } - } - return retVal!=NULL; -} - -daeBool daeMetaElement::placeBefore( daeElement *marker, daeElement *parent, daeElement *child, daeUInt *ordinal ) -{ - if (child->getMeta()->getIsAbstract() || parent->getMeta() != this ) { - return false; - } - daeUInt ord; - daeElement *retVal = _contentModel->placeElement( parent, child, ord, 0, marker, NULL ); - if ( retVal != NULL ) { - //add to _contents array - if (_metaContents != NULL) { - daeElementRefArray* contents = - (daeElementRefArray*)_metaContents->getWritableMemory(parent); - daeUIntArray* contentsOrder = - (daeUIntArray*)_metaContentsOrder->getWritableMemory(parent); - size_t index(0); - daeBool validLoc = false; - if ( contents->find( marker, index ) == DAE_OK ) { - if ( index > 0 ) { - daeUInt gt = contentsOrder->get(index-1); - daeUInt lt = contentsOrder->get(index); - validLoc = gt <= ord && lt >= ord; - } - else { - validLoc = contentsOrder->get(index) >= ord; - } - } - if ( validLoc ) { - contents->insertAt( index, retVal ); - contentsOrder->insertAt( index, ord ); - if ( ordinal != NULL ) { - *ordinal = ord; - } - } - else { - _contentModel->removeElement( parent, retVal ); - retVal = NULL; - } - } - } - if ( retVal != NULL ) { - //update document pointer - child->setDocument( parent->getDocument() ); - if ( parent->getDocument() ) { - parent->getDocument()->insertElement( retVal ); - parent->getDocument()->setModified(true); - } - } - return retVal!=NULL; -} - -daeBool daeMetaElement::placeAfter( daeElement *marker, daeElement *parent, daeElement *child, daeUInt *ordinal ) -{ - if (child->getMeta()->getIsAbstract() || parent->getMeta() != this ) { - return false; - } - daeUInt ord; - daeElement *retVal = _contentModel->placeElement( parent, child, ord, 0, marker, NULL ); - if ( retVal != NULL ) { - //add to _contents array - if (_metaContents != NULL) { - daeElementRefArray* contents = - (daeElementRefArray*)_metaContents->getWritableMemory(parent); - daeUIntArray* contentsOrder = - (daeUIntArray*)_metaContentsOrder->getWritableMemory(parent); - size_t index(0); - daeBool validLoc = false; - if ( contents->find( marker, index ) == DAE_OK ) { - if ( index < contentsOrder->getCount()-1 ) { - validLoc = contentsOrder->get(index) <= ord && contentsOrder->get(index+1) >= ord; - } - else { - validLoc = contentsOrder->get(index) <= ord; - } - } - if ( validLoc ) { - contents->insertAt( index+1, retVal ); - contentsOrder->insertAt( index+1, ord ); - if ( ordinal != NULL ) { - *ordinal = ord; - } - } - else { - _contentModel->removeElement( parent, retVal ); - retVal = NULL; - } - } - } - if ( retVal != NULL ) { - //update document pointer - child->setDocument( parent->getDocument() ); - if ( parent->getDocument() ) { - parent->getDocument()->insertElement( retVal ); - parent->getDocument()->setModified(true); - } - } - return retVal!=NULL; -} - -daeBool daeMetaElement::remove(daeElement *parent, daeElement *child) -{ - if ( parent->getMeta() != this ) { - return false; - } - //prevent child from being deleted - daeElementRef el( child ); - if ( _contentModel->removeElement( parent, child ) ) { - if ( _metaContents != NULL) - { - daeElementRefArray* contents = (daeElementRefArray*)_metaContents->getWritableMemory(parent); - daeUIntArray* contentsOrder = (daeUIntArray*)_metaContentsOrder->getWritableMemory(parent); - size_t idx(0); - if ( contents->remove(child, &idx) == DAE_OK ) { - contentsOrder->removeIndex( idx ); - } - } - if ( child->getDocument() ) { - child->getDocument()->removeElement( child ); - child->getDocument()->setModified(true); - } - return true; - } - return false; -} - -void daeMetaElement::getChildren( daeElement* parent, daeElementRefArray &array ) -{ - if ( parent->getMeta() != this ) { - return; - } - if ( _metaContents != NULL ) { - daeElementRefArray* contents = (daeElementRefArray*)_metaContents->getWritableMemory(parent); - for ( size_t x = 0; x < contents->getCount(); x++ ) { - array.append( contents->get(x) ); - } - } - else if ( _contentModel != NULL ) { - _contentModel->getChildren( parent, array ); - } -} - -daeMetaElementRefArray &daeMetaElement::_metas() -{ - if (!mera) - { - mera = new daeMetaElementRefArray(); - } - return *mera; -} - -daeTArray< daeMetaElement** > &daeMetaElement::_classMetaPointers() -{ - if (!mes) - { - mes = new daeTArray< daeMetaElement** >(); - } - return *mes; -} - diff --git a/Extras/COLLADA_DOM/src/dae/daeMetaElementAttribute.cpp b/Extras/COLLADA_DOM/src/dae/daeMetaElementAttribute.cpp deleted file mode 100644 index a9039f845..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeMetaElementAttribute.cpp +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include - -daeMetaElementAttribute::daeMetaElementAttribute( daeMetaElement *container, daeMetaCMPolicy *parent, daeUInt ordinal, - daeInt minO, daeInt maxO) : daeMetaCMPolicy( container, parent, ordinal, minO, maxO ) -{ - _elementType = NULL; -} - -daeMetaElementAttribute::~daeMetaElementAttribute() -{} - -daeMetaElementArrayAttribute::daeMetaElementArrayAttribute( daeMetaElement *container, daeMetaCMPolicy *parent, daeUInt ordinal, - daeInt minO, daeInt maxO) : daeMetaElementAttribute( container, parent, ordinal, minO, maxO ) -{ -} - -daeMetaElementArrayAttribute::~daeMetaElementArrayAttribute() -{} - - -void daeMetaElementAttribute::set(daeElement* e, daeString s) -{ - //_type->stringToMemory((char*)s, getWritableMemory(e)); - daeElementRef *ref = (daeElementRef*)(getWritableMemory(e)); - if ((*ref) == NULL) { - (*ref) = _elementType->create(); - } - (*ref)->getMeta()->getValueAttribute()->set((*ref), s); -} - -void daeMetaElementAttribute::copy(daeElement* to, daeElement *from) { - daeElement *cpy = (*(daeElementRef*)(getWritableMemory(from)))->clone(); - (*(daeElementRef*)(getWritableMemory(to))) = cpy; -} - -void daeMetaElementArrayAttribute::copy(daeElement* to, daeElement *from) { - (void)to; - (void)from; -} - -void -daeMetaElementAttribute::setDocument( daeElement * parent, daeDocument* c ) -{ - daeElementRef* er = (daeElementRef*)getWritableMemory( parent ); - if ( ((daeElement*)(*er)) != NULL ) { - (*er)->setDocument( c ); - } -} - -void -daeMetaElementArrayAttribute::setDocument( daeElement * parent, daeDocument* c ) -{ - daeElementRefArray* era = (daeElementRefArray*)getWritableMemory( parent ); - for ( unsigned int i = 0; i < era->getCount(); i++ ) { - era->get(i)->setDocument( c ); - } -} - -daeInt -daeMetaElementAttribute::getCount(daeElement* e) -{ - if (e == NULL) - return 0; - return ((*((daeElementRef*)getWritableMemory(e))) != NULL); -} - -daeMemoryRef -daeMetaElementAttribute::get(daeElement *e, daeInt index) -{ - (void)index; - return getWritableMemory(e); -} - -daeInt -daeMetaElementArrayAttribute::getCount(daeElement *e) -{ - if (e == NULL) - return 0; - daeElementRefArray* era = (daeElementRefArray*)getWritableMemory(e); - if (era == NULL) - return 0; - return (daeInt)era->getCount(); -} - -daeMemoryRef -daeMetaElementArrayAttribute::get(daeElement* e, daeInt index) -{ - if (e == NULL) - return NULL; - daeElementRefArray* era = (daeElementRefArray*)getWritableMemory(e); - if (era == NULL || index >= (daeInt)era->getCount() ) - return NULL; - return (daeMemoryRef)&(era->get(index)); -} - -daeElement * -daeMetaElementAttribute::placeElement(daeElement* parent, daeElement* child, daeUInt &ordinal, daeInt offset, daeElement* before, daeElement *after ) -{ - (void)offset; - (void)before; - (void)after; - if ((parent == NULL)||(child == NULL)) - return NULL; - if ( child->getMeta() != _elementType || ( child->getElementName() != NULL && strcmp( child->getElementName(), _name ) != 0 ) ) { - return NULL; - } - if (child->getParentElement() == parent) { - //I Don't know why this gets called when the child already has this as parent. - return child; - } - daeElementRef* er = (daeElementRef*)getWritableMemory(parent); - - daeElement::removeFromParent( child ); - child->setParentElement( parent ); - - *er = child; - ordinal = _ordinalOffset; - - return child; -} - -daeElement * -daeMetaElementArrayAttribute::placeElement(daeElement* parent, daeElement* child, daeUInt &ordinal, daeInt offset, daeElement* before, daeElement *after ) -{ - if ((parent == NULL)||(child == NULL)) - return NULL; - if ( child->getMeta() != _elementType || ( child->getElementName() != NULL && strcmp( child->getElementName(), _name ) != 0 ) ) { - return NULL; - } - daeElement *p = child->getParentElement(); - daeElementRefArray* era = (daeElementRefArray*)getWritableMemory(parent); - if ( _maxOccurs != -1 && (daeInt)era->getCount()-offset >= _maxOccurs ) { - return NULL; - } - removeElement( p, child ); - child->setParentElement( parent ); - - if ( before != NULL && before->getMeta() == _elementType ) { - size_t idx(0); - if ( era->find( before, idx ) == DAE_OK ) { - era->insertAt( idx, child ); - } - } - else if ( after != NULL && after->getMeta() == _elementType ) { - size_t idx(0); - if ( era->find( after, idx ) == DAE_OK ) { - era->insertAt( idx+1, child ); - } - } - else { - era->append(child); - } - ordinal = _ordinalOffset; - - return child; -} - -// These are the opposite of the placeElement functions above -daeBool -daeMetaElementAttribute::removeElement(daeElement* parent, daeElement* child) -{ - (void)child; // silence unused variable warning - - if ((parent == NULL)||(child == NULL )) - return false; - - daeElementRef* er = (daeElementRef*)getWritableMemory(parent); - if ( *er != child ) { - return false; - } - *er = NULL; - return true; -} - -daeBool -daeMetaElementArrayAttribute::removeElement(daeElement* parent, - daeElement* child) -{ - if ((parent == NULL)||(child == NULL)) - return false ; - - daeElementRefArray* era = (daeElementRefArray*)getWritableMemory(parent); -/* if ( (daeInt)era->getCount() <= _minOccurs ) { - return false; - }*/ - daeInt error = era->remove(child); - if ( error != DAE_OK ) { - return false; - } - return true; -} - -daeMetaElement *daeMetaElementAttribute::findChild( daeString elementName ) { - if ( strcmp( elementName, _name ) == 0 ) { - return _elementType; - } - return NULL; -} - -void daeMetaElementAttribute::getChildren( daeElement *parent, daeElementRefArray &array ) { - daeElementRef* er = (daeElementRef*)getWritableMemory(parent); - if ( *er != NULL ) { - array.append( *er ); - } -} - -void daeMetaElementArrayAttribute::getChildren( daeElement *parent, daeElementRefArray &array ) { - daeElementRefArray* era = (daeElementRefArray*)getWritableMemory(parent); - size_t cnt = era->getCount(); - for ( size_t x = 0; x < cnt; x++ ) { - array.append( era->get(x) ); - } -} diff --git a/Extras/COLLADA_DOM/src/dae/daeMetaGroup.cpp b/Extras/COLLADA_DOM/src/dae/daeMetaGroup.cpp deleted file mode 100644 index 4b38badcb..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeMetaGroup.cpp +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include - -daeMetaGroup::daeMetaGroup( daeMetaElementAttribute *econ, daeMetaElement *container, - daeMetaCMPolicy *parent, daeUInt ordinal, daeInt minO, daeInt maxO) : - daeMetaCMPolicy( container, parent, ordinal, minO, maxO ), _elementContainer( econ ) -{} - -daeMetaGroup::~daeMetaGroup() -{ - if ( _elementContainer != NULL ) { - delete _elementContainer; - } -} - -daeElement *daeMetaGroup::placeElement( daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset, daeElement* before, daeElement *after ) { - (void)offset; - daeString nm = child->getElementName(); - if ( nm == NULL ) { - nm = child->getTypeName(); - } - if ( findChild( nm ) == NULL ) { - return false; - } - daeElementRef el; -#if 0 - daeInt elCnt = _elementContainer->getCount(parent); - //check existing groups - //This doesn't work properly. Because the choice can't check if you make two decisions you cannot fail - //here when you are supposed to. Luckily the current schema just has groups with single choices so - //every element needs a new group container. Wasteful but thats how the schema is and its how it works. - for ( daeInt x = 0; x < elCnt; x++ ) { - daeMemoryRef mem = _elementContainer->get(parent, x ); - if ( mem != NULL ) { - el = *(daeElementRef*)mem; - } - if ( el == NULL ) { - continue; - } - if ( before != NULL ) { - if ( _elementContainer->_elementType->placeBefore( before, el, child, &ordinal ) ) { - ordinal = ordinal + _ordinalOffset; - return true; - } - } - else if ( after != NULL ) { - if ( _elementContainer->_elementType->placeAfter( after, el, child, &ordinal ) ) { - ordinal = ordinal + _ordinalOffset; - return true; - } - } - else { - if ( _elementContainer->_elementType->place( el, child, &ordinal ) ) { - ordinal = ordinal + _ordinalOffset; - return true; - } - } - } -#endif - //check if the element trying to be placed is a group element. If so Just add it don't create a new one. - if ( strcmp( nm, _elementContainer->getName() ) == 0 ) { - if ( _elementContainer->placeElement(parent, child, ordinal, offset ) != NULL ) { - return child; - } - } - //if you couldn't place in existing groups make a new one if you can - el = _elementContainer->placeElement(parent, _elementContainer->_elementType->create(), ordinal, offset ); - if ( el != NULL ) { - //el = *(daeElementRef*)_elementContainer->get(parent, elCnt ); - if ( before != NULL ) { - if ( _elementContainer->_elementType->placeBefore( before, el, child, &ordinal ) ) { - ordinal = ordinal + _ordinalOffset; - return el; - } - } - else if ( after != NULL ) { - if ( _elementContainer->_elementType->placeAfter( after, el, child, &ordinal ) ) { - ordinal = ordinal + _ordinalOffset; - return el; - } - } - else { - if ( _elementContainer->_elementType->place( el, child, &ordinal ) ) { - ordinal = ordinal + _ordinalOffset; - return el; - } - } - } - return NULL; -} - -daeBool daeMetaGroup::removeElement( daeElement *parent, daeElement *child ) { - daeElementRef el; - daeInt elCnt = _elementContainer->getCount(parent); - for ( daeInt x = 0; x < elCnt; x++ ) { - daeMemoryRef mem = _elementContainer->get(parent, x ); - if ( mem != NULL ) { - el = *(daeElementRef*)mem; - } - if ( el == NULL ) { - continue; - } - if ( el->removeChildElement( child ) ) { - _elementContainer->removeChildElement( el ); - return true; - } - } - return false; -} - -daeMetaElement * daeMetaGroup::findChild( daeString elementName ) { - if ( strcmp( _elementContainer->getName(), elementName ) == 0 ) { - return _elementContainer->getElementType(); - } - return _elementContainer->_elementType->getCMRoot()->findChild( elementName ); -} - -void daeMetaGroup::getChildren( daeElement *parent, daeElementRefArray &array ) { - size_t cnt = _elementContainer->getCount( parent ); - for ( size_t x = 0; x < cnt; x++ ) { - (*((daeElementRef*)_elementContainer->get(parent, (daeInt)x )))->getChildren(array); - } - //_elementContainer->_elementType->getChildren( parent, array ); -} - diff --git a/Extras/COLLADA_DOM/src/dae/daeMetaSequence.cpp b/Extras/COLLADA_DOM/src/dae/daeMetaSequence.cpp deleted file mode 100644 index 38dbaa109..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeMetaSequence.cpp +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include - -daeMetaSequence::daeMetaSequence( daeMetaElement *container, daeMetaCMPolicy *parent, daeUInt ordinal, - daeInt minO, daeInt maxO) : - daeMetaCMPolicy( container, parent, ordinal, minO, maxO ) -{} - -daeMetaSequence::~daeMetaSequence() -{} - -daeElement *daeMetaSequence::placeElement( daeElement *parent, daeElement *child, daeUInt &ordinal, daeInt offset, daeElement* before, daeElement *after ) { - (void)offset; - if ( _maxOccurs == -1 ) { - //Needed to prevent infinate loops. If unbounded check to see if you have the child before just trying to place - daeString nm = child->getElementName(); - if ( nm == NULL ) { - nm = child->getTypeName(); - } - if ( findChild( nm ) == NULL ) { - return NULL; - } - } - - size_t cnt = _children.getCount(); - for ( daeInt i = 0; ( i < _maxOccurs || _maxOccurs == -1 ); i++ ) { - for ( size_t x = 0; x < cnt; x++ ) { - if ( _children[x]->placeElement( parent, child, ordinal, i, before, after ) != NULL ) { - ordinal = ordinal + (i * ( _maxOrdinal + 1 )) + _ordinalOffset; - return child; - } - } - } - return NULL; -} - -daeBool daeMetaSequence::removeElement( daeElement *parent, daeElement *child ) { - size_t cnt = _children.getCount(); - for ( size_t x = 0; x < cnt; x++ ) { - if ( _children[x]->removeElement( parent, child ) ) { - return true; - } - } - return false; -} - -daeMetaElement * daeMetaSequence::findChild( daeString elementName ) { - daeMetaElement *me = NULL; - size_t cnt = _children.getCount(); - for ( size_t x = 0; x < cnt; x++ ) { - me = _children[x]->findChild( elementName ); - if ( me != NULL ) { - return me; - } - } - return NULL; -} - -void daeMetaSequence::getChildren( daeElement *parent, daeElementRefArray &array ) { - size_t cnt = _children.getCount(); - for ( size_t x = 0; x < cnt; x++ ) { - _children[x]->getChildren( parent, array ); - } -} diff --git a/Extras/COLLADA_DOM/src/dae/daeSIDResolver.cpp b/Extras/COLLADA_DOM/src/dae/daeSIDResolver.cpp deleted file mode 100644 index 65c753d14..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeSIDResolver.cpp +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include - -daeSIDResolver::daeSIDResolver( daeElement *container, daeString target, daeString profile ) -{ - element = NULL; - doubleArray = NULL; - doublePtr = NULL; - - this->container = container; - if ( target != NULL ) { - this->target = new char[ strlen( target ) +1 ]; - strcpy( (char*)this->target, target ); - state = target_loaded; - } - else { - this->target = NULL; - state = target_empty; - } - if ( profile != NULL ) { - this->profile = new char[ strlen( profile ) +1 ]; - strcpy( (char*)this->profile, profile ); - } - else { - this->profile = NULL; - } -} - -daeSIDResolver::~daeSIDResolver() -{ - if ( target != NULL ) { - delete[] (void*)target; - target = NULL; - } - if ( profile != NULL ) { - delete[] (void*)profile; - profile = NULL; - } -} - -void daeSIDResolver::setTarget( daeString t ) -{ - if ( target != NULL ) { - delete[] (void*)target; - } - if ( t != NULL ) { - target = new char[ strlen( t ) +1 ]; - strcpy( (char*)target, t ); - state = target_loaded; - } - else { - target = NULL; - state = target_empty; - } - element = NULL; - doubleArray = NULL; - doublePtr = NULL; -} - - -void daeSIDResolver::setProfile( daeString p ) -{ - if ( profile != NULL ) { - delete[] (void*)target; - } - if ( p != NULL ) { - profile = new char[ strlen( p ) +1 ]; - strcpy( (char*)profile, p ); - } - else { - profile = NULL; - } - element = NULL; - doubleArray = NULL; - doublePtr = NULL; -} - -void daeSIDResolver::setContainer(daeElement* element) -{ - if ( element != container ) { - container = element; - element = NULL; - doubleArray = NULL; - doublePtr = NULL; - if ( target != NULL ) { - state = target_loaded; - } - else { - state = state = target_empty; - } - } -} - -daeElementRef daeSIDResolver::getElement() -{ - if ( state == target_loaded ) { - resolve(); - } - return element; -} - -daeDoubleArray *daeSIDResolver::getDoubleArray() -{ - if ( state == target_loaded ) { - resolve(); - } - return doubleArray; -} - -daeDouble *daeSIDResolver::getDouble() -{ - if ( state == target_loaded ) { - resolve(); - } - return doublePtr; -} - -void daeSIDResolver::resolve() -{ - char * str = (char *)target; - char * pos = strchr( str, '/'); - char * id; - if ( pos == NULL ) { - pos = strchr( str, '.' ); - } - if ( pos == NULL ) { - pos = strchr( str, '(' ); - } - if ( pos != NULL ) { - id = new char[ pos - str + 1 ]; - strncpy( id, str, pos - str ); - id[ pos - str ] = 0; - str = pos; - } - else { - id = new char[ strlen( str ) + 1 ]; - strcpy( id, str ); - str = str + strlen( str ); - } - if ( strcmp( id, "." ) == 0 ) { - element = container; - state = sid_success_element; - } - else { - daeIDRef idref( id ); - idref.setContainer( container ); - idref.resolveElement(); - if ( idref.getState() != daeIDRef::id_success ) { - state = sid_failed_not_found; - delete[] id; - element = NULL; - return; - } - element = idref.getElement(); - state = sid_success_element; - } - - char * next = NULL; - while ( *str != '.' && *str != '(' && *str != 0 ) { - if ( *str == '/' ) { - str++; - } - if ( next != NULL ) { - delete[] next; - next = NULL; - } - pos = strchr( str, '/'); - if ( pos == NULL ) { - pos = strchr( str, '.' ); - } - if ( pos == NULL ) { - pos = strchr( str, '(' ); - } - if ( pos != NULL ) { - next = new char[ pos - str + 1 ]; - strncpy( next, str, pos - str ); - next[ pos - str ] = 0; - str = pos; - } - else { - next = new char[ strlen( str ) + 1 ]; - strcpy( next, str ); - str = str + strlen( str ); - } - //find the child element with SID of next - daeElement *el = findSID( element, next ); - element = el; - if ( element == NULL ) { - //failed - state = sid_failed_not_found; - if ( id != NULL ) { - delete[] id; - } - if ( next != NULL ) { - delete[] next; - next = NULL; - } - return; - } - } - //check for the double array - if ( strcmp( element->getTypeName(), "source" ) == 0 ) { - daeElementRefArray children; - element->getChildren( children ); - size_t cnt = children.getCount(); - - for ( size_t x = 0; x < cnt; x++ ) { - if ( strcmp( children[x]->getTypeName(), "float_array" ) == 0 ) { - doubleArray = (daeDoubleArray*)children[x]->getMeta()->getValueAttribute()->getWritableMemory( children[x] ); - state = sid_success_array; - break; - } - } - } - else - { - daeMetaAttribute *ma = element->getMeta()->getValueAttribute(); - if ( ma != NULL ) { - if ( ma->isArrayAttribute() && ma->getType()->getTypeEnum() == daeAtomicType::DoubleType ) { - doubleArray = (daeDoubleArray*)ma->getWritableMemory( element ); - state = sid_success_array; - } - } - } - - if( state == sid_success_array ) { - //found the double array - if ( *str == '.' ) { - //do the double lookup stuff based on COMMON profile offset - str++; - if ( strcmp( str, "ANGLE" ) == 0 ) { - doublePtr = &(doubleArray->get(3)); - state = sid_success_double; - } - else if ( strlen( str ) == 1 ) { - switch ( *str ) { - case 'X': - case 'R': - case 'U': - case 'S': - doublePtr = &(doubleArray->get(0)); - state = sid_success_double; - break; - case 'Y': - case 'G': - case 'V': - case 'T': - doublePtr = &(doubleArray->get(1)); - state = sid_success_double; - break; - case 'Z': - case 'B': - case 'P': - doublePtr = &(doubleArray->get(2)); - state = sid_success_double; - break; - case 'W': - case 'A': - case 'Q': - doublePtr = &(doubleArray->get(3)); - state = sid_success_double; - break; - }; - } - } - else if ( *str == '(' ) { - //do the double lookup stuff based on the offset given - str++; - pos = strchr( str, '(' ); - daeInt i = atoi( str ); - if ( pos != NULL && doubleArray->getCount() == 16 ) { - //we are doing a matrix lookup - pos++; - daeInt j = atoi( pos ); - doublePtr = &(doubleArray->get( i*4 + j )); - state = sid_success_double; - } - else { - //vector lookup - if ( (daeInt)doubleArray->getCount() > i ) { - doublePtr = &(doubleArray->get(i)); - state = sid_success_double; - } - } - } - } - - if ( id != NULL ) { - delete[] id; - } - if ( next != NULL ) { - delete[] next; - } -} - -daeElement *daeSIDResolver::findSID( daeElement *el, daeString sid ) { - //first check yourself - daeString *s = (daeString*)el->getAttributeValue( "sid" ); - if ( s != NULL && *s != NULL && strcmp( *s, sid ) == 0 ) { - //found it - return el; - } - //and if you are a instance_* then check what you point to - daeString nm = el->getElementName(); - if ( nm == NULL ) { - nm = el->getTypeName(); - } - if ( strncmp( nm, "instance_", 9 ) == 0 ) { - daeURI *uri = (daeURI*)el->getAttributeValue("url"); - if ( uri != NULL && uri->getElement() != NULL ) { - daeElement *e = findSID( uri->getElement(), sid ); - if ( e != NULL ) { - //found it - return e; - } - } - } - - daeElementRefArray children; - el->getChildren( children ); - size_t cnt = children.getCount(); - size_t x; - - for ( x = 0; x < cnt; x++ ) { - //examine the children - //char s[56]; - //daeAtomicType::get( "token" )->memoryToString( children[x]->getAttributeValue( "sid" ), s, 56 ); - daeString *s = (daeString*)children[x]->getAttributeValue( "sid" ); - if ( s != NULL && *s != NULL && strcmp( *s, sid ) == 0 ) { - //found it - return children[x]; - } - } - for ( x = 0; x < cnt; x++ ) { - //if not found look for it in each child - if ( profile != NULL && strcmp( children[x]->getTypeName(), "technique_COMMON" ) == 0 ) { - //not looking for common profile - continue; - } - else if ( strcmp( children[x]->getTypeName(), "technique" ) == 0 && children[x]->hasAttribute( "profile" ) ) { - if ( profile == NULL || strcmp( profile, children[x]->getAttributeValue( "profile" ) ) != 0 ) { - //not looking for this technique profile - continue; - } - } - daeElement *e = findSID( children[x], sid ); - if ( e != NULL ) { - //found it - return e; - } - } - return NULL; -} - diff --git a/Extras/COLLADA_DOM/src/dae/daeStringRef.cpp b/Extras/COLLADA_DOM/src/dae/daeStringRef.cpp deleted file mode 100644 index bcb1d8a78..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeStringRef.cpp +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include - -//Contributed by Nus - Wed, 08 Nov 2006 -// Nus: Use global pointer instead of local static. -static daeStringTable *pST = NULL; -//--------------------------- - -daeStringTable &daeStringRef::_stringTable() -{ -//Contributed by Nus - Wed, 08 Nov 2006 - // static daeStringTable *st = new daeStringTable(); - // return *st; - if(!pST) - pST = new daeStringTable(); - return *pST; -} - -void daeStringRef::releaseStringTable(void) -{ - if(pST) { - delete pST; - pST = NULL; - } -} -//-------------------------------- - -daeStringRef::daeStringRef(daeString string) -{ - daeStringTable &st = _stringTable(); - _string = st.allocString(string); -} - -const daeStringRef& -daeStringRef::set(daeString string) -{ - daeStringTable &st = _stringTable(); - _string = st.allocString(string); - return *this; -} - -const daeStringRef& -daeStringRef::operator= (daeString string) -{ - return set(string); -} diff --git a/Extras/COLLADA_DOM/src/dae/daeStringTable.cpp b/Extras/COLLADA_DOM/src/dae/daeStringTable.cpp deleted file mode 100644 index abc44c7db..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeStringTable.cpp +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include - -daeStringTable::daeStringTable(int stringBufferSize):_stringBufferSize(stringBufferSize), _empty( "" ) -{ - _stringBufferIndex = _stringBufferSize; - //allocate initial buffer - //allocateBuffer(); -} - -daeString daeStringTable::allocateBuffer() -{ - daeString buf = new daeChar[_stringBufferSize]; - _stringBuffersList.append(buf); - _stringBufferIndex = 0; - return buf; -} - -daeString daeStringTable::allocString(daeString string) -{ - if ( string == NULL ) return _empty; - size_t stringSize = strlen(string) + 1; - size_t sizeLeft = _stringBufferSize - _stringBufferIndex; - daeString buf; - if (sizeLeft < stringSize) - { - buf = allocateBuffer(); - } - else - { - buf = _stringBuffersList.get((daeInt)_stringBuffersList.getCount()-1); - } - daeChar *str = (char*)buf + _stringBufferIndex; - memcpy(str,string,stringSize); - _stringBufferIndex += stringSize; - - int align = sizeof(void*); - _stringBufferIndex = (_stringBufferIndex+(align-1)) & (~(align-1)); - - //assert -#if defined(_DEBUG) && defined(WIN32) - if (_stringBufferIndex>_stringBufferSize) - { - //error the size of the buffer is not aligned, - //or there is an internal error - assert(0); - return NULL; - } -#endif - - return str; -} - -void daeStringTable::clear() -{ - unsigned int i; - for (i=0;i<_stringBuffersList.getCount();i++) -#if _MSC_VER <= 1200 - delete [] (char *) _stringBuffersList[i]; -#else - delete [] _stringBuffersList[i]; -#endif - - _stringBuffersList.clear(); - _stringBufferIndex = 0; -} diff --git a/Extras/COLLADA_DOM/src/dae/daeURI.cpp b/Extras/COLLADA_DOM/src/dae/daeURI.cpp deleted file mode 100644 index e4cefffaf..000000000 --- a/Extras/COLLADA_DOM/src/dae/daeURI.cpp +++ /dev/null @@ -1,1282 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include - -#ifdef _WIN32 -#include // for getcwd (windows) -#else -#include // for getcwd (linux) -#endif - -daeString safeCreate(daeString src); -void safeDelete(daeString src); -daeString findCharacterReverse(daeString string, daeChar stopChar); - -//Contributed by Nus - Wed, 08 Nov 2006 -static daeURIResolverPtrArray *pKR = NULL; -//--------------------------- - -daeURIResolverPtrArray &daeURIResolver::_KnownResolvers() -{ -//Contributed by Nus - Wed, 08 Nov 2006 - // static daeURIResolverPtrArray *kr = new daeURIResolverPtrArray(); - // return *kr; - return *pKR; -//-------------------------------- -} - -//Contributed by Nus - Wed, 08 Nov 2006 -static daeURI* pAppURI = NULL; -// static daeURI ApplicationURI(1); - -extern "C" void initializeURI(void) -{ - if(!pAppURI) { - pAppURI = new daeURI(1); - } - if(!pKR) { - pKR = new daeURIResolverPtrArray(); - } -} - -extern "C" void terminateURI(void) -{ - delete pAppURI; - pAppURI = NULL; - delete pKR; - pKR = NULL; -} -//-------------------------------------- - -void -daeURI::setBaseURI(daeURI& uri) -{ -//Contributed by Nus - Wed, 08 Nov 2006 - // ApplicationURI.reset(); - // ApplicationURI.setURI(uri.getURI()); - pAppURI->reset(); - pAppURI->setURI(uri.getURI()); -//------------------------ -} - -daeURI* -daeURI::getBaseURI() -{ -//Contributed by Nus - Wed, 08 Nov 2006 - return pAppURI; -//-------------------------------------- -} - -void -daeURI::initialize() -{ - // Initialize a URI to it's empty state, same as daeURI::reset but also clears out "container" - - uriString = NULL; - originalURIString = NULL; - protocol = NULL; - authority = NULL; - filepath = NULL; - file = NULL; - id = NULL; - extension = NULL; - state = uri_empty; - element = NULL; - container = NULL; - external = false; -} - -daeURI::~daeURI() -{ - reset(); -} - -daeURI::daeURI() -{ - initialize(); -// reset(); // No need to call reset in the constructor, initialize does the same thing. -} -daeURI::daeURI(int dummy) -{ - (void)dummy; - // This constructor builds a base URI from the current working directory - // This should work for windows or linux - // !!!GAC the buffers should probably be bigger - char buffer[1024], *b1; - strcpy(buffer, "file:///"); -#ifdef NO_GETCWD - // The platform has no getcwd call, so leave the value as file:/// -#else - #ifdef _WIN32 - // Windows getcwd always returns a path beginning with a drive letter, so we add file:/// to the beginning - getcwd(&buffer[8],1024-8); - #else - // Linux getcwd always returns a path beginning with a slash, so we add file:// to the beginning - getcwd(&buffer[7],1024-7); - #endif -#endif - // If the path contains windows backslashes, flip them to forward slashes - for(b1 = buffer;*b1 != 0;b1++) - { - if(*b1 == '\\') - { - *b1 = '/'; - } - } - // The path must end in a slash or the last part of it will be taken as a filename - if(*(b1-1) != '/') - { - *(b1++) = '/'; - } - *b1 = '\0'; - initialize(); - setURI(buffer); - validate(); -} -daeURI::daeURI(daeString uriString, daeBool nofrag) -{ - initialize(); - // !!!GAC this is inefficient as hell, but was the best way to isolate this functionality till the - // !!!GAC daeURI class can be written to support modifying URIs better (should be possible to make a URI, - // !!!GAC change any member and have getURI return the proper const string URI) - if(nofrag) - { - // Strip off the fragment part before constructing the URI - daeString temp = safeCreate(uriString); - daeChar* fragment = (daeChar*)findCharacterReverse(temp, '#'); - if(fragment) - { - *fragment = 0; - } - setURI(temp); - safeDelete(temp); - } - else - { - // Generate the URI without changing the string - setURI(uriString); - } - if(nofrag) - validate(); -} -daeURI::daeURI(daeURI& baseURI, daeString uriString) -{ - initialize(); - setURI(uriString); - validate(&baseURI); -} -daeURI::daeURI(daeURI& copyFrom) -{ - initialize(); - setURI(copyFrom.getOriginalURI()); - element = copyFrom.element; // !!!GAC SetURI immediately clears element so we must do this after - state = copyFrom.state; -} -void -daeURI::copyFrom(daeURI& copyFrom) -{ - setURI(copyFrom.getOriginalURI()); - element = copyFrom.element; // !!!GAC SetURI immediately clears element so we must do this after - state = copyFrom.state; - // !!!GAC Should there be a call to validate in here? -} -void -daeURI::reset() -{ - // Free up any allocated memory - - if (uriString != NULL) - safeDelete(uriString); - - if (originalURIString != NULL) - safeDelete(originalURIString); - - if (protocol != NULL) - safeDelete(protocol); - - if (authority != NULL) - safeDelete(authority); - - if (filepath != NULL) - safeDelete(filepath); - - if (file != NULL) - safeDelete(file); - - if (id != NULL) - safeDelete(id); - - if (extension != NULL) - safeDelete(extension); - - // Set everything to the empty string - - uriString = NULL; - originalURIString = NULL; - protocol = NULL; - authority = NULL; - filepath = NULL; - file = NULL; - id = NULL; - extension = NULL; - - state = uri_empty; - element = NULL; -// container = NULL; // !!!GAC don't want to clear this, our container doesn't change once it's set -} -daeString -findCharacterReverse(daeString string, daeChar stopChar) -{ - if (string == NULL) - return NULL; - daeString cur = string + strlen(string)-1; - while((cur >= string) && (*cur != stopChar)) - cur--; - - if ((cur >= string) && (*cur == stopChar)) - return cur; - - return NULL; -} -daeString -findCharacter(daeString string, daeChar stopChar) -{ - if (string == NULL) - return NULL; - daeString end = string + strlen(string); - daeString cur = string; - while((*cur != stopChar) && (cur < end)) - cur++; - - if (*cur == stopChar) - return cur; - - return NULL; -} -daeString safeCreate(daeString src) -{ - if (src == NULL) - return NULL; - daeChar* ret = (daeChar*)daeMemorySystem::malloc("uri",strlen(src)+1); - if (ret == NULL) - return NULL; - strcpy(ret,src); - - return ret; -} -void safeDelete(daeString src) -{ - if(src != NULL) - { - daeMemorySystem::free("uri",(void*)src); - src = NULL; - } - -} -void -daeURI::setURI(daeString _URIString) -{ -//Contributed by Nus - Wed, 08 Nov 2006 - // Nus: Checking for existing string. - if(originalURIString && _URIString) { - if(strcmp(originalURIString, _URIString) == 0) - return; - } - // Nus: If the string exist, delete it first. - if(originalURIString) { - safeDelete(originalURIString); - originalURIString = NULL; - } -//--------------------------- - originalURIString = safeCreate(_URIString); - internalSetURI(_URIString); -} -daeChar *validScheme(daeString uri_string) -{ - // attempt to find a valid scheme in a string - // Failure to find a scheme returns a NULL, success returns the position of the terminating : - - // First character must be alpha, fail if it's not - if(!isalpha(*uri_string)) - return(NULL); - - // Advance to the next character - uri_string++; - - // Scheme must be at least two (valid) characters long, so go through this loop at least once - do - { - // If the character is NOT alpha, digit, +, - or . then this isn't a valid scheme - // Note this also fails if we encounter a null terminator before hitting the first : - if(!(isalpha(*uri_string) || isdigit(*uri_string) || *uri_string == '.' || *uri_string == '+' || *uri_string == '-')) - return(NULL); - uri_string++; - } while(*uri_string != ':' ); - - return((daeChar *)uri_string); -} -void -daeURI::internalSetURI(daeString _URIString) -{ - daeChar* tmp; - - // Store the originalURI so you can fix it post Reset - daeString oURI = originalURIString; - originalURIString = NULL; - - // Reset everything - reset(); - - // Fix original URI String - originalURIString = oURI; - - uriString = safeCreate(_URIString); - - tmp = (daeChar*)daeMemorySystem::malloc("tmp",strlen(_URIString)+1); - if ((uriString == NULL)||(tmp == NULL)) - return; - strcpy(tmp,uriString); - - daeChar* curSrc = tmp; - -#if 1 - // Check for a scheme, two or more characters followed by a : - -// daeChar* colon = (daeChar*)findCharacter(curSrc,':'); - - daeChar* colon = validScheme(curSrc); - -// if(colon && (colon-tmp >= 2 )) - if(colon) - { - // Found a scheme, remember it (protocol should be named scheme) - *colon = '\0'; - protocol = safeCreate(curSrc); - // Advance the current pointer past the colon - curSrc = colon+1; - } - - // Check for a net path containing an authority, this would begin with // - - if(curSrc[0] == '/' && curSrc[1] == '/') - { - // Advance past the double slash to where the authority would start, then find the next slash - curSrc = curSrc + 2; - daeChar* slash = (daeChar*)findCharacter(curSrc,'/'); - // Temporarily remove that slash (avoids some branches) - if ( slash != NULL ) { - *slash = '\0'; - } - // Save the text between the slashes as the authority - authority = safeCreate(curSrc); - // Put the slash back and advance the current pointer to it, this puts us at the start of the path - if (slash != NULL ) { - *slash = '/'; - curSrc = slash; - } - } - - // Search backwards from the end of the URI for the # which denotes the fragment (called ID here) - daeChar* idSymbol = (daeChar*)findCharacterReverse(curSrc,'#'); - if (idSymbol != NULL) - { - // There was a fragment, isolate it by changing the # to a null - *idSymbol = '\0'; - idSymbol++; - } - id = safeCreate(idSymbol); - - // Search backwards for the last / in the path, everything after is the filename - - daeChar* fname = (daeChar*)findCharacterReverse(curSrc,'/'); - daeChar* dir; - if (fname == NULL) - { - // No / found, so the whole thing is the file name and there is no path - fname = curSrc; - dir = NULL; - } - else - { - // Found a slash, so the filename starts after it and dir starts at curSrc - fname++; - dir = curSrc; - } - file = safeCreate(fname); - - // Pull the extension (if any) off of the filepath - - daeString extStr = findCharacterReverse(fname,'.'); - if (extStr != NULL) - extension = safeCreate(extStr+1); - - // Now pull off the directory path if it exists by putting a zero at the beginning of fname, this insures filepath will end in a slash - - if(fname != NULL) *fname = 0; - filepath = safeCreate(dir); - - state = uri_loaded; - daeMemorySystem::free("tmp",tmp); - -#else - daeBool isAbsolute; - daeChar* colon = (daeChar*)findCharacter(curSrc,':'); - - // IS ABSOLUTE REFERENCE - if (colon && (strlen(colon) > 2) && (colon[1] == '/') && (colon[2] == '/')) - { - *colon = '\0'; - protocol = safeCreate(curSrc); - curSrc = colon+3; - daeString hosttmp = curSrc; - daeChar* slash = (daeChar*)findCharacter(curSrc,'/'); - if (slash != NULL) - { - *slash = '\0'; - authority = safeCreate(hosttmp); - curSrc = slash+1; - } - isAbsolute = true; - } - else { - protocol = NULL; - isAbsolute = false; - } - - // Look for the # which denotes the fragment (called ID here) - daeChar* idSymbol = (daeChar*)findCharacterReverse(curSrc,'#'); - if (idSymbol != NULL) - { - // There was a fragment, isolate it by changing the # to a null - *idSymbol = '\0'; - idSymbol++; - } - - daeChar* dir = NULL; - daeChar* fname = (daeChar*)findCharacterReverse(curSrc,'/'); - if (fname == NULL) - fname = curSrc; - else { - *fname = '\0'; - fname++; - dir = curSrc; - } - - filepath = safeCreate(dir); - int dirLen = (int)strlen(filepath); - - // append a '/' - if ((filepath != NULL) && (dirLen > 0) && - (filepath[dirLen-1] != '/')) { - daeMemorySystem::free("uri",(void*)filepath); - filepath = (daeString)daeMemorySystem::malloc("uri", dirLen+2); - strcpy((daeChar*)filepath,dir); - *((daeChar*)filepath+dirLen) = '/'; - *((daeChar*)filepath+dirLen+1) = '\0'; - } - - file = safeCreate(fname); - id = safeCreate(idSymbol); - - daeString extStr = findCharacterReverse(fname,'.'); - if (extStr != NULL) - extension = safeCreate(extStr+1); - - state = uri_loaded; - daeMemorySystem::free("tmp",tmp); -#endif -} - -void -daeURI::print() -{ - fprintf(stderr,"URI(%s)\n",uriString); - fprintf(stderr,"protocol = %s\n",protocol); - fprintf(stderr,"authority = %s\n",authority); - fprintf(stderr,"path = %s\n",filepath); - fprintf(stderr,"file = %s\n",file); - fprintf(stderr,"id = %s\n",id); - fprintf(stderr,"URI without base = %s\n",originalURIString); - fflush(stderr); -} - -const char* protoString = "://"; -const char* hostString = "/"; -const char* queryString = "#"; -const char* filepathString = "/"; - -daeString -daeURI::getURI() const -{ - return uriString; -} - -daeString -daeURI::getOriginalURI() const -{ - return originalURIString; -} - -void -daeURI::validate(daeURI* baseURI) -{ - // If no base URI was supplied, get the application base and use it - if (baseURI == NULL) - { - if ( container == NULL || (baseURI = container->getDocumentURI()) == NULL ) { - baseURI = getBaseURI(); - } - if (this == baseURI ) { - return; - } - } - -#if 1 - // This is rewritten according to the updated rfc 3986 - if((protocol != NULL) && (strlen(protocol)>0)) // if defined(R.scheme) then - { - // Everything stays the same except path which we normalize - // T.scheme = R.scheme; - // T.authority = R.authority; - // T.path = remove_dot_segments(R.path); - // T.query = R.query; - normalizeURIPath((char *)filepath); - if ( (file == NULL) || (strlen(file)==0) ) { - //safeDelete(file); - //safeDelete(extension); - //file = safeCreate(baseURI->file); - //extension = safeCreate(baseURI->extension); - } - } - else - { - if((authority != NULL) && (strlen(authority)>0)) // if defined(R.authority) then - { - // Authority and query stay the same, path is normalized - // T.authority = R.authority; - // T.path = remove_dot_segments(R.path); - // T.query = R.query; - normalizeURIPath((char *)filepath); - if ( (file == NULL) || (strlen(file)==0) ) { - //safeDelete(file); - //safeDelete(extension); - //file = safeCreate(baseURI->file); - //extension = safeCreate(baseURI->extension); - } - } - else - { - if(((filepath == NULL) || (strlen(filepath)==0)) && ((file == NULL) || (strlen(file)==0))) // if (R.path == "") then - { - // T.path = Base.path; - safeDelete(filepath); - safeDelete(file); - safeDelete(extension); - filepath = safeCreate(baseURI->filepath); - file = safeCreate(baseURI->file); - extension = safeCreate(baseURI->extension); - // We don't handle querys, but if we did - //if defined(R.query) then - // T.query = R.query; - //else - // T.query = Base.query; - //endif; - } - else - { - if((filepath != NULL) && (*filepath == '/')) //if (R.path starts-with "/") then - { - // T.path = remove_dot_segments(R.path); - normalizeURIPath((char *)filepath); - } - else - { - //T.path = merge(Base.path, R.path); - daeChar* newPath; - if((strlen(baseURI->authority) != 0) && (strlen(baseURI->filepath)==0) && (strlen(baseURI->file) == 0)) //authority defined, path empty - { - newPath = (daeChar*)daeMemorySystem::malloc("uri", strlen(filepath) + 2); - *newPath = '/'; - *(newPath+1) = 0; - strcat(newPath,filepath); - } - else - { - size_t l = 0; - if ( filepath != NULL ) { - l = strlen(filepath); - } - newPath = (daeChar*)daeMemorySystem::malloc("uri", strlen(baseURI->filepath) + l + 1); - *newPath = 0; - strcat(newPath,baseURI->filepath); - if ( filepath != NULL ) { - strcat(newPath,filepath); - } - else { - strcat(newPath,""); - } - } - //T.path = remove_dot_segments(T.path); - normalizeURIPath(newPath); - safeDelete(filepath); - filepath = newPath; - } - // T.query = R.query; - } - // T.authority = Base.authority; - safeDelete(authority); - authority = safeCreate(baseURI->authority); - } - // T.scheme = Base.scheme; - safeDelete(protocol); - protocol = safeCreate(baseURI->protocol); - } - // T.fragment = R.fragment; - - // Now for the purpose of maintaining the class members, we reassemble all this into a string version of the URI - size_t len = 0; - if ( protocol != NULL ) { - len += strlen(protocol); - } - if ( authority != NULL ) { - len += strlen(authority); - } - if ( filepath != NULL ) { - len += strlen(filepath); - } - if ( file != NULL ) { - len += strlen(file); - } - if ( queryString != NULL ) { - len += strlen(queryString); - } - if ( id != NULL ) { - len += strlen(id); - } - daeChar* newURI = (daeChar*) - daeMemorySystem::malloc("uri", len + 4 ); - *newURI = 0; - - if(protocol != NULL && *protocol != 0) - { - strcat(newURI, protocol); - strcat(newURI, ":"); - } - strcat(newURI, "//"); - if(authority != NULL && *authority != 0) - { - strcat(newURI, authority); - } - if(filepath != NULL) - strcat(newURI, filepath); - if(file != NULL) - strcat(newURI, file); - - if(id != NULL && *id != 0) - { - strcat(newURI,"#"); - strcat(newURI,id); - } - // This becomes the new uriString, no need to call internalSetUri because all the class members are up to date - safeDelete(uriString); - uriString = newURI; - state = uri_pending; - - if ( container != NULL && container->getDocumentURI() != NULL ) { - daeString fp = container->getDocumentURI()->getFilepath(); - daeString f = container->getDocumentURI()->getFile(); - if ( strcmp( fp, filepath ) != 0 || strcmp( f, file ) != 0 ) { - //external reference - container->getDocument()->addExternalReference( *this ); - external = true; - } - else if ( external ) { - //was external but now isn't - container->getDocument()->removeExternalReference( *this ); - external = false; - } - } - -#else - // RFC 2396 part 5.2 step 3, if the scheme (protocol here) is defined we are done, otherwise inherit the base URI's protocol - if ((protocol == NULL)||(strlen(protocol)==0)) - { - // Make a copy of the base's protocol, not a reference to it - safeDelete(protocol); - protocol = safeCreate(baseURI->protocol); - // part 5.2 step 4, if the authority is defined we skip to step 7, otherwise inherit the base URI's authority - if((authority == NULL) || (strlen(authority)== 0)) - { - // Make a copy of the base's authority, not a reference to it - safeDelete(authority); - authority = safeCreate(baseURI->authority); - // part 5.2 step 5 if the path part (filepath here) begins with a slash we skip to step 7, otherwise resolve the relative path against the base - if((filepath == NULL) || (*filepath != '/')) - { - // part 5.2 step 2, if scheme, authority and path are all empty, this is a reference to the current doc - // COLLADA DOM wants this to resolve to the URI of the document + the fragment - // To make this happen we have the URI inherit the file part of the base (if present) and the path - if( ((filepath == NULL) || (strlen(filepath)==0)) && // filepath empty - ((file == NULL) || (strlen(file)==0)) && // file empty - ((baseURI->file != NULL) && (strlen(baseURI->file) > 0))) // baseURI file NOT empty - { - // inherit the base's filename - safeDelete(file); - file = safeCreate(baseURI->file); - } - // part 5.2 step 6, resolving a relative path reference - // note that in this implementation the filepath does not contain the last segment (the filename.ext) - // Allocate enough memory to hold the merged path - daeChar* newPath = (daeChar*)daeMemorySystem::malloc( - "uri", - strlen(baseURI->filepath) + - strlen(filepath) + 1); - *newPath = 0; - // part 5.2 step 6(a) copy the baseURI filepath to the buffer - strcat(newPath,baseURI->filepath); - // part 5.2 step 6(b) copy this URI's filepath to the buffer - if(*filepath != 0) - { - strcat(newPath,filepath); - } - // part 5.2 step 6(c-g) normalize the new path - normalizeURIPath(newPath); - // part 5.2 step 6(h) replace the old filepath with the new path - safeDelete(filepath); - filepath = newPath; - } - } - // part 5.2 step 7 assemble the final complete URI - // Allocate memory to hold the assembled version of the URI - daeChar* newURI = (daeChar*) - daeMemorySystem::malloc( - "uri", - strlen(protocol) + // really scheme - 1 + // space for ":" - strlen(authority) + // really authority - 2 + // space for "//" - strlen(filepath) + // path without the filename - strlen(file) + // filename part of the path - strlen(queryString) + // "#" - strlen(id) + // really fragment - 1); // terminating zero - *newURI = 0; - if(protocol != NULL && *protocol != 0) - { - strcat(newURI, protocol); - strcat(newURI, ":"); - } - if(authority != NULL && *authority != 0) - { - strcat(newURI, authority); - } - strcat(newURI, "//"); - if(filepath != NULL) - strcat(newURI, filepath); - if(file != NULL) - strcat(newURI, file); - if(id != NULL && *id != 0) - { - strcat(newURI,"#"); - strcat(newURI,id); - } - // Reset the URI to the new one - // Just setting the uriString would probably be enough - internalSetURI(newURI); - daeMemorySystem::free("uri",newURI); - } - state = uri_pending; - -#endif -#if 0 - // If there is no protocol, assume this is a relative URI that needs to be resolved against the base - if ((protocol == NULL)||(strlen(protocol)==0)) - { - // !!!GAC if the base URI contains a file and this uri does not, copy it over (why??) - if (((baseURI->file != NULL) && (strlen(baseURI->file)>0)) && - ((file == NULL)||(strlen(file)==0))) - { - if (file != NULL) - safeDelete(file); - file = safeCreate(baseURI->file); - } - - // !!!GAC this is a quick and dirty attempt to get the relative URIs properly resolved and the internal - // !!!GAC paths normalized. This code should be rewritten when there's time, I wanted to get this up quick - // !!!GAC so we could test the rest of the system to make sure handing it "correct" URIs doesn't break things. - - // Start by allocating memory and putting together just the path component - daeChar* newPath = (daeChar*) - daeMemorySystem::malloc( - "tmp", - strlen(baseURI->filepath) + - strlen(filepathString) + - strlen(filepath) + - strlen(filepathString) + - strlen(file)+1); - *newPath = 0; - strcat(newPath,baseURI->filepath); - strcat(newPath,filepathString); // !!!GAC this may put in an extra / but if it does the normalization will fix it - if(*filepath != 0) - { - strcat(newPath,filepath); // !!!GAC only do this if filepath is not empty - strcat(newPath,filepathString); // !!!GAC only do this if filepath is not empty - } - strcat(newPath,file); - // Normalize the path according to RFC 2396 (removes extra /, .., . and so on) - normalizeURIPath(newPath); - // !!!GAC Allocate memory for the complete URI and assemble it - daeChar* newURI = (daeChar*) - daeMemorySystem::malloc( - "tmp", - strlen(baseURI->protocol) + - strlen(protoString) + - strlen(authority) + - strlen(hostString) + - strlen(newPath) + - strlen(queryString) + - strlen(id)+1); - *newURI = 0; - strcat(newURI,baseURI->protocol); // Should be called "scheme" from RFC 2396 - strcat(newURI,protoString); - strcat(newURI,authority); // Should be called "authority" -// strcat(newURI,hostString); // !!!GAC not necessary, path always begins with a / - strcat(newURI,newPath); - if(strlen(id) != 0) - { - // !!!GAC don't append the #id unless it's needed (bug 297) - strcat(newURI,queryString); - strcat(newURI,id); - } - internalSetURI(newURI); - daeMemorySystem::free("tmp",newPath); - daeMemorySystem::free("tmp",newURI); - } - state = uri_pending; -#endif -} - -void -daeURI::resolveElement(daeString typeNameHint) -{ - if (state == uri_empty) - return; - - if (state == uri_loaded) { - if (container != NULL) - validate(container->getDocumentURI()); - else - validate(); - } - daeURIResolver::attemptResolveElement(*((daeURI*)this), typeNameHint ); -} - -void -daeURI::resolveURI() -{ - // !!!GAC bug 486, there used to be code here that just returned if state was uri_empty or uri_resolve_local this has been removed. - if (element != NULL) - { - // !!!GAC bug 388 and 421, need to add a fragment (#) before the ID (was setURI(element->getID())) - if(element->getID() == NULL || element->getID()[0] == 0) - { - // We can't resolve to an element that has no ID, so if the ID is blank, fail and return - state = uri_failed_invalid_reference; - return; - } - daeChar* newID = (daeChar*)daeMemorySystem::malloc("tmp",strlen(element->getID())+2); - strcpy(newID,"#"); - strcat(newID,element->getID()); - // !!!GAC We have to save element and container because setURI clears them for some reason - daeElementRef elementSave = element; - setURI(newID); - // !!!GAC Hopefully, calling validate like below is the right thing to do to get the full URI resolution - element = elementSave; - validate(element->getDocumentURI()); - element = elementSave; - daeMemorySystem::free("tmp",newID); - state = uri_success; // !!!GAC The element pointer and the URI should agree now, so set success - } - else - { - state = uri_failed_invalid_reference; - } -} - -daeBool daeURI::getPath(daeChar *dest, daeInt size) -{ - - if( file == NULL ) - { - //printf("****** %s : %s\n", uriString, originalURIString); - return false; - } - *dest = 0; - int lenPath = 0; - if ( filepath != NULL ) lenPath = (int)strlen(filepath); - int lenFile = (int)strlen(file); - - int len = lenPath + lenFile; - if (len < size) - { - if ( filepath != NULL ) { - strcpy(dest,filepath); - } - strcat(dest,file); - return true; - } - else - return false; -} - -void -daeURIResolver::attemptResolveElement(daeURI& uri, daeString typeNameHint) -{ - int i; - int cnt =(int) _KnownResolvers().getCount(); - - for(i=0;iisProtocolSupported(uri.getProtocol()))&& - ((uri.getFile() == NULL) || - (uri.getFile()[0] == '\0') || - (_KnownResolvers()[i]->isExtensionSupported(uri.getExtension()))) && - (_KnownResolvers()[i]->resolveElement(uri, typeNameHint))) - return; -} - -void -daeURIResolver::attemptResolveURI(daeURI& uri) -{ - int i,cnt = (int)_KnownResolvers().getCount(); - - daeBool foundProtocol = false; - for(i=0;iisProtocolSupported(uri.getProtocol())) { - foundProtocol = true; - if (_KnownResolvers()[i]->resolveURI(uri)) - return; - } -#if defined(_DEBUG) && defined(WIN32) - char msg[256]; - sprintf(msg,"daeURIResolver::attemptResolveURI(%s) - failed\n", uri.getURI()); - daeErrorHandler::get()->handleWarning( msg ); -#endif - - if (!foundProtocol) { - uri.setState(daeURI::uri_failed_unsupported_protocol); -#if defined(_DEBUG) && defined(WIN32) - char msg[128]; - sprintf(msg,"**protocol '%s' is not supported**\n",uri.getProtocol()); - daeErrorHandler::get()->handleWarning( msg ); -#endif - } - else { -#if defined(_DEBUG) && defined(WIN32) - char msg[256]; - sprintf(msg,"**file(%s/%s) or id(%s) failed to resolve\n", - uri.getFilepath(),uri.getFile(),uri.getID()); - daeErrorHandler::get()->handleWarning( msg ); -#endif - } - -} - -daeBool daeURIResolver::_loadExternalDocuments = true; - -daeURIResolver::daeURIResolver() -{ - _KnownResolvers().append((daeURIResolver*)this); -} - -daeURIResolver::~daeURIResolver() -{ - _KnownResolvers().remove((daeURIResolver*)this); -} -// This code is loosely based on the RFC 2396 normalization code from -// libXML. Specifically it does the RFC steps 6.c->6.g from section 5.2 -// The path is modified in place, there is no error return. -void daeURI::normalizeURIPath(char *path) -{ - char - *cur, // location we are currently processing - *out; // Everything from this back we are done with - - // Return if the path pointer is null - - if (path == NULL) return; - - // Skip any initial / characters to get us to the start of the first segment - - for(cur=path; *cur == '/'; cur++); - - // Return if we hit the end of the string - - if (*cur == 0) return; - - // Keep everything we've seen so far. - - out = cur; - - // Analyze each segment in sequence for cases (c) and (d). - - while (*cur != 0) - { - // (c) All occurrences of "./", where "." is a complete path segment, are removed from the buffer string. - - if ((*cur == '.') && (*(cur+1) == '/')) - { - cur += 2; - // If there were multiple slashes, skip them too - while (*cur == '/') cur++; - continue; - } - - // (d) If the buffer string ends with "." as a complete path segment, that "." is removed. - - if ((*cur == '.') && (*(cur+1) == 0)) - break; - - // If we passed the above tests copy the segment to the output side - - while (*cur != '/' && *cur != 0) - { - *(out++) = *(cur++); - } - - if(*cur != 0) - { - // Skip any occurrances of // at the end of the segment - - while ((*cur == '/') && (*(cur+1) == '/')) cur++; - - // Bring the last character in the segment (/ or a null terminator) into the output - - *(out++) = *(cur++); - } - } - - *out = 0; - - // Restart at the beginning of the first segment for the next part - - for(cur=path; *cur == '/'; cur++); - if (*cur == 0) return; - - // Analyze each segment in sequence for cases (e) and (f). - // - // e) All occurrences of "/../", where is a - // complete path segment not equal to "..", are removed from the - // buffer string. Removal of these path segments is performed - // iteratively, removing the leftmost matching pattern on each - // iteration, until no matching pattern remains. - // - // f) If the buffer string ends with "/..", where - // is a complete path segment not equal to "..", that - // "/.." is removed. - // - // To satisfy the "iterative" clause in (e), we need to collapse the - // string every time we find something that needs to be removed. Thus, - // we don't need to keep two pointers into the string: we only need a - // "current position" pointer. - // - bool trew = true; - while (trew) - { - char *segp, *tmp; - - // At the beginning of each iteration of this loop, "cur" points to - // the first character of the segment we want to examine. - - // Find the end of the current segment. - - for(segp = cur;(*segp != '/') && (*segp != 0); ++segp); - - // If this is the last segment, we're done (we need at least two - // segments to meet the criteria for the (e) and (f) cases). - - if (*segp == 0) - break; - - // If the first segment is "..", or if the next segment _isn't_ "..", - // keep this segment and try the next one. - - ++segp; - if (((*cur == '.') && (cur[1] == '.') && (segp == cur+3)) - || ((*segp != '.') || (segp[1] != '.') - || ((segp[2] != '/') && (segp[2] != 0)))) - { - cur = segp; - continue; - } - - // If we get here, remove this segment and the next one and back up - // to the previous segment (if there is one), to implement the - // "iteratively" clause. It's pretty much impossible to back up - // while maintaining two pointers into the buffer, so just compact - // the whole buffer now. - - // If this is the end of the buffer, we're done. - - if (segp[2] == 0) - { - *cur = 0; - break; - } - - // Strings overlap during this copy, but not in a bad way, just avoid using strcpy - - tmp = cur; - segp += 3; - while ((*(tmp++) = *(segp++)) != 0); - - // If there are no previous segments, then keep going from here. - - segp = cur; - while ((segp > path) && (*(--segp) == '/')); - - if (segp == path) - continue; - - // "segp" is pointing to the end of a previous segment; find it's - // start. We need to back up to the previous segment and start - // over with that to handle things like "foo/bar/../..". If we - // don't do this, then on the first pass we'll remove the "bar/..", - // but be pointing at the second ".." so we won't realize we can also - // remove the "foo/..". - - for(cur = segp;(cur > path) && (*(cur-1) != '/'); cur--); - } - - *out = 0; - - // g) If the resulting buffer string still begins with one or more - // complete path segments of "..", then the reference is - // considered to be in error. Implementations may handle this - // error by retaining these components in the resolved path (i.e., - // treating them as part of the final URI), by removing them from - // the resolved path (i.e., discarding relative levels above the - // root), or by avoiding traversal of the reference. - // - // We discard them from the final path. - - if (*path == '/') - { - for(cur=path; (*cur == '/') && (cur[1] == '.') && (cur[2] == '.') && ((cur[3] == '/') || (cur[3] == 0)); cur += 3); - - if (cur != path) - { - for(out=path; *cur != 0; *(out++) = *(cur++)); - - *out = 0; - } - } - return; -} -// This function will take a resolved URI and create a version of it that is relative to -// another existing URI. The new URI is stored in the "originalURI" -int daeURI::makeRelativeTo(daeURI* relativeToURI) -{ - if( getState() == uri_empty || relativeToURI->getState() == uri_empty ) - return(DAE_ERR_INVALID_CALL); - if( getState() == uri_loaded ) - { - if (container != NULL) - validate(container->getDocumentURI()); - else - validate(); - } - if( relativeToURI->getState() == uri_loaded ) - { - if (relativeToURI->getContainer() != NULL) - relativeToURI->validate(relativeToURI->getContainer()->getDocumentURI()); - else - relativeToURI->validate(); - } - - - // Can only do this function if both URIs have the same scheme and authority - - if((strcmp(getProtocol(), relativeToURI->getProtocol()) != 0) || (strcmp(getAuthority(), relativeToURI->getAuthority()) != 0)) - return(DAE_ERR_INVALID_CALL); // !!!GAC Need to assign a real error code to this - - // advance till we find a segment that doesn't match - - const char *this_filepath = getFilepath(); - const char *relativeTo_filepath = relativeToURI->getFilepath(); - const char *this_slash = this_filepath; - const char *relativeTo_slash = relativeTo_filepath; - - while(*this_filepath == *relativeTo_filepath) - { - if(*this_filepath == '/') - { - this_slash = this_filepath; - relativeTo_slash = relativeTo_filepath; - } - this_filepath++; - relativeTo_filepath++; - } - - // Decide how many ../ segments are needed (Filepath should always end in a /) - int segment_count = 0; - relativeTo_slash++; - while(*relativeTo_slash != 0) - { - if(*relativeTo_slash == '/') - segment_count ++; - relativeTo_slash++; - } - this_slash++; - // Delete old URI string - safeDelete(originalURIString); - // Allocate memory for a new "originalURI" and free the old one - char *newRelativeURI; - if ( getID() == NULL ) - { - newRelativeURI = (char*) daeMemorySystem::malloc("uri",strlen(this_slash)+ strlen(file)+(segment_count*3)+1); - } - else - { - newRelativeURI = (char*) daeMemorySystem::malloc("uri",strlen(this_slash)+ strlen(file)+(segment_count*3)+strlen(id)+2); - } - char *temp = newRelativeURI; - for(int i = 0; i < segment_count; i++) - { - strcpy(temp,"../"); - temp += 3; - } - strcpy(temp,this_slash); - strcat(temp,file); - if(id!=NULL && strlen(getID()) != 0) - { - strcat(temp,"#"); - strcat(temp,getID()); - } - originalURIString = newRelativeURI; - return(DAE_OK); -} - -void daeURIResolver::setAutoLoadExternalDocuments( daeBool load ) -{ - _loadExternalDocuments = load; -} - -daeBool daeURIResolver::getAutoLoadExternalDocuments() -{ - return _loadExternalDocuments; -} - diff --git a/Extras/COLLADA_DOM/src/dae/dae_vc8.vcproj b/Extras/COLLADA_DOM/src/dae/dae_vc8.vcproj deleted file mode 100644 index 5c0685a10..000000000 --- a/Extras/COLLADA_DOM/src/dae/dae_vc8.vcproj +++ /dev/null @@ -1,463 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Extras/COLLADA_DOM/src/dae/domAny.cpp b/Extras/COLLADA_DOM/src/dae/domAny.cpp deleted file mode 100644 index 5c89d7ecf..000000000 --- a/Extras/COLLADA_DOM/src/dae/domAny.cpp +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -daeElementRef -domAny::create(daeInt bytes) -{ - domAnyRef ref = new(bytes) domAny; - return ref; -} - - -daeMetaElement * -domAny::registerElement() -{ - //if ( _Meta != NULL ) return _Meta; - daeMetaElement *_Meta = new daeMetaElement; - _Meta->setName( "any" ); - //_Meta->setStaticPointerAddress(&domAny::_Meta); - _Meta->registerClass(domAny::create); - _Meta->setIsInnerClass( true ); - - daeMetaCMPolicy *cm = NULL; - cm = new daeMetaSequence( _Meta, cm, 0, 1, 1 ); - - cm = new daeMetaAny( _Meta, cm, 0, 0, -1 ); - cm->getParent()->appendChild( cm ); // sthomas - cm = cm->getParent(); - - cm->setMaxOrdinal( 0 ); - _Meta->setCMRoot( cm ); - _Meta->setAllowsAny( true ); - - _Meta->addContents(daeOffsetOf(domAny,_contents)); - _Meta->addContentsOrder(daeOffsetOf(domAny,_contentsOrder)); - - //VALUE - { - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( "_value" ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( daeOffsetOf( domAny , _value )); - ma->setContainer( _Meta ); - _Meta->appendAttribute(ma); - } - - _Meta->setElementSize(sizeof(domAny)); - _Meta->validate(); - - return _Meta; -} - -//daeMetaElement * domAny::_Meta = NULL; - -daeBool domAny::setAttribute(daeString attrName, daeString attrValue) { - if (_meta == NULL) - return false; - - //if the attribute already exists set it. - daeMetaAttributeRefArray& metaAttrs = _meta->getMetaAttributes(); - int n = (int)metaAttrs.getCount(); - int i; - for(i=0;igetName() != NULL) && (strcmp(metaAttrs[i]->getName(),attrName)==0)) { - if (metaAttrs[i]->getType() != NULL) { - metaAttrs[i]->set(this,attrValue); - _validAttributeArray[i] = true; - } - return true; - } - } - //else register it and then set it. - if ( n >= MAX_ATTRIBUTES ) { - daeErrorHandler::get()->handleWarning( "domAny::setAttribute() - too many attributes on this domAny. The maximum number of attributes allowed is MAX_ATTRIBUTES" ); - return false; - } - daeMetaAttribute *ma = new daeMetaAttribute; - ma->setName( attrName ); - ma->setType( daeAtomicType::get("xsString")); - ma->setOffset( (daeInt)daeOffsetOf( domAny , attrs[n] )); - ma->setContainer( _meta ); - _meta->appendAttribute(ma); - _validAttributeArray.append( true ); - if (metaAttrs[i]->getType() != NULL) { - metaAttrs[i]->set(this,attrValue); - return true; - } - - return false; -} - - diff --git a/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/LIBXMLPlugin_vc8.vcproj b/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/LIBXMLPlugin_vc8.vcproj deleted file mode 100644 index 8e9436fcd..000000000 --- a/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/LIBXMLPlugin_vc8.vcproj +++ /dev/null @@ -1,311 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp b/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp deleted file mode 100644 index 5c7e6d807..000000000 --- a/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp +++ /dev/null @@ -1,920 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -// This is a rework of the XML plugin that contains a complete interface to libxml2 "readXML" -// This is intended to be a seperate plugin but I'm starting out by rewriting it in daeLIBXMLPlugin -// because I'm not sure if all the plugin handling stuff has been tested. Once I get a working -// plugin I'll look into renaming it so the old daeLIBXMLPlugin can coexist with it. -// -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -daeLIBXMLPlugin::daeLIBXMLPlugin():topMeta(NULL),database(NULL) -{ - xmlInitParser(); -} - -daeLIBXMLPlugin::~daeLIBXMLPlugin() -{ - xmlCleanupParser(); -} - -daeInt daeLIBXMLPlugin::setMeta(daeMetaElement *_topMeta) -{ - topMeta = _topMeta; - return DAE_OK; -} - -void daeLIBXMLPlugin::setDatabase(daeDatabase* _database) -{ - database = _database; -} - -void daeLIBXMLPlugin::getProgress(daeInt* bytesParsed, - daeInt* lineNumber, - daeInt* totalBytes, - daeBool reset) -{ - // Need to interface this to libxml - if (reset) - { - //daeChunkBuffer::resetProgress(); - } -#if LIBXML_VERSION >= 20620 - if (bytesParsed) - *bytesParsed= 0; //xmlTextReaderByteConsumed(reader); // Not sure if this is the right data - if (lineNumber) - *lineNumber = 0; //xmlTextReaderGetParserLineNumber(reader); -#else - if (bytesParsed) - *bytesParsed= 0; - if (lineNumber) - *lineNumber = 0; -#endif - if (totalBytes) - *totalBytes = 0; // Not available -} -// This function needs to be re-entrant, it can be called recursively from inside of resolveAll -// to load files that the first file depends on. -daeInt daeLIBXMLPlugin::read(daeURI& uri, daeString docBuffer) -{ - // Make sure topMeta has been set before proceeding - - if (topMeta == NULL) - { - return DAE_ERR_BACKEND_IO; - } - - // Generate a version of the URI with the fragment removed - - daeURI fileURI(uri.getURI(),true); - - //check if document already exists - if ( database->isDocumentLoaded( fileURI.getURI() ) ) - { - return DAE_ERR_COLLECTION_ALREADY_EXISTS; - } - - // Create the right type of xmlTextReader on the stack so this function can be re-entrant - - xmlTextReaderPtr reader; - - if(docBuffer) - { - // Load from memory (experimental) -#if 0 //debug stuff - printf("Reading %s from memory buffer\n", fileURI.getURI()); -#endif - reader = xmlReaderForDoc((xmlChar*)docBuffer, fileURI.getURI(), NULL,0); - } - else - { - // Load from URI -#if 0 //debug stuff - printf("Opening %s\n", fileURI.getURI()); -#endif - reader = xmlReaderForFile(fileURI.getURI(), NULL,0); - } - - if(!reader) - { - char msg[512]; - sprintf( msg, "Failed to open %s\n", fileURI.getURI() ); - daeErrorHandler::get()->handleError( msg ); - return DAE_ERR_BACKEND_IO; - } - - // Start parsing the file - - daeElementRef domObject = startParse(topMeta, reader); - - // Parsing done, free the xmlReader and error check to make sure we got a valid DOM back - - xmlFreeTextReader(reader); - - if (!domObject) - { - char msg[512]; - sprintf(msg,"daeLIBXMLPlugin::read(%s) failed - XML Parse Failed\n",fileURI.getFile()); - daeErrorHandler::get()->handleError( msg ); - return DAE_ERR_BACKEND_IO; - } - - // Insert the document into the database, the Database will keep a ref on the main dom, so it won't gets deleted - // until we clear the database - - daeDocument *document = NULL; - - int res = database->insertDocument(fileURI.getURI(),domObject,&document); - if (res!= DAE_OK) - return res; - - // Make a vector to store a list of the integration items that need to be processed later - // postProcessDom will fill this in for us (this should probably not be done in the IOPlugin) - - std::vector intItems; - - //insert the elements into the database, for this DB the elements are the Collada object which have - //an ID. - //this function will fill the _integrationItems array as well - postProcessDom(document, domObject, intItems); - database->validate(); - daeElement::resolveAll(); - - //create the integration objects - int size = (int)intItems.size(); - int i; - for (i=0;icreateFromChecked(intItems[i].element); - - for (i=0;ifromCOLLADAChecked(); - - for (i=0;ifromCOLLADAPostProcessChecked(); - - //clear the temporary integration items array - intItems.clear(); - - return DAE_OK; -} -daeElementRef -daeLIBXMLPlugin::startParse(daeMetaElement* thisMetaElement, xmlTextReaderPtr reader) -{ - // The original parsing system would drop everything up to the first element open, usually - // This behavior will have to be replicated here till we have someplace to put the headers/comments - - int ret = xmlTextReaderRead(reader); - if(ret != 1) - { - // empty or hit end of file - return NULL; - } - //printf("xmlTextReaderConstBaseUri is %s\n",xmlTextReaderConstBaseUri(reader)); - //printf("xmlTextReaderConstNamespaceUri is %s\n",xmlTextReaderConstNamespaceUri(reader)); - //printf("xmlTextReaderConstPrefix is %s\n",xmlTextReaderConstPrefix(reader)); - //printf("xmlTextReaderName is %s\n",xmlTextReaderName(reader)); - - // Process the current element - // Skip over things we don't understand - while(xmlTextReaderNodeType(reader) != XML_READER_TYPE_ELEMENT) - { - ret = xmlTextReaderRead(reader); - if(ret != 1) - return(NULL); - } - - // Create the element that we found - daeElementRef element = thisMetaElement->create((const daeString)xmlTextReaderConstName(reader)); - if(!element) - { - char err[512]; - memset( err, 0, 512 ); - const xmlChar * mine =xmlTextReaderConstName(reader); -#if LIBXML_VERSION >= 20620 - sprintf(err,"The DOM was unable to create an element type %s at line %d\nProbably a schema violation.\n", mine,xmlTextReaderGetParserLineNumber(reader)); -#else - sprintf(err,"The DOM was unable to create an element type %s\nProbably a schema violation.\n", mine); -#endif - daeErrorHandler::get()->handleWarning( err ); - xmlTextReaderNext(reader); - return NULL; - } - int currentDepth = xmlTextReaderDepth(reader); - - //try and read attributes - readAttributes( element, reader ); - -#if 1 - //Check COLLADA Version - if ( strcmp( element->getTypeName(), "COLLADA" ) != 0 ) { - //invalid root - daeErrorHandler::get()->handleError("Loading document with invalid root element!"); - return NULL; - } - daeURI *xmlns = (daeURI*)(element->getMeta()->getMetaAttribute( "xmlns" )->getWritableMemory( element )); - if ( strcmp( xmlns->getURI(), COLLADA_NAMESPACE ) != 0 ) { - //invalid COLLADA version - daeErrorHandler::get()->handleError("Trying to load an invalid COLLADA version for this DOM build!"); - return NULL; - } -#endif - - - ret = xmlTextReaderRead(reader); - // If we're out of data, return the element - if(ret != 1) - return(element); - - // Read all the tags that are part of this tag - bool trew = true; - while(trew) - { - int thisType = xmlTextReaderNodeType(reader); - if(thisType == XML_READER_TYPE_ELEMENT) - { - // Is the new element at the same depth as this one? - if(currentDepth == xmlTextReaderDepth(reader)) - { - // Same depth means the current element ended in a /> so this is a sibling - // so we return and let our parent process it. - return(element); - } - else - { - // The element is a child of this one, so we recurse - if(!element->placeElement(nextElement(element->getMeta(), reader))) - { - char err[512]; - memset( err, 0, 512 ); -#if LIBXML_VERSION >= 20620 - sprintf(err,"placeElement failed at line %d\n", xmlTextReaderGetParserLineNumber(reader)); -#else - sprintf(err,"placeElement failed\n"); -#endif - daeErrorHandler::get()->handleWarning(err); - ret = xmlTextReaderRead(reader); - if ( ret != 1 ) { - return element; - } - } - } - } - else if(thisType == XML_READER_TYPE_TEXT) - { - readValue( element, reader ); - } - else if(thisType == XML_READER_TYPE_END_ELEMENT) - { - // Done with this element so read again and return - ret = xmlTextReaderRead(reader); - return(element); - } - else - { // Skip element types we don't care about - ret = xmlTextReaderRead(reader); - // If we're out of data, return the element - if(ret != 1) - return(element); - } - } - // Return NULL on an error - return NULL; -} - -void daeLIBXMLPlugin::readAttributes( daeElement *element, xmlTextReaderPtr reader ) { - // See if the element has attributes - if(xmlTextReaderHasAttributes(reader)) - { - // Read in and set all the attributes - while(xmlTextReaderMoveToNextAttribute(reader)) - { - daeMetaAttribute *ma = element->getMeta()->getMetaAttribute((const daeString)xmlTextReaderConstName(reader)); - if( ( ma != NULL && ma->getType() != NULL && ma->getType()->getUsesStrings() ) || - strcmp(element->getMeta()->getName(), "any") == 0 ) - { - // String is used as one piece - if(!element->setAttribute( (const daeString)xmlTextReaderConstName(reader), - (const daeString)xmlTextReaderConstValue(reader) ) ) - { - const xmlChar * attName = xmlTextReaderConstName(reader); - const xmlChar * attValue = xmlTextReaderConstValue(reader); - char err[512]; - memset( err, 0, 512 ); -#if LIBXML_VERSION >= 20620 - sprintf(err,"The DOM was unable to create an attribute %s = %s at line %d\nProbably a schema violation.\n", attName, attValue ,xmlTextReaderGetParserLineNumber(reader)); -#else - sprintf(err,"The DOM was unable to create an attribute %s = %s \nProbably a schema violation.\n", attName, attValue); -#endif - daeErrorHandler::get()->handleWarning( err ); - } - } - else - { - // String needs to be broken up into whitespace seperated items. The "set" methods for numbers are smart enough to - // grab just the first number in a string, but the ones for string lists require a null terminator between each - // string. If this could be fixed we could avoid a copy and memory allocation by using xmlTextReaderConstValue(reader) - if ( ma == NULL ) { - const xmlChar * attName = xmlTextReaderConstName(reader); - const xmlChar * attValue = xmlTextReaderConstValue(reader); - char err[512]; - memset( err, 0, 512 ); -#if LIBXML_VERSION >= 20620 - sprintf(err,"The DOM was unable to create an attribute %s = %s at line %d\nProbably a schema violation.\n", attName, attValue ,xmlTextReaderGetParserLineNumber(reader)); -#else - sprintf(err,"The DOM was unable to create an attribute %s = %s \nProbably a schema violation.\n", attName, attValue); -#endif - daeErrorHandler::get()->handleWarning( err ); - continue; - } - xmlChar* value = xmlTextReaderValue(reader); - daeChar* current = (daeChar *)value; - while(*current != 0) - { - // !!!GAC NEEDS TO BE CHANGED to use XML standard whitespace parsing - // Skip leading whitespace - while(*current == ' ' || *current == '\r' || *current == '\n' || *current == '\t') current++; - if(*current != 0) - { - daeChar* start=current; - // Find end of string and insert a zero terminator - while(*current != ' ' && *current != '\r' && *current != '\n' && *current != '\t' && *current != 0) current++; - if(*current != 0) - { - *current = 0; - current++; - } - if(!element->setAttribute( (const daeString)xmlTextReaderConstName(reader), start) ) - { - const xmlChar * attName = xmlTextReaderConstName(reader); - const xmlChar * attValue = xmlTextReaderConstValue(reader); - char err[512]; - memset( err, 0, 512 ); -#if LIBXML_VERSION >= 20620 - sprintf(err,"The DOM was unable to create an attribute %s = %s at line %d\nProbably a schema violation.\n", attName, attValue ,xmlTextReaderGetParserLineNumber(reader)); -#else - sprintf(err,"The DOM was unable to create an attribute %s = %s \nProbably a schema violation.\n", attName, attValue); -#endif - daeErrorHandler::get()->handleWarning( err ); - } - } - } - //rather leak than break compilers (CodeBlocks/MinGW) - //xmlFree(value); - } - } - } -} - -void daeLIBXMLPlugin::readValue( daeElement *element, xmlTextReaderPtr reader ) { - if ( element->getMeta()->getValueAttribute() == NULL ) { - char err[512]; - memset( err, 0, 512 ); -#if LIBXML_VERSION >= 20620 - sprintf(err,"The DOM was unable to set a value for element of type %s at line %d\nProbably a schema violation.\n", element->getTypeName() ,xmlTextReaderGetParserLineNumber(reader)); -#else - sprintf(err,"The DOM was unable to set a value for element of type %s at line %d\nProbably a schema violation.\n", element->getTypeName() ); -#endif - daeErrorHandler::get()->handleWarning( err ); - } - else if(element->getMeta()->getUsesStringContents()) - { - // String is used as one piece - element->getMeta()->getValueAttribute()->set(element,(const daeString)xmlTextReaderConstValue(reader)); - } - else - { - // String needs to be broken up into whitespace seperated items. The "set" methods for numbers are smart enough to - // grab just the first number in a string, but the ones for string lists require a null terminator between each - // string. If this could be fixed we could avoid a copy and memory allocation by using xmlTextReaderConstValue(reader) - xmlChar* value = xmlTextReaderValue(reader); - daeChar* current = (daeChar *)value; - while(*current != 0) - { - // !!!GAC NEEDS TO BE CHANGED to use XML standard whitespace parsing - // Skip leading whitespace - while(*current == ' ' || *current == '\r' || *current == '\n' || *current == '\t') current++; - if(*current != 0) - { - daeChar* start=current; - // Find end of string and insert a zero terminator - while(*current != ' ' && *current != '\r' && *current != '\n' && *current != '\t' && *current != 0) current++; - if(*current != 0) - { - *current = 0; - current++; - } - element->getMeta()->getValueAttribute()->set(element,start); - // eat the characters we just read (would be nice if set returned characters used. - } - } - //rather leak than break compilers (CodeBlocks/MinGW) - //xmlFree(value); - } - int ret = xmlTextReaderRead(reader); - assert(ret==1); -} - - - -daeElementRef -daeLIBXMLPlugin::nextElement(daeMetaElement* thisMetaElement, xmlTextReaderPtr reader) -{ - int ret; - // Process the current element - // Skip over things we don't understand - while(xmlTextReaderNodeType(reader) != XML_READER_TYPE_ELEMENT) - { - ret = xmlTextReaderRead(reader); - if(ret != 1) - return(NULL); - } - - // Create the element that we found - daeElementRef element = thisMetaElement->create((const daeString)xmlTextReaderConstName(reader)); - if(!element) - { - const xmlChar * mine =xmlTextReaderConstName(reader); - char err[512]; - memset( err, 0, 512 ); -#if LIBXML_VERSION >= 20620 - sprintf(err,"The DOM was unable to create an element type %s at line %d\nProbably a schema violation.\n", mine,xmlTextReaderGetParserLineNumber(reader)); -#else - sprintf(err,"The DOM was unable to create an element type %s\nProbably a schema violation.\n", mine); -#endif - daeErrorHandler::get()->handleWarning( err ); - xmlTextReaderNext(reader); - return NULL; - } - int currentDepth = xmlTextReaderDepth(reader); - - //try and read attributes - readAttributes( element, reader ); - - ret = xmlTextReaderRead(reader); - // If we're out of data, return the element - if(ret != 1) - return(element); - - // Read all the tags that are part of this tag - bool trew = true; - while(trew) - { - int thisType = xmlTextReaderNodeType(reader); - if(thisType == XML_READER_TYPE_ELEMENT) - { - // Is the new element at the same depth as this one? - if(currentDepth == xmlTextReaderDepth(reader)) - { - // Same depth means the current element ended in a /> so this is a sibling - // so we return and let our parent process it. - return(element); - } - else - { - // The element is a child of this one, so we recurse - daeElementRef newEl = nextElement(element->getMeta(), reader); - if( newEl != NULL && !element->placeElement(newEl) ) - { - char err[512]; - memset( err, 0, 512 ); - sprintf(err,"placeElement failed placing element %s in element %s\n", newEl->getTypeName(), element->getTypeName() ); - daeErrorHandler::get()->handleWarning( err ); - ret = xmlTextReaderRead(reader); - if ( ret != 1 ) { - return element; - } - } - } - } - else if(thisType == XML_READER_TYPE_TEXT) - { - readValue( element, reader ); - } - else if(thisType == XML_READER_TYPE_END_ELEMENT) - { - // Done with this element so read again and return - ret = xmlTextReaderRead(reader); - return(element); - } - else - { // Skip element types we don't care about - ret = xmlTextReaderRead(reader); - // If we're out of data, return the element - if(ret != 1) - return(element); - } - } - //program will never get here but this line is needed to supress a warning - return NULL; -} -// postProcessDom traverses all elements below the passed in one and creates a list of all the integration objects. -// this should probably NOT be done in the IO plugin. -void daeLIBXMLPlugin::postProcessDom(daeDocument *document, daeElement* element, std::vector &intItems) -{ - // Null element? Return - - if (!element) - return; - - //element->setDocument(document); - // If this element has an integration object, add it to a list so we can process them all in a bunch later - - if (element->getIntObject(daeElement::int_uninitialized)) - { - INTEGRATION_ITEM item; - item.element = element; - item.intObject = element->getIntObject(daeElement::int_uninitialized); - intItems.push_back(item); - } - - // Recursively call postProcessDom on all of this element's children - daeElementRefArray children; - element->getChildren( children ); - for ( size_t x = 0; x < children.getCount(); x++ ) { - postProcessDom(document, children.get(x), intItems); - } - - /*if (element->getMeta()->getContents() != NULL) { - daeMetaElementArrayAttribute *contents = element->getMeta()->getContents(); - for ( int i = 0; i < contents->getCount( element ); i++ ) { - //array.append( *(daeElementRef*)contents->get( this, i ) ); - daeElementRef elem = *(daeElementRef*)contents->get(element,i); - postProcessDom(document,elem, intItems); - } - } - else - { - daeMetaElementAttributeArray& children = element->getMeta()->getMetaElements(); - int cnt = (int)children.getCount(); - for(int i=0;igetCount(element); - int j; - for(j=0;jget(element,j); - postProcessDom(document,elem, intItems); - } - } - }*/ -} - -daeInt daeLIBXMLPlugin::write(daeURI *name, daeDocument *document, daeBool replace) -{ - // Make sure database and document are both set - if (!database) - return DAE_ERR_INVALID_CALL; - if(!document) - return DAE_ERR_COLLECTION_DOES_NOT_EXIST; - - // Extract just the file path from the URI - daeFixedName finalname; - if (!name->getPath(finalname,sizeof(finalname))) - { - daeErrorHandler::get()->handleError( "can't get path in write\n" ); - return DAE_ERR_BACKEND_IO; - } - - // If replace=false, don't replace existing files - if(!replace) - { - // Using "stat" would be better, but it's not available on all platforms - FILE *tempfd = fopen(finalname,"r"); - if(tempfd != NULL) - { - // File exists, return error - fclose(tempfd); - return DAE_ERR_BACKEND_FILE_EXISTS; - } - } - - // Open the file we will write to - writer = xmlNewTextWriterFilename(name->getURI(), 0); - if ( !writer ) { - char msg[512]; - sprintf(msg,"daeLIBXMLPlugin::write(%s) failed\n",name->getURI()); - daeErrorHandler::get()->handleError( msg ); - return DAE_ERR_BACKEND_IO; - } - xmlChar indentString[10] = " "; - xmlTextWriterSetIndentString( writer, indentString ); - xmlTextWriterSetIndent( writer, 1 ); - xmlTextWriterStartDocument( writer, NULL, NULL, NULL ); - - writeElement( document->getDomRoot() ); - - xmlTextWriterEndDocument( writer ); - xmlTextWriterFlush( writer ); - xmlFreeTextWriter( writer ); - return DAE_OK; -} - -void daeLIBXMLPlugin::writeElement( daeElement* element ) -{ - daeIntegrationObject* _intObject = element->getIntObject(); - daeMetaElement* _meta = element->getMeta(); - if(_intObject) - { - // added in response to bug 478 - _intObject->toCOLLADAChecked(); - _intObject->toCOLLADAPostProcessChecked(); - } - if (!_meta->getIsTransparent() ) { - if ( element->getElementName() ) { - xmlTextWriterStartElement(writer, (xmlChar*)element->getElementName()); - } - else { - xmlTextWriterStartElement(writer, (xmlChar*)(daeString)_meta->getName()); - } - daeMetaAttributeRefArray& attrs = _meta->getMetaAttributes(); - - int acnt = (int)attrs.getCount(); - - for(int i=0;igetValueAttribute(); - if (valueAttr!=NULL) - writeAttribute(valueAttr, element); - - daeElementRefArray children; - element->getChildren( children ); - for ( size_t x = 0; x < children.getCount(); x++ ) { - writeElement( children.get(x) ); - } - - /*if (_meta->getContents() != NULL) { - daeElementRefArray* era = (daeElementRefArray*)_meta->getContents()->getWritableMemory(element); - int elemCnt = (int)era->getCount(); - for(int i = 0; i < elemCnt; i++) { - daeElementRef elem = (daeElementRef)era->get(i); - if (elem != NULL) { - writeElement( elem ); - } - } - } - else - { - daeMetaElementAttributeArray& children = _meta->getMetaElements(); - int cnt = (int)children.getCount(); - for(int i=0;igetElementType(); - if ( !type->getIsAbstract() ) { - for (int c = 0; c < children[i]->getCount(element); c++ ) { - writeElement( *(daeElementRef*)children[i]->get(element,c) ); - } - } - } - }*/ - if (!_meta->getIsTransparent() ) { - xmlTextWriterEndElement(writer); - } -} - -#define TYPE_BUFFER_SIZE 1024*1024 - -/*void daeLIBXMLPlugin::writeAttribute( daeMetaAttribute* attr, daeElement* element, daeInt attrNum ) -{ - static daeChar atomicTypeBuf[TYPE_BUFFER_SIZE]; - - if (element == NULL) - return; - if ( attr->getCount(element) == 0 ) { - //we don't have a value if its required print it empty else just skip - if ( attr->getIsRequired() ) { - xmlTextWriterStartAttribute( writer, (xmlChar*)(daeString)attr->getName() ); - xmlTextWriterEndAttribute( writer ); - } - return; - } - else if ( attr->getCount(element) == 1 ) { - //single value or an array of a single value - char* elemMem = attr->get(element, 0); - - // !!!GAC recoded the suppression logic so you could enable suppressions individually - if(!attr->getIsRequired()) - { - // This attribute was not required and might get suppressed - int typeSize = attr->getType()->getSize(); - if(attr->getDefault() != NULL) - { - #if 1 - // The attribute has a default, convert the default to binary and suppress - // output of the attribute if the value matches the default. - // DISABLE THIS CODE IF YOU WANT DEFAULT VALUES TO ALWAYS EXPORT - if(typeSize >= TYPE_BUFFER_SIZE) - { - char msg[512]; - sprintf(msg, - "daeMetaAttribute::print() - buffer too small for default value of %s in %s\n", - (daeString)attr->getName(),(daeString)attr->getContainer()->getName()); - daeErrorHandler::get()->handleError( msg ); - return; - } - attr->getType()->stringToMemory((daeChar*)attr->getDefault(),atomicTypeBuf); - if(memcmp(atomicTypeBuf,elemMem,typeSize) == 0) - return; - #endif - } - else - { - #if 0 - // The attribute does not have a default, suppress it if its value is all zeros (binary) - // DISABLE THIS CODE IF YOU WANT OPTIONAL ATTRIBUTES THAT HAVE A VALUE OF ZERO TO EXPORT - // Disabling this code may cause some unused attributes to be exported if _isValid is not - // enabled and properly used. - int i; - for(i=0; igetContainer()->getValueAttribute() != attr && - attr->getType()->getTypeEnum() != daeAtomicType::BoolType && - attr->getType()->getTypeEnum() != daeAtomicType::EnumType ) - return; - #endif - if ( attrNum != -1 && !element->isAttributeSet( attr->getName() ) ) { - return; - } - } - } - - // Convert the attribute to a string - - if (attr->getType()->memoryToString(elemMem, atomicTypeBuf, TYPE_BUFFER_SIZE)== false) { - char msg[512]; - sprintf(msg, - "daeMetaAttribute::print() - buffer too small for %s in %s\n", - (daeString)attr->getName(),(daeString)attr->getContainer()->getName()); - daeErrorHandler::get()->handleError( msg ); - } - - // Suppress attributes that convert to an empty string. - - if (strlen(atomicTypeBuf) == 0) - return; - - // Is this a value attribute or something else? - - if (attr->getContainer()->getValueAttribute() == attr) - { - // Always export value attributes - xmlTextWriterWriteString( writer, (xmlChar*)atomicTypeBuf); - } - else - { - // Suppress attributes not marked as containing valid values - // DO NOT TURN THIS ON TILL ALL USER CODE HAS BEEN CHANGED TO SET _isValid OR - // ATTRIBUTES THAT WERE CREATED/SET BY USER CODE MAY NOT EXPORT. - #if 0 - // NOTE: even if a value is marked REQUIRED by the schema, if _isValid isn't true it means - // the value in this parameter was never set and may be garbage, so we suppress it even though it is required. - // To change this add && !_isRequired to the expression below. - if(!attr->getIsValid() ) - return; - #endif - // Export the attribute name and value - xmlTextWriterWriteAttribute( writer, (xmlChar*)(daeString)attr->getName(), (xmlChar*)atomicTypeBuf); - } - } - else { - if (attr->getContainer()->getValueAttribute() != attr) - { - xmlTextWriterStartAttribute( writer, (xmlChar*)(daeString)attr->getName() ); - } - for( int i = 0; i < attr->getCount(element); i++ ) { - char* elemMem = attr->get(element, i); - if (attr->getType()->memoryToString(elemMem, atomicTypeBuf, TYPE_BUFFER_SIZE)== false) - { - char msg[512]; - sprintf(msg, - "daeMetaArrayAttribute::print() - buffer too small for %s in %s\n", - (daeString)attr->getName(),(daeString)attr->getContainer()->getName()); - daeErrorHandler::get()->handleError( msg ); - } - xmlTextWriterWriteFormatString( writer, "%s ", (xmlChar*)atomicTypeBuf ); - } - if (attr->getContainer()->getValueAttribute() != attr) - { - xmlTextWriterEndAttribute( writer ); - } - } -}*/ - -void daeLIBXMLPlugin::writeAttribute( daeMetaAttribute* attr, daeElement* element, daeInt attrNum ) -{ - static daeChar atomicTypeBuf[TYPE_BUFFER_SIZE+1]; - daeChar *buf = atomicTypeBuf; - daeUInt bufSz = TYPE_BUFFER_SIZE; - - size_t valCount = attr->getCount(element); - //default values will not check correctly if they are arrays. Luckily there is only one array attribute in COLLADA. - //don't write if !required and is set && is default - - int typeSize = attr->getType()->getSize(); - if ( typeSize >= TYPE_BUFFER_SIZE ) - { - char msg[512]; - sprintf(msg, - "daeMetaAttribute::print() - buffer too small for %s in %s\n", - (daeString)attr->getName(),(daeString)attr->getContainer()->getName()); - daeErrorHandler::get()->handleError( msg ); - return; - } - - if ( !attr->isArrayAttribute() && ( attr->getType()->getTypeEnum() == daeAtomicType::StringRefType || - attr->getType()->getTypeEnum() == daeAtomicType::TokenType ) && - *(char**)attr->getWritableMemory( element ) != NULL ) - { - daeUInt sz = (daeUInt)strlen( *(char**)attr->getWritableMemory( element ) ) +1; - if ( bufSz > TYPE_BUFFER_SIZE ) { - buf = new char[ bufSz ]; - bufSz = sz; - } - } - - //always print value - if ( attrNum != -1 ) - { - //not value attribute - if ( !attr->getIsRequired() ) - { - //not required - if ( !element->isAttributeSet( attr->getName() ) ) - { - //early out if !value && !required && !set - return; - } - - //is set - //check for default suppression - if ( attr->getDefault() != NULL ) - { - //has a default value - attr->getType()->stringToMemory( (daeChar*)attr->getDefault(), buf ); - char* elemMem = attr->get( element, 0 ); - if( memcmp( buf, elemMem, typeSize ) == 0 ) - { - //is the default value so exit early - return; - } - } - - //not default so print - xmlTextWriterStartAttribute( writer, (xmlChar*)(daeString)attr->getName() ); - } - else { - //print it because its required - xmlTextWriterStartAttribute( writer, (xmlChar*)(daeString)attr->getName() ); - } - } - if (valCount>0) - { - //do val 0 first then space and the rest of the vals. - char* elemMem = attr->get( element, 0 ); - attr->getType()->memoryToString( elemMem, buf, bufSz ); - if ( buf[0] != 0 ) //null string check - { - xmlTextWriterWriteString( writer, (xmlChar*)buf ); - } - - *buf = ' '; - for( size_t i = 1; i < valCount; i++ ) - { - elemMem = attr->get( element, (int)i ); - attr->getType()->memoryToString( elemMem, buf+1, bufSz ); - xmlTextWriterWriteString( writer, (xmlChar*)buf ); - } - } - if ( attrNum != -1 ) - { - xmlTextWriterEndAttribute( writer ); - } - if ( buf != atomicTypeBuf ) - { - delete[] buf; - } -} - diff --git a/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/daeLIBXMLResolver.cpp b/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/daeLIBXMLResolver.cpp deleted file mode 100644 index 6c0dc30ea..000000000 --- a/Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/daeLIBXMLResolver.cpp +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include -#include -#include -#include - -daeLIBXMLResolver::daeLIBXMLResolver(daeDatabase* database,daeIOPlugin* plugin) -{ - _database = database; - _plugin = plugin; -} - -daeLIBXMLResolver::~daeLIBXMLResolver() -{ -} - -daeBool -daeLIBXMLResolver::resolveURI(daeURI& uri) -{ - (void)uri; - return false; -} - -daeString -daeLIBXMLResolver::getName() -{ - return "XMLResolver"; -} - -daeBool -daeLIBXMLResolver::isExtensionSupported(daeString extension) -{ - if ((extension!=NULL) && - (strlen(extension) > 0) && - ((strncmp(extension,"xml",3)==0) || - (strncmp(extension,"XML",3)==0) || - (strncmp(extension,"DAE",3)==0) || - (strncmp(extension,"dae",3)==0))) - return true; - return false; -} - -daeBool -daeLIBXMLResolver::isProtocolSupported(daeString protocol) -{ - if ((protocol!=NULL) && - (strlen(protocol) > 0) && - ((strncmp(protocol,"file",4) == 0) || - (strncmp(protocol,"http",4) == 0))) - return true; - return false; -} - -daeBool -daeLIBXMLResolver::resolveElement(daeURI& uri, daeString typeNameHint) -{ - // Make sure the URI is validated - if (uri.getState() == daeURI::uri_loaded) - { - uri.validate(); - } - - daeElement* resolved = NULL; - int status; - - // Does the URI have a document reference? - if ( (uri.getFile() != NULL) && (strlen(uri.getFile())>0)) - { - // The URI contains a document reference, see if it is loaded and try to load it if it's not - if (!_database->isDocumentLoaded(uri.getURI())) { - if ( _loadExternalDocuments ) { - _plugin->read(uri,NULL); - } - else { - uri.setState( daeURI::uri_failed_external_document ); - return false; - } - } - // Try to find the id by searching this document only - status = _database->getElement(&resolved,0,uri.getID(),typeNameHint,uri.getURI()); - } - else - { - // The URI was just a fragment, so try to find it in the document that contains it. - // !!!GAC not sure if all these pointers will be set when we get here, so assert if any of them aren't - daeElement *tempElement = uri.getContainer(); - //assert(tempElement); - daeDocument *tempDocument; - if ( tempElement == NULL || (tempDocument = tempElement->getDocument()) == NULL ) { - uri.setState(daeURI::uri_failed_missing_container); - char msg[256]; - sprintf(msg, - "daeLIBXMLResolver::resolveElement() - failed to resolve %s\n", - uri.getURI()); - daeErrorHandler::get()->handleError( msg ); - return false; - } - //assert(tempDocument); - daeURI *tempURI = tempDocument->getDocumentURI(); - //assert(tempURI); - status = _database->getElement(&resolved,0,uri.getID(),typeNameHint,tempURI->getURI()); - } - - uri.setElement(resolved); - - // Error if we didn't successfully resolve the uri - - if (status ||(resolved==NULL)) - { - uri.setState(daeURI::uri_failed_id_not_found); - char msg[256]; - sprintf(msg, - "daeLIBXMLResolver::resolveElement() - failed to resolve %s\n", - uri.getURI()); - daeErrorHandler::get()->handleError( msg ); - return false; - } - - uri.setState(daeURI::uri_success); - return true; -} - - - - diff --git a/Extras/COLLADA_DOM/src/modules/STLDatabase/STLDatabase_vc8.vcproj b/Extras/COLLADA_DOM/src/modules/STLDatabase/STLDatabase_vc8.vcproj deleted file mode 100644 index a8ac245ae..000000000 --- a/Extras/COLLADA_DOM/src/modules/STLDatabase/STLDatabase_vc8.vcproj +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Extras/COLLADA_DOM/src/modules/STLDatabase/daeSTLDatabase.cpp b/Extras/COLLADA_DOM/src/modules/STLDatabase/daeSTLDatabase.cpp deleted file mode 100644 index b19c71591..000000000 --- a/Extras/COLLADA_DOM/src/modules/STLDatabase/daeSTLDatabase.cpp +++ /dev/null @@ -1,619 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include - -daeSTLDatabase::daeSTLDatabase() -{} - -daeSTLDatabase::~daeSTLDatabase() -{ - clear(); -} - -daeInt daeSTLDatabase::setMeta(daeMetaElement *_topMeta) -{ - topMeta = _topMeta; - return DAE_OK; -} - -daeBool -daeSTLDatabase::isDocumentLoaded(daeString name) -{ - daeDocument* document = getDocument(name); - if(document) - return(true); - else - return(false); -} - -// Element Types of all Elements -daeUInt daeSTLDatabase::getTypeCount() -{ - validate(); - return (daeUInt)elements.size(); -} - - -daeString daeSTLDatabase::getTypeName(daeUInt index) -{ - validate(); - daeUInt count = 0; - - std::map >::iterator iter = elements.begin(); - std::map >::iterator end = elements.end(); - while ( iter != end ) - { - if ( count == index ) - { - return (*iter).first.c_str(); - } - ++count; - ++iter; - } - - return NULL; -} - -// Documents -daeInt daeSTLDatabase::insertDocument(const char *name, daeElement* dom, daeDocument** document) -{ - return createDocument( name, dom, document ); -} -daeInt daeSTLDatabase::createDocument(const char *name, daeElement* dom, daeDocument** document) -{ - // If a document already exists with the same name, error - if(isDocumentLoaded(name)) - { - if (document) - *document = NULL; - return DAE_ERR_COLLECTION_ALREADY_EXISTS; - } - - // Make a new document - daeDocument *newDocument = new daeDocument; - // Create a Reference on the domCOLLADA passed into us - newDocument->setDomRoot(dom); - // Set the domCollada's document to this one - //dom->setDocument(newDocument); - // Set and resolve the document URI - newDocument->getDocumentURI()->setURI(name); - newDocument->getDocumentURI()->validate(); - //insertElement( newDocument, dom ); - newDocument->setModified(true); - // Push the connection into the database - documents.push_back(newDocument); - - if (document) - *document = newDocument; - - //check if an already loaded document has external references to this one and resolve them. - for ( unsigned int i = 0; i < documents.size(); i++ ) { - if ( documents[i] != newDocument ) { - documents[i]->resolveExternals( name ); - } - } - - return DAE_OK; -} -// !!!GAC revised version of insertDocument, creates a domCollada and fills it in for you. -daeInt daeSTLDatabase::insertDocument(const char *name, daeDocument** document) -{ - return createDocument( name, document ); -} -daeInt daeSTLDatabase::createDocument(const char *name, daeDocument** document) -{ - - // If a document already exists with the same name, error - if(isDocumentLoaded(name)) - { - if (document) - *document = NULL; - return DAE_ERR_COLLECTION_ALREADY_EXISTS; - } - // Make the new document - daeDocument *newDocument = new daeDocument; - // Make a domCOLLADA to be the root of this new document (this makes a reference so the domCOLLADA won't delete itself - daeElementRef myCOLLADA = topMeta->create(); - // Set the domCollada's document to this one - myCOLLADA->setDocument(newDocument); - newDocument->setDomRoot(myCOLLADA); - // Set and resolve the document URI - newDocument->getDocumentURI()->setURI(name); - newDocument->getDocumentURI()->validate(); - - newDocument->setModified(true); - // Add this document to the list. - documents.push_back(newDocument); - // If the user gave us a place to put the document, send it back to them. - if (document) - *document = newDocument; - - return DAE_OK; -} - -daeInt daeSTLDatabase::insertDocument( daeDocument *c ) { - documents.push_back(c); - insertElement( c, c->getDomRoot() ); - return DAE_OK; -} - -daeInt daeSTLDatabase::removeDocument(daeDocument *document) -{ - std::vector< daeDocument* >::iterator iter = documents.begin(); - while ( iter != documents.end() ) { - if ( (*iter) == document ) { - //delete all of its children - removeElement( *iter, (*iter)->getDomRoot() ); - delete *iter; // sthomas (see bug 1466019) - iter = documents.erase(iter); - } - else { - iter++; - } - } - return DAE_OK; -} - -daeUInt daeSTLDatabase::getDocumentCount() -{ - return (daeUInt)documents.size(); -} - -daeDocument* daeSTLDatabase::getDocument(daeUInt index) -{ - if (indexgetDocumentURI()->getURI(), targetURI)==0) - return(document); - } - return(NULL); -} - -daeString daeSTLDatabase::getDocumentName(daeUInt index) -{ - if (indexgetDocumentURI()->getURI(); - else - return NULL; -} - -// Elements -daeInt daeSTLDatabase::insertElement(daeDocument* document,daeElement* element) -{ - insertChildren( document, element ); - - std::map >::iterator iter = elements.find( std::string( element->getTypeName() ) ); - if ( iter != elements.end() ) - { - (*iter).second.push_back( element ); - } - else - { - std::vector< daeElement* > vec; - vec.push_back( element ); - elements.insert( std::make_pair( std::string( element->getTypeName() ), vec ) ); - } - - //insert into IDMap if element has an ID. IDMap is used to speed up URI resolution - if ( element->getID() != NULL ) { - elementsIDMap.insert( std::make_pair( std::string( element->getID() ), element ) ); - } - - return DAE_OK; -} - -daeInt daeSTLDatabase::insertChildren( daeDocument *c, daeElement *element ) -{ - daeElementRefArray era; - element->getChildren( era ); - for ( unsigned int i = 0; i < era.getCount(); i++ ) { - insertElement( c, era[i] ); - } - return DAE_OK; -} - -daeInt daeSTLDatabase::removeElement(daeDocument* document,daeElement* element) -{ - if ( !element ) { - return DAE_ERR_INVALID_CALL; - } - removeChildren( document, element ); - - std::map >::iterator iter = elements.find( std::string( element->getTypeName() ) ); - if ( iter != elements.end() ) - { - std::vector< daeElement* > &vec = (*iter).second; - std::vector< daeElement* >::iterator i = vec.begin(); - std::vector< daeElement* >::iterator end = vec.end(); - while( i != end ) - { - if ( (*i) == element ) - { - vec.erase( i ); - break; - } - ++i; - } - } - - if ( element->getID() != NULL ) { - std::pair< std::multimap::iterator, std::multimap::iterator> range; - range = elementsIDMap.equal_range( std::string( element->getID() ) ); - std::multimap::iterator iter = range.first; - while( iter != range.second ) { - if ( (*iter).second == element ) { - elementsIDMap.erase( iter ); - break; - } - ++iter; - } - } - return DAE_OK; -} - -daeInt daeSTLDatabase::removeChildren( daeDocument *c, daeElement *element ) -{ - daeElementRefArray era; - element->getChildren( era ); - for ( unsigned int i = 0; i < era.getCount(); i++ ) { - removeElement( c, era[i] ); - } - return DAE_OK; -} - - -daeInt daeSTLDatabase::clear() -{ - elements.clear(); - elementsIDMap.clear(); - int i; - for (i=0;i<(int)documents.size();i++) - delete documents[i]; - documents.clear(); //this will free the daeElement - return DAE_OK; -} - -daeUInt daeSTLDatabase::getElementCount(daeString name,daeString type,daeString file) -{ - validate(); - - // If none of the search keys was specified, return the total element count in the database - if ( !name && !type && !file ) - { - daeUInt count = 0; - std::map< std::string, std::vector< daeElement*> >::iterator iter = elements.begin(); - std::map< std::string, std::vector< daeElement*> >::iterator end = elements.end(); - while( iter != end ) - { - count += (daeUInt)(*iter).second.size(); - ++iter; - } - return count; - } - - if ( name ) - { - // name specified - int count = 0; - if ( file ) - { - // If a document URI was a search key (in file) resolve it to a text URI with no fragment - daeURI tempURI(file,true); - daeDocument *col = getDocument( tempURI.getURI() ); - if ( col == NULL ) { - return 0; - } - // a document was specified - std::pair< std::multimap< std::string, daeElement* >::iterator, std::multimap< std::string, daeElement* >::iterator > range; - range = elementsIDMap.equal_range( std::string( name ) ); - std::multimap< std::string, daeElement* >::iterator i = range.first; - while ( i != range.second ) - { - if ( col == (*i).second->getDocument() ) - { - count++; - } - ++i; - } - return count; - } - else - { - //no file specified - just name - return (daeUInt)elementsIDMap.count( std::string( name ) ); - } - } - - if ( type ) - { - // type specified - std::map< std::string, std::vector< daeElement*> >::iterator iter = elements.find( std::string( type ) ); - if ( iter == elements.end() ) - { - return 0; - } - - int count = 0; - if ( file ) - { - // If a document URI was a search key (in file) resolve it to a text URI with no fragment - daeURI tempURI(file,true); - daeDocument *col = getDocument( tempURI.getURI() ); - if ( col == NULL ) { - return 0; - } - // a document was specified - std::vector< daeElement* > &vec = (*iter).second; - std::vector< daeElement* >::iterator i = vec.begin(); - std::vector< daeElement* >::iterator end = vec.end(); - while( i != end ) - { - if ( col == (*i)->getDocument() ) - { - ++count; - } - ++i; - } - return count; - } - else - { - //no file specified - just type - return (daeUInt)(*iter).second.size(); - } - } - - //if you get here only a file was specified - daeURI tempURI(file,true); - daeDocument *col = getDocument( tempURI.getURI() ); - if ( col == NULL ) { - return 0; - } - //a document was specified - int count = 0; - std::map< std::string, std::vector< daeElement*> >::iterator iter = elements.begin(); - std::map< std::string, std::vector< daeElement*> >::iterator end = elements.end(); - while( iter != end ) - { - std::vector< daeElement* > &vec = (*iter).second; - std::vector< daeElement* >::iterator i = vec.begin(); - std::vector< daeElement* >::iterator end2 = vec.end(); - while( i != end2 ) - { - if( col == (*i)->getDocument() ) - { - ++count; - } - ++i; - } - ++iter; - } - return count; - -} - -daeInt daeSTLDatabase::getElement(daeElement** pElement,daeInt index,daeString name,daeString type,daeString file) -{ - // this sorts the vector if necessary - validate(); - - // If the index is out of range, there can be no match - if ( index < 0 ) - { - return DAE_ERR_QUERY_NO_MATCH; - } - - // If no name, type or file was specified we return the element at "index" - SLOW - if ( !name && !type && !file ) - { - daeUInt count = 0; - std::map< std::string, std::vector< daeElement*> >::iterator iter = elements.begin(); - std::map< std::string, std::vector< daeElement*> >::iterator end = elements.end(); - while( iter != end ) - { - count += (daeUInt)(*iter).second.size(); - if ( (daeInt)count > index ) - { - *pElement = (*iter).second[index - (count - (*iter).second.size())] ; - return DAE_OK; - } - ++iter; - } - return DAE_ERR_QUERY_NO_MATCH; - } - - if ( name ) - { - //name specified - int count = 0; - if ( file ) - { - // If a document URI was a search key (in file) resolve it to a text URI with no fragment - daeURI tempURI(file,true); - daeDocument *col = getDocument( tempURI.getURI() ); - if ( col == NULL ) { - *pElement = NULL; - return DAE_ERR_QUERY_NO_MATCH; - } - //a document was specified - std::pair< std::multimap< std::string, daeElement* >::iterator, std::multimap< std::string, daeElement* >::iterator> range; - range = elementsIDMap.equal_range( std::string( name ) ); - std::multimap< std::string, daeElement* >::iterator i = range.first; - while ( i != range.second ) - { - if ( col == (*i).second->getDocument() ) - { - if ( count == index ) - { - *pElement = (*i).second; - return DAE_OK; - } - count++; - } - ++i; - } - *pElement = NULL; - return DAE_ERR_QUERY_NO_MATCH; - } - else - { - //no document specified - std::multimap< std::string, daeElement* >::iterator i = elementsIDMap.find( std::string( name ) ); - if ( index > (daeInt)elementsIDMap.count( std::string( name ) ) || i == elementsIDMap.end() ) - { - *pElement = NULL; - return DAE_ERR_QUERY_NO_MATCH; - } - for ( int x = 0; x < index; x++ ) - { - ++i; - } - *pElement = i->second; - return DAE_OK; - } - } - - if ( type ) - { - std::map< std::string, std::vector< daeElement*> >::iterator iter = elements.find( std::string( type ) ); - if ( iter == elements.end() ) - { - *pElement = NULL; - return DAE_ERR_QUERY_NO_MATCH; - } - //type specified - int count = 0; - if ( file ) - { - // If a document URI was a search key (in file) resolve it to a text URI with no fragment - daeURI tempURI(file,true); - daeDocument *col = getDocument( tempURI.getURI() ); - if ( col == NULL ) { - return DAE_ERR_QUERY_NO_MATCH; - } - //a document was specified - // a document was specified - std::vector< daeElement* > &vec = (*iter).second; - std::vector< daeElement* >::iterator i = vec.begin(); - std::vector< daeElement* >::iterator end = vec.end(); - while( i != end ) - { - if ( col == (*i)->getDocument() ) - { - if ( count == index ) - { - *pElement = (*i); - return DAE_OK; - } - ++count; - } - ++i; - } - return DAE_ERR_QUERY_NO_MATCH; - } - else - { - //no document specified - if ( index >= (daeInt)(*iter).second.size() ) - { - *pElement = NULL; - return DAE_ERR_QUERY_NO_MATCH; - } - *pElement = (*iter).second[index]; - return DAE_OK; - } - } - - //if you get here only the file was specified - SLOW - daeURI tempURI(file,true); - daeDocument *col = getDocument( tempURI.getURI() ); - if ( col == NULL ) { - return DAE_ERR_QUERY_NO_MATCH; - } - //a document was specified - int count = 0; - std::map< std::string, std::vector< daeElement*> >::iterator iter = elements.begin(); - std::map< std::string, std::vector< daeElement*> >::iterator end = elements.end(); - while( iter != end ) - { - std::vector< daeElement* > &vec = (*iter).second; - std::vector< daeElement* >::iterator i = vec.begin(); - std::vector< daeElement* >::iterator end2 = vec.end(); - while( i != end2 ) - { - if( col == (*i)->getDocument() ) - { - if( count == index ) - { - *pElement = (*i); - return DAE_OK; - } - ++count; - } - ++i; - } - ++iter; - } - return DAE_ERR_QUERY_NO_MATCH; - -} - -// Generic Query -daeInt daeSTLDatabase::queryElement(daeElement** pElement, daeString genericQuery) -{ - (void)pElement; - (void)genericQuery; - return DAE_ERR_NOT_IMPLEMENTED; -} - -void daeSTLDatabase::validate() -{ - for( unsigned int i = 0; i < documents.size(); i++ ) { - if (documents[i]->getModified() ) { - daeDocument *tmp = documents[i]; - const daeElementRefArray &rea = tmp->getRemovedArray(); - unsigned int x; - for ( x = 0; x < rea.getCount(); x++ ) { - removeElement( tmp, rea[x] ); - } - - const daeElementRefArray &iea = tmp->getInsertedArray(); - for ( x = 0; x < iea.getCount(); x++ ) { - insertElement( tmp, iea[x] ); - } - - tmp->setModified(false); - } - } -} - diff --git a/Extras/COLLADA_DOM/src/modules/stdErrPlugin/stdErrPlugin.cpp b/Extras/COLLADA_DOM/src/modules/stdErrPlugin/stdErrPlugin.cpp deleted file mode 100644 index 15d520427..000000000 --- a/Extras/COLLADA_DOM/src/modules/stdErrPlugin/stdErrPlugin.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2006 Sony Computer Entertainment Inc. - * - * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://research.scea.com/scea_shared_source_license.html - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. See the License for the specific language governing permissions and limitations under the - * License. - */ - -#include -#include - -stdErrPlugin::stdErrPlugin() { -} - -stdErrPlugin::~stdErrPlugin() { -} - -void stdErrPlugin::handleError( daeString msg ) { - //fprintf( stderr, "Error: %s\n", msg ); - //fflush( stderr ); - printf( "Error: %s\n", msg ); -} - -void stdErrPlugin::handleWarning( daeString msg ) { - //fprintf( stderr, "Warning: %s\n", msg ); - //fflush( stderr ); - printf( "Warning: %s\n", msg ); -} diff --git a/Extras/COLLADA_DOM/src/modules/stdErrPlugin/stdErrPlugin_vc8.vcproj b/Extras/COLLADA_DOM/src/modules/stdErrPlugin/stdErrPlugin_vc8.vcproj deleted file mode 100644 index a7b17d0fa..000000000 --- a/Extras/COLLADA_DOM/src/modules/stdErrPlugin/stdErrPlugin_vc8.vcproj +++ /dev/null @@ -1,299 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Extras/LibXML/AUTHORS b/Extras/LibXML/AUTHORS deleted file mode 100644 index cf2e9a6fa..000000000 --- a/Extras/LibXML/AUTHORS +++ /dev/null @@ -1,5 +0,0 @@ -Daniel Veillard -Bjorn Reese -William Brack -Igor Zlatkovic for the Windows port -Aleksey Sanin diff --git a/Extras/LibXML/CMakeLists.txt b/Extras/LibXML/CMakeLists.txt deleted file mode 100644 index efca5b7a0..000000000 --- a/Extras/LibXML/CMakeLists.txt +++ /dev/null @@ -1,70 +0,0 @@ -INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/Extras/LibXML ${BULLET_PHYSICS_SOURCE_DIR}/Extras/LibXML/include -) - -# Prevent MSVC from moaning -ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS) -ADD_DEFINITIONS( -D_CRT_SECURE_NO_DEPRECATE) - - - -ADD_LIBRARY(XML - c14n.c - catalog.c - chvalid.c - debugXML.c - dict.c - DOCBparser.c - encoding.c - entities.c - error.c - globals.c - hash.c - HTMLparser.c - HTMLtree.c - list.c - nanoftp.c - nanohttp.c - parser.c - parserInternals.c - pattern.c - relaxng.c - SAX.c - SAX2.c - schematron.c - threads.c - tree.c - trio.c - trionan.c - triostr.c - uri.c - valid.c - xinclude.c - xlink.c - xmlIO.c - xmlmemory.c - xmlmodule.c - xmlreader.c - xmlregexp.c - xmlsave.c - xmlschemas.c - xmlschemastypes.c - xmlstring.c - xmlunicode.c - xmlwriter.c - xpath.c - xpointer.c -) - - -#INSTALL of other files requires CMake 2.6 -IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5) - IF(INSTALL_EXTRA_LIBS) - IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) - INSTALL(TARGETS XML DESTINATION .) - ELSE (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) - INSTALL(TARGETS XML DESTINATION lib) - INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/libxml DESTINATION include/libxml FILES_MATCHING PATTERN "*.h") - ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) - ENDIF (INSTALL_EXTRA_LIBS) -ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5) diff --git a/Extras/LibXML/COPYING b/Extras/LibXML/COPYING deleted file mode 100644 index db1c9663d..000000000 --- a/Extras/LibXML/COPYING +++ /dev/null @@ -1,27 +0,0 @@ -Except where otherwise noted in the source code (e.g. the files hash.c, -list.c and the trio files, which are covered by a similar licence but -with different Copyright notices) all the files are: - - Copyright (C) 1998-2003 Daniel Veillard. All Rights Reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is fur- -nished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT- -NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -DANIEL VEILLARD BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON- -NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of Daniel Veillard shall not -be used in advertising or otherwise to promote the sale, use or other deal- -ings in this Software without prior written authorization from him. - diff --git a/Extras/LibXML/ChangeLog b/Extras/LibXML/ChangeLog deleted file mode 100644 index f6b31ef0f..000000000 --- a/Extras/LibXML/ChangeLog +++ /dev/null @@ -1,17734 +0,0 @@ -Tue Jun 6 17:50:43 CEST 2006 Daniel Veillard - - * configure.ini NEWS doc//* libxml.spec.in : preparing release of 2.6.26 - -Tue Jun 6 17:25:23 CEST 2006 Kasimier Buchcik - - * xpath.c: Fixed self-invented a segfault in xmlXPathCtxtCompile(), - when the expression was not valid and @comp was NULL and I - tried to do the d-o-s rewrite. - -Tue Jun 6 15:19:57 CEST 2006 Daniel Veillard - - * configure.ini NEWS doc//* libxml.spec.in : preparing release of 2.6.25 - -Tue Jun 6 11:28:15 CEST 2006 Kasimier Buchcik - - * xpath.c: Enabled the compound traversal again; I added a - check to use this only if the have an expression starting - with the document node; so in the case of "//foo", we - already know at compilation-time, that there will be only - 1 initial context node. Added the rewrite also to - xmlXPathEvalExpr(). - -Tue Jun 6 10:23:10 CEST 2006 Daniel Veillard - - * xinclude.c: fix bug #343968, include='text' can't lead to a - recursion. - -Fri Jun 2 22:47:08 CEST 2006 Kasimier Buchcik - - * xpath.c: Disabled the compound traversal for the release; - I need first to assure that this is done only if we have - 1 initial node. - -Wed May 31 13:53:41 PST 2006 Aleksey Sanin - - * xpath.c: fixed memory leak in xpath error reporting - -Wed May 31 15:30:16 CEST 2006 Daniel Veillard - - * libxml.h triodef.h: applied patch from Olli Savia for LynxOS - -Wed May 31 14:33:00 CEST 2006 Kasimier Buchcik - - * xpath.c include/libxml/xpath.h runsuite.c: - Changed the name of the recently added public function - xmlXPathContextSetObjectCache() to - xmlXPathContextSetCache(); so a more generic one, in - case we decide to cache more things than only XPath - objects. - -Tue May 30 21:36:16 CEST 2006 Kasimier Buchcik - - * xpath.c: Optimized xmlXPathNodeCollectAndTest() and - xmlXPathNodeCollectAndTestNth() to evaluate a compound - traversal of 2 axes when we have a "//foo" expression. - This is done with a rewrite of the XPath AST in - xmlXPathRewriteDOSExpression(); I added an additional field - to xmlXPathStepOp for this (but the field's name should be - changed). The mechanism: the embracing descendant-or-self - axis traversal (also optimized to return only nodes which - can hold elements), will produce context nodes for the - inner traversal of the child axis. This way we avoid a full - node-collecting traversal of the descendant-or-self axis. - Some tests indicate that this can reduce execution time of - "//foo" to 50%. Together with the XPath object cache this - all significantly speeds up libxslt. - -Tue May 30 11:38:47 CEST 2006 Kasimier Buchcik - - * xmlschemas.c: A warning will now be reported in the value of - the XSD attribute 'schemaLocation' does not consist of tuples - (namespace-name, document-URI). A warning will be reported - if a schema document could not be found at the specified - location (via 'schemaLocation' or - 'noNamespaceSchemaLocation'). - * include/libxml/xmlerror.h: Added XML_SCHEMAV_MISC to - xmlParserErrors. - -Tue May 30 11:21:34 CEST 2006 Kasimier Buchcik - - * xpath.c: Enhanced xmlXPathNodeCollectAndTest() to avoid - recreation (if possible) of the node-set which is used to - collect the nodes in the current axis for the currect context - node. Especially for "//foo" this will decrease dramatically - the number of created node-sets, since for each node in the - result node-set of the evaluation of descendant-or-self::node() - a new temporary node-set was created. Added node iterator - xmlXPathNextChildElement() as a tiny optimization for - child::foo. - -Mon May 29 18:06:17 CEST 2006 Kasimier Buchcik - - * xpath.c include/libxml/xpath.h: Added an XPath object cache. - It sits on an xmlXPathContext and need to be explicitely - activated (or deactivated again) with - xmlXPathContextSetObjectCache(). The cache consists of 5 - lists for node-set, string, number, boolean and misc XPath - objects. Internally the xpath.c module will use object- - deposition and -acquisition functions which will try to reuse - as many XPath objects as possible, and fallback to normal - free/create behaviour if no cache is available or if the cache - is full. - * runsuite.c: Adjusted to deactivate the cache for XML Schema - tests if a cache-creation is turned on by default for the whole - library, e.g. for testing purposes of the cache. It is - deactivated here in order to avoid confusion of the memory leak - detection in runsuite.c. - -Wed May 24 10:54:25 CEST 2006 Kasimier Buchcik - - * xpath.c: Removed a memcpy if xmlXPathNodeSetMerge(); it - seems we really need to walk the whole list, since those - nastly namespace nodes need to be added with - xmlXPathNodeSetDupNs(); thus a pure memcpy is not possible. - A flag on the node-set indicating if namespace nodes are in - the set would help here; this is the 3rd flag which would - be usefull with node-sets. The current flags I have in mind: - 1) Is a node-set already sorted? - This would allow for rebust and optimizable sorting - behaviour. - 2) Of what type are the nodes in the set (or of mixed type)? - This would allow for faster merging of node-sets. - 3) Are namespace nodes in the set? - This would allow to skipp all the namespace node specific - special handling. Faster node-set merging if the first - set is empty; just memcpy the set. - -Mon May 22 17:14:00 CEST 2006 Kasimier Buchcik - - * xpath.c: Optimization of count(): eliminated sorting - (see bug #165547). Optimization of XPATH_OP_FILTER if the - predicate is a [1] (disable with XP_OPTIMIZED_FILTER_FIRST if - it produces trouble). Tiny opt in xmlXPathNodeSetMerge(). - -Mon May 22 13:33:12 CEST 2006 Rob Richards - - * tree.c: Revert behavior change in xmlSetProp to handle attributes - with colons in name and no namespace. - -Fri May 19 21:56:43 CEST 2006 Kasimier Buchcik - - * xpath.c: Substituted all remaining calls to xmlXPathCmpNodes() - for xmlXPathCmpNodesExt(). Tiny further enhancement of - xmlXPathCmpNodesExt(). Added additional checks in various code - parts to avoid calling sorting or merging functions if the - node-set(s) don't need them; i.e., if they are empty or contain - just one node. - -Fri May 19 13:16:58 CEST 2006 Kasimier Buchcik - - * xpath.c: Optimized the comparison for non-element nodes - in xmlXPathCmpNodesExt(); the comparison is used for sorting - of node-sets. This enhancement is related to bug #165547. - There are other places where the old comparison function - xmlXPathCmpNodes() is still called, but I currently don't - know exactly what those calls are for; thus if they can be - substituted (if it makes sense) for the new function. - -Tue May 16 16:55:13 CEST 2006 Kasimier Buchcik - - * xpath.c: Applied patch from Rob Richards, fixing a potential - memory leak in xmlXPathTryStreamCompile(), when a list of - namespaces was assigned to the XPath compilation context; - here a new namespace list was created and passed to - xmlPatterncompile(); but this list was not freed afterwards. - Additionally we avoid now in xmlXPathTryStreamCompile() to - compile the expression, if it has a colon - indicating - prefixed name tests - and no namespace list was given. The - streaming XPath mechanism needs a namespace list at - compilation time (unlike normal XPath, where we can bind - namespace names to prefixes at execution time). - * pattern.c: Enhanced to use a string dict for local-names, - ns-prefixes and and namespace-names. - Fixed xmlStreamPushInternal() not to use string-pointer - comparison if a dict is available; this won't work, since - one does not know it the given strings originate from the - same dict - and they normally don't do, since e.g. - namespaces are hold on xmlNs->href. I think this would be - worth an investigation: if we can add a @doc field to xmlNs - and put the @href in to a additionan namespace dict hold - in xmlDoc. Daniel will surely not like this idea :-) But - evaluation of tons of elements/attributes in namespaces - with xmlStrEqual() isn't the way we should go forever. - -Thu May 11 18:03:49 CEST 2006 Kasimier Buchcik - - * xmlschemas.c: Fixed bug #341337, reported by David Grohmann. - The code expected a node (xmlNodePtr) on the info for a - non-existent default attribute, which clearly cannot be - expected, since the attribute does not exist. I can only - guess that this sneaked trying to eliminate the query - for the owner-element, which is unavoidable actually. - Note that creation of default attributes won't have an - effect if validating via SAX/XMLReader; i.e., the processor - won't fire additional start-attribute events (I'm not even - sure if Libxml2 has such a SAX-event; I think it hands them - all over in the start-element event). - -Tue May 9 21:47:58 CEST 2006 Kasimier Buchcik - - * xmlschemas.c: Fixed bug #341150, reported by Michael Romer. - In xmlSchemaBuildContentModelForSubstGroup(), - xmlAutomataNewOnceTrans2() was incorrectly used instead of - xmlAutomataNewTransition2() to mimic a xs:choice for - substitution-groups. - * test/schemas/subst-group-1_1.xsd - test/schemas/subst-group-1_0.xml - result/schemas/subst-group-1_0_1 - result/schemas/subst-group-1_0_1.err: Added regression test - supplied by Michael Romer for bug #341150. - -Sat May 6 11:05:24 HKT 2006 William M. Brack - - * relaxng.c: Fixed compilation error with patch supplied by - Graham Bennett. - -Thu May 4 19:14:03 CEST 2006 Kasimier Buchcik - - * xmlschemas.c: We'll raise an internal error and stop - validation now when an entity is found in the instance - document, since we don't support automatic entity - substitution by the schema processor (yet?) - - see bug #340316, reported by Nick Wellnhofer. - -Wed May 3 15:16:00 CEST 2006 Daniel Veillard - - * configure.in: applied another Python detection patch from Joseph Sacco - * libxml.spec.in: cleanup the changelog section, asciifies the spec file - too - -Tue May 2 22:34:54 CEST 2006 Daniel Veillard - - * xmlIO.c: fix a mix of code and declarations showing up on Windows - patch from Kjartan Maraas, fixing #340404 - -Tue May 2 14:24:40 CEST 2006 Daniel Veillard - - * encoding.c: fixing bug #340398 xmlCharEncOutFunc writing to - input buffer - -Fri Apr 28 18:29:22 CEST 2006 Daniel Veillard - - * NEWS configure.in doc//*: preparing 2.6.24 release, fixed Python - paths at the last moment - * relaxng.c testapi.c tree.c: fix some comments - -Thu Apr 27 10:15:45 CEST 2006 Daniel Veillard - - * xmlIO.c: applied patch from Roland Schwingel to allow UTF-8 - file paths on Windows - -Thu Apr 27 10:10:58 CEST 2006 Daniel Veillard - - * xmlwriter.c: patch from Jason Viers for line breaks after EndPI - -Tue Apr 25 22:22:58 CEST 2006 Daniel Veillard - - * tree.c: fix compilation without tree - -Tue Apr 25 18:17:37 CEST 2006 Daniel Veillard - - * xmllint.c: applied patch from Gary Coady to really make sure - xmllint --nonet would not reach the network, should fix #337483. - -Tue Apr 25 14:52:15 CEST 2006 Daniel Veillard - - * configure.in: applied patch from Joseph Sacco changing slightly - the python detection scheme should fix bug #338526 - -Mon Apr 24 10:50:19 CEST 2006 Daniel Veillard - - * parser.c: fix the error message for invalid code point in content - c.f. bug #339311 - -Wed Apr 19 13:16:23 CEST 2006 Kasimier Buchcik - - * xmlschemas.c test/schemas/restriction-enum-1* - result/schemas/restriction-enum-1*: Fixed incorrect - validation of restricted enumerations. Added related - regression tests. - -Thu Apr 13 09:47:25 CEST 2006 Daniel Veillard - - * xmlschemas.c: fixing a deallocation problem in xmlSchemaAddSchemaDoc() - in case of errors, should fix bug #338303 - -Thu Apr 13 09:31:45 CEST 2006 Daniel Veillard - - * relaxng.c: fixing a deallocation problem in xmlRelaxNGParse() - in case of errors, should fix bug #338306 - -Thu Apr 6 10:22:17 CEST 2006 Daniel Veillard - - * doc/xmlcatalog.1 doc/xmlcatalog_man.xml doc/xmllint.1 doc/xmllint.xml: - applied man page improvements from Daniel Leidert - -Mon Mar 27 11:44:07 CEST 2006 Daniel Veillard - - * xmlschemas.c: removed unused code or variables, from Stefan Kost - fixing #336163 and #336164 - -Mon Mar 27 11:38:21 CEST 2006 Daniel Veillard - - * xmlschemas.c: applied patch from Stefan Kost fixing #336160 - -Mon Mar 27 11:23:39 CEST 2006 Daniel Veillard - - * chvalid.c genChRanges.py genUnicode.py xmlunicode.c - include/libxml/chvalid.h include/libxml/xmlunicode.h: applied - patches from Aivars Kalvans to make unicode tables const, fixes - bug #336096, this also updates to Unicode 4.01 final with a couple - of character ranges fixes. - -Mon Mar 27 00:51:40 CEST 2006 Daniel Veillard - - * chvalid.c genChRanges.py include/libxml/chvalid.h: fixed bug - #335603 and resync'ed genChRanges.py to the expected output. - -Wed Mar 22 00:14:34 CET 2006 Daniel Veillard - - * xmlregexp.c: applied patch from Youri Golovanov fixing bug - #316338 and adding a couple of optimizations in the regexp - compilation engine. - * test/regexp/bug316338 result/regexp/bug316338: added regression - tests based on the examples provided in the bug report. - -Fri Mar 10 08:40:55 EST 2006 Daniel Veillard - - * c14n.c encoding.c xmlschemas.c xpath.c xpointer.c: fix a few - warning raised by gcc-4.1 and latests changes - -Fri Mar 10 01:34:42 CET 2006 Daniel Veillard - - * runtest.c schematron.c testAutomata.c tree.c valid.c xinclude.c - xmlcatalog.c xmlreader.c xmlregexp.c xpath.c: end of first - pass on coverity reports. - -Thu Mar 9 19:36:14 CET 2006 Daniel Veillard - - * relaxng.c xmlschemas.c xmlschemastypes.c: more cleanups based - on coverity reports. - -Thu Mar 9 17:47:40 CET 2006 Daniel Veillard - - * SAX2.c catalog.c encoding.c entities.c example/gjobread.c - python/libxml.c: more cleanups based on coverity reports. - -Thu Mar 9 15:12:19 CET 2006 Daniel Veillard - - * HTMLparser.c parser.c parserInternals.c pattern.c uri.c: a bunch - of small cleanups based on coverity reports. - -Thu Mar 9 09:42:10 CET 2006 Daniel Veillard - - * win32/Makefile.bcb: added schematron as pointed out by Eric Zurcher - -Tue Mar 7 09:50:09 CET 2006 Daniel Veillard - - * xml2-config.in: fix Red Hat bug #184170 - -Mon Mar 6 14:21:08 CET 2006 Kasimier Buchcik - - * tree.c: Simplified usage of the internal xmlNsMap. Added a - "strict" lookup for namespaces based on a prefix. Fixed a - namespace processing issue in the clone-node function, which - occured if a @ctxt argument was given. - -Fri Mar 3 17:44:10 CET 2006 Rob Richards - - * valid.c: fix HTML attribute ID checking for input element. - Maintain current attribute "name" behavior for now. - -Thu Mar 2 18:59:50 CET 2006 Kasimier Buchcik - - * tree.c: Bundled lookup of attr-nodes and retrieving their - values into the functions xmlGetPropNodeInternal() and - xmlGetPropNodeValueInternal(). Changed relevant code - to use those functions. - -Mon Feb 27 20:42:04 CET 2006 Daniel Veillard - - * xpath.c: workaround HP-UX compiler bug by Rick Jones - -Mon Feb 27 10:57:05 CET 2006 Daniel Veillard - - * python/libxml2.py: remove a tab, as pointed out on IRC - -Sat Feb 25 18:12:10 CET 2006 Rob Richards - - * tree.c: Fix the add sibling functions when passing attributes. - Modify testing for ID in xmlSetProp. - No longer remove IDness when unlinking or replacing an attribute. - -Fri Feb 24 21:20:33 CET 2006 Daniel Veillard - - * catalog.c: Martin Cole pointed out a bug in xmlCatalogAdd() - if /etc/xml/catalog doesn't exist. - -Thu Feb 23 23:06:18 CET 2006 Daniel Veillard - - * doc//*: updated the Ruby bindings links, and regenerated the - docs. - -Thu Feb 23 09:12:27 CET 2006 Daniel Veillard - - * catalog.c: improve catalog debugging message patch from Rick Jones - -Wed Feb 22 16:09:10 CET 2006 Daniel Veillard - - * python/types.c: Nic Ferrier found debug statement left in the - XPath conversion code - -Tue Feb 21 20:23:14 CET 2006 Daniel Veillard - - * doc/xmllint.1 doc/xmllint.xml: small man page improvements from - Daniel Leidert - -Mon Feb 20 15:45:19 CET 2006 Kasimier Buchcik - - * xmlschemas.c: Fixed a side-effect of the previous XSI bugfix: - The constructor needs a bucket to be assigned during component - fixup. - -Mon Feb 20 14:32:36 CET 2006 Kasimier Buchcik - - * xmlschemas.c xmlschemastypes.c: Fixed xs:boolean to reject - the empty string (reported by Bas Driessen on the mailing-list). - Fixed schema XSI-acquisition and construction: the schemata - (xmlSchema) didn't get the targetNamespace in some cases, thus - the component resolution mechanism failed to work. The XSI - stuff needs to be tested more intensively; think about how - to test this for regression. - -Mon Feb 20 09:57:41 CET 2006 Daniel Veillard - - * doc/xmllint.1 doc/xmllint.xml: more man page improvements from - Daniel Leidert - -Sun Feb 19 22:31:33 CET 2006 Daniel Veillard - - * doc/xmllint.1 doc/xmllint.xml: man page improvements from Daniel - Leidert, c.f. #331290 - -Sun Feb 19 17:54:04 CET 2006 Daniel Veillard - - * xmllint.c: fix an error report when using --path and --valid - closes bug #331290 - -Sun Feb 19 16:20:43 CET 2006 Daniel Veillard - - * relaxng.c: trying to fix #331062, this is again a problem - around interleave, there is no good fix unless reimplementing - but this works around some cases and allow to validate in that - case. - -Wed Feb 15 11:55:22 CET 2006 Kasimier Buchcik - - * tree.c: Fixed bug #328896 reported by Liron. The path - for text- and CDATA-section-nodes was computed incorrectly - in xmlGetNodePath(). - -Sun Feb 12 20:12:22 CET 2006 Daniel Veillard - - * xmlregexp.c: bug fixes for #327167 as well as some cleanups - and more thorough tests on atoms comparisons. - -Thu Feb 9 10:07:20 CET 2006 Daniel Veillard - - * include/wsockcompat.h: patch from Eric Zurcher to compile with - Borland C++ 6 - -Sun Feb 5 04:03:59 CET 2006 Daniel Veillard - - * parser.c: bill pointed out a missing block in xmlParseComment - trying to fill with a normal processing of the given character. - -Sun Feb 5 03:41:39 CET 2006 Daniel Veillard - - * parser.c: fixed the comment streaming bug raised by Graham Bennett - * test/badcomment.xml result//badcomment.xml*: added to the regression - suite. - -Fri Feb 3 17:36:41 CET 2006 Kasimier Buchcik - - * include/libxml/tree.h: Added the xmlDOMWrapCloneNode() to - the header file. - -Fri Feb 3 17:29:22 CET 2006 Kasimier Buchcik - - * tree.c: Added an initial version of xmlDOMWrapCloneNode() to - the API. It will be used to reflect DOM's Node.cloneNode and - Document.importNode methods. - The pros: 1) non-recursive, 2) optimized ns-lookup - (mostly pointer comparison), 3) user defined ns-lookup, - 4) save ns-processing. The function is in an unfinished - and experimental state and should be only used to test it. - -Fri Feb 3 10:42:48 CET 2006 Daniel Veillard - - * uri.c: applied patch from Rob Richards fixing the URI regressions - tests on Windows which seems to indicate bad escaping. - -Thu Feb 2 13:11:26 CET 2006 Kasimier Buchcik - - * tree.c: Fixed some bugs xmlDOMWrapReconcileNamespaces() wrt - the previous addition of the removal of redundant ns-decls. - -Wed Feb 1 17:32:25 CET 2006 Kasimier Buchcik - - * tree.c: Enhanced xmlDOMWrapReconcileNamespaces() to remove - redundant ns-decls if the option XML_DOM_RECONNS_REMOVEREDUND - was given. Note that I haven't moved this option to the - header file yet; so just call this function with an @option - of 1 to test the behaviour. - -Wed Feb 1 12:21:08 CET 2006 Kasimier Buchcik - - * tapi.c win32/Makefile.*: Added changed as proposed on - the mailing list by venkat naidu in order to compile - testapi.c on windows. - -Thu Jan 19 09:57:28 CET 2006 Daniel Veillard - - * configure.in xml2-config.in: trying to fix windows/configure - issues reported by Tim Van Holder - -Wed Jan 18 18:21:15 CET 2006 Daniel Veillard - - * HTMLparser.c libxml.h parser.c: try to fix xmlParseInNodeContext - when operating on an HTML document. - -Mon Jan 9 17:27:15 CET 2006 Kasimier Buchcik - - * relaxng.c include/libxml/relaxng.h: Added - xmlRelaxNGSetParserStructuredErrors() to the API. - -Mon Jan 9 15:33:16 CET 2006 Daniel Veillard - - * parser.c: reverted first patches for #319279 which led to #326295 - and fixed the problem in xmlParseChunk() instead - * test/ent11 result//ent11*: added test for #326295 to the regression - suite - -Thu Jan 5 16:25:06 CET 2006 Daniel Veillard - - * NEWS configure.in libxml.spec.in testapi.c doc/*: upated the news - regenerated the docs, preparing for release of 2.6.23 - * pattern.c xmlschemas.c: fixed some comments - -Thu Jan 5 15:48:27 CET 2006 Kasimier Buchcik - - * test/XPath/docs/nodes test/XPath/tests/nodespat - result/XPath/tests/nodespat: Added regression tests for - the latest XPath/pattern fixes. - -Thu Jan 5 15:43:38 CET 2006 Kasimier Buchcik - - * pattern.c: Another fix to handle "foo//.": "foo" was not - included in the resulting node-set. - -Thu Jan 5 13:22:29 CET 2006 Kasimier Buchcik - - * pattern.c xpath.c include/libxml/pattern.h: - Fixed bug #322928, reported by Erich Schubert: The bug was - in pattern.c, which is used for a tiny subset of xpath - expression which can be evaluated in an optimized way. - The doc-node was never considered when evaluating "//" - expressions. Additionally, we fixed resolution - to nodes of any type in pattern.c; i.e. a "//." didn't work - yet, as it did select only element-nodes. Due to this - issue the pushing of nodes in xpath.c needed to be adjusted - as well. - -Wed Jan 4 18:07:47 CET 2006 Daniel Veillard - - * parser.c: tiny refactoring patch from Bjorn Reese - -Wed Jan 4 15:00:51 CET 2006 Daniel Veillard - - * SAX2.c: fix bug #324432 with - * test/ns7 resul//ns7*: added to the regression tests - -Wed Jan 4 10:53:56 CET 2006 Daniel Veillard - - * include/wsockcompat.h: applied patch from Mark Junker, fixing a - MinGW compilation problem, should close bug #324943 - -Tue Jan 3 11:49:54 CET 2006 Kasimier Buchcik - - * xmlschemas.c: Removed last dependency on the obsolete enum - xmlSchemaValidError. - -Mon Jan 2 11:20:00 CET 2006 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h xmlschemas.c: compilation - and doc build fixes from Michael Day - -Wed Dec 28 22:12:34 CET 2005 Daniel Veillard - - * xmlregexp.c: bug in xmlRegExecPushString2() pointed out by - Sreeni Nair. - -Tue Dec 20 16:55:31 CET 2005 Rob Richards - - * tree.c: fix bug #322136 in xmlNodeBufGetContent when entity ref is - a child of an element (fix by Oleksandr Kononenko). - * HTMLtree.c include/libxml/HTMLtree.h: Add htmlDocDumpMemoryFormat. - -Tue Dec 20 11:43:06 CET 2005 Kasimier Buchcik - - * xmlschemas.c xmlstring.c: Fixed a segfault during - text concatenation when validating a node tree: - xmlStrncat was called with a @len of -1; but unlike - xmlStrncatNew, it does not calculate the length - automatically in such a case (reported by Judy Hay - on the mailing list). - Updated the descriptions of the involved string - functions to note this. - -Thu Dec 15 12:11:07 CET 2005 Daniel Veillard - - * nanohttp.c: applied patch from Gary Coady to accept gzipped - http resources. - -Wed Dec 14 18:41:26 CET 2005 Kasimier Buchcik - - * win32/configure.js: Added enable/disable of runtime - debugging (LIBXML_DEBUG_RUNTIME). - -Wed Dec 14 18:11:50 CET 2005 Kasimier Buchcik - - * include/libxml/xmlversion.h.in: Fixed to define - LIBXML_DEBUG_RUNTIME on the basis of @WITH_RUN_DEBUG@. - -Tue Dec 13 12:49:23 CET 2005 Kasimier Buchcik - - * test/schemas/bug321475* result/schemas/bug321475*: - Added regression test for bug #321475 (reported by - Gabor Nagy). Fixing of bug #323510 seemed to have - fixed this bug as well. - -Mon Dec 12 16:19:16 CET 2005 Kasimier Buchcik - - * test/schemas/bug323510* result/schemas/bug323510*: - Added regression test for bug #323510. - -Mon Dec 12 16:11:13 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Workaround for bug #323510 (reported by - Jonathan Filiatrault): substituted the epsilon transition - for a labelled transition, in order to avoid a bug in - xmlregexp.c which eliminated the epsilon transition and - marked the initial state as final. - -Mon Dec 12 14:25:46 CET 2005 Daniel Veillard - - * xmlreader.c: Gary Coady pointed a memory leak in - xmlTextReaderReadInnerXml() applied patch fixing #323864 - -Sat Dec 10 12:08:28 CET 2005 Daniel Veillard - - * HTMLparser.c configure.in parserInternals.c runsuite.c runtest.c - testapi.c xmlschemas.c xmlschemastypes.c xmlstring.c: fixed a number - of warnings shown by HP-UX compiler and reported by Rick Jones - -Fri Dec 9 18:57:31 CET 2005 Rob Richards - - * xmlwriter.c: Insert space between pubid and sysid when both - passed to xmlTextWriterStartDTD and indenting not being used. - Remove no longer used Mem callbacks. - -Fri Dec 9 11:01:16 CET 2005 Kasimier Buchcik - - * runsuite.c: Changed to instantly mark instance-tests as - failed if the corresponding schema was invalid. This - reflects the side of the Python code for the XML Schema test - suite. We now get the same number of failed tests on both - sides. - -Wed Dec 7 14:59:01 CET 2005 Kasimier Buchcik - - * xmlreader.c include/libxml/xmlreader.h: Added - xmlTextReaderSchemaValidateCtxt() to the API. - -Wed Dec 7 12:59:56 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed a segfault: the instance document was - still tried to be validated, if the schema, dynamically - acquired using XSI was invalid, thus mangled. The - validation will stop (or rather won't validate) now in - such a case. The schema parser error code will be set - on the validion context now; this is somehow not nice, - but it assures that the validation context indicates an - error in there was a parser error. - -Tue Dec 6 18:57:23 CET 2005 Daniel Veillard - - * xmlreader.c: small doc patch from Aron Stansvik - * legacy.c: another doc patch for a deprecated API - -Mon Dec 5 16:23:49 CET 2005 Kasimier Buchcik - - * Makefile.am: Tiny change for 'make tests': raised - the number of expected failures for James Clark's - XML Schema datatype tests from 10 to 11. The additional - reported error was agreed to be correct long time ago, - but we missed to adjust the message reported by - the testing script. - -Fri Dec 2 13:51:14 CET 2005 Kasimier Buchcik - - * result/schemas/decimal* result/schemas/bug322411*: - Added missing regression test results for the latest IDC - and xs:decimal bugs. - -Wed Nov 30 12:22:23 CET 2005 Kasimier Buchcik - - * test/schemas/decimal* test/schemas/bug322411*: Added - regression tests for the latest IDC and xs:decimal bugs. - -Wed Nov 30 11:57:35 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed bubbling of duplicate IDC nodes: the - parent's list of duplicates was filled with NULLs instead - of the nodes under certain conditions. This lead to a - segfault when the list's entries were accessed. - -Mon Nov 28 17:28:53 CET 2005 Kasimier Buchcik - - * xmlschemastypes.c: Fixed parsing of xs:decimal to - allow/deny special lexical forms. Fixed the totalDigits - for values in the range (x < 1) && (x > -1) && (x != 0); - E.g "0.123" has now a totalDigits of 3 (was 4 previously). - Adjusted the comparison function for decimals due to this - change. As a side effect comparison against zeroes was - optimized. - -Mon Nov 28 13:25:11 CET 2005 Kasimier Buchcik - - * xmlschemas.c: An assignment to a local variable, which was - used to access the IDC node list, was missing after the - reallocation of the list (reported by Fabrice GUY - bug #322411). Renamed the define ENABLE_IDC_NODE_TABLES - to ENABLE_IDC_NODE_TABLES_TEST and *disabled* it, since - it is used to force bubbling of IDC node tables even - if not necessary; this was intended to be used for test - purposes, but I obviously missed to disable it (although - it apparently helped finding the bug). - -Wed Nov 23 17:34:52 CET 2005 Kasimier Buchcik - - * xmlschemas.c: In xmlSchemaAssembleByXSI() the return value - of xmlSchemaGetMetaAttrInfo() was not assigned to anything; - this caused XSI-driven-dynamic schema acquisition to fail - with @noNamespaceSchemaLocation (reported by Julien Lamy - on the mailing list). - -Tue Nov 22 18:31:34 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed a bug in xmlSchemaFindRedefCompInGraph() - which caused the search for components to stop at the - first encountered attribute group component. - Fixed error report in xmlSchemaCheckSRCRedefineFirst(): the - designation of a not-found component was not reported. - -Mon Nov 21 12:23:28 CET 2005 Daniel Veillard - - * xmlschemastypes.c: Albert Chin found another signed/unsigned problem - in the date and time code raised on IRIX 6.5 - -Fri Nov 18 18:13:38 CET 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/xmlschemas.h: - Added xmlSchemaSetParserStructuredErrors() to the API. - Fixed channeling of error relevant information to - subsequent parser/validation contexts. - -Thu Nov 17 14:11:43 CET 2005 Daniel Veillard - - * parserInternals.c: removed unreachable code pointed out by - Oleksandr Kononenko, fixes bug #321695 - -Thu Nov 17 08:24:31 CET 2005 Daniel Veillard - - * parser.c: use ctxt->standalone = -2 to indicate that the - XMLDecl was parsed but no standalone attribute was found, - suggested by Michael Day to detect if an XMLDecl was found. - -Tue Nov 15 09:49:24 CET 2005 Daniel Veillard - - * runtest.c: Hisashi Fujinaka pointed that errors in Schemas tests - were not properly reported. - -Sun Nov 13 13:42:41 CET 2005 Daniel Veillard - - * xmlIO.c: applied patch from Geert Jansen to remove xmlBufferClose() - which is not needed. - -Fri Nov 11 13:48:52 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Changed xmlSchemaFormatIDCKeySequence() - to use xmlSchemaGetCanonValueWhtspExt() in order to - correctly report values for xs:anySimpleType. - * test/schemas/idc-keyref-err1* - result/schemas/idc-keyref-err1*: Added a test for this change. - -Wed Nov 9 13:07:24 EST 2005 Rob Richards - - * xmlIO.c xmlwriter.c: function consolidation when writing to xmlBuffer. - Return error condition not len if xmlwriter fails writing to buffer. - -Wed Nov 9 09:54:54 CET 2005 Daniel Veillard - - * xmlsave.c xmlIO.c include/libxml/xmlIO.h include/libxml/xmlsave.h: - applied patch from Geert Jansen to implement the save function to - a xmlBuffer, and a bit of cleanup. - -Mon Nov 7 14:58:39 CET 2005 Kasimier Buchcik - - * xmlschemas.c xmlschemastypes.c: Fixed the type of the - totalDigits value to be positiveInteger. - Fixed crash in an error report function when we gave it - the document node; only element and attribute nodes are - processed now (reported by Rob Richards). - -Tue Nov 1 16:22:29 CET 2005 Daniel Veillard - - * xmlregexp.c: fix bug #319897, problem with counted atoms - when the transition itself is counted too - * result/regexp/hard test/regexp/hard: augmented the regression - tests with the problem exposed. - -Tue Nov 1 11:54:39 CET 2005 Daniel Veillard - - * win32/Makefile.mingw include/win32config.h: applied patch from - Mark Junker to fix compilation with MinGW - -Fri Oct 28 18:36:08 CEST 2005 Daniel Veillard - - * libxml.3: tiny fix from Albert Chin - * runsuite.c runtest.c testapi.c: portability cleanup for arch - needing trio for *printf - -Fri Oct 28 12:21:39 EDT 2005 Rob Richards - - * tree.c: add additional checks to prevent tree corruption. fix problem - copying attribute using xmlDocCopyNode from one document to another. - -Fri Oct 28 17:58:13 CEST 2005 Daniel Veillard - - * config.h.in configure.in vms/config.vms macos/src/config-mac.h: - cleanup from Albert Chin - * doc/Makefile.am: html/index.sgml doesn't exist anymore - -Fri Oct 28 16:53:51 CEST 2005 Daniel Veillard - - * xmlIO.c xmlmodule.c: more portability patches from Albert Chin for - HP-UX and AIX - -Fri Oct 28 10:36:10 CEST 2005 Daniel Veillard - - * xmlmodule.c configure.in: applied 2 patches from Albert Chin for - module portability - -Fri Oct 28 10:24:39 CEST 2005 Daniel Veillard - - * error.c: fixing a portability problem on some old Unices with - patch from Albert Chin - -2005-10-27 Aleksey Sanin - - * c14n.c result/c14n/exc-without-comments/test-2 - test/c14n/exc-without-comments/test-2.xml - test/c14n/exc-without-comments/test-2.xpath: fixing - bug in exc-c14n namespace visibility + test case (bug #319367) - -Thu Oct 27 16:10:31 CEST 2005 Daniel Veillard - - * python/libxml.py: remove warnings to stdout patch from Nic Ferrier - -Thu Oct 27 13:54:52 CEST 2005 Daniel Veillard - - * valid.c xmlregexp.c include/libxml/valid.h - include/libxml/xmlregexp.h: avoid function parameters names 'list' - as this seems to give troubles with VC6 and stl as reported by - Samuel Diaz Garcia. - -Wed Oct 26 10:59:21 CEST 2005 Daniel Veillard - - * parserInternals.c: fix a problem in some error case on Solaris - when passed a NULL filename, pointed by Albert Chin. - -Tue Oct 25 14:34:58 CEST 2005 Daniel Veillard - - * HTMLparser.c: script HTML parser error fix, corrects bug #319715 - * result/HTML/53867* test/HTML/53867.html: added test from Michael Day - to the regression suite - -Tue Oct 25 14:21:11 CEST 2005 Daniel Veillard - - * HTMLparser.c: typo fix from Michael Day - -Mon Oct 24 20:16:23 EDT 2005 Rob Richards - - * tree.c: fix issue adding non-namespaced attributes in xmlAddChild(), - xmlAddNextSibling() and xmlAddPrevSibling() (bug #319108) - part 1. - -Sat Oct 22 10:00:41 HKT 2005 William Brack - - * parser.c: fixed second spot where CRLF split between chunks - could cause trouble (bug #319279) - * gentest.py, testapi.c: fixed two problems involved with - --with-minimum compilation (compilation errors with schematron - and formal expressions tests) - -Fri Oct 21 10:50:14 EDT 2005 Rob Richards - - * xmlsave.c: prevent output of fragment tags when serializing XHTML. - -Wed Oct 19 16:53:47 BST 2005 Daniel Veillard - - * xmlregexp.c: commiting a some fixes and debug done yesterday in - the London airport. - -Thu Oct 20 12:54:23 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Removed creation of a temporary parser context - during validation when processing xsi:type; this previously - added a string to the dict of the schema - to assure thread - safety, we don't want to modify a given schema during - validation. - -Thu Oct 20 17:05:29 HKT 2005 William Brack - - * xmlwriter.c: fixed problem in xmlTextWriterVSprintf caused by - misuse of vsnprintf - * configure.in, config.h.in: added a configuration check for - va_copy and added a define for VA_COPY for xmlwriter.c fix - * parser.c: fixed problem with CRLF split between chunks (bug - #319279) (fix provided by Brion Vibber) - -Wed Oct 19 18:49:52 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed a potential memory leak in - xmlSchemaCheckCSelectorXPath() when an internal error occurs. - Fixed setting of ctxt->err to the given error code in - the parsing error functions. - * pattern.c: Added internal xmlCompileIDCXPathPath() as a - starting point for IDC XPath compilation; this and some other - tiny changes fixes issues regarding whitespace in the - expressions and IDC selector/field relevant restrictions of - the subset of XPath. Fixed a missing blocking of attributes - in xmlStreamPushInternal(). - -Mon Oct 17 15:06:05 EDT 2005 Daniel Veillard - - * runtest.c: removed the error message - * relaxng.c xmlschemas.c: removed 2 instability warnings from function - documentation - * include/libxml/schemasInternals.h: changed warning about API stability - * xmlregexp.c: trying to improve runtime execution of non-deterministic - regexps and automata. Not fully finished but should be way better. - -Mon Oct 17 16:12:02 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed a memory leak in - xmlSchemaContentModelDump(). Added output of local types - in xmlSchemaElementDump(). Tiny cosmetical changes to the - dump output. - -Mon Oct 17 14:29:08 CEST 2005 Kasimier Buchcik - - * tree.c pattern.c: Silenced intel compiler warnings (reported - by Kjartan Maraas, bug #318517). - * xmlschemas.c: The above changes in pattern.c revealed an - inconsistency wrt IDCs: we now _only_ pop XPath states, if - we really pushed them beforehand; this was previously not - checked for the case when we discover an element node to be - invalid wrt the content model. - Fixed segfault in xmlSchemaGetEffectiveValueConstraint(). - -Fri Oct 14 16:40:18 CEST 2005 Kasimier Buchcik - - * result/schemas/*.err: Adapted regression test results. - -Fri Oct 14 16:21:22 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed some identity-constraint issues: - Restructured IDC node-tables - Allowed IDCs to resolve also to nodes of complex type with - simple content. - Added check for keyrefs with references to keyrefs. - IDC target-nodes were interferring with IDC node-tables, - since they used one list of entries only. I separated this - one big list into 3 lists: 1 for IDC node-table entries, - 1 for _duplicates_ of IDC node-table entries and 1 for - IDC target-nodes. More code, but cleaner and it works at last. - Keyrefs will fail to resolve to duplicate key/unique entries. - I thought this was already working this way, but it didn't. - The wording of the definition for [node table] in the spec - can lead to a scenario, where keyrefs resolve perfectly, even - if the relevant key-sequences of the referenced key/unique have - duplicates in the subtree. Currently only Saxon 8.5.1 is - dissallowing resolution to duplicate entries correctly - we - will follow Saxon here. - Removed some intel compiler warnings (reported by - Kjartan Maraas, bug #318517). - * pattern.c: Fixed an IDC-XPath problem when resolving to - attributes. - -Mon Oct 14 01:15:14 CEST 2005 Rob Richards - * nanohttp.c include/wsockcompat.h: applied patch from Kolja Nowak - to use getaddrinfo() if supported in Windows build (bug# 317431). - -Mon Oct 10 15:33:48 CEST 2005 Kasimier Buchcik - - * result/schemas/*: Adapted regression test results. - -Mon Oct 10 15:12:43 CEST 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/schemasInternals.h - include/libxml/xmlerror.h: Initial implementation for - redefinitions; this still misses checks for restrictions - of the content model of complex types. - Fixed default/fixed values for attributes (looks like they - did not work in the last releases). - Completed constraints for attribute uses. - Seperated attribute derivation from attribute constraints. - Completed constraints for attribute group definitions. - Disallowing s of schemas in no target namespace if the - importing schema is a chameleon schema. This contradicts - the way Saxon, Xerces-J, XSV and IBM's SQC works, but the - W3C XML Schema WG, thinks it is correct to dissalow such - imports. - Added cos-all-limited constraints. - Restructured reference resolution to model groups and element - declarations. - Misc cleanup. - -Fri Oct 7 04:34:12 CEST 2005 Rob Richards - - * schematron.c xmlregexp.c: remove warnings under Windows. - -Wed Sep 28 23:42:14 CEST 2005 Daniel Veillard - - * parser.c: applied patch from Massimo Morara fixing bug #317447 - about risk of invalid write in xmlStringLenDecodeEntities - -Tue Sep 27 11:20:57 CEST 2005 Daniel Veillard - - * error.c: Adrian Mouat pointed out redundancies in xmlReportError() - -Mon Sep 26 19:18:24 CEST 2005 Daniel Veillard - - * xmlregexp.c: seems a test to avoid duplicate transition is - really needed at all times. Luka Por gave an example hitting - this. Changed back the internal API. - -Thu Sep 22 13:14:07 CEST 2005 Daniel Veillard - - * xmlreader.c: fixing leak in xmlTextReaderReadString() #316924 - -Thu Sep 15 16:12:44 CEST 2005 Daniel Veillard - - * uri.c: more fixes to the behaviour of xmlBuildRelativeURI - -Thu Sep 15 15:08:21 CEST 2005 Daniel Veillard - - * xmlregexp.c: detect combinatory explosion and return with - a runtime error in those case, c.f. #316338 though maybe we - should not see such an explosion with that specific regexp, - more checking needs to be done. - -Wed Sep 14 19:52:18 CEST 2005 Kasimier Buchcik - - * include/libxml/schemasInternals.h: Added some comments for the - struct fields. - -Wed Sep 14 13:24:27 HKT 2005 William Brack - - * uri.c: fixed problem when xmlBuildRelativeURI was given a - blank path (bug 316224) - -Mon Sep 12 23:41:40 CEST 2005 Daniel Veillard - - * NEWS configure.in doc//*: release of 2.6.22 updated doc and - rebuild. - * xmlsave.c include/libxml/xmlsave.h: added XML_SAVE_NO_XHTML - xmlSaveOption - * xmlschemas.c: minor cleanups - -Mon Sep 12 21:42:47 CEST 2005 Kasimier Buchcik - - * test/schemas/import1_0.xsd: And adapting another one. - -Mon Sep 12 21:29:35 CEST 2005 Kasimier Buchcik - - * result/schemas/derivation-ok-extension_0_0: Adapted result. - -Mon Sep 12 21:20:41 CEST 2005 Kasimier Buchcik - - * result/schemas/allsg_0_3.err result/schemas/allsg_0_4.err - result/schemas/changelog093_1_0.err - result/schemas/derivation-ok-extension_0_0.err - result/schemas/import1_0_0.err - result/schemas/derivation-ok-restriction-2-1-1_0_0.err: - Adapted regression results. - -Mon Sep 12 21:00:53 CEST 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/schemasInternals.h - include/libxml/xmlerror.h: Completion of the schema graph. - Centralisation, more robustness of the schema document - aquisition story. Centralised and restructured component fixup. - Fixed attribute derivation when 'prohibiting' attribute uses. - Added warnings: when schema documents cannot be localized - during imports; when we get duplicate and pointless attribute - prohibitions. Changed error reports for IDCs to report - the relevant IDC designation as well (requested by GUY Fabrice). - Misc code-cleanup. - -Mon Sep 12 16:02:12 CEST 2005 Daniel Veillard - - * xmlsave.c: applied second patch from David Madore to be less intrusive - when handling scripts and style elements in XHTML1 should fix #316041 - * test/xhtml1 result//xhtml1\*: updated the test accordingly - -Mon Sep 12 15:09:09 CEST 2005 Daniel Veillard - - * libxml.spec.in doc/devhelp/*: finished the integration with - devhelp, completing the index and inserted into the gtk-doc - database at "make install" stage - -Mon Sep 12 14:14:12 CEST 2005 Rob Richards - - * include/libxml/xmlsave.h xmlsave.c: add XML_SAVE_NO_EMPTY save option - and use option from xmlSaveCtxtPtr rather than global during output. - * xmlsave.c: fix some output formatting for meta element under XHTML. - -Mon Sep 12 11:12:03 CEST 2005 Daniel Veillard - - * include/libxml/parser.h parser.c xmllint.c: damn XML_FEATURE_UNICODE - clashes with Expat headers rename to XML_WITH_ to fix bug #316053. - * doc/Makefile.am: build devhelp before the examples. - * doc/*: regenerated the API - -Mon Sep 12 02:03:12 CEST 2005 Daniel Veillard - - * xmlsave.c: fix bug #316034, where xmlElemDump() can crash if - given a document pointer instead of an element - -Mon Sep 12 01:26:16 CEST 2005 Daniel Veillard - - * doc/devhelp/devhelp.xsl: improvements on the html generation, - should be complete with navigation, what is left done is glueing - -Mon Sep 12 00:03:27 CEST 2005 Daniel Veillard - - * configure.in doc/Makefile.am doc/apibuild.py doc/libxml2-api.xml - doc/devhelp/*: started work needed to generate devhelp content, - not too hard based on the existing format and extractor. - -Fri Sep 9 12:56:19 CEST 2005 Daniel Veillard - - * parser.c: fixes bug #315617 when using push CDATA in some cases. - -Thu Sep 8 23:39:41 CEST 2005 Daniel Veillard - - * xmllint.c: patch from Stéphane Bidoul to compile without schematron - -Wed Sep 7 00:16:27 CEST 2005 Daniel Veillard - - * debugXML.c: patch from Oleg Paraschenko to fix xmlDebugDumpNode() - when handled a namespace node. - -Sun Sep 4 23:36:45 CEST 2005 Daniel Veillard - - * NEWS elfgcchack.h testapi.c doc/*: updated the docs and rebuild - releasing 2.6.21 - * include/libxml/threads.h threads.c: removed xmlIsThreadsEnabled() - * threads.c include/libxml/threads.h xmllint.c: added the more - generic xmlHasFeature() as suggested by Bjorn Reese, xmllint uses it. - -Sun Sep 4 22:45:49 CEST 2005 Daniel Veillard - - * configure.in doc/* configure.in: prepare for release - * xpath.c: work for #303289, fix a formatting bug for MIN_INT - -Sun Sep 4 15:48:57 CEST 2005 Daniel Veillard - - * relaxng.c: real fix for #314881 and #314759 is was a bit more complex - than initially expected as ctxt->error == NULL had behaviour side - effects at the compilation level itself. - -Sun Sep 4 14:01:00 CEST 2005 Daniel Veillard - - * pattern.c xpath.c include/libxml/pattern.h: fixing yet another - pattern induced XPath bug #314282 - * relaxng.c: reverted back last change it was seriously broken - -Sat Sep 3 16:51:55 CEST 2005 Rob Richards - - * xmlsave.c: check for NULL to prevent crash with meta elements - -Sat Sep 3 16:26:55 CEST 2005 Daniel Veillard - - * relaxng.c: structured error reporting problem with Relax-NG - should fix #314881 and #314759 - -Sat Sep 3 15:42:29 CEST 2005 Daniel Veillard - - * pattern.c: fixes a portability problem raised by C370 on Z/OS - -Sat Sep 3 15:26:31 CEST 2005 Daniel Veillard - - * SAX2.c tree.c valid.c: fixing a number of issues raised by xml:id - but more generally related to attributes and ID handling, fixes - #314358 among other things - -Fri Sep 2 14:26:43 CEST 2005 Daniel Veillard - - * encoding.c parserInternals.c: avoid passing a char[] as snprintf - first argument. - * threads.c include/libxml/threads.h: implemented xmlIsThreadsEnabled() - based on Andrew W. Nosenko idea. - * doc/* elfgcchack.h: regenerated the API - -Thu Sep 1 14:44:42 CEST 2005 Daniel Veillard - - * configure.in: the use of AM_PATH_PYTHON is not portable enough - reverting back to AM_PATH_PROG - -Thu Sep 1 11:42:39 CEST 2005 Daniel Veillard - - * HTMLparser.c: Applied the last patch from Gary Coady for #304637 - changing the behaviour when text nodes are found in body - * result/HTML/*: this changes the output of some tests - -Thu Sep 1 11:22:37 CEST 2005 Daniel Veillard - - * doc/downloads.html doc/xml.html: adding reference to Bull AIX rpms - c.f. #160598 - -Wed Aug 31 11:39:02 CEST 2005 Daniel Veillard - - * xml2-config.in: removed the obsolete --libtool-libs option, c.f. - bug #314853 - -Fri Aug 26 17:33:26 CEST 2005 Rob Richards - - * xmlsave.c: move handling of meta element for http-equiv in XHTML docs - to serialization and no longer modify internal tree. - -Fri Aug 26 00:51:58 CEST 2005 Daniel Veillard - - * libxml.spec.in: the profiling usually don't work, disabled - * doc/*: rebuilt - -Thu Aug 25 23:47:55 CEST 2005 Daniel Veillard - - * configure.in: trying to fix the first part of #310033 by - detecting gcc <= 3.2 - -Thu Aug 25 22:13:37 CEST 2005 Daniel Veillard - - * error.c: fixed bug #310033, the URI extraction code given a - node is a bit twisted and broke in the last months. - -Thu Aug 25 16:18:15 CEST 2005 Daniel Veillard - - * debugXML.c result/XPath/xptr/strrange2: uninitialized field and - fix on test. - -Thu Aug 25 16:03:05 CEST 2005 Daniel Veillard - - * debugXML.c: change verbosity depending on API - * result/XPath/tests/* result/XPath/xptr/* result/xmlid/*: get back - to previous outputs - -Thu Aug 25 15:14:56 CEST 2005 Daniel Veillard - - * HTMLparser.c parser.c SAX2.c debugXML.c tree.c valid.c xmlreader.c - xmllint.c include/libxml/HTMLparser.h include/libxml/parser.h: - added a parser XML_PARSE_COMPACT option to allocate small - text nodes (less than 8 bytes on 32bits, less than 16bytes on 64bits) - directly within the node, various changes to cope with this. - * result/XPath/tests/* result/XPath/xptr/* result/xmlid/*: this - slightly change the output - -Thu Aug 25 12:16:26 CEST 2005 Daniel Veillard - - * configure.in: patch from Andrew W. Nosenko, use se $GCC = 'yes' - instead of $CC = 'gcc' because GCC may have a different name - -Thu Aug 25 00:18:20 CEST 2005 Daniel Veillard - - * configure.in: changes the way the python binary is found, should - also fix bug #308004 - -Wed Aug 24 16:44:41 CEST 2005 Daniel Veillard - - * parser.c: found another bug while looking at #309616 on missing - entities. - * result/ent2.sax* result/ent7.sax* result/xml2.sax*: this changed the - SAX stream in missing conditions for a few tests - -Wed Aug 24 16:19:00 CEST 2005 Daniel Veillard - - * encoding.c: applied the patch suggested #309565 which can avoid - looping in error conditions. - -Wed Aug 24 16:04:17 CEST 2005 Daniel Veillard - - * SAX2.c tree.c: line numbers are now carried by most nodes, fixing - xmlGetLineNo() c.f. bug #309205 - -Wed Aug 24 14:43:34 CEST 2005 Daniel Veillard - - * encoding.c error.c include/libxml/xmlerror.h: finally converted - the encoding module to the common error reporting mechanism - * doc/* doc/html/libxml-xmlerror.html: rebuilt - -Wed Aug 24 11:35:26 CEST 2005 Daniel Veillard - - * xpath.c: removed a potentially uninitialized variable error - * python/generator.py: fixed a deprecation warning - * python/tests/tstLastError.py: silent the damn test when Okay ! - -Wed Aug 24 00:11:16 CEST 2005 Daniel Veillard - - * SAX2.c globals.c runtest.c testC14N.c testapi.c tree.c - include/libxml/SAX2.h include/libxml/xmlregexp.h: fixed compilation - when configured --without-sax1 and other cleanups fixes bug #172683 - * doc/* elfgcchack.h: regenerated - -Tue Aug 23 20:05:05 CEST 2005 Daniel Veillard - - * parser.c: fixed bug #170489 reported by Jirka Kosek - * test/valid/objednavka.xml test/valid/dtds/objednavka.dtd - result/valid/objednavka*: added the test to the regression suite. - -Tue Aug 23 18:04:08 CEST 2005 Daniel Veillard - - * HTMLparser.c include/libxml/HTMLparser.h: added a recovery mode - for the HTML parser based on the suggestions of bug #169834 by - Paul Loberg - -Tue Aug 23 15:38:46 CEST 2005 Daniel Veillard - - * elfgcchack.h testapi.c doc/*: regenerated - * schematron.c: fixed a compilation problem - * xmlregexp.c include/libxml/xmlregexp.h: some cleanups and one bug fix - * result/expr/base: slightly changes the number of Cons. - -Mon Aug 22 23:19:50 CEST 2005 Daniel Veillard - - * elfgcchack.h testapi.c doc/*: rescanned code and rebuilt - * xmlregexp.c: small cleanup - * include/libxml/schematron.h include/libxml/xmlexports.h - include/libxml/xmlversion.h.in: cleanup problems from code scanner - -Mon Aug 22 18:00:18 CEST 2005 Daniel Veillard - - * xmlschemastypes.c: applied patch from Kuba Nowakowski fixing bug - #313982 - * result/schemas/bug313982* test/schemas/bug313982*: also added - the test case to the regression suite. - -Mon Aug 22 17:50:20 CEST 2005 Daniel Veillard - - * testRegexp.c: printed the wrong string - -Mon Aug 22 16:42:07 CEST 2005 Daniel Veillard - - * testRegexp.c xmlregexp.c include/libxml/xmlregexp.h: exported - xmlExpExpDerive(), added it to the testRegexp command line - tool when providing multiple expressions. - -Mon Aug 22 14:57:13 CEST 2005 Daniel Veillard - - * Makefile.am result/expr/base test/expr/base: added the first - regression test suite set for the new expression support - -Mon Aug 22 13:49:18 CEST 2005 Daniel Veillard - - * valid.c: fixed an uninitialized variable - * xmlregexp.c include/libxml/xmlregexp.h: extended the API to - add the parser, serializer and some debugging - * include/libxml/xmlversion.h.in: made the new support compiled - by default if Schemas is included - * testRegexp.c: cleanup and integration of the first part of the - new code with a special switch - * xmllint.c: show up Expr in --version if compiled in - * include/libxml/tree.h: moved the xmlBuffer definition up - -Mon Aug 22 12:11:10 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Some preparation for the creation of a graph - of imported/included/redefined schemas; this is needed for - at least the redefinitions. - Centralized the creation of the parser context in one function. - -Mon Aug 22 02:19:33 CEST 2005 Daniel Veillard - - * xmlregexp.c include/libxml/xmlregexp.h: pushing the formal expression - handling code to have it in CVs from now. Not plugged, and misses - APIs it's not compiled in yet. - -Sat Aug 20 23:13:27 CEST 2005 Daniel Veillard - - * xmlreader.c: applied another patch from Rob Richards to fix - xmlTextReaderGetAttributeNs and xmlTextReaderMoveToAttributeNs - -Wed Aug 17 09:06:33 CEST 2005 Daniel Veillard - - * xmlreader.c: applied patch from Rob Richards to fix - xmlTextReaderGetAttribute behaviour with namespace declarations - -Fri Aug 12 14:12:56 CEST 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/xmlerror.h: - Changed output for keyref-match errors; the target-node will - be now reported rather than the scope-node of the keyref - definition - allowing easier chasing of instance errors. - This was reported by Guy Fabrice to the mailing list. - Some initial parsing code for schema redefinitions. - * result/schemas/bug303566_1_1.err - result/schemas/bug312957_1_0.err: Adapted test results due - to the keyref changes. - -Fri Aug 12 12:17:52 CEST 2005 Daniel Veillard - - * valid.c: applied patch from Derek Poon fixing bug #310692 - -Wed Aug 10 23:39:02 CEST 2005 Daniel Veillard - - * xmlschemas.c: fix for bug #312945 as pointed by Dean Hill, the - context type was not always properly initialized. - -Wed Aug 10 18:21:41 CEST 2005 Daniel Veillard - - * relaxng.c: fixed bug #307377 about validation of choices in - list values. - * test/relaxng/307377* result/relaxng/307377* Makefile.am runtest.c: - added examples to the regression tests, problem is that streaming - version gives slightly more informations. - -Wed Aug 10 15:25:53 CEST 2005 Daniel Veillard - - * xinclude.c: fixed bug #302302, nasty but the fix is rather simple. - -Wed Aug 10 11:59:46 CEST 2005 Kasimier Buchcik - - * result/schemas/any6_1_0*: Added missing test results. - -Tue Aug 9 23:37:22 CEST 2005 Daniel Veillard - - * xmlregexp.c: fixed a determinism detection problem exposed by - ##other tests commited by Kasimier, also added a small speedup - of determinism detection. - * test/results/any6_2_0* any8_1_0* any7_1_2* any7_2_2*: added - the results to the regression tests now - -Tue Aug 9 15:54:09 CEST 2005 Kasimier Buchcik - - * test/schemas/any7_2.xml test/schemas/any6_2.xsd - test/schemas/any8_1.xsd test/schemas/any8_0.xml: - Added some more tests for element wildcards. - -Tue Aug 9 14:22:47 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed #312957 reported by Carol Hunter: - streaming XPath states were not popped in every case, - thus failed to resolve correctly for subsequent input. - * test/schemas/bug312957* result/schemas/bug312957*: - Added the test submitted by Carol Hunter. - -Tue Aug 9 13:07:27 CEST 2005 Daniel Veillard - - * xmlregexp.c xmlschemas.c: trying to nail down the remaining - ##other issues - * result/schemas/any7* test/schemas/any7: completed the tests - and added the results - * result/schemas/any3_0_0.err result/schemas/any5_0_0.err - result/schemas/any5_1_0.err: this slightly chnages the output - from 3 existing tests - -Mon Aug 8 22:33:08 CEST 2005 Daniel Veillard - - * nanoftp.c nanohttp.c xmlschemastypes.c: applied patch from - Marcus Boerger to remove warnings on Windows. - -Mon Aug 8 16:43:04 CEST 2005 Daniel Veillard - - * xmlsave.c include/libxml/xmlsave.h: fixed #145092 by adding - an xmlSaveOption to omit XML declaration - -Mon Aug 8 15:44:54 CEST 2005 Daniel Veillard - - * HTMLtree.c: fixed bug #310333 with a patch close to the provided - patch for HTML UTF-8 serialization - * result/HTML/script2.html: this changed the output of that test - -Mon Aug 8 15:01:51 CEST 2005 Daniel Veillard - - * xmlregexp.c: fixed bug #310264, basically it's about reentrancy - of count based transition, when going though the counter must - be reset to 0 - * test/schemas/bug310264* result/schemas/bug310264*: added the - regression test. - -Mon Aug 8 14:40:52 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed a memory leak: xmlSchemaFreeAnnot() was - only freeing the first annotation in the list. - -Mon Aug 8 09:44:34 CEST 2005 Daniel Veillard - - * xmlreader.c: applied patch from Rob Richards fixing - xmlTextReaderGetAttribute - -Mon Aug 8 01:41:53 CEST 2005 Daniel Veillard - - * HTMLparser.c: fixed an uninitialized memory access spotted by - valgrind - -Sun Aug 7 12:39:35 CEST 2005 Daniel Veillard - - * test/relaxng/docbook_0.xml: get rid of the dependancy on a locally - installed DTD - * uri.c include/libxml/uri.h xmlIO.c nanoftp.c nanohttp.c: try to - cleanup the Path/URI conversion mess, needed fixing in various - layers and a new API to the uri module which also fixes #306861 - * runtest.c: integrated a regression test specific to check the - URI conversions done before calling the I/O handlers. - -Sat Aug 6 11:06:24 CEST 2005 Daniel Veillard - - * doc/XSLT.html doc/xml.html: small doc fix for #312647 - -Tue Aug 2 13:26:42 CEST 2005 Daniel Veillard - - * win32/configure.js: applied patch from Rob Richards to allow - disabling modules in win32, fixes #304071 - -Mon Aug 1 07:18:53 CEST 2005 Daniel Veillard - - * python/libxml.c: applied fix from Jakub Piotr Clapa for - xmlAttr.parent(), closing #312181 - -Sun Jul 31 18:48:55 CEST 2005 Daniel Veillard - - * schematron.c: report improvement - * test/schematron/zvon* result/schematron/zvon*: more tests - -Sun Jul 31 16:02:59 CEST 2005 Daniel Veillard - - * win32/Makefile.msvc win32/configure.js: applied patch from Rob - Richards to add schematron to the build on Windows - * test/schematron/zvon3* result/schematron/zvon3*: second test - * test/schematron/zvon10* result/schematron/zvon10*: this is the - real second test 10 and 2 are swapped. - -Sun Jul 31 15:42:31 CEST 2005 Daniel Veillard - - * schematron.c: more bug fixes, improve the error reporting. - * test/schematron/zvon2* result/schematron/zvon2*: second test - -Sun Jul 31 14:15:31 CEST 2005 Daniel Veillard - - * schematron.c xmllint.c: fixing the loop bug, fixing schematron - text error rendering - * Makefile.am result/schematron/* test/schematron/zvon1*.sct: - started integrating within "make tests" - -Sat Jul 30 17:26:58 EDT 2005 Daniel Veillard - - * test/schematron/*: a few first tests from Zvon unfortunately - with the old syntax - -Sat Jul 30 17:08:07 EDT 2005 Daniel Veillard - - * schematron.c xmllint.c include/libxml/schematron.h: commiting - work done on the plane last week-end - -Sat Jul 30 15:16:29 CEST 2005 Daniel Veillard - - * runtest.c: allows an extra argument to subset the tests - * xmlregexp.c: big speedup for validation, basically avoided - transition creation explosion when removing epsilon transition - -Sat Jul 30 00:00:46 CEST 2005 Daniel Veillard - - * Makefile.am globals.c parserInternals.c xmlreader.c xmlunicode.c - xmlwriter.c: more cleanups based on sparse reports, added - "make sparse" - -Fri Jul 29 12:11:25 CEST 2005 Daniel Veillard - - * python/libxml.c: don't output any message on failed resolver lookups, - better done by the python user provided resolver layer. - -Fri Jul 29 01:48:02 CEST 2005 Daniel Veillard - - * HTMLparser.c SAX2.c encoding.c globals.c parser.c relaxng.c - runsuite.c runtest.c schematron.c testHTML.c testReader.c - testRegexp.c testSAX.c testThreads.c valid.c xinclude.c xmlIO.c - xmllint.c xmlmodule.c xmlschemas.c xpath.c xpointer.c: a lot of - small cleanups based on Linus' sparse check output. - -Thu Jul 28 21:28:33 CEST 2005 Daniel Veillard - - * include/libxml/Makefile.am: added schematron.h, oops ... - -Thu Jul 28 02:38:21 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Added creation of the content type of - xs:anyType. This is needed when trying to extend xs:anyType - (although it makes no sense to extend it; IMHO the schema - people should have ruled this out). This was reported - by Yong Chen to the mailing list. - * xmlschemas.c: Fixed handling of xs:anyType in - xmlSchemaCheckCOSCTExtends() (reported by Young Chen). Tiny - adjustment to an error report output. - * test/schemas/extension2* result/schemas/extension2*: - Added a test case provided by Young Chen. - -Mon Jul 25 11:41:18 PDT 2005 William Brack - - * uri.c: enhanced xmlBuildRelativeURI to allow the URI and the - base to be in "relative" form - -Sun Jul 24 10:25:41 EDT 2005 Daniel Veillard - - * schematron.c xmllint.c: started adding schematron to the xmllint - tool, the report infrastructure is gonna be fun. - -Sat Jul 23 23:23:51 CEST 2005 Kasimier Buchcik - - * test/schemas/any6* test/schemas/any7*: Added regression tests - (they fail currently), but did not added results yet. - -Sat Jul 23 23:07:05 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Removed the workaround code in - xmlSchemaValidateElemWildcard() for the wildcard - with namespace == ##other. Support for such wildcards was - implemented by Daniel at the automaton level recently, and - the workaround code iterfered with it. - -Sat Jul 23 10:55:50 EDT 2005 Daniel Veillard - - * pattern.c include/libxml/pattern.h: changed xmlPatterncompile - signature to pass an int and not an enum since it can generate - ABI compat troubles. - * include/libxml/schematron.h schematron.c: adding the new - schematron code, work in progress lots to be left and needing - testing - * include/libxml/xmlversion.h.in include/libxml/xmlwin32version.h.in - Makefile.am configure.in: integration of schematron into the - build - * xpath.c include/libxml/xpath.h: adding flags to control compilation - options right now just XML_XPATH_CHECKNS. - -Sat Jul 23 16:39:35 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Removed an "internal error" message from - xmlSchemaBuildAContentModel() when an empty model group - definition is hit. - -Sat Jul 23 00:34:07 CEST 2005 Kasimier Buchcik - - * pattern.c: Changed xmlCompileStepPattern() and - xmlCompileAttributeTest() to handle the "xml" prefix without - caring if the XML namespace was supplied by the user. - -Fri Jul 22 00:08:43 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed xmlSchemaPSimpleTypeErr(), which did not - output the given string arguments correctly. - -Thu Jul 21 09:21:00 EDT 2005 Daniel Veillard - - * error.c globals.c parser.c runtest.c testHTML.c testSAX.c - threads.c valid.c xmllint.c xmlreader.c xmlschemas.c xmlstring.c - xmlwriter.c include/libxml/parser.h include/libxml/relaxng.h - include/libxml/valid.h include/libxml/xmlIO.h - include/libxml/xmlerror.h include/libxml/xmlexports.h - include/libxml/xmlschemas.h: applied a patch from Marcus Boerger - to fix problems with calling conventions on Windows this should - fix #309757 - -Wed Jul 20 14:45:39 CEST 2005 Daniel Veillard - - * parser.c: an optimization of the char data inner loop, - can gain up to 10% in pure SAX2 parsing speed - * xmlschemas.c: applied patch from Kupriyanov Anatolij fixing - a bug in XML Schemas facet comparison #310893 - -Tue Jul 19 17:27:26 CEST 2005 Daniel Veillard - - * xmlregexp.c xmlschemas.c: fixed the error reporting for - not transitions - * result/schemas/any5_0_0* result/schemas/any5_0_2* - result/schemas/any5_1_0*: fixed output - -Tue Jul 19 15:34:12 CEST 2005 Daniel Veillard - - * xmlregexp.c xmlschemas.c include/libxml/xmlautomata.h: fixing - bug #172215 about foreign namespaces by adding support for - negated string transitions. Error messages still need to be - improved. - * test/schemas/any5* result/schemas/any5*: adding regression - tests for this. - -Tue Jul 19 12:33:31 CEST 2005 Daniel Veillard - - * tree.c: applied patch from Alexander Pohoyda fixing xmlGetNodePath - on namespaced attributes #310417. - -Mon Jul 18 23:01:15 CEST 2005 Daniel Veillard - - * doc/xmllint.1 doc/xmllint.html doc/xmllint.xml: --nonet was - ducplicated - -Mon Jul 18 20:49:28 CEST 2005 Daniel Veillard - - * xmlschemas.c: fixed xsd:all when used in conjunction with - substitution groups - * test/schemas/allsg_* result/schemas/allsg_*: adding specific - regression tests, strangely missing from NIST/Sun/Microsoft - testsuites - -Sun Jul 17 07:11:27 CEST 2005 Daniel Veillard - - * xmlschemas.c: fixed bug #307508, a bad automata was built but - this showed as an indeterminist result - -Thu Jul 14 17:53:02 CEST 2005 Daniel Veillard - - * xmlschemastypes.c: found the last bug raised by NIST tests in - comparing base64 strings, result from runsuite: - ## NIST test suite for Schemas version NIST2004-01-14 - Ran 23170 tests (3953 schemata), no errors - -Thu Jul 14 14:57:36 CEST 2005 Daniel Veillard - - * testRegexp.c: fixed where xmlMemoryDump() should be called. - * xmlregexp.c: fixed handling of {0}, \n, \r and \t, two bugs - affecting NIST regression tests - -Thu Jul 14 11:30:24 CEST 2005 Daniel Veillard - - * configure.in: applied a patch from Gerrit P. Haase to add - module support on cygwin - -Thu Jul 14 10:56:42 CEST 2005 Daniel Veillard - - * HTMLparser.c: fixed a potential buffer overrun error introduced - on last commit to htmlParseScript() c.f. #310229 - -Thu Jul 14 23:48:17 PDT 2005 William Brack - - * xpath.c: Changed the behaviour of xmlXPathEqualNodeSetFloat to - return TRUE if a nodeset with a numeric value of NaN is compared - for inequality with any numeric value (bug 309914). - -Thu Jul 14 01:03:03 CEST 2005 Daniel Veillard - - * error.c relaxng.c xmlreader.c xmlschemas.c include/libxml/relaxng.h - include/libxml/xmlschemas.h: applied patch from Marcus Boerger - to route relaxng and schemas error messages when using the reader - through the structured interface if activated. - * elfgcchack.h doc/* testapi.c: rebuilt since this add new APIs - to test. - -Wed Jul 13 18:35:47 CEST 2005 Daniel Veillard - - * HTMLparser.c: applied UTF-8 script parsing bug #310229 fix from - Jiri Netolicky - * result/HTML/script2.html* test/HTML/script2.html: added the test - case from the regression suite - -Tue Jul 12 17:08:11 CEST 2005 Daniel Veillard - - * nanohttp.c: fixed bug #310105 with http_proxy environments with - patch provided by Peter Breitenlohner - -Mon Jul 11 00:28:10 CEST 2005 Daniel Veillard - - * Makefile.am NEWS configure.in doc/*: preparing release 2.6.20 - * xmllint.c: removed a compilation problem - -Sun Jul 10 23:33:41 CEST 2005 Daniel Veillard - - * xstc/Makefile.am README README.tests Makefile.tests Makefile.am: - preparing to make testsuite releases along with code source releases - * gentest.py testapi.c: fixed a couple of problem introduced by - the new Schemas support for Readers - * xpath.c: fixed the XPath attribute:: bug #309580, #309864 in a crude - but simple way. - * xmlschemas.c include/libxml/tree.h: fixed a couple of problems - raised by the doc builder. - * doc/*: made rebuild - -Sun Jul 10 21:51:16 CEST 2005 Daniel Veillard - - * xmlschemas.c: fixed a bug introduced on last commit - -Sun Jul 10 21:00:54 CEST 2005 Daniel Veillard - - * doc/xmllint.1 doc/xmllint.html doc/xmllint.xml: fixed a typo - pointed by Jeroen Ruigrok - * include/libxml/xmlreader.h include/libxml/xmlschemas.h: increased - the APIs for xmlReader schemas validation support - * xmllint.c xmlreader.c xmlschemas.c: xmlReader schemas validation - implementation and testing as xmllint --stream --schema ... - -Sun Jul 10 16:11:26 CEST 2005 Daniel Veillard - - * include/libxml/xmlwin32version.h.in: try to avoid conflicts. - -Sat Jul 9 19:29:10 CEST 2005 Daniel Veillard - - * parser.c: fix for #309761 from Dylan Shell - * xmlschemas.c include/libxml/xmlschemas.h: added xmlSchemaSAXPlug - and xmlSchemaSAXUnplug generic APIs for SAX Schemas validation. - * xmllint.c: couple of fixes plus added descriptions for --sax and - --sax1 - -Fri Jul 8 23:35:00 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Added c-props-correct constraint to check - for equal cardinality of keyref/key. - * include/libxml/xmlerror.h: Added an error code. - -Fri Jul 8 21:56:04 CEST 2005 Kasimier Buchcik - - * pattern.c: Fixed evaluation of attributes. Actually only - attribute at the first level were evaluated (e.g. "@attr"); - expression like "foo/@attr" always failed. - -Fri Jul 8 20:04:29 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: tiny fix in xmlSchemaValidateStream() if a - user-provided SAX handler is given. - -Fri Jul 8 19:25:26 CEST 2005 Daniel Veillard - - * parser.c: fix some potential leaks in error cases. - * xmllint.c: added --sax, to allow testing of --schemas --sax and - various other combinations. - * xmlschemas.c: fix a couple of tiny problems in - xmlSchemaValidateStream() - -Fri Jul 8 18:34:22 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Changed xmlSchemaValidateFile() to use - xmlSchemaValidateStream() internally. - -Fri Jul 8 17:02:14 CEST 2005 Daniel Veillard - - * test/relaxng/docbook_0.xml: added the missing entity to the - document internal subset to avoid errors if the DocBook catalogs - are not there - * xmlschemas.c: first cut at implementing xmlSchemaValidateStream() - untested yet - -Wed Jul 6 15:45:48 PDT 2005 William Brack - - * parser.c: fixed problem with free on dupl attribute in - dtd (bug309637). - * test/errors/attr3.xml, result/errors/attr3.*: added - regression test for this - -Wed Jul 6 13:11:35 PDT 2005 William Brack - - * win32/Makefile.msvc: try again to fix file format for Windows - -Wed Jul 6 12:20:13 PDT 2005 William Brack - - * win32/Makefile.msvc: removed spurious ^M - * runtest.c: added check for option O_BINARY - * test/schemas/bug309338*, result/schemas/bug309338*: changed - sticky tag to 'binary' - -Wed Jul 6 10:38:02 PDT 2005 William Brack - - * debugXML.c: excluded content string check for XML_ELEMENT_DECL - in xmlCtxtGenericNodeCheck - * runtest.c: changed "open" calls to include O_BINARY for Windows - -Wed Jul 6 17:14:03 CEST 2005 Daniel Veillard - - * parser.c: fixing bug #166777 (and #169838), it was an heuristic - in areBlanks which failed. - * result/winblanks.xml* result/noent/winblanks.xml test/winblanks.xml: - added the input file to the regression tests - -Wed Jul 6 13:40:22 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Fixed bug #309338, reported by Kupriyanov - Anotolij. - * test/schemas/bug309338* result/schemas/bug309338*: - Added a regression test for the above bug. - -Tue Jul 5 16:03:05 CEST 2005 Daniel Veillard - - * Makefile.am: first steps toward a testsuite dist - * SAX2.c include/libxml/xmlerror.h: fixed bug #307870 - -Tue Jul 5 12:38:36 CEST 2005 Kasimier Buchcik - - * runsuite.c runtest.c: Tiny portability adjustment for win. - * win32/Makefile.*: Added runtest.exe and runsuite.exe to - be created. - -Mon Jul 4 17:44:26 CEST 2005 Daniel Veillard - - * runsuite.c: first stb at unimplemnted detection - * runtest.c: fixing Windows code - -Mon Jul 4 17:19:31 CEST 2005 Daniel Veillard - - * runsuite.c: fix on schemas error - * runtest.c: portability glob() on Windows - -Mon Jul 4 16:23:54 CEST 2005 Daniel Veillard - - * runsuite.c runtest.c: cleanups, logfile and portability - * xmllint.c: fixed a memory leak - -Mon Jul 4 13:11:12 CEST 2005 Daniel Veillard - - * parser.c: fixed a bug failing to detect UTF-8 violations in - CData in push mode. - * result/errors/cdata.xml* test/errors/cdata.xml: added the test - to the regressions - -Mon Jul 4 11:26:57 CEST 2005 Daniel Veillard - - * debugXML.c: added enhancement for #309057 in xmllint shell - -Mon Jul 4 00:58:44 CEST 2005 Daniel Veillard - - * HTMLparser.c: applied patch from James Bursa fixing an html parsing - bug in push mode - * result/HTML/repeat.html* test/HTML/repeat.html: added the test to the - regression suite - -Sun Jul 3 23:42:31 CEST 2005 Daniel Veillard - - * testapi.c tree.c: fixing a leak detected by testapi in - xmlDOMWrapAdoptNode, and fixing another side effect in testapi - seems to pass tests fine now. - * include/libxml/parser.h parser.c: xmlStopParser() is no more limited - to push mode - * error.c: remove a warning - * runtest.c xmllint.c: avoid compilation errors if only some parts - of the library are compiled in. - -Mon Jul 4 00:39:35 CEST 2005 Daniel Veillard - - * gentest.py testapi.c: fix a problem with previous patch to - testapi.c - -Sun Jul 3 22:59:28 CEST 2005 Daniel Veillard - - * runsuite.c runtest.c tree.c: fixing compilations when - disabling parts of the library at configure time. - -Sun Jul 3 18:17:58 CEST 2005 Daniel Veillard - - * parserInternals.c: fix bug raised by zamez on IRC - * testapi.c: regenerated, seems to pop-up leaks in new tree functions - * tree.c: added comments missing. - * doc/*: regenerated - -Sun Jul 3 18:06:55 CEST 2005 Daniel Veillard - - * testapi.c runsuite.c runtest.c: fixing #307823 and a couple of - assorted bugs - * python/generator.py python/libxml2-python-api.xml: fixed - conditionals in generator too - * doc/apibuild.py doc/libxml2-api.xml doc/* elfgcchack.h: some - cleanups too and rebuilt - -Sun Jul 3 16:42:00 CEST 2005 Daniel Veillard - - * xmlIO.c: fixed bug #307503 misplaced #ifdef - -Sun Jul 3 16:34:47 CEST 2005 Daniel Veillard - - * runsuite.c: expanded test - * xmlregexp.c: found and fixed the leak exposed by Microsoft regtests - -Sat Jul 2 23:38:24 CEST 2005 Daniel Veillard - - * runsuite.c: a bit of progresses on xstc - -Sat Jul 2 09:30:13 CEST 2005 Daniel Veillard - - * runsuite.c: completed the simple checks for Relax-NG suites - back to the same 11 errors as in the Python runs. - -Thu Jun 30 15:01:52 CEST 2005 Daniel Veillard - - * runtest.c: complete, checking on other platforms is needed - * README: updated - * debugXML.c: fix a bug raised by bill on IRC - * relaxng.c: fix a leak in weird circumstances - * runsuite.c Makefile.am: standalone test tool agaisnt - the regression suites, work in progress - -Tue Jun 28 08:30:26 CEST 2005 Daniel Veillard - - * runtest.c: adding URI tests - -Mon Jun 27 23:55:56 CEST 2005 Daniel Veillard - - * runtest.c: adding xml:id - -Mon Jun 27 23:29:36 CEST 2005 Daniel Veillard - - * runtest.c: finishing XPath, adding XPointer - -Mon Jun 27 17:39:27 CEST 2005 Daniel Veillard - - * runtest.c: adding more coverage, XInclude and starting XPath - -Mon Jun 27 17:02:14 CEST 2005 Kasimier Buchcik - - * tree.c include/libxml/tree.h: Added allocation/deallocation - functions for the DOM-wrapper context. - -Mon Jun 27 15:41:30 CEST 2005 Kasimier Buchcik - - * tree.c: Commented the new functions to be experimental. - -Mon Jun 27 14:41:14 CEST 2005 Daniel Veillard - - * error.c valid.c: working some weird error reporting problem for - DTD validation. - * runtest.c: augmented with DTD validation tests - * result/VC/OneID*: slight change in validation output. - -Mon Jun 27 13:44:41 CEST 2005 Daniel Veillard - - * runtest.c: added most HTML tests - -Mon Jun 27 14:06:10 CEST 2005 Kasimier Buchcik - - * test/namespaces/reconcile/tests.xml - test/namespaces/reconcile/tests-to-c.xsl: Added initial tests - for some new DOM-wrapper helping functions. - -Mon Jun 27 14:01:06 CEST 2005 Kasimier Buchcik - - * xstc/xstc-to-python.xsl: Cleanup. - * xstc/sun-test-def.xml xstc/nist-test-def.xml xstc/ms-test-def.xml: - Removed, those are not needed anymore due to the new test suite. - -Mon Jun 27 11:39:50 CEST 2005 Daniel Veillard - - * result/*.sax2 MAkefile.am: added SAXv2 regression tests apparently - missing. - * runtest.c: added SAX1/SAX2 checks. - -Mon Jun 27 12:24:54 CEST 2005 Kasimier Buchcik - - * tree.c include/libxml/tree.h: Added - xmlDOMWrapReconcileNamespaces(), xmlDOMWrapAdoptNode() and - xmlDOMWrapRemoveNode() to the API. These are functions intended - to be used with DOM-wrappers. - -Mon Jun 27 10:14:57 CEST 2005 Daniel Veillard - - * runtest.c: continue to increase the tests - -Mon Jun 27 09:21:49 CEST 2005 Daniel Veillard - - * runtest.c: continue to increase the tests - -Mon Jun 27 01:01:32 CEST 2005 Daniel Veillard - - * runtest.c: continue to increase the tests - -Sun Jun 26 20:08:24 CEST 2005 Daniel Veillard - - * include/libxml/valid.h valid.c: avoid name glob in agruments as - it matches the glob() routine. - * runtest.c Makefile.am: first steps toward a C regression test - framework. - -Sat Jun 25 01:37:22 PDT 2005 William Brack - - * configure.in: fixed a problem with the detection of - ss_family for ipV6, as reported on the mailing list by - Doug Orleans. - -Tue Jun 21 10:44:34 CEST 2005 Kasimier Buchcik - - * test/schemas/empty-value* result/schemas/empty-value*: - Added regression tests (from Dhyanesh). - -Tue Jun 21 10:35:43 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed NULL values to be validated as empty - string values (reported by Dhyanesh to the mailing list). - Adjusted text concatenation of mixed content. - -Mon Jun 20 18:11:32 CEST 2005 Daniel Veillard - - * tree.c valid.c: applied patch from Rob Richards for removal - of ID (and xml:id) - * xmlreader.c: applied patch from James Wert implementing - xmlTextReaderReadInnerXml and xmlTextReaderReadOuterXml - -Thu Jun 16 14:38:22 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed SAX2 validation: grow of internal - namespace list, appending of element character content. - * xstc/xstc.py: Added "--sax" option for SAX2 validation. - -Wed Jun 15 15:34:52 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Added missing function descriptions. - -Wed Jun 15 15:26:14 CEST 2005 Daniel Veillard - - * xmllint.c: if sax1 is used and input is a file use the old - API xmlParseFile() - * xmlschemas.c: cleanups - * doc/* testapi.c elfgcchack.h: rebuilt to add python bindings - for the new functions in Schemas. - -Wed Jun 15 14:50:48 CEST 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/xmlschemas.h: Added - xmlSchemaValidateFile() to the public API. This will use - SAX2-driven validation. - -Wed Jun 15 11:11:38 CEST 2005 Kasimier Buchcik - - * result/schemas/bug306806_1_0 result/schemas/bug306806_1_0.err: - Added schema test results (Tom Browder, bug #306806). - -Wed Jun 15 11:08:34 CEST 2005 Kasimier Buchcik - - * test/schemas/bug306806_1.xsd test/schemas/bug306806_0.xml: - Added schema tests submitted by Tom Browder (bug #306806). - -Tue Jun 14 15:03:22 PDT 2005 William Brack - - * pattern.c: adjusted last change to xmlCompilePathPattern, - fixed one compilation warning - -Tue Jun 14 21:19:16 CEST 2005 Kasimier Buchcik - - * pattern.c: Some changes/fixes to the streaming evaluation. - * xmlschemas.c: A bit of support for parsing the schema for - schema. Fixed attribute derivation when the use is - "prohibited" and was "optional". Fixed an attribute construction - bug, a left-over from the time, where , - , etc. where created as structs. - -Tue Jun 14 12:35:12 CEST 2005 Daniel Veillard - - * libxml-2.0.pc.in: removed a redundant include path - -Mon Jun 13 14:58:33 CEST 2005 Kasimier Buchcik - - * xstc/Makefile.am: Some more adjustments. - -Mon Jun 13 14:35:59 CEST 2005 Kasimier Buchcik - - * xstc/Makefile.am: Changed test extraction process, since some - boxes don't know about "tar --strip-path". - -Mon Jun 13 13:39:43 CEST 2005 Daniel Veillard - - * relaxng.c: fixed a bug exposed by Rob Richards in the mailing-list - * result//compare0* test//compare0*: added the regression test in - the suite as this went unnoticed ! - -Wed Jun 9 11:07:42 PDT 2005 William Brack - - * pattern.c, xpath.c, include/libxml/pattern.h: Further - enhancement for XPath streaming, consolidated with - schemas usage of pattern.c. Added a new enum - xmlPatternFlags. - * doc/*, testapi.c, elfgcchack.h: updated to reflect new - enum. - * test/XPath/tests/mixedpat, test/XPath/docs/mixed, - result/XPath/mixedpat: added regression test for problems - reported in bug306348 - -Thu Jun 9 16:51:31 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Changed non-prefixed QNames to be bound to a - default namespace if existent. - -Thu Jun 9 15:11:38 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Fixed a bug which I invented: hexBinary's string - values were not duplicated corrently when creating a computed value - in xmlSchemaValAtomicType. - -Thu Jun 9 13:20:57 CEST 2005 Kasimier Buchcik - - * xmlschemas.c result/schemas/include1_0_0.err: - Fixed an attribute fixed/default value constraint error. - -Thu Jun 9 12:51:23 CEST 2005 Kasimier Buchcik - - * result/schemas/*: Adapted regression test results. - -Thu Jun 9 12:22:45 CEST 2005 Kasimier Buchcik - - * xmlschemas.c xmlschemastypes.c include/libxml/schemasInternals.h - include/libxml/xmlschemastypes.h: Changed the validation process - to be able to work in streaming mode. Some datatype fixes, - especially for list and union types. Due to the changes the - error report output has changed in most cases. Initial migration to - functions usable by both, the parser and the validator. This should - ease a yet-to-come XS construction API in the long term as well. - -Thu Jun 9 10:16:11 CEST 2005 Daniel Veillard - - * parser.c: applied patch from Malcolm Rowe to avoid namespace - troubles on rollback parsing of elements start #304761 - * test/nsclean.xml result/noent/nsclean.xml result/nsclean.xml*: - added it to the regression tests. - -Thu Jun 9 00:33:50 CEST 2005 Daniel Veillard - - * parser.c include/libxml/xmlerror.h: applied patch from Rob Richards - for xml:space and xml:lang handling with SAX2 api. - -Wed Jun 8 19:41:38 CEST 2005 Daniel Veillard - - * globals.c: applied patch from Morten Welinder, closing bug #306901 - on compiling subsets of the library - -Wed Jun 8 19:11:42 CEST 2005 Kasimier Buchcik - - * xstc/Makefile.am xstc.py xstc-to-python.xsl: Adapted the - XS tests to use the new release of tests and test-definitions. - -2005-06-07 Aleksey Sanin - - * c14n.c: fix rendering of attributes when parent node - is not in the node set - -2005-06-06 Aleksey Sanin - - * c14n.c: fixed xml attributes processing bug in exc c14n - * xmllint.c: added --exc-c14n command line option - -Mon Jun 6 06:43:33 PDT 2005 William Brack - - * xpath.c, pattern.c: Enhanced xmlXPathRunStreamEval, fixed - handling of depth/level for cases like union operator - (bug #306348 reported by Bob Stayton). Also enhanced - several comments throughout pattern.c. - * doc/apibuild.py: fixed problem in handling of - 'signed' declaration. Rebuilt the docs. - -Tue May 31 20:35:27 PDT 2005 William Brack - - * xinclude.c: Enhanced handling of xml:base for included - elements, fixing bugs 169209 and 302353. - -Wed May 25 18:59:53 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed facet errors to be channelled back for - union type members; facet-validation will stop now on the - first error. Reported by GUY Fabrice to the mailing-list. - * xmlschemastypes.c: Changed to ignore lengh-related facet - validation for QNames and NOTATIONs as proposed by the - schema people. - * test/schemas/union2* result/schemas/union2*: Added - regression tests for union types (by GUY Fabrice). - -Fri May 20 20:48:08 CEST 2005 Daniel Veillard - - * xmlsave.c: applied patch from Mark Vakoc fixing saving of - CDATA with NULL content. - -Thu May 12 15:14:26 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Changed the VALID_TZO macro to restrict - the timezone to -840 to 840. - -Thu May 12 15:05:11 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Applied patch from Steve Nairn (bug #303670) - for "signed int" of the date-time timezone field. Silenced - a warning. - -Wed May 11 20:04:09 CEST 2005 Daniel Veillard - - * tree.c: applied patch for replaceNode from Brent Hendricks - -Tue May 10 17:27:52 CEST 2005 Daniel Veillard - - * tree.c: fixed bug #303682 of a leak reported by Malcolm Rowe - -Tue May 10 11:50:16 CEST 2005 Daniel Veillard - - * testapi.c: applied patch from Steve Nairn tof fix the compilation - problem exposed in bug #303640 - -Tue May 10 11:11:26 CEST 2005 Kasimier Buchcik - - * test/schemas/bug303566_1* result/schemas/bug303566_1_1*: - Added regression a test provided by Heiko Oberdiek (bug #303566). - -Mon May 9 17:56:58 CEST 2005 Kasimier Buchcik - - * pattern.c: Changed the XPath "." to resolve only on the first - level for XML Schema IDCs (bug #303566 reported by Heiko Oberdiek). - This should not affect pattern-like resolution on every level. - -Sun May 8 13:35:39 CEST 2005 Daniel Veillard - - * xmlmemory.c: fixed #169630 segfault in xmlMemDisplay - -Fri May 6 13:40:03 CEST 2005 Daniel Veillard - - * nanoftp.c: fixing bug #303068 increasing the nanoftp buffer. - * doc/apibuild.py: fixed __attribute() parsing problem - * doc/* testapi.c: regenerated the descriptions and docs. - -Wed May 4 11:16:00 CEST 2005 Daniel Veillard - - * Makefile.am configure.in threads.c: on linux/gcc use weak definitions - to avoid linking with pthread library on non-threaded environments. - * xpath.c: applied patch from Mark Vakoc w.r.t. a buggy namespace - list allocation. - -Fri Apr 29 11:27:37 CEST 2005 Kasimier Buchcik - - * parser.c: Fixed a test for duplicate attributes: Non-prefixed - attributes were treated as being bound to the default namespace. - -Tue Apr 19 17:51:32 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Fixed date-time related validation - (reported by David Crossley, bug #300576). - -Tue Apr 19 16:55:40 CEST 2005 Kasimier Buchcik - - * xmlschemas.c xmlregexp.c: Removed 5 unnecessary - dereferences (reported by Andriy, bug #301074). - -Tue Apr 19 22:33:18 HKT 2005 William Brack - - * xpath.c: Added some code to avoid integer overflow for - ceil, floor and round functions (bug 301162) - -Tue Apr 19 13:21:54 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Removed workaround for bug #172215, since it - does more harm in some scenarios. Added some of the - "Particle Restriction OK" constraints - not yet enabled. - -Mon Apr 18 13:02:55 CEST 2005 Kasimier Buchcik - - * result/schemas/changelog093*: Added test results. - -Mon Apr 18 12:42:14 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Added output of canonical values in - identity-constraint error messages. - * xmlschemastypes.c include/libxml/xmlschemastypes.h: - Added xmlSchemaGetCanonValueWhtsp() to the API. - Further enhancement of the canonical value - conversion. - * test/schemas/changelog093_0.*: Added test with an XSD - submitted by Randy J. Ray. - -Fri Apr 15 09:33:21 HKT 2005 William Brack - - * valid.c: Applied Daniel's fix for memory leak in dtd - prefix (bug 300550). - * xpath.c: minor change to comment only - -Thu Apr 14 20:52:41 CEST 2005 Daniel Veillard - - * xmlmemory.c: added the call to the breakpoint routine - when a monitored block is reallocated or freed - -Wed Apr 13 05:55:51 CEST 2005 Daniel Veillard - - * nanohttp.c: applied patch from Aron Stansvik for bug #172525 - about HTTP query string parameter being lost - -Tue Apr 12 04:03:32 CEST 2005 Daniel Veillard - - * python/libxml.c python/libxml.py: applied patch from Brent Hendricks - adding namespace removal at the python level #300209 - * python/tests/Makefile.am python/tests/nsdel.py: added the regression - test - -Sun Apr 10 09:03:22 HKT 2005 William Brack - - * xpath.c: fixed several places where memory cleanup was not - properly done after an error was detected (problem was - reported on the mailing list by Pawel Palucha) - -Fri Apr 8 21:58:04 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Added substitution group constraints; changed - the build of the pre-computed substitution groups. Channeled - errors during xsi assembling of schemas to the validation - context. Fixed a big memory leak, which occured when using - IDCs: the precomputed value of attributes was not freed if - the attribute did not resolve to an IDC field (discovered - with the help of Randy J. Ray's schema, posted to the - xmlschema-dev maling list). - -Fri Apr 8 13:22:01 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Added "Particle correct 2" to parsing of model groups. - Added handling substitution groups inside and ; - for this is not supported yet. Changed circular checks for - model groups definitions. "memberTypes" are processed at different - levels now: component resolution first, construction later; this - goes hand in hand with a global change to handle component - resolution in a distinct phase. Fixed invalid default values for - elements to mark the schema as invalid; this just resulted in an - error report previously, but the schema was handled as valid. - Separated the assignment of the model groups to referencing - model group definition references (i.e. particles); this was - needed to perform the circularity check for model group definitions. - Added "Element Declaration Properties Correct (e-props-correct)" - constraints. Separated component resolution for simple/complex - types. - * include/libxml/schemasInternals.h: Added a flag for substitution - group heads. - -Wed Apr 6 23:14:03 CEST 2005 Igor Zlatkovic - - * win32/Makefile.*: make install cleanup - -Wed Apr 6 22:42:23 CEST 2005 Igor Zlatkovic - - * win32/Makefile.mingw: fixed mingw compilation - * testModule.c: removed mingw warnings - -Wed Apr 6 21:59:11 CEST 2005 Igor Zlatkovic - - * .cvsignore: added Eclipse project files to ignore list - -Wed Apr 6 16:08:10 CEST 2005 Daniel Veillard - - * xpath.c: fixed the bug in lang() as raised by Elliotte Rusty Harold - * result/XPath/tests/langsimple test/XPath/tests/langsimple - test/XPath/docs/lang: added a regression test - -Tue Apr 5 23:48:35 CEST 2005 Daniel Veillard - - * nanoftp.c: applied fix from Rob Richards to compile on Windows. - -Tue Apr 5 17:02:58 CEST 2005 Kasimier Buchcik - - * xmlschemas.c: Added "Type Derivation OK (Complex)" constraints - and anchored them in the "Element Locally Valid (Element)" - constraints. This restricts the type substitution via "xsi:type". - -Tue Apr 5 13:10:06 CEST 2005 Daniel Veillard - - * xmlschemas.c: patch from Matthew Burgess to improve some schemas - facets validation messages. - -Sat Apr 2 12:48:41 CEST 2005 Daniel Veillard - - * doc/* configure.in NEWS: preparing release 2.6.19, updated docs and - rebuilding. - -Sat Apr 2 13:27:32 CEST 2005 Daniel Veillard - - * xstc/Makefile.am: integrated fixup-tests.py - -Fri Apr 1 19:14:18 CEST 2005 Daniel Veillard - - * xmlschemastypes.c: fixed a lack of comment and missing test for - a pointer in the API. - -Fri Apr 1 17:54:22 CEST 2005 Kasimier Buchcik - - * xstc/fixup-tests.py: A tiny script to fixup some of the schema - files used for the tests. - -Fri Apr 1 17:33:50 CEST 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/schemasInternals.h - result/schemas/src-element2-*.err result/schemas/element-*.err: - Committing again, since the CVS server aborted. - -Fri Apr 1 15:29:27 CEST 2005 Kasimier Buchcik - - * xmlschemastypes.c: Corrected 'length' facet validation for - QNames and notations. Corrected xmlSchemaGetCanonValue: some - data types did not return a value if already in normalized - form. - * xmlschemas.c include/libxml/schemasInternals.h: - Eliminated creation of structs for , , - , , and : the - information is now set directly on the corresponding simple/ - complex type. Added some more complex type constraints. - Added facet derivation constraints. Introduced "particle" - components, which seem to be really needed if applying - constraints. Corrected/change some of the parsing functions. - This is all a bit scary, since a significant change to the code. - * result/schemas/src-element2-*.err result/schemas/element-*.err: - Adapted regression test results. - -Fri Apr 1 16:07:59 CEST 2005 Daniel Veillard - - * doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h - format to cope with gcc4 change of aliasing allowed scopes, had - to add extra informations to doc/libxml2-api.xml to separate - the header from the c module source. - * *.c: updated all c library files to add a #define bottom_xxx - and reimport elfgcchack.h thereafter, and a bit of cleanups. - * doc//* testapi.c: regenerated when rebuilding the API - -Thu Mar 31 17:20:32 CEST 2005 Daniel Veillard - - * xmlsave.c: fixed bug reported by Petr Pajas, in the absence of - encoding UTF-8 should really be assumed. This may break if - the HTTP headers indicates for example ISO-8859-1 since this - then becomes a well formedness error. - -Thu Mar 31 16:57:18 CEST 2005 Daniel Veillard - - * SAX.c: fixed #172260 redundant assignment. - * parser.c include/libxml/parser.h: fixed xmlSAXParseDoc() and - xmlParseDoc() signatures #172257. - -Thu Mar 31 16:11:10 CEST 2005 Daniel Veillard - - * parser.c: fix potential crash if ctxt->sax->ignorableWhitespace - is NULL as reported by bug #172255 - -Thu Mar 31 15:36:52 CEST 2005 Daniel Veillard - - * relaxng.c: fixed a problem in Relax-NG validation #159968 - * test/relaxng/list.* result/relaxng/list_*: added the test - to the regression suite - -Thu Mar 31 13:06:02 CEST 2005 Daniel Veillard - - * python/libxml.c: fixed bug #168504 - -Thu Mar 31 12:22:54 CEST 2005 Daniel Veillard - - * config.h.in configure.in nanoftp.c nanohttp.c xmllint.c - macos/src/config-mac.h: use XML_SOCKLEN_T instead of SOCKLEN_T - since apparently IBM can't avoid breaking common defines #166922 - -Thu Mar 31 10:41:45 CEST 2005 Daniel Veillard - - * encoding.c: fix unitinialized variable in not frequently used - code bug #172182 - -Thu Mar 31 00:45:18 CEST 2005 Daniel Veillard - - * python/generator.py python/libxml.py: another patch from Brent - Hendricks to add new handlers with the various validity contexts - * python/tests/Makefile.am python/tests/validDTD.py - python/tests/validRNG.py python/tests/validSchemas.py: also - added the regression tests he provided - -Wed Mar 30 09:39:27 CEST 2005 Daniel Veillard - - * python/generator.py python/libxml.c: applied patch from Brent - Hendricks to avoid leak in python bindings when using schemas - error handlers. - -Tue Mar 29 22:29:28 CEST 2005 Daniel Veillard - - * HTMLtree.c: fixing bug 168196, must be URI escaped too - -Sun Mar 27 13:24:24 CEST 2005 Daniel Veillard - - * tree.c: cleanup of the Prop related functions and xmlNewNodeEatName - by Rob Richards - -Thu Mar 24 19:01:22 PST 2005 William Brack - - * gentest.py, testapi.c: fixed problem with 'minimal library' - compilation (LIBXML_PATTERN_ENABLED not properly checked) reported - by Greg Morgan - -Thu Mar 24 12:01:30 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed call to a facet error report: the type of - the error was wrong, resulting in a segfault (bug #171220, reported - by GUY Fabrice). - -Mon Mar 21 22:58:37 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Removed a stupid bug in xmlSchemaValidateAttributes, - failing to build a linked list correctly (bug #169898, reported - by bing song, hmm...). - -Mon Mar 21 21:09:07 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed a segfault, which occured during bubbling - of IDC nodes (bug #170779 and #170778, reported by GUY Fabrice): - a variable was missed to be reset in a loop. Deactivated bubbling, - if not referenced by a keyref. - -Sun Mar 20 11:13:02 PST 2005 Aleksey Sanin - - * c14n.c include/libxml/xmlerror.h: special case "DAV:" namespace - in c14n relative namespaces check and add structured error messages - to c14n code - -Thu Mar 17 12:55:23 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Removed inheritance of "mixed" content type for - short-hand restrictions of "anyType" (reported by Guy Fabrice - to the mailing list). Added the namespace conversion (chameleon - includes) for the base type reference of and - . - * test/schemas/bug152470_1.xsd: Adapted due to the above change - of "mixed" inheritance. - -Thu Mar 17 11:03:59 CET 2005 Daniel Veillard - - * xmlschemas.c: fixed a = -> == error pointed by GUY Fabrice - -Wed Mar 16 22:53:53 CET 2005 Daniel Veillard - - * xmlschemas.c: more debug messages from Matthew Burgess - * xmlschemastypes.c: xmlSchemaValidateLengthFacet API missing check. - -Wed Mar 16 17:37:04 CET 2005 Kasimier Buchcik - - * xmlschemastypes.c: Aaaannnd putting back the previous changes done - by Daniel, which I overwrote with the previous commit. - -Wed Mar 16 17:20:25 CET 2005 Kasimier Buchcik - - * xmlschemas.c xmlschemastypes.c include/libxml/xmlschemastypes.h: - Hopefully finished validation against facets to use the normalized - value of both, the facets and instance values. Added - xmlSchemaValidateLengthFacetWhtsp(), xmlSchemaValidateFacetWhtsp() - and xmlSchemaGetValType() to the schema API. - -Wed Mar 16 13:55:31 CET 2005 Daniel Veillard - - * libxml.spec.in: do not package .la files - * xmllint.c: applied patch from Gerry Murphy for xmllint return code - * xmlschemastypes.c: fixed a couple of missing tests of parameters - at public API entry points. - -Tue Mar 15 23:31:14 HKT 2005 William Brack - - * xmlschemastypes.c: a couple of more changes to various - decimal-handling routines. Fixes python some problems - turned up by the python tests. - * Makefile.am: change SchemasPythonTests message to warn - that there are 10 'expected' errors (rather than 6) since - we now reject a '+' sign on an unsigned. - -Tue Mar 15 15:43:27 CET 2005 Kasimier Buchcik - - * xmlschemastypes.c xmlschemastypes.h: In preparation to use - normalized values of facets during validation: changed the - arguments of some string comparison functions; added a static - xmlSchemaValidateFacetInternal() with more arguments to be - more flexible. Prepared XML_SCHEMA_FACET_ENUMERATION validation - to use the comparison functions. Fixed some assignments in - xmlSchemaValAtomicType(): total digit count, lo, mi, hi. - -Sun Mar 13 19:32:03 CET 2005 Daniel Veillard - - * NEWS configure.in testapi.c doc/*: preparing release of 2.6.18 - updated docs and rebuilt - * libxml.spec.in: reactivated gcc profiling for gcc >= 4.0.0 - -Sat Mar 12 19:50:22 CET 2005 Daniel Veillard - - * encoding.c: removed a static buffer in xmlByteConsumed(), - as pointed by Ben Maurer, fixes #170086 - * xmlschemas.c: remove a potentially uninitialized pointer warning - -Fri Mar 11 23:53:13 HKT 2005 William Brack - - * xmlschemastypes.c: enhanced the parsing of XML_SCHEMAS_DECIMAL - and much of the routine xmlSchemaCompareDecimals. The - changes were necessary to fix a problem reported on the - mailing list by John Hockaday. - -Fri Mar 11 13:22:52 CET 2005 Kasimier Buchcik - - * xmlschemas.c: The schema parser will stop if components could - not be resolved. This is not conforming to the spec but for now - will avoid internal errors during type fixup and content model - creation. Restructured inclusion/import of schemata: this avoids - duplicate, self and circular inclusion. Chameleon includes are - still workarounded. Added restriction to disallow references to - non-imported namespaces. Corrected parsing of . - * result/schemas/bug167754_0_0*: Added a missing test result. - -Thu Mar 10 16:02:17 CET 2005 Daniel Veillard - - * doc/xml.html doc/encoding.html: Enriched encoding.html with more - link and foreword warning to avoid problem with ignorant - programmers, c.f #169721 - -Thu Mar 10 15:01:34 CET 2005 Daniel Veillard - - * python/tests/Makefile.am python/tests/readernext.py: added - a regression test from Rob Richards for the previous bug - -Thu Mar 10 13:22:36 CET 2005 Daniel Veillard - - * xmlreader.c: applied fix for xmlTextReaderNext() bug from - Rob Richards - -Thu Mar 10 11:35:57 CET 2005 Daniel Veillard - - * xmlmodule.c: second patch from Rick Jones, portability fix for - HP-UX - * doc/examples/xpath1.c doc/examples/xpath2.c: first fix from Rick Jones - to avoid warnings. - -Thu Mar 10 10:20:23 CET 2005 Daniel Veillard - - * include/libxml/hash.h libxml.h libxml.spec.in: some gcc4 portability - patches, including a serious aliasing bug exposed in s390 - when trying to convert data pointer to code pointer. - -Mon Mar 7 18:34:00 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Tiny restructuring of the validation start-up - functions. Added cleanup of the validation context at the - end of validation. This takes care of the validation context - being reused. - -Mon Mar 7 12:12:01 CET 2005 Kasimier Buchcik - - * xmlschemastypes.c: Tiny changes in the comparison functions - I forgot to commit last time. - -Fri Mar 4 22:51:42 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Added IDC validation of anySimpleType attribute - values; anyway the IDC key comparison is restricted to - anySimpleType <--> string based types. For other types we - would possibly need the canonical lexical representation of - them; this sounds not performant, since we would need to - build such a representation each time we want to compare against - anySimpleType. TODO: think about buffering the canonical values - somewhere. Fixed error reports for default attributes to work - without a node being specified. This all and the enabling of IDC - validation fixes bug #165346 (reported by Benoit Gr?goire - could - not read his last name correctly from bugzilla). - -Fri Mar 4 18:57:44 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Enabled IDC parsing and validation. - * xmlschemastypes.c include/libxml/xmlschemastypes.h: - Added xmlSchemaCopyValue to the API; this was done due to - validation of default attributes against IDCs: since IDC keys - consume the precomputed value, one needs a copy. - * pattern.c: Enabled IDC support; this is currently done - via calling xmlPatterncompile with a flag arg of 1. - -Wed Mar 2 11:45:18 CET 2005 Daniel Veillard - - * Makefile.am doc/examples/Makefile.am python/tests/Makefile.am - xstc/Makefile.am: try to fix a problem with valgrind. - * python/generator.py python/libxml.c python/tests/Makefile.am - python/tests/tstmem.py: applied memory leak fix from Brent Hendricks - c.f. bug #165349 - -Mon Feb 28 11:18:24 CET 2005 Kasimier Buchcik - - * tree.c: Changed xmlSearchNsByHref to call xmlNsInScope with - the prefix instead of the namespace name. - * test/schemas/annot-err_0.xsd test/schemas/element-err_0.xsd: - Adapted invalid values of the "id" attribute, since they are - validated now. - -Fri Feb 25 08:31:16 CET 2005 Daniel Veillard - - * threads.c: new version with fixes from Rob Richards - -Thu Feb 24 16:37:51 CET 2005 Daniel Veillard - - * threads.c: applied patch from Rich Salz for multithreading on - Windows. - -Wed Feb 23 15:04:46 CET 2005 Daniel Veillard - - * xmlwriter.c: applied a patch from Rob Richards fixing a couple - of bugs in the writer - -Mon Feb 21 21:51:03 HKT 2005 William Brack - - * xmlsave.c: fixed problem when XMLLINT_INDENT was empty (bug 168033). - * xpath.c: fixed compilation warning, no change to logic. - * xmlschemastypes.c: fixed compilation warning, no change to logic. - -Mon Feb 21 14:48:27 CET 2005 Daniel Veillard - - * xmlwriter.c: applied patch from Rob Richards to fix a problem with - xmlTextWriterStartAttributeNS - -Mon Feb 21 11:41:41 CET 2005 Daniel Veillard - - * pattern.c xpath.c: fixed remaining known bugs in the XPath streaming, - and switched XPath to use it by default when possible - -Sat Feb 19 19:25:14 CET 2005 Daniel Veillard - - * xmlschemastypes.c: a bit of cleanup - * elfgcchack.h testapi.c doc/*: rebuilt the API the tests and - the documentation as a result. - -Fri Feb 18 20:34:03 CET 2005 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h: applied patch from - Aron Stansvik to add xmlTextReaderByteConsumed() - * testReader.c: added a test option - * xmlschemastypes.c: fix a lack of pointer checking in APIs - -Fri Feb 18 12:41:10 CET 2005 Kasimier Buchcik - - * test/schemas/bug167754_0*: Added the regression test of Frans - Englich for bug #167754. - -Fri Feb 18 12:31:49 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Started support for IDC resolution to default - attributes. If building the content model for : ensured - to put element declarations and not the particles into the - content model automaton (this was bug #167754, reported by - Frans Englich). - -Thu Feb 17 22:31:58 CET 2005 Kasimier Buchcik - - * pattern.c pattern.h: Some experimental addition for parsing - of expressions and streamable validation. - Added xmlStreamPushAttr to the API. - -Thu Feb 17 19:57:35 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Added validation for the attribute "id" in the - schemata; doing this needed error report fixes for notations, - facets and group. Changed NOTATION validation to work with the - declared NOTATIONs in the schema; this does have no impact on - the validation via the relaxng module. - * xmlschemastypes.c include/libxml/xmlschemastypes.h: - Added xmlSchemaNewNOTATIONValue to the API to be able to do - the NOTATION validation described above. - * test/schemas/element-err_0.xsd test/schemas/annot-err_0.xsd: - Fixed the values of the "id" attributes, which were not validated - previously. - -Thu Feb 17 12:03:46 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Fixed comparison for default/fixed attribute - values, if the type was 'xsd:string'. Changed the comparison - for IDCs to use the whitespace aware comparison function. - * xmlschemastypes.c include/libxml/xmlschemastypes.h: - Added xmlSchemaGetCanonValue, xmlSchemaNewStringValue and - xmlSchemaCompareValuesWhtsp to the API. Added functions - to compare strings with whitespace combinations of "preserve", - "replace" and "collapse". - -Wed Feb 16 13:24:35 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Further work on IDCs, especially evaluation for - attribute nodes. - -Wed Feb 16 01:19:27 CET 2005 Daniel Veillard - - * encoding.c: fix the comment to describe the real return values - * pattern.c xpath.c include/libxml/pattern.h: lot of work on - the patterns, pluggin in the XPath default evaluation, but - disabled right now because it's not yet good enough for XSLT. - pattern.h streaming API are likely to be changed to handle - relative and absolute paths in the same expression. - -Tue Feb 15 15:33:32 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Added IDC evaluation for attribute nodes. - Made 'nil'ed elements work. Added a specific error message - for 'strict' attribute wildcards. - * include/libxml/xmlerror.h: Added an error code for - wildcards. - * result/schemas/anyAttr-processContents-err1_0_0.err: Adapted. - -Sun Feb 13 16:15:03 HKT 2005 William Brack - - This change started out as a simple desire to speed up the - execution time of testapi.c, which was being delayed by - nameserver requests for non-existent URL's. From there it - just sort of grew, and grew.... - * nanohttp.c, nanoftp.c: changed the processing of URL's - to use the uri.c routines instead of custom code. - * include/libxml/xmlerror.h: added code XML_FTP_URL_SYNTAX - * uri.c: added accepting ipV6 addresses, in accordance with - RFC's 2732 and 2373 (TODO: allow ipV4 within ipV6) - * gentest.py, testapi.c: fixed a few problems with the - testing of the nanoftp and nanohttp routines. - * include/libxml/xmlversion.h: minor change to fix a - warning on the docs generation - * regenerated the docs - -Sat Feb 12 09:07:11 HKT 2005 William Brack - - * xinclude.c: fixed xmlXIncludeParseFile to prevent - overwriting XML_COMPLETE_ATTRS when setting pctxt->loadsubset - (bug 166199) - * Makefile.am, python/tests/Makefile.am, xstc/Makefile.am: added - code to add $(top_builddir)/.libs to LD_LIBRARY_PATH whenever - PYTHONPATH is set, to assure new libxml2 routines are used. - -Fri Feb 11 22:20:41 HKT 2005 William Brack - - * parser.c: fixed problem when no initial "chunk" was - given to xmlCreatePushParser (bug 162613) - -Fri Feb 11 18:37:22 HKT 2005 William Brack - - * dict.c: fixed compilation warning - * parser.c: changed xmlWarningMsg so ctxt->errNo is not set - * xmllint.c: changed to return non-zero status if error - on xinclude processing - * xmlsave.c: minor deletion of a redundant condition statement - -Wed Feb 9 17:47:40 CET 2005 Daniel Veillard - - * tree.c: applied patch to xmlSetNsProp from Mike Hommey - -Sun Feb 6 00:17:57 CET 2005 Daniel Veillard - - * pattern.c xmllint.c: fixed implementation for | - * test/pattern/conj.* result/pattern/conj: added a specific regression - test - -Sat Feb 5 18:36:56 CET 2005 Daniel Veillard - - * pattern.c: first implementation for | support - -Sat Feb 5 14:58:46 CET 2005 Daniel Veillard - - * pattern.c: fixed the namespaces support - * tree.c: fixed xmlGetNodePath when namespaces are used - * result/pattern/multiple result/pattern/namespaces - test/pattern/multiple.* test/pattern/namespaces.*: added - more regression tests - -Fri Feb 4 18:26:43 CET 2005 Daniel Veillard - - * xmlschemas.c: fixed one internal function - * doc/Makefile.am doc/wiki.xsl: applied patch from Joel Reed - * testapi.c doc/libxml2-api.xml doc/libxml2-refs.xml: regenerated - -Fri Feb 4 00:25:43 CET 2005 Daniel Veillard - - * Makefile.am: use the walker to test the patterns instead of - the normal reader - * pattern.c xmllint.c: bug fixes in the train including fixing the - stupid build break. - -Tue Feb 1 18:15:52 CET 2005 Daniel Veillard - - * pattern.c: more bug fixes for the XPath streaming code. - -Mon Jan 31 17:59:24 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Integrated the streaming pattern from the - pattern module. Fixed some IDC code bugs. Changed - fallback for attribute declaration addition to work like for - element declarations. - -Mon Jan 31 01:27:22 CET 2005 Daniel Veillard - - * pattern.c xmllint.c: bugfixes around the streaming patterns - -Sun Jan 30 23:35:19 CET 2005 Daniel Veillard - - * Makefile.am configure.in result/pattern/simple - test/pattern/simple.*: added first test for the patterns - * pattern.c xmllint.c: a few fixes - -Sun Jan 30 19:27:23 CET 2005 Daniel Veillard - - * pattern.c include/libxml/pattern.h xmllint.c: added a - streaming pattern detector for a subset of XPath, should - help Kasimier for identity constraints - * python/generator.py: applied Stephane Bidoul patch to find - paths without breaking. - -Fri Jan 28 18:53:40 CET 2005 Daniel Veillard - - * xmlschemas.c: fixed an untested pointer dereference and a & vs && - -Fri Jan 28 18:37:18 CET 2005 Daniel Veillard - - * xmlreader.c: implementation of xmlTextReaderReadString by - Bjorn Reese - -Fri Jan 28 16:51:47 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Corrected an ambigious symbol-space for - local attribute declarations. IFDEFed more IDC code to - surpress compiler warnings. - -Fri Jan 28 00:57:04 CET 2005 Daniel Veillard - - * bakefile/Readme.txt bakefile/Bakefiles.bkgen bakefile/libxml2.bkl: - files for the Bakefile generator for Makefiles from Francesco - Montorsi - * win32/configure.js: fixes for Windows compilation with non-default - flags by Joel Reed - -Thu Jan 27 18:23:50 CET 2005 Daniel Veillard - - * tree.c: fixed xmlCopyDoc to also copy the doc->URL as pointed - by Martijn Faassen - -Thu Jan 27 13:39:04 CET 2005 Kasimier Buchcik - - * xmlschemas.c include/libxml/schemasInternals.h: - Added an initial skeleton for indentity-constraints. This is all - defined out, since not complete, plus it needs support from other - modules. - Added machanism to store element information for the - ancestor-or-self axis; this is needed for identity-constraints - and should be helpfull for a future streamable validation. - * include/libxml/xmlerror.h: Added an error code for - identity-constraints. - -Wed Jan 26 01:03:37 CET 2005 Daniel Veillard - - * gentest.py testapi.c: had to fix generation and rebuild. - * valid.c: the testapi found a bug in the last code of course ! - -Wed Jan 26 00:43:05 CET 2005 Daniel Veillard - - * Makefile.am testapi.c doc/Makefile.am: fixing the way testapi.c - is generated, fixes bug #161386 - * dict.c: fix a comment typo - * elfgcchack.h doc/*: regenerated - -Tue Jan 25 22:39:33 CET 2005 Daniel Veillard - - * parser.c: found and fixed 2 problems in the internal subset scanning - code affecting the push parser (and the reader), fixes #165126 - * test/intsubset2.xml result//intsubset2.xml*: added the test case - to the regression tests. - -Tue Jan 25 01:20:11 CET 2005 Daniel Veillard - - * testdso.c xmlregexp.c: warning patches from Peter Breitenlohner - * include/libxml/valid.h valid.c parser.c: serious DTD parsing - speedups, start to deprecate 3 ElementDef related entry point - and replace them with better ones. - -Mon Jan 24 00:47:41 CET 2005 Daniel Veillard - - * xmlschemas.c: more hash dictionary interning changes - -Sun Jan 23 23:54:39 CET 2005 Daniel Veillard - - * hash.c include/libxml/hash.h: added xmlHashCreateDict where - the hash reuses the dictionnary for internal strings - * entities.c valid.c parser.c: reuse that new API, leads to a decent - speedup when parsing for example DocBook documents. - -Sun Jan 23 21:14:20 CET 2005 Daniel Veillard - - * parser.c: small speedup in skipping blanks characters - * entities.c: interning the entities strings - -Sun Jan 23 18:35:00 CET 2005 Daniel Veillard - - * parser.c: boosting common commnent parsing code, it was really - slow. - * test/comment[3-5].xml result//comment[3-5].xml*: added sprecific - regression tests - -Sun Jan 23 01:00:09 CET 2005 Daniel Veillard - - * parser.c: small optimization back. - -Sat Jan 22 00:40:31 CET 2005 Daniel Veillard - - * dict.c parser.c include/libxml/dict.h: a single lock version - mostly avoid the cost penalty of the lock in case of low - parallelism, so applying that version instead. - -Fri Jan 21 17:54:06 CET 2005 Daniel Veillard - - * dict.c: patch from Gary Coady to fix a race in dict reference - counting in multithreaded apps. - -Fri Jan 21 16:08:21 CET 2005 Daniel Veillard - - * parser.c: fixed bug #164556 where non-fatal errors stopped - push parsing and xmlreader. - * Makefile.am: fixup - * test/errors/webdav.xml result/errors/webdav*: adding regression - test for this problem. - -Wed Jan 19 17:24:34 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Corrected targetNamespace in - xmlSchemaElementDump. Cosmetic changes to the dump output. - -Sun Jan 16 21:00:53 CET 2005 Daniel Veillard - - * configure.in NEWS doc/*: preparing release of 2.6.17, - updated and rebuilt the docs - -Sun Jan 16 19:58:36 CET 2005 Daniel Veillard - - * parser.c: better fix for #151694 not killing c14n regression tests - * xmlschemastypes.c: fixing bug #157653 - -Sun Jan 16 19:01:06 CET 2005 Daniel Veillard - - * parser.c: fixing bug #151694, line should always be set in the - elements. - -Sun Jan 16 01:04:18 CET 2005 Daniel Veillard - - * xmlschemastypes.c: trying to fix at least the message from - bug #158628 - * include/libxml/xmlsave.h xmlsave.c: added first xmlsave option - for format, c.f. bug #159997 - -Sat Jan 15 18:44:30 CET 2005 Daniel Veillard - - * python/libxml.py: make __str__ call serialize() on nodes, c.f. - bug #157872 - -Sat Jan 15 18:18:07 CET 2005 Daniel Veillard - - * nanoftp.c: applied patch from Dan McNichol for compilation on AIX - -Sat Jan 15 13:35:19 CET 2005 Daniel Veillard - - * relaxng.c: fixed bug #157633 in relaxng choice optimization - * result/relaxng/choice0* test/relaxng/choice0*: added regression - tests about it. - * doc/*: rebuilt - * testdso.c: removed a warning due to a missing void in signature. - -Thu Jan 13 17:42:55 CET 2005 Kasimier Buchcik - - * include/libxml/schemasInternals.h xmlschemas.c: - Exposed targetNamespace for simple/complex types, model groups, - attribute groups and notations (reported by Michael Hewarth - to the mailing list). Added targetNamespace to xmlSchemaType, - xmlSchemaAttributeGroup and xmlSchemaNotation. - Tiny cosmetic change to the content model error report output. - * result//all_*.err result//any3_0_0.err result//choice_*.err - result//list0_0_1.err result//list0_1_1.err: Adapted output - of regression tests. - -Thu Jan 13 13:20:51 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Put the fix of Daniel (from Tue Jan 11 14:41:47 CET) - back in, since I missed to update xmlschemas.c before doing - the previous commit. - -Thu Jan 13 12:59:25 CET 2005 Kasimier Buchcik - - * xmlschemas.c: Integrated xmlRegExecErrInfo and xmlRegExecNextValues - from xmlregexp.c to report expected elements on content model errors. - * all_*.err any3_0_0.err choice_*.err list0_0_1.err list0_1_1.err: - Adapted output of regression tests. - -Thu Jan 13 12:24:09 CET 2005 Daniel Veillard - - * config.h.in configure.in xmlmodule.c: trying to work around - the compilation problem on HP-UX - -Wed Jan 12 22:03:33 CET 2005 Daniel Veillard - - * pattern.c: fixed the fixed size array structure problem reported by - Patrick Streule - -Wed Jan 12 15:15:02 CET 2005 Daniel Veillard - - * elfgcchack.h testapi.c doc/libxml2-api.xml doc/*: regenerated - the API description, rebuilt, improved navigation in documentation - a bit. - -Wed Jan 12 14:17:14 CET 2005 Daniel Veillard - - * include/libxml/xmlregexp.h xmlregexp.c: extended xmlRegExecErrInfo() - and xmlRegExecNextValues() to return error transition strings too, - and sink state detection and handling. - -Tue Jan 11 14:41:47 CET 2005 Daniel Veillard - - * xmlschemas.c: fixed bug #163641 when the value passed for - an atomic list type is NULL. - -Tue Jan 11 10:14:33 HKT 2005 William Brack - - * Makefile.am configure.in: fixed dependency on python 2.3, - also small improvement for cygwin (bug 163273) - -Sun Jan 9 18:46:32 CET 2005 Daniel Veillard - - * gentest.py testapi.c: William noticed I forgot to add special - support for xmlmodules.c define - * xmlregexp.c include/libxml/xmlregexp.h: added terminal to - xmlRegExecErrInfo() API, adding new xmlRegExecNextValues() - entry point and refactored to use both code. - -Mon Jan 10 01:02:41 HKT 2006 William Brack - - * doc/xml.html, doc/FAQ.html: added an FAQ under Developer for - setting up a "private" library (after some list posts about - people having trouble doing it) - -Sat Jan 8 23:04:10 CET 2005 Daniel Veillard - - * xmlregexp.c: fixing behaviour for xmlRegExecErrInfo in case of - rollback - -Fri Jan 7 14:54:51 CET 2005 Daniel Veillard - - * TODO: small update - * xmlregexp.c: trying to add an API to get useful error informations - back from a failing regexp context. - -Thu Jan 6 17:35:41 HKT 2005 William Brack - - * xpath.c: fixed problem with xmlXPathErr when error number - subscript was out of range (bug 163055) - -Thu Jan 6 09:57:03 HKT 2005 William Brack - - * uri.c: fixed problem with xmlURIEscape when query part was - empty (actually fixed xmlURIEscapeStr to return an empty - string rather than NULL for empty string input) (bug 163079) - -Tue Jan 4 17:08:45 PST 2005 Aleksey Sanin - - * parser.c, parserInternal.c: fixed "col" calculation for - struct _xmlParserInput (based on patch from Rob Richards) - * include/libxml/xmlerror.h, error.c: propagated error column - number in the xmlError structure - -Tue Jan 4 22:47:22 CET 2005 Daniel Veillard - - * parser.c: fixed namespace bug in push mode reported by - Rob Richards - * test/ns6 result//ns6*: added it to the regression tests - * xmlmodule.c testModule.c include/libxml/xmlmodule.h: - added an extra option argument to module opening and defined - a couple of flags to the API. - -Tue Jan 4 21:16:05 CET 2005 Daniel Veillard - - * xmlmodule.c include/libxml/xmlmodule.h: applied patch from - Bjorn Reese, plus some cleanups - * elfgcchack.h doc/elfgcchack.xsl: fixed the stylesheet to - add the new header - * doc/* testapi.c: regenerated the API - -Tue Jan 4 18:47:19 CET 2005 Daniel Veillard - - * configure.in: making DSO support an option - * xmlmodule.c xmlreader.c include/libxml/xmlmodule.h: code - and documentation cleanups - * elfgcchack.h testapi.c doc/*: regenerated the docs and - checks for new module - * test/valid/REC-xml-19980210.xml: fix a small change introduced - previously - -Tue Jan 4 16:07:52 CET 2005 Daniel Veillard - - * Makefile.am config.h.in configure.in error.c libxml-2.0.pc.in - testModule.c testdso.c xml2-config.in xmllint.c xmlmodule.c - include/libxml/Makefile.am include/libxml/xmlerror.h - include/libxml/xmlmodule.h include/libxml/xmlversion.h.in - include/libxml/xmlwin32version.h.in: applied DSO support - patch 2 from Joel Reed - -Tue Jan 4 15:30:15 CET 2005 Daniel Veillard - - * configure.in: applied patch from Marcin Konicki for BeOS - -Mon Jan 3 13:57:21 PST 2005 Aleksey Sanin - - * parser.c: added GetLineNumber and GetColumnNumber functions for xmlReader - -Sun Jan 2 17:51:18 HKT 2005 William Brack - - Re-examined the problems of configuring a "minimal" library. - Synchronized the header files with the library code in order - to assure that all the various conditionals (LIBXML_xxxx_ENABLED) - were the same in both. Modified the API database content to more - accurately reflect the conditionals. Enhanced the generation - of that database. Although there was no substantial change to - any of the library code's logic, a large number of files were - modified to achieve the above, and the configuration script - was enhanced to do some automatic enabling of features (e.g. - --with-xinclude forces --with-xpath). Additionally, all the format - errors discovered by apibuild.py were corrected. - * configure.in: enhanced cross-checking of options - * doc/apibuild.py, doc/elfgcchack.xsl, doc/libxml2-refs.xml, - doc/libxml2-api.xml, gentest.py: changed the usage of the - element in module descriptions - * elfgcchack.h, testapi.c: regenerated with proper conditionals - * HTMLparser.c, SAX.c, globals.c, tree.c, xmlschemas.c, xpath.c, - testSAX.c: cleaned up conditionals - * include/libxml/[SAX.h, SAX2.h, debugXML.h, encoding.h, entities.h, - hash.h, parser.h, parserInternals.h, schemasInternals.h, tree.h, - valid.h, xlink.h, xmlIO.h, xmlautomata.h, xmlreader.h, xpath.h]: - synchronized the conditionals with the corresponding module code - * doc/examples/tree2.c, doc/examples/xpath1.c, doc/examples/xpath2.c: - added additional conditions required for compilation - * doc/*.html, doc/html/*.html: rebuilt the docs - -Sat Dec 25 18:10:02 HKT 2004 William Brack - - * parserInternals.c: fixed to skip (if necessary) the BOM for - encoding 'utf-16'. Completes the fix for bug #152286. - * tree.c, parser.c: minor warning cleanup, no change to logic - -Fri Dec 24 16:31:22 HKT 2004 William Brack - - * python/generator.py: added most required entires to - foreign encoding table, plus some additional logic to - assure only the 1st param uses the 't#' format. Fixes - bug #152286, but may still have some other UTF-16 problems. - -Thu Dec 23 23:44:08 HKT 2004 William Brack - - * Makefile.am, gentest.py: enhanced for enabling build in - a different directory. Added (optional) param to gentest.py - to specify the source directory (bug #155468) - * doc/Makefile.am: changed destination of NEWS from (top_srcdir) - to (top_builddir) (bug #155468) - * python/Makefile.am, python/generator.py: enhanced for enabling - build in a different directory(bug #155468). Added (optional) - param to generator.py to specify the source directory. Added - a new table of functions which have possible "foreign" encodings - (e.g. UTF16), and code to use python 't' format instead of - 'z' format (mostly solving bug #152286, but still need to - populate the table). - -Tue Dec 21 08:10:44 MST 2004 John Fleck - - * doc/site.xsl, doc/xml.html, plus rebuilt all the html pages - Change reference to new site for Solaris binaries, fixing bug - 160598 - - -Mon Dec 20 08:02:57 PST 2004 William Brack - - * parser.c: reset input->base within xmlStopParser - * xmlstring.c: removed call to xmlUTF8Strlen from within - xmlUTF8Strpos (Bill Moseley pointed out it was not - useful) - -Fri Dec 17 16:03:41 PST 2004 William Brack - - * valid.c: changed xmlErrValidWarning to use ctxt->warning - instead of ctxt->error for its reports (bug #160662) - -Fri Dec 17 14:52:17 PST 2004 William Brack - - * python/generator.py: modified to allow the ns and nsDefs - accessors to return None instead of error when no namespace - is present (bug #) - -Fri Dec 17 11:40:21 PST 2004 William Brack - - * doc/Makefile.am: changed maintainer-clean dependency with - suggestion from Crispin Flowerday (bug #157634) - * debugXML.c: fixed crash when ATTRIBUTE or DOCUMENT nodes - were specified with debugDumpNode (bug #160621) - -Fri Dec 10 11:24:41 CET 2004 Daniel Veillard - - * valid.c: fixed ID deallocation problem based on patch from - Steve Shepard fixes bug #160893 - * xmlmemory.c: improving comment. - * testapi.c: new test for xmlDictExists() is generated. - -Wed Dec 1 22:35:37 HKT 2004 William Brack - - * dict.c, xpath.c, include/libxml/hash.h: fixed up some gcc warnings, - no change to logic. New macro XML_CAST_FPTR to circumvent gcc - warnings on function pointer <-> object pointer (a hack). - -Mon Nov 29 14:07:18 CET 2004 Daniel Veillard - - * xpath.c: fixed a memory leak on errors in some circumstances #159812 - -Fri Nov 26 23:20:48 HKT 2004 William Brack - - * xmlIO.c: added a check within xmlOutputBufferWriteEscape to prevent - a dead loop on bad data (bug 159550) - -Fri Nov 26 13:09:04 CET 2004 Kasimier Buchcik - - * xmlschemas.c: Fixed strict/lax element wildcards: the children - of elements for which a declaration existed were still processed - by the wildcard mechanism (reported by philippe ventrillon to the - mailing list). - Changed the import and include machanism to share dictionaries. - -Fri Nov 26 11:44:36 CET 2004 Daniel Veillard - - * HTMLparser.c parser.c: make sure xmlCtxtReadFile and htmlCtxtReadFile - go through the catalog resolution. - * gentest.py testapi.c: fix a side effect wrning of the change - -Wed Nov 24 13:41:52 CET 2004 Daniel Veillard - - * dict.c include/libxml/dict.h: added xmlDictExists() to the - dictionnary interface. - * xmlreader.c: applying xmlTextReaderHasAttributes fix for namespaces - from Rob Richards - -Wed Nov 17 13:54:37 CET 2004 Kasimier Buchcik - - * xmlschemas.c: tiny enhancement for content model error reports - (#157190, #143948). Removed abbreviations: CT, ST and WC - (#157190, reported by Frans Englich). - Initial: no report of local components. - * result/schemas/all* result/schemas/any3_0_0.err - result/schemas/choice* - result/schemas/cos-st-restricts-1-2-err_0_0.err - result/schemas/derivation-ok-extension-err_0_0.err - result/schemas/derivation-ok-extension_0_0.err - result/schemas/derivation-ok-restriction-2-1-1_0_0.err - result/schemas/derivation-ok-restriction-4-1-err_0_0.err - result/schemas/deter0_0_0.err result/schemas/extension1_0_2.err - result/schemas/facet-unionST-err1_0_0.err - result/schemas/hexbinary_0_1.err - result/schemas/list* result/schemas/restriction-attr1_0_0.err - result/schemas/vdv-first4_0_1.err result/schemas/vdv-first4_0_2.err: - Adapted output. - -Mon Nov 15 13:04:28 CET 2004 Kasimier Buchcik - - * xmlschemas.c: Moved execution of xmlSchemaCheckDefaults to - xmlSchemaTypeFixup; this ensures facets of inherited types to be - checked prior to facets of derived types - which caused a seg - fault otherwise (bug #158216, reported by Frans Englich). - -Sun Nov 14 22:23:18 HKT 2004 William Brack - - * gentest.py, testapi.c: further enhancement, now all - compilation warnings have been fixed. - * xmlschemastypes.c: added NULL check for one function - -Fri Nov 12 23:58:14 HKT 2004 William Brack - - * xpath.c: trivial change (changed CHECK_CONTEXT to CHECK_CTXT - on a couple of lines) - * gentest.py, testapi.c: enhanced to reduce compilation warnings - -Fri Nov 12 16:12:48 CET 2004 Kasimier Buchcik - - * xmlschemas.c: Un-commented a TODO in xmlSchemaParseElement. - -Fri Nov 12 14:55:36 CET 2004 Kasimier Buchcik - - * xmlschemas.c: Correct symbol space for 'all' and 'choice'. - * xmlschemastypes.c include/xmlschemastypes.h: Added 'replace' - normalization for 'normalizedString'. - Added xmlSchemaWhiteSpaceReplace to the API. - -Thu Nov 11 21:43:02 CET 2004 Daniel Veillard - - * Makefile.am: forgot a $(srcdir) - * encoding.c: stupid error wrong name #157976 - -Wed Nov 10 15:35:25 CET 2004 Daniel Veillard - - * NEWS configure.in doc/*: preparing release of libxml2-2.6.16 - -Wed Nov 10 12:55:18 CET 2004 Daniel Veillard - - * python/generator.py python/libxml.c python/libxml2class.txt - python/libxml_wrap.h python/types.c: Applied patch from Brent - Hendricks adding support for late DTD validation. - * python/tests/Makefile.am python/tests/dtdvalid.py - python/tests/test.dtd: integrated the provided regression test - -Tue nov 9 19:24:31 CET 2004 Dodji Seketeli - - * configure.in: detect when struct sockaddr_storage - has the __ss_family member instead of ss_family and - behave accordingly. We now can use ipv6 on aix. - -Tue Nov 9 17:15:46 CET 2004 Daniel Veillard - - * Makefile.am gentest.py testapi.c: integrated in "make tests" - added -q option, and more conditional features fixes - * catalog.c debugXML.c parser.c testThreads.c xmllint.c - xmlschemastypes.c xmlwriter.cinclude/libxml/catalog.h - include/libxml/debugXML.h: various compilation and conditional - cleanups. - * doc/*: regenerated - -Tue Nov 9 15:59:50 CET 2004 Daniel Veillard - - * gentest.py testapi.c: better handling of conditional features - * HTMLparser.c SAX2.c parserInternals.c xmlwriter.c: more testing - on parser contexts closed leaks, error messages - -Tue Nov 9 10:21:37 GMT 2004 William Brack - - * xpath.c: fixed problem concerning XPath context corruption - during function argument evaluation (bug 157652) - -Mon Nov 8 18:54:52 CET 2004 Daniel Veillard - - * testapi.c: more types. - * parserInternals.c xpath.c: more fixes - -Mon Nov 8 18:16:43 CET 2004 Daniel Veillard - - * gentest.py testapi.c: better parser options coverage - * SAX2.c xpath.c: more cleanups. - -Tue Nov 9 01:50:08 CET 2004 Daniel Veillard - - * testapi.c: trying to fix some optional support brokenness - -Mon Nov 8 17:25:27 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more coverage - * debugXML.c parser.c xmlregexp.c xpath.c: more fixes - -Mon Nov 8 15:02:39 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more coverage - * SAX2.c parser.c parserInternals.c: more fixes - -Mon Nov 8 12:55:16 CET 2004 Daniel Veillard - - * parser.c testapi.c xmlIO.c xmlstring.c: more fixes. - -Mon Nov 8 11:24:57 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more types, more coverage - * parser.c parserInternals.c relaxng.c valid.c xmlIO.c - xmlschemastypes.c: more problems fixed - -Mon Nov 8 10:24:28 HKT 2004 William Brack - - * gentest.py: fixed test file corruption problem - -Sun Nov 7 13:18:05 CET 2004 Daniel Veillard - - * gentest.py testapi.c: fixed typos and avoid Catalogs verbosity - -Sat Nov 6 23:25:16 CET 2004 Daniel Veillard - - * testapi.c: augmented the number of types - -Sat Nov 6 20:24:07 CET 2004 Daniel Veillard - - * HTMLtree.c tree.c xmlreader.c xmlwriter.c: a number of new - bug fixes and documentation updates. - -Sat Nov 6 15:50:11 CET 2004 Daniel Veillard - - * gentest.py testapi.c: augmented type autogeneration for enums - * xpath.c include/libxml/xpath.h: removed direct error reporting. - -Sat Nov 6 14:27:18 CET 2004 Daniel Veillard - - * encoding.c: fixed a regression in iconv support. - -Fri Nov 5 18:19:23 CET 2004 Daniel Veillard - - * gentest.py testapi.c: autogenerate a minimal NULL value sequence - for unknown pointer types - * HTMLparser.c SAX2.c chvalid.c encoding.c entities.c parser.c - parserInternals.c relaxng.c valid.c xmlIO.c xmlreader.c - xmlsave.c xmlschemas.c xmlschemastypes.c xmlstring.c xpath.c - xpointer.c: This uncovered an impressive amount of entry points - not checking for NULL pointers when they ought to, closing all - the open gaps. - -Fri Nov 5 16:26:28 UTC 2004 William Brack - - * catalog.c: fixed problem with NULL entry (bug 157407) - * xpath.c: fixed a couple of warnings (no change to logic) - -Fri Nov 5 15:30:43 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more coverage - * xmlunicode.c: one fix - -Fri Nov 5 23:15:51 CET 2004 Daniel Veillard - - * entities.c: fixed a compilation problem on a recent change - -Fri Nov 5 12:50:09 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more coverage - * nanoftp.c tree.c: more fixes - -Fri Nov 5 11:02:28 CET 2004 Daniel Veillard - - * gentest.py testapi.c: fixed the way the generator works, - extended the testing, especially with more real trees and nodes. - * HTMLtree.c tree.c valid.c xinclude.c xmlIO.c xmlsave.c: a bunch - of real problems found and fixed. - * entities.c: fix error reporting to go through the new handlers - -Thu Nov 4 18:44:56 CET 2004 Daniel Veillard - - * parser.c: dohh ... stupid change killing xmlParseDoc() - -Thu Nov 4 18:32:22 CET 2004 Daniel Veillard - - * gentest.py testapi.c: changing the way the .c is generated, - extending the tests coverage - * include/libxml/nanoftp.h nanoftp.c elfgcchack.h doc/*: fixing some - function signatures, regenerating stuff - * SAX2.c parser.c xmlIO.c: another set of bug fixes and API hardening - -Thu Nov 4 13:32:19 CET 2004 Daniel Veillard - - * gentest.py testapi.c: extending the tests coverage - -Thu Nov 4 11:52:28 CET 2004 Daniel Veillard - - * Makefile.am: gentest.py was missing from the EXTRA_DIST - -Thu Nov 4 11:48:47 CET 2004 Daniel Veillard - - * gentest.py testapi.c: extending the tests coverage - * HTMLtree.c tree.c xmlsave.c xpointer.c: more fixes and cleanups - -Thu Nov 4 00:25:36 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more fixes and extending the tests coverage - * nanoftp.c xmlIO.c: more fixes and hardening - -Wed Nov 3 20:16:24 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more fixes and extending the tests coverage - * valid.c: bunch of cleanups and 2 leaks removed - -Wed Nov 3 18:06:44 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more fixes and extending the tests coverage - * list.c tree.c: more fixes and hardening - -Wed Nov 3 15:19:22 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more fixes and extending the tests coverage - * relaxng.c include/libxml/relaxng.h: adding a type init interface - * include/libxml/xmlerror.h parser.c xmlreader.c xmlwriter.c: more - cleanups and bug fixes raised by the regression tests - -Wed Nov 3 12:49:30 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more fixes and extending the tests coverage - * xmlwriter.c list.c: more hardeing of APIs - * doc/apibuild.py: skip testapi.c when scanning the C files. - -Tue Nov 2 23:09:06 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more testing and coverage - * elfgcchack.h xmlstring.c include/libxml/xmlstring.h: more cleanups - * doc/*: rebuilt - -Tue Nov 2 19:44:32 CET 2004 Daniel Veillard - - * gentest.py testapi.c: more developments on the API testing - * HTMLparser.c tree.c: more cleanups - * doc/*: rebuilt - -Tue Nov 2 15:49:34 CET 2004 Daniel Veillard - - * xmlmemory.c include/libxml/xmlmemory.h: adding xmlMemBlocks() - * Makefile.am gentest.py testapi.c: work on generator of an - automatic API regression test tool. - * SAX2.c nanoftp.c parser.c parserInternals.c tree.c xmlIO.c - xmlstring.c: various API hardeing changes as a result of running - teh first set of automatic API regression tests. - * test/slashdot16.xml: apparently missing from CVS, commited it - -Mon Nov 1 15:54:18 CET 2004 Daniel Veillard - - * xpath.c: fixed an UTF-8 parsing bug reported by Markus Bertheau - on #fedora-devel - -Sun Oct 31 22:03:38 CET 2004 Daniel Veillard - - * parser.c: fixed a bug reported by Petr Pajas on the list and - affecting XML::Libxml - -Sun Oct 31 16:33:54 CET 2004 Daniel Veillard - - * encoding.c doc/examples/testWriter.c: Fixed bug #153937, making - sure the conversion functions return the number of byte written. - Had to fix one of the examples. - -Fri Oct 29 14:16:56 CEST 2004 Daniel Veillard - - * doc/xmllint.1 doc/xmllint.xml: indicate - means stdin closing #156626 - -Fri Oct 29 14:03:36 CEST 2004 Daniel Veillard - - * python/libxml.c: register xmlSchemaSetValidErrors, patch from - Brent Hendricks in the mailing-list - * include/libxml/valid.h HTMLparser.c SAX2.c valid.c - parserInternals.c: fix #156626 and more generally how to find out - if a validation contect is part of a parsing context or not. This - can probably be improved to make 100% sure that vctxt->userData - is the parser context too. It's a bit hairy because we can't - change the xmlValidCtxt structure without breaking the ABI since - this change xmlParserCtxt information indexes. - -Wed Oct 27 19:26:20 CEST 2004 Daniel Veillard - - * ChangeLog NEWS configure.in doc/*: preparing release 2.6.15 - * debugXML.c nanoftp.c xmlschemas.c xmlschemastypes.c: cleanups - -Wed Oct 27 09:31:24 PDT 2004 William Brack - - * uri.c: fixed a stupid mistake in xmlBuildRelativeURI - (bug 156527) - -Wed Oct 27 11:44:35 CEST 2004 Daniel Veillard - - * nanoftp.c nanohttp.c: second part of the security fix for - xmlNanoFTPConnect() and xmlNanoHTTPConnectHost(). - -Tue Oct 26 23:57:02 CEST 2004 Daniel Veillard - - * nanoftp.c: applied fixes for a couple of potential security problems - * tree.c valid.c xmllint.c: more fixes on the string interning checks - -Tue Oct 26 18:09:59 CEST 2004 Daniel Veillard - - * debugXML.c include/libxml/xmlerror.h: added checking for names - values and dictionnaries generates a tons of errors - * SAX2.ccatalog.c parser.c relaxng.c tree.c xinclude.c xmlwriter.c - include/libxml/tree.h: fixing the errors in the regression tests - -Mon Oct 25 16:04:22 PDT 2004 William Brack - - * parser.c: modified the handling of _private for entity - expansion (bug 155816) - -Mon Oct 25 17:11:37 CEST 2004 Daniel Veillard - - * parser.c: fixed the leak reported by Volker Roth on the list - * test/ent10 result//ent10*: added a specific test for the problem - -Sat Oct 23 11:07:41 PDT 2004 William Brack - - * valid.c: unlinked the internal subset within xmlValidateDtd - (bug 141827) - * configure.in: added -Wall to developer's flags - * doc/examples/reader4.res: added to CVS - -Fri Oct 22 16:36:50 CEST 2004 Daniel Veillard - - * HTMLparser.c: added support for HTML PIs #156087 - * test/HTML/python.html result/HTML/python.html*: added specific tests - -Fri Oct 22 15:20:23 CEST 2004 Daniel Veillard - - * threads.c: fixed nasty bug #156087 - -Fri Oct 22 21:04:20 CEST 2004 Daniel Veillard - - * python/libxml.c: fixed a problem occuring only in x86_64 when - very large error messages are raised to the Python handlers. - -Thu Oct 21 18:03:21 CEST 2004 Daniel Veillard - - * xmlschemas.c: fixed a memory bug - * doc/examples/reader4.c doc/examples/*: added test from Graham Bennett - and regenerated the directory - -Tue Oct 19 11:06:39 CEST 2004 Daniel Veillard - - * include/libxml/xmlreader.h xmlreader.c: applied patch from - Graham Bennett adding 4 convenience functions to the reader API. - -Fri Oct 15 11:22:48 PDT 2004 William Brack - - * debugXML.c: excluded a few nodes (with no content) from the - string check routine. - -Fri Oct 15 10:48:30 EDT 2004 Daniel Veillard - - * debugXML.c include/libxml/xmlerror.h: added UTF-8 string checking, - raise a problem, need debug - -Wed Oct 13 02:17:36 CEST 2004 Daniel Veillard - - * python/Makefile.am: applied patch from Thomas Fitzsimmons fixing - #155240 building outside the source tree. but make tests fails. - -Mon Oct 11 16:26:51 CEST 2004 Daniel Veillard - - * debugXML.c include/libxml/xmlerror.h: added namespace checking - -Sat Oct 9 22:36:21 CEST 2004 Daniel Veillard - - * debugXML.c: some framework preparation to add namespace checkings - -Thu Oct 7 15:12:58 CEST 2004 Daniel Veillard - - * debugXML.c include/libxml/debugXML.h include/libxml/xmlerror.h: - adding the tree debug mode - * parser.c relaxng.c tree.c xpath.c: fixing various problems reported - by the debug mode. - * SAX2.c: another tree fix from Rob Richards - -Wed Oct 6 10:50:03 PDT 2004 William Brack - - * catalog.c: small change to last fix, to get xml:base right - -Wed Oct 6 09:33:51 PDT 2004 William Brack - - * catalog.c: added code to handle , including dumping - to output (bug 151924). - * xmlcatalog.c, xmlstring.c, parser.c: minor compiler warning - cleanup (no change to logic) - -Mon Oct 4 16:09:07 CEST 2004 Daniel Veillard - - * configure.in debugXML.c include/libxml/xmlversion.h.in - include/libxml/xmlwin32version.h.in: revamped the XML debugging - module and prepare for a new checking mode - -Mon Oct 4 13:53:24 CEST 2004 Daniel Veillard - - * parser.c: applied patch from Malcolm Tredinnick fixing bug #152426 - -Mon Oct 4 12:26:28 CEST 2004 Daniel Veillard - - * python/generator.py python/libxml.c python/tests/outbuf.py: - applied patch from Malcolm Tredinnick fixing bug #154294 - related to saving to python file objects. - -Sat Oct 2 21:08:51 PDT 2004 William Brack - - * tree.c: changed xmlHasNsProp to properly handle a request for - the default namespace (bug 153557) - -Sat Oct 2 18:18:27 PDT 2004 William Brack - - * parser.c: fixed problem with dictionary handling within - xmlParseInNodeContext (bug 153175) - -Sat Oct 2 15:46:37 PDT 2004 William Brack - - * check-relaxng-test-suite.py, check-relaxng-test-suite2.py, - check-xinclude-test-suite.py, check-xml-test-suite.py, - check-xsddata-test-suite.py, doc/examples/index.py: changed - changed sys.path setting from 'append' to 'insert' (patch - supplied by Malcolm Tredinnick) (bug 153716) - -Sat Oct 2 15:03:14 PDT 2004 William Brack - - * include/libxml/parserInternals.h: added two new macros - IS_ASCII_LETTER and IS_ASCII_DIGIT used with (html) - parsing and xpath for testing data not necessarily - unicode. - * HTMLparser.c, xpath.c: changed use of IS_LETTER_CH and - IS_DIGIT_CH macros to ascii versions (bug 153936). - -Fri Oct 1 20:37:25 PDT 2004 William Brack - - * error.c: added some coding to attempt to display which file - contains an error when using XInclude (bug 152623) - -Thu Sep 30 11:19:17 CEST 2004 Daniel Veillard - - * configure.in: stupid cut'n paste bug in xmllint detection - -Wed Sep 29 17:47:56 CEST 2004 Daniel Veillard - - * configure.in doc/*: releasing 2.6.14, rebuilding the docs - -Wed Sep 29 15:00:11 CEST 2004 Kasimier Buchcik - - * xmlschemas.c include/libxml/xmlerror.h include/libxml/xmlschemas.h - include/libxml/schemasInternals.h: Parsing of - - handle attribute 'mixed', catch illegal attributes. - Parsing of - handle attributes 'abstract', - 'final' and 'block', catch illegal attributes. - Validation of complex types - handle abstract types. - Added handling of default/fixed attributes and element values. - Per validation option attribute nodes/text nodes are created - on the instance. - Added the corresponding constraints for fixed/default. - Added xmlSchemaSetValidOptions, xmlSchemaGetValidOptions - to the external API. - Extended element declaration constraints. - Got rid of perseverative creation of temporery validation/parser - contexts. - Added handling of xsi:schemaLocation and - xsi:noNamespaceSchemaLocation. - Fixed xsi:type component resolution if using non-prefixed - QNames. - * xmlregexp.c xmlschemas.c include/libxml/xmlautomata.h: - Enabled namespace awareness of the content model if using the - model group "all". - * test/schemas/bug152470_1.xsd: Removed an "abstract" attribute, - which broke the test. - * xstc/xstc.py: Workaround to accomodate case insensitive - test definitions in ms-test.def.xml (was missing in a previous - commit). - -Wed Sep 29 11:03:10 CEST 2004 Daniel Veillard - - * python/drv_libxml2.py: another patch from Malcolm Tredinnick - adding option not to load dtd from the drv_libxml2.py module - #134633 - -Tue Sep 28 14:30:22 CEST 2004 Daniel Veillard - - * acconfig.h config.h.in configure.in xmlIO.c xmlregexp.c xmlschemas.c - xmlschemastypes.c: another patch from Malcolm Tredinnick fixing - warning generated by the Nonstop Kernel Open System Services - compiler #151710 - -Tue Sep 28 13:07:37 CEST 2004 Daniel Veillard - - * python/libxml.py: applied patch from Malcolm Tredinnick fixing - python exception hierarchy #139824 - -Sun Sep 26 16:40:24 CEST 2004 Daniel Veillard - - * valid.c TODO: applied patch from Malcolm Tredinnick fixing errata - E20 concerning NMTOKENS and co. validation #153722 - * result/VC/AttributeNmtokens test/VC/AttributeNmtokens - test/VCM/AttributeNmtokens.xml: also added tests from Malcolm - -Sun Sep 26 16:24:44 CEST 2004 Daniel Veillard - - * xstc/xstc.py: applied patch from Malcolm Tredinnick fixing space/tabs - #153713 - * xpath.c: fixed a realloc potential problem - -Fri Sep 24 16:14:12 CEST 2004 Daniel Veillard - - * Makefile.am: fixed make valgrind xstc - -Thu Sep 23 18:23:46 CEST 2004 Daniel Veillard - - * xmlschemastypes.c: fixing an out of bound adressing issue - -Thu Sep 23 15:14:12 CEST 2004 Daniel Veillard - - * HTMLparser.c parser.c relaxng.c xmlschemas.c: more memory related - code cleanups. - -Thu Sep 23 01:04:30 CEST 2004 Daniel Veillard - - * parser.c: fixed a bunch of errors when realloc failed. - -Wed Sep 22 23:56:05 CEST 2004 Daniel Veillard - - * threads.c uri.c: couple of memory fixes from Mark Vakoc reported - by Purify on Windows. - -Mon Sep 20 22:01:47 CEST 2004 Daniel Veillard - - * xmllint.c: added --timing --copy timing for the copy - * vms/build_libxml.com: applied patch from Craig Berry - to build with recent releases - -Fri Sep 17 21:25:33 PDT 2004 William Brack - - * nanohttp.c, include/libxml/nanohttp.h: added the routine - xmlNanoHTTPContentLength to the external API (bug151968). - * parser.c: fixed unnecessary internal error message (bug152060); - also changed call to strncmp over to xmlStrncmp. - * encoding.c: fixed compilation warning (bug152307). - * tree.c: fixed segfault in xmlCopyPropList (bug152368); fixed - a couple of compilation warnings. - * HTMLtree.c, debugXML.c, xmlmemory.c: fixed a few compilation - warnings; no change to logic. - -Fri Sep 17 10:40:23 CEST 2004 Daniel Veillard - - * parser.c: removed some extern before function code reported by - Kjartan Maraas on IRC - * legacy.c: fixed compiling when configuring out the HTML parser - * Makefile.am: added a declaration for CVS_EXTRA_DIST - * HTMLparser.c: beginning of an attempt at cleaning up the construction - of the HTML parser data structures, current data generate a huge - amount of ELF relocations at loading time. - -Fri Sep 17 10:36:23 CEST 2004 Daniel Veillard - - * ChangeLog: applied fix from Stepan Kasal to fix duplication - in the change log and cleanup of space/tabs issues. - -Thu Sep 16 13:24:27 CEST 2004 Kasimier Buchcik - - * xmlschemas.c include/libxml/schemasInternals.h - test/schemas/bug152470_1.* result/schemas/bug152470_1_1*: - Simpified attribute wildcard creation and assignment to get rid - of memory leaks. - Restructured the validation process. - Restructured and expanded parsing of . - Added initial handing of xsi:type. - Advanced handling of xsi:nil (should work now for simple types). - Added construction of schemata using xsi:schemaLocation and - xsi:noNamespaceSchemaLocation; this is not enabled, since - no corresponding API exists yet. - Moved the content model to complex type components. - Resolution of types for attributes will look for simple types - only (incl. all the built-in simple types). - Extended parsing of 'anyAttribute'. - Fixed content-type type for complex types if derived from - 'anyType' using the short-hand form (see bug # 152470, - submitted by Thilo Jeremias). - * include/libxml/xmlschematypes.h: Cleaned up some comments. - * xstc/xstc.py: Workaround to accomodate case insensitive - test definitions in ms-test.def.xml. - * result/schemas/deter0_0_0.err result/schemas/ns0_0_2.err - result/schemas/ns0_1_2.err: Adapted. - -Sat Sep 11 09:04:22 PDT 2004 William Brack - - * xmlwriter.c: changed char array initialisation to avoid a - complaint from some compiler(s) (bug 152308) - -Thu Sep 9 07:22:11 PDT 2004 William Brack - - * encoding.c: applied fixes for the UTF8ToISO8859x transcoding - routine suggested by Mark Itzcovitz - -Wed Sep 8 22:50:27 CEST 2004 Daniel Veillard - - * valid.c xmlsave.c: fixed 2 problems raised by #152140, one - which is that notation not in the internal subset should - not be saved, and the second more nasty on an error saving - NOTATIONs, if there is a proof that nobody uses notations ! - -Wed Sep 8 11:04:27 CEST 2004 Kasimier Buchcik - - * xmlschemas.c include/libxml/xmlschemas.h: Added the function - xmlSchemaValidateOneElement to the XML Schema validation API, - as proposed by Jeffrey Fink - see bug # 152073. - -Tue Sep 7 11:10:36 CEST 2004 Daniel Veillard - - * configure.in doc/Makefile.am xstc/Makefile.am: some cleanup - checking for xmllint and xsltproc in configure.in, fixed - make dist w.r.t. the new xstc subdir. - * doc/*: rebuilt - -Mon Sep 6 16:42:59 CEST 2004 Kasimier Buchcik - - * xstc/xstc.py: Changed to finally validate instance documents. - -Mon Sep 6 16:04:01 CEST 2004 Daniel Veillard - - * xstc/Makefile.am Makefile.am: integrated to "make valgrind", - heavy ... weight 250MB of VM ! - -Mon Sep 6 14:54:39 CEST 2004 Daniel Veillard - - * xstc/Makefile.am xstc/xstc-to-python.xsl xstc/xstc.py Makefile.am: - more cleanup in integrating the xstc testsuite - -Mon Sep 6 13:56:28 CEST 2004 Daniel Veillard - - * Makefile.am configure.in xstc/.cvsignore xstc/Makefile.am: - starting to integrate the xstc suite in the normal regression - tests - -Mon Sep 6 13:14:11 CEST 2004 Kasimier Buchcik - - * xstc/sun-test-def.xml: The "tsDir" attribute was not - set correctly. - -Mon Sep 6 11:52:50 CEST 2004 Daniel Veillard - - * check-xinclude-test-suite.py: when output and expected do not match - exactly run diff to put the differences in the log c.f. #148691 - -Mon Sep 6 11:17:35 CEST 2004 Kasimier Buchcik - - * xstc/xstc-to-python.xslt xstc/ms-test-def.xml xstc/nist-test-def.xml - xstc/sun-test-def.xml: Initial release of generation files to - create python test scripts, which will run the W3C XML Schema Test - Collection. The ms-test-def.xml and sun-test-def.xml files - were extracted from the online HTML XSTC results [1], since they did - not exist for the SUN tests, and only partially did exist for the - MS tests. The NIST definition file was created by concatenation - of the existing definition files for each single datatype. - The stylesheet "xstc-to-python.xslt" should be run against the - definition files to produce the python scripts. - [1] "http://www.w3.org/XML/2001/05/xmlschema-test-collection/ - results-master.html" - -Fri Sep 3 20:29:59 CEST 2004 Kasimier Buchcik - - * xmlschemas.c include/libxml/schemasInternals.h - include/libxml/xmlerror.h: Fixed a seg fault in xmlGetQNameProp: - a format argument was missing. - Fixed wrong assignment of the owner of a wildcard in - xmlSchemaBuildAttributeValidation (in the shorthandform of - ; this caused a seg fault, due to a double-free - of the wildcard. - Added a check for circular attribute group references. - Added a check for circular model group definition references. - Fixed a dublicate xmlParserErrors enum value - see bug #151738. - -Fri Sep 3 10:08:13 PDT 2004 William Brack - - * xmlstring.c: modified comments on xmlGetUTF8Char in - response to bug 151760 (no change to logic) - -Tue Aug 31 09:46:18 PDT 2004 William Brack - - * xmlstring.c: fixed error reported on the list caused by - my last change - -Tue Aug 31 15:41:52 CEST 2004 Daniel Veillard - - * NEWS configure.in doc/*: release of libxml2-2.6.13 - -Tue Aug 31 14:14:30 CEST 2004 Daniel Veillard - - * xmlIO.c: fixing #151456, an encoding error could generate - a serialization loop. - -Tue Aug 31 11:34:04 CEST 2004 Daniel Veillard - - * Makefile.am: also produce a tar ball with just the sources - * xmllint.c: added --path option and --load-trace options to - xmllint, RFE #147740 based on xsltproc versions - * doc/xmllint.* doc/*: updated the man page and rebuilt - -Tue Aug 31 10:37:23 CEST 2004 Daniel Veillard - - * xmlschemastypes.c: "" is a valid hexbinary string dixit xmlschema-dev - * result/schemas/hexbinary_0_1.err test/schemas/hexbinary_1.xml: - update the test. - * test/ns5 result//ns5*: added a test for the namespace bug fixed - in previous commit. - * Makefile.am: added a message in the regression tests - -Mon Aug 30 23:36:21 PDT 2004 William Brack - - * SAX2.c: fixed bug introduced during OOM fixup causing problems - with default namespace when a named prefix with the same href - was present (reported on the mailing list by Karl Eichwalder. - * xmlstring.c: modified xmlCheckUTF8 with suggested code from - Julius Mittenzwei. - * dict.c: added a typecast to try to avoid problem reported by - Pascal Rodes. - -Mon Aug 30 12:45:46 CEST 2004 Kasimier Buchcik - - * xmlschemas.c: Fixed a bug in xmlSchemasCheckFacet, which did - not create a computed value on a facet and thus crashed during - validation of instances. - Expanded validity checks for min/maxOccurs attributes. - Expanded validity checks for the value of the attribute "form". - -Fri Aug 27 18:32:24 PST 2004 William Brack - - * xmlstring.c: fixed a problem with xmlCheckUTF8 reported on the - mailing list by Julius Mittenzwei - -Fri Aug 27 00:13:39 CEST 2004 Daniel Veillard - - * libxml.spec.in: added BuildRequires: zlib-devel, fixes - Red Hat bug #124942 - -Thu Aug 26 12:27:23 CEST 2004 Daniel Veillard - - * parser.c: remove a warning on Solaris - * xmlschemastype.c: fix a crashing bug #151111 - -Wed Aug 25 22:20:18 CEST 2004 Kasimier Buchcik - - * test/schemas/import-bad-1_0.imp: Added missing test file. - * xmlschemas.c include/libxml/xmlerror.h include/libxml/xmlschemas.h: - Substituted the obsolete xmlSchemaValidError(s) for xmlParserErrors - - see #150840. - Changed the import of schemas to allow failure of location - of a resource to be imported. - * result/schemas/all_* result/schemas/any3_0_0.err - result/schemas/choice_* result/schemas/import1_0_0.err - result/schemas/list0_0_1.err result/schemas/list0_1_0.err - result/schemas/list0_1_1.err result/schemas/ns0_0_2.err - result/schemas/ns0_1_2.err: Adapted regression test results. - -Tue Aug 24 20:49:15 MDT 2004 John Fleck - - * doc/tutorial/xmltutorial.xml, xmltutorial.pdf, *.html - fix Xpath memory leak (thanks to sKaBoy and William Brack) - -Tue Aug 24 21:10:59 CEST 2004 Igor Zlatkovic - - * parser.c: fixed path problem in DTD loading reported by - Sameer Abhinkar - -Tue Aug 24 16:40:51 CEST 2004 Igor Zlatkovic - - * win32/configure.js: added support for version extra - * win32/Makefile.*: upgraded to zlib 1.2.1 - -Mon Aug 23 14:33:54 CEST 2004 Daniel Veillard - - * configure.in: removing -O -g from default gcc flags #150828 - -Sun Aug 22 16:26:46 CEST 2004 Daniel Veillard - - * configure.in doc/* NEWS: preparing 2.6.12 release, updated and - and rebuilt the docs. - -Sun Aug 22 16:07:20 CEST 2004 Daniel Veillard - - * python/libxml.c: fix a problem on last commit - -Sun Aug 22 15:16:53 CEST 2004 Daniel Veillard - - * xmllint.c xpath.c include/libxml/xpath.h - include/libxml/xpathInternals.h python/libxml.c - python/libxml_wrap.h: trying to remove some warning when compiling - on Fedora Core 3 and 64bits - -Sat Aug 21 0:035:10 CET 2004 Kasimier Buchcik - - * xmlschemas.c: modified parsing of , , , - , , , . - Fixed schema defaults (elementFormDefault, etc.) for included - schemas. - Fixed a bug which reported attributes as invalid on - elements declarations with the built-in type 'anyType'. - Added "lax" validation of the content of elements of type - 'anyType'. - Fixed: element declarations with the same name were treated - as duplicate if located in the subtree of -> . - (This was bug 150623, submitted by Roland Lezuo) - Fixed cleanup of error codes in xmlSchemaValidateDoc as proposed - by Igor Kapitanker. (This was bug 150647, submitted by Igor - Kapitanker) - * xmlschemastypes.c: Changed the type of anyType to - XML_SCHEMAS_ANYTYPE. - * include/libxml/xmlerror.h: Added schema parser errors. - * result/schemas/bug145246_0_0* - result/schemas/extension1_0_2.err: Changed test results. - * result/schemas/ct-sc-nobase_0_0* - result/schemas/facet-whiteSpace_0_0* - result/schemas/import1_0_0* result/schemas/import2_0_0* - result/schemas/include2_0_0* result/schemas/include3_0_0* - result/schemas/restriction-attr1_0_0* - result/schemas/seq-dubl-elem1_0_0* - result/schemas/xsd-list-itemType_0_0*: Added new rest results. - test/schemas/bug145246.xsd.imp test/schemas/ct-sc-nobase_0* - test/schemas/facet-whiteSpace_0* test/schemas/import1_0* - test/schemas/import2_0* test/schemas/include2_0* - test/schemas/include3_0* test/schemas/restriction-attr1_0* - test/schemas/seq-dubl-elem1_0* test/schemas/xml.xsd - test/schemas/xsd-list-itemType_0*: Added new tests and missing - files. - -Fri Aug 20 18:51:36 CEST 2004 Daniel Veillard - - * Makefile.am configure.in: a bit of cleanup and a extra variable for - CVS dist - -Thu Aug 19 07:44:07 MDT 2004 John Fleck - - * doc/xmllint.xml, xmllint.1, xmllint.html: - Edit and rebuild the man pages with Daniel's C14 update - -Wed Aug 18 19:15:27 PDT 2004 William Brack - - * parser.c: fixed missing line numbers on entity as reported - on the list by Steve Cheng - -Wed Aug 18 14:04:31 PDT 2004 William Brack - - * configure.in globals.c include/libxml/xmlversion.h.in - include/libxml/xmlwin32version.h.in: added some code to - include the CVS ChangeLog version in the xmlParserVersion - string (printed by xmllint with --version) - -Wed Aug 18 11:14:06 CEST 2004 Daniel Veillard - - * xmlschemas.c include/libxml/xmlschemas.h python/generator.py - python/libxml.c python/libxml_wrap.h python/types.c - python/tests/schema.py python/tests/Makefile.am: Applied patch - from Torkel Lyng to add Schemas support to the Python bindings - and extend the schemas error API, registered a new test. - * doc/* elfgcchack.h: rebuilt to regenerate the bindings - -Mon Aug 16 14:36:25 CEST 2004 Daniel Veillard - - * debugXML.c: added help for new set shell command - * xinclude.c xmllint.c xmlreader.c include/libxml/parser.h: - added parser option to not generate XInclude start/end nodes, - added a specific option to xmllint to test it fixes #130769 - * Makefile.am: regression test the new feature - * doc/xmllint.1 doc/xmllint.xml: updated man page to document option. - -Mon Aug 16 02:42:30 CEST 2004 Daniel Veillard - - * xmlIO.c: small typo pointed out by Mike Hommey - * doc/xmllint.xml, xmllint.html, xmllint.1: slightly improved - the --c14n description, c.f. #144675 . - * nanohttp.c nanoftp.c: applied a first simple patch from - Mike Hommey for $no_proxy, c.f. #133470 - * parserInternals.c include/libxml/parserInternals.h - include/libxml/xmlerror.h: cleanup to avoid 'error' identifier - in includes #137414 - * parser.c SAX2.c debugXML.c include/libxml/parser.h: - first version of the inplementation of parsing within - the context of a node in the tree #142359, new function - xmlParseInNodeContext(), added support at the xmllint --shell - level as the "set" function - * test/scripts/set* result/scripts/* Makefile.am: extended - the script based regression tests to instrument the new function. - -Sat Aug 14 18:53:08 MDT 2004 John Fleck - - * doc/xmllint.xml, xmllint.html, xmllint.1: - add c14n to man page (man, it's hard to keep up with - Daniel!) - -Sat Aug 14 18:45:38 MDT 2004 John Fleck - - * doc/xmllint.xml, xmllint.html, xmllint.1: - add pattern, walker, maxmem, output and xmlout to man page - fixes #144675 - -Sun Aug 15 00:41:12 CEST 2004 Daniel Veillard - - * xmllint.c: added a --c14n option to canonicalize the output - should close the RFE #143226 - -Sat Aug 14 23:50:10 CEST 2004 Daniel Veillard - - * tree.c: Dodji pointed out a bug in xmlGetNodePath() - * xmlcatalog.c: applied patch from Albert Chin to add a - --no-super-update option to xmlcatalog see #145461 - and another patch also from Albert Chin to not crash - on -sgml --del without args see #145462 - * Makefile.am: applied another patch from Albert Chin to - fix a problem with diff on Solaris #145511 - * xmlstring.c: fix xmlCheckUTF8() according to the suggestion - in bug #148115 - * python/libxml.py: apply fix from Marc-Antoine Parent about - the errors in libxml(2).py on the node wrapper #135547 - -Sat Aug 14 13:18:57 CEST 2004 Daniel Veillard - - * Makefile.am: added a dumb rule to able to compile tst.c - when people submit a sample test program - * xmlschemas.c: applied small patch from Eric Haszlakiewicz - to document xmlSchemasSetValidErrors() limitations, #141827 - * error.c: Add information in generic and structured error - setter functions that this need to be done per thread #144308 - * xmlsave.c: fixed bug whith missing NOTATION(s) serialization - bug #144162 - * doc/xmllint.xml: typo fix #144840 - -Tue Aug 10 07:19:31 PDT 2004 Daniel Veillard - - * configure.in xmlregexp.c xmlschemas.c xmlschemastypes.c - include/libxml/schemasInternals.h include/libxml/xmlerror.h - include/libxml/xmlschemastypes.h: applied Schemas patches - from Kasimier Buchcik - * test/ result/ bug141333* annot-err* any[1-4]* bug145246* - element-err* element-minmax-err* include1* restrict-CT-attr-ref*: - lot of new tests for things fixed by the patch - -Fri Aug 6 09:22:34 PDT 2004 William Brack - - * valid.c: fixed my mis-handling of External ID on last - change. - -Wed Aug 4 23:40:21 PDT 2004 William Brack - - * valid.c: changed the parsing of a document's DTD to use - the proper base path (bug 144366) - -Wed Aug 4 16:58:08 CEST 2004 Daniel Veillard - - * Makefile.am config.h.in configure.in python/Makefile.am: - applied a patch from Gerrit P. Haase to get python bindings - on Cygwin - -Tue Aug 3 15:08:22 PDT 2004 William Brack - - * include/libxml/valid.h: elaborated on description of - xmlValidityWarningFunc and xmlValidityErrorFunc (bug - 144760) - * xmlIO.c, xmlschemastypes.c, include/libxml/schemasinternals.h: - minor fixes to comments for doc rebuilding errors. - * doc/*.html: rebuilt the docs - -Tue Aug 3 23:59:23 CEST 2004 Daniel Veillard - - * doc/ChangeLog.xsl doc/downloads.html doc/xml.html doc/*: - fixes documentation glitches raised by Oliver Stoeneberg - -Tue Aug 3 09:42:31 PDT 2004 William Brack - - * tree.c: fixed problem with memory leak on text nodes in DTD - (bug 148965) with patch provided by Darrell Kindred - -Tue Aug 3 08:14:44 PDT 2004 William Brack - - * HTMLparser.c: fixed initialisation problem for htmlReadMemory - (bug 149041) - -Sat Jul 31 11:01:33 PDT 2004 William Brack - - * doc/buildDocBookCatalog: enhanced per bug 119876. Further - info posted to the mailing list. - -Sat Jul 31 09:12:44 PDT 2004 William Brack - - * SAX2.c, encoding.c, error.c, parser.c, tree.c, uri.c, xmlIO.c, - xmlreader.c, include/libxml/tree.h: many further little changes - for OOM problems. Now seems to be getting closer to "ok". - * testOOM.c: added code to intercept more errors, found more - problems with library. Changed method of flagging / counting - errors intercepted. - -Fri Jul 30 13:57:55 CEST 2004 Daniel Veillard - - * tree.c: applied a couple of patch one from Oliver Stoeneberg - and another one from Rob Richards fixing #148448 - -Thu Jul 29 13:20:28 CEST 2004 Daniel Veillard - - * HTMLparser.c: 1 line patch, apparently htmlNewDoc() was not - setting doc->charset. - -Thu Jul 29 00:05:58 PDT 2004 William Brack - - * SAX2.c, tree.c, uri.c, xmlIO.c, xmlreader.c: further - fixes for out of memory condition, mostly from Olivier - Andrieu. - * testOOM.c: some further improvement by Olivier, with - a further small enhancement for easier debugging. - -Tue Jul 27 00:34:07 PDT 2004 William Brack - - * SAX2.c, error.c, parser.c, tree.c, xmlreader.c: - implemented patches supplied by Olivier Andrieu - (bug 148588), plus made some further enhancements, to - correct some problems with out of memory conditions. - * testOOM.c: improved with patches from Olivier Andrieu - -Mon Jul 26 11:03:18 PDT 2004 William Brack - - * tree.c: put in patch for Windows buffer re-allocation - submitted by Steve Hay (bug 146697) - -Sun Jul 25 17:18:39 PDT 2004 William Brack - - * xinclude.c: added some code to check, when an include is - done, whether the requested URL gets mapped to some other - location (e.g. with a catalog entry) and, if so, take care - of the xml:base properly (bug 146988) - -Sun Jul 25 14:02:24 PDT 2004 William Brack - - * error.c: fixed to assure user data param is set correctly - when user structured error handler is called (bug 144823) - -Thu Jul 22 10:14:48 PDT 2004 William Brack - - * xmlreader.c: fixed problem with reader state after - processing attributes (bug 147993) - -Wed Jul 21 17:04:27 HKT 2004 William Brack - - * configure.in, Makefile.am: put in an auto* check for the - path to perl (if it exists), and modified make Timingtests - to use that path instead of just executing the dbgenattr.pl - script (bug 148056) - -Fri Jul 16 18:36:33 HKT 2004 William Brack - - * python/generator.py: added a check on the argument for some - classes (e.g. xmlDoc and xmlNode) to prevent a segfault (as - reported on the list). Further enhancement should be done - to auto-create the appropriate object. - * python/libxml.c: minor fix for a warning message; added a - routine, currently not used, to report the description of a - PyCObject. - * python/libxml2class.txt: regenerated - -Fri Jul 16 11:01:40 CEST 2004 Daniel Veillard - - * catalog.c test/catalogs/white* result/catalogs/white*: - applied patches from Peter Breitenlohner to fix handling - of white space normalization in public ids and add tests - -Tue Jul 13 17:24:13 CEST 2004 Daniel Veillard - - * xmlmemory.c: applied a small fix from Steve Hay - -Tue Jul 13 23:02:19 HKT 2004 William Brack - - * xpath.c: Added code to in PREDICATE/FILTER handling to reset - the xpath context document pointer (part of fix to libxslt - bug 147445) - -Tue Jul 13 00:14:08 HKT 2004 William Brack - - * python/libxml.py: ran 'expand' on the file to get rid of mixture - of tabs and spaces (bug 147424) - -Sun Jul 11 22:38:29 HKT 2004 William Brack - - * python/drv_libxml.py: added an encoding "special comment" to avoid - warning message in python2.3 (bug 146889) - * Makefile.am, python/Makefile.am, python/tests/Makefile.am: small - change to make "make tests" a little quieter (MAKEFLAGS+=--silent) - * xpath.c: enhanced to take advantage of current libxslt handling - of tmpRVT. Fixes bug 145547. - -Fri Jul 9 14:02:54 CEST 2004 Daniel Veillard - - * libxml.h uri.c: fixed a couple of problems in the new - elfgcchack.h trick pointed by Peter Breitenlohner - -Wed Jul 7 00:45:48 CEST 2004 Daniel Veillard - - * elfgcchack.h doc/apibuild.py doc/libxml2-api.xml: fixed a bug - which prevented building with --with-minimum - -Mon Jul 5 19:43:51 CEST 2004 Daniel Veillard - - * configure.in doc/*: releasing 2.6.11, updated and regenerated the - docs - -Mon Jul 5 18:43:47 CEST 2004 Daniel Veillard - - * parser.c: make the push interfaces synchronous - * python/tests/sync.py: added a specific test - * python/tests/Makefile.am doc/examples/Makefile.am - doc/examples/index.py: added the new test, cleaning up - "make tests" output - -Mon Jul 5 15:09:17 CEST 2004 Daniel Veillard - - * xmlschemas.c: applied patch from Kasimier to fix some Relax-NG - datatype facet problem with recent changes. - -Sat Jul 3 11:31:02 HKT 2004 William Brack - - * python/libxml.c: Changed the number of XPath extension functions - allowed to be variable-length (patch supplied by Marc-Antoine - Parent, bug 143805). Added code to "unregister" the functions - when the parser cleanup takes place. - -Fri Jul 2 14:22:14 CEST 2004 Daniel Veillard - - * xmlmemory.c python/libxml.c python/libxml2-python-api.xml: - some updates with memory debugging facilities while messing - with libxslt python bindings - -Thu Jul 1 14:53:36 CEST 2004 Daniel Veillard - - * python/libxml.c python/generator.py python/libxml.py - python/libxml2-python-api.xml python/libxml2class.txt: - applied patch from Stéphane Bidoul to fix some Python bindings - initialization, then had to change the parserCleanup() - to handle memory released there. - * xmlmemory.c: added more debugging comments. - -Thu Jul 1 13:18:02 CEST 2004 Daniel Veillard - - * xmlreader.c: seems the reader buffer could be used while not - allocated, fixes bug #145218 - -Thu Jul 1 11:34:10 CEST 2004 Daniel Veillard - - * python/generator.py: do not provide functions used as destructor - of classes as public methods to avoid double-free problem like - in bug #145185 - -Wed Jun 30 19:45:23 HKT 2004 William Brack - - * xmlschemas.c, xmlschemastypes.c: warning message cleanup. - Now compiles warning-free, all tests passed. - * SAX2.c: small change to comments for documentation. - No change to logic. - -Tue Jun 29 15:00:13 PDT 2004 Daniel Veillard - - * xmlschemas.c: more fixes with Kasimier, looks far cleaner :-) - -Tue Jun 29 23:00:05 CEST 2004 Daniel Veillard - - * xmlschemas.c: Kasimier Buchcik fixed the memory access and - allocation problem - -Tue Jun 29 19:00:32 CEST 2004 Daniel Veillard - - * xmlschemas.c xmlschemastypes.c include/libxml/xmlerror.h - include/libxml/schemasInternals.h include/libxml/xmlschemastypes.h: - applied Schemas patches from Kasimier Buchcik, there is still - one open issue about referencing freed memory. - * test/schemas/* result/schemas/*: updated with new tests from - Kasimier - -Tue Jun 29 14:52:18 CEST 2004 Daniel Veillard - - * include/libxml/globals.h include/libxml/xmlIO.h - doc/libxml2-api.xml doc/libxml2-refs.xml: moved some definitions - to globals.h to avoid some troubles pointed out by Rob Richards - -Mon Jun 28 11:25:31 CEST 2004 Daniel Veillard - - * libxml.m4: applied changes suggested by Mike Hommey, remove - libxml1 support and use CPPFLAGS instead of CFLAGS - -Sun Jun 27 14:17:15 CEST 2004 Daniel Veillard - - * libxml.spec.in: another, more 'experimental' feature to - get compiler optimization based on gcc runtime profiling - -Sun Jun 27 14:02:36 CEST 2004 Daniel Veillard - - * elfgcchack.h doc/elfgcchack.xsl libxml.h: hack based on Arjan van de - Ven suggestion to reduce ELF footprint and generated code. Based on - aliasing of libraries function to generate direct call instead of - indirect ones - * doc/libxml2-api.xml doc/Makefile.am doc/apibuild.py: added automatic - generation of elfgcchack.h based on the API description, extended - the API description to show the conditionals configuration flags - required for symbols. - * nanohttp.c parser.c xmlsave.c include/libxml/*.h: lot of cleanup - * doc/*: regenerated the docs. - -Sun Jun 27 10:02:28 HKT 2004 William Brack - - * regressions.py, regressions.xml: new files for running - regression tests under Python. Not yet complete, but - should provide good testing under both Linux and Windows. - * testHTML.c, testSAX.c, xmllint.c: changed the 'fopen' used - for --push testing to include the 'rb' param when compiled - under Windows. - -Fri Jun 25 13:38:57 HKT 2004 William Brack - - * uri.c: fixed a problem when base path was "./xxx" - * result/XInclude/*: 5 test results changed by above. - * Makefile.am: fixed a couple of spots where a new - result file used different flags that the testing one. - -Thu Jun 24 16:27:44 HKT 2004 William Brack - - * valid.c: suppressed warnings from within xmlValidGetValidElements - (bug 144644) - * doc/examples/testWriter.c: corrected typo in comment for ISO-8859-1 - (bug 144245) - -Thu Jun 24 10:17:31 HKT 2004 William Brack - - * valid.c: implemented bugfix from Massimo Morara for DTD - dumping problem. - * test/valid/t10.xml, result/valid/t10.*: added regression - for above - * configure.in: small change for my profile settings - -Wed Jun 23 20:18:19 MDT 2004 John Fleck - - * doc/xmlcatalog_man.xml, xmlcatalog.1 - Docs patch from Ville Skytta, bugzilla #144841 - -Sat Jun 19 18:34:11 MDT 2004 John Fleck - - * doc/xmllint.xml, xmllint.html, xmllint.1 - update man page to reflect William's newly disciplined return - code mojo - -Thu Jun 17 00:51:55 CEST 2004 Daniel Veillard - - * doc/examples/io2.c doc/examples/parse4.c: fixing a couple of - compilation errors when configured with --with-minimum - -Wed Jun 16 16:07:10 CEST 2004 Daniel Veillard - - * debugXML.c: applied patch from Stefano Debenedetti to register - namespaces in the debug shell - -Mon Jun 14 21:56:31 CEST 2004 Daniel Veillard - - * xmlreader.c: fix from Steve Ball and update of the comment. - * Makefile.am result/errors/*.str: William pointed out that - the streaming error checking part wasn't streaming, fixing - -Mon Jun 14 14:11:52 CEST 2004 Daniel Veillard - - * catalog.c: patch from Igor for the default catalog path on Windows - -Sat Jun 12 09:03:57 HKT 2004 William Brack - - * configure.in: apparently wasn't updated last time - -Thu Jun 10 20:57:48 HKT 2004 William Brack - - * configure.in, xmlmemory.c, globals.c: fixed problem when - configuring using --with-thread-alloc - -Wed Jun 9 16:31:24 CEST 2004 Igor Zlatkovic - - * win32/configure.js win32/Makefile.* minor changes for the new - layout of the Windows binary package - -Tue Jun 8 19:50:25 CEST 2004 Daniel Veillard - - * xmlschemas.c include/libxml/xmlerror.h: applied another patch - from Kasimier Buchcik for Schema Component Constraints - * test/schemas/* result/schemas/*: added the regression tests - -Tue Jun 8 21:27:03 HKT 2004 William Brack - - * xmllint.c: fixed missing error return code for schema - validation (bug 143880), also changed over to an enum for - defining the error return codes for all conditions. - -Tue Jun 8 14:01:14 CEST 2004 Daniel Veillard - - * parser.c xmlreader.c include/libxml/parser.h: fixed a serious - problem when substituing entities using the Reader, the entities - content might be freed and if rereferenced would crash - * Makefile.am test/* result/*: added a new test case and a new - test operation for the reader with substitution of entities. - -Tue Jun 8 12:14:16 CEST 2004 Daniel Veillard - - * globals.c xmlIO.c include/libxml/globals.h include/libxml/xmlIO.h: - applied patch from Rob Richards for the per thread I/O mappings - -Tue Jun 8 09:58:31 HKT 2004 William Brack - - * xinclude.c: some further enhancement to take care of - xml:base for XPointer elements (bug 143886). Also fixed - a problem when xml:base was already specified on an - XInclude'd element. - -Mon Jun 7 22:14:58 HKT 2004 William Brack - - * relaxng.c: fixed a problem with internal cleanup of
element - (bug 143738). - -Mon Jun 7 16:57:43 HKT 2004 William Brack - - * uri.c, include/libxml/uri.h: added a new routine - xmlBuildRelativeURI needed for enhancement of xinclude.c - * xinclude.c: changed handling of xml:base (bug 135864) - * result/XInclude/*: results of 5 tests changed as a result - of the above change - -Fri Jun 4 11:27:37 CEST 2004 Daniel Veillard - - * test/schemas/* result/schemas/*: added a bunch of tests from - Kasimier Buchcik posted on May 11 - -Thu Jun 3 17:58:25 CEST 2004 Daniel Veillard - - * xmlschemas.c: new patch from Kasimier Buchcik for processContents - of wildcards attribute handling - * test/schemas/anyAttr-* result/schemas/anyAttr-*: added specific - regression tests - -Thu Jun 3 13:20:36 CEST 2004 Daniel Veillard - - * parser.c: fixed a bug where invalid charrefs may not be detected - sometimes as pointed by Morus Walter. - * test/errors/charref1.xm result/errors/charref1.xml*: added the - test in the regression suite. - -Thu Jun 3 18:38:27 HKT 2004 William Brack - - * xmlschemas.c: small change to xmlSchemaValidateAttributes, - also corrected typo on error code enum. - * include/libxml/xmlerror.h: corrected typo on schema error - code enum - -Thu Jun 3 10:12:38 HKT 2004 William Brack - - * xmlschemas.c: minor cosmetic changes, no change to logic. - * result/schemas/attruse_0_[12].err: regenerated - * globals.c: added a newline at end to make gcc happy - -Wed Jun 2 21:16:26 CEST 2004 Daniel Veillard - - * xmlschemas.c include/libxml/schemasInternals.h - include/libxml/xmlerror.h: applied a patch from Kasimier Buchcik - implementing attribute uses and wildcards. - * test/schemas/* result/schemas/*: added/fixed a bunch of tests - -Wed Jun 2 18:15:51 CEST 2004 Daniel Veillard - - * globals.c xmlIO.c include/libxml/globals.h: applied patch from - Rob Richards for custom I/O BufferCreateFilenane fixes bug - #143366 - -Wed Jun 02 16:25:32 HKT 2004 William Brack - - * xpath.c: fixed problem with predicate evaluation on an - empty nodeset (bug 143409) - -Wed Jun 02 11:26:41 HKT 2004 William Brack - - * testSAX.c: fixed problem with attribute listing (bug 142674) - and added macro LIBXML_TEST_VERSION to assure xmlInitParser - gets called (bug 142686) - -Sat May 29 21:35:52 CEST 2004 Daniel Veillard - - * test/schemas/date_0.xml xmlschemastypes.c: applied a patch from - Charles Bozeman fixing a side effect in date handling - -Thu May 27 19:47:48 MDT 2004 John Fleck - - * doc/tutorial/xmltutorial.xml fix lack of cast in Xpath example - * doc/tutorial/*.html, xmltutorial.pdf rebuild html, pdf - -2004-05-25 Aleksey Sanin - - * c14n.c: fixed c14n bug with serializing attribute namespaces - -Mon May 24 08:22:48 HKT 2004 William Brack - - * xpath.c: fixed to allow '+' in exponent of number - (bug 143005) - * SAX2.c: fixed typo in last commit - -Sat May 22 09:08:24 HKT 2004 William Brack - - * SAX2.c: skipped call to xmlValidateNCName when compiling - --with-minimum (bug 142917) - -Tue May 18 06:48:00 CEST 2004 Daniel Veillard - - * catalog.c: reverted the broken change. - -Mon May 17 23:07:15 CEST 2004 Daniel Veillard - - * NEWS doc/*: updated the docs for 2.6.10 - -Mon May 17 05:52:03 CEST 2004 Daniel Veillard - - * configure.in : releasing 2.6.10 - -Sun May 16 23:12:35 CEST 2004 Daniel Veillard - - * tree.c: avoid returning default namespace when searching - from an attribute - * entities.c xmlwriter.c: reverse xmlEncodeSpecialChars() behaviour - back to escaping " since the normal serialization routines do not - use it anymore, should close bug #134477 . Tried to make - the writer avoid it too but it didn't work. - -Sun May 16 01:07:16 CEST 2004 Daniel Veillard - - * doc/ChangeLog.awk doc/ChangeLog.xsl: fixed escaping - handling and added direct links to bugzilla report for - bug numbers. - -Sun May 16 11:11:13 HKT 2004 William Brack - - * error.c: modified to assure proper user data is sent to - structured error routine (bug 142598) - -Sun May 16 03:18:52 CEST 2004 Daniel Veillard - - * catalog.c: a couple of large static variable which should really - not be declared as such cluttered the .bss section. - -Sun May 16 03:06:31 CEST 2004 Daniel Veillard - - * doc/ChangeLog.awk: fixed a couple of problems when parsing - libxslt ChangeLog - -Sat May 15 20:14:21 CEST 2004 Daniel Veillard - - * doc/ChangeLog.awk doc/ChangeLog.xsl: first steps of a good - ChangeLog page generation. The awk shoudl escape characters - not okay in XML and the xslt should make links to functions - or variables or bug reported in the entries. - -Sat May 15 14:57:40 CEST 2004 Daniel Veillard - - * xmlsave.c include/libxml/xmlsave.h: start adding API for - escaping customization. - -Sat May 15 12:38:17 CEST 2004 Daniel Veillard - - * xmlsave.c: more xmlSave cleanup, optimization and refactoring - -Fri May 14 17:51:48 CEST 2004 Daniel Veillard - - * xmlIO.c xmlsave.c: third pass at the escaping refactoring. - -Fri May 14 12:37:24 HKT 2004 William Brack - - * parser.c: enhanced the enhancement, fixed another couple of - special cases. - -Fri May 14 11:48:33 HKT 2004 William Brack - - * parser.c: small enhancement to dtd handling of (a?)+ (bug 142487) - -Thu May 13 23:19:00 CEST 2004 Daniel Veillard - - * xmlIO.c xmlsave.c include/libxml/xmlIO.h: second pass on escaping - handling, start to looks better, need to be completed and added - directly at the saving context level. - -Thu May 13 10:31:28 CEST 2004 Daniel Veillard - - * xmlIO.c xmlsave.c include/libxml/xmlIO.h: first pass at refactoring - the escape on save routines for better performances (less malloc) - and more flexibility using the new saving context. Preliminary - work, interface will change. - -Wed May 12 22:34:03 HKT 2004 William Brack - - * xmlschemas.c: added code in xmlSchemaBuildAContentModel to handle - element reference within the xs:all construct (bug 139897) - -Wed May 12 17:27:18 HKT 2004 William Brack - - * xinclude.c: a little further fixing of fallback processing, this - time for fallback with children (bug 139520). - -Wed May 12 08:21:33 HKT 2004 William Brack - - * xmlschemas.c: added code in xmlSchemaBuildContentModel to - allow ref in group definition (bug 134411). Also fixed - misc compilation warning messages. - * result/schema/group0_0_0, result/schema/group0_0_0.err: - regenerated (now no error reported). - -Tue May 11 11:55:59 CEST 2004 Daniel Veillard - - * xmlIO.c: fix to the fix for #141864 from Paul Elseth - * HTMLparser.c result/HTML/doc3.htm: apply fix from David Gatwood for - #141195 about text between comments. - -Tue May 11 23:04:47 HKT 2004 William Brack - - * xmlschemas.c, include/libxml/schemasInternals.h, - include/libxml/xmlerror.h: Applied patches supplied by - Kasimier Buchcik. - * test/schemas/po1_0.xml, test/schemas/po1_0.xsd: - changed test to account for above patch. - -Tue May 11 09:06:53 CEST 2004 Daniel Veillard - - * python/tests/tstLastError.py: better portability fix for f(*args), - use apply(f, args) as Stephane Bidoul suggested - -Mon May 10 15:49:22 HKT 2004 William Brack - - * xmlregexp.c: enhanced xmlRegStateAddTrans to check if transition - is already present and, if so, to ignore the request to add it. - This has a very dramatic effect on memory requirements as well - as efficiency. It also fixes bug 141762. - -Sun May 9 20:40:59 CEST 2004 Daniel Veillard - - * Makefile.am python/tests/Makefile.am python/tests/tstLastError.py: - applied patch from Ed Davis to allow "make tests" to work - with Python 1.5 - -Sun May 9 19:46:13 CEST 2004 Daniel Veillard - - * xmlsave.c: apply fix for XHTML1 formating from Nick Wellnhofer - fixes bug #141266 - * test/xhtmlcomp result//xhtmlcomp*: added the specific regression - test - -Sun May 9 14:07:21 CEST 2004 Daniel Veillard - - * Makefile.am: fix for a pedantic make check without make all request - -Sat May 8 22:56:22 CEST 2004 Daniel Veillard - - * uri.c xmlIO.c: fixing some problems in URI unescaping - and output buffer opening, this should fix #141864 - -Fri May 7 22:31:54 CEST 2004 Daniel Veillard - - * valid.c include/libxml/valid.h: fixes the use of 'list' as a parameter - * xmlIO.c include/libxml/xmlIO.h: added xmlPopInputCallback for - Matt Sergeant - -Thu May 6 21:14:38 PDT 2004 William Brack - - * xmlregexp.c: enhanced the handling of subexpression ranges - which have a minOccurs of 0 (bug 140478 again); cleaned up - comments throughout the module. - -Tue May 4 00:52:16 CEST 2004 Daniel Veillard - - * xmllint.c: adding a --maxmem option to check memory used. - -Sat May 1 01:08:44 CEST 2004 Daniel Veillard - - * xmllint.c xmlsave.c python/generator.py python/libxml.c: Fixed - bug #141529 i.e. various problems when building with --without-html - -Fri Apr 30 18:12:31 CEST 2004 Daniel Veillard - - * xmllint.c xmlreader.c: fixing bug #141384 where the reader didn't - call the deregistering functions. Also added the check to - xmllint --stream --chkregister . - -Fri Apr 30 08:57:47 CEST 2004 Daniel Veillard - - * win32/Makefile.msvc: applied a second patch from Mark Vakoc for - regression tests on Windows - -Thu Apr 29 21:47:23 CEST 2004 Daniel Veillard - - * xmlreader.c: never commit without running make tests first ! - -Thu Apr 29 20:15:20 CEST 2004 Daniel Veillard - - * xmlreader.c: fix a nasty problem with reading over the end - * xmlsave.c: fix a reported memory leak apparently - -Thu Apr 29 17:05:00 CEST 2004 Daniel Veillard - - * win32/Makefile.msvc: patch from Mark Vakoc for regression tests - on Windows. - * xpath.c: the NaN problem also shows up on Borland - -Mon Apr 26 23:37:12 HKT 2004 William Brack - - * xmlregexp.c: enhanced xmlFARegExec range evaluation for min - occurs 0 problems - fixes bug 140478. - -Thu Apr 22 09:12:47 CEST 2004 Daniel Veillard - - * rngparser.c: tiny path fixes the "xmlConvertCRNGFile" function name - from Kasimier Buchcik - * xmlschemas.c: recursive xs:extension fix from taihei goi - -Wed Apr 21 00:19:29 CEST 2004 Daniel Veillard - - * tree.c: small buffer resizing improvement from Morten Welinder - closes #140629 - -Tue Apr 20 23:40:14 CEST 2004 Daniel Veillard - - * xpath.c: last version of the fix for MSC version 1200 - -Tue Apr 20 19:40:37 CEST 2004 Daniel Veillard - - * parser.c: killing the strncmp vs. memcmp controversy and #140593 - -Tue Apr 20 13:27:06 CEST 2004 Daniel Veillard - - * include/libxml/SAX2.h: Kasimier Buchcik pointed out some - inexistent functions, cleaned them out. - -Tue Apr 20 11:42:50 CEST 2004 Daniel Veillard - - * error.c: Johnson Cameron pointed out that - initGenericErrorDefaultFunc() was really wrong. - * xmlreader.c include/libxml/xmlreader.h: xmlTextReaderMode enum - must be made public, added some missing comments on the XMLReader - header. - * c14n.c: Alexsey fixed C14N bug with processing namespaces - from attributes - -Mon Apr 19 23:27:46 CEST 2004 Daniel Veillard - - * xpath.c: fixed a stupid () error + Mark name. - -Sun Apr 18 23:45:46 CEST 2004 Daniel Veillard - - * configure.in: preparing 2.6.9 release - * doc/* News: updated and rebuilt the docs - -Sun Apr 18 22:51:43 CEST 2004 Daniel Veillard - - * xpath.c: relaxed id() to not check taht the name(s) passed - are actually NCName, decided this in agreement with Aleksey Sanin - since existing specs like Visa3D broke that conformance checking - and other tools seems to not implement it sigh... - * SAX2.c: check attribute decls for xml:id and the value is an - NCName. - * test/xmlid/id_err* result/xmlid/id_err*: added error testing - -Sun Apr 18 21:46:17 CEST 2004 Daniel Veillard - - * xpath.c: work around Microsoft compiler NaN bug raise reported - by Mark Vakoc - * xmlschemas.c include/libxml/schemasInternals.h - include/libxml/xmlerror.h: fixed a recusive extention schemas - compilation error raised by taihei goi - -Sun Apr 18 16:57:02 CEST 2004 Daniel Veillard - - * libxml.spec.in: keep the ChangeLog compressed - * xmlreader.c: fix a segfault when using Close() - * python/tests/Makefile.am python/tests/reader8.py: test for - the Close() reader API. - -Sat Apr 17 22:42:13 HKT 2004 William Brack - - * xmlschemas.c, xmlwriter.c, doc/examples/parse4.c, - doc/examples/io2.c: minor warning cleanup (no change to logic) - * xinclude: fixed return value for internal function - xmlXIncludeLoadFallback (now always 0 or -1) - -Sat Apr 17 21:32:32 HKT 2004 William Brack - - * valid.c: small enhancement to fix bug 139791 - -Fri Apr 16 18:44:47 CEST 2004 Daniel Veillard - - * xmlschemas.c include/libxml/schemasInternals.h - include/libxml/xmlerror.h: applied patches from Kasimier Buchcik - for the attribute use support - * test/schemas/attruse* result/schemas/attruse*: added the - tests to the regression suite. - -Fri Apr 16 18:22:25 CEST 2004 Daniel Veillard - - * xmlsave.c: move the TODO as comments as the function while not - finished are usable as-is - * xmlschemas.c include/libxml/xmlerror.h: patch from Kasimier Buchcik - implementing union - * test/schemas/union_0_0.x* result/schemas/union_0_0*: added example - * python/Makefile.am: applied fix from Mike Hommey - -Fri Apr 16 23:58:42 HKT 2004 William Brack - - * parser.c: fixed problem with detecting external dtd - encoding (bug 135229). - * Makefile.am: minor change to test label - -Fri Apr 16 16:09:31 HKT 2004 William Brack - - * xinclude.c: fixed problem causing duplicate fallback - execution (bug 139520) - * test/XInclude/docs/fallback2.xml result/XInclude/fallback2.*: - added testcase - -Fri Apr 9 23:49:37 CEST 2004 Daniel Veillard - - * SAX2.c include/libxml/tree.h: adding xml:id draft support - * Makefile.am test/xmlid/id_tst* result/xmlid/id_tst*: adding - 4 first regression tests - -Fri Apr 9 11:56:08 CEST 2004 Daniel Veillard - - * libxml.spec.in: fixing Red Hat bug #120482 , libxml2-python - should depend on the version of python used to compile it. - -Mon Apr 5 09:07:24 CEST 2004 Daniel Veillard - - * HTMLparser.c: applied patch from James Bursa, frameset should - close head. - -Fri Apr 2 22:02:24 HKT 2004 William Brack - - * relaxng.c: fixed problem in xmlRelaxNGCompareNameClasses - which was causing check-relaxng-test-suite.py test 351 to fail. - -Fri Apr 2 17:03:48 HKT 2004 William Brack - - * nanohttp.c: implemented fix for M$ IIS redirect provided - by Ian Hummel - * relaxng.c: fixed problem with notAllowed compilation - (bug 138793) - -Thu Apr 1 22:07:52 CEST 2004 Daniel Veillard - - * uri.c: fix for xmlUriEscape on "http://user@somewhere.com" - from Mark Vakoc. - -2004-04-01 Johan Dahlin - - * python/.cvsignore: Add generated files, to make cvs silent. - -Thu Apr 1 12:41:36 CEST 2004 Daniel Veillard - - * xmlschemas.c: small signed-ness patch from Steve Little - -Wed Mar 31 17:47:28 CEST 2004 Daniel Veillard - - * xmlregexp.c: patched a bug in parsing production 1 and 2 of - xmlschemas regexp that William pointed out while working on - #134120 - * test/regexp/branch result/regexp/branch: added a specific - regression test - -Wed Mar 31 09:50:32 HKT 2004 William Brack - - * Makefile.am: added PYTHONPATH to python tests for Schemas - and RelaxNG - * test/xsdtest/xsdtestsuite.xml: added testfile for - SchemasPythonTests - -Mon Mar 29 16:56:49 CEST 2004 Daniel Veillard - - * doc/examples/examples.xsl doc/examples/index.html: added - information about compiling on Unix - -Mon Mar 29 14:18:12 CEST 2004 Daniel Veillard - - * catalog.c: fixes the comments for xmlCatalogDump and xmlDumpACatalog - * doc/*: rebuilt to update - -Sun Mar 28 18:11:41 CEST 2004 Daniel Veillard - - * xmlsave.c: optimize indentation based on the new context - -Sun Mar 28 14:17:10 CEST 2004 Daniel Veillard - - * doc/examples/xpath2.c doc/examples/xpath2.res: handle and explain - a very tricky problem when modifying the tree based on an XPath - result query. - -Sat Mar 27 09:56:14 PST 2004 William Brack - - * relaxng.c: fixed problem with IS_COMPILABLE flag - (bug 130216) - -Fri Mar 26 18:28:32 CET 2004 Daniel Veillard - - * parser.c: applied patch from Dave Beckett to correct line number - errors when using push with CDATA - -Fri Mar 26 14:53:58 CET 2004 Daniel Veillard - - * doc/examples/xpath1.c: added a test template - * doc/examples/xpath2.c doc/examples/xpath2.res doc/examples/*: - added a new example, and make valgrind target - -Fri Mar 26 11:47:29 CET 2004 Daniel Veillard - - * parser.c: apply fix for #136693 - -Thu Mar 25 20:21:01 MST 2004 John Fleck - - * doc/examples/io2.c - * doc/examples/io2.res - add xmlDocDumpMemory example in response to mailing list FAQ - (rebuilt xml and html also) - -Thu Mar 25 10:33:05 CET 2004 Daniel Veillard - - * debugXML.c testXPath.c xmllint.c xmlschemastypes.c: applied - patch from Mark Vakoc avoiding using xmlParse* option and use - xmlRead* instead - * win32/Makefile.bcb: patch to Borland C++ builder from Eric Zurcher - to avoid problems with some pathnames. - -Tue Mar 23 12:35:08 CET 2004 Daniel Veillard - - * configure.in doc/* News: preparing 2.6.8 release, updated and rebuilt - the docs. - * Makefile.am: use valgring fro the new Python based regression tests - -Mon Mar 22 20:07:27 CET 2004 Daniel Veillard - - * relaxng.c: remove a memory leak on schemas type facets. - * check-relaxng-test-suite.py check-relaxng-test-suite2.py - check-xsddata-test-suite.py: reduce verbosity - * configure.in Makefile.am: incorporated the Python regressions - tests for Relax-NG and Schemas Datatype to "make tests" - -Mon Mar 22 16:16:18 CET 2004 Daniel Veillard - - * xmlwriter.c include/libxml/xmlwriter.h doc/* : applied patch from - Alfred Mickautsch for better DTD support. - * SAX2.c HTMLparser.c parser.c xinclude.c xmllint.c xmlreader.c - xmlschemas.c: fixed bug #137867 i.e. fixed properly the way - reference counting is handled in the XML parser which had the - side effect of removing a lot of hazardous cruft added to try - to fix the problems associated as they popped up. - * xmlIO.c: FILE * close fixup for stderr/stdout - -Sun Mar 21 19:19:41 HKT 2004 William Brack - - * relaxng.c: added an error message when an element is not - found within a (bug 126093) - -Sat Mar 20 22:25:18 HKT 2004 William Brack - - * xmlregexp.c: enhanced the logic of parsing char groups to - better handle initial or ending '-' (bug 135972) - -Sat Mar 20 19:26:03 HKT 2004 William Brack - - * relaxng.c: added check for external reference in - xmlRelaxNGGetElements (bug 137718) - * test/relaxng/rngbug-001.*, result/relaxng/rngbug-001*: added - regression test for above - -Wed Mar 17 16:37:22 HKT 2004 William Brack - - * nanohttp.c: added a close for the local file descriptor - (bug 137474) - -Mon Mar 15 15:46:59 CET 2004 Daniel Veillard - - * xmlsave.c: switched the output routines to use the new context. - -Mon Mar 15 10:37:18 HKT 2004 William Brack - - * relaxng.c: enhanced to ignore XML_XINCLUDE_START and XML_XINCLUDE_END - nodes (bug 137153) - -Sun Mar 14 13:19:20 CET 2004 Daniel Veillard - - * xmlschemastypes.c: applied patch from John Belmonte for anyURI. - -Wed Mar 10 17:22:48 CET 2004 Daniel Veillard - - * parser.c: fix bug reported by Holger Rauch - * test/att8 result/noent/att8 result/att8 result/att8.rdr - result/att8.sax: added the test to th regression suite - -Wed Mar 10 19:42:22 HKT 2004 William Brack - - * doc/search.php: Minor change for later verson of php requiring - $HTTP_GET_VARS. - -Wed Mar 10 00:12:31 HKT 2004 William Brack - - * tree.c: Changed the flag to xmlDocCopyNode (and similar routines), - previously used only for recursion, to use a value of '2' to - indicate copy properties & namespaces, but not children. - * xinclude.c: changed the handling of ranges to use the above new - facility. Fixes Bug 134268. - -Tue Mar 9 18:48:51 HKT 2004 William Brack - - * win32/Makefile.bcb, win32/Makefile.mingw, win32/Makefile.msvc: - added new module xmlsave with patch supplied by Eric Zurcher - (second attempt - don't know what happened to the first one!) - -Tue Mar 9 09:59:25 CET 2004 Daniel Veillard - - * python/libxml.c python/libxml.py: applied patch from Anthony Carrico - providing Python bindings for the Canonicalization C14N support. - -Mon Mar 8 11:12:23 CET 2004 Hagen Moebius - - * .cvsignore and python/.cvsignore patched - -Mon Mar 8 22:33:14 HKT 2004 William Brack - - * xinclude.c: enhanced to assure that if xpointer is called - for a document, the XML_PARSE_NOENT flag is set before parsing - the included document so that entities will automatically get - taken care of. - * xpointer.c: corrected code so that, if an XML_ENTITY_REF node - is encountered, it will log it and not crash (bug 135713) - -Sun Mar 7 19:03:48 HKT 2004 William Brack - - * xinclude.c: modified to make sub-includes inherit the - parse flags from the parent document (bug 132597) - -Fri Mar 5 01:13:22 CET 2004 Daniel Veillard - - * xmlschemas.c: QName handling fixes for the XML Schemas - support from Adam Dickmeiss - * test/schemas/po1_0.xsd: also fix the schemas - * test/schemas/ns[12]* result/schemas/ns[12]*: added the specific - regression tests - -Thu Mar 4 23:03:02 CET 2004 Daniel Veillard - - * configure.in doc/Makefile.am include/libxml/Makefile.am: - paalied patch from Julio M. Merino Vidal fixing bug #134751 - to fix --with-html-dir option. - * doc/*: rebuilt fully the docs - * doc/html/libxml-xmlsave.html: new file from new header. - -Thu Mar 4 16:57:50 CET 2004 Daniel Veillard - - * debugXML.c testHTML.c tree.c doc/examples/*.c - include/libxml/xmlsave.h: fixing compilation bug with some options - disabled as well as --with-minimum should fix #134695 - -Thu Mar 4 15:00:45 CET 2004 Daniel Veillard - - * xmlcatalog.c: allow fallback to URI lookup when SYSTEM fails, - should close #134092 - -Thu Mar 4 14:39:38 CET 2004 Daniel Veillard - - * Makefile.am tree.c xmlsave.c include/libxml/xmlsave.h: commiting - the new xmlsave module before the actuall big code change. - -Thu Mar 4 12:38:53 CET 2004 Daniel Veillard - - * xmlschemas.c: applied patch from Adam Dickmeiss for mixed content - * test/schemas/mixed* result/schemas/mixed*: added his regression - tests too. - -Mon Mar 1 15:22:06 CET 2004 Daniel Veillard - - * testSAX.c: fix a compilation problem about a missing timb include - -Sat Feb 28 22:35:32 HKT 2004 William Brack - - * testSAX.c: small enhancement to prevent trying to print - strings with null pointers (caused "make tests" errors on - HP-UX) - -Thu Feb 26 20:19:40 MST 2004 John Fleck - - * doc/xmllint.xml - * doc/xmllint.1 - * doc/xmllint.html - * doc/xmlcatalog_man.xml - * doc/xmlcatalog.1 - * doc/xmlcatalog_man.html - applying patch from Mike Hommey to clarify XML_CATALOG_FILES - use - -Thu Feb 26 23:47:43 CET 2004 Daniel Veillard - - * Makefile.am: patch for cross-compilation to Windows from - Christophe de VIENNE. - -Thu Feb 26 18:52:11 HKT 2004 William Brack - - * doc/*.html, doc/html/*.html: regenerated docs using older - version of xsltproc pending resolution of AVT problem - -Thu Feb 26 10:56:29 CET 2004 Daniel Veillard - - * Makefile.am: applied patch from Charles Bozeman to not use - the system xmllint. - -Wed Feb 25 18:07:05 CET 2004 Daniel Veillard - - * include/libxml/xmlexports.h: applied patch from Roland Schwingel - for MingW - -Wed Feb 25 13:57:25 CET 2004 Daniel Veillard - - * Makefile.am catalog.c configure.in: applied a cleanup patch - from Peter Breitenlohner - * tree.c: removed a doc build warning by fixing a param comment - * doc/* : rebuilt the docs - -Wed Feb 25 13:33:07 CET 2004 Daniel Veillard - - * valid.c HTMLparser.c: avoid ID error message if using - HTML_PARSE_NOERROR should fix #130762 - -Wed Feb 25 12:50:53 CET 2004 Daniel Veillard - - * debugXML.c relaxng.c valid.c xinclude.c xmllint.c xmlreader.c: - fixing compilation and link option when configuring with - --without-valid should fix #135309 - -Wed Feb 25 11:36:06 CET 2004 Daniel Veillard - - * catalog.c: fixed the main issues reported by Peter Breitenlohner - * parser.c: cleanup - * valid.c: speedup patch from Petr Pajas - -Wed Feb 25 16:07:14 HKT 2004 William Brack - - * xpath.c: fixed a memory leak (xmlXPathLangFunction) reported - on the list by Mike Hommey - -Mon Feb 23 17:28:34 CET 2004 Daniel Veillard - - * doc/* NEWS configure.in: preparing 2.6.7 release, updated and - rebuilt the documentation. - -Mon Feb 23 11:52:12 CET 2004 Daniel Veillard - - * python/tests/*.py: applied patch from Malcolm Tredinnick - to avoid tabs in python sources, should fix #135095 - -Sun Feb 22 23:16:23 CET 2004 Daniel Veillard - - * testSAX.c: add --timing option - * relaxng.c: use the psvi field of the nodes instead of _private - which may be used for other purposes. - -Sat Feb 21 16:57:48 CET 2004 Daniel Veillard - - * encoding.c: small patch to try to fix a warning with Sun One compiler - -Sat Feb 21 16:22:35 CET 2004 Daniel Veillard - - * encoding.c: small patch removing a warning with MS compiler. - -Sat Feb 21 13:52:30 CET 2004 Daniel Veillard - - * debugXML.c: added "relaxng" option to the debugging shell - * Makefile.am test/errors/* result/errors/*: some regression tests - for some error tests cases. - -Fri Feb 20 09:56:47 CET 2004 Daniel Veillard - - * tree.c: xmlAttrSerializeTxtContent don't segfault if NULL - is passed. - * test/att7 result//att7*: adding an old regression test - laying around on my laptop - -Thu Feb 19 17:33:36 CET 2004 Daniel Veillard - - * xmlreader.c: fixed xmllint --memory --stream memory consumption - on large file by using xmlParserInputBufferCreateStatic() with - the mmap'ed file - -Thu Feb 19 13:56:53 CET 2004 Daniel Veillard - - * tree.c: some clarification in xmlDocDumpMemory() documentation - * xmllint.c: fixed xmllint --stream --timing to get timings back - -Wed Feb 18 15:20:42 CET 2004 Daniel Veillard - - * parser.c: fixed a problem in push mode when attribute contains - unescaped '>' characters, fixes bug #134566 - * test/att6 result//att6*: added the test to the regression suite - -Tue Feb 17 17:26:31 CET 2004 Daniel Veillard - - * valid.c: removing a non-linear behaviour from ID/IDREF raised - by Petr Pajas. Call xmlListAppend instead of xmlListInsert in - xmlAddRef - -Tue Feb 17 13:27:27 CET 2004 Daniel Veillard - - * python/tests/indexes.py python/tests/reader.py: indicated - encoding of the test file, needed for python 2.3 - -Tue Feb 17 21:08:11 HKT 2004 William Brack - - * xpath.c: fixed problem with numbers having > 19 - fractional places (bug 133921) - -Tue Feb 17 12:47:20 CET 2004 Daniel Veillard - - * xpath.c: applied optimization patch from Petr Pajas - -Tue Feb 17 12:39:08 CET 2004 Daniel Veillard - - * xmlwriter.c include/libxml/xmlwriter.h: applied update - from Alfred Mickautsch and the added patch from Lucas Brasilino - -Sun Feb 15 12:01:30 CET 2004 Daniel Veillard - - * benchmark.png index.html xml.html: updating the benchmark - graph and using a PNG instead of a GIF - * xmlreader.c: updated the TODO - -Sat Feb 14 18:55:40 MST 2004 John Fleck - - * doc/tutorial/xmltutorial.xml - * doc/tutorial/xmltutorial.pdf - * doc/tutorial/*.html - Fix bug in XPath example in the tutorial, thanks to Carlos, whose - last name I don't know, for pointing this out - -Thu Feb 12 16:28:12 CET 2004 Daniel Veillard - - * NEWS configure.in: preparing release of 2.6.6 - * doc/*: updated the docs and rebuilt them - -Thu Feb 12 13:41:16 CET 2004 Daniel Veillard - - * xmlregexp.c: fixing bug #132930 with the provided patch, a bit - suspicious about it but this is fairly contained and regression - tests still passes. - * test/schemas/all1* result/schemas/all1*: added the test to - the regression suite. - -Thu Feb 12 12:54:26 CET 2004 Daniel Veillard - - * parser.c: fixed bug #132575 about finding the end of the - internal subset in push mode. - * test/intsubset.xml result/intsubset.xml* result/noent/intsubset.xml: - added the test to the regression suite - -Wed Feb 11 14:19:31 CET 2004 Daniel Veillard - - * parserInternals.c xmlIO.c encoding.c include/libxml/parser.h - include/libxml/xmlIO.h: added xmlByteConsumed() interface - * doc/*: updated the benchmark rebuilt the docs - * python/tests/Makefile.am python/tests/indexes.py: added a - specific regression test for xmlByteConsumed() - * include/libxml/encoding.h rngparser.c tree.c: small cleanups - -Wed Feb 11 08:13:58 HKT 2004 William Brack - - * encoding.c: applied patch supplied by Christophe Dubach - to fix problem with --with-minimum configuration - (bug 133773) - * nanoftp.c: fixed potential buffer overflow problem, - similar to fix just applied to nanohttp.c. - -Mon Feb 9 18:40:21 CET 2004 Igor Zlatkovic - - * nanohttp.c: fixed the fix for the buffer overflow, thanx - William :-) - -Mon Feb 9 22:37:14 HKT 2004 William Brack - - * acinclude.m4, configure.in: fixed problem concerning - determining SOCKLEN_T as pointed out by Daniel Richard G. - on the mailing list - -Mon Feb 9 15:31:24 CET 2004 Igor Zlatkovic - - * nanohttp.c: fixed buffer overflow reported by Yuuichi Teranishi - -Mon Feb 9 13:45:59 CET 2004 Daniel Veillard - - * xpath.c: small patch from Philip Ludlam to avoid warnings. - -Mon Feb 9 13:41:47 CET 2004 Daniel Veillard - - * encoding.c: applied a small patch from Alfred Mickautsch - to avoid an out of bound error in isolat1ToUTF8() - -Mon Feb 9 13:35:50 CET 2004 Daniel Veillard - - * xinclude.c: remove the warning on the 2001 namespace - * parser.c parserInternals.c xpath.c: remove some warnings - when compiling with MSVC6 - * nanohttp.c: applied a patch when using _WINSOCKAPI_ - -Sun Feb 8 12:09:55 HKT 2004 William Brack - - * xinclude.c: added a small hack to fix interference between - my fixes for bugs 132585 and 132588. - * python/libxml.c: fixed problem with serialization of namespace - reported on the mailing list by Anthony Carrico - -Sat Feb 7 16:53:11 HKT 2004 William Brack - - * xinclude.c: fixed problem with function xmlXIncludeCopyRange - (bug 133686). - -Fri Feb 6 21:03:41 HKT 2004 William Brack - - * xmlwriter.c: fixed problem with return value of - xmlTextWriterWriteIndent() (bug 133297) - -Fri Feb 6 19:07:04 HKT 2004 William Brack - - * xinclude.c: changed coding to output good XIncludes when - one or more bad ones are present (bug 132588) - -Fri Feb 6 17:34:21 HKT 2004 William Brack - - * xinclude.c: corrected handling of empty fallback condition - (bug 132585) - -Fri Feb 6 15:28:36 HKT 2004 William Brack - - * HTMLparser.c: added initialisation for ctxt->vctxt - in HTMLInitParser (bug 133127) - * valid.c: minor cosmetic change (removed ATTRIBUTE_UNUSED - from several function params) - -Tue Feb 3 16:48:57 PST 2004 William Brack - - * xinclude.c: fixed problem regarding freeing of dictionary - when there are errors within an XInclude file (bug 133106). - Thanks to Oleg Paraschenko for the assistance. - -Tue Feb 3 09:53:18 PST 2004 William Brack - - * xmlschemastypes.c: fixed validation of maxLength with no - content using patch submitted by Eric Haszlakiewicz - (bug 133259) - -Tue Feb 3 09:21:09 CET 2004 Igor Zlatkovic - - * include/libxml/xmlreader.h include/libxml/xmlmemory.h: added - calling convention to the public function prototypes (rep by - Cameron Johnson) - * include/libxml/xmlexports.h: fixed mingw+msys compilation - (rep by Mikhail Grushinskiy) - -Mon Feb 2 20:22:18 PST 2004 William Brack - - * xmlwriter.c: enhanced output indenting (bug 133264) - -Mon Feb 2 16:13:33 PST 2004 William Brack - - * xmlreader.c, include/libxml/xmlreader.h: applied patch from - Steve Ball to provide structured error reports. - -Sun Feb 1 01:48:14 PST 2004 William Brack - - * tree.c, include/libxml/tree.h: moved serialization of - attribute text data (xmlSerializeContent) into a separate - routine (xmlSerializeTxtContent) so it can be used by xmlwriter.c - * xmlwriter.c: changed handling of attribute string to use the - routine above (fixed bug 131548) - -Sat Jan 31 08:22:02 MST 2004 John Fleck 2.6, rebuild - html - this time doing it correctly :-) - -Fri Jan 30 20:45:36 MST 2004 John Fleck - - * doc/examples/examples.xml - * doc/examples/*.html - add note that reader examples need libmxl2 > 2.6, rebuild - html - -Thu Jan 29 23:51:48 PST 2004 William Brack - - * xpath.c: added (void *) type override to prevent - warning on Solaris (Bug 132671) - -Wed Jan 28 07:20:37 MST 2004 John Fleck - - * doc/examples/Makefile.am - per Jan. 15 email to the list from oliverst, the index.html - file from this directory wasn't making it into the tarball - -Mon Jan 26 18:01:00 CET 2004 Daniel Veillard - - * acinclude.m4: applied fix from Alexander Winston for a problem - related to automake-1.8 , c.f. #132513 and #129861 - -Mon Jan 26 12:53:11 CET 2004 Daniel Veillard - - * doc/examples/index.py: don't rely on . being on the path for - make tests, should keep Mr. Crozat quiet until next time... - -Sun Jan 25 21:45:03 CET 2004 Daniel Veillard - - * configure.in NEWS doc/*: preparing release 2.6.5, rebuilt the - docs, checked rngparser stuff does not end up in the tarball - -Sun Jan 25 20:59:20 CET 2004 Daniel Veillard - - * python/libxml.c: applied patch from Frederic Peters - fixing the wrong arg order in xpath callback in bug #130980 - -Sun Jan 25 20:52:09 CET 2004 Daniel Veillard - - * xinclude.c: fixing #130453 XInclude element with no href attribute - * relaxng.c rngparser.c include/libxml2/relaxng.h: fully integrating - the compact syntax will require more work, postponed for the - 2.6.5 release. - -Sat Jan 24 09:30:22 CET 2004 Daniel Veillard - - * include/libxml/schemasInternals.h xmlschemas.c: applied patch from - Steve Ball to avoid a double-free. - -Fri Jan 23 14:03:21 CET 2004 Daniel Veillard - - * doc/examples/*: added io1.c an example ox xmlIO usage and io1.res - test result, fixed a awful lot of memory leaks showing up in - testWriter.c, changed the examples and the Makefiles to test - memory leaks. - * xmlwriter.c: fixed a memory leak - * Makefile.am: run the doc/examples regression tests as part of - make tests - * xpath.c include/libxml/xpath.h: added xmlXPathCtxtCompile() to - compile an XPath expression within a context, currently the goal - is to be able to reuse the XSLT stylesheet dictionnary, but this - opens the door to others possible optimizations. - * dict.c include/libxml/dict.h: added xmlDictCreateSub() which allows - to build a new dictionnary based on another read-only dictionnary. - This is needed for XSLT to keep the stylesheet dictionnary read-only - while being able to reuse the strings for the transformation - dictionnary. - * xinclude.c: fixed a dictionnar reference counting problem occuring - when document parsing failed. - * testSAX.c: adding option --repeat for timing 100times the parsing - * doc/* : rebuilt all the docs - -Thu Jan 22 14:17:05 2004 Aleksey Sanin - - * xmlmemory.c: make xmlReallocLoc() accept NULL pointer - -Thu Jan 22 08:26:20 CET 2004 Daniel Veillard - - * xmlschemastypes.c: applied patch from John Belmonte for - normalizedString datatype support. - -Thu Jan 22 10:43:22 HKT 2004 William Brack - - * xpath.c: fixed problem with union when last() is used - in predicate (bug #131971) - * xpointer.c: minor change to comment for doc generation - -Wed Jan 21 17:03:17 CET 2004 Daniel Veillard - - * parser.c: fixed bug #131745 raised by Shaun McCance with the - suggested patch - -Wed Jan 21 10:59:55 CET 2004 Daniel Veillard - - * xmlwriter.c: applied patch from Alfred Mickautsch fixing a memory - leak reported on the list. - -Thu Jan 15 00:48:46 CET 2004 Daniel Veillard - - * python/generator.py python/tests/tstLastError.py: applied - patch from Stephane Bidoul to add enums to the Python bindings. - -Tue Jan 13 21:50:05 CET 2004 Daniel Veillard - - * testHTML.c: another small patch from Mark Vakoc - -Tue Jan 13 21:39:58 CET 2004 Daniel Veillard - - * HTMLparser.c relaxng.c testRelax.c testSchemas.c: applied - patch from Mark Vakoc to not use SAX1 unless necessary. - -Mon Jan 12 17:22:57 CET 2004 Daniel Veillard - - * dict.c parser.c xmlstring.c: some parser optimizations, - xmllint --memory --timing --repeat --stream ./db10000.xml - went down from 16.5 secs to 15.5 secs. - -Thu Jan 8 17:57:50 CET 2004 Daniel Veillard - - * xmlschemas.c: removed a memory leak remaining from the switch - to a dictionnary for string allocations c.f. #130891 - -Thu Jan 8 17:48:46 CET 2004 Daniel Veillard - - * xmlreader.c: fixing some problem if configured --without-xinclude - c.f. #130902 - -Thu Jan 8 17:42:48 CET 2004 Daniel Veillard - - * configure.in: changed AC_OUTPUT() macro to avoid a cygwin problem - c.f. #130896 - -Thu Jan 8 00:36:00 CET 2004 Daniel Veillard - - * win32/Makefile.bcb win32/Makefile.mingw win32/Makefile.msvc: - applying patch from Mark Vakoc for Windows - * doc/catalog.html doc/encoding.html doc/xml.html: applied doc - fixes from Sven Zimmerman - -Tue Jan 6 23:51:46 CET 2004 Daniel Veillard - - * python/libxml2-python-api.xml python/libxml_wrap.h python/types.c - python/tests/Makefile.am python/tests/tstLastError.py: applied - patch from Stephane Bidoul for structured error handling from - python, and the associated test - -Tue Jan 6 23:18:11 HKT 2004 William Brack - - * configure.in: fixed Bug130593 - * xmlwriter.c: fixed compilation warning - -Tue Jan 6 15:15:23 CET 2004 Daniel Veillard - - * include/libxml/xmlstring.h: fixed the comment in the header - * doc/*: rebuilt the docs - -Tue Jan 6 19:40:04 HKT 2004 William Brack - - * encoding.c, parser.c, xmlstring.c, Makefile.am, - include/libxml/Makefile.am, include/libxml/catalog.c, - include/libxml/chvalid.h, include/libxml/encoding.h, - include/libxml/parser.h, include/libxml/relaxng.h, - include/libxml/tree.h, include/libxml/xmlwriter.h, - include/libxml/xmlstring.h: - moved string and UTF8 routines out of parser.c and encoding.c - into a new module xmlstring.c with include file - include/libxml/xmlstring.h mostly using patches from Reid - Spencer. Since xmlChar now defined in xmlstring.h, several - include files needed to have a #include added for safety. - * doc/apibuild.py: added some additional sorting for various - references displayed in the APIxxx.html files. Rebuilt the - docs, and also added new file for xmlstring module. - * configure.in: small addition to help my testing; no effect on - normal usage. - * doc/search.php: added $_GET[query] so that persistent globals - can be disabled (for recent versions of PHP) - -Mon Jan 5 20:47:07 MST 2004 John Fleck - - * doc/tutorial/customfo.xsl - * doc/tutorial/customhtml.xsl - update custom tutorial-building stylesheets in preparation - for tutorial update - -Tue Jan 6 00:10:33 CET 2004 Daniel Veillard - - * rngparser.c: commiting the compact relax ng parser. It's not - completely finished, it's not integrated but I want to save the - current state - -Mon Jan 5 22:22:48 HKT 2004 William Brack - - * doc/apibuild.py, doc/APIconstructors.html, doc/libxml2-refs.xml, - win32/libxml2.def.src: fixed apibuild.py's generation of - "constructors" to be in alphabetical order (instead of previous - random sequence); regenerated resulting files. - -Mon Jan 5 14:03:59 CET 2004 Daniel Veillard - - * xmlwriter.c: applied patch from Lucas Brasilino fixing an indent - problem. - -Sun Jan 4 18:54:29 MST 2004 John Fleck - - * doc/newapi.xsl: change background color of function - declaration to improve readability - * doc/*: rebuild docs with new stylesheet - -Sun Jan 4 22:45:14 HKT 2004 William Brack - - * parser.c, include/libxml/parser.h: added a routine - xmlStrncatNew to create a new string from 2 frags. - * tree.c: added code to check if node content is from - dictionary before trying to change or concatenate. - -Sun Jan 4 08:57:51 HKT 2004 William Brack - - * xmlmemory.c: applied suggestion from Miloslav Trmac (see - Bug 130419) and eliminated xmlInitMemoryDone. More - improvement needed. - * xml2-config.in: added an additional flag (--exec-prefix) to - allow library directory to be different from include directory - (Bug 129558). - -Fri Jan 2 21:22:18 CET 2004 Daniel Veillard - - * error.c: applied patch from Stéphane Bidoul for structured error - reporting. - -Fri Jan 2 21:03:17 CET 2004 Daniel Veillard - - * include/libxml/xmlwriter.h xmlwriter.c: applied the patch from - Lucas Brasilino to add indentation support to xmlWriter - -Fri Jan 2 22:58:29 HKT 2004 William Brack - - * xinclude.c: fixed problem with "recursive" include (fallback - contains another include - Bug 129969) - -Fri Jan 2 11:40:06 CET 2004 Daniel Veillard - - * SAX2.c: found and fixed a bug misallocating some non - blank text node strings from the dictionnary. - * xmlmemory.c: fixed a problem with the memory debug mutex - release. - -Wed Dec 31 22:02:37 HKT 2003 William Brack - - * xinclude.c: fixed problem caused by wrong dictionary - reference count, reported on the list by Christopher - Grayce. - -Wed Dec 31 15:55:55 HKT 2003 William Brack - - * python/generator.py, python/libxml2class.txt: fixed problem - pointed out by Stéphane Bidoul on the list. - * xinclude.c, xpointer.c, xpath.c, include/libxml/xpointer.h: - completed modifications required to fix Bug 129967 (at last!). - Now wait to see how long before further trouble... - -Tue Dec 30 16:26:13 HKT 2003 William Brack - - * parser.c, xmlmemory.c, include/libxml/xmlmemory.h: Fixed - memory leak reported by Dave Beckett - * xmlschemas.c: Removed spurious comment reported on the mailing - list - * xinclude.c, xpath.c, xpointer.c, libxml/include/xpointer.h: - Further work on Bug 129967 concerning xpointer range handling - and range-to function; much better, but still not complete - -Mon Dec 29 18:08:05 CET 2003 Daniel Veillard - - * valid.c: xmlValidateElement could crash for element holding a - namespace declaration but not in a namespace. Oliver Fischer - provided the example. - -Mon Dec 29 11:29:31 CET 2003 Daniel Veillard - - * xmllint.c: issue validation status on stderr, not stdout as suggested - by Pawel Palucha - * result/relaxng/*: this change slightly all the output from RNG - regressions. - -Mon Dec 28 10:47:32 HKT 2003 William Brack - - * xmlschemas.c: edited a couple of comments in accordance with - posting on the mailing list (no logic change) - * xpointer.c: working on Bug 129967, added check for NULL - nodeset to prevent crash. Further work required. - * xpath.c: working on Bug 129967, added code to handle - XPATH_LOCATIONSET in RANGETO code, also added code to - handle it in xmlXPathEvaluatePredicateResult. Further - work required. - -Sat Dec 27 12:32:58 HKT 2003 William Brack - - * xmlschemas.c: added tests for xs:all to assure minOccurs - and maxOccurs <= 1 (Bug 130020) - -Sat Dec 27 09:53:06 HKT 2003 William Brack - - * xmlregexp.c: fixed xmlFAParseCharRange for Unicode ranges - with patch from Charles Bozeman. - -Fri Dec 26 14:03:41 HKT 2003 William Brack - - * xmlregexp.c: fixed problem causing segfault on validation error - condition (reported on mailing list) - -Thu Dec 25 21:16:22 HKT 2003 William Brack - - * xmlschemas.c: fixed missing dictionaries for Memory and Doc - parser contexts (problem reported on mailing list) - * doc/apibuild.py: small change to prevent duplicate lines - on API functions list. It will take effect the next time - the docs are rebuilt. - -Wed Dec 24 12:54:25 CET 2003 Daniel Veillard - - * configure.in NEWS doc/*: updated the docs and prepared a new - release 2.6.4 - -Wed Dec 24 12:07:52 CET 2003 Daniel Veillard - - * legacy.c: remove deprecated warning on startElement() - -Wed Dec 24 12:04:35 CET 2003 Daniel Veillard - - * xinclude.c result/XInclude/nodes2.*: XInclude xpointer support - was broken with the new namespace. Fixes #129932 - -Wed Dec 24 00:29:30 CET 2003 Daniel Veillard - - * xmlschemas.c include/libxml/schemasInternals.h: types might be - redefined in includes, quick fix to allow this but lacks the - equality of the redefinition test. - -Tue Dec 23 15:14:37 HKT 2003 William Brack - - * valid.c: fixed bug concerning validation using external - dtd of element with mutiple namespace declarations - (Bug 129821) - -Tue Dec 23 11:41:42 HKT 2003 William Brack - - * tree.c: inhibited production of "(null):" in xmlGetNodePath - when node has default namespace (Bug 129710) - -Tue Dec 23 09:29:14 HKT 2003 William Brack - - * xpath.c: small enhancement to xmlXPathCmpNodes to assure - document order for attributes is retained (Bug 129331) - -Mon Dec 22 19:06:16 CET 2003 Daniel Veillard - - * parser.c xmlreader.c: change xmlReadFd() xmlCtxtReadFd() - xmlReaderNewFd() xmlReaderForFd(), change those to not close - the file descriptor. Updated the comment, should close #129683 - -Mon Dec 22 00:34:09 CET 2003 Daniel Veillard - - * xinclude.c: fixed a serious problem in XInclude #129021 - -Sun Dec 21 13:59:54 CET 2003 Daniel Veillard - - * parser.c: fixed bug #129489, propagation of parsing flags - in entities. - * parser.c xmlreader.c: improved the comments of parsing options - -Sun Dec 21 18:14:04 HKT 2003 William Brack - - * python/Makefile.am, python/tests/Makefile.am, - doc/Makefile.am: applied fixes to allow build from - 'outside' directory (Bug 129172) - -Sat Dec 20 16:42:07 MST 2003 John Fleck - - * tree.c - add explanation of namespace inheritance when - ns is NULL to xmlNewChild and xmlNewTextChild API doc - -Sat Dec 20 18:17:28 HKT 2003 William Brack - - * include/libxml/xpathInternals.h: undid last change (my - bad). Put necessary fix in libxslt/libexslt instead. - * include/libxml/DOCBparser.h: put test for __GCC__ on - warning directive (Bug 129105) - -Sat Dec 20 10:48:37 HKT 2003 William Brack - - * include/libxml/xpathInternals.h: fixed xmlXPathReturnString - to cater for NULL pointer (bug 129561) - * globals.c: added comment to suppress documentation warning - * doc/apibuild.py: fixed problem which caused last APIchunkxx.html - to be lost. Rebuilt doc/* (including adding APIchunk26.html) - -Fri Dec 19 18:24:02 CET 2003 Daniel Veillard - - * xmlreader.c: trying to fix #129692 xmlTextReaderExpand() when - using an xmlReaderWalker() - -Thu Dec 18 20:10:34 MST 2003 John Fleck - - * tree.c: fix misc. typos in doc comments - * include/libxml/tree.h: elaborate on macro define doc comments - * doc/*: rebuild docs - -Wed Dec 17 16:07:33 CET 2003 Daniel Veillard - - * doc/examples/*: don't call the result files .out but .res as - the Makefiles tend to try generating binaries for .out targets... - -Tue Dec 16 20:53:54 MST 2003 John Fleck - - * doc/html/libxml-pattern.html: - cvs add API docs for new - pattern stuff - -Tue Dec 16 20:40:40 MST 2003 John Fleck - - * tree.c - * doc/*: - Elaborate in documentation discussion of xmlNewChild - and xmlNewTextChild. Thanks to Steve Lenti for pointing - out the usefulness of a more explicit explanation of the - reserved character escaping issue. - -Fri Dec 12 15:55:15 CET 2003 Daniel Veillard - - * xmlcatalog.c: applied patch from Stefan Kost - -Thu Dec 11 15:15:31 CET 2003 Daniel Veillard - - * doc/examples/testWriter.c: applied small fix from Lucas Brasilino - -Thu Dec 11 14:55:22 CET 2003 Igor Zlatkovic - - * win32/Makefile.* win32/configure.js: Added pattern support - -Wed Dec 10 14:11:20 CET 2003 Daniel Veillard - - * configure.in doc/* libxml.spec.in: preparing release of - libxml2-2.6.3, updated and regenerated the docs. - -Wed Dec 10 11:43:33 CET 2003 Daniel Veillard - - * SAX2.c pattern.c: removed some compilation warnings - -Wed Dec 10 11:16:29 CET 2003 Daniel Veillard - - * xmllint.c: fixing bug #119264 xmllint failing to report - serialization errors in some cases. - -Tue Dec 9 23:50:23 CET 2003 Daniel Veillard - - * entities.c: fixed an XML entites content serialization - potentially triggered by XInclude, see #126817 - -Tue Dec 9 16:12:50 CET 2003 Daniel Veillard - - * xmlwriter.c: applied the patch to xmlTextWriterStartPI() - suggested by Daniel Schulman in #128313 - -Tue Dec 9 15:18:32 CET 2003 Daniel Veillard - - * configure.in Makefile.am: another patch from Kenneth Haley - for Mingw, c.f. #128787 - -Tue Dec 9 15:07:09 CET 2003 Daniel Veillard - - * include/libxml/xmlexports.h: applied patch from Kenneth Haley - for compiling on Mingw see #128786 - -Tue Dec 9 14:52:59 CET 2003 Daniel Veillard - - * xmllint.c: some flags were not passed down correctly as - parsing options. Fixes #126806 - -Tue Dec 9 12:29:26 CET 2003 Daniel Veillard - - * xinclude.c xmllint.c xmlreader.c include/libxml/xinclude.h - include/libxml/xmlerror.h: augmented the XInclude API - to be able to pass XML parser flags down to the Inclusion - process. Also resynchronized with the Last Call W3C Working - Draft 10 November 2003 for the xpointer attribute. - * Makefile.am test/XInclude/docs/nodes[23].xml - result/XInclude/*: augmented the tests for the new namespace and - testing the xpointer attribute, changed the way error messages - are tested - * doc/*: regenerated the documentation - -Mon Dec 8 18:38:26 CET 2003 Daniel Veillard - - * error.c: filter warning messages if the global setting blocks them - * xinclude.c xmlreader.c include/libxml/xinclude.h - include/libxml/xmlerror.h: updated the change of namespace at - the XInclude level, raise a warning if the old one is found, - and some cleanup - -Mon Dec 8 13:09:39 CET 2003 Daniel Veillard - - * tree.c: tentative fix for #126117 character reference in - attributes output problem in some cornercase. - -Mon Dec 8 11:08:45 CET 2003 Daniel Veillard - - * python/libxml.py: tried to fix the problems reported in - bug #126735 - * xpath.c SAX2.c error.c parser.c valid.c include/libxml/xmlerror.h: - fixed again some problem trying to use the structured error - handlers, c.f. bug #126735 - * result/VC/ElementValid: tiny change due to the fix - -Sun Dec 7 22:27:31 CET 2003 Daniel Veillard - - * error.c: fixed __xmlRaiseError to use structured error handlers - defined by xmlSetStructuredErrorFunc(), fixes bug #126211 - -Sun Dec 7 20:30:53 CET 2003 Daniel Veillard - - * parser.c: attempt to fix #126211 ... - -Fri Dec 5 17:07:29 CET 2003 Daniel Veillard - - * pattern.c xmlreader.c xmllint.c include/libxml/pattern.h - include/libxml/xmlreader.h: fixed the pattern interfaces - but not yet the parser to handle the namespaces. - * doc/examples/reader3.c doc/*: fixed the example, rebuilt the docs. - -Fri Dec 5 15:49:44 CET 2003 Daniel Veillard - - * globals.c xmlwriter.c doc/apibuild.py include/libxml/globals.h - include/libxml/pattern.h include/libxml/schemasInternals.h - include/libxml/xmlexports.h include/libxml/xmlwriter.h: cleanup - the make rebuild in doc, this include new directive to stop - documentation warnings - * doc/* doc/html/*: rebuilt the docs - * pattern.c xmlreader.c include/libxml/pattern.h - include/libxml/xmlreader.h: adding xmlTextReaderPreservePattern() - to save nodes while scanning the tree with the reader, cleanup - the way element were freed, and xmlTextReaderPreserve() - implementation, the API might change for namespace binding support - when compiling patterns. - * doc/examples/*: added reader3.c exposing the xmlTextReaderPreserve() - -Thu Dec 4 15:10:57 CET 2003 Daniel Veillard - - * python/libxml.py: oops forgot to modify/commit the new code. - -Thu Dec 4 13:29:19 CET 2003 Daniel Veillard - - * python/generator.py python/libxml.c python/libxml_wrap.h: - cleanup the output buffer support to at least get the basic - to work - * python/tests/outbuf.py python/tests/serialize.py: fixes and - cleanup. - * include/libxml/xmlwriter.h: cleanup - -Wed Dec 3 21:38:56 MST 2003 John Fleck - - * include/libxml/xmlversion.h.in - * doc/*: add WITH_TRIO comment so it shows up in the docs, rebuild - docs - -Wed Dec 3 13:10:08 CET 2003 Daniel Veillard - - * config.h.in configure.in xmlregexp.c: fix bug #128401 affecting - regexp quantifiers - -Tue Dec 2 23:29:56 CET 2003 Daniel Veillard - - * pattern.c include/libxml/pattern.h: adding the pattern node - selection code. Inheried in part from libxslt but smaller. - * Makefile.am configure.in include/libxml/xmlversion.h.in: - integrated the pattern module, made it a configure time option - * xmllint.c: added --pattern to test when doing --stream - -Tue Dec 2 11:25:25 CET 2003 Daniel Veillard - - * xmlreader.c: fixed a problem in xmlreader validation when - streaming exposed by reader2 example. - -Mon Dec 1 20:40:51 MST 2003 John Fleck - - * doc/xml.html - * doc/docs.html: - add reference to the Code Examples page to docs.html list - of resources - -Mon Dec 1 12:30:28 CET 2003 Igor Zlatkovic - - * win32/Makefile.bcb win32/configure.js: Applied the BCB patch - from Eric - -Sun Nov 30 21:33:37 MST 2003 John Fleck - - * include/libxml/xinclude.h - * doc/*: Add comments for macro definitions in xinclude.h and - rebuild the docs - -Sun Nov 30 21:06:29 MST 2003 John Fleck - - * doc/docdescr.doc - Updating William's explanation of how to build docs, - reflecting Daniel's new docs build system - -Sat Nov 29 18:38:22 HKT 2003 William Brack - - * xmlmemory.c: enhanced by adding mutex to protect global - structures in a multi-threading environment. This fixed - some random errors on the Threads regression tests. - -Fri Nov 28 21:39:49 MST 2003 John Fleck - - * doc/xml.html doc/python.html: fix tst.py text, which didn't - import sys - -Fri Nov 28 17:28:47 HKT 2003 William Brack - - * encoding.c, include/libxml/encoding.h: Enhanced the handling of - UTF-16, UTF-16LE and UTF-16BE encodings. Now UTF-16 output is - handled internally by default, with proper BOM and UTF-16LE - encoding. Native UTF-16LE and UTF-16BE encoding will not generate - BOM on output, and will be automatically recognized on input. - * test/utf16lebom.xml, test/utf16bebom.xml, result/utf16?ebom*: - added regression tests for above. - -Thu Nov 27 19:25:10 CET 2003 Igor Zlatkovic - - * win32/Makefile.* win32/configure.js: Modified to allow coexistent - build with all compilers. Added C-Runtime option for MSVC. Included - xmlWriter. - * xmlwriter.c: Added IN_LIBXML macro - -Wed Nov 26 21:54:01 CET 2003 Igor Zlatkovic - - * win32/Makefile.bcb: applied patch from Eric - -Wed Nov 26 21:33:14 CET 2003 Daniel Veillard - - * include/libxml/tree.h: stefan on IRC pointed out that XML_GET_LINE - is broken on 2.6.x - -Tue Nov 25 18:39:44 CET 2003 Daniel Veillard - - * entities.c: fixed #127877, never output " in element content - * result/isolat3 result/slashdot16.xml result/noent/isolat3 - result/noent/slashdot16.xml result/valid/REC-xml-19980210.xml - result/valid/index.xml result/valid/xlink.xml: this changes the - output of a few tests - -Tue Nov 25 16:36:21 CET 2003 Daniel Veillard - - * include/libxml/schemasInternals.h include/libxml/xmlerror.h - testSchemas.c xmlschemas.c: added xsd:include support, fixed - testSchemas behaviour when a schemas failed to parse. - * test/schemas/vdv-* result/schemas/vdv-first5_0_0*: added one - test for xsd:include from Eric Van der Vlist - -Tue Nov 25 08:18:12 CET 2003 Daniel Veillard - - * parser.c: swapped the attribute defaulting and attribute checking - parts of parsing a new element start, fixes bug #127772 - * result/valid/127772.* test/valid/127772.xml - test/valid/dtds/127772.dtd: added the example in the regression tests - -Tue Nov 25 08:00:15 CET 2003 Daniel Veillard - - * parser.c: moved xmlCleanupThreads() to the end of xmlCleanupParser() - to avoid bug #127851 - -Mon Nov 24 15:26:21 CET 2003 Daniel Veillard - - * xmlregexp.c: fixing some Negative Character Group and - Character Class Subtraction handling. - -Mon Nov 24 14:01:57 CET 2003 Daniel Veillard - - * xmlregexp.c xmlschemas.c: more XML Schemas fixes based - on Eric van der Vlist examples - * result/schemas/vdv-first4* test/schemas/vdv-first4*: - added regression tests - * doc/examples/Makefile.am doc/examples/index.py: do not - regenerate the index on make all target, but only on - make rebuild to avoid troubles. - -Sat Nov 22 21:35:42 CET 2003 Daniel Veillard - - * xmlschemas.c xmlschemastypes.c include/libxml/xmlerror.h - include/libxml/schemasInternals.h: lot of bug fixes, cleanup, - starting to add proper namespace support too. - * test/schemas/* result/schemas/*: added a number of tests - fixed the result from some regression tests too. - -Fri Nov 21 20:50:59 MST 2003 John Fleck - - * doc/xml.html, docs.html: remove reference to gtk-doc now that - Daniel has removed it, fix link to George's IBM article, other - minor edits - -Fri Nov 21 01:26:00 CET 2003 Daniel Veillard - - * xmlschemas.c: applied patch from Robert Stepanek to start - import os schemas support, cleaned up stuff and the patch. - * test/schemas/import0_0.* result/schemas/import0_0_0*: added test - to regression, fixed a few regressions too. - -Thu Nov 20 22:58:00 CET 2003 Daniel Veillard - - * HTMLparser.c: applied two parsing fixes from James Bursa - -Thu Nov 20 19:20:46 CET 2003 Daniel Veillard - - * doc/examples/*: added two xmlReader examples - * xmlreader.c: cleaned up some bugs in the process - -Thu Nov 20 12:54:30 CET 2003 Daniel Veillard - - * xmlwriter.c include/libxml/xmlwriter.h: applied patch from - Alfred Mickautsch, bugfixes and comments - * doc/examples/*: added his test as the xmlWriter example - * doc/html/ doc/*.html: this resulted in some improvements - * include/libxml/hash.h: fixed an inclusion problem when - wasn't preceeded by - -Wed Nov 19 17:19:35 CET 2003 Daniel Veillard - - * xinclude.c: fix an error message - * doc/examples/*: added tree2 example from Lucas Brasilino - -Wed Nov 19 17:50:47 HKT 2003 William Brack - - * doc/newapi.xsl: improve the sort sequence for page content - * doc/html/*.html: regenerate the web pages - -Wed Nov 19 00:48:56 CET 2003 Daniel Veillard - - * Makefile.am: do not package cvs versioning temp files. - * doc/apibuild.py doc/libxml2-api.xml doc/newapi.xsl: more cleanup, - slightly improved the API xml format, fixed a lot of small - rendering problems - * doc/html/libxml*.html: rebuilt - -Tue Nov 18 21:51:15 CET 2003 Daniel Veillard - - * include/libxml/*.h include/libxml/*.h.in: modified the file - header to add more informations, painful... - * genChRanges.py genUnicode.py: updated to generate said changes - in headers - * doc/apibuild.py: extract headers, add them to libxml2-api.xml - * *.html *.xsl *.xml: updated the stylesheets to flag geprecated - APIs modules. Updated the stylesheets, some cleanups, regenerated - * doc/html/*.html: regenerated added back book1 and libxml-lib.html - -Tue Nov 18 14:43:16 CET 2003 Daniel Veillard - - * doc/Makefile.am doc/*.xsl doc/*.html doc/apibuild.py: cleaned up - the build process to remove all remains from the old gtk-doc - inherited, libxml2-refs.xml is now generated by apibuild.py, the - stylesheets have been improved, and the API*html now generated - are XHTML1 valid too - -Tue Nov 18 14:28:32 HKT 2003 William Brack - - * genChRanges.py, chvalid.c, include/libxml/chvalid.h: minor - enhancement to prevent comment with unreferenced variable. - * threads.c xmlreader.c xmlwriter.c: edited some comments to - improve auto-generation of documentation - * apibuild.py: minor change to an error message - -Mon Nov 17 17:55:51 CET 2003 Daniel Veillard - - * doc/apibuild.py doc/libxml2-api.xml doc/newapi.xsl: more cleanup, - improving navigation - * doc/html/*.html: updated the result - -Mon Nov 17 14:54:38 CET 2003 Daniel Veillard - - * doc/Makefile.am doc/apibuild.py doc/libxml2-api.xml doc/newapi.xsl: - improvement of the stylesheets, fixed a API generation problem, - switched the stylesheet and Makefile to build the HTML output. - * doc/html/*.html: complete update, ditched some old files, might - introduce some breakage... - -Mon Nov 17 12:50:28 CET 2003 Daniel Veillard - - * doc/newapi.xsl: lot of improvements, this starts looking good - enough to be usable. - -Mon Nov 17 00:58:09 CET 2003 Daniel Veillard - - * doc/newapi.xsl: stylesheet to build HTML pages from the - API XML description, Work in Progress - -Sun Nov 16 16:03:24 HKT 2003 William Brack - - * xpath.c: fixed bug 126976 (string != empty nodeset - should be false) - -Sun Nov 16 14:00:08 HKT 2003 William Brack - - * doc/html/*.html: Finally - found the problem with the - page generation (XMLPUBFUN not recognized by gtkdoc). - Re-created the pages using a temporary version of - include/libxml/*.h. - * testOOMlib.c,include/libxml/encoding.h, - include/libxml/schemasInternals.h,include/libxml/valid.h, - include/libxml/xlink.h,include/libxml/xmlwin32version.h, - include/libxml/xmlwin32version.h.in, - include/libxml/xpathInternals.h: minor edit of comments - to help automatic documentation generation - * doc/docdescr.doc: small elaboration - * doc/examples/test1.c,doc/examples/Makefile.am: re-commit - (messed up on last try) - * xmlreader.c: minor change to clear warning. - -Sat Nov 15 19:20:32 CET 2003 Daniel Veillard - - * Copyright: fixed some wording - * libxml.spec.in: make sure doc/examples is packaged - * include/libxml/tree.h valid.c xmlreader.c: fixed the really - annoying problem about xmlRemoveID and xmlReader streaming. - Thing looks fixed now, had to add a doc reference to the - xmlID structure though... - -Sat Nov 15 09:53:36 MST 2003 John Fleck - - * doc/docdescr.doc: added description of man page building - -Sat Nov 15 19:08:22 HKT 2003 William Brack - - * doc/html/libxml-chvalid.html, doc/html/libxml-dict.html, - doc/html/libxml-list.html, doc/html/libxml-testOOMlib.html, - doc/html/libxml-wincecompat, doc/html/winsockcompat.html, - doc/html/libxml-xmlexports.html, doc/html/libxml-xmlversion.html, - doc/html/libxml-xmlwin32version.html, doc/html/libxml-xmlwriter.html: - added missing pages for the website. - -Sat Nov 15 18:23:48 HKT 2003 William Brack - - * doc/Makefile.am doc/*.html doc/html/*.html: rebuilt the - generated pages (again), manually restored doc/html/index.html - and manually edited generated file doc/gnome-xml.xml to put - in appropriate headings. - * doc/docdescr.doc: new file to describe details of the - document generation (helps my memory for the next time) - * genChRanges.py,chvalid.c,include/libxml/chvalid.h: minor - enhancement to please the automatic documentation generation. - -Fri Nov 14 23:47:31 HKT 2003 William Brack - - * catalog.c,relaxng.c,testAutomata.c,xpointer.c,genChRanges.py, - chvalid.c,include/libxml/chvalid.h,doc/examples/test1.c: - minor error cleanup for gcc-3.3.[12] compilation warnings. - -Fri Nov 14 15:08:13 HKT 2003 William Brack - - * tree.c: minor changes to some comments - * doc/*.html: rebuilt the generated HTML pages for changes - from jfleck (bug 126945) - -Thu Nov 13 12:44:14 CET 2003 Daniel Veillard - - * doc/examples/*: added Dodji's example, added output handling - -Thu Nov 13 11:35:35 CET 2003 Daniel Veillard - - * doc/examples/*: added Aleksey XPath example, fixed bugs - in the indexer - -Wed Nov 12 23:48:26 CET 2003 Daniel Veillard - - * doc/*: integrating the examples in the navigation menus - * doc/examples/*: added make tests, updated the navigation, - added a new test, cleanups, updates. - -Wed Nov 12 17:50:36 CET 2003 Daniel Veillard - - * doc/*.html: rebuilt the generated HTML pages - * doc/examples/*: updated the stylesheets, added a synopsis, - Makefile.am is now generated by index.py - -Wed Nov 12 01:38:16 CET 2003 Daniel Veillard - - * doc/site.xsl doc/examples/Makefile.am doc/examples/index.html: - added autogeneration of a web page for the examples - * doc/examples/example1.c doc/examples/.cvsignore - doc/examples/examples.xml doc/examples/index.py: updated the - informations extracted, improved the format and indexing. - -Tue Nov 11 22:08:59 CET 2003 Daniel Veillard - - * check-xinclude-test-suite.py: less verbose on difference - * libxml.spec.in: cleanup - * parser.c: fixed xmlCleanupParser() doc - * doc/Makefile.am doc/apibuild.py doc/libxml2-api.xml - doc/examples/Makefile.am doc/examples/example1.c - doc/examples/examples.xml doc/examples/index.py - doc/examples/test1.xml: work on adding C examples and - generating automated information about those. examples.xml - is autogenerated describing the examples. - * example/Makefile.am: cleanup - -Mon Nov 10 23:47:03 HKT 2003 William Brack - - * genUnicode.py, xmlunicode.c, include/libxml/xmlunicode.h: - fixed missing '-' in block names, enhanced the hack for - ABI aliasing. - -Sun Nov 9 20:28:21 HKT 2003 William Brack - - * genUnicode.py, xmlunicode.c, include/libxml/xmlunicode.h, - python/libxml2class.txt: enhanced for range checking, - updated to Unicode version 4.0.1 (API docs also updated) - * python/generator.py: minor change to fix a warning - -Wed Nov 5 23:46:36 CET 2003 Daniel Veillard - - * Makefile.am: apply fix from Karl Eichwalder for script path - -Wed Nov 5 10:49:20 CET 2003 Daniel Veillard - - * win32/configure.js: applied patch from Mark Vakoc to simplify - his work from CVS checkouts. - -Tue Nov 4 21:16:47 MST 2003 John Fleck - - * doc/xmlreader.html: minor cleanups - -Tue Nov 4 15:52:28 PST 2003 William Brack - - * include/libxml/xmlversion.h.in: changed macro ATTRIBUTE_UNUSED - for gcc so that, if undefined, it's defined as - __attribute__((unused)) - -Tue Nov 4 15:28:07 PST 2003 William Brack - - * python/generator.py: small enhancement to assure ATTRIBUTE_UNUSED - appears after the variable declaration. - * valid.c: trivial change to eliminate a warning message - -Tue Nov 4 11:24:04 CET 2003 Daniel Veillard - - * configure.in NEWS doc/*: preparing release 2.6.2, updated and - rebuilt the docs - -Tue Nov 4 09:38:46 CET 2003 Daniel Veillard - - * xmllint.c: change --html to make sure we use the HTML serialization - rule by default when HTML parser is used, add --xmlout to allow to - force the XML serializer on HTML. - * HTMLtree.c: ugly tweak to fix the output on

element and - solve #125093 - * result/HTML/*: this changes the output of some tests - -Mon Nov 3 17:51:28 CET 2003 Daniel Veillard - - * xinclude.c: fixed bug #125812, about XPointer in XInclude - failing but not returning an error. - -Mon Nov 3 17:18:22 CET 2003 Daniel Veillard - - * valid.c: fixed bug #125811 related to DTD post validation - where the DTD doesn't pertain to a document. - -Mon Nov 3 15:25:58 CET 2003 Daniel Veillard - - * parser.c xmlIO.c include/libxml/parserInternals.h: implemented - the XML_PARSE_NONET parser option. - * xmllint.c: converted xmllint.c to use the option instead of - relying on the global resolver variable. - -Mon Nov 3 13:26:32 CET 2003 Daniel Veillard - - * xinclude.c xmlreader.c include/libxml/xinclude.h: adding XInclude - support to the reader interface. Lot of testing of the walker, - various bug fixes. - * xmllint.c: added --walker and made sure --xinclude --stream --debug - works as expected - * Makefile.am result/dtd11.rdr result/ent6.rdr test/dtd11 test/ent6 - result/XInclude/*.rdr: added regression tests for the walker and - XInclude xmlReader support, had to slightly change a couple of tests - because the walker can't distinguish from - -Sat Nov 1 17:42:27 CET 2003 Daniel Veillard - - * tree.c nanohttp.c threads.c: second BeOS patch from - Marcin 'Shard' Konicki - -Fri Oct 31 15:35:20 CET 2003 Daniel Veillard - - * parser.c: always generate line numbers - -Fri Oct 31 11:53:46 CET 2003 Daniel Veillard - - * parser.c: fixed another regression introduced in fixing #125823 - -Fri Oct 31 11:33:18 CET 2003 Daniel Veillard - - * python/libxml.c: previous fix for #124044 was broken, correct - fix provided. - * HTMLparser.c parser.c parserInternals.c xmlIO.c: fix xmlStopParser() - and the error handlers to address #125877 - -Thu Oct 30 23:10:46 CET 2003 Daniel Veillard - - * parser.c: side effect of #123105 patch, namespace resolution - would fail when defined in internal entities, fixes #125823 - -Thu Oct 30 14:10:42 CET 2003 Daniel Veillard - - * python/libxml.c: be more defensive in the xmlReader python bindings - fixing bug #124044 - -Thu Oct 30 11:14:31 CET 2003 Daniel Veillard - - * valid.c: the a-posteriori DTD validation code was not validating - the namespace declarations, this fixes #124110 - -Wed Oct 29 14:13:03 PDT 2003 William Brack - - * xmlIO.c: enhanced to bypass compression detection code - when input file is stdin (bug 125801) - -Wed Oct 29 18:21:00 CET 2003 Daniel Veillard - - * xmlIO.c: fix needed when HTTP is not compiled in by Mark Vakoc - -Wed Oct 29 18:05:53 CET 2003 Daniel Veillard - - * xpath.c: more fixes about unregistering objects - * include/libxml/relaxng.h: applied patch from Mark Vakoc - missing _cplusplus processing clause - -Wed Oct 29 07:49:52 2003 Aleksey Sanin - - * include/libxml/parser.h parser.c: added xmlStrVPrintf function - -Wed Oct 29 14:37:40 CET 2003 Daniel Veillard - - * nanoftp.c nanohttp.c testThreads.c threads.c: applied patch from - Marcin 'Shard' Konicki to provide BeOS thread support. - -Wed Oct 29 14:20:14 CET 2003 Daniel Veillard - - * xmlschemas.c include/libxml/xmlschemas.h: applied patch - from Steve Ball to make a schema parser from a preparsed document. - -Wed Oct 29 13:52:25 CET 2003 Daniel Veillard - - * tree.c: applied a couple of patches from Mark Lilback about text - nodes coalescing - -Wed Oct 29 12:16:52 CET 2003 Daniel Veillard - - * xpath.c: change suggested by Anthony Carrico when unregistering - a namespace prefix to a context - * hash.c: be more careful about calling callbacks with NULL payloads. - -Wed Oct 29 00:04:26 CET 2003 Daniel Veillard - - * configure.in NEWS doc/*: preparing release 2.6.1, updated and - regenerated docs and APIs - * parser.c: cleanup and last change to fix #123105 - -Tue Oct 28 23:02:29 CET 2003 Daniel Veillard - - * HTMLparser.c: Fix #124907 by simply backporting the same - fix as for the XML parser - * result/HTML/doc3.htm.err: change to ID detecting modified one - test result. - -Tue Oct 28 22:28:50 CET 2003 Daniel Veillard - - * parser.c include/libxml/parser.h: included a new function - to reuse a Push parser context, based on Graham Bennett original - code - * valid.c: in HTML, a name in an input is not an ID - * TODO: bug list update - -Tue Oct 28 19:54:37 CET 2003 Daniel Veillard - - * xpath.c: applied patch from nico@xtradyne.com for #125030 - -Tue Oct 28 16:42:16 CET 2003 Daniel Veillard - - * Makefile.am: cleanup - * error.c valid.c include/libxml/xmlerror.h: fixing bug #125653 - sometimes the error handlers can get a parser context on DTD - errors, and sometime they don't. So be very careful when trying - to grab those informations. - -Tue Oct 28 15:26:18 CET 2003 Daniel Veillard - - * tree.c: applied patch from Kasimier Buchcik which fixes a - problem in xmlSearchNs introduced in 2.6.0 - -Tue Oct 28 14:57:03 CET 2003 Daniel Veillard - - * parser.c: fixed #123263, the encoding is mandatory in a textdecl. - -Tue Oct 28 13:48:52 CET 2003 Daniel Veillard - - * tree.c: fix bug #125047 about serializing when finding a - document fragment node. - -Mon Oct 27 11:11:29 EST 2003 Daniel Veillard - - * testSAX.c: fix bug #125592 need a NULL check - * include/libxml/chvalid.h: rename a parameter - -Mon Oct 27 09:43:48 EST 2003 Daniel Veillard - - * parser.c: applied patch from #123105 about defaulted attributes - from element coming from an entity - -Mon Oct 27 21:12:27 HKT 2003 William Brack - - * xmllint.c: fixed warning message from IRIX (bug 125182) - * python/libxml.py: removed tabs, replaced with spaces - (bug 125572) - -Mon Oct 27 06:17:30 EST 2003 Daniel Veillard - - * libxml.h parserInternals.c xmlIO.c: make sure we report errors - if xmlNewInputFromFile() fails. - * xmlreader.c: avoid using _private for the node or document - elements. - -Sat Oct 25 17:33:59 CEST 2003 Igor Zlatkovic - - * win32/configure.js: added declaration for verMicroSuffix - -Fri Oct 24 23:08:17 CEST 2003 Daniel Veillard - - * libxml.m4: applied patch from Patrick Welche provided in - bug #125432 , future proofing the .m4 file. - * parser.c: resetting the context should also reset the error - * TODO: problem of conformance w.r.t. E20 was raised in the - XML Core telconf and libxml2 isn't conformant there. - -Wed Oct 22 14:33:05 CEST 2003 Daniel Veillard - - * xmlwriter.c: applied patch from Alfred Mickautsch fixing #125180 - -Wed Oct 22 10:50:31 CEST 2003 Daniel Veillard - - * chvalid.c genChRanges.py: Stephane Bidoul pointed out another - small glitch missing a const - -Wed Oct 22 10:43:21 CEST 2003 Daniel Veillard - - * chvalid.c genChRanges.py: Stephane Bidoul pointed out that - it doesn't define IN_LIBXML - -Tue Oct 21 21:14:55 CEST 2003 Daniel Veillard - - * win32/Makefile.mingw: typo pointed out by Stephane Bidoul - -Tue Oct 21 11:26:36 CEST 2003 Daniel Veillard - - * win32/Makefile.bcb win32/Makefile.mingw win32/Makefile.msvc - win32/configure.js: set of Win32 patches for 2.6.0 by Joachim Bauch - -Tue Oct 21 02:07:22 CEST 2003 Daniel Veillard - - * tree.c: last minute patch from Eric Zurcher making it into 2.6.0 - -Tue Oct 21 02:03:03 CEST 2003 Daniel Veillard - - * configure.in NEWS doc/libxml2.xsa: preparing libxml2-2.6.0 - * doc/*: updated and regenerated the docs and API - -Tue Oct 21 01:01:55 CEST 2003 Daniel Veillard - - * SAX2.c error.c tree.c: moved the line number to their proper - field in elements now. - -Tue Oct 21 00:28:20 CEST 2003 Daniel Veillard - - * configure.in xmlwriter.c Makefile.am include/libxml/xmlwriter.h - include/libxml/Makefile.am include/libxml/xmlversion.h.in: - added the xmlWriter module contributed by Alfred Mickautsch - * include/libxml/tree.h: added room for line and extra information - * xmlreader.c python/tests/reader6.py: bugfixing some problem some - of them introduced in September - * win32/libxml2.def.src doc/libxml2-api.xml: regenerated the API - -Mon Oct 20 19:02:53 CEST 2003 Daniel Veillard - - * Makefile.am configure.in xmldwalk.c xmlreader.c - include/libxml/Makefile.am include/libxml/xmldwalk.h - include/libxml/xmlversion.h.in: removing xmldwalk module - since it got merged with the xmlreader. - * parser.c: cleanup - * win32/libxml2.def.src python/libxml2class.txt doc/libxml2-api.xml: - rebuilt the API - * python/tests/Makefile.am python/tests/reader7.py - python/tests/walker.py: adding regression testing for the - new xmlreader APIs, new APIs for reader creation, including - makeing reader "walker" operating on preparsed document trees. - -Sun Oct 20 22:37:03 HKT 2003 William Brack - - * entities.c, valid.c: fixed problem reported on the mailing - list by Melvyn Sopacua - wrong argument order on functions - called through xmlHashScan. - -Sun Oct 19 23:57:45 CEST 2003 Daniel Veillard - - * valid.c xmlIO.c: fixes for compiling using --with-minimum - -Sun Oct 19 23:46:04 CEST 2003 Daniel Veillard - - * tree.c: cleanup xmlNodeGetContent() reusing xmlNodeBufGetContent(), - tested it through the xslt regression suite. - -Sun Oct 19 22:42:16 CEST 2003 Daniel Veillard - - * tree.c include/libxml/tree.h: adding xmlNodeBufGetContent() - allowing to grab the content without forcing allocations. - * python/libxml2class.txt doc/libxml2-api.xml: rebuilt the API - * xpath.c xmldwalk.c: removed a couple of comment errors. - -Sun Oct 19 16:39:36 CEST 2003 Daniel Veillard - - * parser.c: applied patch from Chris Anderson to change back - memcmp with CMPx() - -Sun Oct 19 16:24:19 CEST 2003 Daniel Veillard - - * HTMLparser.c: fixed to not send NULL to %s printing - * python/tests/error.py result/HTML/doc3.htm.err - result/HTML/test3.html.err result/HTML/wired.html.err - result/valid/t8.xml.err result/valid/t8a.xml.err: cleaning - up some of the regression tests error - -Sun Oct 19 15:31:43 CEST 2003 Daniel Veillard - - * include/libxml/nanohttp.h include/libxml/parserInternals.h - include/libxml/xmlIO.h nanohttp.c parserInternals.c xmlIO.c: - Fixed the HTTP<->parser interraction, which should fix 2 long - standing bugs #104790 and #124054 , this also fix the fact that - HTTP error code (> 400) should not generate data, we usually - don't want to parse the HTML error information instead of the - resource looked at. - -Sun Oct 19 19:20:48 HKT 2003 William Brack - - * doc/Makefile.am: enhanced the installation of tutorial files - to avoid installing CVS subdirectories (bug 122943) - -Sun Oct 19 17:33:27 HKT 2003 William Brack - - * xmlIO.c: fixed segfault when input file not present - * tree.c: changed output formatting of XML_CDATA_SECTION - (bug 120917) - -Sun Oct 19 00:15:38 HKT 2003 William Brack - - * include/libxml/parserInternals.h HTMLparser.c HTMLtree.c - SAX2.c catalog.c debugXML.c entities.c parser.c relaxng.c - testSAX.c tree.c valid.c xmlschemas.c xmlschemastypes.c - xpath.c: Changed all (?) occurences where validation macros - (IS_xxx) had single-byte arguments to use IS_xxx_CH instead - (e.g. IS_BLANK changed to IS_BLANK_CH). This gets rid of - many warning messages on certain platforms, and also high- - lights places in the library which may need to be enhanced - for proper UTF8 handling. - -Sat Oct 18 20:34:18 HKT 2003 William Brack - - * genChRanges.py, chvalid.c, include/libxml/chvalid.h, - doc/apibuild.py: enhanced to include enough comments to - make the api doc generation happy. - -Sat Oct 18 07:28:25 EDT 2003 Daniel Veillard - - * nanohttp.c xmlIO.c include/libxml/nanohttp.h: starting work - to fix the HTTP/XML parser integration. - -Sat Oct 18 11:04:32 CEST 2003 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h: added new APIs - for creating reader from sources or reusing a reader with - a new source, like the xmlReadxx and xmlCtxtReadxxx - * win32/libxml2.def.src doc/libxml2-api.xml doc/apibuild.py - doc/Makefile.am: regenerated the APIs - * doc/xml.html: applied a patch from Stefan Kost for namesapce docs - -Sat Oct 18 12:46:02 HKT 2003 William Brack - - * genChRanges.py, chvalid.c, include/libxml/chvalid.h, - include/libxml/parserInternals.h: enhanced macros to avoid - breaking ABI from previous versions. - * catalog.c, parser.c, tree.c: modified to use IS_* macros - defined in parserInternals.h. Makes maintenance much easier. - * testHTML.c, testSAX.c, python/libxml.c: minor fixes to avoid - compilation warnings - * configuration.in: fixed pushHTML test error; enhanced for - better devel (me) testing - -Fri Oct 17 14:38:54 CEST 2003 Daniel Veillard - - * legacy.c: remove the warning for startDocument(), as it is used by - glade (or glade-python) - * parser.c relaxng.c xmlschemastypes.c: fixed an assorted set of - invalid accesses found by running some Python based regression - tests under valgrind. There is still a few leaks reported by the - relaxng regressions which need some attention. - * doc/Makefile.am: fixed a make install problem c.f. #124539 - * include/libxml/parserInternals.h: addition of xmlParserMaxDepth - patch from crutcher - -Wed Oct 15 12:47:33 CEST 2003 Daniel Veillard - - * parser.c: Marc Liyanage pointed out that xmlCleanupParser() - was missing xmlCleanupInputCallbacks and xmlCleanupOutputCallbacks - calls. - -Wed Oct 15 10:16:47 CEST 2003 Daniel Veillard - - * vms/build_libxml.com trionan.c: VMS patch from Craig A. Berry - -Mon Oct 13 21:46:25 CEST 2003 Daniel Veillard - - * Makefile.am: small fix from Bjorn Reese - -Mon Oct 13 15:59:25 CEST 2003 Daniel Veillard - - * valid.c: fix a call missing arguments - -Sun Oct 12 18:42:18 HKT 2003 William Brack - - * genChRanges.py, chvalid.c, include/libxml/chvalid.h: fixed - a bug in the range search; enhanced range generation (inline code - if a small number of intervals); enhanced the readability of the - output files. - -Sun Oct 12 00:52:14 CEST 2003 Daniel Veillard - - * chvalid.def chvalid.c include/libxml/chvalid.h: rebuilt - chvalid.def from scratch based on XML 2nd edition REC - and regenerated the code. - -Sat Oct 11 22:54:13 CEST 2003 Daniel Veillard - - * check-xml-test-suite.py: removed some annoying warnings - * chvalid.def chvalid.c include/libxml/chvalid.h: fixed a bug - in the PubidChars definition, regenerated, there is still - a bug left somewhere - * genChRanges.py: save the header directly in include/libxml/ - * configure.in: I generated a 2.6.0beta6 earlier today - -Sat Oct 11 23:32:47 HKT 2003 William Brack - - * fixed small error on previous commit (chvalid.h in - base dir instead of include directory) - -Sat Oct 11 23:11:22 HKT 2003 William Brack - - * genChRange.py, chvalid.def, chvalid.c, include/libxml/chvalid.h: - new files for a different method for doing range validation - of character data. - * Makefile.am, parserInternals.c, include/libxml/Makefile.am, - include/libxml/parserInternals.h: modified for new range method. - * catalog.c: small enhance for warning message (using one - of the new range routines) - -Sat Oct 11 13:24:57 CEST 2003 Daniel Veillard - - * valid.c include/libxml/valid.h: adding an serror field to - the validation context breaks the ABI for the xmlParserCtxt - structure since it's embedded by content and not by reference - -Sat Oct 11 12:46:49 CEST 2003 Daniel Veillard - - * configure.in: patch from Mike Hommey - * threads.c: applied Windows patch from Jesse Pelton and Stephane - Bidoul - * parser.c: fix the potentially nasty access to ctxt->serror - without checking first that the SAX block is version 2 - -Fri Oct 10 21:34:01 CEST 2003 Daniel Veillard - - * SAX2.c: fixed a nasty bug with interning some text strings - * configure.in: prepare for beta5 of 2.6.0 - * libxml.h nanoftp.c nanohttp.c xmlIO.c include/libxml/xmlerror.h: - better error handling for I/O and converted FTP and HTTP - * parser.c: fixed another bug - -Fri Oct 10 16:45:20 CEST 2003 Daniel Veillard - - * SAX2.c: fixed uninitialized new field. - * result/VC/OneID2 result/relaxng/*.err: fixed a typo updating - all messages - -Fri Oct 10 16:19:17 CEST 2003 Daniel Veillard - - * include/libxml/tree.h: make room in Doc, Element, Attributes - for PSVI type informations. - -Fri Oct 10 16:08:02 CEST 2003 Daniel Veillard - - * HTMLparser.c c14n.c catalog.c error.c globals.c parser.c - parserInternals.c relaxng.c valid.c xinclude.c xmlIO.c xmlregexp.c - xmlschemas.c xpath.c xpointer.c include/libxml/globals.h - include/libxml/parser.h include/libxml/valid.h - include/libxml/xmlerror.h: Setting up the framework for structured - error reporting, touches a lot of modules, but little code now - the error handling trail has been cleaned up. - -Fri Oct 10 14:29:42 CEST 2003 Daniel Veillard - - * c14n.c include/libxml/xmlerror.h: converted the C14N module too - -Fri Oct 10 13:40:51 CEST 2003 Daniel Veillard - - * xpath.c: cleanup - * xpointer.c include/libxml/xmlerror.h: migrated XPointer module - to the new error mechanism - -Fri Oct 10 12:49:53 CEST 2003 Daniel Veillard - - * error.c xmlschemas.c: a bit of cleanup - * result/schemas/*.err: updated with the new result strings - -Fri Oct 10 03:58:39 PDT 2003 William Brack - - * xpath.c: fixed bug 124061 - -Fri Oct 10 02:47:22 CEST 2003 Daniel Veillard - - * Makefile.am: cleanup - * encoding.c: fix a funny typo - * error.c xmlschemas.c xmlschemastypes.c include/libxml/xmlerror.h: - converted the Schemas code to the new error handling. PITA, - still need to check output from regression tests. - -Thu Oct 9 15:13:53 CEST 2003 Daniel Veillard - - * HTMLtree.c include/libxml/xmlerror.h: converted too - * tree.c: small cleanup - -Thu Oct 9 13:44:57 CEST 2003 Daniel Veillard - - * xinclude.c: comment fix - * catalog.c include/libxml/xmlerror.h: migrating the catalog code - to the new infrastructure - -Thu Oct 9 00:36:03 CEST 2003 Daniel Veillard - - * xmlIO.c: final error handling cleanup - * xinclude.c error.c: converted XInclude to the new error handling - * include/libxml/xmlerror.h: added XInclude errors - -Wed Oct 8 23:31:23 CEST 2003 Daniel Veillard - - * parser.c: bug in compression saving was crashing galeon - reported by teuf - -Wed Oct 8 21:18:12 CEST 2003 Daniel Veillard - - * error.c tree.c xmlIO.c xmllint.c: more cleanup through the - I/O error path - -Wed Oct 8 20:57:27 CEST 2003 Daniel Veillard - - * xmlIO.c: better handling of error cases - -Wed Oct 8 13:51:14 CEST 2003 Daniel Veillard - - * xmlIO.c xmllint.c include/libxml/xmlerror.h: first pass at - cleaning up error handling in the I/O module. - -Wed Oct 8 10:52:05 CEST 2003 Daniel Veillard - - * xmlregexp.c include/libxml/xmlerror.h: error handling - cleanup of the Regexp module. - -Wed Oct 8 01:09:05 CEST 2003 Daniel Veillard - - * tree.c: converting the tree module too - * error.c include/libxml/xmlerror.h: created a simpler internal - error reporting function. - -Tue Oct 7 23:19:39 CEST 2003 Daniel Veillard - - * error.c include/libxml/xmlerror.h include/libxml/xpath.h - include/libxml/xpathInternals.h xpath.c: cleaning up XPath - error reporting that time. - * threads.c: applied the two patches for TLS threads - on Windows from Jesse Pelton - * parser.c: tiny safety patch for xmlStrPrintf() make sure the - return is always zero terminated. Should also help detecting - passing wrong buffer size easilly. - * result/VC/* result/valid/rss.xml.err result/valid/xlink.xml.err: - updated the results to follow the errors string generated by - last commit. - -Tue Oct 7 14:16:45 CEST 2003 Daniel Veillard - - * relaxng.c include/libxml/xmlerror.h: last cleanup of error - handling in the Relax-NG module. - -Tue Oct 7 13:30:39 CEST 2003 Daniel Veillard - - * error.c relaxng.c include/libxml/xmlerror.h: switched Relax-NG - module to teh new error reporting. Better default report, adds - the element associated if found, context and node are included - in the xmlError - * python/tests/reader2.py: the error messages changed. - * result/relaxng/*: error message changed too. - -Mon Oct 6 10:46:35 CEST 2003 Daniel Veillard - - * win32/Makefile.bcb win32/Makefile.mingw win32/Makefile.msvc - win32/configure.js: applied patch from Stéphane Bidoul to - fix the compilation of 2.6.0 code on Win32 - -Mon Oct 6 10:16:30 CEST 2003 Daniel Veillard - - * check-xml-test-suite.py: fixing the script - * parser.c: replace sequences of RAW && NXT(.) == '.' with - memcmp calls, seems to not break conformance, slightly inflate - the size of the gcc generated code though. - -Sun Oct 5 23:30:48 CEST 2003 Daniel Veillard - - * parserInternals.c parser.c valid.c include/libxml/parserInternals.h: - more cleanup of error handling in parserInternals, sharing the - routine for memory errors. - -Sun Oct 5 15:49:14 CEST 2003 Daniel Veillard - - * HTMLparser.c Makefile.am legacy.c parser.c parserInternals.c - include/libxml/xmlerror.h: more code cleanup, especially around - error messages, the HTML parser has now been upgraded to the new - handling. - * result/HTML/*: a few changes in the resulting error messages - -Sat Oct 4 23:06:41 CEST 2003 Daniel Veillard - - * parser.c include/libxml/xmlerror.h: more error/warning - handling cleanups, the XML parser module should be okay now. - -Sat Oct 4 01:58:27 CEST 2003 Daniel Veillard - - * Makefile.am configure.in xmldwalk.c include/libxml/Makefile.am - include/libxml/xmldwalk.h include/libxml/xmlversion.h.in: - integrated the xmlDocWalker API given by Alfred Mickautsch, - and providing an xmlReader like API but working on a xmlDocPtr. - -Sat Oct 4 00:18:29 CEST 2003 Daniel Veillard - - * Makefile.am: more cleanup in make tests - * error.c valid.c parser.c include/libxml/xmlerror.h: more work - in the transition to the new error reporting strategy. - * python/tests/reader2.py result/VC/* result/valid/*: - few changes in the strings generated by the validation output - -Fri Oct 3 00:19:02 CEST 2003 Daniel Veillard - - * Makefile.am: changed 'make tests' to use a concise output, - scrolling to see where thing broke wasn't pleasant - * configure.in: some beta4 preparation, but not ready yet - * error.c globals.c include/libxml/globals.h include/libxml/xmlerror.h: - new error handling code, last error informations are stored - in the parsing context or a global variable, new APIs to - handle the xmlErrorPtr type. - * parser.c parserInternals.c valid.c : started migrating to the - new error handling code, it's a royal pain. - * include/libxml/parser.h include/libxml/parserInternals.h: - moved the definition of xmlNewParserCtxt() - * parser.c: small potential buffer access problem in push code - provided by Justin Fletcher - * result/*.sax result/VC/PENesting* result/namespaces/* - result/valid/*.err: some error messages were sligthly changed. - -Thu Oct 2 13:01:13 2003 Aleksey Sanin - - * include/libxml/parser.h parser.c: introduced xmlStrPrintf - function (wrapper around snprintf) - -Wed Oct 1 21:12:06 CEST 2003 Daniel Veillard - - * entities.c: Fix error on output of high codepoint charref like - 􏿿 , reported by Eric Hanchrow - -Wed Oct 1 14:20:10 CEST 2003 Daniel Veillard - - * DOCBparser.c include/libxml/DOCBparser.h: let's see how much - of a pain murrayc is really gonna be. - -Wed Oct 1 11:03:40 CEST 2003 Daniel Veillard - - * xmlreader.c: Applied fix for bug #123481 reported by Peter Derr - -Tue Sep 30 15:34:31 CEST 2003 Daniel Veillard - - * entities.c legacy.c parser.c: made the predefined entities - static predefined structures to avoid the work, memory and - hazards associated to initialization/cleanup. - -Tue Sep 30 14:30:47 CEST 2003 Daniel Veillard - - * HTMLparser.c Makefile.am configure.in legacy.c parser.c - parserInternals.c testHTML.c xmllint.c include/libxml/HTMLparser.h - include/libxml/parser.h include/libxml/parserInternals.h - include/libxml/xmlversion.h.in: added a new configure - option --with-push, some cleanups, chased code size anomalies. - Now a library configured --with-minimum is around 150KB, - sounds good enough. - -Tue Sep 30 12:31:00 AEST 2003 Malcolm Tredinnick - - * libxml-2.0-uninstalled.pc.in: New file for building against - uninstalled libxml2 builds. - * configure.in, Makefile.am: Support the *-uninstalled.pc file. - * .cvsignore: Ignore the new generated *.pc file. - -Tue Sep 30 02:38:16 CEST 2003 Daniel Veillard - - * Makefile.am SAX.c SAX2.c configure.in globals.c parser.c - parserInternals.c testReader.c testSAX.c xmlIO.c xmllint.c - xmlreader.c example/gjobread.c include/libxml/xmlversion.h.in: - added 2 new configure option: --with-reader --with-sax1 - to allow removing the reader or non-xmlReadxxx() interfaces. - -Mon Sep 29 19:58:26 CEST 2003 Daniel Veillard - - * configure.in entities.c tree.c valid.c xmllint.c - include/libxml/tree.h include/libxml/xmlversion.h.in: - Adding a configure option to remove tree manipulation - code which is not strictly needed by the parser. - -Mon Sep 29 15:23:41 CEST 2003 Daniel Veillard - - * nanoftp.c nanohttp.c: last finishing touch to the BeOS - patch from Marcin 'Shard' Konicki - -Mon Sep 29 15:15:08 CEST 2003 Daniel Veillard - - * HTMLtree.c SAX2.c c14n.c catalog.c configure.in debugXML.c - encoding.c entities.c nanoftp.c nanohttp.c parser.c relaxng.c - testAutomata.c testC14N.c testHTML.c testRegexp.c testRelax.c - testSchemas.c testXPath.c threads.c tree.c valid.c xmlIO.c - xmlcatalog.c xmllint.c xmlmemory.c xmlreader.c xmlschemas.c - example/gjobread.c include/libxml/HTMLtree.h include/libxml/c14n.h - include/libxml/catalog.h include/libxml/debugXML.h - include/libxml/entities.h include/libxml/nanohttp.h - include/libxml/relaxng.h include/libxml/tree.h - include/libxml/valid.h include/libxml/xmlIO.h - include/libxml/xmlschemas.h include/libxml/xmlversion.h.in - include/libxml/xpathInternals.h python/libxml.c: - Okay this is scary but it is just adding a configure option - to disable output, this touches most of the files. - -Mon Sep 29 12:53:56 CEST 2003 Daniel Veillard - - * xmlmemory.c: better fix, avoids breaking the python bindings - -Mon Sep 29 11:21:33 CEST 2003 Daniel Veillard - - * xmlmemory.c: fix a compilation problem when configuring - with debug but without mem-debug - -Sun Sep 28 20:53:17 CEST 2003 Daniel Veillard - - * Makefile.am: cleanup, creating a new legacy.c module, - made sure make tests ran in reduced conditions - * SAX.c SAX2.c configure.in entities.c globals.c parser.c - parserInternals.c tree.c valid.c xlink.c xmlIO.c xmlcatalog.c - xmlmemory.c xpath.c xmlmemory.c include/libxml/xmlversion.h.in: - increased the modularization, allow to configure out - validation code and legacy code, added a configuration - option --with-minimum compiling only the mandatory code - which then shrink to 200KB. - -Sun Sep 28 02:15:07 CEST 2003 Daniel Veillard - - * parser.c: fix a bug raised by the Mips compiler. - * include/libxml/SAX.h include/libxml/parser.h: move the - SAXv1 block definitions to parser.h fixes bug #123380 - * xmlreader.c include/libxml/xmlreader.h: reinstanciate - the attribute and element pool borken 2 commits ago. - Start playing with an entry point to preserve a subtree. - * entities.c: remove a warning. - -Sat Sep 27 12:19:38 PDT 2003 William Brack - - * encoding.c, parser.c, relaxng.c: further (final?) minor - changes for compilation warnings. No change to logic. - -Fri Sep 26 18:03:42 PDT 2003 William Brack - - * parser.c: fixed small problem with missing entities (test/ent2) - -Sat Sep 27 01:25:39 CEST 2003 Daniel Veillard - - * parser.c: William's change allowed to spot a nasty bug in xmlDoRead - if the result is not well formed that ctxt->myDoc is not NULL - and uses the context dictionnary. - -Fri Sep 26 21:09:34 CEST 2003 Daniel Veillard - - * parser.c: other patches from William Brack to avoid - compilation warnings on AIX. - -Fri Sep 26 11:03:08 PDT 2003 William Brack - - * HTMLparser.c, entities.c, xmlreader.c: minor change to - avoid compilation warnings on some (e.g. AIX) systems - -Fri Sep 26 16:49:25 CEST 2003 Daniel Veillard - - * parserInternals.c: fixed a backward compatibility problem - when formatting "deprecated SAXv1 function ignorableWhitespace" - could be reproduced by xmllint --format - -Fri Sep 26 15:50:44 CEST 2003 Daniel Veillard - - * doc/libxml2-api.xml: rebuilt the API - * xmllint.c doc/xmllint.1 doc/xmllint.xml: added the new options - --nocdata and --nsclean to remove CDATA section and surperfluous - namespace declarations - * parser.c SAX2.c: implementation of the 2 new options - -Fri Sep 26 14:41:53 CEST 2003 Daniel Veillard - - * HTMLparser.c testHTML.c xmllint.c include/libxml/HTMLparser.h: - added the same htmlRead APIs than their XML counterparts - * include/libxml/parser.h: new parser options, not yet implemented, - added an options field to the context. - * tree.c: patch from Shaun McCance to fix bug #123238 when ]]> - is found within a cdata section. - * result/noent/cdata2 result/cdata2 result/cdata2.rdr - result/cdata2.sax test/cdata2: add one more cdata test - -Thu Sep 25 23:03:23 CEST 2003 Daniel Veillard - - * parser.c xmllint.c doc/libxml2-api.xml include/libxml/parser.h: - Changed the new xmlRead/xmlCtxtRead APIs to have an extra - base URL parameter when not loading from a file or URL. - -Thu Sep 25 16:23:58 CEST 2003 Daniel Veillard - - * configure.in: preparing a beta3 solving the ABI problems - * globals.c parser.c parserInternals.c testHTML.c HTMLparser.c SAX.c - include/libxml/globals.h include/libxml/SAX.h: make sure the - global variables for the default SAX handler are V1 ones to - avoid ABI compat problems. - * xmlreader.c: cleanup of uneeded code - * hash.c: fix a comment - -Thu Sep 25 14:16:51 CEST 2003 Daniel Veillard - - * SAX2.c hash.c parser.c include/libxml/xmlexports.h - include/libxml/xmlmemory.h include/libxml/xmlversion.h.in: - fixing some comments to avoid warnings from apibuild.py - -Wed Sep 24 23:42:08 CEST 2003 Daniel Veillard - - * win32/configure.js: patch from Stephane Bidoul for configuring - the beta2 version #123104 - -Wed Sep 24 23:17:59 CEST 2003 Daniel Veillard - - * Makefile.am: adding repeated parsing and validating tests - * SAX2.c parser.c tree.c include/libxml/parser.h: make the new - DOM tree building interfaces use the dictionary from the - parsing context to build the element and attributes names - as well as formatting spaces and short text nodes - * include/libxml/dict.h dict.c: added some reference counting - for xmlDictPtr because they can be shared by documents and - a parser context. - * xmlreader.c: a bit of cleanup, remove the specific tree freeing - functions and use the standard ones now. - * xmllint.c: add --nodict - * python/libxml.c: fix a stupid bug so that ns() works on - attribute nodes. - -Tue Sep 23 23:07:45 CEST 2003 Daniel Veillard - - * parser.c include/libxml/parser.h: adding a new set of - API for parsing xmlReadDoc() xmlReadFile() ... xmlReadIO() - and xmlCtxtReadDoc() ... xmlCtxtReadIO(). That with - a clear define of xmlParserOption, xmlCtxtUseOptions() - should simplify custom parsing without being tempted to - use global variables, and xmlCtxtReset() should allow reuse - of a context for multiple parsing. - * xmllint.c: switched to use xmlReadXXX, allow options to - be used simultaneously with less troubles. - * tree.c: simple warning removal - * doc/apibuild.py: small fix - * doc/libxml2-api.xml win32/libxml2.def.src: updated - -Tue Sep 23 11:15:23 CEST 2003 Daniel Veillard - - * parser.c: revert xmlCreateDocParserCtxt() since this break - the parseDoc() python bindings - -Tue Sep 23 11:00:18 CEST 2003 Daniel Veillard - - * parser.c: make sure xmlDetectSAX2() is called only at - parsing time to avoid breaking apps changing the SAX - callbacks after context allocation, change xmlCreateDocParserCtxt() - to use an immutable buffer instead of a copy - -Tue Sep 23 09:40:33 CEST 2003 Daniel Veillard - - * xmlIO.c: applied patch from Markus Keim fixing a problem - with I/O callback registration. - * include/libxml/xmlerror.h: fixed #122994 comment numbering - for xmlParserErrors - -Mon Sep 22 12:21:11 CEST 2003 Daniel Veillard - - * tree.c include/libxml/tree.h: the uri arg to xmlNodeSetBase is - really a const xmlChar* - * xmlreader.c include/libxml/xmlreader.h: addin the - xmlTextReaderConstString() to get an interned string from - the reader - -Sun Sep 20 17:22:20 PDT 2003 William Brack - - * error.c: fixed a warning message (trivial) - * doc/search.php: removed incorrect warning message when word - search not found in last of multiple tables (bug 119535) - -Fri Sep 19 14:26:28 CEST 2003 Daniel Veillard - - * configure.in: preparing a 2.6.0-beta2 release - * xmlIO.c: avoid a warning - * tree.c: avoid duplicate code in xmlReplaceNode as pointed out - by Chris Ryland - * include/libxml/dict.h: add a QName access lookup to the - dictionary. - * xmlreader.c include/libxml/xmlreader.h: adding const access - based on the dictionary interface for string read from the - reader, the node content access is still TODO, it's too different - -Fri Sep 19 00:01:08 CEST 2003 Daniel Veillard - - * SAX2.c: fixing namespace DTD validations - * result/valid/ns2.xml result/valid/ns.xml: the output of defaulted - namespaces is slightly different now. - * Makefile.am: report the memory used in Timingtests (as well as time) - -Thu Sep 18 15:29:46 CEST 2003 Daniel Veillard - - * Makefile.am: add streaming on memory regression tests, found - bad bugs in the reader interface - * xmlreader.c: fixing bugs w.r.t. very large names, and special - condition in end of file. - * xmlIO.c tree.c include/libxml/tree.h include/libxml/xmlIO.h: - adding immutable buffers, and parser input based on those, - but this should not be used (yet) for general parsing - * parser.c: added a comment about using immutable buffers for - general parsing. - * result/bigname.xml.rdr result/bigname2.xml.rdr: fixing the - output of the regression tests - * xmllint.c: using the immutable buffers when streaming on - mmaped file (--stream --memory) - -Thu Sep 18 12:04:50 CEST 2003 Daniel Veillard - - * dict.c: the last patch broke unicity of returned strings, removed - -Thu Sep 18 00:31:02 CEST 2003 Daniel Veillard - - * Makefile.am: add a Timingtests target to check bad behaviour - from the streaming engine - * dbgen.pl dbgenattr.pl: perl script to generate big instances - * xmlreader.c: fix a bad behaviour on large buffer inputs - -Wed Sep 17 23:25:47 CEST 2003 Daniel Veillard - - * dict.c xmlreader.c: two small improvements - -Wed Sep 17 22:53:32 CEST 2003 Daniel Veillard - - * parserInternals.c: avoid a leak with previous patch - -Wed Sep 17 22:06:11 CEST 2003 Daniel Veillard - - * python/libxml.c: use stderr and not stdout for default errors - in python environment bug #122552 - -Wed Sep 17 21:33:57 CEST 2003 Daniel Veillard - - * parserInternals.c: small fix from Rob Richards for input filename - * xmllint.c: fixes for --repeat and --memory/--stream for speed tests - * xmlIO: adding a guard in one function - -Wed Sep 17 15:57:44 CEST 2003 Daniel Veillard - - * SAX2.c xmlreader.c include/libxml/parser.h: more performance hunting - reducing memory allocation and free and avoiding expensive routines - -Wed Sep 17 12:23:41 CEST 2003 Daniel Veillard - - * SAX2.c parser.c parserInternals.c xmlreader.c: started messing - seriously with per-document dict and element and attribute nodes - reuse in the xmlReader. This seems to lead to an interesting - speedup of the xmlReader already. - -Wed Sep 17 01:07:56 CEST 2003 Daniel Veillard - - * dict.c include/libxml/dict.h: do string allocations in large - pools, allowing to find if a string pertain to a dict quickly - * xmllint.c: fix --stream --repeat --timing - * Makefile.am: the testThreads run output should be seen. - -Mon Sep 15 16:46:28 CEST 2003 Daniel Veillard - - * SAX2.c include/libxml/parser.h: starting work on reusing the - parser dictionary for the element and attribute tag names. - Add pools for Element and Attributes in the parser context, - which should help speeding up the reader. - * Makefile.am result/*.rdr : adding non-python reader regression - tests. - -Mon Sep 15 14:54:42 CEST 2003 Daniel Veillard - - * SAX2.c parser.c valid.c: starting to cleanup some of the - problems exposed by the W3C/NIST regression suite. - * result/ent7.sax result/xml2.sax: small fixes. - -Mon Sep 15 11:46:47 CEST 2003 Daniel Veillard - - * parser.c: more parser error factoring - -Sun Sep 14 21:53:39 PDT 2003 William Brack - - * HTMLtree.c: Fixed bug 121394 - missing ns on attributes - -Sun Sep 14 21:43:32 CEST 2003 Daniel Veillard - - * parser.c include/libxml/xmlerror.h: factoring of more - error handling code, serious size reduction and more lisibility - of the resulting code. - * parserInternals.c parser.c include/libxml/parserInternals.h - include/libxml/parser.h: changing the way VC:Proper Group/PE Nesting - checks are done, use a counter for entities. Entities where freed and - reallocated at the same address failing the check. - * tree.c: avoid a warning - * result/valid/* result/VC/*: this slightly changes some validation - error messages. - -Sun Sep 14 11:03:27 PDT 2003 William Brack - - * valid.c: fixed bug 121759 - early declaration of - attribute-list in external DTD - -Sat Sep 13 14:42:11 CEST 2003 Daniel Veillard - - * parser.c include/libxml/xmlerror.h: starting cleaning up - error handling, factorize error processing - * doc/xmllint.html: update of the page, remove --sgml - -Sat Sep 13 02:13:50 CEST 2003 Daniel Veillard - - * Makefile.am DOCBparser.c parserInternals.c testDocbook.c - xmllint.c doc/xmllint.xml doc/xmllint.1: removing the - broken pseudo SGML DocBook parser code. - -Fri Sep 12 17:24:11 CEST 2003 Daniel Veillard - - * xpath.c: fix a problem with strcpy() in xmlXPathFormatNumber() - valgrind pointed out the strings overlapped. cleanup . - -Fri Sep 12 11:43:12 CEST 2003 Daniel Veillard - - * tree.c: applied speedup to xmlSearchNs() as suggested by - Luca Padovani. Cleaned up xmlSearchNsByHref() in the process - applying the same trick. - -Fri Sep 12 01:36:20 CEST 2003 Daniel Veillard - - * parser.c parserInternals.c tree.c include/libxml/parser.h - include/libxml/xmlerror.h: adding namespace checkings - while making sure they still parse as wellformed documents. - Add an nsWellFormed status report to the context, and - provide new appropriate error codes. - * Makefile.am result/namespaces/* test/namespaces/*: add - specific regression testing for the new namespace support - * test/att5 result/noent/att5 result/att5 result/att5.sax: - add more coverage for the attribute parsing and normalization - code. - -Fri Sep 12 01:34:19 CEST 2003 Daniel Veillard - - * threads.c: backport of a thread bugfix from 2_5_X branch - -Thu Sep 11 18:29:18 CEST 2003 Daniel Veillard - - * parser.c: fixed a bug in one corner case of attribute parsing. - -Thu Sep 11 16:21:53 CEST 2003 Daniel Veillard - - * configure.in doc/* : 2.6.0beta1 changes - * SAX2.c hash.c parser.c parserInternals.c: Fixing attribute - normalization, might not be totally fixed but this should - make sure SAX event provide the right strings for attributes - except entities for which libxml2 is different by default - This should fix #109564 - * result/attrib.xml.sax result/ent3.sax result/p3p.sax: minor changes - in attribute callback values - * result/c14n/with-comments/example-4 - result/c14n/without-comments/example-4: this also fixes a subtle - bug in the canonicalization tests. - -Wed Sep 10 12:38:44 CEST 2003 Daniel Veillard - - Time to commit 3 days of work rewriting the parser internal, - fixing bugs and migrating to SAX2 interface by default. There - is some work letf TODO, like namespace validation and attributes - normalization (this break C14N right now) - * Makefile.am: fixed the test rules - * include/libxml/SAX2.h include/libxml/parser.h - include/libxml/parserInternals.h SAX2.c parser.c - parserInternals.c: changing the parser, migrating to SAX2, - adding new interface to switch back to SAX1 or initialize a - SAX block for v1 or v2. Most of the namespace work is done - below SAX, as well as attribute defaulting - * globals.c: changed initialization of the default SAX handlers - * hash.c tree.c include/libxml/hash.h: added QName specific handling - * xmlIO.c: small fix - * xmllint.c testSAX.c: provide a --sax1 switch to test the old - version code path - * result/p3p result/p3p.sax result/noent/p3p test/p3p: the new code - pointed out a typo in a very old test namespace - -Sun Sep 7 19:58:33 PTD 2003 William Brack - - * xmlIO.c include/libxml/xmlIO.h parser.c: Implemented detection - of compressed files, setting doc->compressed appropriately - (bug #120503). - -Sun Sep 7 22:53:06 CEST 2003 Daniel Veillard - - * parser.c: try to cope with the fact that apps may still - have allocated smaller SAX callbak block - -Sun Sep 7 11:11:45 CEST 2003 Daniel Veillard - - * dict.c: allow to give -1 for undefined length in lookups - * include/libxml/parser.h parser.c parserInternals.c testSAX.c: - first round of work on the new SAX2 interfaces, the API - will change but commiting before changing for historical - reference. - -Sat Sep 6 10:55:01 PTD 2003 William Brack - - * SAX2.c, xmlIO.c: fixed bug #121210 (callback to sax->error, - sax->warning with wrong params). - -Fri Sep 5 10:33:42 CEST 2003 Daniel Veillard - - * include/libxml/globals.h: patch from Stéphane Bidoul to export - globals entry points to the python bindings - -Wed Sep 3 15:24:41 CEST 2003 Daniel Veillard - - * HTMLparser.c: when creating a DOCTYPE use "html" lowercase - by default instead of "HTML" - * parser.c xmlreader.c: optimization, gain a few % parsing speed by - avoiding calls to "areBlanks" when not needed. - * include/libxml/parser.h include/libxml/tree.h: some structure - extensions for future work on using per-document dictionaries. - -Wed Sep 3 15:08:06 CEST 2003 Daniel Veillard - - * Makefile.am results/*.sax SAXResult/*: removing the SAXresults - tree, keeping result in the same tree, added SAXtests to the - default "make tests" - -Tue Sep 2 15:59:04 CEST 2003 Igor Zlatkovic - - * include/libxml/xmlexports.h: defined additional macros which - affect exports and added mingw section - -Mon Sep 1 15:15:18 PDT 2003 William Brack - - * doc/index.py: fixed problem parsing xhtml docs - * doc/xmlreader.html,doc/guidelines.html: small modification - to avoid problem in python parsing. - * doc/search.php: fixed upper case filename problem for XSLT docs - -Mon Sep 1 22:55:09 CEST 2003 Daniel Veillard - - * xinclude.c: patch from Mark Vakoc that allows compiling - with XInclude but without XPointer support. - -Mon Sep 1 22:31:38 CEST 2003 Daniel Veillard - - * configure.in xml2-config.in: Applied a patch from Kevin P. Fleming - to add --libtool-libs option to xml2-config script. - -Sun Aug 31 21:52:12 PDT 2003 William Brack - - * doc/README.docs, doc/Makefile.am: new file added, - giving some description of the documentation generation process - * doc/search.php: fixed problem with upper case on filenames - -Fri Aug 29 12:25:01 CEST 2003 Igor Zlatkovic - - * win32/Makefile.bcb: updates by Eric Zurcher - -Thu Aug 28 22:58:38 PDT 2003 William Brack - - * doc/apibuild.py, doc/libxml2-api.xml: enhanced code - to compensate for pollution from Igor's header taint - (quick before Daniel notices) - -Thu Aug 28 23:01:36 CEST 2003 Daniel Veillard - - * SAX2.c: fixed a namespace error on attribute reporting bug - pointed out by Tobias Reif - * test/p3p result/p3p result/noent/p3p: this test case was wrong - using xmlsn instead of xmlns... - -Thu Aug 28 18:25:07 CEST 2003 Igor Zlatkovic - - * include/libxml/globals.h include/libxml/xmlexports.h: fixed - typos reported by Mark Vakoc - -Thu Aug 28 08:59:51 MDT 2003 John Fleck - - add: - * doc/tutorial/api.html - * doc/tutorial/ar01s09.html - * doc/tutorial/includexpath.c - updated - * doc/tutorial/*.html - fix my bad - forgot to check in new files when I last - updated - -Thu Aug 28 14:31:13 CEST 2003 Igor Zlatkovic - - * win32/Makefile.bcb: new file, support for Borland C++ - * xmllint.c: fixed time inclusion for various compilers - -Thu Aug 28 12:32:59 CEST 2003 Igor Zlatkovic - - * parser.c parserInternals.c DOCBparser.c HTMLparser.c: added - few casts to shut the compiler warnings - -Thu Aug 28 12:23:51 CEST 2003 Igor Zlatkovic - - * win32/Makefile.* win32/configure.js: fixed for mingw - -Thu Aug 28 10:01:44 CEST 2003 Daniel Veillard - - * globals.c threads.c: fixing bug #120870 try to avoid problem - with uninitialized mutexes - -Wed Aug 27 16:12:41 CEST 2003 Daniel Veillard - - * relaxng.c: fixed an error reporting bug in Relax-NG when we end - up with multiple states, select the "best" one. Fix #120682 - * result/relaxng/tutor11_2_3.err: small change resulting - -Wed Aug 27 11:25:25 CEST 2003 Daniel Veillard - - * xmlschemastypes.c: applied base64 support patch from Anthony Carrico - -Wed Aug 27 10:58:51 CEST 2003 Igor Zlatkovic - - * include/libxml/[threads-xpointer].h: realigned parameters - after taint - -Wed Aug 27 09:59:54 CEST 2003 Igor Zlatkovic - - * include/libxml/xmlexports.h: fixed defs for Borland compiler, - as reported by Eric Zurcher - -Tue Aug 26 15:54:04 CEST 2003 Daniel Veillard - - * relaxng.c: fixed bug #120386 again a problem introduced when - trying to reuse automata for content validation. Fix a bug report - problem on zeroOrMore - * result/relaxng/tutor3_7_err: change slightly error reporting. - -Mon Aug 25 13:24:57 CEST 2003 Daniel Veillard - - * include/libxml/Makefile.am: make sure the new header will - be included when generating a new distribution. - -Mon Aug 25 12:37:05 CEST 2003 Daniel Veillard - - * relaxng.c: fixed a couple of stupid bugs in the state allocation - routines which led to bug #120040 and the ones reported by - Martijn Faassen - -Mon Aug 25 12:37:23 CEST 2003 Igor Zlatkovic - - * include/libxml/parserInternals.h include/libxml/relaxng.h - include/libxml/SAX.h include/libxml/SAX2.h: realigned the - parameters after taint. - -Mon Aug 25 11:16:01 CEST 2003 Igor Zlatkovic - - * include/libxml/xmlversion.h.in: moved export defs to a separate - file for consistency. - * include/libxml/xmlexports.h: new file, contains export defs. - -Mon Aug 25 11:01:49 CEST 2003 Igor Zlatkovic - - * include/libxml/*.h genUnicode.py: exportability taint - of the headers. - -Thu Aug 21 12:37:46 CEST 2003 Daniel Veillard - - * SAX.c: make the deprecated interfaces log an error message - to be sure it won't get used. - -Thu Aug 21 00:50:32 CEST 2003 Daniel Veillard - - * Makefile.am SAX2.c include/libxml/Makefile.am include/libxml/SAX2.h: - Adding new version of the SAX interface, it's not there yet, - currently just preparing the work - * globals.c parser.c SAX.c include/libxml/SAX.h - include/libxml/globals.h include/libxml/parser.h: doing some - refactoring of the SAXv1 interfaces, obsoleting a bunch of them - while keeping functionalities, preparing SAX2 integration. - * dict.c: small cleanup. - -Wed Aug 20 00:20:01 CEST 2003 Daniel Veillard - - * tree.c: fixes a small bug introduced in last commit and detected - by valgrind. - -Tue Aug 19 16:54:18 CEST 2003 Daniel Veillard - - * dict.c hash.c: optimization when freeing hash tables. - * parser.c xmlIO.c include/libxml/tree.h: some tuning of buffer - allocations - * parser.c parserInternals.c include/libxml/parser.h: keep a - single allocated block for all the attributes callbacks, - avoid useless malloc()/free() - * tree.c: do not realloc() when growing a buffer if the buffer - ain't full, malloc/memcpy/free avoid copying memory. - -Mon Aug 18 18:37:01 CEST 2003 Daniel Veillard - - * xmllint.c doc/xmllint.xml doc/xmllint.1: added option - --dtdvalidfpi for Tobias Reif - -Mon Aug 18 14:03:03 CEST 2003 Daniel Veillard - - * dict.c include/libxml/dict.h Makefile.am include/libxml/Makefile.am: - new dictionary module to keep a single instance of the names used - by the parser - * DOCBparser.c HTMLparser.c parser.c parserInternals.c valid.c: - switched all parsers to use the dictionary internally - * include/libxml/HTMLparser.h include/libxml/parser.h - include/libxml/parserInternals.h include/libxml/valid.h: - Some of the interfaces changed as a result to receive or return - "const xmlChar *" instead of "xmlChar *", this is either - insignificant from an user point of view or when the returning - value changed, those function are really parser internal methods - that no user code should really change - * doc/libxml2-api.xml doc/html/*: the API interface changed and - the docs were regenerated - -Sun Aug 17 23:05:38 CEST 2003 Daniel Veillard - - * parser.c: applied patch to xmlCleanupParser from Dave Beckett - -Sat Aug 16 22:53:42 HKT 2003 William Brack - - * doc/parsedecl.py, doc/libxml2-refs.xml, doc/API*.html: - fixed part (2) of bug 119535 (wrong alpha case on filenames) - -Sat Aug 16 20:35:28 HKT 2003 William Brack - - * doc/API*.html, doc/html/*: regenerated API documentation - for xmlsoft.org (part of Bug 119535) - -Fri Aug 15 14:58:37 HKT 2003 William Brack - - * encoding.c, threads.c, include/libxml/HTMLparser.h, - doc/libxml2-api.xml: Minor changes to comments, etc. for - improving documentation generation - * doc/Makefile.am: further adjustment to auto-generation of - win32/libxml2.def.src - -Fri Aug 15 02:24:20 CEST 2003 Daniel Veillard - - * News configure.in: preparing libxml2-2.5.10 release - * doc/* : updated the doc and rebuilt - -Fri Aug 15 01:55:53 CEST 2003 Daniel Veillard - - * parser.c: fixing the xmlSAXParseDTD bug #119536 raised by - Malcolm Tredinnick with the patch he suggested. - -Fri Aug 15 01:37:10 CEST 2003 Daniel Veillard - - * HTMLparser.c: allocation error #119784 raised by Oliver Stoeneberg - -Fri Aug 15 00:41:58 CEST 2003 Daniel Veillard - - * uri.c: fixing an use of strcpy() where both strings overlap - pointed out by valgrind. - -Thu Aug 14 17:10:39 CEST 2003 Daniel Veillard - - * DOCBparser.c globals.c include/libxml/xmlmemory.h: get rid of - some compilation warnings. - * xinclude.c: fix the performance problem reported by Kevin Ruscoe - plus some cleanup and better error reporting. - -Thu Aug 14 14:13:43 CEST 2003 Daniel Veillard - - * encoding.c: applied UTF-16 encoding handling patch provided by - Mark Itzcovitz - * encoding.c parser.c: more cleanup and fixes for UTF-16 when - not having iconv support. - -Thu Aug 14 03:19:08 CEST 2003 Daniel Veillard - - * Makefile.am configure.in example/Makefile.am libxml.h nanoftp.c - nanohttp.c xmllint.c: Applied patch from Mikhail Grushinskiy for - mingw compiler on Windows. - -Thu Aug 14 02:28:36 CEST 2003 Daniel Veillard - - * parser.c: fixed the serious CPU usage problem reported by - Grant Goodale - * HTMLparser.c: applied patch from Oliver Stoeneberg about a free - missing in htmlSAXParseDoc - -Tue Aug 12 22:48:10 HKT 2003 William Brack - - * doc/Makefile.am: Removed dependency from libxml2.def.src - -Tue Aug 12 18:55:08 HKT 2003 William Brack - - * autogen.sh: took away the requirement for automake-1.4, - changed the messages for getting auto* tools to current - gnu pages. - * configure.in: added check for Linux Dec alpha requiring - -ieee flag, fixed test for ipv6 - * trionan.c: fixed problem for compiling on Linux Dec alpha - using native compiler - * doc/Makefile.am: implemented regeneration of win32/libxml2.def.src - whenever libxml2-api.xml is changed. - -Mon Aug 11 17:02:23 CEST 2003 Daniel Veillard - - * parser.c: cleaning up a problem when parsing UTF-16 and libiconv - is not used. - -Sun Aug 10 08:13:22 HKT 2003 William Brack - - * win32/libxml2.def.src: renerated with fixed libxml2-api.xml - -Sun Aug 10 00:22:55 CEST 2003 Daniel Veillard - - * News configure.in: preparing libxml2-2.5.9 release - * doc/* : updated the doc and rebuilt - -Sat Aug 9 20:00:13 CEST 2003 Daniel Veillard - - * include/libxml/xmlreader.h doc/libxml2-api.xml: changing an enum - definition to get a correct API XML description. This was apparently - breaking Windows build. - -Sat Aug 9 13:41:21 CEST 2003 Daniel Veillard - - * HTMLparser.c: fixed a nasty bug #119387, bad heuristic from - the progressive HTML parser front-end on large character data - island leading to an erroneous end of data detection by the - parser. Some cleanup too to get closer from the XML progressive - parser. - -Sat Aug 9 00:42:47 HKT 2003 William Brack - - * win32/configure.js: Added in support for the ISO8859X - module (patch provided by Jesse Pelton) - -Fri Aug 8 15:56:32 CEST 2003 Daniel Veillard - - * HTMLtree.c tree.c threads.c: hum try to avoid some troubles - when the library is not initialized and one try to save, the - locks in threaded env might not been initialized, playing safe - * xmlschemastypes.c: apply patch for hexBinary from Charles Bozeman - * test/schemas/hexbinary_* result/schemas/hexbinary_*: also added - his tests to the regression suite. - -Fri Aug 8 18:47:38 HKT 2003 William Brack - - * win32/defgen.xsl, win32/libxml2.def.src: Bug 119343 - (with apologies to Igor) - Enhanced handling of docb and - nanohttp. - -Thu Aug 7 21:13:22 HKT 2003 William Brack - - * encoding.c: further small changes for warnings when - configured with --with-iconv=no - -Wed Aug 6 12:32:11 HKT 2003 William Brack - - * error.c trionan.[ch] testThreads.c python/generator.py: - further small changes to elminate most of the remaining - warnings. - -Tue Aug 5 23:51:21 HKT 2003 William Brack - - * error.c HTMLparser.c testC14N.c testHTML.c testURI.c - xmlcatalog.c xmlmemory.c xmlreader.c xmlschemastypes.c - python/libxml.c include/libxml/xmlmemory.h: small changes - to syntax to get rid of compiler warnings. No changes - to logic. - -Mon Aug 4 22:40:54 CEST 2003 Daniel Veillard - - * doc/libxml2-api.xml doc/html/*: rebuilt the API and docs. - -Mon Aug 4 21:40:34 CEST 2003 Daniel Veillard - - * tree.c: fixed a small problem in the patch for #118763 - * result/HTML/doc3.htm*: this reverts back to the previous result - -Sun Aug 3 21:41:49 EDT 2003 Daniel Veillard - - * doc/FAQ.html doc/xml.html: applied doc patch to xml.html - and rebuilt, apparently some C++ wrappers are not available, - c.f. bug #118943 - -Sun Aug 3 21:30:31 EDT 2003 Daniel Veillard - - * tree.c: fixing HTML attribute serialization bug #118763 - applying a modified version of the patch from Bacek - * result/HTML/doc3.htm*: this modifies the output from one test - -Sun Aug 3 21:02:30 EDT 2003 Daniel Veillard - - * tree.c include/libxml/tree.h: added a new API to split a - QName without generating any memory allocation - * valid.c: fixed another problem with namespaces on element - in mixed content case - * python/tests/reader2.py: updated the testcase with - Bjorn Reese fix to reader for unsignificant white space - * parser.c HTMLparser.c: cleanup. - -Sun Aug 3 20:55:40 EDT 2003 Daniel Veillard - - * catalog.c: trying to fix #118754 of possible recursion in the - catalogs. Not fantastically happy about the current fix since - it's likely to break under very thread intensive concurrent - access to the catalog. Better solution might to keep the depth - an extra argument to the resolution functions. - -Sun Aug 3 18:56:54 EDT 2003 Daniel Veillard - - * valid.c: fixed bug #118712 about mixed content, and namespaced - element names. - * test/valid/mixed_ns.xml result/valid/mixed_ns*: added a check - in the regression tests - -Fri Aug 1 23:55:23 HKT 2003 William Brack - - Coninuing work on bug 118559 - * DOCBparser.c: removed 2 unsed vars - * xmlregexp.c: changed some numeric const to their enum symbols - * xmlreader.c: changed one var define from int to enum - (a little more to be done, awaiting co-ordination) - * relaxng.c: deleted one unused var - * xmllint.c: deleted some unused vars, changed one arg - val from int to enum - * testHTML.c, testDocbook.c: changed some arg vals to enum const - * xmlIO.c: fixed typo from last night (small warning msg) - -Thu Jul 31 22:44:33 HKT 2003 William Brack - - Working on bug 118559 - * error.c: deleted unused variable - * parserInternals.c: deleted unneeded 'const' qualifier - * parser.c: changed variable type for enum temp storage - * xmlIO.c: changed debugging var to be inside #ifdef - * valid.c: removed unused variable - * HTMLparser.c: removed some unneeded 'const' qualifiers - * xpath.c: added some type casts, removed some unused vars - * xinclude.c: added one type cast - * nanohttp.c: repositioned some #ifdef to avoid unused var - * nanoftp.c: removed unused var - -Wed Jul 30 14:57:55 EDT 2003 Daniel Veillard - - * HTMLparser.c: applied a patch from William Brack about - the problem of parsing very large HTML instance with comments - as raised by Nick Kew - -Wed Jul 30 12:29:38 EDT 2003 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h: applying cleanup - patch from Bjorn Reese for xmlTextReaderNodeType() and - significant whitespace. There is an enum for node type - values now. - -Wed Jul 30 11:08:21 EDT 2003 Daniel Veillard - - * encoding.c: applying patch from Peter Jacobi to added - ISO-8859-x encoding support when iconv is not available - * configure.in include/libxml/xmlversion.h.in - include/libxml/xmlwin32version.h.in: added the glue needed - at the configure level and made it the default for Windows - -Tue Jul 29 16:43:48 EDT 2003 Daniel Veillard - - * python/generator.py python/libxml.c python/libxml2class.txt: - patch from Joachim Bauch + cleanup for Relax NG error callbacks - in python - -Tue Jul 29 12:46:08 EDT 2003 Daniel Veillard - - * parser.c parserInternals.c tree.c: applied Peter Jacobi encoding - cleanup patch, and also avoided a possible memory leak - -Tue Jul 29 09:28:09 EDT 2003 Daniel Veillard - - * encoding.c: fix the previous commit - -Tue Jul 29 12:28:17 HKT 2003 William Brack - - * HTMLparser.c: fixed problem with comments reported by Nick Kew - * encoding.c: added routines xmlUTF8Size and xmlUTF8Charcmp for - some future cleanup of UTF8 handling - -Mon Jul 28 16:39:14 EDT 2003 Daniel Veillard - - * xpath.c: applied a change suggested by Sean Griffin in bug - #118494 about a memory leak in EXSLT - -Sun Jul 27 14:30:56 EDT 2003 Daniel Veillard - - * relaxng.c: fixed a Relax-NG compilation/streaming bug introduced - when fixing the previous Relax-NG bugs - * result/relaxng/*: This slightly changes the output messages of - some regression tests. - * configure.in: added support of -with-fexceptions for nested C++ - support. - -Thu Jul 24 15:46:02 MDT 2003 John Fleck - - * doc/tutorial/apa.html - * doc/tutorial/apb.html - * doc/tutorial/apc.html - * doc/tutorial/apd.html - * doc/tutorial/ape.html - * doc/tutorial/apf.html - * doc/tutorial/apg.html - * doc/tutorial/aph.html - * doc/tutorial/ar01s02.html - * doc/tutorial/ar01s03.html - * doc/tutorial/ar01s04.html - * doc/tutorial/ar01s05.html - * doc/tutorial/ar01s06.html - * doc/tutorial/ar01s07.html - * doc/tutorial/ar01s08.html - * doc/tutorial/index.html - * doc/tutorial/ix01.html - * doc/tutorial/xmltutorial.pdf - * doc/tutorial/xmltutorial.xml - update tutorial with XPath example - -Thu Jul 24 17:07:06 IST 2003 Daniel Veillard - - * SAX.c parser.c: fixing a bug about a special case of namespace - handling, this closes bug #116841 - -Wed Jul 23 20:52:36 IST 2003 Daniel Veillard - - * relaxng.c result/relaxng/*: checked and fixed the compilation - of RNG schemas, fixes a couple of bugs #117097 and #117001 . - This slightly changes the output messages of some regression tests. - -Wed Jul 23 15:15:08 IST 2003 Daniel Veillard - - * xmlreader.c: fixed an out of bound error #118052 , the good - part if that base64 code was not in use yet ... - -Tue Jul 22 19:42:15 MDT 2003 John Fleck - - * doc/xmllint.html - include html version of the xmllint man page, so an - up-to-date version is visible on the Web - -Mon Jul 21 21:53:43 IST 2003 Daniel Veillard - - * xinclude.c include/libxml/xinclude.h: added a new API - xmlXIncludeProcessTree() to process XInclude only on a subtree - this should fix bug #115385 - -Fri Jul 18 17:11:42 CEST 2003 Daniel Veillard - - * relaxng.c include/libxml/relaxng.h: adding Get interface for - the error callback and parameters of parsing and validation - contexts - * xmlreader.c: patch to fix bug #117702 about incomplete Read() - on text nodes. - -Wed Jul 16 23:15:53 CEST 2003 Daniel Veillard - - * parserInternals.c: patch from Dodji Seketeli about UTF16 BOM - when using the push XML parser. - * result/utf16bom.xml result/noent/utf16bom.xml test/utf16bom.xml: - added the test to the regression suite. - -Tue Jul 15 22:03:13 CEST 2003 Daniel Veillard - - * globals.c: add xmlThrDefMutex = NULL in xmlCleanupGlobals() - as suggested by Rob Richards - -Tue Jul 15 15:30:55 CEST 2003 Daniel Veillard - - * DOCBparser.c HTMLparser.c entities.c parser.c relaxng.c - xmlschemas.c xpath.c: removed some warnings by casting xmlChar - to unsigned int and a couple of others. - -Fri Jul 11 16:44:22 CEST 2003 Daniel Veillard - - * xmlschemastypes.c: fixes a segfault on empty hexBinary strings - -Thu Jul 10 16:02:47 CEST 2003 Daniel Veillard - - * nanoftp.c nanohttp.c: cleanup patches from Peter Breitenlohner - -Tue Jul 8 16:02:19 CEST 2003 Daniel Veillard - - * globals.c threads.c: fixes some problem when freeing unititialized - mutexes - -Tue Jul 8 14:15:07 CEST 2003 Daniel Veillard - - * nanoftp.c nanohttp.c: the modules should not import - directly, some cleanups - * xmlschemas.c: Peter Sobisch found a nasty bug in the Schemas - validation code. - -Mon Jul 7 18:00:51 CEST 2003 Daniel Veillard - - * win32/configure.js: Jesse Pelton pointed out a problem in the - javascript code. - -Mon Jul 7 16:39:31 CEST 2003 Daniel Veillard - - * NEWS doc/*: regenerated - * nanoftp.c nanohttp.c: might fix includes problems with the - Ipv6 support on solaris - * tree.c: patch from Markus Keim about xmlHasNsProp() on attributes - defined as #IMPLIED - -Sun Jul 6 23:09:13 CEST 2003 Daniel Veillard - - * configure.in doc/*: preparing release 2.5.8 - * nanohttp.c: changed some preprocessor block - * xmlschemastypes.c: applied patch from Charles Bozeman adding - hexBinary schema datatype and adding support for totalDigits and - fractionDigits facets. - -Sun Jul 6 19:56:18 CEST 2003 Daniel Veillard - - * debugXML.c xpath.c: fixed 2 bugs pointed in #116448 - -Sun Jul 6 19:34:17 CEST 2003 Daniel Veillard - - * xinclude.c: fixed bug #116095 removing the error message when - reapplying XInclude to a document. - -Sat Jul 5 22:40:23 CEST 2003 Daniel Veillard - - * xmlIO.c: applied small changes to portability layer for - compilation on DJGPP Ms-DOS compiler. - -Sat Jul 5 22:30:25 CEST 2003 Daniel Veillard - - * parser.c HTMLparser.c: use the character() SAX callback - if the cdataBlock ain't defined. - * xpath.c: fix bug #115349 allowing compilation when configured - with --without-xpath since the Schemas code needs NAN and co. - -Sat Jul 5 00:51:30 HKT 2003 William Brack - - Fixed problem with multi-threading, shown by the test program - testThreads. After fix, ran mutiple tests on various speed - machines (single and dual processor X86), which all seem okay. - - * catalog.c: added missing xmlRMutexUnlock in xmlLoadCatalog - - * threads.c: added missing initialisation for condition variable - in xmlNewRMutex. - -Sat Jun 21 16:10:24 CEST 2003 Daniel Veillard - - Applying IPv6 patch from Archana Shah - closing bug #114837 - - * configure.in: Added checks for IPv6 support and getaddrinfo(). - - * acconfig.h: Defined HAVE_GETADDRINFO and SUPPORT_IP6. - - * config.h.in: Defined HAVE_GETADDRINFO and SUPPORT_IP6. - - * nanoftp.c: Structure xmlNanoFTPCtxt contains either sockaddr_storage - field or sockaddr_in field, depending upon the availability of IPv6 - support. - have_ipv6(): Added to check for run-time IPv6 support. - (xmlNanoFTPScanURL), (xmlNanoFTPUpdateURL), (xmlNanoFTPScanProxy): - Modified to parse a URI with IPv6 address given in []. - (xmlNanoFTPConnect): Changed to use getaddrinfo for address - resolution, if it is available on the system, as gethostbyname - does not return IPv6 addresses on some platforms. - (xmlNanoFTPGetConnection): Modified type of dataAddr variable to - sockaddr_storage or sockaddr_in depending upon the IPv6 support. - Sending EPSV, EPRT or PASV, PORT depending upon the type of address - we are dealing with. - - * nanohttp.c: (have_ipv6): Added to check for run-time IPv6 support. - (xmlNanoHTTPScanURL), (xmlNanoHTTPScanProxy): Modified to parse - a URI with IPv6 address given in []. - (xmlNanoHTTPConnectHost): Modified to use getaddrinfo if it is - available on the system. Also IPv6 addresses will be resolved by - gethostbyname only if IPv6 run-time support is available. - (xmlNanoHTTPConnectAttempt): Modified to deal with IPv6 address. - -Sat Jun 14 18:46:51 CEST 2003 Igor Zlatkovic - - * win32/configure.js include/win32config.h - include/libxml/xmlversion.h.in: Applied the patch for BCB - by Eric Zurcher. - -Fri Jun 13 14:27:19 CEST 2003 Daniel Veillard - - * doc/Makefile.am doc/html/*: reverted back patch for #113521, - due to #115104 and while fixing #115101 . HTML URLs must not - be version dependant. - -Fri Jun 13 12:03:30 CEST 2003 Daniel Veillard - - * entities.c: do not generate " for " outside of attributes - * result//*: this changes the output of some tests - -Mon Jun 9 12:28:58 CEST 2003 Daniel Veillard - - * parser.c xmlIO.c: trying to fix #114277 about when file - remapping and escaping should really be attempted. - -Mon Jun 9 11:06:09 CEST 2003 Daniel Veillard - - * doc/*: applied a patch from Gman for building docs - * valid.c xmllint.c include/libxml/valid.h: applied a patch from - Gary Pennington to provide an allocator for xmlValidCtxt - * xmlreader.c: applied patch from Jacek Konieczny fixing bug - #113580 about data not being passed immediately. - -Thu Jun 5 11:31:02 CEST 2003 Daniel Veillard - - * tree.c: applied a couple of patches from Mark Itzcovitz - to handle saving back "UTF-16" documents. - -Mon Jun 2 21:56:15 MVT 2003 Daniel Veillard - - * relaxng.c xmlschemas.c include/libxml/schemasInternals.h: commiting - some work done while in the Maldives (hence the timezone on the - laptop !) - * result/schemas/length3* test/schemas/deter0_* - test/schemas/group0_*: some tests added too - -Mon Jun 2 15:34:17 CEST 2003 Daniel Veillard - - * encoding.c: small fix - * xmlIO.c: fixed an error message - -Tue May 20 14:21:23 CEST 2003 Daniel Veillard - - * parserInternals.c: fixing Red Hat bug #91013 where xmllint was - accepting an improper UTF8 sequence - -Sat May 17 12:53:11 CEST 2003 Igor Zlatkovic - - * threads.c: applied the patch from Stéphane Bidoul for getting - rid of extra threads in a dynamic library. - * win32/configure.js: threads default to 'native' now. - -Fri May 16 13:17:52 EDT 2003 Daniel Veillard - - * HTMLtree.c: fixing bug #112904: html output method escaped - plus sign character in URI attribute. - -Thu May 15 18:06:18 EDT 2003 Daniel Veillard - - * build_glob.py global.data globals.c parser.c - include/libxml/globals.h: patch from Stéphane Bidoul for setting - up threads global defaults. - * doc/libxml2-api.xml: this extends the API with new functions - * python/tests/Makefile.am python/tests/reader2.py - python/tests/thread2.py: integrated the associated testcase and - fixed the error string used in reader2 - -Wed May 14 14:56:46 EDT 2003 Daniel Veillard - - * configure.in libxml.spec.in python/Makefile.am: trying - to conciliate --with-python= requirements and RPM builds, - a PITA really... - -Tue May 13 18:30:34 EDT 2003 Daniel Veillard - - * HTMLparser.c: oops last commit introduced a memory leak. - -Tue May 13 18:10:38 EDT 2003 Daniel Veillard - - * xmllint.c doc/xmllint.xml: added --nonet option - * doc/Makefile.am: fixing #112803 by adding --nonet when calling - xsltproc or xmllint - * doc/xmllint.xml doc/xmllint.1: also added --schema doc and - rebuilt - * HTMLparser.c: cleaned up the HTML parser context build when - using an URL - -Tue May 13 16:35:04 EDT 2003 Daniel Veillard - - * libxml.spec.in: added a comment about bug #112902 - -Mon May 12 21:58:00 EDT 2003 William Brack - - * minor cleanup of configure '--help' display - * error.c: enhanced xmlParserPrintFileContext to fix bug #109942 - -Mon May 12 17:53:30 EDT 2003 Daniel Veillard - - * tree.c: PI nodes in external subset were not freed :-\ - fixes bug #112842 - -Mon May 12 11:23:27 EDT 2003 Daniel Veillard - - * xmllint.c: added --schema option to run WXS schema validation - * xmlschemas.c xmlschemastypes.c include/libxml/schemasInternals.h: - tried to improve error reporting in the Schema code, some cleanup - too. - -Sun May 11 16:13:20 EDT 2003 Daniel Veillard - - * xmlschemas.c: fixed some problems in the handling of errors, - and attributes addressed by references. - * test/schemas/* result/schemas/*: dropped the verbosity level - and added a couple of new tests - -Sat May 10 16:01:21 EDT 2003 Daniel Veillard - - * relaxng.c: Stéphane Bidoul found an off by one addressing - error on the error handling. - -Fri May 9 19:08:20 EDT 2003 Daniel Veillard - - * xmlschemastypes.c: trying to fix #112673 - -Fri May 9 18:14:16 EDT 2003 Daniel Veillard - - * DOCBparser.c catalog.c parser.c relaxng.c: removed multiple - warning, this fixed a bug and should close #111574 - -Fri May 9 15:34:32 EDT 2003 Daniel Veillard - - * xmlschemas.c: fixing bug #104081 with xs:all with an element - holding minOccurs="0" - * test/schemas/all_* result/schemas/all_*: added some regression - tests for that bug - * xmllint.c xmlreader.c: patches from Joerg Schmitz-Linneweber and - Garry Pennington to compile without schemas support. - -Thu May 1 10:02:35 CEST 2003 Daniel Veillard - - * tree.c: fixed a problem with xmlUnlinkNode() for DTDs. - -Wed Apr 30 14:16:08 CEST 2003 Daniel Veillard - - * xml2-config.in: try to fix Red hat bug #89957, do not - output -L/usr/lib64 - * xmlreader.c: fixed a typo in a comment - -Tue Apr 29 07:32:02 MDT 2003 John Fleck - - * doc/tutorial/aph.html, ix01.html - forgot to cvs add the new files. Thanks to Roland van Laar - for pointing this out - -Tue Apr 29 14:36:49 CEST 2003 Daniel Veillard - - * xmlschemas.c doc/libxml2-api.xml: fixing a function comment - * doc/Makefile.am doc/apibuild.py doc/gnome-xml.sgml: switching - to the XML/XSLT doc generation closing #111799 - * doc/html/*: complete update of the HTML results - -Mon Apr 28 14:51:41 CEST 2003 Igor Zlatkovic - - * win32/defgen.xsl: fixed the conditional for unicode map, - removed hardcoded schema entries - -Mon Apr 28 02:19:00 CEST 2003 Igor Zlatkovic - - * win32/defgen.xsl: new file, stylesheet for generating - win32/libxml2.def.src from doc/libxml2-api.xml - * win32/libxml2.def.src: is autogenerated from now on, changes - to this file will not appear here anymore - -Mon Apr 28 00:12:11 CEST 2003 Daniel Veillard - - * win32/configure.js python/setup.py.in: applied patch - from Stéphane Bidoul for the Python bindings on the new - release. - -Sun Apr 27 17:56:21 CEST 2003 Igor Zlatkovic - - * debugXML.c: included libxml/uri.h for xmlCanonicPath - declaration - * win32/configure.js: thread-enabled build is now default - * win32/libxml2.def.src: added more exports - -Sun Apr 27 00:23:05 CEST 2003 Daniel Veillard - - * NEWS doc/*.xsl doc/*.html: updated the web site separated - developers from common pages, made the transition to XHTML1, - added validity checking to the makefile rules. - -Sat Apr 26 23:17:51 CEST 2003 Daniel Veillard - - * parser.c: fix for xmlIOParseDTD same as previous and reported - by Petr Pajas - -Sat Apr 26 15:26:04 CEST 2003 Daniel Veillard - - * parser.c: applied fix to xmlSAXParseDTD from Malcolm Tredinnick - closing #111638 - -Sat Apr 26 14:00:58 CEST 2003 Daniel Veillard - - * python/generator.py: fixed a problem in the generator where - the way functions are remapped as methods on classes was - not symetric and dependant on python internal hash order, - as reported by Stéphane Bidoul - -Fri Apr 25 21:52:33 MDT 2003 John Fleck - - * doc/tutorial: - xmltutorial.xml - xmltutorial.pdf - *.html - add appendix on generating compiler flags, more indexing - -Sat Apr 26 01:10:48 CEST 2003 Daniel Veillard - - * triodef.h vms/build_libxml.com: applied patch from Craig A. Berry - to get libxml-2.5.7 to compile on OpenVMS - -Fri Apr 25 18:42:35 CEST 2003 Daniel Veillard - - * parser.c: fixing an xmlParseDTD bug raised by Petr Pajas - -Fri Apr 25 15:20:29 CEST 2003 Daniel Veillard - - * doc/Makefile.am doc/xmlcatalog.1 doc/xmlcatalog_man.xml - doc/xmllint.1 doc/xmllint.xml: automated the generation of the - man page based on xsltproc and a stylesheet PI in the XML. - -Fri Apr 25 12:37:33 CEST 2003 Daniel Veillard - - * doc/xmllint.*: trying to fix #110541 where   generated - character preventing rendering by the man command. - -Fri Apr 25 01:09:23 CEST 2003 Daniel Veillard - - * NEWS configure.in: preparing release 2.5.7 - * doc/*: updated and rebuilt the docs - * doc/apibuild.py: fixed the script - -Thu Apr 24 19:11:12 CEST 2003 Daniel Veillard - - * Makefile.am doc/apibuild.py: make sure the OOM code don't - get in the way of the builds - * doc/libxml2-api.xml python/libxml2class.txt: automatic update - -Thu Apr 24 18:01:46 CEST 2003 Daniel Veillard - - * Makefile.am testOOM.c testOOMlib.[ch] : integrated the Out Of - Memory test from Havoc Pennington #109368 - * SAX.c parser.c parserInternals.c tree.c uri.c valid.c - xmlmemory.c xmlreader.c xmlregexp.c include/libxml/tree.h - include/libxml/parser.h: a lot of memory allocation cleanups - based on the results of the OOM testing - * check-relaxng-test-suite2.py: seems I forgot to commit the - script. - -Wed Apr 23 17:16:41 CEST 2003 Daniel Veillard - - * xmlschemastypes.c: trivial fix for 109774 removing a warning - -Wed Apr 23 15:49:32 CEST 2003 Daniel Veillard - - * DOCBparser.c SAX.c catalog.c debugXML.c parser.c: try to find - more places where xmlCanonicPath() must be used to convert - filenames to URLs, trying to fix #111088 - -Wed Apr 23 09:35:12 CEST 2003 Daniel Veillard - - * python/libxml.c python/libxml.py: applied patch from - Brent M Hendricks adding binding for xmlCatalogAddLocal - -Tue Apr 22 15:18:01 CEST 2003 Daniel Veillard - - * HTMLparser.c: tried to fix #98879 again in a more solid - way. - -Tue Apr 22 13:58:43 CEST 2003 Igor Zlatkovic - - * win32/libxml2.def.src: added more exports from the relaxng and - xmlreader clan - -Tue Apr 22 10:35:13 CEST 2003 Daniel Veillard - - * SAX.c test/valid/ns* test/result/ns*: applied the patch - provided by Brent Hendricks fixing #105992 and integrated the - examples in the testsuite. - -Tue Apr 22 01:06:09 CEST 2003 Daniel Veillard - - * TODO: updated a bit - * configure.in: fixed the comment, threads now default to on - * parserInternals.c: fixed an erroneous xmlMallocAtomic() call - -Mon Apr 21 23:33:38 CEST 2003 Daniel Veillard - - * globals.c libxml.h parser.c parserInternals.c tree.c xmllint.c - xmlreader.c include/libxml/parser.h: a lot of performance work - especially the speed of streaming through the reader and push - interface. Some thread related optimizations. Nearly doubled the - speed of parsing through the reader. - -Sun Apr 20 10:36:05 MDT 2003 John Fleck - - * doc/xmllint.xml - * doc/xmllint.1 - update man page to explain use of --stream - -Sat Apr 19 02:03:24 CEST 2003 Daniel Veillard - - * DOCBparser.c HTMLparser.c c14n.c catalog.c encoding.c globals.c - nanohttp.c parser.c parserInternals.c relaxng.c tree.c uri.c - xmlmemory.c xmlreader.c xmlregexp.c xpath.c xpointer.c - include/libxml/globals.h include/libxml/xmlmemory.h: added - xmlMallocAtomic() to be used when allocating blocks which - do not contains pointers, add xmlGcMemSetup() and xmlGcMemGet() - to allow registering the full set of functions needed by - a garbage collecting allocator like libgc, ref #109944 - -Fri Apr 18 16:37:41 CEST 2003 Daniel Veillard - - * configure.in: switched to have thread support enabled by default, - didn't got troubles with ABI compatibility on Linux, hope it - won't break on strange OSes, if yes, report the system ID - * doc/libxml2-api.xml: just rebuilt the API - -Fri Apr 18 14:31:15 CEST 2003 Daniel Veillard - - * libxml.h include/libxml/parser.h parser.c xmlIO.c DOCBparser.c: - added support for large file, tested with a 3+GB instance, - and some cleanup. - * catalog.c: added a TODO - * Makefile.am: added some "make tests" comments - -Thu Apr 17 14:51:57 CEST 2003 Daniel Veillard - - * relaxng.c: some cleanups - * doc/xmlreader.html: extended the document to cover RelaxNG and - tree operations - * python/tests/Makefile.am python/tests/reader[46].py: added some - xmlReader example/regression tests - * result/relaxng/tutor*.err: updated the output of a number of tests - -Thu Apr 17 11:35:37 CEST 2003 Daniel Veillard - - * relaxng.c: valgrind pointed out an uninitialized variable error. - -Thu Apr 17 11:06:28 CEST 2003 Daniel Veillard - - * include/libxml/relaxng.h relaxng.c include/libxml/xmlreader.h - xmlreader.c: augnemting the APIs, cleanups. - * parser.c: cleanup bug #111005 - * xmlIO.c: added some missing comments - -Wed Apr 16 17:46:50 CEST 2003 Daniel Veillard - - * relaxng.c xmllint.c: more work on RelaxNG streaming validation - trying to improve the subset compiled, and more testing. - * doc/downloads.html doc/xml.html doc/xmlmem.html: some updates on the - documentation - * test/relaxng/tutor11_1_3.xml: fixes the DTD path - * result/relaxng/*.err: fix some of the outputs - -Wed Apr 16 01:28:15 CEST 2003 Daniel Veillard - - * relaxng.c xmlreader.c xmllint.c include/libxml/relaxng.h - include/libxml/xmlreader.h: implemented streaming of - RelaxNG (when possible) on top of the xmlReader interface, - provided it as xmllint --stream --relaxng .rng .xml - This seems to mostly work. - * Makefile.am: updated to test RelaxNG streaming - -Mon Apr 14 18:08:33 CEST 2003 Daniel Veillard - - * relaxng.c include/libxml/relaxng.h: integrated the regexp - based validity checking of fragments of the document for - which the RNG can be compiled to regexps. Works on all regression - tests, only fix needed is related to error messages. - -Sun Apr 13 21:51:00 CEST 2003 Daniel Veillard - - * relaxng.c xmlregexp.c include/libxml/xmlautomata.h - include/libxml/xmlregexp.h: Starting work precompiling - parts of RelaxNG schemas. Not plugged onto validity checking - yet, just the regexp building part. Needed to extend some - of the automata and regexp APIs. - -Fri Apr 11 21:36:21 CEST 2003 Daniel Veillard - - * xmllint.c xmlreader.c include/libxml/xmlreader.h: make sure - xmllint --stream and xmllint --stream --valid returns errors - code appropriately - -Fri Apr 11 10:59:24 CEST 2003 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h: Added the Expand() - and Next() operation to work on subtrees within the reader - framework. - * doc/libxml2-api.xml python/libxml2class.txt: resulting updates - * python/tests/reader5.py: added an example for those new - functions of the reader. - -Thu Apr 10 23:38:13 CEST 2003 Daniel Veillard - - * HTMLtree.c: patch from Vasily Tchekalkin to fix #109865 - -Thu Apr 10 15:32:44 CEST 2003 Daniel Veillard - - * xmlreader.c: fixing HasValue for namespace as raised by - Denys Duchier - -Wed Apr 9 14:07:18 CEST 2003 Daniel Veillard - - * HTMLparser.c include/libxml/HTMLparser.h: exported - htmlCreateMemoryParserCtxt() it was static - -Wed Apr 9 13:21:48 CEST 2003 Daniel Veillard - - * xmlschemas.c xmlschemastypes.c include/libxml/xmlschemas.h: - update from Charles Bozeman for date and duration types - * test/schemas/date_0.* test/schemas/dur_0.* - result/schemas/date_0.* result/schemas/dur_0.*: updated too - -Mon Apr 7 12:19:26 CEST 2003 Daniel Veillard - - * tree.c valid.c xpath.c include/libxml/tree.h include/libxml/valid.h: - fixing bug #107129, removing excessive allocation and calls - to *printf in the code to build QName strings. - -Sat Apr 5 11:41:36 CEST 2003 Igoe Zlatkovic - - * win32/libxml2.def.src: fixed conditional exports, reported by - Luke Murray. - -Fri Apr 4 18:08:00 CEST 2003 Daniel Veillard - - * parser.c: fixed a possible problem with xmlRecoverMemory() - -Thu Apr 3 17:24:44 CEST 2003 Daniel Veillard - - * trio.c trio.h triodef.h trionan.c trionan.h triop.h triostr.c - triostr.h: Bjorn sent an update for the TRIO portability layer. - -Tue Apr 1 21:57:26 CEST 2003 Igor Zlatkovic - - * win32/libxml2.def.src: exported new functions - -Tue Apr 1 13:09:46 CEST 2003 Daniel Veillard - - * configure.in NEWS: preparing release 2.5.6 - * doc/*: updated and rebuilt the docs - -Tue Apr 1 11:52:15 CEST 2003 Daniel Veillard - - * SAX.c: fixed an uninitialized memory access pointed by valgrind - on C14Ntests - -Tue Apr 1 00:12:28 CEST 2003 Daniel Veillard - - * relaxng.c: one more fixup of error message reporting - -Mon Mar 31 18:36:32 CEST 2003 Daniel Veillard - - * relaxng.c: more work on bug #109225, and fixed an uninitialized - variable pointed out by valgrind - -Mon Mar 31 18:05:22 CEST 2003 Daniel Veillard - - * relaxng.c: try to work on bug #109225 and provide better - error reports. - * result/relaxng/* : this change the output of a number of tests - * xinclude.c: fixing the parsed entity redefinition problem - raised on the list. - * test/schemas/date_0.xsd: updated the date test c.f. E2-12 - -Mon Mar 31 13:19:04 CEST 2003 Daniel Veillard - - * xmlschemastypes.c: fixed date comparison to handle the tzo - The only failures left are disagreements on Notations and - '+1' not being allowed for ulong, uint, ushort and ubyte. - -Mon Mar 31 12:11:47 CEST 2003 Daniel Veillard - - * xmlschemastypes.c: fixed gMonth parsing routine accordingly - to the XML Schemas errata - http://www.w3.org/2001/05/xmlschema-errata#e2-12 - -Sun Mar 30 23:04:18 CEST 2003 Daniel Veillard - - * relaxng.c xmlschemastypes.c: more work on XML Schemas datatypes - and facets support. Currently only schemas with binHex or - base64 don't compile. A few error left in the test suite: - found 1035 test instances: 919 success 23 failures - most are gdate or gdateyear failing check, and a few cases where - James clark tests results are strange. - * valid.c: allow to reuse the Notation checking routine without - having a validation context. - * SAX.c: removed a #if 0 - -Sat Mar 29 17:35:05 CET 2003 Daniel Veillard - - * xinclude.c: forgot to apply one check from #106931 patch - * xmlschemastypes.c: more work on XML Schemas datatypes - -Sat Mar 29 11:49:25 CET 2003 Daniel Veillard - - * relaxng.c include/libxml/relaxng.h xmlschemastypes.c: more work - on cleaning up XML Schemas datatypes based on James Clark tests - test/xsdtest/xsdtest.xml - -Fri Mar 28 14:24:08 CET 2003 Daniel Veillard - - * relaxng.c: implemented comparisons for Schemas values. - * xmlschemastypes.c include/libxml/xmlschemastypes.h: fixed - some bugs in duration handling, comparisons for durations - and decimals, removed all memory leaks pointed out by James - testsuite. Current status is now - found 238 test schemas: 197 success 41 failures - found 1035 test instances: 803 success 130 failures - -Fri Mar 28 00:41:55 CET 2003 Daniel Veillard - - * xmlschemas.c include/libxml/xmlschemas.h: fixed bugs and memory - leaks in the W3C XML Schemas code - * xmlschemastypes.c: implemented nonPositiveInteger - * test/schemas/length2_0.xsd result/schemas/length2_0_0.err: - fixed the test and result. - -Thu Mar 27 22:23:07 CET 2003 Daniel Veillard - - * HTMLparser.c tree.c: two patches from James Bursa on the HTML - parser and a typo - * xmlschemastypes.c: reindenting, fixing a memory access - problem with dates. - -Thu Mar 27 15:53:35 CET 2003 Daniel Veillard - - * parser.c: fixing #109227 providing more context in case of - start/end tag mismatch - * python/tests/ctxterror.py python/tests/readererr.py: update the - tests accordingly - -Thu Mar 27 15:22:41 CET 2003 Daniel Veillard - - * xinclude.c: should fix #109327 errors on memory accesses - -Thu Mar 27 15:06:13 CET 2003 Daniel Veillard - - * HTMLtree.c: Fixed reopening of #78662

- is an URI reference - -Wed Mar 26 22:38:39 CET 2003 Daniel Veillard - - * xpath.c: fixed bug #109160 on non-ASCII IDs - -Wed Mar 26 17:30:37 CET 2003 Daniel Veillard - - * parser.c: Norm suggested a nicer error message for xml:space values - errors - -Wed Mar 26 01:34:19 CET 2003 Daniel Veillard - - * xpath.c include/libxml/xpath.h: first part of the fix to - performance bug #108905, adds xmlXPathOrderDocElems() providing - document order for nodes. - * python/libxml.c: Python may require TRIO as Albert Chin pointed out - -Tue Mar 25 16:07:00 CET 2003 Daniel Veillard - - * xmlschemastypes.c: removing a warning with Sun compiler - bug #109154 - -Tue Mar 25 07:02:56 MST 2003 John Fleck - - * doc/xmllint.xml - * doc/xmllint.1 - update xmllint man page with --relaxng option - -Tue Mar 25 12:07:03 CET 2003 Daniel Veillard - - * python/setup.py.in : was missing "drv_libxml2.py" - -Mon Mar 24 19:38:05 CET 2003 Daniel Veillard - - * tree.c xpath.c: some changes related to the new way of - handling Result Value Tree, before 2.5.5 - -Mon Mar 24 16:36:23 CET 2003 Daniel Veillard - - * configure.in NEWS: preparing release 2.5.5 - * doc/* : updated the documentation and regenerated it. - -Mon Mar 24 14:56:01 CET 2003 Daniel Veillard - - * xpath.c: fixed some problems related to #75813 about handling - of Result Value Trees - -Sun Mar 23 22:57:20 CET 2003 Daniel Veillard - - * uri.c: applied a set of patches from Lorenzo Viali correcting - URI parsing errors. - -Sun Mar 23 22:00:14 CET 2003 Daniel Veillard - - * parser.c: validity status was not passed back when validating in - entities, but raised by Oliver Fischer - -Sun Mar 23 21:30:50 CET 2003 Daniel Veillard - - * HTMLtree.c: avoid escaping ',' in URIs - -Sun Mar 23 12:57:00 CET 2003 Daniel Veillard - - * parser.c: fixing bug #108976 get the ID/REFs to reference - the ID in the document content and not in the entity copy - * SAX.c include/libxml/parser.h: more checking of the ID/REF - stuff, better solution for #107208 - * xmlregexp.c: removed a direct printf, dohhh - * xmlreader.c: fixed a bug on streaming validation of empty - elements in entities - * result/VC/ElementValid8 test/VCM/v20.xml result/valid/xhtml1.xhtml: - cleanup of the validation tests - * test/valid/id* test/valid/dtds/destfoo.ent result/valid/id*: - added more ID/IDREF tests to the suite - -Sat Mar 22 23:38:08 CET 2003 Daniel Veillard - - * xmlreader.c: fixed #107043 removing 2 warnings with Sun One - compiler. - -Sat Mar 22 18:50:45 CET 2003 Daniel Veillard - - * relaxng.c: valgrind'ed and cleaned up a couple of memory issues. - -Sat Mar 22 16:15:50 CET 2003 Daniel Veillard - - * SAX.c: fix bug #107208 avoid false duplicates when ID/REFs are - defined in entities content - -Sat Mar 22 15:53:27 CET 2003 Daniel Veillard - - * SAX.c: Fixed validation bug #108858 on namespace names using - entities and reported by Brent Hendricks - * xmllint.c: report xmlTextReaderHasValue() result in --stream - --debug output. - -Sat Mar 22 13:32:39 CET 2003 Daniel Veillard - - * xmlreader.c: fixed bug #108801 reported by Malcolm Tredinnick - about the DocType node not being reported sometimes. - * python/tests/reader.py: added to test to the regression checks - -Sat Mar 22 01:57:40 CET 2003 Daniel Veillard - - * xmlreader.c: fixed bug #108546 on long CDATA (or text nodes) - reported by Edd Dumbill - -Sat Mar 23 01:00:24 CET 2003 Daniel Veillard - - * HTMLparser.c parser.c parserInternals.c: patch from - johan@evenhuis.nl for #107937 fixing some line counting - problems, and some other cleanups. - * result/HTML/: this result in some line number changes - -Fri Mar 21 22:19:14 CET 2003 Daniel Veillard - - * configure.in Makefile.am: fixed Red Hat bug #86118 use libxml2.spec - instead of libxml.spec - * relaxng.c: fixed some of the error reporting excessive - verbosity - * catalog.c debugXML.c valid.c xmlreader.c xmlschemas.c xpath.c - xmlschemastypes.c: removed some warnings from gcc - * doc/libxml2-api.xml: rebuilt - -Fri Mar 21 17:25:23 CET 2003 Daniel Veillard - - * relaxng.c: another optimization, for choice this time - * result/relaxng/spec1* result/relaxng/tutor12_1* - result/relaxng/tutor3_7: cleanups. - -Fri Mar 21 13:41:23 CET 2003 Daniel Veillard - - * relaxng.c: fixed xmlRelaxNGNodeMatchesList - * test/relaxng/testsuite.xml: augmented the test suite - * result/relaxng/spec1* result/relaxng/tutor12_1*: this fixes - some schemas validation tests in the presence of foreign - namespaces. - -Fri Mar 21 02:23:34 CET 2003 Daniel Veillard - - * relaxng.c: added another interleave speedup. - -Thu Mar 20 17:22:00 CET 2003 Daniel Veillard - - * xmlschemastypes.c: added integer and fixed one of the - IDREFS regression tests pbm - * result/relaxng/docbook_0.err: updated - -Wed Mar 19 21:58:47 CET 2003 Daniel Veillard - - * valid.c xmlschemastypes.c: attempt to cope with ID/IDREF(S) - declared both in the DTD and in the Schemas - * relaxng.c: more debug, added a big optimization for - * test/relaxng/testsuite.xml: augmented the testsuite - * test/relaxng/ result/relaxng: added the RelaxNG spec and a - DocBook example to the regression tests - -Wed Mar 19 11:34:10 CET 2003 Daniel Veillard - - * check-xsddata-test-suite.py: cosmetic change for output - * relaxng.c: try to minimize calls to malloc/free for states. - -Tue Mar 18 17:50:31 CET 2003 Daniel Veillard - - * tree.c: removed a warning - * xmlschemastypes.c: more cleanup, added ENTITY and ENTITIES - support - * check-relaxng-test-suite.py check-xsddata-test-suite.py: - cleanup/improvements of the regression tests batch - * test/relaxng/testsuite.xml: augmented libxml2 own testsuite - -Tue Mar 18 12:36:22 CET 2003 Daniel Veillard - - * relaxng.c: fixed error msg cleanup deallocation - * xmlschemastypes.c: added a function to handle lists of - atomic types, added support for IDREFS - -Tue Mar 18 01:28:15 CET 2003 Daniel Veillard - - * relaxng.c valid.c xmlschemastypes.c: added Datatype ID - and IDREF, usable from RelaxNG now - * include/libxml/xmlschemastypes.h: need to add a new interface - because the validation modifies the infoset - * test/relaxng/testsuite.xml: extended the testsuite - -Mon Mar 17 16:34:07 CET 2003 Daniel Veillard - - * relaxng.c: fixed the last core RelaxNG bug known #107083, - shemas datatype ID/IDREF support still missing though. - * xmlreader.c: fix a crashing bug with prefix raised by - Merijn Broeren - * test/relaxng/testsuite.xml: augmented the testsuite with - complex inheritance tests - -Sun Mar 16 18:45:50 CET 2003 Daniel Veillard - - * relaxng.c: switched back to the previous Relax-NG code base, - the derivation algorithm need severe constraining code to avoid - combinatorial explosion. Fixed the problem with Sebastian Rahtz - TEI based example and other bugs - * result/relaxng/*err: updated the results - * test/relaxng/testsuite.xml: started a new test suite - -Sat Mar 15 22:26:46 CET 2003 Daniel Veillard - - * relaxng.c include/libxml/relaxng.h: After coming to the conclusion - that the original RelaxNG validation code was un-fixeable, it got - rewritten to use the derivation algorithm from James Clark and - redebugged it (nearly) from scratch: - found 373 test schemas: 372 success 1 failures - found 529 test instances: 529 success 0 failures - -Tue Mar 11 12:08:23 CET 2003 Daniel Veillard - - * SAX.c parser.c: fix some recursion problems introduced in the - last release. - * relaxng.c: more debugging of the RNG validation engine, still - problems though. - -Mon Mar 10 14:10:47 CET 2003 Daniel Veillard - - * Makefile.am: stop generating wrong result file with * in name - * relaxng.c: fixing the include bug raised by Sebastian Rahtz - * result/relaxng/demo* test/relaxng/demo: added the tests from - Sebastian reproducing the problem. - -Sun Mar 9 18:02:31 MST 2003 John Fleck - - * doc/xmllint.1: regenerating man page from xmllint.xml to pick - up Aleksey's change - -Sun Mar 9 13:53:16 2003 Aleksey Sanin - - * xmllint.c doc/xmllint.xml: use $XMLLINT_INDENT environment - variable to control the indentation for the xmllint "--format" - option - -Sat Mar 8 14:27:43 CET 2003 Igor Zlatkovic - - * encoding.c: applied Gennady's patch against buffer overrun - -Fri Mar 7 19:29:40 CET 2003 Daniel Veillard - - * test/xsdtest/xsdtest.xml uri.c: after and exchange with James - Clark it appeared I had bug in URI parsing code ... - * relaxng.c include/libxml/relaxng.h: completely revamped error - reporting to not loose message from optional parts. - * xmllint.c: added timing for RNG validation steps - * result/relaxng/*: updated the result, all error messages changed - -Fri Mar 7 15:18:32 CET 2003 Daniel Veillard - - * xpath.c: fix bug #107804, the algorithm used for document order - computation was failing on attributes. - -Thu Mar 6 22:35:50 CET 2003 Daniel Veillard - - * valid.c: fix bug #107764 , possibility of buffer overflow - in xmlValidDebug() - -Wed Mar 5 17:41:37 CET 2003 Daniel Veillard - - * nanoftp.c include/libxml/nanoftp.h: adding xmlNanoFTPDele() - from Philipp Dunkel - -Wed Mar 5 10:57:09 CET 2003 Daniel Veillard - - * xmlschemastype.c: made powten array static it should not be exported - * HTMLparser.c: fix bug #107361 by reusing the code from the XML - parser function. - * testHTML.c: get rid of valgrind messages on the HTML SAX tests - -Fri Feb 28 00:23:00 CET 2003 Daniel Veillard - - * tree.c: fixed a node dump crash on attributes - * test/xsdtest/xsdtest.xml test/xsdtest/xsdtest.xsl: fixed - an URI test bug and get better output. - -Thu Feb 27 22:28:40 CET 2003 Daniel Veillard - - * check-xsddata-test-suite.py: give more infos - * relaxng.c: fix a bug reported by Sebastian Rahtz and - REF->DEF in attribute values. - -Thu Feb 27 21:09:32 CET 2003 Daniel Veillard - - * check-xsddata-test-suite.py test/xsdtest/xsdtest.xml - test/xsdtest/xsdtest.xsl: import of the XSD Datatype - regression tests from James Clark. - -Thu Feb 27 18:40:04 CET 2003 Daniel Veillard - - * relaxng.c xmlschemas.c xmlschemastypes.c - include/libxml/xmlschemastypes.h: added param support for relaxng - type checking, started to increment the pool of simple types - registered, still much work to be done on simple types and - facets checkings. - -Wed Feb 26 16:45:39 CET 2003 Daniel Veillard - - * entities.c: fixes again one of the problem raised by - James Clark in #106788 - -Wed Feb 26 15:46:48 CET 2003 Daniel Veillard - - * relaxng.c: Fixed a couple of problem raised by James Clark - in bug #107083, the support for ID/IDREF/IDREFS at the WXS - datatype level still not fixed though. - -Mon Feb 24 21:09:19 CET 2003 Daniel Veillard - - * configure.in: preparing release 2.5.4 - * doc/*: updated and rebuilt the docs - * relaxng.c: removed warnings - * result/relaxng/*: updated the results - -Mon Feb 24 20:53:17 CET 2003 Daniel Veillard - - * valid.c: fixes a DTD regexp generation problem. - -Mon Feb 24 20:12:57 CET 2003 Daniel Veillard - - * parser.c: fixes bug #105998 about false detection of - attribute consumption loop. - -Mon Feb 24 19:14:57 CET 2003 Daniel Veillard - - * xinclude.c: Fixes bug #106931 in XInclude entities merging. - -Mon Feb 24 18:50:35 CET 2003 Daniel Veillard - - * SAX.c: fixed bug #105992 - -Mon Feb 24 18:14:16 CET 2003 Daniel Veillard - - * tree.c: fixed xmlSetProp and al. when the node passed is not an - element. - * relaxng.c: fixed bugs 7.3 (though not complete) and memory leaks - found 373 test schemas: 369 success 4 failures - found 529 test instances: 525 success 4 failures - * check-relaxng-test-suite.py: added memory debug reporting - -Mon Feb 24 12:41:54 CET 2003 Daniel Veillard - - * uri.c parser.c: some warning removal on Igor's patch - * tree.c: seems I messed up with #106788 fix - * python/libxml.c: fixed some base problems when Python provides - the resolver. - * relaxng.c: fixed the interleave algorithm - found 373 test schemas: 364 success 9 failures - found 529 test instances: 525 success 4 failures - the resulting failures are bug in the algorithm from 7.3 and - lack of support for params - -Sun Feb 23 14:49:39 CET 2003 Daniel Veillard - - * parser.c: another fix for nodeinfo in entities problem - * tree.c entities.c: fixed bug #106788 from James Clark - some spaces need to be serialized as character references. - -Sat Feb 22 18:28:16 CET 2003 Igor Zlatkovic - - * parser.c uri.c: fixed the bug I introduced in the path - handling, reported by Sebastian Bergmann - -Sat Feb 22 00:19:48 CET 2003 Daniel Veillard - - * parser.c: fixing some nodeinfo in entities problem raised - by Glenn W. Bach - * relaxng.c: implemented the first section 7.3 check - * result/relaxng/*: updated the results - -Fri Feb 21 18:12:19 CET 2003 Daniel Veillard - - * relaxng.c: fixed some problems in the previous commit - and finished implementing 4.16 rules checking - found 373 test schemas: 353 success 20 failures - found 529 test instances: 519 success 6 failures - * result/relaxng/*: updated the results - -Fri Feb 21 16:37:39 CET 2003 Daniel Veillard - - * relaxng.c: implemented checks from section 7.2 - -Thu Feb 20 16:00:31 CET 2003 Daniel Veillard - - * relaxng.c: implemented the checks from section 7.1, fixed - some of the 4.20 and 4.21 problems. - found 373 test schemas: 338 success 35 failures - found 529 test instances: 519 success 6 failures - * result/relaxng/*: updated the results - -Thu Feb 20 01:09:24 CET 2003 Daniel Veillard - - * relaxng.c: implemented the 4.20 and 4.21 simplification rules. - * result/relaxng/*: updated the results - -Wed Feb 19 18:30:30 CET 2003 Daniel Veillard - - * relaxng.c: more bugfixes - * result/relaxng/*: updated the results - -Wed Feb 19 15:39:56 CET 2003 Igor Zlatkovic - - * DOCBparser.c: obsoleted xmlNormalizeWindowsPath - * HTMLparser.c: obsoleted xmlNormalizeWindowsPath - * SAX.c: ensured xmlDoc.URL is always canonic - * parser.c: obsoleted xmlNormalizeWindowsPath - * uri.c include/libxml/uri.h: introduced xmlCanonicPath - * xmlIO.c include/libxml/xmlIO.h: obsoleted xmlNormalizeWindowsPath - * win32/libxml2.def.src: added few exports - -Wed Feb 19 14:26:51 CET 2003 Daniel Veillard - - * Makefile.am configure.in: patched to have shared libraries - for Python regression tests and static binaries for gdb debug - in my development environment - * relaxng.c: more bugfixes - found 373 test schemas: 296 success 77 failures - found 529 test instances: 516 success 8 failures - * result/relaxng/*: updated the results - -Wed Feb 19 01:17:48 CET 2003 Daniel Veillard - - * relaxng.c: guess what ! Relax-NG bugfixing, what a surprize... - -Tue Feb 18 22:09:50 CET 2003 Daniel Veillard - - * xmlschemastypes.c: float/double check bugfix - * tree.c include/libxml/tree.h: exported a function for NMTOKEN - validation - * xmlreader.c: add a TODO for Jody - * relaxng.c: bugfix bugfix bugfix - found 373 test schemas: 300 success 73 failures - found 529 test instances: 507 success 10 failures - * result/relaxng/*: updated the results - -Tue Feb 18 00:33:17 CET 2003 Daniel Veillard - - * relaxng.c check-relaxng-test-suite.py: more RelaxNG bug hunting - -Mon Feb 17 18:23:32 CET 2003 Daniel Veillard - - * relaxng.c check-relaxng-test-suite.py: more work on the - RelaxNG implementation conformance testing. - found 373 test schemas: 284 success 89 failures - found 529 test instances: 448 success 47 failures - * result/relaxng/*: updated the results - -Sun Feb 16 16:48:38 CET 2003 Daniel Veillard - - * ChangeLog tree.c doc/libxml-doc.el doc/libxml2-api.xml: applied - a patch from Kjartan Maraas to fix some typos - -Sun Feb 16 16:40:52 CET 2003 Daniel Veillard - - * relaxng.c: more bug-hunting - * testRelax.c include/libxml/relaxng.h: added --tree to dump the - intermediate rng tree - * python/generator.py: patch from Stephane Bidoul to fix the generator - on python < 2.2 - -Fri Feb 14 17:49:26 CET 2003 Daniel Veillard - - * check-relaxng-test-suite.py relaxng.c: more testing on the - Relax-NG front, cleaning up the regression tests failures - current state and I forgot support for "mixed": - found 373 test schemas: 280 success 93 failures - found 529 test instances: 401 success 68 failures - * tree.c include/libxml/tree.h xmlschemastypes.c: finished and - moved the Name, NCName and QName validation routine in tree.c - * uri.c: fixed handling of URI ending up with #, i.e. having - an empty fragment ID. - * result/relaxng/*: updated the results - -Thu Feb 13 16:49:24 CET 2003 Daniel Veillard - - * check-xinclude-test-suite.py: improved the script accordingly - to the XInclude regression tests updates - * xpointer.c: Implemented XPointer element() Scheme W3C PR of 13 - November 2002 - * result/XPath/xptr/chapterschildseq result/XPath/xptr/vidchildseq - test/XPath/xptr/chapterschildseq test/XPath/xptr/vidchildseq: - augmented the Xpointer testsuite for the element() scheme - -Thu Feb 13 12:00:30 CET 2003 Daniel Veillard - - * relaxng.c: added TODO for the DTD compatibility spec - * xinclude.c: more bug fixes driven by the testsuite - -Tue Feb 11 19:01:02 CET 2003 Daniel Veillard - - * check-xinclude-test-suite.py xinclude.c: Work on the W3C/NIST - regression tests for XInclude, improved the script, improving - XInclude error reporting mechanism - -Mon Feb 10 17:19:14 CET 2003 Daniel Veillard - - * NEWS doc/* configure.in: preparing release 2.5.3 - -Mon Feb 10 17:11:22 CET 2003 Daniel Veillard - - * tree.c: trying to fix #104934 about some XHTML1 serialization - issues. - -Mon Feb 10 16:41:13 CET 2003 Daniel Veillard - - * encoding.c xmlIO.c: fixing bug #104646 about iconv based - encoding conversion when the input buffer stops in the - middle of a multibyte char - -Mon Feb 10 15:24:47 CET 2003 Daniel Veillard - - * test/relaxng/OASIS/spectest.xml: OASIS RelaxNG testsuite - * check-relaxng-test-suite.py: python script to run regression - against OASIS RelaxNG testsuite - * relaxng.c: some cleanup tweaks - * HTMLparser.c globals.c: cleanups in comments - * doc/libxml2-api.xml: updated the API - * result/relaxng/*: errors moved files, so large diffs but - no changes at the semantic level. - -Mon Feb 10 01:00:31 CET 2003 Daniel Veillard - - * tree.c: fixing #105678 problem when dumping a namespace node. - -Mon Feb 10 00:30:01 CET 2003 Daniel Veillard - - * xpath.c: fixed doc comment problems - * python/generator.py python/libxml_wrap.h python/types.c: adding - RelaxNG wrappers - * python/tests/Makefile.am python/tests/relaxng.py: added a specific - test of those early Python RelaxNG bindings - -Sun Feb 9 15:18:43 CET 2003 Daniel Veillard - - * libxml.spec.in: fixes a libtool problem on AMD 64bits builds - * relaxng.c: found the validation problem I had with interleave - when not covering all remaining siblings - * Makefile.am test.relaxng/* result/relaxng/*: augmented the - testsuite and check the RNG schemas against the RNG schemas - given in appendix A - -Sat Feb 8 18:55:43 CET 2003 Igor Zlatkovic - - * win32/Makefile.msvc: updates for RelaxNG - * win32/Makefile.mingw: updates for RelaxNG - * win32/libxml2.def.src: added RelaxNG exports - -Fri Feb 7 14:00:53 CET 2003 Daniel Veillard - - * xinclude.c: applied another bug fix from Sean Chittenden - -Fri Feb 7 13:34:08 CET 2003 Daniel Veillard - - * configure.in xmllint.c: I f...ed up the default configuration - of schemas and --relaxng option display in xmllint, pointed by - Morus Walter. - * xlink.c: Sean Chittenden pointed a couple of errors in the XLink - detection module, fixes bug #105374. - -Fri Feb 7 01:43:38 CET 2003 Daniel Veillard - - * xmlschemastypes.c: added the boolean base type. - -Thu Feb 6 10:23:52 CET 2003 Daniel Veillard - - * xmlschemastypes.c: started implementing some of the missing - default simple types - * result/relaxng/*: updated the results - -Wed Feb 5 15:28:04 CET 2003 Daniel Veillard - - * NEWS doc/*: updated the docs, ready for 2.5.2 release - -Wed Feb 5 14:15:59 CET 2003 Daniel Veillard - - * HTMLparser.c tree.c xmlIO.c: comments cleanups - * Makefile.am: use xmllint for doing the RelaxNG tests - * configure.in: preparing 2.5.2 made schemas support default to - on instead of off - * relaxng.c: removed the verbosity - * xmllint.c: added --relaxng option - * python/generator.py python/libxml_wrap.h: prepared the integration - of the new RelaxNG module and schemas - * result/relaxng/*: less verbose output - -Wed Feb 5 12:00:36 CET 2003 Daniel Veillard - - * valid.c: do not run content model validation if the - content is not determinist - -Wed Feb 5 11:43:58 CET 2003 Daniel Veillard - - * SAX.c: added the redefinition of namespaced attribute - check that was missing as Fabrice Desré pointed out. - -Wed Feb 5 11:09:29 CET 2003 Daniel Veillard - - * HTMLparser.c include/libxml/HTMLparser.h: applied HTML - improvements from Nick Kew, allowing to do more checking - to HTML elements and attributes. - -Tue Feb 4 23:47:06 CET 2003 Daniel Veillard - - * xinclude.c: fixing bug #105137 about entities declaration - needing to be copied to the including document. - -Tue Feb 4 20:26:22 CET 2003 Daniel Veillard - - * catalog.c: fixed bug #104817 with delegateURI - * xpath.c: fixing bugs #104123 and #104125 - -Tue Feb 4 17:12:56 CET 2003 Daniel Veillard - - * configure.in valid.c xmlreader.c python/libxml_wrap.h - python/types.c: fixing #104096 to compile without regexps - -Tue Feb 4 16:31:55 CET 2003 Daniel Veillard - - * valid.c: fixing bug #103969 forgot to add an epsilon transition - when building the automata for elem* - -Tue Feb 4 16:21:07 CET 2003 Daniel Veillard - - * HTMLparser.c: applied patch from Arne de Bruijn fixing - bug #103827 - -Tue Feb 4 16:17:09 CET 2003 Daniel Veillard - - * HTMLparser.c: updating a comment, fixing #103776 - -Tue Feb 4 16:05:53 CET 2003 Daniel Veillard - - * parser.c: fixing bug 105049 for validity checking of content - within recursive entities. - -Tue Feb 4 15:40:54 CET 2003 Daniel Veillard - - * HTMLparser.c: try to fix # 105049 - * relaxng.c xmlschemastypes.c: a couple of changes and extensions - * tree.c: updated a function comment - -Tue Feb 4 00:20:58 CET 2003 Daniel Veillard - - * relaxng: more work on grammars and refs/defs - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Mon Feb 3 14:16:59 CET 2003 Daniel Veillard - - * relaxng: more work on name classes, except support - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Mon Feb 3 11:56:05 CET 2003 Daniel Veillard - - * relaxng: more work on name classes, the "validate all" schemas - seems to work now. - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Mon Feb 3 09:50:26 CET 2003 Daniel Veillard - - * python/libxml.c: removed an unprotedted debug message Aleksi Suhonen - * parser.c: put a guard against infinite document depth, basically - trying to avoid another kind of DoS attack. - * relaxng.c: some code w.r.t. nameClasses - -Sun Feb 2 17:01:43 CET 2003 Daniel Veillard - - * test/relaxng/* result/relaxng/*: check all the namespace support - was actually correct based on tutorial section 10. - -Sun Feb 2 15:33:38 CET 2003 Daniel Veillard - - * relaxng: include seems to work okay now - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Sat Feb 1 19:44:58 CET 2003 Daniel Veillard - - * relaxng.c: a bit of work done in the train back. - * test/relaxng/*: added one of the include tests - -Thu Jan 30 14:06:55 CET 2003 Daniel Veillard - - * relaxng: more work done in the train - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Wed Jan 29 23:44:58 CET 2003 Daniel Veillard - - * relaxng.c: debugging of externalRef - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Wed Jan 29 22:06:04 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG, implementing externalRef - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - * Makefile.am: cleanup to Relaxtests target - -Wed Jan 29 00:08:38 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG, implementing interleave - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Tue Jan 28 21:56:49 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG, implementing interleave - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Mon Jan 27 07:35:29 MST 2003 John Fleck - - * doc/tutorial/customfo.xsl - * doc/tutorial/customhtml.xsl - adding stylesheet customizations used to generate fo - for pdf and html - -Mon Jan 27 13:29:43 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - * xmlschemastypes.c: added a number of base type definition but not - the associated checks, those are still TODOs - -Sun Jan 26 17:37:06 MST 2003 John Fleck - - in docs/tutorial: - * apa.html - * apb.html - * apc.html - * apd.html - * ape.html - * apf.html - * apg.html - * ar01s02.html - * ar01s03.html - * ar01s04.html - * ar01s05.html - * ar01s06.html - * ar01s07.html - * ar01s08.html - * index.html - * xmltutorial.pdf - * xmltutorial.xml - add index to tutorial - -Sun Jan 26 17:02:29 MST 2003 John Fleck - - * doc/xmlcatalog.1 - * doc/xmlcatalog_man.html - * doc/xmlcatalog_man.xml - belatedly fixing bug #93622 (adds rewriteURI type to - "--add" option in xmlcatalog man page - -Sun Jan 26 20:47:26 CET 2003 Daniel Veillard - - * xmlcatalog.c xmllint.c: applied patch for NetBSD by - Julio Merino, closing #104475 - -Sun Jan 26 20:38:43 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Sun Jan 26 01:49:58 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Sat Jan 25 18:59:54 CET 2003 Daniel Veillard - - * README: updated the policy on private mail answers - * relaxng.c: more work on Relax-NG - * test/relaxng/* result/relaxng/*: augmented/updated the - regression tests - -Fri Jan 24 15:12:44 CET 2003 Daniel Veillard - - * error.c parser.c tree.c: applied a documentation patch from - Stefan Kost - -Fri Jan 24 02:00:50 CET 2003 Daniel Veillard - - * relaxng.c: more work on Relax-NG - * doc/*: regenerated the docs - * test/relaxng/* result/relaxng/*: updated and augmented the - Relax-NG regression tests and results - -Thu Jan 23 19:26:20 CET 2003 Daniel Veillard - - * Makefile.am configure.in relaxng.c include/libxml/relaxng.h: - First commit of the new Relax-NG validation code, not generally - useful yet. - * test/relaxng/* result/relaxng/*: current state of the regression - tests - -Thu Jan 23 19:22:54 CET 2003 Daniel Veillard - - * tree.c: minimized the memory allocated for GetContent - and a bit of cleanup. - -Thu Jan 23 17:41:37 CET 2003 Daniel Veillard - - * python/generator.py: seems there is no good reasons to - not generate bindings for XPointer - -Tue Jan 21 13:19:35 CET 2003 Daniel Veillard - - * xmlreader.c doc/apibuild.py: applied a new patch from - Stéphane Bidoul for cleanups - * doc/libxml2-api.xml: rebuilt the API description with - new entry points - -Mon Jan 20 23:25:00 CET 2003 Daniel Veillard - - * xmlreader.c python/drv_libxml2.py python/generator.py - python/libxml.c python/libxml.py python/libxml_wrap.h - python/types.c: patch from Stéphane Bidoul for better per - context error message APIs - * python/tests/ctxterror.py python/tests/readererr.py: - update of the tests - -Sun Jan 19 17:09:28 MST 2003 John Fleck - - * doc/guidelines.html - grammar and spelling cleanup - -Fri Jan 17 00:31:30 CET 2003 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h python/generator.py - python/libxml.c python/libxml.py win32/libxml2.def.src: applied - a patch from Stéphane Bidoul to allow per XMLtextReader error - and warning handling - * python/tests/Makefile.am python/tests/readererr.py: adding the - specific regression test - -Tue Jan 14 17:00:08 CET 2003 Daniel Veillard - - * xpath.c: Alexey Efimov pointed out that concat('a', 'b', ) - should raise a syntax error - -Tue Jan 14 15:39:14 CET 2003 Daniel Veillard - - * python/libxml.c: cleanup patch from Stéphane Bidoul - -Tue Jan 14 14:41:18 CET 2003 Daniel Veillard - - * encoding.c: fixing bug #103100 with a dummy UTF8ToUTF8 copy - -Tue Jan 14 12:40:29 CET 2003 Daniel Veillard - - * python/generator.py python/libxml.c python/libxml.py - python/libxml_wrap.h python/types.c: applied and fixed a patch - from Stéphane Bidoul to provide per parser error handlers at the - Python level. - * python/tests/Makefile.am python/tests/ctxterror.py: added a - regression test for it. - -Tue Jan 14 01:15:04 CET 2003 Daniel Veillard - - * xmlreader.c: fixed the streaming property of the reader, - it was generating tree faster than consuming it. Pointed out - by Nate Myers - * tree.c: fixed a bug in xmlSaveFormatFileEnc if passed a NULL doc - -Sun Jan 12 22:18:02 CET 2003 Igor Zlatkovic - - * win32/libxml2.def.src: added more xmlreader and other exports - -Fri Jan 10 18:04:32 CET 2003 Daniel Veillard - - * xpath.c: fix to the XPath implementation for parent and - ancestors axis when operating on a Result Value Tree. - Fixes bug #100271 - -Fri Jan 10 17:07:01 CET 2003 Daniel Veillard - - * nanoftp.c nanohttp.c xmlIO.c: patch from Stefano Zacchiroli - to fix some URI/file escaping problems - -Fri Jan 10 16:20:34 CET 2003 Daniel Veillard - - * python/generator.py: fixed a bug raised by Raymond Wiker, - docSetRootElement() should not raise an exception if the - return is None - -Fri Jan 10 14:13:03 CET 2003 Daniel Veillard - - * python/libxml.py python/libxml.c python/libxml2-python-api.xml: - fixed bug #102181 by applying the suggested change and fixing - the generation/registration problem. - -Fri Jan 10 13:47:55 CET 2003 Daniel Veillard - - * HTMLparser.c: fixed bug #102960 by reusing the XML name parsing - routines. - -Fri Jan 10 00:16:49 CET 2003 Daniel Veillard - - * parser.c: one more IsEmptyElement crazyness, that time in - external parsed entities if substitution is asked. - * python/tests/reader3.py: added a specific test. - -Thu Jan 9 22:35:31 CET 2003 Daniel Veillard - - * python/drv_libxml2.py: update from Stéphane Bidoul: python 2.1 - support and improved error handler registration - -Thu Jan 9 14:16:38 CET 2003 Daniel Veillard - - * HTMLtree.c tree.c: fixes #102920 about namespace handling in - HTML output and section 16.2 "HTML Output Method" of XSLT-1.0 - * README: fixed a link - -Wed Jan 8 18:32:25 CET 2003 Daniel Veillard - - * configure.in doc/* NEWS: preparing 2.5.1 release - * SAX.c parser.c: fixing XmlTextReader bug - -Wed Jan 8 00:13:01 CET 2003 Daniel Veillard - - * SAX.c: fuck, I introduced a memory leak on external parsed - entities in 2.5.0 :-( - -Tue Jan 7 12:12:45 CET 2003 Daniel Veillard - - * xmllint.c: another fix needed as pointed by Christophe Merlet - for --stream --debug if compiled without debug support. - -Mon Jan 6 20:53:08 MST 2003 John Fleck - - * doc/xmllint.xml - * doc/xmllint.1: - update man page with --stream and --chkregister - -Tue Jan 7 01:17:26 CET 2003 Daniel Veillard - - * globals.c: fixed --with-threads compile - * xmllint.c: fixed --without-debug compile - * include/libxml/globals.h: cleanup - * include/libxml/schemasInternals.h: add a missing include - -Mon Jan 6 14:06:07 CET 2003 Daniel Veillard - - * configure.in NEWS: preparing 2.5.0 release - * SAX.c: only warn in pedantic mode about namespace name - brokeness - * globals.c: fix a doc generation problem - * uri.c: fix #101520 - * doc/*: updated and rebuilt the doc for the release, includuding - stylesheet update - * python/Makefile.am: fix a filename bug - -Mon Jan 6 12:05:12 CET 2003 Daniel Veillard - - * doc/tutorial/* : fixed #101894 if doc == NULL xmlFreeDoc - should not be called. - -Mon Jan 6 11:59:09 CET 2003 Daniel Veillard - - * libxml-2.0.pc.in: applied the patch to fix #101894 - -Sun Jan 5 23:35:47 CET 2003 Daniel Veillard - - * tree.c : applied patch from Lukas Schroeder for register callbacks - * valid.c: modified patch from Lukas Schroeder to test - register callbacks with --chkregister - -Sun Jan 5 02:23:20 CET 2003 Daniel Veillard - - * xmlreader.c: seriously changed the way data are pushed to - the underlying parser, go by block of 512 bytes instead of - tryng to detect tag boundaries at that level. Changed the - way empty element are detected and tagged. - * python/tests/reader.py python/tests/reader2.py - python/tests/reader3.py: small changes mostly due to context - reporting being different and DTD node being reported. Some - errors previously undetected are now caught and fixed. - * doc/xmlreader.html: flagged last section as TODO - -Sat Jan 4 20:40:28 CET 2003 Daniel Veillard - - * python/libxml.py: integrated the Python 2.2 optimizations - from Hannu Krosing, while maintaining compatibility with - 1.5 and 2.1 - -Sat Jan 4 17:33:17 CET 2003 Daniel Veillard - - * xmllint.c: a bit of cleanup - * xmlreader.c: small fix - * doc/xmlreader.html: more work on the XmlTextReader tutorial - * python/libxml.py: a few fixes pointed out by Hannu Krosing - -Sat Jan 4 13:46:14 CET 2003 Daniel Veillard - - * python/setup.py.in: patch from Stéphane Bidoul to include - drv_libxml2.py in setup.py - -Sat Jan 4 01:43:06 CET 2003 Daniel Veillard - - * doc/xmlreader.html: starting documenting the new XmlTextReader - interface. - -Fri Jan 3 17:18:32 CET 2003 Daniel Veillard - - * xmllint.c: added the --stream flag to use the TextReader API - * xmlreader.c: small performance tweak - -Fri Jan 3 13:50:55 CET 2003 Daniel Veillard - - * xmlreader.c python/tests/reader2py: okay the DTD validation - code on top of the XMLTextParser API should be solid now. - -Fri Jan 3 02:17:18 CET 2003 Daniel Veillard - - * xmlreader.c python/tests/reader2py: Fixing some more mess - with validation and recursive entities while using the - reader interface, it's getting a bit messy... - -Thu Jan 2 15:15:26 CET 2003 Daniel Veillard - - * xmlreader.c python/tests/reader.py: another couple of problem - related to IsEmptyElement reported by Stéphane Bidoul needed - some fixes. - -Thu Jan 2 13:57:07 CET 2003 Daniel Veillard - - * libxml.spec.in python/Makefile.am python/drv_libxml2.py: - integrated drv_libxml2.py Python xml.sax driver from Stéphane Bidoul - based on the python XmlTextReader interface. - -Wed Jan 1 22:05:40 CET 2003 Daniel Veillard - - * tree.c: backing out one change in the last patch which broke the - regression tests - -Wed Jan 1 21:57:28 CET 2003 Daniel Veillard - - * global.data globals.c tree.c include/libxml/globals.h: applied - an old patch from Lukas Schroeder to track node creation and - destruction. Probably missing a lot of references at the moment - and not usable reliably. - -Wed Jan 1 20:12:07 CET 2003 Daniel Veillard - - * NEWS doc/Makefile.am doc/news.xsl: generate the NEWS file - from doc/news.html and a stylesheet - -Wed Jan 1 16:09:57 CET 2003 Daniel Veillard - - * xmlreader.c python/tests/reader.py: fixed another couple of - xmlreader bugs reported by Stéphane Bidoul and added tests. - -Wed Jan 1 15:42:54 CET 2003 Daniel Veillard - - * xmlreader.c python/tests/reader2.py: fixed another validity - checking in external parsed entities raised by Stéphane Bidoul - and added a specific regression test. - * python/tests/reader3.py: cleanup - -Tue Dec 31 15:44:02 CET 2002 Daniel Veillard - - * xmlreader.c python/tests/reader2.py: fixed a problem with - validation within entities pointed by Stéphane Bidoul, augmented - the tests to catch those. - -Tue Dec 31 12:15:37 CET 2002 Daniel Veillard - - * python/generator.py: modified the generator to allow keeping - class references when creating new classes, needed to fix a bug - pointed by Stéphane Bidoul where the input buffer of the - xmlTextReader instance gets destroyed if the python wrapper for - the input is not referenced anymore. - -Mon Dec 30 19:39:36 CET 2002 Daniel Veillard - - * xmlreader.c python/tests/reader.py: fixed another pair of problem - pointed by Stéphane Bidoul: depth start at 0 and a parse problem. - -Mon Dec 30 13:36:50 CET 2002 Daniel Veillard - - * xmlreader.c python/tests/reader.py: fixed another problem - pointed by Stéphane Bidoul - -Mon Dec 30 12:39:55 CET 2002 Daniel Veillard - - * xmlreader.c python/tests/reader.py: fixed a limit case problem - with "" - -Mon Dec 30 11:53:44 CET 2002 Daniel Veillard - - * SAX.c: warn on xmlns:prefix="foo" - * xmlreader.c python/tests/reader.py: fixed a couple of problem - for namespace attributes handling. - -Mon Dec 30 00:59:07 CET 2002 Daniel Veillard - - * entities.c parser.c tree.c include/libxml/entities.h: Fixed - a really nasty problem raised by a DocBook XSLT transform - provided by Sebastian Bergmann - -Sun Dec 29 12:13:18 CET 2002 Daniel Veillard - - * xmlreader.c python/tests/reader.py: fixed a bug pointed out - by Stéphane Bidoul and integrated it into the tests - -Sat Dec 28 23:49:12 CET 2002 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml: - extended the XmlTextReader API a bit, addding accessors for - the current doc and node, and an entity substitution mode for - the parser. - * python/libxml.py python/libxml2class.txt: related updates - * python/tests/Makefile.am python/tests/reader.py - python/tests/reader2.py python/tests/reader3.py: updated a bit - the old tests and added a new one to test the entities handling - -Sat Dec 28 22:11:57 CET 2002 Daniel Veillard - - * python/generator.py python/libxml2class.txt - python/tests/reader.py python/tests/reader2.py: changed the - generator to provide casing for the XmlTextReader similar to - C# so that examples and documentation are more directly transposable. - Fixed the couple of tests in the suite. - -Sat Dec 28 15:55:32 CET 2002 Daniel Veillard - - * doc/guidelines.html: added a document on guildeline for - publishing and deploying XML - -Fri Dec 27 20:35:15 CET 2002 Daniel Veillard - - * valid.c xmlreader.c: final touch running DTD validation - on the XmlTextReader - * python/tests/Makefile.am python/tests/reader2.py: added a - specific run based on the examples from test/valid/*.xml - -Fri Dec 27 15:17:20 CET 2002 Daniel Veillard - - * python/libxml.py: added a few predefined xmlTextReader parser - configuration values. - -Fri Dec 27 12:57:22 CET 2002 Daniel Veillard - - * python/libxml_wrap.h: trying to fix #102037 - -Fri Dec 27 12:18:14 CET 2002 Daniel Veillard - - * SAX.c: fixing bug #95296, when the predefined entities - are redefined in the DTD the default one must be used - instead anyway. - -Wed Dec 25 19:22:06 MST 2002 John Fleck - - * doc/xmllint.xml - * doc/xmllint.1 - Add discussion of XML_DEBUG_CATALOG to xmllint man - page - bug #100907 - -Mon Dec 23 16:54:22 CET 2002 Daniel Veillard - - * xmlreader.c: Fixed the empty node detection to avoid reporting - an inexistant close tag. - -Mon Dec 23 15:42:24 CET 2002 Daniel Veillard - - * python/libxml.c python/setup.py.in: patch from Stéphane Bidoul - for Python 2.1 - -Sun Dec 22 11:24:06 CET 2002 Daniel Veillard - - * testC14N.c vms/config.vms: applied Craig A. Berry patches for VMS - -Fri Dec 20 11:27:49 CET 2002 Daniel Veillard - - * doc/libxml2-api.xml python/tests/reader.py: one really need - to provide the base URI information when creating a reader parser - from an input stream. Updated the API and the example using it. - -Fri Dec 20 01:11:30 CET 2002 Daniel Veillard - - * testReader.c xmlreader.c valid.c include/libxml/tree.h - include/libxml/valid.h include/libxml/xmlreader.h: working on - DTD validation on top of xml reader interfaces. Allows to - validate arbitrary large instances. This required some extensions - to the valid module interface and augmenting the size of xmlID - and xmlRef structs a bit. - * uri.c xmlregexp.c: simple cleanup. - -Wed Dec 18 15:51:22 CET 2002 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml: more - work on the xml reader interfaces. - * AUTHORS MAINTAINERS doc/* win32/*: updated Igor's mail and the - Web page for the Windows binaries. - -Tue Dec 17 19:31:07 CET 2002 Daniel Veillard - - * xmlIO.c: applied a patch for VMS following the report by - Nigel Hall - -Tue Dec 17 11:29:41 CET 2002 Daniel Veillard - - * parser.c: the parseStartTag bug fix wasn't complete. - -Mon Dec 16 23:00:05 CET 2002 Daniel Veillard - - * parser.c: Vyacheslav Pindyura managed to trigger a bug in - parseStartTag, fixing it. - * test/att4 result/att4 result/noent/att4: adding the test - * xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml: added - more methods to XmlTextReader. - -Mon Dec 16 19:31:16 CET 2002 Igor Zlatkovic - - * win32/libxml2.def.src: added more xml reader exports - * win32/Makefile.msvc win32/Makefile.mingw: added xml reader interface - to the build - -Mon Dec 16 06:36:54 MST 2002 John Fleck - - * doc/tutorial/xmltutorial.xml - plus generated html and pdf - Updating tutorial again based on further comments from Niraj - Tolia on the last iteration - -Sun Dec 15 21:27:30 MST 2002 John Fleck - - * doc/tutorial/xmltutorial.xml - * doc/tutorial/includekeyword.c - * doc/tutorial/includegetattribute.c - plus generated html and pdf - Adding fix from Niraj Tolia to tutorial to properly free memory. - -Mon Dec 16 00:34:25 CET 2002 Daniel Veillard - - * xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml: added - more methods of XmlTextReader. - * python/libxml2class.txt python/tests/reader.py: this increased the - methods in the bndings, augmented the test to check those new - functions. - -Sat Dec 14 23:57:39 CET 2002 Daniel Veillard - - * xmlreader.c doc/libxml2-api.xml: added the close and getattribute - methods of XmlTextReader. - * python/generator.py python/libxml_wrap.h python/types.c - python/libxml2class.txt: added the reader to the Python bindings - * python/tests/Makefile.am python/tests/reader.py: added a specific - test for the Python bindings of the Reader APIs - * parser.c: small cleanup. - -Fri Dec 13 11:39:44 CET 2002 Daniel Veillard - - * xinclude.c: fallback was only copying the first child not the - full child list of the fallback element, closes #89684 as reopened - by Bernd Kuemmerlen - -Thu Dec 12 13:34:59 CET 2002 Igor Zlatkovic - - * win32/libxml2.def.src: exported htmlNodeDumpOutput - -Thu Dec 12 10:59:11 CET 2002 Daniel Veillard - - * configure.in: preparing release of 2.4.30 - * doc/apibuild.py doc/libxml2-api.xml: fixups to the api builder, - gives enum values, fix functype return type, put back fields in - structs - * doc/*: updated the docs rebuilt - -Thu Dec 12 01:09:34 CET 2002 Daniel Veillard - - * HTMLtree.c include/libxml/HTMLtree.h: patch from Mark Vakoc - about htmlNodeDumpOutput location. - * xpath.c: removed an undefined function signature - * doc/apibuild.py doc/libxml2-api.xml: the script was exporting - too many symbols in the API breaking the python bindings. - Updated with the libxslt/libexslt changes. - -Wed Dec 11 20:26:15 CET 2002 Daniel Veillard - - * configure.in: preparing release of 2.4.29 - * doc/*: rebuilt the docs and API - * xmlreader.c: a few more fixes for the XmlTextReader API - -Wed Dec 11 18:01:15 CET 2002 Igor Zlatkovic - - * include/win32config.h: applied mingw patch from Magnus Henoch - -Wed Dec 11 16:58:48 CET 2002 Daniel Veillard - - * catalog.c doc/libxml2-api.xml: a bit more cleanup - -Wed Dec 11 14:54:47 CET 2002 Daniel Veillard - - * doc/apibuild.py doc/libxml2-api.xml doc/Makefile.am: new API - building Python script, does the C parsing directly, generates - a better API description including structure fieds defs and - enums. Still a couple of bugs, but good enough for the python - wrappers now. - * DOCBparser.c SAX.c nanohttp.c parser.c parserInternals.c tree.c - valid.c xmlIO.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c - include/libxml/schemasInternals.h include/libxml/tree.h: more - cleanup based on the python analysis script reports. - * libxml.spec.in: make sure the API XML description is part of the - devel package. - -Tue Dec 10 16:16:34 CET 2002 Daniel Veillard - - * DOCBparser.c HTMLparser.c c14n.c debugXML.c encoding.c hash.c - nanoftp.c nanohttp.c parser.c parserInternals.c testC14N.c - testDocbook.c threads.c tree.c valid.c xmlIO.c xmllint.c xmlmemory.c - xmlreader.c xmlregexp.c xmlschemas.c xmlschemastypes.c xpath.c: - code cleanup, especially the function comments. - * tree.c: fixed a small bug when freeing nodes which are XInclude ones. - -Mon Dec 9 15:08:17 CET 2002 Daniel Veillard - - * Makefile.am xmlreader.c include/libxml/Makefile.am - include/libxml/xmlreader.h: Adding a new set of APIs based on - the C# TextXmlReader API but converted to C. Allow to parse - in constant memory usage, far simpler to program and explain - than the SAX like APIs, unfinished but working. - * testReader.c: test program - -Sun Dec 8 18:36:01 CET 2002 Igor Zlatkovic - - * win32/libxml2.def.src: applied YALDSP from Mark Vakoc - -Wed Dec 4 16:08:49 CET 2002 Daniel Veillard - - * tree.c: Chip turner indicated that XHTML1 serialization - rule for style actually break on both IE and Mozilla, - try to avoid the rule if escaping ain't necessary - -Wed Dec 4 12:43:28 CET 2002 Daniel Veillard - - * nanhttp.c: handle HTTP URL escaping, problem reported by - Glen Nakamura and Stefano Zacchiroli - -Sat Nov 30 12:19:17 CET 2002 Daniel Veillard - - * DOCBparser.c HTMLparser.c parser.c valid.c xpath.c: code cleanup - -Thu Nov 28 12:53:22 CET 2002 Daniel Veillard - - * uri.c: Johann Richard pointed out some XPointer problems for - URN based URI references in XInclude. Modified the URI parsing - and saving routines to allow correct parsing and saving of - XPointers, especially when attached to "opaque" scheme accordingly - to RFC 2396 - -Wed Nov 27 20:36:08 CET 2002 Daniel Veillard - - * HTMLtree.c include/libxml/HTMLtree.h: applied the same kind - of refactoring to the HTML saving code. - * doc/libxml2-*.xml doc/API*.html: slight API changes got reflected - in the doc. - -Wed Nov 27 12:40:16 CET 2002 Daniel Veillard - - * tree.c include/libxml/tree.h: refactored the XML dump of a node - to a buffer API to reuse the generic dump to an OutputIO layer, - this reduces code, fixes xmlNodeDump() for XHTML, also made - xmlNodeDump() now return the number of byte written. - -Wed Nov 27 09:00:00 CET 2002 Daniel Veillard - - * python/setup.py.in: another patch from Stéphane Bidoul for - Python bindings on Windows - * doc/parsedecl.py: small cleanup - -Mon Nov 25 17:28:53 CET 2002 Daniel Veillard - - * libxml.spec.in configure.in: add a line in %changelog for releases - -Mon Nov 25 14:18:27 CET 2002 Daniel Veillard - - * parser.c: patch from Marcus Clarke fixing a problem in entities - parsing that was detected in KDe documentations environment. - -Mon Nov 24 14:13:21 CET 2002 ERDI Gergo - - * python/libxml.c (libxml_prev): Return the previous as opposed to - the next node (I guess this is the result of some cut & paste programming:) - -Sat Nov 23 17:22:22 CET 2002 Daniel Veillard - - * doc/Makefile.am: Jan Rafaj pointed a bug in the Makefile. - -Sat Nov 23 12:21:24 CET 2002 Daniel Veillard - - * python/generator.py python/libxml.c python/setup.py.in: trying - to fix the Python bindings build on Windows (Stéphane Bidoul) - -Fri Nov 22 22:41:34 CEST 2002 Igor Zlatkovic - - * win32/configure.js: added option for python bindings - * win32/libxml2.def.src: added more exports - -Fri Nov 22 18:50:34 CET 2002 Igor Zlatkovic - - * win32/Makefile.mingw: fixed unresolved symbols when linking with - pthreads - * win32/wince/*: applied updates to Windows CE port from Javier - -Fri Nov 22 15:51:22 CET 2002 Daniel Veillard - - * configure.in: preparing 2.4.28 - * libxml.spec.in doc/Makefile.am: some cleanup - * doc/*: updated the news and regenerated. - -Fri Nov 22 14:15:14 CET 2002 Daniel Veillard - - * HTMLparser.c: final touch at closing #87235

end tags - need to be generated. - * result/HTML/cf_128.html result/HTML/test2.html result/HTML/test3.html: - this change slightly the output of a few tests - * doc/*: regenerated - -Fri Nov 22 13:26:19 CET 2002 Daniel Veillard - - * parserInternals.c: fixing bug #99190 when UTF8 document are - parsed using the progressive parser and the end of the chunk - is in the middle of an UTF8 multibyte character. - -Fri Nov 22 13:13:00 HKT 2002 William Brack - - * threads.c: fixed initialization problem in xmlNewGlobalState - which was causing crash. - * globals.c: removed duplicate call to initxmlDefaultSAXHandler - in xmlInitializeGlobalState. - * parserInternals.c: cleaned up ctxt->sax initialisation. - -Thu Nov 21 15:05:45 CET 2002 Daniel Veillard - - * tree.c include/libxml/tree.h: modified the existing APIs - to handle XHTML1 serialization rules automatically, also add - xmlIsXHTML() to libxml2 API. Some tweaking to make sure - libxslt serialization uses it when needed without changing - the library API. - * test/xhtml1 result/noent/xhtml1 result/valid/xhtml1.xhtml - result/xhtml1: added a new test specifically for xhtml1 output - and updated the result of one XHTML1 test - -Wed Nov 20 14:24:56 CET 2002 Daniel Veillard - - * xinclude.c parserInternals.c encoding.c: fixed #99082 - for xi:include encoding="..." support on text includes. - * result/XInclude/tstencoding.xml test/XInclude/docs/tstencoding.xml - test/XInclude/ents/isolatin.txt : added a specific regression test - * python/generator.py python/libxml2class.txt: fixed the generator - the new set of comments generated for doc/libxml2-api.xml were - breaking the python generation. - -Tue Nov 19 23:25:47 CET 2002 Daniel Veillard - - * doc/Makefile.am: repair some problem if gtk-doc fail or such - * configure.in: patch for Solaris on new autoconf closes #98880 - * doc/parsedecl.py: repair the frigging API building script, - did I say that python xmllib sucks ? - * doc/libxml2-api.xml doc/libxml2-refs.xml: regenerated, reordering - and some comment are no more truncated. - -Tue Nov 19 09:09:04 CET 2002 Daniel Veillard - - * parser.c: Martin Stoilov pointed out a potential leak in - xmlCreateMemoryParserCtxt - -Mon Nov 18 16:05:51 CET 2002 Daniel Veillard - - * HTMLparser.c: fixed bug #98879 a corner case when 0 is - included in HTML documents and using the push parser. - -Mon Nov 18 00:11:24 CET 2002 ERDI Gergo - - * configure.in (PYTHON_SITE_PACKAGES): If --with-python is - specified, look for the Python interpreter not just in the - specified root but also in the specified location. Fixes #98825 - -Sun Nov 17 23:36:06 CET 2002 Daniel Veillard - - * python/libxml.c: fixing bug #98792 , node may have no doc - and dereferencing without checking ain't good ... - -Sun Nov 17 10:25:43 CET 2002 Daniel Veillard - - * configure.in: preparing release 2.4.27 - * doc/* : updated and rebuilt the docs - * doc/Makefile.am libxml.spec.in: try to make sure the tutorial - and all the docs are actually packaged and in the final RPMs - * parser.c parserInternals.c include/libxml/parser.h: restore - xmllint --recover feature. - -Sat Nov 16 16:30:25 CET 2002 Daniel Veillard - - * parser.c xpath.c: fixing #96925 wich was also dependent on the - processing of parsed entities, and XPath computation on sustitued - entities. - * testXPath.c: make sure entities are substitued. - -Fri Nov 15 16:22:54 CET 2002 Daniel Veillard - - * parser.c: fixed #96594, which was totally dependent on the - processing of internal parsed entities, which had to be changed. - -Fri Nov 15 12:16:07 CET 2002 Daniel Veillard - - * Makefile.am python/Makefile.am python/tests/Makefile.am: - trying to fix bug #98517 about building outside the source tree - * doc/xml.html doc/FAQ.html: fixed the link to libiconv #94585 - -Thu Nov 14 18:41:55 CEST 2002 Igor Zlatkovic - - * include/win32config.h: cleanup - * win32/Makefile.mingw: integrated mingw in JScript configure - * win32/Makefile.msvc: modified to allow mingw coexistence - * win32/configure.js: integrated mingw - * win32/Readme.txt: cleanup - -Tue Nov 12 22:06:45 CET 2002 Daniel Veillard - - * HTMLparser.c: strengthen the guard in the Pop macros, - like in the XML parser, closes bug #97315 - -Tue Nov 12 21:56:39 CET 2002 Daniel Veillard - - * include/libxml/parser.h: fixed bug #98338 , fatalError SAX - callback is never used. - -Tue Nov 12 13:32:50 CET 2002 Daniel Veillard - - * parserInternals.c: fixed the initialization of the SAX structure - which was breaking xsltproc - * xpath.c: patch from Petr Pajas for CDATA nodes - * tree.c: patch from Petr Pajas improving xmlGetNodePath() - * parser.c include/libxml/parser.h: patch from Peter Jones - removing a leak in xmlSAXParseMemory() and adding the - function xmlSAXParseMemoryWithData() - -Mon Nov 11 20:47:03 MST 2002 John Fleck - - adding pdf of tutorial, changing web page to link to it - * doc/tutorial/xmltutorial.pdf - * doc/xml.html - * doc/docs.html - -Sun Nov 10 20:48:57 MST 2002 John Fleck - - * doc/tutorial/ar01s08.html - adding file what I forgot for tutorial - -Sun Nov 10 20:33:13 MST 2002 John Fleck - - Adding encoding discussion to tutorial - Added: - * doc/tutorial/images/*.png: DocBook admonition image files - * doc/tutorial/apf.html, apg.html: new generated html - * doc/tutorial/includeconvert.c: conversion code entity file - changed: - * doc/tutorial/xmltutorial.xml: DocBook original - * doc/tutorial/*.html: generated html - -Fri Nov 8 17:59:32 CEST 2002 Igor Zlatkovic - - * include/libxml/*.h: retired xmlwin32version.h - * doc/Makefile.am: retired xmlwin32version.h - * win32/configure.js: retired xmlwin32version.h - -Fri Nov 8 16:55:47 CEST 2002 Igor Zlatkovic - - * win32/libxml2.def.src: exported additional symbols - * include/libxml/xmlmemory.h: exported the rest of the xmlMem* - sisterhood - -Fri Nov 8 16:08:13 CET 2002 Daniel Veillard - - * globals.c: fixed a typo pointed out by Igor - * xpath.c: try to speed up node compare using line numbers - if available. - -Thu Nov 7 15:16:02 CET 2002 Daniel Veillard - - * tree.c: make xmlFreeNode() handle attributes correctly. - -Wed Nov 6 23:51:11 CET 2002 Igor Zlatkovic - - * catalog.c: completed the #96963 fix, as reported by Karl - Eichwalder - -Wed Nov 6 16:48:44 CET 2002 Daniel Veillard - - * xpointer.c: tried to fix bug #97852 reported by Nicolas Noffke - -Sun Nov 3 10:43:44 CET 2002 Daniel Veillard - - * Makefile.am: switched the order of a couple of includes - to fix bugs #97100 - -Thu Oct 31 17:11:46 CEST 2002 Igor Zlatkovic - - * catalog.c: fixed bug #96963, reverted to the old behaviour of - xmlLoadCatalogs that used to separate directories with a ':'. - -Thu Oct 31 16:55:21 CEST 2002 Igor Zlatkovic - - * threads.c: improvements to the Windows-side of thread handling - * testThreads.c: conditionally excluded unistd.h - * testThradsWin32.c: broke overlong lines - * include/win32config.h: adapted thread-related macros to the new - scheme and for pthreads on Windows - * win32/Makefile.msvc: introduced a more flexible thread build, - added testThreads[Win32].c to the build - * win32/configure.js: introduced a more flexible thread config - -2002-10-31 John Fleck - - * doc/xml.html (and, by implication, FAQ.html) - added UTF-8 conversaion FAQ from Marcus Labib Iskander - -Tue Oct 29 18:32:33 CET 2002 Igor Zlatkovic - - * configure.in: removed xmlwin32version.h - * include/libxml/Makefile.am: removed xmlwin32version.h - -Mon Oct 28 14:01:29 CET 2002 Daniel Veillard - - * tree.c: applied patch from Brian Stafford to fix a bug - in xmlReconciliateNs() - -Mon Oct 28 13:51:55 CET 2002 Daniel Veillard - - * tree.c: applied patch from Christian Glahn to allow - xmlNewChild() on document fragment nodes - -Sat Oct 26 15:27:00 CEST 2002 Daniel Veillard - - * parser.c: Christian Glahn found a problem with a recent - patch to xmlParseBalancedChunkMemoryRecover() - * xmlschemas.c: Charles Bozeman fixed some Schemas validation - problems - * result/schemas/elem* result/schemas/seq* test/schemas.elem* - test/schemas/seq*: added the test cases from Charles - -Wed Oct 23 16:42:29 CEST 2002 Daniel Veillard - - * Makefile.am config.h.in libxml.spec.in doc/Makefile.am: - serious cleanup of the spec file and associated changes - in the Makefiles. - * valid.c: try to remove some warnings on x86_64 - -Wed Oct 23 10:53:42 CEST 2002 Daniel Veillard - - * include/Makefile.am: added winsockcompat.h to EXTRA_DIST to - fix bug #96586 - -Tue Oct 22 21:13:06 CEST 2002 Daniel Veillard - - * HTMLparser.c: Mikhail Sogrine pointed out a bug in HTML - parsing, applied his patch - * result/HTML/attrents.html result/HTML/attrents.html.err - result/HTML/attrents.html.sax test/HTML/attrents.html: - added the test and result case provided by Mikhail Sogrine - -Tue Oct 22 19:33:20 CEST 2002 Daniel Veillard - - * vms/build_libxml.com vms/config.vms vms/readme.vms - include/libxml/parser.h include/libxml/parserInternals.h - include/libxml/tree.h include/libxml/xmlIO.h - HTMLparser.c catalog.c debugXML.c parser.c parserInternals.c - tree.c triodef.h trionan.c uri.c xmlIO.c xpath.c: - Applied the VMS update patch from Craig A. Berry - * doc/*.html: update - -Tue Oct 22 16:27:31 CEST 2002 Daniel Veillard - - * include/libxml/encoding.h encoding.c: made xmlGetUTF8Char public - -Tue Oct 22 16:25:18 CEST 2002 Daniel Veillard - - * debugXML.c: adding a grep command to --shell in xmllint - for T.V. Raman - -Tue Oct 22 16:23:57 CEST 2002 Daniel Veillard - - * xmlcatalog.c: tried to fix some of the problem with --sgml - -Mon Oct 21 09:57:10 CEST 2002 Daniel Veillard - - * parser.c: tried to fix bug #91500 where doc->children may - be overriden by a call to xmlParseBalancedChunkMemory() - -Mon Oct 21 09:04:32 CEST 2002 Daniel Veillard - - * catalog.c: tried to fix bug #90945 w.r.t. parsing of system - identifiers in SGML catalogs containing '&' - -Sun Oct 20 23:31:47 CEST 2002 Daniel Veillard - - * python/types.c: fixed bugs when passing result value tree - to Python functions. - -Fri Oct 18 13:18:53 CEST 2002 Daniel Veillard - - * configure.in: preparing the release of 2.4.26 - * doc/*: updated and rebuilt the documentation - -Wed Oct 16 20:01:46 CEST 2002 Daniel Veillard - - * parser.c: fixed a XML Namespace compliance bug reported by - Alexander Grimalovsky - -Wed Oct 16 17:18:42 CEST 2002 Daniel Veillard - - * HTMLtree.c: fixed serialization of script and style when - they are not lowercase (i.e. added using the API to the tree). - -Wed Oct 16 16:31:05 CEST 2002 Daniel Veillard - - * valid.c: make xmlValidateDocument emit a warning msg if there - is no DTD, pointed by Christian Glahn - -Wed Oct 16 16:05:38 CEST 2002 Daniel Veillard - - * xmlregexp.c xmlschemas.c: fixed the validation of sequences - content model when some of the blocks have min or max, and a couple - of bugs found in the process. - * result/schemas/list0* test/schemas/list0*: added some specific - regression tests - -Tue Oct 15 12:41:01 CEST 2002 Daniel Veillard - - * README: updated the contact informations - -Tue Oct 15 10:35:57 CEST 2002 Daniel Veillard - - * Makefile.am: use test -f instead of test -e since Solaris /bin/sh - misses it, reported by Peter Bray. - -Mon Oct 14 17:37:32 CEST 2002 Daniel Veillard - - * tree.c: investigating xmlNodeGetContent() on namespace nodes - and removed a few warnings - -Mon Oct 14 13:12:55 CEST 2002 Daniel Veillard - - * parser.c: Christian Glahn found a small bug in the push parser. - * xmlIO.c include/libxml/xmlIO.h: cleaned up and made xmlCheckFilename - public - -Wed Oct 9 23:11:02 CEST 2002 Daniel Veillard - - * xmlschemas.c include/libxml/xmlschemas.h: added - xmlSchemaNewMemParserCtxt to parse a schemas from a memory area - * testSchemas.c: added --memory to test the new interface - -Wed Oct 9 16:22:54 CEST 2002 Daniel Veillard - - * doc/index.py doc/search.php: integrated the XSLT indexing, - a few fixed in the indexer, added a scope selection at the - search level. - -Wed Oct 9 12:18:37 CEST 2002 Daniel Veillard - - * valid.c: Joe Marcus Clarke reported a segfault on FBsd - this was due to uninitialized parts of the validation context - -Tue Oct 8 23:24:20 CEST 2002 Daniel Veillard - - * debugXML.c: applied patch from Mark Vakoc except the API - change, preserved it. - * doc/*: updated the docs to point to the search engine for - information lookup or before bug/help reports. - -Tue Oct 8 18:53:31 CEST 2002 Daniel Veillard - - * doc/index.py doc/search.php: added mailing-list archives - indexing and lookup - -Tue Oct 8 10:25:07 CEST 2002 Daniel Veillard - - * tree.c: patch from Mark Vakoc to fix xmlNodeGetPath() - -Mon Oct 7 13:12:03 CEST 2002 Daniel Veillard - - * doc/index.py: improved HTML indexing - * doc/search.php: make the queries also lookup the HTML based indexes - -Sun Oct 6 23:50:29 CEST 2002 Daniel Veillard - - * doc/index.py: added HTML page indexing - -Fri Oct 4 15:33:55 CEST 2002 Igor Zlatkovic - - * xmlIO.c: extended Windows path normalisation to fix the base - problem in libxslt. - * catalog.c: fixed list handling in XML_CATALOG_FILES - -Fri Oct 4 13:43:02 CEST 2002 Daniel Veillard - - * valid.c: typo/bug found by Christian Glahn - -Sun Sep 29 19:44:10 CEST 2002 Igor Zlatkovic - - * xmlIO.c: applied Windows CE patch from Javier. - * win32/wince: new directory, contains support for the PocketPC - with Windows CE from Javier. - * include/win32config.h: reorganised, removed duplicate - definitions and applied WinCE patch from Javier. - * include/wsockcompat.h: new file, now contains WinSock - compatibility macros. - * win32/Makefile.msvc: introduced double-run compilation. - -Thu Sep 26 19:48:06 CEST 2002 Daniel Veillard - - * configure.in include/libxml/xmlwin32version.h: preparing release - of 2.4.25 - * doc/*: updated and regenerated teh docs and web pages. - -Thu Sep 26 17:33:46 CEST 2002 Daniel Veillard - - * SAX.c valid.c include/libxml/valid.h: fixed bug #92518 validation - error were not covering namespace declarations. - * result/valid/dia.xml test/valid/dia.xml: the test wasn't valid, - it was missing the attribute declaration for the namespace - * result/VC/NS3: the fix now report breakages in that test - -Thu Sep 26 14:39:07 CEST 2002 Daniel Veillard - - * HTMLtree.c: fixing bug #94241 on HTML boolean attributes - -Thu Sep 26 14:25:33 CEST 2002 Daniel Veillard - - * doc/*: added the 3 new modules xmlregexp xmlautomata and xmlunicode - and regenerated the docs and web site - -Thu Sep 26 11:45:42 CEST 2002 Daniel Veillard - - * xinclude.c xmlschemas.c xmlschemastypes.c xpath.c: make sure - ATTRIBUTE_UNUSED is always put after the attribute declaration, - not before - -Thu Sep 26 11:33:28 CEST 2002 Daniel Veillard - - * python/generator.py python/libxml2class.txt: fixed a stupid error - breaking the python API - -Thu Sep 26 00:31:46 CEST 2002 Daniel Veillard - - * trio.c trio.h triodef.h trionan.c trionan.h triop.h - triostr.c triostr.h: applied a trio update patch from - Bjorn Reese which should work with MinGW - -Thu Sep 26 00:21:18 CEST 2002 Daniel Veillard - - * tree.c: improving some documentation comments - * xmlregexp.c: found and fixed a mem leak with python regression tests - * doc/*: rebuilt the doc and the API XML file including the - xmlregexp.h xmlautomata.h and xmlunicode.h headers - * python/generator.py python/libxml2class.txt python/libxml_wrap.h - python/types.c: added access to the XML Schemas regexps from - python - * python/tests/Makefile.am python/tests/regexp.py: added a - simple regexp bindings test - -Tue Sep 24 08:10:48 MDT 2002 John Fleck - - * doc/xml.html: - fixing ftp links - thanks to Vitaly Ostanin - -Tue Sep 24 16:08:17 CEST 2002 Daniel Veillard - - * xmlregexp.c: fixed the data callback on transition functionality - which was broken when using the compact form - * result/schemas/*: updated the results, less verbose, all tests - pass like before - * DOCBparser.c testAutomata.c testC14N.c testSchemas.c testThreads.c - testXPath.c valid.c xinclude.c xmllint.c xmlregexp.c xmlschemas.c - xmlschemastypes.c xpath.c python/libxml.c: removed a bunch of - annoying warnings - * xpath.c: try to provide better error report when possible - -Sat Sep 21 14:56:37 CEST 2002 Daniel Veillard - - * Makefile.am: fixed a breakage raised by Jacob - -Fri Sep 20 20:08:18 CEST 2002 Igor Zlatkovic - - * include/win32config.h: added HAVE_ERRNO_H definition for parts - which don't use sockets - -Fri Sep 20 18:40:50 CEST 2002 Igor Zlatkovic - - * win32/Makefile.msvc: applied zlib patch from Daniel Gehriger - * win32/configure.js: applied zlib patch from Daniel Gehriger - -Fri Sep 20 15:40:14 CEST 2002 Igor Zlatkovic - - * win32/configure.js: applied the patch from Mark Vakoc for - regexp support - * win32/libxml2.def.src: applied the patch from Mark Vakoc - for regexp support - -Fri Sep 20 15:35:33 CEST 2002 Daniel Veillard - - * xmlschemastypes.c: as pointed by Igor Float and Double - parsing ain't finished yet - -Fri Sep 20 14:00:16 CEST 2002 Daniel Veillard - - * Makefile.am configure.in: trying to fix #88412 by bypassing - all the python subdir if python ain't detected - -Thu Sep 19 21:46:53 CEST 2002 Daniel Veillard - - * Makefile.am configure.in include/libxml/xmlversion.h.in: - made configuring with regexps/automata/unicode the default - but without schemas ATM - * testRegexp.c valid.c xmlregexp.c include/libxml/xmlregexp.h: - fixed the regexp based DTD validation performance and memory - problem by switching to a compact form for determinist regexps - and detecting the determinism property in the process. Seems - as fast as the old DTD validation specific engine :-) despite - the regexp built and compaction process. - -Wed Sep 18 18:27:26 CEST 2002 Daniel Veillard - - * valid.c: determinism is debugged, new DTD checking code now works - but xmlFAComputesDeterminism takes far too much CPU and the whole - set usues too much memory to be really usable as-is - -Wed Sep 18 00:54:30 CEST 2002 Daniel Veillard - - * tree.c: fixed another stupid bug in xmlGetNodePath() - * xmllint.c: --version now report the options compiled in - -Tue Sep 17 23:48:07 CEST 2002 Daniel Veillard - - * HTMLparser.c: small cleanup - * valid.c xmlregexp.c: switched DTD validation to use only regexp - when configured with them. A bit of debugging around the determinism - checks is still needed - -Tue Sep 17 21:22:25 CEST 2002 Daniel Veillard - - * python/libxml_wrap.h: stupid bug found by mattam@netcourrier.com - -Tue Sep 17 19:58:26 CEST 2002 Daniel Veillard - - * xmlIO.c: small portability glitch fixed. - -Mon Sep 17 12:38:08 CEST 2002 Daniel Veillard - - * xmlschemastypes.c: incomplete steps for real/double support - * testAutomata.c include/libxml/xmlautomata.h - include/libxml/xmlregexp.h: avoiding a compilation problem - * valid.c include/libxml/valid.h: starting the work toward using - the regexps for actual DTD validation - -Fri Sep 13 16:46:14 CEST 2002 Daniel Veillard - - * hash.c: cosmetic cleanup - * valid.c include/libxml/tree.h include/libxml/valid.h: started - integrating a DTD validation layer based on the regexps - -Thu Sep 12 18:01:29 CEST 2002 Daniel Veillard - - * xmlregexp.c xmlschemas.c: fixed a bug reported by Jeff Goff, - the determinism was tested before eliminating the epsilon - transitions :-( - -Thu Sep 12 16:57:45 CEST 2002 Daniel Veillard - - * python/generator.py python/libxml.c python/libxml.py - python/libxml2-python-api.xml python/libxml2class.txt - python/libxml_wrap.h python/types.c: updated the python - bindings, added code for easier File I/O, and the ability to - define a resolver from Python fixing bug #91635 - * python/tests/Makefile.am python/tests/inbuf.py - python/tests/outbuf.py python/tests/pushSAXhtml.py - python/tests/resolver.py python/tests/serialize.py: updated - and augmented the set of Python tests. - -Tue Sep 10 21:05:28 CEST 2002 Igor Zlatkovic - - * win32/configure.js: added more readme info for the binary - package. - -Tue Sep 10 14:15:18 CEST 2002 Daniel Veillard - - * xmlIO.c: fixed a stupid out of bound array error - -Tue Sep 10 13:09:14 CEST 2002 Daniel Veillard - - * include/libxml/xmlIO.h xmlIO.c parser.c HTMLparser.c DOCBparser.c: - messing around with support for Windows path, cleanups, - trying to identify and fix the various code path to the - filename access. Added xmlNormalizeWindowsPath() - -Thu Sep 5 16:19:18 CEST 2002 Daniel Veillard - - * error.c valid.c: working on better error reporting of validity - errors, especially providing an accurate context. - * result/valid/xlink.xml.err result/valid/rss.xml.err: better - error reports in those cases. - -Thu Sep 5 13:29:47 CEST 2002 Daniel Veillard - - * DOCBparser.c HTMLparser.c c14n.c entities.c list.c - parser.c parserInternals.c xmlIO.c: get rid of all the - perror() calls made in the library execution paths. This - should fix both #92059 and #92385 - -Thu Sep 5 13:13:17 CEST 2002 Daniel Veillard - - * xmllint.c: memory leak reporting was broken after a change - of the preprocessor symbol used to activate it. - -Thu Sep 5 13:10:57 CEST 2002 Daniel Veillard - - * tree.c: try to make the copy function work for node of - type XML_DOCUMENT_FRAG_NODE, they are only created by the - DOM layers though, not libxml2 itself. - -Thu Sep 5 12:57:38 CEST 2002 Daniel Veillard - - * valid.c: try to provide file and line informations, not all - messages are covered, but it's a (good) start - -Thu Sep 5 12:49:35 CEST 2002 Daniel Veillard - - * xinclude.c: reimplemented a large part of the XInclude - processor, trying to minimize resources used, James Henstridge - provided a huge test case which was exhibiting severe memory - consumption problems. - -Thu Sep 5 10:07:13 CEST 2002 Daniel Veillard - - * python/Makefile.am: applied patch from Christophe Merlet to - reestablish DESTDIR - -Wed Sep 4 14:13:34 CEST 2002 Daniel Veillard - - * libxml.spec.in: fixes libary path for x86_64 AMD - -Tue Sep 3 21:14:19 MDT 2002 John Fleck - - * doc/tutorial/includekeyword.c - * doc/tutorial/xmltutorial.xml: - (plus resulting generated html files) - fixing one spot I missed in the tutorial where I hadn't freed - memory properly - -Sat Aug 31 19:31:17 MDT 2002 John Fleck - - * doc/tutorial/includeaddattribute.c - * doc/tutorial/includeaddkeyword.c - * doc/tutorial/includegetattribute.c - * doc/tutorial/includekeyword.c - * doc/tutorial/xmltutorial.xml - * doc/tutorial/*.html: - update tutorial to properly free memory (thanks to Christopher - R. Harris for pointing out that this needs to be done) - * doc/tutorial/images/callouts/*.png: - added image files so the callouts are graphical, making it - easier to read ( use "--param callout.graphics 1" to generate - html with graphical callouts) - -Wed Aug 28 13:44:54 CEST 2002 Daniel Veillard - - * doc/Libxml2-Logo-180x168.gif doc/Libxml2-Logo-90x34.gif: - nice logos generated by Marc Liyanage - * doc/site.xsl *.html: changed the stylesheet to show the new - logo and regenerated the pages - -Sun Aug 25 16:38:05 CEST 2002 Daniel Veillard - - * xmlIO.c: handle Windows sepecific file://localhost/ semantic ... - -Thu Aug 22 22:03:19 CEST 2002 Daniel Veillard - - * xpath.c: possible mem leak patch from Jason Adams - -Thu Aug 22 17:27:30 CEST 2002 Daniel Veillard - - * xpath.c: integrated xf:escape-uri() from Wesley Terpstra - in the XQuery namespace - * configure.in: preparing 2.4.24 - * doc/*.html: updated the web pages - -Thu Aug 22 16:19:42 CEST 2002 Daniel Veillard - - * python/generator.py: closing bug #85258 by generating conditional - compile check to avoid linking to routines not configured in. - -2002-08-22 Havoc Pennington - - * autogen.sh: update error message for missing automake - -Thu Aug 22 11:45:50 CEST 2002 Daniel Veillard - - * python/Makefile.am: typo in target name resulted in libxml2.py - to not be rebuilt. fixed DESTDIR similary to the libxslt one. - -Thu Aug 22 09:15:00 CEST 2002 Daniel Veillard - - * win32/win32/Makefile.mingw: updated with version from - Elizabeth Barham at http://soggytrousers.net/repository/ - -Tue Aug 20 16:40:48 CEST 2002 Igor Zlatkovic - - * win32/Makefile.msvc: added the prefix location to the include - and lib search path. - -2002-08-18 Havoc Pennington - - * autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with - both automake 1.6 and 1.4 installed get the right automake. Means - compilation from CVS will now require the latest automake 1.4 - release, or manually creating symlinks called "automake-1.4" and - "aclocal-1.4" - -Wed Aug 14 18:54:19 CEST 2002 Daniel Veillard - - * configure.in python/Makefile.am: more AMD 64 induced changes from - Frederic Crozat - -Wed Aug 14 16:43:53 CEST 2002 Daniel Veillard - - * xinclude.c: oops I was missing the xml:base fixup too - * result/XInclude/*.xml: this adds xml:base attributes to most - results of the tests - -Wed Aug 14 16:05:37 CEST 2002 Daniel Veillard - - * xinclude.c: quick but apparently working implementation of - xi:fallback, should close bug #89684 - * Makefile.am test/XInclude/docs/fallback.xml - result/XInclude/fallback.xml: added a basic test for fallback, - and run with --nowarning to avoid a spurious warning - * configure.in: applied patch from Frederic Crozat for python - bindings on AMD 64bits machines. - -Wed Aug 14 10:47:46 CEST 2002 Daniel Veillard - - * parser.c: xmlSAXUserParseMemory() really ought to fail if - the caller don't pass a SAX callback block. - -Wed Aug 14 10:29:02 CEST 2002 Daniel Veillard - - * tree.c: applied the same fix for the XML-1.0 namespace to - xmlSearchNsByHref() as was done for xmlSearchNs() - -Mon Aug 12 16:52:08 CEST 2002 Daniel Veillard - - * libxml.3: small cleanup of the man page - * HTMLtree.c: fixed a potential problem raised by Petr Vandrovec - when serializing HREF attributes generated by XSLT. - -Mon Aug 12 15:24:05 CEST 2002 Daniel Veillard - - * HTMLtree.c include/libxml/HTMLtree.h: integrated a cleaned up - version of Marc Liyanage' patch for boolean attributes in HTML - output - -Mon Aug 12 14:11:59 CEST 2002 Daniel Veillard - - * python/tests/serialize.py: fixed the test results, indenting - behaviour changed slightly - -Thu Aug 8 11:00:26 2002 Aleksey Sanin - - * win32/dsp/libxml2.def.src win32/libxml2.def.src: added - new c14n function to Windows def files - -Fri Aug 2 16:46:46 2002 Aleksey Sanin - - * c14n.c: fixed a memory leak in c14n code - -Sat Aug 3 00:15:06 CEST 2002 Daniel Veillard - - * parser.c include/libxml/parser.h: adding a new API for Christian - Glahn: xmlParseBalancedChunkMemoryRecover - * valid.c: patch from Rick Jones for some grammar cleanup in - validation messages - * result/VC/* result/valid/*: this slightly change some of the - regression tests outputs - -Thu Aug 1 14:50:28 CEST 2002 Daniel Veillard - - * tree.c: trying to fix a problem in namespaced attribute handling - raised by Christian Glahn - -Thu Aug 1 12:17:30 CEST 2002 Daniel Veillard - - * encoding.c include/libxml/encoding.h: Opening the interface - xmlNewCharEncodingHandler as requested in #89415 - * python/generator.py python/setup.py.in: applied cleanup - patches from Marc-Andre Lemburg - * tree.c: fixing bug #89332 on a specific case of loosing - the XML-1.0 namespace on xml:xxx attributes - -Wed Jul 31 23:27:42 2002 Aleksey Sanin - - * c14n.c include/libxml/c14n.h: fixed one more c14n + namespaces - corner case from new Merlin's test suite and added a callback - that will be used to improve xmlsec performance - -Mon Jul 29 18:22:00 CEST 2002 Daniel Veillard - - * HTMLtree.c: trying to fix the