colmodel.h File Reference

(r1785/r751)

#include "fixed24.h"

Go to the source code of this file.

Classes

struct  PColourRGBT
struct  ColourRGBT
struct  PColourCMYK
struct  ColourCMYK
struct  PColourHSVT
struct  ColourHSVT
struct  PColourGreyT
struct  ColourGreyT
struct  PColourCIET
struct  ColourCIET
struct  DColourCIET
struct  PColourIndexed
struct  PColourGeneric
struct  ColourGeneric
union  ColourPacked

Typedefs

typedef UINT32 PColourValue
typedef FIXED24 ColourValue

Enumerations

enum  TransType {
  TRANSTYPE_MINIMUM = 0, TRANSTYPE_NONE = 0, TRANSTYPE_DEFAULT = 1, TRANSTYPE_REFLECTIVE = 1,
  TRANSTYPE_SUBTRACTIVE = 2, TRANSTYPE_ADDITIVE = 3, TRANSTYPE_MAXIMUM = 3
}
enum  ColourModel {
  COLOURMODEL_INDEXED = 0, COLOURMODEL_NOTCACHED = 0, COLOURMODEL_CIET, COLOURMODEL_RGBT,
  COLOURMODEL_CMYK, COLOURMODEL_HSVT, COLOURMODEL_GREYT, COLOURMODEL_WEBRGBT,
  MAX_COLOURMODELS
}


Typedef Documentation

typedef FIXED24 ColourValue
 

Definition at line 250 of file colmodel.h.

typedef UINT32 PColourValue
 

Definition at line 249 of file colmodel.h.


Enumeration Type Documentation

enum ColourModel
 

Comment: This contains the number of colour models available for use in Camelot. The main use for this is internal to the colour system, for processing all colour models, using a loop of the form: MonoOn for (INT32 colourmodel = 0; colourmodel < MAX_COLOURMODELS; colourmodel++) ... Do something relating to colour model 'colourmodel'...; MonoOff

See also:
Keyword ColourModel
Enumerator:
COLOURMODEL_INDEXED 
COLOURMODEL_NOTCACHED 
COLOURMODEL_CIET 
COLOURMODEL_RGBT 
COLOURMODEL_CMYK 
COLOURMODEL_HSVT 
COLOURMODEL_GREYT 
COLOURMODEL_WEBRGBT 
MAX_COLOURMODELS 

Definition at line 197 of file colmodel.h.

00198 {
00199     COLOURMODEL_INDEXED     = 0,        //  0 Reference to an indexed colour
00200                                         //      (ONLY valid for SourceColourModel
00201                                         //      field of immediate colours)
00202     COLOURMODEL_NOTCACHED   = 0,        //  0 Indicator that the cache is invalid
00203                                         //      (ONLY valid for CacheColourModel
00204                                         //      field of immediate colours)
00205 
00206     COLOURMODEL_CIET,                   //  1 CIE coordinate (X,Y,Z), Transparent
00207     COLOURMODEL_RGBT,                   //  2 Red, Green, Blue, Transparent
00208     COLOURMODEL_CMYK,                   //  3 Cyan, Magenta, Yellow, Key
00209     COLOURMODEL_HSVT,                   //  4 Hue, Saturation, Value, Transparent
00210     COLOURMODEL_GREYT,                  //  5 Greyscale intensity, Transparent
00211     COLOURMODEL_WEBRGBT,                //  6 Same as COLOURMODEL_RGBT; but allows us
00212                                         //  to (correctly) provide a new ColourContext
00213                                         //  that can be selected within the colour editor
00214                                         //  for hex input (but still functions internally
00215                                         //  as a COLOURMODEL_RGBT
00216 
00217     // Insert new colour models here...
00218 
00219     MAX_COLOURMODELS                    // This is automagically set to the
00220                                         // number of available models.
00221                                         // You MAY:
00222                                         //   for (cm=0; cm<MAX_COLOURMODELS; cm++)
00223                                         // You may NOT:
00224                                         //   for (cm=0; cm<16; cm++)
00225 } ColourModel;

enum TransType
 

Comment: Camelot supports 4 different models for transparency. The TransType enumerated type enumerates the 4 possible values:

TRANSTYPE_NONE, _REFLECTIVE, _SUBTRACTIVE, _ADDITIVE.

TRANSTYPE_DEFAULT is set to the default value with which all Doc/Indexed Colour objects will be initially created. (Current = 1)

See also:
DocColour::SetTransparencyType; IndexedColour::SetTransparencyType
Enumerator:
TRANSTYPE_MINIMUM 
TRANSTYPE_NONE 
TRANSTYPE_DEFAULT 
TRANSTYPE_REFLECTIVE 
TRANSTYPE_SUBTRACTIVE 
TRANSTYPE_ADDITIVE 
TRANSTYPE_MAXIMUM 

Definition at line 133 of file colmodel.h.

00134 {
00135     TRANSTYPE_MINIMUM       = 0,
00136 
00137     TRANSTYPE_NONE          = 0,
00138 
00139     TRANSTYPE_DEFAULT       = 1,
00140 
00141     TRANSTYPE_REFLECTIVE    = 1,
00142     TRANSTYPE_SUBTRACTIVE   = 2,
00143     TRANSTYPE_ADDITIVE      = 3,
00144 
00145     TRANSTYPE_MAXIMUM       = 3
00146 } TransType;


Generated on Sat Nov 10 03:49:06 2007 for Camelot by  doxygen 1.4.4