|
Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
A RenderEventCallback that copyes a rectangular pixel area from a source buffer to an Image at the end of a rendering. More...
#include <ReadPixels.hpp>
Inheritance diagram for vl::ReadPixels:Public Member Functions | |
| ReadPixels () | |
| ReadPixels (int x, int y, int width, int height, EReadDrawBuffer read_buffer, Image *image, bool store_in_pbo) | |
| virtual bool | onRenderingStarted (const RenderingAbstract *) |
| Reimplement to react to this event. More... | |
| virtual bool | onRenderingFinished (const RenderingAbstract *) |
| Reimplement to react to this event. More... | |
| virtual bool | onRendererStarted (const RendererAbstract *) |
| Reimplement to react to this event. More... | |
| virtual bool | onRendererFinished (const RendererAbstract *) |
| Reimplement to react to this event. More... | |
| 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 |
Public Member Functions inherited from vl::RenderEventCallback | |
| RenderEventCallback () | |
| void | setRemoveAfterCall (bool remove) |
| Defines if the callback shall be removed after being executed. More... | |
| bool | removeAfterCall () const |
| Defines if the callback shall be removed after being executed. More... | |
| void | setEnabled (bool enabled) |
| Enabled/disabled callback. More... | |
| bool | isEnabled () const |
| Whether the callback is enabled or not. More... | |
Public Member Functions inherited from vl::Object | |
| Object () | |
| Constructor. More... | |
| Object (const Object &other) | |
| Copy constructor: copies the name, ref count mutex and user data. More... | |
| Object & | operator= (const Object &other) |
| Copy operator: copies the object's name, ref count mutex and user data. More... | |
| const std::string & | objectName () const |
| The name of the object, by default set to the object's class name. More... | |
| void | setObjectName (const char *name) |
| The name of the object, by default set to the object's class name in debug builds. More... | |
| void | setObjectName (const std::string &name) |
| The name of the object, by default set to the object's class name in debug builds. More... | |
| void | setRefCountMutex (IMutex *mutex) |
| The mutex used to protect the reference counting of an Object across multiple threads. More... | |
| IMutex * | refCountMutex () |
| The mutex used to protect the reference counting of an Object across multiple threads. More... | |
| const IMutex * | refCountMutex () const |
| The mutex used to protect the reference counting of an Object across multiple threads. More... | |
| int | referenceCount () const |
| Returns the number of references of an object. More... | |
| void | incReference () const |
| Increments the reference count of an object. More... | |
| void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
| void | setAutomaticDelete (bool autodel_on) |
| If set to true the Object is deleted when its reference count reaches 0. More... | |
| bool | automaticDelete () const |
| If set to true the Object is deleted when its reference count reaches 0. More... | |
| template<class T > | |
| T * | as () |
| Casts an Object to the specified class. More... | |
| template<class T > | |
| const T * | as () const |
| Casts an Object to the specified class. More... | |
Protected Member Functions | |
| void | readPixels () |
Protected Member Functions inherited from vl::Object | |
| virtual | ~Object () |
Protected Attributes | |
| int | mX |
| int | mY |
| int | mWidth |
| int | mHeight |
| EReadDrawBuffer | mReadBuffer |
| ref< Image > | mImage |
| String | mSavePath |
| bool | mStoreInPixelBufferObject |
Protected Attributes inherited from vl::RenderEventCallback | |
| bool | mRemoveAfterCall |
| bool | mEnabled |
Protected Attributes inherited from vl::Object | |
| std::string | mObjectName |
| IMutex * | mRefCountMutex |
| int | mReferenceCount |
| bool | mAutomaticDelete |
A RenderEventCallback that copyes a rectangular pixel area from a source buffer to an Image at the end of a rendering.
The actual copy is performed using the function Image::readPixels(). Using the function setSavePath() the Image will be saved on the specified location.
Definition at line 152 of file ReadPixels.hpp.
|
inline |
Definition at line 157 of file ReadPixels.hpp.
|
inline |
Definition at line 168 of file ReadPixels.hpp.
|
inline |
Definition at line 225 of file ReadPixels.hpp.
References mHeight.
Referenced by setHeight(), and setup().
|
inline |
|
inline |
Definition at line 228 of file ReadPixels.hpp.
References mImage.
|
inlinevirtual |
Reimplement to react to this event.
true if the callback reacted to the given event. Implements vl::RenderEventCallback.
Definition at line 198 of file ReadPixels.hpp.
References readPixels().
|
inlinevirtual |
Reimplement to react to this event.
true if the callback reacted to the given event. Implements vl::RenderEventCallback.
Definition at line 192 of file ReadPixels.hpp.
References readPixels().
|
inlinevirtual |
Reimplement to react to this event.
true if the callback reacted to the given event. Implements vl::RenderEventCallback.
Definition at line 186 of file ReadPixels.hpp.
References readPixels().
|
inlinevirtual |
Reimplement to react to this event.
true if the callback reacted to the given event. Implements vl::RenderEventCallback.
Definition at line 180 of file ReadPixels.hpp.
References readPixels().
|
inline |
Definition at line 226 of file ReadPixels.hpp.
References mReadBuffer.
|
inlineprotected |
Definition at line 235 of file ReadPixels.hpp.
References vl::Log::error(), vl::String::length(), mHeight, mImage, mReadBuffer, mWidth, mX, mY, NULL, vl::readPixels(), vl::saveImage(), savePath(), and storeInPixelBufferObject().
Referenced by onRendererFinished(), onRendererStarted(), onRenderingFinished(), and onRenderingStarted().
|
inline |
|
inline |
Definition at line 217 of file ReadPixels.hpp.
|
inline |
Definition at line 219 of file ReadPixels.hpp.
|
inline |
Definition at line 218 of file ReadPixels.hpp.
References mReadBuffer.
|
inline |
Definition at line 220 of file ReadPixels.hpp.
References mSavePath.
|
inline |
Definition at line 231 of file ReadPixels.hpp.
References mStoreInPixelBufferObject.
|
inline |
Definition at line 204 of file ReadPixels.hpp.
References height(), mHeight, mReadBuffer, mStoreInPixelBufferObject, mWidth, mX, mY, width(), x(), and y().
|
inline |
Definition at line 216 of file ReadPixels.hpp.
|
inline |
Definition at line 214 of file ReadPixels.hpp.
|
inline |
Definition at line 215 of file ReadPixels.hpp.
|
inline |
Definition at line 232 of file ReadPixels.hpp.
References mStoreInPixelBufferObject.
Referenced by readPixels().
|
inline |
Definition at line 224 of file ReadPixels.hpp.
References mWidth.
Referenced by setup(), and setWidth().
|
inline |
|
inline |
|
protected |
Definition at line 251 of file ReadPixels.hpp.
Referenced by height(), readPixels(), setHeight(), and setup().
Definition at line 253 of file ReadPixels.hpp.
Referenced by image(), readPixels(), and setImage().
|
protected |
Definition at line 252 of file ReadPixels.hpp.
Referenced by readBuffer(), readPixels(), setReadBuffer(), and setup().
|
protected |
Definition at line 254 of file ReadPixels.hpp.
Referenced by savePath(), and setSavePath().
|
protected |
Definition at line 255 of file ReadPixels.hpp.
Referenced by setStoreInPixelBufferObject(), setup(), and storeInPixelBufferObject().
|
protected |
Definition at line 250 of file ReadPixels.hpp.
Referenced by readPixels(), setup(), setWidth(), and width().
|
protected |
Definition at line 248 of file ReadPixels.hpp.
Referenced by readPixels(), setup(), setX(), and x().
|
protected |
Definition at line 249 of file ReadPixels.hpp.
Referenced by readPixels(), setup(), setY(), and y().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:53.
© Copyright Michele Bosi. All rights reserved.