#include <DataAnalysis/Chart/threadedchartrender.h>
|
static bool | doTask (std::function< bool()> &&work, QThread *homeThread=QCoreApplication::instance() ->thread()) |
|
virtual void | taskWrapper (bool *result) |
|
| BlockingTask (QThread *homeThread=QThread::currentThread()) |
|
QSemaphore & | semaphore () |
|
virtual bool | task ()=0 |
|
◆ ThreadedChartRender() [1/3]
- Parameters
-
chart | The chart to render. |
timeoutMsec | Timeout value when the thread will give up waiting for the chart to complete rendering. |
Creates a new ThreadedChartRender which will render the specified chart when doTask is called.
◆ ThreadedChartRender() [2/3]
- Parameters
-
chart | The chart to render. |
width | The desired width of the rendered output. |
height | The desired height of the rendered output. |
timeoutMsec | Timeout value when the thread will give up waiting for the chart to complete rendering. |
Creates a new ThreadedChartRender which will render the specified chart when doTask is called.
◆ ThreadedChartRender() [3/3]
- Parameters
-
chart | The chart to render. |
width | The desired width of the rendered output. |
height | The desired height of the rendered output. |
imageOut | An image to render the results on to. |
timeoutMsec | Timeout value when the thread will give up waiting for the chart to complete rendering. |
Creates a new ThreadedChartRender which will render the specified chart when doTask is called, and will also capture the results on the input QImage.
◆ getChartAsHtml()
QString getChartAsHtml |
( |
| ) |
const |
◆ getChartAsSvgXml()
const QString & getChartAsSvgXml |
( |
| ) |
const |
- Returns
- Returns the SVG content results of the render.
◆ notifyProgress
void notifyProgress |
( |
int |
percentage | ) |
|
|
signal |
◆ task()
◆ writeResults
Stores the SVG inside the render object.