QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_Color Class Reference

#include <opennurbs_color.h>

Public Member Functions

int Alpha () const
 
int Blue () const
 
int Compare (const ON_Color &) const
 
double FractionAlpha () const
 
double FractionBlue () const
 
double FractionGreen () const
 
double FractionRed () const
 
int Green () const
 
double Hue () const
 
 ON_Color ()
 
 ON_Color (int red, int green, int blue)
 
 ON_Color (int red, int green, int blue, int alpha)
 
 ON_Color (unsigned int)
 
 operator unsigned int () const
 
int Red () const
 
double Saturation () const
 
void SetAlpha (int alpha)
 
void SetFractionalAlpha (double alpha)
 
void SetFractionalRGB (double red, double green, double blue)
 
void SetFractionalRGBA (double red, double green, double blue, double alpha)
 
void SetHSV (double h, double s, double v)
 
void SetRGB (int red, int green, int blue)
 
void SetRGBA (int red, int green, int blue, int alpha)
 
double Value () const
 

Static Public Attributes

static const ON_Color UnsetColor
 

Private Attributes

unsigned int m_color
 

Constructor & Destructor Documentation

◆ ON_Color() [1/4]

ON_Color::ON_Color ( )

◆ ON_Color() [2/4]

ON_Color::ON_Color ( int red,
int green,
int blue )

◆ ON_Color() [3/4]

ON_Color::ON_Color ( int red,
int green,
int blue,
int alpha )

◆ ON_Color() [4/4]

ON_Color::ON_Color ( unsigned int colorref)

Member Function Documentation

◆ Alpha()

int ON_Color::Alpha ( ) const

◆ Blue()

int ON_Color::Blue ( ) const

◆ Compare()

int ON_Color::Compare ( const ON_Color & b) const

◆ FractionAlpha()

double ON_Color::FractionAlpha ( ) const

◆ FractionBlue()

double ON_Color::FractionBlue ( ) const

◆ FractionGreen()

double ON_Color::FractionGreen ( ) const

◆ FractionRed()

double ON_Color::FractionRed ( ) const

◆ Green()

int ON_Color::Green ( ) const

◆ Hue()

double ON_Color::Hue ( ) const

◆ operator unsigned int()

ON_Color::operator unsigned int ( ) const

◆ Red()

int ON_Color::Red ( ) const

◆ Saturation()

double ON_Color::Saturation ( ) const

◆ SetAlpha()

void ON_Color::SetAlpha ( int alpha)

◆ SetFractionalAlpha()

void ON_Color::SetFractionalAlpha ( double alpha)

◆ SetFractionalRGB()

void ON_Color::SetFractionalRGB ( double red,
double green,
double blue )

◆ SetFractionalRGBA()

void ON_Color::SetFractionalRGBA ( double red,
double green,
double blue,
double alpha )

◆ SetHSV()

void ON_Color::SetHSV ( double h,
double s,
double v )

◆ SetRGB()

void ON_Color::SetRGB ( int red,
int green,
int blue )

◆ SetRGBA()

void ON_Color::SetRGBA ( int red,
int green,
int blue,
int alpha )

◆ Value()

double ON_Color::Value ( ) const

Member Data Documentation

◆ m_color

unsigned int ON_Color::m_color
private

◆ UnsetColor

const ON_Color ON_Color::UnsetColor
static

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