Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Plot::HSVPixel< Component, HComponent > Class Template Reference

#include <pixel.h>

Inheritance diagram for Plot::HSVPixel< Component, HComponent >:

Inheritance graph
[legend]
Collaboration diagram for Plot::HSVPixel< Component, HComponent >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Component = Pixel::FComponent, class HComponent = Pixel::HueComponent>
class Plot::HSVPixel< Component, HComponent >

Hue,Saturation,Value image Pixel.

Definition at line 159 of file pixel.h.

Public Methods

std::ostream & put (std::ostream &s)
 Stream output.

Constructors and destructors
 HSVPixel ()
 Default constructor; pixel remains transparent.

 HSVPixel (HComponent hue, Component saturation, Component value)
 Constructor taking HSV triple.

 HSVPixel (const HSVPixel &other)
 Copy constructor.

template<class OComponent>  HSVPixel (const RGBPixel< OComponent > &other)
 Constructor for an HSVPixel from an RGBPixel.

Access functions for the components of the pixel
Bounded::Magnitude hue () const
 Returns the hue component on a scale [0.0,1.0].

Bounded::Magnitude saturation () const
 Returns the saturation component on a scale [0.0,1.0].

Bounded::Magnitude value () const
 Returns the value component on a scale [0.0,1.0].


Static Public Attributes

int reversed_color_order = false
 This parameter can be set to a nonzero value if you want hues to go in the opposite direction.


Constructor & Destructor Documentation

template<class Component, class HComponent>
template<class OComponent>
Plot::HSVPixel< Component, HComponent >::HSVPixel const RGBPixel< OComponent > &    other
 

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].

Definition at line 270 of file pixel.h.

References Plot::HSVPixel< Component, HComponent >::reversed_color_order.


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:37:40 2003 for RF-LISSOM by doxygen1.3-rc2