123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792 |
- /*
- * Copyright 2006 Sony Computer Entertainment Inc.
- *
- * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
- * file except in compliance with the License. You may obtain a copy of the License at:
- * http://research.scea.com/scea_shared_source_license.html
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT 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 <dae/daeDocument.h>
- #include <dom/domTypes.h>
- #include <dom/domElements.h>
- #include <dom/domTechnique.h>
- #include <dom/domExtra.h>
- #include <dom/domInstance_physics_material.h>
- #include <dom/domPhysics_material.h>
- #include <dom/domTargetableFloat.h>
- #include <dom/domTranslate.h>
- #include <dom/domRotate.h>
- #include <dom/domTargetableFloat3.h>
- #include <dom/domInstance_geometry.h>
- #include <dom/domPlane.h>
- #include <dom/domBox.h>
- #include <dom/domSphere.h>
- #include <dom/domCylinder.h>
- #include <dom/domTapered_cylinder.h>
- #include <dom/domCapsule.h>
- #include <dom/domTapered_capsule.h>
- class DAE;
- /**
- * 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:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::RIGID_BODY; }
- static daeInt ID() { return 795; }
- virtual daeInt typeID() const { return ID(); }
- public:
- class domTechnique_common;
- typedef daeSmartRef<domTechnique_common> domTechnique_commonRef;
- typedef daeTArray<domTechnique_commonRef> 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:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE_COMMON; }
- static daeInt ID() { return 796; }
- virtual daeInt typeID() const { return ID(); }
- public:
- class domDynamic;
- typedef daeSmartRef<domDynamic> domDynamicRef;
- typedef daeTArray<domDynamicRef> domDynamic_Array;
- /**
- * If false, the rigid_body is not moveable
- */
- class domDynamic : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DYNAMIC; }
- static daeInt ID() { return 797; }
- virtual daeInt typeID() const { return ID(); }
- 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(DAE& dae) : daeElement(dae), attrSid(), _value() {}
- /**
- * Destructor
- */
- virtual ~domDynamic() {}
- /**
- * 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.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domMass_frame;
- typedef daeSmartRef<domMass_frame> domMass_frameRef;
- typedef daeTArray<domMass_frameRef> 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:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MASS_FRAME; }
- static daeInt ID() { return 798; }
- virtual daeInt typeID() const { return ID(); }
- 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;
- /**
- * Used to store information needed for some content model objects.
- */
- daeTArray< daeCharArray * > _CMData;
- 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(DAE& dae) : daeElement(dae), elemTranslate_array(), elemRotate_array() {}
- /**
- * Destructor
- */
- virtual ~domMass_frame() { daeElement::deleteCMDataArray(_CMData); }
- /**
- * 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.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domShape;
- typedef daeSmartRef<domShape> domShapeRef;
- typedef daeTArray<domShapeRef> domShape_Array;
- /**
- * This element allows for describing components of a rigid_body.
- */
- class domShape : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SHAPE; }
- static daeInt ID() { return 799; }
- virtual daeInt typeID() const { return ID(); }
- public:
- class domHollow;
- typedef daeSmartRef<domHollow> domHollowRef;
- typedef daeTArray<domHollowRef> domHollow_Array;
- /**
- * If true, the mass is distributed along the surface of the shape
- */
- class domHollow : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HOLLOW; }
- static daeInt ID() { return 800; }
- virtual daeInt typeID() const { return ID(); }
- 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(DAE& dae) : daeElement(dae), attrSid(), _value() {}
- /**
- * Destructor
- */
- virtual ~domHollow() {}
- /**
- * 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.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- 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;
- /**
- * Used to store information needed for some content model objects.
- */
- daeTArray< daeCharArray * > _CMData;
- 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(DAE& dae) : daeElement(dae), 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() { daeElement::deleteCMDataArray(_CMData); }
- /**
- * 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.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- 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;
- /**
- * Used to store information needed for some content model objects.
- */
- daeTArray< daeCharArray * > _CMData;
- 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(DAE& dae) : daeElement(dae), elemDynamic(), elemMass(), elemMass_frame(), elemInertia(), elemInstance_physics_material(), elemPhysics_material(), elemShape_array() {}
- /**
- * Destructor
- */
- virtual ~domTechnique_common() { daeElement::deleteCMDataArray(_CMData); }
- /**
- * 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.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- 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(DAE& dae) : daeElement(dae), attrSid(), attrName(), elemTechnique_common(), elemTechnique_array(), elemExtra_array() {}
- /**
- * Destructor
- */
- virtual ~domRigid_body() {}
- /**
- * 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.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- #endif
|