00001
00002
00003
00004
00005
00006
00007
00008
00010
00012
00018 #ifndef _seDRMImage_h
00019 #define _seDRMImage_h
00020
00021 #include "seDRMBase.h"
00022
00023 namespace sedris {
00024
00030 class EXPORT_DLL seDRMImage : public seDRMBase
00031 {
00032 public:
00033
00035 seDRMImage() {}
00036
00038 seDRMImage( const seObject &other ) : seDRMBase(other) {}
00039
00041 const SE_String& get_name() { DRMBASE_RET_FIELDS(Image, name); }
00042
00044 void set_name( const SE_String &val ) {
00045 DRMBASE_ALLOC_FIELDS;
00046 seHelperDRM::setSE_String(DRMBASE_ACC_FIELDS(Image, name), val.characters, val.length, val.locale);
00047 }
00048
00050 void set_name( const SE_Character *chars, SE_Short_Integer_Unsigned len=0, SE_Locale locale=SE_LOCALE_DEFAULT ) {
00051 DRMBASE_ALLOC_FIELDS;
00052 seHelperDRM::setSE_String(DRMBASE_ACC_FIELDS(Image, name), chars, len, locale);
00053 }
00054
00056 SE_Colour_Model get_colour_model() { DRMBASE_RET_FIELDS(Image, colour_model); }
00057
00059 void set_colour_model( SE_Colour_Model val ) { DRMBASE_SET_FIELDS(Image, colour_model, val); }
00060
00062 SE_Short_Integer_Positive get_level_count() { DRMBASE_RET_FIELDS(Image, level_count); }
00063
00065 void set_level_count( SE_Short_Integer_Positive val ) { DRMBASE_SET_FIELDS(Image, level_count, val); }
00066
00068 const SE_Image_MIP_Extents* get_mip_extents_array() { DRMBASE_RET_FIELDS(Image, mip_extents_array); }
00069
00071 void set_mip_extents_array( const SE_Image_MIP_Extents *mip_extents_array, SE_Short_Integer_Positive level_count ) {
00072 DRMBASE_ALLOC_FIELDS;
00073 set_SE_Image_MIP_Extents(DRMBASE_ACC_FIELDS(Image, mip_extents_array), DRMBASE_ACC_FIELDS(Image, level_count), mip_extents_array, level_count);
00074 }
00075
00077 SE_Image_Signature get_image_signature() { DRMBASE_RET_FIELDS(Image, image_signature); }
00078
00080 void set_image_signature( SE_Image_Signature val ) { DRMBASE_SET_FIELDS(Image, image_signature, val); }
00081
00083 SE_Image_Scan_Direction get_scan_direction() { DRMBASE_RET_FIELDS(Image, scan_direction); }
00084
00086 void set_scan_direction( SE_Image_Scan_Direction val ) { DRMBASE_SET_FIELDS(Image, scan_direction, val); }
00087
00089 SE_Image_Scan_Direction_Z get_scan_direction_z() { DRMBASE_RET_FIELDS(Image, scan_direction_z); }
00090
00092 void set_scan_direction_z( SE_Image_Scan_Direction_Z val ) { DRMBASE_SET_FIELDS(Image, scan_direction_z, val); }
00093
00095 SE_Image_Component_Type get_component_data_type() { DRMBASE_RET_FIELDS(Image, component_data_type); }
00096
00098 void set_component_data_type( SE_Image_Component_Type val ) { DRMBASE_SET_FIELDS(Image, component_data_type, val); }
00099
00101 SE_Boolean get_data_is_little_endian() { DRMBASE_RET_FIELDS(Image, data_is_little_endian); }
00102
00104 void set_data_is_little_endian( SE_Boolean val ) { DRMBASE_SET_FIELDS(Image, data_is_little_endian, val); }
00105
00107 SE_Boolean get_data_is_3D() { DRMBASE_RET_FIELDS(Image, data_is_3D); }
00108
00110 void set_data_is_3D( SE_Boolean val ) { DRMBASE_SET_FIELDS(Image, data_is_3D, val); }
00111
00113 SE_Short_Integer_Unsigned get_bits_of_alpha() { DRMBASE_RET_FIELDS(Image, bits_of_alpha); }
00114
00116 void set_bits_of_alpha( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_alpha, val); }
00117
00119 SE_Short_Integer_Unsigned get_bits_of_luminance() { DRMBASE_RET_FIELDS(Image, bits_of_luminance); }
00120
00122 void set_bits_of_luminance( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_luminance, val); }
00123
00125 SE_Short_Integer_Unsigned get_bits_of_colour_coordinate_1() { DRMBASE_RET_FIELDS(Image, bits_of_colour_coordinate_1); }
00126
00128 void set_bits_of_colour_coordinate_1( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_colour_coordinate_1, val); }
00129
00131 SE_Short_Integer_Unsigned get_bits_of_colour_coordinate_2() { DRMBASE_RET_FIELDS(Image, bits_of_colour_coordinate_2); }
00132
00134 void set_bits_of_colour_coordinate_2( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_colour_coordinate_2, val); }
00135
00137 SE_Short_Integer_Unsigned get_bits_of_colour_coordinate_3() { DRMBASE_RET_FIELDS(Image, bits_of_colour_coordinate_3); }
00138
00140 void set_bits_of_colour_coordinate_3( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_colour_coordinate_3, val); }
00141
00143 SE_Short_Integer_Unsigned get_bits_of_bump_map_height() { DRMBASE_RET_FIELDS(Image, bits_of_bump_map_height); }
00144
00146 void set_bits_of_bump_map_height( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_bump_map_height, val); }
00147
00149 SE_Short_Integer_Unsigned get_bits_of_material_1() { DRMBASE_RET_FIELDS(Image, bits_of_material_1); }
00150
00152 void set_bits_of_material_1( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_material_1, val); }
00153
00155 SE_Short_Integer_Unsigned get_bits_of_material_2() { DRMBASE_RET_FIELDS(Image, bits_of_material_2); }
00156
00158 void set_bits_of_material_2( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_material_2, val); }
00159
00161 SE_Short_Integer_Unsigned get_bits_of_material_3() { DRMBASE_RET_FIELDS(Image, bits_of_material_3); }
00162
00164 void set_bits_of_material_3( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_material_3, val); }
00165
00167 SE_Short_Integer_Unsigned get_bits_of_material_2_percentage() { DRMBASE_RET_FIELDS(Image, bits_of_material_2_percentage); }
00168
00170 void set_bits_of_material_2_percentage( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_material_2_percentage, val); }
00171
00173 SE_Short_Integer_Unsigned get_bits_of_material_3_percentage() { DRMBASE_RET_FIELDS(Image, bits_of_material_3_percentage); }
00174
00176 void set_bits_of_material_3_percentage( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_material_3_percentage, val); }
00177
00179 SE_Short_Integer_Unsigned get_bits_of_image_index() { DRMBASE_RET_FIELDS(Image, bits_of_image_index); }
00180
00182 void set_bits_of_image_index( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_image_index, val); }
00183
00185 SE_Short_Integer_Unsigned get_bits_of_bump_map_u() { DRMBASE_RET_FIELDS(Image, bits_of_bump_map_u); }
00186
00188 void set_bits_of_bump_map_u( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_bump_map_u, val); }
00189
00191 SE_Short_Integer_Unsigned get_bits_of_bump_map_v() { DRMBASE_RET_FIELDS(Image, bits_of_bump_map_v); }
00192
00194 void set_bits_of_bump_map_v( SE_Short_Integer_Unsigned val ) { DRMBASE_SET_FIELDS(Image, bits_of_bump_map_v, val); }
00195
00197 SE_Float get_min_value_of_alpha() { DRMBASE_RET_FIELDS(Image, min_value_of_alpha); }
00198
00200 void set_min_value_of_alpha( SE_Float val ) { DRMBASE_SET_FIELDS(Image, min_value_of_alpha, val); }
00201
00203 SE_Float get_max_value_of_alpha() { DRMBASE_RET_FIELDS(Image, max_value_of_alpha); }
00204
00206 void set_max_value_of_alpha( SE_Float val ) { DRMBASE_SET_FIELDS(Image, max_value_of_alpha, val); }
00207
00209 SE_Float get_min_value_of_luminance() { DRMBASE_RET_FIELDS(Image, min_value_of_luminance); }
00210
00212 void set_min_value_of_luminance( SE_Float val ) { DRMBASE_SET_FIELDS(Image, min_value_of_luminance, val); }
00213
00215 SE_Float get_max_value_of_luminance() { DRMBASE_RET_FIELDS(Image, max_value_of_luminance); }
00216
00218 void set_max_value_of_luminance( SE_Float val ) { DRMBASE_SET_FIELDS(Image, max_value_of_luminance, val); }
00219
00221 SE_Float get_min_value_of_colour_coordinate_1() { DRMBASE_RET_FIELDS(Image, min_value_of_colour_coordinate_1); }
00222
00224 void set_min_value_of_colour_coordinate_1( SE_Float val ) { DRMBASE_SET_FIELDS(Image, min_value_of_colour_coordinate_1, val); }
00225
00227 SE_Float get_max_value_of_colour_coordinate_1() { DRMBASE_RET_FIELDS(Image, max_value_of_colour_coordinate_1); }
00228
00230 void set_max_value_of_colour_coordinate_1( SE_Float val ) { DRMBASE_SET_FIELDS(Image, max_value_of_colour_coordinate_1, val); }
00231
00233 SE_Float get_min_value_of_colour_coordinate_2() { DRMBASE_RET_FIELDS(Image, min_value_of_colour_coordinate_2); }
00234
00236 void set_min_value_of_colour_coordinate_2( SE_Float val ) { DRMBASE_SET_FIELDS(Image, min_value_of_colour_coordinate_2, val); }
00237
00239 SE_Float get_max_value_of_colour_coordinate_2() { DRMBASE_RET_FIELDS(Image, max_value_of_colour_coordinate_2); }
00240
00242 void set_max_value_of_colour_coordinate_2( SE_Float val ) { DRMBASE_SET_FIELDS(Image, max_value_of_colour_coordinate_2, val); }
00243
00245 SE_Float get_min_value_of_colour_coordinate_3() { DRMBASE_RET_FIELDS(Image, min_value_of_colour_coordinate_3); }
00246
00248 void set_min_value_of_colour_coordinate_3( SE_Float val ) { DRMBASE_SET_FIELDS(Image, min_value_of_colour_coordinate_3, val); }
00249
00251 SE_Float get_max_value_of_colour_coordinate_3() { DRMBASE_RET_FIELDS(Image, max_value_of_colour_coordinate_3); }
00252
00254 void set_max_value_of_colour_coordinate_3( SE_Float val ) { DRMBASE_SET_FIELDS(Image, max_value_of_colour_coordinate_3, val); }
00255
00257 SE_Float get_min_value_of_bump_map_height() { DRMBASE_RET_FIELDS(Image, min_value_of_bump_map_height); }
00258
00260 void set_min_value_of_bump_map_height( SE_Float val ) { DRMBASE_SET_FIELDS(Image, min_value_of_bump_map_height, val); }
00261
00263 SE_Float get_max_value_of_bump_map_height() { DRMBASE_RET_FIELDS(Image, max_value_of_bump_map_height); }
00264
00266 void set_max_value_of_bump_map_height( SE_Float val ) { DRMBASE_SET_FIELDS(Image, max_value_of_bump_map_height, val); }
00267
00269 SE_Float get_min_value_of_bump_map_u() { DRMBASE_RET_FIELDS(Image, min_value_of_bump_map_u); }
00270
00272 void set_min_value_of_bump_map_u( SE_Float val ) { DRMBASE_SET_FIELDS(Image, min_value_of_bump_map_u, val); }
00273
00275 SE_Float get_max_value_of_bump_map_u() { DRMBASE_RET_FIELDS(Image, max_value_of_bump_map_u); }
00276
00278 void set_max_value_of_bump_map_u( SE_Float val ) { DRMBASE_SET_FIELDS(Image, max_value_of_bump_map_u, val); }
00279
00281 SE_Float get_min_value_of_bump_map_v() { DRMBASE_RET_FIELDS(Image, min_value_of_bump_map_v); }
00282
00284 void set_min_value_of_bump_map_v( SE_Float val ) { DRMBASE_SET_FIELDS(Image, min_value_of_bump_map_v, val); }
00285
00287 SE_Float get_max_value_of_bump_map_v() { DRMBASE_RET_FIELDS(Image, max_value_of_bump_map_v); }
00288
00290 void set_max_value_of_bump_map_v( SE_Float val ) { DRMBASE_SET_FIELDS(Image, max_value_of_bump_map_v, val); }
00291
00302 virtual void putImageData( SE_Short_Integer_Unsigned mip_level,
00303 SE_Integer_Unsigned byte_count,
00304 const unsigned char *data );
00305
00321 virtual void getImageData( SE_Short_Integer_Unsigned mip_level,
00322 SE_Integer_Unsigned byte_count,
00323 unsigned char *data );
00324
00330 virtual SE_Integer_Unsigned getImageDataSize( SE_Short_Integer_Unsigned mip_level );
00331
00333 virtual SE_DRM_Class getClassType() const { return SE_DRM_CLS_IMAGE; }
00334
00335 };
00336
00337 }
00338
00339 #endif // _seDRMImage_h