#include <pixel.h>
Inheritance diagram for Plot::RGBPixel
Functions written in terms of the public access functions | |
| template<classOutputType> void | write_binary<OutputType> (ostream& s, OutputType max_val) |
| Writes raw data to a binary file. More... | |
| template<classOComponent> ostream& | operator<<<OComponent> (ostream& s, const RGBPixel<OComponent>& o) |
| Writes a readable representation to a stream. | |
| template<classOComponent> RGBPixel<OComponent> | operator+<OComponent> (const RGBPixel<OComponent>& A, const RGBPixel<OComponent>& B) |
| Writes raw data to a binary file. More... | |
Public Methods | |
| self | operator+= (const self &B) |
| Unary addition. More... | |
| self& | operator *= (const Bounded::LargeFloat m) |
| Multiplicative scaling. More... | |
Constructors and destructors | |
| RGBPixel () | |
| Default constructor; pixel remains transparent. More... | |
| RGBPixel (FComponent value) | |
| Constructor taking a single greyscale value (required by some matrix types). More... | |
| RGBPixel (FComponent red, FComponent green, FComponent blue, bool visible=true) | |
| Constructor taking floating-point RGB triple. More... | |
| RGBPixel (const self& other) | |
| Copy constructor. More... | |
| template<classOComponent, classOHComponent> | RGBPixel<OComponent, OHComponent> (const HSVPixel<OComponent,OHComponent>& O) |
| Constructor for an RGBPixel from an HSVPixel. More... | |
Access functions for the components of the pixel | |
| Bounded::Magnitude | red () const |
| Returns the red component on a scale [0.0,1.0]. More... | |
| Bounded::Magnitude | green () const |
| Returns the green component on a scale [0.0,1.0]. More... | |
| Bounded::Magnitude | blue () const |
| Returns the blue component on a scale [0.0,1.0]. More... | |
Definition at line 70 of file pixel.h.
|
||||
|
Default constructor; pixel remains transparent.
|
|
||||
|
Constructor taking a single greyscale value (required by some matrix types). The pixel remains transparent, although it's unclear (no pun intended) if that's appropriate. |
|
||||||||||
|
Constructor taking floating-point RGB triple.
|
|
||||
|
Copy constructor.
|
|
||||||
|
Constructor for an RGBPixel from an HSVPixel. Algorithm is from _Computer_Graphics_, 2nd Ed., Foley et al, 1990, except Hue modified to lie in [0,1] instead of [0,360]. |
|
||||
|
Returns the blue component on a scale [0.0,1.0].
|
|
||||
|
Returns the green component on a scale [0.0,1.0].
|
|
||||
|
Multiplicative scaling.
|
|
||||
|
Unary addition.
|
|
||||
|
Returns the red component on a scale [0.0,1.0].
|
|
||||||||
|
Writes raw data to a binary file. You must ensure that the max_val is of the type you want the output to use. |
|
||||||||
|
Writes raw data to a binary file. You must ensure that the max_val is of the type you want the output to use. |
1.2.1 written by Dimitri van Heesch,
© 1997-2000