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 HOM_Color &color)
 
 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< floatrgb ()
 
std::vector< floathsv ()
 
std::vector< floathsl ()
 
std::vector< floatxyz ()
 
std::vector< floatlab ()
 
std::vector< floattmi ()
 
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)
 
HOM_Colorocio_transform (std::string src_colorspace, std::string dest_colorspace, std::string looks)
 
HOM_Colorocio_viewTransform (std::string src_colorspace, std::string display, std::string view)
 
void_asVoidPointer ()
 

Static Public Member Functions

static std::string ocio_configPath ()
 
static std::vector< std::stringocio_spaces ()
 
static std::vector< std::stringocio_activeDisplays ()
 
static std::vector< std::stringocio_activeViews ()
 
static std::vector< std::stringocio_looks ()
 
static std::vector< std::stringocio_roles ()
 
static std::vector< std::stringocio_views (const char *display)
 
static std::string ocio_defaultDisplay ()
 
static std::string ocio_defaultView ()
 
static void reloadOCIO ()
 
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 HOM_Color color)
inline

Definition at line 37 of file HOM_Color.h.

HOM_Color::HOM_Color ( const UT_Color color)
inline

Definition at line 42 of file HOM_Color.h.

HOM_Color::~HOM_Color ( )
inline

Definition at line 46 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 105 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_activeDisplays ( )
static
static std::vector<std::string> HOM_Color::ocio_activeViews ( )
static
static std::string HOM_Color::ocio_configPath ( )
static
static std::string HOM_Color::ocio_defaultDisplay ( )
static
static std::string HOM_Color::ocio_defaultView ( )
static
static std::vector<std::string> HOM_Color::ocio_looks ( )
static
static std::vector<std::string> HOM_Color::ocio_roles ( )
static
static std::vector<std::string> HOM_Color::ocio_spaces ( )
static
HOM_Color* HOM_Color::ocio_transform ( std::string  src_colorspace,
std::string  dest_colorspace,
std::string  looks 
)
static std::vector<std::string> HOM_Color::ocio_views ( const char *  display)
static
HOM_Color* HOM_Color::ocio_viewTransform ( std::string  src_colorspace,
std::string  display,
std::string  view 
)
bool HOM_Color::operator!= ( HOM_PtrOrNull< HOM_Color color)
inline

Definition at line 52 of file HOM_Color.h.

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

Definition at line 59 of file HOM_Color.h.

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

Definition at line 49 of file HOM_Color.h.

static void HOM_Color::reloadOCIO ( )
static
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 110 of file HOM_Color.h.


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