00001 /* 00002 * Copyright 2006 Sony Computer Entertainment Inc. 00003 * 00004 * Licensed under the MIT Open Source License, for details please see license.txt or the website 00005 * http://www.opensource.org/licenses/mit-license.php 00006 * 00007 */ 00008 00009 #ifndef __domLookat_h__ 00010 #define __domLookat_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 class DAE; 00017 00024 class domLookat : public daeElement 00025 { 00026 public: 00027 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LOOKAT; } 00028 static daeInt ID() { return 629; } 00029 virtual daeInt typeID() const { return ID(); } 00030 protected: // Attribute 00036 xsNCName attrSid; 00037 00038 protected: // Value 00042 domFloat3x3 _value; 00043 00044 public: //Accessors and Mutators 00049 xsNCName getSid() const { return attrSid; } 00054 void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; } 00055 00060 domFloat3x3 &getValue() { return _value; } 00065 const domFloat3x3 &getValue() const { return _value; } 00070 void setValue( const domFloat3x3 &val ) { _value = val; } 00071 00072 protected: 00076 domLookat(DAE& dae) : daeElement(dae), attrSid(), _value() {} 00080 virtual ~domLookat() {} 00084 virtual domLookat &operator=( const domLookat &cpy ) { (void)cpy; return *this; } 00085 00086 public: // STATIC METHODS 00091 static DLLSPEC daeElementRef create(DAE& dae); 00097 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00098 }; 00099 00100 00101 #endif