FDO API Reference Feature Data Objects

RasterDataModelType.h

Go to the documentation of this file.
00001 #ifndef _RASTERDATAMODELTYPE_H_
00002 #define _RASTERDATAMODELTYPE_H_
00003 
00004 //
00005 // Copyright (C) 2004-2006  Autodesk, Inc.
00006 // 
00007 // This library is free software; you can redistribute it and/or
00008 // modify it under the terms of version 2.1 of the GNU Lesser
00009 // General Public License as published by the Free Software Foundation.
00010 // 
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 // 
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019 //
00020 #ifdef _WIN32
00021 #pragma once
00022 #endif
00023 
00024 #include <FdoStd.h>
00025 
00026 /// \ingroup (enums)
00027 /// \brief
00028 /// The FdoRasterDataModelType enumeration specifies the type of
00029 /// data within each pixel. In all cases the data is 'packed', that is,
00030 /// adjacent pixels are contiguous in memory with no unused bits between
00031 /// them, except at the end of a row, where the row is padded to a
00032 /// byte boundary. For example, four bit grayscale data (BitsPerPixel=4)
00033 /// would be packed two pixels to a byte, and a row would be padded with
00034 /// four bits if the image width was odd. Tri-colour or four channel data
00035 /// is also organized adjacently in memory, with no intervening padding
00036 /// except at the ends of rows. For example, eight bit RGB (BitsPerPixel=24)
00037 /// occupies three bytes per pixel, and would never need padding at the
00038 /// end of a row. Multiband data (i.e. RGB) has the same number of bits
00039 /// allocated to each band, so for example RGBT data with eight bits for red,
00040 /// would also have eight bits for each of the three other bands totaling
00041 /// thirty-two bits (BitsPerPixel=32).
00042 enum FdoRasterDataModelType
00043 {
00044     /// Data is organized in an unknown or provider specific manner.
00045     FdoRasterDataModelType_Unknown,
00046 
00047     /// Data is rectangular grid, floating point data model.
00048     FdoRasterDataModelType_Data,
00049 
00050     /// Data is one bit (black/white - bitonal) pixels.
00051     FdoRasterDataModelType_Bitonal,
00052 
00053     /// Data is monochrome (black->gray->white) pixels.
00054     /// It is necessary to know the BitsPerPixel value to interpret the data.
00055     FdoRasterDataModelType_Gray,
00056 
00057     /// Data is red/green/blue (in that order) pixels.
00058     /// It is necessary to know the BitsPerPixel value to interpret the data.
00059     FdoRasterDataModelType_RGB,
00060 
00061     /// Data is red/green/blue/alpha (in that order) pixels; RGB with transparency.
00062     /// It is necessary to know the BitsPerPixel value to interpret the data.
00063     FdoRasterDataModelType_RGBA,
00064 
00065     /// Data is monochrome but backed by a pallette (value->pallette->colour) pixels.
00066     /// It is necessary to know the BitsPerPixel value to interpret the data.
00067     FdoRasterDataModelType_Palette
00068 };
00069 
00070 #endif // _RASTERDATAMODELTYPE_H_
00071 
00072 

Comments or suggestions? Send us feedback.