|
Blender V4.3
|
#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 178 of file Image.h.
References _rgb, Freestyle::FrsImage::_storedHeight, and Freestyle::FrsImage::_storedWidth.
Definition at line 184 of file Image.h.
References Freestyle::FrsImage::_height, _rgb, and Freestyle::FrsImage::_width.
Definition at line 189 of file Image.h.
References Freestyle::FrsImage::_height, _rgb, and Freestyle::FrsImage::_width.
|
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 209 of file Image.h.
References _rgb, Freestyle::FrsImage::_storedHeight, and Freestyle::FrsImage::_storedWidth.
|
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 289 of file Image.h.
References _rgb.
Definition at line 241 of file Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, and Freestyle::FrsImage::_storedWidth.
Definition at line 236 of file Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, and Freestyle::FrsImage::_storedWidth.
Definition at line 231 of file Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, and Freestyle::FrsImage::_storedWidth.
Definition at line 216 of file Image.h.
References _rgb, Freestyle::FrsImage::_storedHeight, and Freestyle::FrsImage::_storedWidth.
Returns the gray value for pixel x,y
Implements Freestyle::FrsImage.
Definition at line 256 of file Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, and Freestyle::FrsImage::_storedWidth.
|
inlinevirtual |
Sets the RGB array. copy If true, the array is copied, otherwise the pointer is copied
Implements Freestyle::FrsImage.
Definition at line 272 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 246 of file Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, Freestyle::FrsImage::_storedWidth, and b.
|
protected |
Definition at line 295 of file Image.h.
Referenced by getArray(), getB(), getG(), getR(), operator=(), pixel(), RGBImage(), RGBImage(), RGBImage(), RGBImage(), RGBImage(), setArray(), setPixel(), and ~RGBImage().