Blender
V3.3
|
#include <Image.h>
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 () |
![]() | |
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 |
![]() | |
unsigned | _width |
unsigned | _height |
unsigned | _storedWidth |
unsigned | _storedHeight |
unsigned | _Ox |
unsigned | _Oy |
Definition at line 171 of file freestyle/intern/image/Image.h.
|
inline |
Definition at line 173 of file freestyle/intern/image/Image.h.
References _rgb.
|
inline |
Definition at line 178 of file freestyle/intern/image/Image.h.
References _rgb, Freestyle::FrsImage::_storedHeight, and Freestyle::FrsImage::_storedWidth.
|
inline |
Definition at line 184 of file freestyle/intern/image/Image.h.
References Freestyle::FrsImage::_height, _rgb, and Freestyle::FrsImage::_width.
|
inline |
Definition at line 189 of file freestyle/intern/image/Image.h.
References Freestyle::FrsImage::_height, _rgb, Freestyle::FrsImage::_width, and usdtokens::rgb().
|
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 freestyle/intern/image/Image.h.
References _rgb, Freestyle::FrsImage::_storedHeight, Freestyle::FrsImage::_storedWidth, and usdtokens::rgb().
|
inlinevirtual |
Definition at line 224 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 295 of file freestyle/intern/image/Image.h.
References _rgb.
|
inline |
Definition at line 241 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 236 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 231 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 216 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 256 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 272 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(), usdtokens::rgb(), sh, sw, Freestyle::FrsImage::width(), Freestyle::x, and y.
Referenced by Freestyle::AppCanvas::readColorPixels().
|
inlinevirtual |
Definition at line 246 of file freestyle/intern/image/Image.h.
References Freestyle::FrsImage::_Ox, Freestyle::FrsImage::_Oy, _rgb, Freestyle::FrsImage::_storedWidth, usdtokens::b(), usdtokens::g(), r, Freestyle::x, and y.
|
protected |
Definition at line 301 of file freestyle/intern/image/Image.h.
Referenced by getArray(), getB(), getG(), getR(), operator=(), pixel(), RGBImage(), setArray(), setPixel(), and ~RGBImage().