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

Plot::HSVPixel Template Class Reference

Hue,Saturation,Value image Pixel. More...

#include <pixel.h>

Inheritance diagram for Plot::HSVPixel

Inheritance graph

[legend]
Collaboration diagram for Plot::HSVPixel:

Collaboration graph

[legend]
List of all members.

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.


Detailed Description

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

Hue,Saturation,Value image Pixel.

Definition at line 165 of file pixel.h.


Constructor & Destructor Documentation

template<classComponent = Pixel::FComponent, classHComponent = Pixel::HueComponent>
Plot::HSVPixel<Component, HComponent>::HSVPixel<Component, HComponent> ( )
 

Default constructor; pixel remains transparent.

Definition at line 171 of file pixel.h.

template<classComponent = Pixel::FComponent, classHComponent = Pixel::HueComponent>
Plot::HSVPixel<Component, HComponent>::HSVPixel<Component, HComponent> ( HComponent hue,
Component saturation,
Component value )
 

Constructor taking HSV triple.

Definition at line 174 of file pixel.h.

template<classComponent = Pixel::FComponent, classHComponent = Pixel::HueComponent>
Plot::HSVPixel<Component, HComponent>::HSVPixel<Component, HComponent> ( const HSVPixel<Component, HComponent> & other )
 

Copy constructor.

Definition at line 178 of file pixel.h.

template<classComponent, classHComponent>
template<classOComponent>
Plot::HSVPixel< Component,HComponent >::HSVPixel<Component, HComponent> ( 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 268 of file pixel.h.


Member Function Documentation

template<classComponent = Pixel::FComponent, classHComponent = Pixel::HueComponent>
Bounded::Magnitude Plot::HSVPixel<Component, HComponent>::hue ( ) const [inline]
 

Returns the hue component on a scale [0.0,1.0].

Definition at line 188 of file pixel.h.

template<classComponent = Pixel::FComponent, classHComponent = Pixel::HueComponent>
Bounded::Magnitude Plot::HSVPixel<Component, HComponent>::saturation ( ) const [inline]
 

Returns the saturation component on a scale [0.0,1.0].

Definition at line 189 of file pixel.h.

template<classComponent = Pixel::FComponent, classHComponent = Pixel::HueComponent>
Bounded::Magnitude Plot::HSVPixel<Component, HComponent>::value ( ) const [inline]
 

Returns the value component on a scale [0.0,1.0].

Definition at line 190 of file pixel.h.


The documentation for this class was generated from the following file:
Generated at Mon Aug 21 00:31:17 2000 for RF-LISSOM by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000