HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_Color Class Reference

#include <HOM_Color.h>

Public Member Functions

 HOM_Color ()
 
 HOM_Color (const std::vector< float > &rgb_tuple)
 
 HOM_Color (float r, float g, float b)
 
 HOM_Color (const UT_Color &color)
 
 ~HOM_Color ()
 
bool operator== (HOM_PtrOrNull< HOM_Color > color)
 
bool operator!= (HOM_PtrOrNull< HOM_Color > color)
 
int __hash__ ()
 
std::string __repr__ ()
 
HOM_Coloroperator= (const HOM_Color &color)
 
std::vector< float > rgb ()
 
std::vector< float > hsv ()
 
std::vector< float > hsl ()
 
std::vector< float > xyz ()
 
std::vector< float > lab ()
 
std::vector< float > tmi ()
 
void setRGB (const std::vector< float > &tuple)
 
void setHSV (const std::vector< float > &tuple)
 
void setHSL (const std::vector< float > &tuple)
 
void setXYZ (const std::vector< float > &tuple)
 
void setLAB (const std::vector< float > &tuple)
 
void setTMI (const std::vector< float > &tuple)
 
void_asVoidPointer ()
 

Static Public Member Functions

static std::vector< std::stringocio_spaces ()
 
static UT_ColorType colorTypeForEnumValue (HOM_EnumValue &enum_value)
 
static HOM_EnumValuecolorTypeToEnumValue (UT_ColorType basis)
 

Public Attributes

UT_Color myColor
 

Detailed Description

Definition at line 23 of file HOM_Color.h.

Constructor & Destructor Documentation

HOM_Color::HOM_Color ( )
inline

Definition at line 26 of file HOM_Color.h.

HOM_Color::HOM_Color ( const std::vector< float > &  rgb_tuple)
HOM_Color::HOM_Color ( float  r,
float  g,
float  b 
)
inline

Definition at line 32 of file HOM_Color.h.

HOM_Color::HOM_Color ( const UT_Color color)
inline

Definition at line 37 of file HOM_Color.h.

HOM_Color::~HOM_Color ( )
inline

Definition at line 41 of file HOM_Color.h.

Member Function Documentation

int HOM_Color::__hash__ ( )
std::string HOM_Color::__repr__ ( )
void* HOM_Color::_asVoidPointer ( )
inline

Definition at line 81 of file HOM_Color.h.

static UT_ColorType HOM_Color::colorTypeForEnumValue ( HOM_EnumValue enum_value)
static
static HOM_EnumValue& HOM_Color::colorTypeToEnumValue ( UT_ColorType  basis)
static
std::vector<float> HOM_Color::hsl ( )
std::vector<float> HOM_Color::hsv ( )
std::vector<float> HOM_Color::lab ( )
static std::vector<std::string> HOM_Color::ocio_spaces ( )
static
bool HOM_Color::operator!= ( HOM_PtrOrNull< HOM_Color color)
inline

Definition at line 47 of file HOM_Color.h.

HOM_Color& HOM_Color::operator= ( const HOM_Color color)
inline

Definition at line 54 of file HOM_Color.h.

bool HOM_Color::operator== ( HOM_PtrOrNull< HOM_Color color)
inline

Definition at line 44 of file HOM_Color.h.

std::vector<float> HOM_Color::rgb ( )
void HOM_Color::setHSL ( const std::vector< float > &  tuple)
void HOM_Color::setHSV ( const std::vector< float > &  tuple)
void HOM_Color::setLAB ( const std::vector< float > &  tuple)
void HOM_Color::setRGB ( const std::vector< float > &  tuple)
void HOM_Color::setTMI ( const std::vector< float > &  tuple)
void HOM_Color::setXYZ ( const std::vector< float > &  tuple)
std::vector<float> HOM_Color::tmi ( )
std::vector<float> HOM_Color::xyz ( )

Member Data Documentation

UT_Color HOM_Color::myColor

Definition at line 86 of file HOM_Color.h.


The documentation for this class was generated from the following file: