#include <qtpixelref.h>
Public Member Functions |
| | QtPixelRef (const SPtr< QImage > &image=0, int x=0, int y=0) |
| | Creates a new pixel reference.
|
| | ~QtPixelRef () |
| | Cleans up.
|
| virtual Object * | clone () |
| | Returns a pointer to a semantical copy of the current object.
|
| virtual std::string | get_type_name () const |
| | Returns the type of the object.
|
| QRgb | get_value () |
| | Returns the color the pixel is referencing.
|
| void | set_value (QRgb value) |
| | Sets the value of the pixel.
|
| virtual std::string | to_string () const |
| | Converts the object to a non-formatted string.
|
Protected Attributes |
| SPtr< QImage > | image |
| | Image of the pixel.
|
| int | x |
| | Position of the pixel.
|
| int | y |
Constructor & Destructor Documentation
| crp::QtPixelRef::QtPixelRef |
( |
const SPtr< QImage > & |
image = 0, |
|
|
int |
x = 0, |
|
|
int |
y = 0 |
|
) |
| |
Creates a new pixel reference.
| crp::QtPixelRef::~QtPixelRef |
( |
| ) |
[inline] |
Member Function Documentation
| virtual Object* crp::QtPixelRef::clone |
( |
| ) |
[inline, virtual] |
Returns a pointer to a semantical copy of the current object.
- Returns:
- Copy of the current object
| virtual std::string crp::QtPixelRef::get_type_name |
( |
| ) |
const [inline, virtual] |
Returns the type of the object.
- Returns:
- Type of the object
| QRgb crp::QtPixelRef::get_value |
( |
| ) |
|
Returns the color the pixel is referencing.
- Returns:
- QRgb Color value
| void crp::QtPixelRef::set_value |
( |
QRgb |
value | ) |
|
Sets the value of the pixel.
- Parameters:
-
| virtual std::string crp::QtPixelRef::to_string |
( |
| ) |
const [virtual] |
Converts the object to a non-formatted string.
- Returns:
- String representation of the object
Field Documentation
The documentation for this class was generated from the following file: