- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# FCDocument/FCDImage.h

Go to the documentation of this file.

    00001 /*
    00002     Copyright (C) 2005-2007 Feeling Software Inc.
    00003     Portions of the code are:
    00004     Copyright (C) 2005-2007 Sony Computer Entertainment America
    00005
    00006     MIT License: http://www.opensource.org/licenses/mit-license.php
    00007 */
    00008 /*
    00009     Based on the FS Import classes:
    00010     Copyright (C) 2005-2006 Feeling Software Inc
    00011     Copyright (C) 2005-2006 Autodesk Media Entertainment
    00012     MIT License: http://www.opensource.org/licenses/mit-license.php
    00013 */
    00014
    00020 #ifndef _FCD_IMAGE_H_
    00021 #define _FCD_IMAGE_H_
    00022
    00023 #ifndef _FCD_ENTITY_H_
    00024 #include "FCDocument/FCDEntity.h"
    00025 #endif // _FCD_ENTITY_H_
    00026
    00027 class FCDocument;
    00028
    00041 class FCOLLADA_EXPORT FCDImage : public FCDEntity
    00042 {
    00043 private:
    00044     DeclareObjectType(FCDEntity);
    00045
    00046     DeclareParameter(fstring, FUParameterQualifiers::SIMPLE, filename, FC("Filename"));
    00047     DeclareParameter(uint32, FUParameterQualifiers::SIMPLE, width, FC("Width"));
    00048     DeclareParameter(uint32, FUParameterQualifiers::SIMPLE, height, FC("Height"));
    00049     DeclareParameter(uint32, FUParameterQualifiers::SIMPLE, depth, FC("Depth"));
    00050
    00051 public:
    00052     DeclareFlag(Video, 0);
    00053     DeclareFlagCount(1);
    00054
    00055 public:
    00059     FCDImage(FCDocument* document);
    00060
    00062     virtual ~FCDImage();
    00063
    00067     virtual Type GetType() const { return IMAGE; }
    00068
    00074     const fstring& GetFilename() const { return filename; }
    00075
    00081     void SetFilename(const fstring& _filename);
    00082
    00088     const uint32& GetWidth() const { return width; }
    00089
    00095     void SetWidth(uint32 _width) { width = _width; SetDirtyFlag(); }
    00096
    00102     const uint32& GetHeight() const { return height; }
    00103
    00109     void SetHeight(uint32 _height) { height = _height; SetDirtyFlag(); }
    00110
    00115     const uint32& GetDepth() const { return depth; }
    00116
    00121     void SetDepth(uint32 _depth) { depth = _depth; SetDirtyFlag(); }
    00122
    00129     virtual FCDEntity* Clone(FCDEntity* clone = NULL, bool cloneChildren = false) const;
    00130 };
    00131
    00132 #endif // _FCD_IMAGE_H_