Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
#include <ReadPixels.hpp>
Public Member Functions | |
| virtual const char * | className () |
| Returns the name of the class. | |
| ReadPixels () | |
| ReadPixels (int x, int y, int width, int height, EReadDrawBuffer read_buffer, Image *image, bool store_in_pbo) | |
| virtual bool | renderingCallback (const RenderingAbstract *, ERenderingCallback reason) |
| Implements the actual code to be executed upon callback activation. | |
| void | setup (int x, int y, int width, int height, EReadDrawBuffer read_buffer, bool store_in_pbo) |
| void | setX (int x) |
| void | setY (int y) |
| void | setWidth (int width) |
| void | setHeight (int height) |
| void | setReadBuffer (EReadDrawBuffer buffer) |
| void | setImage (Image *image) |
| void | setSavePath (const String &path) |
| int | x () const |
| int | y () const |
| int | width () const |
| int | height () const |
| EReadDrawBuffer | readBuffer () const |
| Image * | image () |
| const Image * | image () const |
| const String & | savePath () const |
| void | setStoreInPixelBufferObject (bool use_pbo) |
| bool | storeInPixelBufferObject () const |
Protected Attributes | |
| int | mX |
| int | mY |
| int | mWidth |
| int | mHeight |
| EReadDrawBuffer | mReadBuffer |
| ref< Image > | mImage |
| String | mSavePath |
| bool | mStoreInPixelBufferObject |
The actual copy is performed using the function Image::readPixels(). Using the function setSavePath() the Image will be saved on the specified location.
| vl::ReadPixels::ReadPixels | ( | ) | [inline] |
| vl::ReadPixels::ReadPixels | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height, | |||
| EReadDrawBuffer | read_buffer, | |||
| Image * | image, | |||
| bool | store_in_pbo | |||
| ) | [inline] |
| virtual const char* vl::ReadPixels::className | ( | ) | [inline, virtual] |
| virtual bool vl::ReadPixels::renderingCallback | ( | const RenderingAbstract * | rendering, | |
| ERenderingCallback | reason | |||
| ) | [inline, virtual] |
Implements the actual code to be executed upon callback activation.
true if the callback reacted to the given reason Implements vl::RenderingCallback.
| void vl::ReadPixels::setup | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height, | |||
| EReadDrawBuffer | read_buffer, | |||
| bool | store_in_pbo | |||
| ) | [inline] |
| void vl::ReadPixels::setX | ( | int | x | ) | [inline] |
| void vl::ReadPixels::setY | ( | int | y | ) | [inline] |
| void vl::ReadPixels::setWidth | ( | int | width | ) | [inline] |
| void vl::ReadPixels::setHeight | ( | int | height | ) | [inline] |
| void vl::ReadPixels::setReadBuffer | ( | EReadDrawBuffer | buffer | ) | [inline] |
| void vl::ReadPixels::setImage | ( | Image * | image | ) | [inline] |
| void vl::ReadPixels::setSavePath | ( | const String & | path | ) | [inline] |
| int vl::ReadPixels::x | ( | ) | const [inline] |
| int vl::ReadPixels::y | ( | ) | const [inline] |
| int vl::ReadPixels::width | ( | ) | const [inline] |
| int vl::ReadPixels::height | ( | ) | const [inline] |
| EReadDrawBuffer vl::ReadPixels::readBuffer | ( | ) | const [inline] |
| Image* vl::ReadPixels::image | ( | ) | [inline] |
| const Image* vl::ReadPixels::image | ( | ) | const [inline] |
| const String& vl::ReadPixels::savePath | ( | ) | const [inline] |
| void vl::ReadPixels::setStoreInPixelBufferObject | ( | bool | use_pbo | ) | [inline] |
| bool vl::ReadPixels::storeInPixelBufferObject | ( | ) | const [inline] |
int vl::ReadPixels::mX [protected] |
int vl::ReadPixels::mY [protected] |
int vl::ReadPixels::mWidth [protected] |
int vl::ReadPixels::mHeight [protected] |
EReadDrawBuffer vl::ReadPixels::mReadBuffer [protected] |
ref<Image> vl::ReadPixels::mImage [protected] |
String vl::ReadPixels::mSavePath [protected] |
bool vl::ReadPixels::mStoreInPixelBufferObject [protected] |