12 #ifndef __LIDAR_PROGRESS_DELEGATE_H__ 13 #define __LIDAR_PROGRESS_DELEGATE_H__ 17 LT_BEGIN_LIDAR_NAMESPACE
44 virtual void reportProgress(
double progress,
const char *message) = 0;
84 void warning(
const char *format, ...);
106 void setCancelled(
bool cancel);
109 const char *m_lastMessage;
113 LT_END_LIDAR_NAMESPACE
114 #endif // __LIDAR_PROGRESS_DELEGATE_H__ virtual void displayWarning(const char *message)
virtual bool getCancelled(void)=0
Indicate weather the operation should be cancelled.
void updateCompleted(double delta, const char *message)
Update the amount of work that has been done.
void warning(const char *format,...)
double getProgress(void) const
Get the fraction the work completed.
virtual void reportProgress(double progress, const char *message)=0
Displays the progress of the operation.
ProgressDelegate is the base class for progress and interrupt reporting.
void setTotal(double total)
Set the total amount of work that must be done.
virtual ~ProgressDelegate(void)