#include <pixel.h>
Inheritance diagram for Plot::HSVPixel
Public Methods | |
Constructors and destructors | |
| HSVPixel () | |
| Default constructor; pixel remains transparent. More... | |
| HSVPixel (HComponent hue, Component saturation, Component value) | |
| Constructor taking HSV triple. More... | |
| HSVPixel (const HSVPixel& other) | |
| Copy constructor. More... | |
| template<classOComponent> | HSVPixel<OComponent> (const RGBPixel<OComponent>& other) |
| Constructor for an HSVPixel from an RGBPixel. More... | |
Access functions for the components of the pixel | |
| Bounded::Magnitude | hue () const |
| Returns the hue component on a scale [0.0,1.0]. More... | |
| Bounded::Magnitude | saturation () const |
| Returns the saturation component on a scale [0.0,1.0]. More... | |
| Bounded::Magnitude | value () const |
| Returns the value component on a scale [0.0,1.0]. More... | |
Friends | |
| template<classOComponent> ostream& | operator<<<OComponent> (ostream& s, const HSVPixel<OComponent>& o) |
| Stream output. | |
Definition at line 165 of file pixel.h.
|
||||
|
Default constructor; pixel remains transparent.
|
|
||||||||
|
Constructor taking HSV triple.
|
|
||||
|
Copy constructor.
|
|
||||||
|
Constructor for an HSVPixel from an RGBPixel. Algorithm is from _Computer_Graphics_, 2nd Ed., Foley et al, 1990, except Hue modified to lie in [0,1] instead of [0,360]. S, and V are also specified in the range [0,1]. |
|
||||
|
Returns the hue component on a scale [0.0,1.0].
|
|
||||
|
Returns the saturation component on a scale [0.0,1.0].
|
|
||||
|
Returns the value component on a scale [0.0,1.0].
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000