00001 #ifndef __domMinmax_h__ 00002 #define __domMinmax_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 class DAE; 00009 00010 class domMinmax : public daeElement 00011 { 00012 public: 00013 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINMAX; } 00014 static daeInt ID() { return 458; } 00015 virtual daeInt typeID() const { return ID(); } 00016 protected: // Attributes 00017 xsToken attrName; 00018 domSid attrSid; 00019 00020 00021 public: //Accessors and Mutators 00026 xsToken getName() const { return attrName; } 00031 void setName( xsToken atName ) { *(daeStringRef*)&attrName = atName;} 00032 00037 domSid getSid() const { return attrSid; } 00042 void setSid( domSid atSid ) { *(daeStringRef*)&attrSid = atSid;} 00043 00048 domFloat& getValue() { return _value; } 00053 void setValue( const domFloat& val ) { _value = val; } 00054 00055 protected: // Value 00059 domFloat _value; 00060 protected: 00064 domMinmax(DAE& dae) : daeElement(dae), attrName(), attrSid(), _value() {} 00068 virtual ~domMinmax() {} 00072 virtual domMinmax &operator=( const domMinmax &cpy ) { (void)cpy; return *this; } 00073 00074 public: // STATIC METHODS 00079 static DLLSPEC daeElementRef create(DAE& dae); 00085 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00086 }; 00087 00088 00089 #endif