#include <PixelRGB96.h>
Public Member Functions | |
| PixelRGB96 () | |
| PixelRGB96 (int red, int green, int blue) | |
| PixelRGB96 & | operator= (PixelRGB96 &p) |
| int & | operator[] (int i) |
| const int & | operator[] (int i) const |
| operator int * () | |
| bool | operator== (PixelRGB96 &p) |
| bool | operator!= (PixelRGB96 &p) |
| PixelRGB96 & | operator+= (PixelRGB96 &p) |
| PixelRGB96 & | operator-= (PixelRGB96 &p) |
| PixelRGB96 & | operator *= (double k) |
| PixelRGB96 & | operator *= (PixelRGB96 &p) |
| PixelRGB96 & | operator/= (PixelRGB96 &p) |
Protected Attributes | |
| int | pixel [3] |
| The pixels data as an array of ints. | |
Friends | |
| ostream & | operator<< (ostream &os, PixelRGB96 &p) |
The pixel is stored as an array of three ints which can be access as seperate colour fields using the FieldSelector enum in the ImageRGB class.
Definition at line 31 of file PixelRGB96.h.
|
|
The default constructor. This zero's the values of the red, green and blue colour fields. Definition at line 68 of file PixelRGB96.h. References pixel. |
|
||||||||||||||||
|
Create a pixel with the specified values. This constructor creates a new pixel with the red, green and blue values specified as arguments. Definition at line 78 of file PixelRGB96.h. References pixel. |
|
|
Overloaded multiplication operator. Multiply the fields of this pixel by a scalar value.
Definition at line 237 of file PixelRGB96.h. References pixel. |
|
|
Overloaded Cast operator. This operator allows the pixel to be easily cast to an int pointer. Since the pixel data is just an array of ints, this operator allows the pixel to be treated as such. Definition at line 145 of file PixelRGB96.h. References pixel. |
|
|
Overloaded test for none equality This tests whether the pixel and the one specified are not equal i.e. they have at least one field in which their values differ.
Definition at line 182 of file PixelRGB96.h. References pixel. |
|
|
Overloaded addition operator. Add the values of the pixel specified to the fields of this pixel. Note NO checking that values are within range 0-255 is done.
Definition at line 200 of file PixelRGB96.h. References pixel. |
|
|
Overloaded subtraction(difference) operator. Assign the difference of the values of the pixel specified and this pixel to the fields of this pixel.
Definition at line 219 of file PixelRGB96.h. References pixel. |
|
|
Overloaded assignment operator. Assign the values of the pixel specified to the fields of this pixel.
Definition at line 96 of file PixelRGB96.h. References pixel. |
|
|
Overloaded equality operator. This tests whether this pixel and the one specified are equal i.e. have the same values for all fields.
Definition at line 162 of file PixelRGB96.h. References pixel. |
|
|
Overloaded array operator. This operator allows easy access to the data of the pixel as if you were refering to the data directly.
Definition at line 131 of file PixelRGB96.h. References pixel. |
|
|
Overloaded array operator. This operator allows easy access to the data of the pixel as if you were refering to the data directly.
Definition at line 116 of file PixelRGB96.h. References pixel. |
|
||||||||||||
|
Outputs a pixel to the output stream This overlaoded operator inserts a representation of the pixel into the output stream (os) in the form '(r,g,b)' where r, g, b are the red, green and blue fields respectively.
Definition at line 52 of file PixelRGB96.h. |
1.4.4