ImFusion SDK 4.3
CalibrationProgress Class Reference

#include <ImFusion/LiveUS/UltrasoundCalibrationWizard.h>

Progress implementation as an integrated QProgressBar. More...

+ Inheritance diagram for CalibrationProgress:

Detailed Description

Progress implementation as an integrated QProgressBar.

Public Member Functions

 CalibrationProgress (QProgressBar *bar)
 
void onTaskUpdated (const Task *task) override
 Function is called whenever the state of a Task has changed and the reporter should update its UI.
 
- Public Member Functions inherited from NestedProgress
 NestedProgress (Progress *parent=nullptr, Flags< TaskMode > taskFlags=TaskMode::Default)
 Creates a new NestedProgress instance.
 
void setParentProgress (Progress *parent)
 Updates the parent Progress instance to which progress updates should be forwarded to.
 
void cancelAllTasks ()
 Will cancel all tasks that were spawned from this NestedProgress instance.
 
- Public Member Functions inherited from Progress
Task addTask (int numSteps, const std::string &description)
 Create a new progress report for an operation with the given number of steps.
 
Task addBusyIndicator (const std::string &description)
 Create a busy indicator for an operation but does not have a predefined number of steps.
 

Additional Inherited Members

- Public Types inherited from NestedProgress
enum  TaskMode { Default = 0 , ThreadSafe = 1 << 0 , Hidden = 1 << 1 }
 Enumeration of possible invariants that should be ensured by NestedProgress. More...
 
- Public Attributes inherited from NestedProgress
ProtectedSignal< Task * > signalTaskAdded
 Signal emitted by the default implementation of NestedProgress::onTaskAdded().
 
ProtectedSignal< const Task * > signalTaskUpdated
 Signal emitted by the default implementation of NestedProgress::onTaskUpdated().
 
- Protected Member Functions inherited from NestedProgress
void onTaskAdded (Task *task) override
 Function is called whenever a new Task has been created.
 
void onTaskUpdated (const Task *task) override
 Function is called whenever the state of a Task has changed and the reporter should update its UI.
 
bool onTaskRequestsThreadSafety (const Task *task) override
 Function is called by Task::requestThreadSafety() in order to check whether the parent reporter supports concurrent access.
 
void onTaskRemoved (const Task *task) override
 Function is called whenever a Task is about to be destroyed and its pointer will become invalid.
 
- Protected Attributes inherited from NestedProgress
Progressm_parent
 
const Flags< TaskModem_taskFlags
 
std::unique_ptr< std::mutexm_mutex
 
std::unique_ptr< Taskm_parentThreadSafetyGuard
 
std::vector< Task * > m_tasks
 

Member Function Documentation

◆ onTaskUpdated()

void onTaskUpdated ( const Task * task)
overridevirtual

Function is called whenever the state of a Task has changed and the reporter should update its UI.

Implements Progress.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close