00001
00002
00003
00004
00005
00006
00007
00008
00010
00012
00018 #ifndef _seDRMRGBColour_h
00019 #define _seDRMRGBColour_h
00020
00021 #include "seDRMColourData.h"
00022
00023 namespace sedris {
00024
00030 class seDRMRGBColour : public seDRMColourData
00031 {
00032 public:
00033
00035 seDRMRGBColour() {}
00036
00038 seDRMRGBColour( const seObject &other ) : seDRMColourData(other) {}
00039
00041 const SE_RGB_Data& get_rgb_data() { DRMBASE_RET_FIELDS(RGB_Colour, rgb_data); }
00042
00044 void set_rgb_data( const SE_RGB_Data &val ) { DRMBASE_SET_FIELDS(RGB_Colour, rgb_data, val); }
00045
00047 void set_rgb_data( SE_Long_Float red, SE_Long_Float green, SE_Long_Float blue ) {
00048 DRMBASE_ALLOC_FIELDS;
00049 DRMBASE_SET_FIELDS_S(RGB_Colour, rgb_data, red, red);
00050 DRMBASE_SET_FIELDS_S(RGB_Colour, rgb_data, green, green);
00051 DRMBASE_SET_FIELDS_S(RGB_Colour, rgb_data, blue, blue);
00052 }
00053
00055 virtual SE_DRM_Class getClassType() const { return SE_DRM_CLS_RGB_COLOUR; }
00056
00057 };
00058
00059 }
00060
00061 #endif // _seDRMRGBColour_h