|
HDK
|
#include <TIL_Thumbnail.h>
Public Types | |
| enum | UpdateReason { TIL_THUMB_ERROR, TIL_THUMB_UPDATE, TIL_THUMB_DONE } |
| Reasons for update. More... | |
Public Member Functions | |
| TIL_Thumbnail () | |
| virtual | ~TIL_Thumbnail () |
| virtual void | update (UpdateReason reason) |
| virtual int | percentComplete () const =0 |
| Return the percent complete (0-100). More... | |
| virtual UT_StringHolder | errorMessage () const =0 |
| Return any error message. More... | |
| bool | needsRefresh () const |
| Tracks whether this thubnail is out of date. More... | |
| void | setNeedsRefresh () |
| virtual void | start (const TIL_ThumbnailParms &parms)=0 |
| Start thumbnail generation. More... | |
| virtual const TIL_Raster * | getImage () const =0 |
Base class to generate a thumbnail for a shader
For each thumbnail required, create an TIL_Thumbnail object. This acts as a handle to a render. By default, you'll get a sphere with the shader specified in the parms applied to it.
Definition at line 120 of file TIL_Thumbnail.h.
Reasons for update.
| Enumerator | |
|---|---|
| TIL_THUMB_ERROR | |
| TIL_THUMB_UPDATE | |
| TIL_THUMB_DONE | |
Definition at line 124 of file TIL_Thumbnail.h.
| TIL_Thumbnail::TIL_Thumbnail | ( | ) |
|
virtual |
|
pure virtual |
Return any error message.
|
pure virtual |
Return the RGBA raster. It's possible the raster is incomplete, but the raster will be updated as the render proceeds.
| bool TIL_Thumbnail::needsRefresh | ( | ) | const |
Tracks whether this thubnail is out of date.
|
pure virtual |
Return the percent complete (0-100).
| void TIL_Thumbnail::setNeedsRefresh | ( | ) |
|
pure virtual |
Start thumbnail generation.
|
virtual |
If you want to get updates on the rendering progress, you can implement this method.