|
Blender
V2.93
|
#include <Image.h>
Inherits Freestyle::FrsImage.
Public Member Functions | |
| RGBImage () | |
| RGBImage (const RGBImage &brother) | |
| RGBImage (unsigned w, unsigned h) | |
| RGBImage (float *rgb, unsigned w, unsigned h) | |
| RGBImage (float *rgb, unsigned w, unsigned h, unsigned sw, unsigned sh, unsigned ox, unsigned oy) | |
| RGBImage & | operator= (const RGBImage &brother) |
| virtual | ~RGBImage () |
| float | getR (unsigned x, unsigned y) const |
| float | getG (unsigned x, unsigned y) const |
| float | getB (unsigned x, unsigned y) const |
| virtual void | setPixel (unsigned x, unsigned y, float r, float g, float b) |
| virtual float | pixel (unsigned x, unsigned y) const |
| virtual void | setArray (float *rgb, unsigned width, unsigned height, unsigned sw, unsigned sh, unsigned x, unsigned y, bool copy=true) |
| virtual float * | getArray () |
Public Member Functions inherited from Freestyle::FrsImage | |
| FrsImage () | |
| FrsImage (const FrsImage &brother) | |
| FrsImage (unsigned w, unsigned h) | |
| FrsImage (unsigned w, unsigned h, unsigned sw, unsigned sh, unsigned ox, unsigned oy) | |
| FrsImage & | operator= (const FrsImage &brother) |
| virtual | ~FrsImage () |
| unsigned | width () const |
| unsigned | height () const |
Protected Attributes | |
| float * | _rgb |
Protected Attributes inherited from Freestyle::FrsImage | |
| unsigned | _width |
| unsigned | _height |
| unsigned | _storedWidth |
| unsigned | _storedHeight |
| unsigned | _Ox |
| unsigned | _Oy |
Definition at line 185 of file freestyle/intern/image/Image.h.
|
inline |
Definition at line 187 of file freestyle/intern/image/Image.h.
References _rgb.
|
inline |
Definition at line 192 of file freestyle/intern/image/Image.h.
References _rgb, Freestyle::FrsImage::_storedHeight, and Freestyle::FrsImage::_storedWidth.
|
inline |
Definition at line 198 of file freestyle/intern/image/Image.h.
References Freestyle::FrsImage::_height, _rgb, and Freestyle::FrsImage::_width.
|
inline |
Definition at line 203 of file freestyle/intern/image/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 223 of file freestyle/intern/image/Image.h.
References _rgb, Freestyle::FrsImage::_storedHeight, and Freestyle::FrsImage::_storedWidth.
|
inlinevirtual |
Definition at line 238 of file freestyle/intern/image/Image.h.
References _rgb.
|
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 309 of file freestyle/intern/image/Image.h.
References _rgb.
|
inline |
Definition at line 255 of file freestyle/intern/image/Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, Freestyle::FrsImage::_storedWidth, Freestyle::x, and y.
|
inline |
Definition at line 250 of file freestyle/intern/image/Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, Freestyle::FrsImage::_storedWidth, Freestyle::x, and y.
|
inline |
Definition at line 245 of file freestyle/intern/image/Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, Freestyle::FrsImage::_storedWidth, Freestyle::x, and y.
Definition at line 230 of file freestyle/intern/image/Image.h.
References _rgb, Freestyle::FrsImage::_storedHeight, and Freestyle::FrsImage::_storedWidth.
|
inlinevirtual |
Returns the gray value for pixel x,y
Implements Freestyle::FrsImage.
Definition at line 270 of file freestyle/intern/image/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 286 of file freestyle/intern/image/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 260 of file freestyle/intern/image/Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, Freestyle::FrsImage::_storedWidth, r, Freestyle::x, and y.
|
protected |
Definition at line 315 of file freestyle/intern/image/Image.h.
Referenced by getArray(), getB(), getG(), getR(), operator=(), pixel(), RGBImage(), setArray(), setPixel(), and ~RGBImage().