UT/UT_Color.h File Reference

#include "UT_API.h"
#include <iostream.h>
#include <SYS/SYS_Types.h>
#include "UT_VectorTypes.h"

Go to the source code of this file.

Classes

class  UT_Color

Defines

#define UT_BLACK   (UT_Color::getConstantColor(0))
#define UT_BLUE   (UT_Color::getConstantColor(1))
#define UT_GREEN   (UT_Color::getConstantColor(2))
#define UT_RED   (UT_Color::getConstantColor(3))
#define UT_CYAN   (UT_Color::getConstantColor(4))
#define UT_MAGENTA   (UT_Color::getConstantColor(5))
#define UT_YELLOW   (UT_Color::getConstantColor(6))
#define UT_WHITE   (UT_Color::getConstantColor(7))
#define UT_GREY1   (UT_Color::getConstantColor(8))
#define UT_GREY2   (UT_Color::getConstantColor(9))
#define UT_GREY3   (UT_Color::getConstantColor(10))
#define UT_GREY4   (UT_Color::getConstantColor(11))
#define UT_GREY5   (UT_Color::getConstantColor(12))
#define UT_GREY6   (UT_Color::getConstantColor(13))
#define UT_GREY7   (UT_Color::getConstantColor(14))
#define UT_GREY8   (UT_Color::getConstantColor(15))
#define UT_GREY9   (UT_Color::getConstantColor(16))

Enumerations

enum  UT_ColorType {
  UT_HSL, UT_HSV, UT_RGB, UT_XYZ,
  UT_LAB
}
enum  UT_ColorRamp {
  UT_COLORRAMP_FALSE, UT_COLORRAMP_PINK, UT_COLORRAMP_MONO, UT_COLORRAMP_BLACKBODY,
  UT_COLORRAMP_BIPARTITE, UT_COLORRAMP_NUMMODES
}
enum  UT_MonoRamp {
  UT_MONORAMP_INCREASING, UT_MONORAMP_DECREASING, UT_MONORAMP_HILL, UT_MONORAMP_VALLEY,
  UT_MONORAMP_STEP, UT_MONORAMP_SQUARE, UT_MONORAMP_NUMMODES
}

Functions

UT_API const char * UTnameFromColorType (UT_ColorType ctype)
UT_API UT_ColorType UTcolorTypeFromName (const char *cname)
UT_API void UT_RGBtoHSV (fpreal *values, int nvalues)
UT_API void UT_HSVtoRGB (fpreal *values, int nvalues)


Define Documentation

#define UT_BLACK   (UT_Color::getConstantColor(0))

Definition at line 60 of file UT_Color.h.

#define UT_BLUE   (UT_Color::getConstantColor(1))

Definition at line 61 of file UT_Color.h.

#define UT_CYAN   (UT_Color::getConstantColor(4))

Definition at line 64 of file UT_Color.h.

#define UT_GREEN   (UT_Color::getConstantColor(2))

Definition at line 62 of file UT_Color.h.

#define UT_GREY1   (UT_Color::getConstantColor(8))

Definition at line 68 of file UT_Color.h.

#define UT_GREY2   (UT_Color::getConstantColor(9))

Definition at line 69 of file UT_Color.h.

#define UT_GREY3   (UT_Color::getConstantColor(10))

Definition at line 70 of file UT_Color.h.

#define UT_GREY4   (UT_Color::getConstantColor(11))

Definition at line 71 of file UT_Color.h.

#define UT_GREY5   (UT_Color::getConstantColor(12))

Definition at line 72 of file UT_Color.h.

#define UT_GREY6   (UT_Color::getConstantColor(13))

Definition at line 73 of file UT_Color.h.

#define UT_GREY7   (UT_Color::getConstantColor(14))

Definition at line 74 of file UT_Color.h.

#define UT_GREY8   (UT_Color::getConstantColor(15))

Definition at line 75 of file UT_Color.h.

#define UT_GREY9   (UT_Color::getConstantColor(16))

Definition at line 76 of file UT_Color.h.

#define UT_MAGENTA   (UT_Color::getConstantColor(5))

Definition at line 65 of file UT_Color.h.

#define UT_RED   (UT_Color::getConstantColor(3))

Definition at line 63 of file UT_Color.h.

#define UT_WHITE   (UT_Color::getConstantColor(7))

Definition at line 67 of file UT_Color.h.

#define UT_YELLOW   (UT_Color::getConstantColor(6))

Definition at line 66 of file UT_Color.h.


Enumeration Type Documentation

Enumerator:
UT_COLORRAMP_FALSE 
UT_COLORRAMP_PINK 
UT_COLORRAMP_MONO 
UT_COLORRAMP_BLACKBODY 
UT_COLORRAMP_BIPARTITE 
UT_COLORRAMP_NUMMODES 

Definition at line 32 of file UT_Color.h.

Enumerator:
UT_HSL 
UT_HSV 
UT_RGB 
UT_XYZ 
UT_LAB 

Definition at line 23 of file UT_Color.h.

Enumerator:
UT_MONORAMP_INCREASING 
UT_MONORAMP_DECREASING 
UT_MONORAMP_HILL 
UT_MONORAMP_VALLEY 
UT_MONORAMP_STEP 
UT_MONORAMP_SQUARE 
UT_MONORAMP_NUMMODES 

Definition at line 41 of file UT_Color.h.


Function Documentation

UT_API void UT_HSVtoRGB ( fpreal values,
int  nvalues 
)

UT_API void UT_RGBtoHSV ( fpreal values,
int  nvalues 
)

UT_API UT_ColorType UTcolorTypeFromName ( const char *  cname  ) 

UT_API const char* UTnameFromColorType ( UT_ColorType  ctype  ) 


Generated on Thu Jan 31 00:29:15 2013 for HDK by  doxygen 1.5.9