Public Member Functions | Static Public Attributes | Private Attributes
ON_Color Class Reference

#include <opennurbs_color.h>

List of all members.

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
unsigned int WindowsRGB () const

Static Public Attributes

static const ON_Color UnsetColor

Private Attributes

unsigned int m_color

Detailed Description

Definition at line 24 of file opennurbs_color.h.


Constructor & Destructor Documentation

Definition at line 21 of file opennurbs_color.cpp.

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

Definition at line 27 of file opennurbs_color.cpp.

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

Definition at line 32 of file opennurbs_color.cpp.

ON_Color::ON_Color ( unsigned int  colorref)

Definition at line 24 of file opennurbs_color.cpp.


Member Function Documentation

int ON_Color::Alpha ( ) const

Definition at line 63 of file opennurbs_color.cpp.

int ON_Color::Blue ( ) const

Definition at line 60 of file opennurbs_color.cpp.

int ON_Color::Compare ( const ON_Color b) const

Definition at line 48 of file opennurbs_color.cpp.

double ON_Color::FractionAlpha ( ) const

Definition at line 84 of file opennurbs_color.cpp.

double ON_Color::FractionBlue ( ) const

Definition at line 78 of file opennurbs_color.cpp.

double ON_Color::FractionGreen ( ) const

Definition at line 72 of file opennurbs_color.cpp.

double ON_Color::FractionRed ( ) const

Definition at line 66 of file opennurbs_color.cpp.

int ON_Color::Green ( ) const

Definition at line 57 of file opennurbs_color.cpp.

double ON_Color::Hue ( ) const

Definition at line 150 of file opennurbs_color.cpp.

ON_Color::operator unsigned int ( ) const

Definition at line 43 of file opennurbs_color.cpp.

int ON_Color::Red ( ) const

Definition at line 54 of file opennurbs_color.cpp.

double ON_Color::Saturation ( ) const

Definition at line 181 of file opennurbs_color.cpp.

void ON_Color::SetAlpha ( int  alpha)

Definition at line 100 of file opennurbs_color.cpp.

void ON_Color::SetFractionalAlpha ( double  alpha)

Definition at line 106 of file opennurbs_color.cpp.

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

Definition at line 95 of file opennurbs_color.cpp.

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

Definition at line 123 of file opennurbs_color.cpp.

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

Definition at line 209 of file opennurbs_color.cpp.

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

Definition at line 90 of file opennurbs_color.cpp.

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

Definition at line 113 of file opennurbs_color.cpp.

double ON_Color::Value ( ) const

Definition at line 199 of file opennurbs_color.cpp.

unsigned int ON_Color::WindowsRGB ( ) const

Definition at line 37 of file opennurbs_color.cpp.


Member Data Documentation

unsigned int ON_Color::m_color [private]

Definition at line 135 of file opennurbs_color.h.

Definition at line 29 of file opennurbs_color.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:51