![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/ThumbnailManager.h>
The ThumbnailManager class generates and manages thumbnails for data instances. More...
Inheritance diagram for ThumbnailManager:The ThumbnailManager class generates and manages thumbnails for data instances.
For most image data a thumbnail is generated by rendering the image (the middle slice in 3d). For other data, standard icons are returned. Generated thumbnails are cached.
Public Member Functions | |
| const SharedImage * | getThumbnail (const SharedImageSet *image, vec2i size) |
| Returns a SharedImage containing the thumbnail of the given image-set with the requested size. | |
| void | removeFromCache (const Data *data) |
| Removes any thumbnail for the given dataset from the cache. | |
| void | setClearColor (vec4f c) |
| Sets the background color of the thumbnail. | |
| std::unique_ptr< SharedImage > | renderThumbnail (const SharedImageSet *image, const vec2i &size, const vec4f &clearColor={0, 0, 0, 0}) |
| Renders a thumbnail as SharedImage for the given image without using the cache. | |
| QImage | getThumbnail (const Data *data, QSize size) |
| Returns a thumbnail as QImage for the given data instance. | |
| std::unique_ptr< QImage > | renderThumbnail (const SharedImageSet *image, QSize size, const vec4f &clearColor={0, 0, 0, 0}) |
Static Public Member Functions | |
| static ThumbnailManager & | instance () |
| Returns the global ThumbnailManager instance. | |
Static Public Member Functions inherited from InstanceManager< ThumbnailManager > | |
| static ThumbnailManager & | cachedInstance () |
| Returns the cached instance of type T for the currently active OpenGL context. | |