|
Blender V5.0
|
#include <Image.h>
Inherits Freestyle::FrsImage.
Public Member Functions | |
| RGBImage () | |
| RGBImage (const RGBImage &brother) | |
| RGBImage (uint w, uint h) | |
| RGBImage (float *rgb, uint w, uint h) | |
| RGBImage (float *rgb, uint w, uint h, uint sw, uint sh, uint ox, uint oy) | |
| RGBImage & | operator= (const RGBImage &brother) |
| virtual | ~RGBImage () |
| float | getR (uint x, uint y) const |
| float | getG (uint x, uint y) const |
| float | getB (uint x, uint y) const |
| virtual void | setPixel (uint x, uint y, float r, float g, float b) |
| virtual float | pixel (uint x, uint y) const |
| virtual void | setArray (float *rgb, uint width, uint height, uint sw, uint sh, uint x, uint y, bool copy=true) |
| virtual float * | getArray () |
| Public Member Functions inherited from Freestyle::FrsImage | |
| FrsImage () | |
| FrsImage (const FrsImage &brother) | |
| FrsImage (uint w, uint h) | |
| FrsImage (uint w, uint h, uint sw, uint sh, uint ox, uint oy) | |
| FrsImage & | operator= (const FrsImage &brother) |
| virtual | ~FrsImage () |
| uint | width () const |
| uint | height () const |
Protected Attributes | |
| float * | _rgb |
| Protected Attributes inherited from Freestyle::FrsImage | |
| uint | _width |
| uint | _height |
| uint | _storedWidth |
| uint | _storedHeight |
| uint | _Ox |
| uint | _Oy |
|
inline |
Definition at line 169 of file Image.h.
References _rgb, and Freestyle::FrsImage::FrsImage().
Referenced by operator=(), and RGBImage().
|
inline |
Definition at line 174 of file Image.h.
References _rgb, Freestyle::FrsImage::_storedHeight, Freestyle::FrsImage::_storedWidth, Freestyle::FrsImage::FrsImage(), and RGBImage().
Definition at line 180 of file Image.h.
References Freestyle::FrsImage::_height, _rgb, Freestyle::FrsImage::_width, Freestyle::FrsImage::FrsImage(), and w().
Definition at line 185 of file Image.h.
References Freestyle::FrsImage::_height, _rgb, Freestyle::FrsImage::_width, Freestyle::FrsImage::FrsImage(), and w().
|
inline |
Builds an RGB partial image from the useful part buffer.
| rgb | The array of size 3*sw*sh containing the RGB values of the sw*sh pixels we need to stored. These sw*sh pixels constitute a rectangular part of a bigger RGB image containing w*h pixels. |
| w | The width of the complete image |
| h | The height of the complete image |
| sw | The width of the part of the image we want to store and work on |
| sh | The height of the part of the image we want to store and work on |
Definition at line 205 of file Image.h.
References _rgb, Freestyle::FrsImage::_storedHeight, Freestyle::FrsImage::_storedWidth, Freestyle::FrsImage::FrsImage(), and w().
|
inlinevirtual |
|
inlinevirtual |
Returns the array containing the pixels values. Its size is sw*sh, i.e. potentially a smaller rectangular part of the complete image.
Implements Freestyle::FrsImage.
Definition at line 285 of file Image.h.
References _rgb.
Definition at line 237 of file Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, Freestyle::FrsImage::_storedWidth, Freestyle::x, and y.
Definition at line 232 of file Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, Freestyle::FrsImage::_storedWidth, Freestyle::x, and y.
Definition at line 227 of file Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, Freestyle::FrsImage::_storedWidth, Freestyle::x, and y.
Definition at line 212 of file Image.h.
References _rgb, Freestyle::FrsImage::_storedHeight, Freestyle::FrsImage::_storedWidth, Freestyle::FrsImage::FrsImage(), and RGBImage().
Returns the gray value for pixel x,y
Implements Freestyle::FrsImage.
Definition at line 252 of file Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, Freestyle::FrsImage::_storedWidth, Freestyle::x, and y.
|
inlinevirtual |
Sets the RGB array. copy If true, the array is copied, otherwise the pointer is copied
Implements Freestyle::FrsImage.
Definition at line 268 of file Image.h.
References Freestyle::FrsImage::_height, Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, Freestyle::FrsImage::_storedHeight, Freestyle::FrsImage::_storedWidth, Freestyle::FrsImage::_width, copy(), Freestyle::FrsImage::height(), Freestyle::FrsImage::width(), Freestyle::x, and y.
Referenced by Freestyle::AppCanvas::readColorPixels().
|
inlinevirtual |
Definition at line 242 of file Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, Freestyle::FrsImage::_storedWidth, b, Freestyle::x, and y.
|
protected |
Definition at line 291 of file Image.h.
Referenced by getArray(), getB(), getG(), getR(), operator=(), pixel(), RGBImage(), RGBImage(), RGBImage(), RGBImage(), RGBImage(), setArray(), setPixel(), and ~RGBImage().