| #pragma once |
| |
| #ifndef TIMAGE_INCLUDED |
| #define TIMAGE_INCLUDED |
| |
| #include "tsmartpointer.h" |
| #include "tgeometry.h" |
| #include "traster.h" |
| #undef DVAPI |
| #undef DVVAR |
| #ifdef TIMAGE_EXPORTS |
| #define DVAPI DV_EXPORT_API |
| #define DVVAR DV_EXPORT_VAR |
| #else |
| #define DVAPI DV_IMPORT_API |
| #define DVVAR DV_IMPORT_VAR |
| #endif |
| |
| class TPalette; |
| |
| |
| |
| |
| |
| |
| class DVAPI TImage : public TSmartObject { |
| DECLARE_CLASS_CODE |
| TPalette *m_palette; |
| |
| public: |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| TImage(); |
| virtual ~TImage(); |
| |
| |
| |
| |
| enum Type { |
| NONE = 0, |
| RASTER = 1, |
| VECTOR = 2, |
| TOONZ_RASTER = 3, |
| MESH = 4 |
| }; |
| |
| |
| |
| |
| virtual Type getType() const = 0; |
| |
| |
| |
| |
| virtual TRectD getBBox() const = 0; |
| |
| |
| |
| |
| virtual TImage *cloneImage() const = 0; |
| |
| |
| |
| |
| |
| |
| |
| |
| virtual TRasterP raster() const { return TRasterP(); } |
| |
| TPalette *getPalette() const { return m_palette; } |
| |
| |
| |
| virtual void setPalette(TPalette *palette); |
| |
| private: |
| |
| TImage(const TImage &); |
| TImage &operator=(const TImage &); |
| }; |
| |
| |
| |
| #ifdef _WIN32 |
| template class DVAPI TSmartPointerT<TImage>; |
| #endif |
| |
| typedef TSmartPointerT<TImage> TImageP; |
| |
| #endif |