00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00017 #ifndef _FCD_IMAGE_H_
00018 #define _FCD_IMAGE_H_
00019
00020 #include "FCDocument/FCDEntity.h"
00021
00022 class FCDocument;
00023
00036 class FCOLLADA_EXPORT FCDImage : public FCDEntity
00037 {
00038 private:
00039 DeclareObjectType;
00040
00041 fstring filename;
00042 uint32 width;
00043 uint32 height;
00044 uint32 depth;
00045
00046 public:
00050 FCDImage(FCDocument* document);
00051
00054 virtual ~FCDImage();
00055
00059 virtual Type GetType() const { return IMAGE; }
00060
00066 const fstring& GetFilename() const { return filename; }
00067
00073 void SetFilename(const fstring& _filename) { filename = _filename; }
00074
00080 const uint32& GetWidth() const { return width; }
00081
00087 void SetWidth(uint32 _width) { width = _width; }
00088
00094 const uint32& GetHeight() const { return height; }
00095
00101 void SetHeight(uint32 _height) { height = _height; }
00102
00107 const uint32& GetDepth() const { return depth; }
00108
00113 void SetDepth(uint32 _depth) { depth = _depth; }
00114
00119 virtual FUStatus LoadFromXML(xmlNode* imageNode);
00120
00124 virtual xmlNode* WriteToXML(xmlNode* parentNode) const;
00125 };
00126
00127 #endif // _FCD_IMAGE_H_