Abstract base class for all ImageViz engines. More...
#include <ImageViz/Engines/SoImageVizEngine.h>
Classes | |
struct | EventArg |
Structure given to callback when an event is raised. More... | |
Public Types | |
enum | ComputeMode { MODE_2D = 0, MODE_3D = 1, MODE_AUTO = 2 } |
enum | Neighborhood3d { CONNECTIVITY_6 = 0, CONNECTIVITY_18 = 1, CONNECTIVITY_26 = 2 } |
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual void | startEvaluate () |
virtual void | waitEvaluate () |
virtual void | abortEvaluate () |
virtual bool | isEvaluating () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SbEventHandler< EventArg & > | onBegin |
SbEventHandler< EventArg & > | onEnd |
SbEventHandler< EventArg & > | onProgress |
Compute Mode This enum specifies whether the main input will be interpreted as a 3D volume or a stack of 2D images for processing.
virtual void SoImageVizEngine::abortEvaluate | ( | ) | [virtual] |
Abort current processing as soon as possible.
If no processing is currently running, do nothing.
static SoType SoImageVizEngine::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoEngine.
virtual SoType SoImageVizEngine::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
virtual bool SoImageVizEngine::isEvaluating | ( | ) | [virtual] |
Returns true if the engine evaluation is in progress.
virtual void SoImageVizEngine::startEvaluate | ( | ) | [virtual] |
Evaluate engine and dependencies in another thread without blocking the current one.
Event onEnd is raised when processing ends and result is available.
virtual void SoImageVizEngine::waitEvaluate | ( | ) | [virtual] |
Wait for the end of engine evaluation.
This method blocks the current thread.
Event raised when the processing begins.
Event raised when processing ends and the result is available.
Important note: Do not use waitEvaluate() method in this event because this can cause a dead-lock during evaluation.
Event raised while processing is running.
Nb: This event is regularly called during processing. It can be used to observe progression of the computing (e.g. to display a progress bar).