#include <framebuffer.h>
Inheritance diagram for FrameBuffer:

Public Member Functions | |
| FrameBuffer () | |
| FrameBuffer (const BoxSize &fbSize) | |
| FrameBuffer (const FrameBuffer &fb) | |
| FrameBuffer & | operator= (const FrameBuffer &fb) |
| ~FrameBuffer () | |
| Pixel * | pBuff () |
| void | setPixel (Point pos, Pixel color) |
| Pixel * | operator[] (int y) |
| const BoxSize & | size () const |
| void | resize (const BoxSize &newSize) |
| void | size (const BoxSize &fbSize) |
| const Rect & | select () const |
| void | select (const Rect &selectRect) |
| void | unSelect () |
Protected Attributes | |
| Pixel * | _pBuff |
| Pointer to array of Pixel objects. | |
Friends | |
| class | SharedObject |
| Needed for IPC. | |
| class | SharedFrameBuffer |
| Needed for IPC. | |
Classes | |
| class | ErrUnalloc |
Definition at line 146 of file framebuffer.h.
| FrameBuffer::FrameBuffer | ( | ) | [inline] |
Create frame buffer with no size. This is used in derived classes. You can set frame buffer size later using FrameBuffer::size() or FrameBuffer::resize() method.
Definition at line 152 of file framebuffer.h.
| FrameBuffer::FrameBuffer | ( | const BoxSize & | fbSize | ) | [inline] |
Create frame buffer of desired size. Whole image is set as selected area.
| fbSize | Desired size of frame buffer. |
Definition at line 158 of file framebuffer.h.
References size().
| FrameBuffer::FrameBuffer | ( | const FrameBuffer & | fb | ) |
Frame buffer copy constructor.
| FrameBuffer::~FrameBuffer | ( | ) | [inline] |
Free memory allocated for array of Pixel objects.
Definition at line 173 of file framebuffer.h.
References _pBuff.
| FrameBuffer& FrameBuffer::operator= | ( | const FrameBuffer & | fb | ) |
Frame buffer assignment.
| Pixel* FrameBuffer::pBuff | ( | ) |
Access point to array of Pixel objects. This can throw FrameBuffer::ErrUnalloc exception if there is no array. It happens usualy if frame buffer has zero size.
Referenced by operator[](), and MyFl_Image::uncache().
This method sets pixel "pos" to color "color". It has no effect for pixels outside selected area. This can throw FrameBuffer::ErrUnalloc exception if there is no array. It happens usualy if frame buffer has zero size.
| pos | Pixel position. | |
| color | Desired color. |
| Pixel* FrameBuffer::operator[] | ( | int | y | ) | [inline] |
Access point to row of array of Pixel objects. This can throw FrameBuffer::ErrUnalloc exception if there is no array. It happens usualy if frame buffer has zero size.
| y | Desired row. This must be in interval from 0 to FrameBuffer::size().width-1. |
Definition at line 199 of file framebuffer.h.
References pBuff(), and BoxSize::width.
| const BoxSize& FrameBuffer::size | ( | ) | const [inline] |
Definition at line 207 of file framebuffer.h.
Referenced by FrameBuffer(), and MyFl_Image::uncache().
| void FrameBuffer::resize | ( | const BoxSize & | newSize | ) |
Change size of frame buffer. Current data are simply coppied.
| newSize | New size of frame buffer. |
| void FrameBuffer::size | ( | const BoxSize & | fbSize | ) |
Change size of frame buffer. Current data are dropped and array stays uninitialized.
| fbSize | New size of frame buffer. |
| const Rect& FrameBuffer::select | ( | ) | const [inline] |
| void FrameBuffer::select | ( | const Rect & | selectRect | ) |
Set select area. If desired size is greater, it is limited to frame buffer size.
| selectRect | New select area. |
| void FrameBuffer::unSelect | ( | ) |
Select whole image. This means selection will have no effect for operations with frame buffer.
friend class SharedObject [friend] |
friend class SharedFrameBuffer [friend] |
Pixel* FrameBuffer::_pBuff [protected] |
Pointer to array of Pixel objects.
Definition at line 247 of file framebuffer.h.
Referenced by ~FrameBuffer().
1.5.2