0001: //
0002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
0003: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
0004: // Any modifications to this file will be lost upon recompilation of the source schema.
0005: // Generated on: 2007.03.17 at 08:38:02 AM PDT
0006: //
0007:
0008: package org.collada.colladaschema;
0009:
0010: import java.util.ArrayList;
0011: import java.util.List;
0012: import javax.xml.bind.annotation.XmlAccessType;
0013: import javax.xml.bind.annotation.XmlAccessorType;
0014: import javax.xml.bind.annotation.XmlAttribute;
0015: import javax.xml.bind.annotation.XmlElement;
0016: import javax.xml.bind.annotation.XmlElements;
0017: import javax.xml.bind.annotation.XmlRootElement;
0018: import javax.xml.bind.annotation.XmlType;
0019: import javax.xml.bind.annotation.XmlValue;
0020: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
0021: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
0022:
0023: /**
0024: * <p>Java class for anonymous complex type.
0025: *
0026: * <p>The following schema fragment specifies the expected content contained within this class.
0027: *
0028: * <pre>
0029: * <complexType>
0030: * <complexContent>
0031: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
0032: * <sequence>
0033: * <element name="technique_common">
0034: * <complexType>
0035: * <complexContent>
0036: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
0037: * <sequence>
0038: * <element name="dynamic" minOccurs="0">
0039: * <complexType>
0040: * <simpleContent>
0041: * <extension base="<http://www.collada.org/2005/11/COLLADASchema>bool">
0042: * <attribute name="sid" type="{http://www.w3.org/2001/XMLSchema}NCName" />
0043: * </extension>
0044: * </simpleContent>
0045: * </complexType>
0046: * </element>
0047: * <element name="mass" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat" minOccurs="0"/>
0048: * <element name="mass_frame" minOccurs="0">
0049: * <complexType>
0050: * <complexContent>
0051: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
0052: * <choice maxOccurs="unbounded">
0053: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}translate"/>
0054: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}rotate"/>
0055: * </choice>
0056: * </restriction>
0057: * </complexContent>
0058: * </complexType>
0059: * </element>
0060: * <element name="inertia" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat3" minOccurs="0"/>
0061: * <choice minOccurs="0">
0062: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_physics_material"/>
0063: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}physics_material"/>
0064: * </choice>
0065: * <element name="shape" maxOccurs="unbounded">
0066: * <complexType>
0067: * <complexContent>
0068: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
0069: * <sequence>
0070: * <element name="hollow" minOccurs="0">
0071: * <complexType>
0072: * <simpleContent>
0073: * <extension base="<http://www.collada.org/2005/11/COLLADASchema>bool">
0074: * <attribute name="sid" type="{http://www.w3.org/2001/XMLSchema}NCName" />
0075: * </extension>
0076: * </simpleContent>
0077: * </complexType>
0078: * </element>
0079: * <element name="mass" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat" minOccurs="0"/>
0080: * <element name="density" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat" minOccurs="0"/>
0081: * <choice minOccurs="0">
0082: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_physics_material"/>
0083: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}physics_material"/>
0084: * </choice>
0085: * <choice>
0086: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_geometry"/>
0087: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}plane"/>
0088: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}box"/>
0089: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}sphere"/>
0090: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}cylinder"/>
0091: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}tapered_cylinder"/>
0092: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}capsule"/>
0093: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}tapered_capsule"/>
0094: * </choice>
0095: * <choice maxOccurs="unbounded" minOccurs="0">
0096: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}translate"/>
0097: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}rotate"/>
0098: * </choice>
0099: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}extra" maxOccurs="unbounded" minOccurs="0"/>
0100: * </sequence>
0101: * </restriction>
0102: * </complexContent>
0103: * </complexType>
0104: * </element>
0105: * </sequence>
0106: * </restriction>
0107: * </complexContent>
0108: * </complexType>
0109: * </element>
0110: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}technique" maxOccurs="unbounded" minOccurs="0"/>
0111: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}extra" maxOccurs="unbounded" minOccurs="0"/>
0112: * </sequence>
0113: * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NCName" />
0114: * <attribute name="sid" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" />
0115: * </restriction>
0116: * </complexContent>
0117: * </complexType>
0118: * </pre>
0119: *
0120: *
0121: */
0122: @XmlAccessorType(XmlAccessType.FIELD)
0123: @XmlType(name="",propOrder={"techniqueCommon","techniques","extras"})
0124: @XmlRootElement(name="rigid_body")
0125: public class RigidBody {
0126:
0127: @XmlElement(name="technique_common",required=true)
0128: protected RigidBody.TechniqueCommon techniqueCommon;
0129: @XmlElement(name="technique")
0130: protected List<Technique> techniques;
0131: @XmlElement(name="extra")
0132: protected List<Extra> extras;
0133: @XmlAttribute
0134: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
0135: protected String name;
0136: @XmlAttribute(required=true)
0137: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
0138: protected String sid;
0139:
0140: /**
0141: * Gets the value of the techniqueCommon property.
0142: *
0143: * @return
0144: * possible object is
0145: * {@link RigidBody.TechniqueCommon }
0146: *
0147: */
0148: public RigidBody.TechniqueCommon getTechniqueCommon() {
0149: return techniqueCommon;
0150: }
0151:
0152: /**
0153: * Sets the value of the techniqueCommon property.
0154: *
0155: * @param value
0156: * allowed object is
0157: * {@link RigidBody.TechniqueCommon }
0158: *
0159: */
0160: public void setTechniqueCommon(RigidBody.TechniqueCommon value) {
0161: this .techniqueCommon = value;
0162: }
0163:
0164: /**
0165: *
0166: * This element may contain any number of non-common profile techniques.
0167: * Gets the value of the techniques property.
0168: *
0169: * <p>
0170: * This accessor method returns a reference to the live list,
0171: * not a snapshot. Therefore any modification you make to the
0172: * returned list will be present inside the JAXB object.
0173: * This is why there is not a <CODE>set</CODE> method for the techniques property.
0174: *
0175: * <p>
0176: * For example, to add a new item, do as follows:
0177: * <pre>
0178: * getTechniques().add(newItem);
0179: * </pre>
0180: *
0181: *
0182: * <p>
0183: * Objects of the following type(s) are allowed in the list
0184: * {@link Technique }
0185: *
0186: *
0187: */
0188: public List<Technique> getTechniques() {
0189: if (techniques == null) {
0190: techniques = new ArrayList<Technique>();
0191: }
0192: return this .techniques;
0193: }
0194:
0195: /**
0196: *
0197: * The extra element may appear any number of times.
0198: * Gets the value of the extras property.
0199: *
0200: * <p>
0201: * This accessor method returns a reference to the live list,
0202: * not a snapshot. Therefore any modification you make to the
0203: * returned list will be present inside the JAXB object.
0204: * This is why there is not a <CODE>set</CODE> method for the extras property.
0205: *
0206: * <p>
0207: * For example, to add a new item, do as follows:
0208: * <pre>
0209: * getExtras().add(newItem);
0210: * </pre>
0211: *
0212: *
0213: * <p>
0214: * Objects of the following type(s) are allowed in the list
0215: * {@link Extra }
0216: *
0217: *
0218: */
0219: public List<Extra> getExtras() {
0220: if (extras == null) {
0221: extras = new ArrayList<Extra>();
0222: }
0223: return this .extras;
0224: }
0225:
0226: /**
0227: * Gets the value of the name property.
0228: *
0229: * @return
0230: * possible object is
0231: * {@link String }
0232: *
0233: */
0234: public String getName() {
0235: return name;
0236: }
0237:
0238: /**
0239: * Sets the value of the name property.
0240: *
0241: * @param value
0242: * allowed object is
0243: * {@link String }
0244: *
0245: */
0246: public void setName(String value) {
0247: this .name = value;
0248: }
0249:
0250: /**
0251: * Gets the value of the sid property.
0252: *
0253: * @return
0254: * possible object is
0255: * {@link String }
0256: *
0257: */
0258: public String getSid() {
0259: return sid;
0260: }
0261:
0262: /**
0263: * Sets the value of the sid property.
0264: *
0265: * @param value
0266: * allowed object is
0267: * {@link String }
0268: *
0269: */
0270: public void setSid(String value) {
0271: this .sid = value;
0272: }
0273:
0274: /**
0275: * <p>Java class for anonymous complex type.
0276: *
0277: * <p>The following schema fragment specifies the expected content contained within this class.
0278: *
0279: * <pre>
0280: * <complexType>
0281: * <complexContent>
0282: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
0283: * <sequence>
0284: * <element name="dynamic" minOccurs="0">
0285: * <complexType>
0286: * <simpleContent>
0287: * <extension base="<http://www.collada.org/2005/11/COLLADASchema>bool">
0288: * <attribute name="sid" type="{http://www.w3.org/2001/XMLSchema}NCName" />
0289: * </extension>
0290: * </simpleContent>
0291: * </complexType>
0292: * </element>
0293: * <element name="mass" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat" minOccurs="0"/>
0294: * <element name="mass_frame" minOccurs="0">
0295: * <complexType>
0296: * <complexContent>
0297: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
0298: * <choice maxOccurs="unbounded">
0299: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}translate"/>
0300: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}rotate"/>
0301: * </choice>
0302: * </restriction>
0303: * </complexContent>
0304: * </complexType>
0305: * </element>
0306: * <element name="inertia" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat3" minOccurs="0"/>
0307: * <choice minOccurs="0">
0308: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_physics_material"/>
0309: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}physics_material"/>
0310: * </choice>
0311: * <element name="shape" maxOccurs="unbounded">
0312: * <complexType>
0313: * <complexContent>
0314: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
0315: * <sequence>
0316: * <element name="hollow" minOccurs="0">
0317: * <complexType>
0318: * <simpleContent>
0319: * <extension base="<http://www.collada.org/2005/11/COLLADASchema>bool">
0320: * <attribute name="sid" type="{http://www.w3.org/2001/XMLSchema}NCName" />
0321: * </extension>
0322: * </simpleContent>
0323: * </complexType>
0324: * </element>
0325: * <element name="mass" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat" minOccurs="0"/>
0326: * <element name="density" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat" minOccurs="0"/>
0327: * <choice minOccurs="0">
0328: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_physics_material"/>
0329: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}physics_material"/>
0330: * </choice>
0331: * <choice>
0332: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_geometry"/>
0333: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}plane"/>
0334: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}box"/>
0335: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}sphere"/>
0336: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}cylinder"/>
0337: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}tapered_cylinder"/>
0338: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}capsule"/>
0339: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}tapered_capsule"/>
0340: * </choice>
0341: * <choice maxOccurs="unbounded" minOccurs="0">
0342: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}translate"/>
0343: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}rotate"/>
0344: * </choice>
0345: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}extra" maxOccurs="unbounded" minOccurs="0"/>
0346: * </sequence>
0347: * </restriction>
0348: * </complexContent>
0349: * </complexType>
0350: * </element>
0351: * </sequence>
0352: * </restriction>
0353: * </complexContent>
0354: * </complexType>
0355: * </pre>
0356: *
0357: *
0358: */
0359: @XmlAccessorType(XmlAccessType.FIELD)
0360: @XmlType(name="",propOrder={"dynamic","mass","massFrame","inertia","instancePhysicsMaterial","physicsMaterial","shapes"})
0361: public static class TechniqueCommon {
0362:
0363: protected RigidBody.TechniqueCommon.Dynamic dynamic;
0364: protected TargetableFloat mass;
0365: @XmlElement(name="mass_frame")
0366: protected RigidBody.TechniqueCommon.MassFrame massFrame;
0367: protected TargetableFloat3 inertia;
0368: @XmlElement(name="instance_physics_material")
0369: protected InstanceWithExtra instancePhysicsMaterial;
0370: @XmlElement(name="physics_material")
0371: protected PhysicsMaterial physicsMaterial;
0372: @XmlElement(name="shape",required=true)
0373: protected List<RigidBody.TechniqueCommon.Shape> shapes;
0374:
0375: /**
0376: * Gets the value of the dynamic property.
0377: *
0378: * @return
0379: * possible object is
0380: * {@link RigidBody.TechniqueCommon.Dynamic }
0381: *
0382: */
0383: public RigidBody.TechniqueCommon.Dynamic getDynamic() {
0384: return dynamic;
0385: }
0386:
0387: /**
0388: * Sets the value of the dynamic property.
0389: *
0390: * @param value
0391: * allowed object is
0392: * {@link RigidBody.TechniqueCommon.Dynamic }
0393: *
0394: */
0395: public void setDynamic(RigidBody.TechniqueCommon.Dynamic value) {
0396: this .dynamic = value;
0397: }
0398:
0399: /**
0400: * Gets the value of the mass property.
0401: *
0402: * @return
0403: * possible object is
0404: * {@link TargetableFloat }
0405: *
0406: */
0407: public TargetableFloat getMass() {
0408: return mass;
0409: }
0410:
0411: /**
0412: * Sets the value of the mass property.
0413: *
0414: * @param value
0415: * allowed object is
0416: * {@link TargetableFloat }
0417: *
0418: */
0419: public void setMass(TargetableFloat value) {
0420: this .mass = value;
0421: }
0422:
0423: /**
0424: * Gets the value of the massFrame property.
0425: *
0426: * @return
0427: * possible object is
0428: * {@link RigidBody.TechniqueCommon.MassFrame }
0429: *
0430: */
0431: public RigidBody.TechniqueCommon.MassFrame getMassFrame() {
0432: return massFrame;
0433: }
0434:
0435: /**
0436: * Sets the value of the massFrame property.
0437: *
0438: * @param value
0439: * allowed object is
0440: * {@link RigidBody.TechniqueCommon.MassFrame }
0441: *
0442: */
0443: public void setMassFrame(
0444: RigidBody.TechniqueCommon.MassFrame value) {
0445: this .massFrame = value;
0446: }
0447:
0448: /**
0449: * Gets the value of the inertia property.
0450: *
0451: * @return
0452: * possible object is
0453: * {@link TargetableFloat3 }
0454: *
0455: */
0456: public TargetableFloat3 getInertia() {
0457: return inertia;
0458: }
0459:
0460: /**
0461: * Sets the value of the inertia property.
0462: *
0463: * @param value
0464: * allowed object is
0465: * {@link TargetableFloat3 }
0466: *
0467: */
0468: public void setInertia(TargetableFloat3 value) {
0469: this .inertia = value;
0470: }
0471:
0472: /**
0473: *
0474: * References a physics_material for the rigid_body.
0475: *
0476: *
0477: * @return
0478: * possible object is
0479: * {@link InstanceWithExtra }
0480: *
0481: */
0482: public InstanceWithExtra getInstancePhysicsMaterial() {
0483: return instancePhysicsMaterial;
0484: }
0485:
0486: /**
0487: *
0488: * References a physics_material for the rigid_body.
0489: *
0490: *
0491: * @param value
0492: * allowed object is
0493: * {@link InstanceWithExtra }
0494: *
0495: */
0496: public void setInstancePhysicsMaterial(InstanceWithExtra value) {
0497: this .instancePhysicsMaterial = value;
0498: }
0499:
0500: /**
0501: *
0502: * Defines a physics_material for the rigid_body.
0503: *
0504: *
0505: * @return
0506: * possible object is
0507: * {@link PhysicsMaterial }
0508: *
0509: */
0510: public PhysicsMaterial getPhysicsMaterial() {
0511: return physicsMaterial;
0512: }
0513:
0514: /**
0515: *
0516: * Defines a physics_material for the rigid_body.
0517: *
0518: *
0519: * @param value
0520: * allowed object is
0521: * {@link PhysicsMaterial }
0522: *
0523: */
0524: public void setPhysicsMaterial(PhysicsMaterial value) {
0525: this .physicsMaterial = value;
0526: }
0527:
0528: /**
0529: * Gets the value of the shapes property.
0530: *
0531: * <p>
0532: * This accessor method returns a reference to the live list,
0533: * not a snapshot. Therefore any modification you make to the
0534: * returned list will be present inside the JAXB object.
0535: * This is why there is not a <CODE>set</CODE> method for the shapes property.
0536: *
0537: * <p>
0538: * For example, to add a new item, do as follows:
0539: * <pre>
0540: * getShapes().add(newItem);
0541: * </pre>
0542: *
0543: *
0544: * <p>
0545: * Objects of the following type(s) are allowed in the list
0546: * {@link RigidBody.TechniqueCommon.Shape }
0547: *
0548: *
0549: */
0550: public List<RigidBody.TechniqueCommon.Shape> getShapes() {
0551: if (shapes == null) {
0552: shapes = new ArrayList<RigidBody.TechniqueCommon.Shape>();
0553: }
0554: return this .shapes;
0555: }
0556:
0557: /**
0558: * <p>Java class for anonymous complex type.
0559: *
0560: * <p>The following schema fragment specifies the expected content contained within this class.
0561: *
0562: * <pre>
0563: * <complexType>
0564: * <simpleContent>
0565: * <extension base="<http://www.collada.org/2005/11/COLLADASchema>bool">
0566: * <attribute name="sid" type="{http://www.w3.org/2001/XMLSchema}NCName" />
0567: * </extension>
0568: * </simpleContent>
0569: * </complexType>
0570: * </pre>
0571: *
0572: *
0573: */
0574: @XmlAccessorType(XmlAccessType.FIELD)
0575: @XmlType(name="",propOrder={"value"})
0576: public static class Dynamic {
0577:
0578: @XmlValue
0579: protected boolean value;
0580: @XmlAttribute
0581: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
0582: protected String sid;
0583:
0584: /**
0585: * Gets the value of the value property.
0586: *
0587: */
0588: public boolean isValue() {
0589: return value;
0590: }
0591:
0592: /**
0593: * Sets the value of the value property.
0594: *
0595: */
0596: public void setValue(boolean value) {
0597: this .value = value;
0598: }
0599:
0600: /**
0601: * Gets the value of the sid property.
0602: *
0603: * @return
0604: * possible object is
0605: * {@link String }
0606: *
0607: */
0608: public String getSid() {
0609: return sid;
0610: }
0611:
0612: /**
0613: * Sets the value of the sid property.
0614: *
0615: * @param value
0616: * allowed object is
0617: * {@link String }
0618: *
0619: */
0620: public void setSid(String value) {
0621: this .sid = value;
0622: }
0623:
0624: }
0625:
0626: /**
0627: * <p>Java class for anonymous complex type.
0628: *
0629: * <p>The following schema fragment specifies the expected content contained within this class.
0630: *
0631: * <pre>
0632: * <complexType>
0633: * <complexContent>
0634: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
0635: * <choice maxOccurs="unbounded">
0636: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}translate"/>
0637: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}rotate"/>
0638: * </choice>
0639: * </restriction>
0640: * </complexContent>
0641: * </complexType>
0642: * </pre>
0643: *
0644: *
0645: */
0646: @XmlAccessorType(XmlAccessType.FIELD)
0647: @XmlType(name="",propOrder={"translatesAndRotates"})
0648: public static class MassFrame {
0649:
0650: @XmlElements({@XmlElement(name="translate",type=TargetableFloat3.class),@XmlElement(name="rotate",type=Rotate.class)})
0651: protected List<Object> translatesAndRotates;
0652:
0653: /**
0654: * Gets the value of the translatesAndRotates property.
0655: *
0656: * <p>
0657: * This accessor method returns a reference to the live list,
0658: * not a snapshot. Therefore any modification you make to the
0659: * returned list will be present inside the JAXB object.
0660: * This is why there is not a <CODE>set</CODE> method for the translatesAndRotates property.
0661: *
0662: * <p>
0663: * For example, to add a new item, do as follows:
0664: * <pre>
0665: * getTranslatesAndRotates().add(newItem);
0666: * </pre>
0667: *
0668: *
0669: * <p>
0670: * Objects of the following type(s) are allowed in the list
0671: * {@link TargetableFloat3 }
0672: * {@link Rotate }
0673: *
0674: *
0675: */
0676: public List<Object> getTranslatesAndRotates() {
0677: if (translatesAndRotates == null) {
0678: translatesAndRotates = new ArrayList<Object>();
0679: }
0680: return this .translatesAndRotates;
0681: }
0682:
0683: }
0684:
0685: /**
0686: * <p>Java class for anonymous complex type.
0687: *
0688: * <p>The following schema fragment specifies the expected content contained within this class.
0689: *
0690: * <pre>
0691: * <complexType>
0692: * <complexContent>
0693: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
0694: * <sequence>
0695: * <element name="hollow" minOccurs="0">
0696: * <complexType>
0697: * <simpleContent>
0698: * <extension base="<http://www.collada.org/2005/11/COLLADASchema>bool">
0699: * <attribute name="sid" type="{http://www.w3.org/2001/XMLSchema}NCName" />
0700: * </extension>
0701: * </simpleContent>
0702: * </complexType>
0703: * </element>
0704: * <element name="mass" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat" minOccurs="0"/>
0705: * <element name="density" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat" minOccurs="0"/>
0706: * <choice minOccurs="0">
0707: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_physics_material"/>
0708: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}physics_material"/>
0709: * </choice>
0710: * <choice>
0711: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_geometry"/>
0712: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}plane"/>
0713: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}box"/>
0714: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}sphere"/>
0715: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}cylinder"/>
0716: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}tapered_cylinder"/>
0717: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}capsule"/>
0718: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}tapered_capsule"/>
0719: * </choice>
0720: * <choice maxOccurs="unbounded" minOccurs="0">
0721: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}translate"/>
0722: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}rotate"/>
0723: * </choice>
0724: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}extra" maxOccurs="unbounded" minOccurs="0"/>
0725: * </sequence>
0726: * </restriction>
0727: * </complexContent>
0728: * </complexType>
0729: * </pre>
0730: *
0731: *
0732: */
0733: @XmlAccessorType(XmlAccessType.FIELD)
0734: @XmlType(name="",propOrder={"hollow","mass","density","physicsMaterial","instancePhysicsMaterial","instanceGeometry","cylinder","taperedCylinder","plane","box","sphere","taperedCapsule","capsule","translatesAndRotates","extras"})
0735: public static class Shape {
0736:
0737: protected RigidBody.TechniqueCommon.Shape.Hollow hollow;
0738: protected TargetableFloat mass;
0739: protected TargetableFloat density;
0740: @XmlElement(name="physics_material")
0741: protected PhysicsMaterial physicsMaterial;
0742: @XmlElement(name="instance_physics_material")
0743: protected InstanceWithExtra instancePhysicsMaterial;
0744: @XmlElement(name="instance_geometry")
0745: protected InstanceGeometry instanceGeometry;
0746: protected Cylinder cylinder;
0747: @XmlElement(name="tapered_cylinder")
0748: protected TaperedCylinder taperedCylinder;
0749: protected Plane plane;
0750: protected Box box;
0751: protected Sphere sphere;
0752: @XmlElement(name="tapered_capsule")
0753: protected TaperedCapsule taperedCapsule;
0754: protected Capsule capsule;
0755: @XmlElements({@XmlElement(name="rotate",type=Rotate.class),@XmlElement(name="translate",type=TargetableFloat3.class)})
0756: protected List<Object> translatesAndRotates;
0757: @XmlElement(name="extra")
0758: protected List<Extra> extras;
0759:
0760: /**
0761: * Gets the value of the hollow property.
0762: *
0763: * @return
0764: * possible object is
0765: * {@link RigidBody.TechniqueCommon.Shape.Hollow }
0766: *
0767: */
0768: public RigidBody.TechniqueCommon.Shape.Hollow getHollow() {
0769: return hollow;
0770: }
0771:
0772: /**
0773: * Sets the value of the hollow property.
0774: *
0775: * @param value
0776: * allowed object is
0777: * {@link RigidBody.TechniqueCommon.Shape.Hollow }
0778: *
0779: */
0780: public void setHollow(
0781: RigidBody.TechniqueCommon.Shape.Hollow value) {
0782: this .hollow = value;
0783: }
0784:
0785: /**
0786: * Gets the value of the mass property.
0787: *
0788: * @return
0789: * possible object is
0790: * {@link TargetableFloat }
0791: *
0792: */
0793: public TargetableFloat getMass() {
0794: return mass;
0795: }
0796:
0797: /**
0798: * Sets the value of the mass property.
0799: *
0800: * @param value
0801: * allowed object is
0802: * {@link TargetableFloat }
0803: *
0804: */
0805: public void setMass(TargetableFloat value) {
0806: this .mass = value;
0807: }
0808:
0809: /**
0810: * Gets the value of the density property.
0811: *
0812: * @return
0813: * possible object is
0814: * {@link TargetableFloat }
0815: *
0816: */
0817: public TargetableFloat getDensity() {
0818: return density;
0819: }
0820:
0821: /**
0822: * Sets the value of the density property.
0823: *
0824: * @param value
0825: * allowed object is
0826: * {@link TargetableFloat }
0827: *
0828: */
0829: public void setDensity(TargetableFloat value) {
0830: this .density = value;
0831: }
0832:
0833: /**
0834: *
0835: * Defines a physics_material for the shape.
0836: *
0837: *
0838: * @return
0839: * possible object is
0840: * {@link PhysicsMaterial }
0841: *
0842: */
0843: public PhysicsMaterial getPhysicsMaterial() {
0844: return physicsMaterial;
0845: }
0846:
0847: /**
0848: *
0849: * Defines a physics_material for the shape.
0850: *
0851: *
0852: * @param value
0853: * allowed object is
0854: * {@link PhysicsMaterial }
0855: *
0856: */
0857: public void setPhysicsMaterial(PhysicsMaterial value) {
0858: this .physicsMaterial = value;
0859: }
0860:
0861: /**
0862: *
0863: * References a physics_material for the shape.
0864: *
0865: *
0866: * @return
0867: * possible object is
0868: * {@link InstanceWithExtra }
0869: *
0870: */
0871: public InstanceWithExtra getInstancePhysicsMaterial() {
0872: return instancePhysicsMaterial;
0873: }
0874:
0875: /**
0876: *
0877: * References a physics_material for the shape.
0878: *
0879: *
0880: * @param value
0881: * allowed object is
0882: * {@link InstanceWithExtra }
0883: *
0884: */
0885: public void setInstancePhysicsMaterial(
0886: InstanceWithExtra value) {
0887: this .instancePhysicsMaterial = value;
0888: }
0889:
0890: /**
0891: *
0892: * Instances a geometry to use to define this shape.
0893: *
0894: *
0895: * @return
0896: * possible object is
0897: * {@link InstanceGeometry }
0898: *
0899: */
0900: public InstanceGeometry getInstanceGeometry() {
0901: return instanceGeometry;
0902: }
0903:
0904: /**
0905: *
0906: * Instances a geometry to use to define this shape.
0907: *
0908: *
0909: * @param value
0910: * allowed object is
0911: * {@link InstanceGeometry }
0912: *
0913: */
0914: public void setInstanceGeometry(InstanceGeometry value) {
0915: this .instanceGeometry = value;
0916: }
0917:
0918: /**
0919: *
0920: * Defines a cyliner to use for this shape.
0921: *
0922: *
0923: * @return
0924: * possible object is
0925: * {@link Cylinder }
0926: *
0927: */
0928: public Cylinder getCylinder() {
0929: return cylinder;
0930: }
0931:
0932: /**
0933: *
0934: * Defines a cyliner to use for this shape.
0935: *
0936: *
0937: * @param value
0938: * allowed object is
0939: * {@link Cylinder }
0940: *
0941: */
0942: public void setCylinder(Cylinder value) {
0943: this .cylinder = value;
0944: }
0945:
0946: /**
0947: *
0948: * Defines a tapered_cylinder to use for this shape.
0949: *
0950: *
0951: * @return
0952: * possible object is
0953: * {@link TaperedCylinder }
0954: *
0955: */
0956: public TaperedCylinder getTaperedCylinder() {
0957: return taperedCylinder;
0958: }
0959:
0960: /**
0961: *
0962: * Defines a tapered_cylinder to use for this shape.
0963: *
0964: *
0965: * @param value
0966: * allowed object is
0967: * {@link TaperedCylinder }
0968: *
0969: */
0970: public void setTaperedCylinder(TaperedCylinder value) {
0971: this .taperedCylinder = value;
0972: }
0973:
0974: /**
0975: *
0976: * Defines a plane to use for this shape.
0977: *
0978: *
0979: * @return
0980: * possible object is
0981: * {@link Plane }
0982: *
0983: */
0984: public Plane getPlane() {
0985: return plane;
0986: }
0987:
0988: /**
0989: *
0990: * Defines a plane to use for this shape.
0991: *
0992: *
0993: * @param value
0994: * allowed object is
0995: * {@link Plane }
0996: *
0997: */
0998: public void setPlane(Plane value) {
0999: this .plane = value;
1000: }
1001:
1002: /**
1003: *
1004: * Defines a box to use for this shape.
1005: *
1006: *
1007: * @return
1008: * possible object is
1009: * {@link Box }
1010: *
1011: */
1012: public Box getBox() {
1013: return box;
1014: }
1015:
1016: /**
1017: *
1018: * Defines a box to use for this shape.
1019: *
1020: *
1021: * @param value
1022: * allowed object is
1023: * {@link Box }
1024: *
1025: */
1026: public void setBox(Box value) {
1027: this .box = value;
1028: }
1029:
1030: /**
1031: *
1032: * Defines a sphere to use for this shape.
1033: *
1034: *
1035: * @return
1036: * possible object is
1037: * {@link Sphere }
1038: *
1039: */
1040: public Sphere getSphere() {
1041: return sphere;
1042: }
1043:
1044: /**
1045: *
1046: * Defines a sphere to use for this shape.
1047: *
1048: *
1049: * @param value
1050: * allowed object is
1051: * {@link Sphere }
1052: *
1053: */
1054: public void setSphere(Sphere value) {
1055: this .sphere = value;
1056: }
1057:
1058: /**
1059: *
1060: * Defines a tapered_capsule to use for this shape.
1061: *
1062: *
1063: * @return
1064: * possible object is
1065: * {@link TaperedCapsule }
1066: *
1067: */
1068: public TaperedCapsule getTaperedCapsule() {
1069: return taperedCapsule;
1070: }
1071:
1072: /**
1073: *
1074: * Defines a tapered_capsule to use for this shape.
1075: *
1076: *
1077: * @param value
1078: * allowed object is
1079: * {@link TaperedCapsule }
1080: *
1081: */
1082: public void setTaperedCapsule(TaperedCapsule value) {
1083: this .taperedCapsule = value;
1084: }
1085:
1086: /**
1087: *
1088: * Defines a capsule to use for this shape.
1089: *
1090: *
1091: * @return
1092: * possible object is
1093: * {@link Capsule }
1094: *
1095: */
1096: public Capsule getCapsule() {
1097: return capsule;
1098: }
1099:
1100: /**
1101: *
1102: * Defines a capsule to use for this shape.
1103: *
1104: *
1105: * @param value
1106: * allowed object is
1107: * {@link Capsule }
1108: *
1109: */
1110: public void setCapsule(Capsule value) {
1111: this .capsule = value;
1112: }
1113:
1114: /**
1115: *
1116: * Allows a tranformation for the shape.
1117: * Gets the value of the translatesAndRotates property.
1118: *
1119: * <p>
1120: * This accessor method returns a reference to the live list,
1121: * not a snapshot. Therefore any modification you make to the
1122: * returned list will be present inside the JAXB object.
1123: * This is why there is not a <CODE>set</CODE> method for the translatesAndRotates property.
1124: *
1125: * <p>
1126: * For example, to add a new item, do as follows:
1127: * <pre>
1128: * getTranslatesAndRotates().add(newItem);
1129: * </pre>
1130: *
1131: *
1132: * <p>
1133: * Objects of the following type(s) are allowed in the list
1134: * {@link Rotate }
1135: * {@link TargetableFloat3 }
1136: *
1137: *
1138: */
1139: public List<Object> getTranslatesAndRotates() {
1140: if (translatesAndRotates == null) {
1141: translatesAndRotates = new ArrayList<Object>();
1142: }
1143: return this .translatesAndRotates;
1144: }
1145:
1146: /**
1147: *
1148: * The extra element may appear any number of times.
1149: * Gets the value of the extras property.
1150: *
1151: * <p>
1152: * This accessor method returns a reference to the live list,
1153: * not a snapshot. Therefore any modification you make to the
1154: * returned list will be present inside the JAXB object.
1155: * This is why there is not a <CODE>set</CODE> method for the extras property.
1156: *
1157: * <p>
1158: * For example, to add a new item, do as follows:
1159: * <pre>
1160: * getExtras().add(newItem);
1161: * </pre>
1162: *
1163: *
1164: * <p>
1165: * Objects of the following type(s) are allowed in the list
1166: * {@link Extra }
1167: *
1168: *
1169: */
1170: public List<Extra> getExtras() {
1171: if (extras == null) {
1172: extras = new ArrayList<Extra>();
1173: }
1174: return this .extras;
1175: }
1176:
1177: /**
1178: * <p>Java class for anonymous complex type.
1179: *
1180: * <p>The following schema fragment specifies the expected content contained within this class.
1181: *
1182: * <pre>
1183: * <complexType>
1184: * <simpleContent>
1185: * <extension base="<http://www.collada.org/2005/11/COLLADASchema>bool">
1186: * <attribute name="sid" type="{http://www.w3.org/2001/XMLSchema}NCName" />
1187: * </extension>
1188: * </simpleContent>
1189: * </complexType>
1190: * </pre>
1191: *
1192: *
1193: */
1194: @XmlAccessorType(XmlAccessType.FIELD)
1195: @XmlType(name="",propOrder={"value"})
1196: public static class Hollow {
1197:
1198: @XmlValue
1199: protected boolean value;
1200: @XmlAttribute
1201: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
1202: protected String sid;
1203:
1204: /**
1205: * Gets the value of the value property.
1206: *
1207: */
1208: public boolean isValue() {
1209: return value;
1210: }
1211:
1212: /**
1213: * Sets the value of the value property.
1214: *
1215: */
1216: public void setValue(boolean value) {
1217: this .value = value;
1218: }
1219:
1220: /**
1221: * Gets the value of the sid property.
1222: *
1223: * @return
1224: * possible object is
1225: * {@link String }
1226: *
1227: */
1228: public String getSid() {
1229: return sid;
1230: }
1231:
1232: /**
1233: * Sets the value of the sid property.
1234: *
1235: * @param value
1236: * allowed object is
1237: * {@link String }
1238: *
1239: */
1240: public void setSid(String value) {
1241: this.sid = value;
1242: }
1243:
1244: }
1245:
1246: }
1247:
1248: }
1249:
1250: }
|