00001 #ifndef __domAxis_constraint_h__ 00002 #define __domAxis_constraint_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 #include <dom/domAxis.h> 00009 #include <dom/domJoint_limits.h> 00010 class DAE; 00011 00012 class domAxis_constraint : public daeElement 00013 { 00014 public: 00015 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::AXIS_CONSTRAINT; } 00016 static daeInt ID() { return 461; } 00017 virtual daeInt typeID() const { return ID(); } 00018 protected: // Attribute 00019 domSid attrSid; 00020 00021 protected: // Elements 00022 domAxisRef elemAxis; 00023 domJoint_limitsRef elemLimits; 00024 00025 public: //Accessors and Mutators 00030 domSid getSid() const { return attrSid; } 00035 void setSid( domSid atSid ) { *(daeStringRef*)&attrSid = atSid;} 00036 00041 const domAxisRef getAxis() const { return elemAxis; } 00046 const domJoint_limitsRef getLimits() const { return elemLimits; } 00047 protected: 00051 domAxis_constraint(DAE& dae) : daeElement(dae), attrSid(), elemAxis(), elemLimits() {} 00055 virtual ~domAxis_constraint() {} 00059 virtual domAxis_constraint &operator=( const domAxis_constraint &cpy ) { (void)cpy; return *this; } 00060 00061 public: // STATIC METHODS 00066 static DLLSPEC daeElementRef create(DAE& dae); 00072 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00073 }; 00074 00075 00076 #endif