![]() |
iVS3D v2.0.9
|
The IPreview interface defines the contract for preview plugins in iVS3D. Plugins implementing this interface are responsible for generating visualizations for given preview data, which typically includes an image and its index in a sequence. The generated visualization can include various overlays and styles to enhance the preview experience. More...
#include <ipreview.h>
Public Member Functions | |
| virtual VIS::VisualizationResult | generatePreview (const PreviewData &data)=0 |
| Generates a preview visualization based on the provided data. This function is executed asynchronously by iVS3D, such that expensive operations such as neural network inference do not block the main thread and GUI. Plugins should ensure that communication with the settings widget is thread-safe, e.g. by using signals and slots! | |
The IPreview interface defines the contract for preview plugins in iVS3D. Plugins implementing this interface are responsible for generating visualizations for given preview data, which typically includes an image and its index in a sequence. The generated visualization can include various overlays and styles to enhance the preview experience.
Plugins must implement the generatePreview method to create a Visualization object based on the provided PreviewData. They may use the updatePreview signal inherited from IBase to notify the system when a new preview should be generated.
|
pure virtual |
Generates a preview visualization based on the provided data. This function is executed asynchronously by iVS3D, such that expensive operations such as neural network inference do not block the main thread and GUI. Plugins should ensure that communication with the settings widget is thread-safe, e.g. by using signals and slots!
| data | The PreviewData containing the image and its index. |
Implemented in Blur, and SegmentationPlugin.