Workspace 6.21.5
Public Slots | Signals | Public Member Functions | List of all members
ThreadedChartRender Class Reference

#include <DataAnalysis/Chart/threadedchartrender.h>

Inheritance diagram for ThreadedChartRender:
[legend]

Public Slots

void writeResults ()
 

Signals

void notifyProgress (int percentage)
 
- Signals inherited from BlockingTask
void performTask (bool *result)
 

Public Member Functions

 ThreadedChartRender (Chart &chart, int timeoutMsec=5000)
 
 ThreadedChartRender (Chart &chart, int width, int height, int timeoutMsec=5000)
 
 ThreadedChartRender (Chart &chart, int width, int height, QPaintDevice &imageOut, int timeoutMsec=5000)
 
QString getChartAsHtml () const
 
const QString & getChartAsSvgXml () const
 
bool task () override
 
- Public Member Functions inherited from BlockingTask
 ~BlockingTask () override
 
bool doTask ()
 

Additional Inherited Members

- Static Public Member Functions inherited from BlockingTask
static bool doTask (std::function< bool()> &&work, QThread *homeThread=QCoreApplication::instance() ->thread())
 
- Protected Slots inherited from BlockingTask
virtual void taskWrapper (bool *result)
 
- Protected Member Functions inherited from BlockingTask
 BlockingTask (QThread *homeThread=QThread::currentThread())
 
QSemaphore & semaphore ()
 
virtual bool task ()=0
 

Constructor & Destructor Documentation

◆ ThreadedChartRender() [1/3]

ThreadedChartRender ( Chart chart,
int  timeoutMsec = 5000 
)
Parameters
chartThe chart to render.
timeoutMsecTimeout 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]

ThreadedChartRender ( Chart chart,
int  width,
int  height,
int  timeoutMsec = 5000 
)
Parameters
chartThe chart to render.
widthThe desired width of the rendered output.
heightThe desired height of the rendered output.
timeoutMsecTimeout 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]

ThreadedChartRender ( Chart chart,
int  width,
int  height,
QPaintDevice &  imageOut,
int  timeoutMsec = 5000 
)
Parameters
chartThe chart to render.
widthThe desired width of the rendered output.
heightThe desired height of the rendered output.
imageOutAn image to render the results on to.
timeoutMsecTimeout 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.

Member Function Documentation

◆ getChartAsHtml()

QString getChartAsHtml ( ) const
Returns

◆ getChartAsSvgXml()

const QString & getChartAsSvgXml ( ) const
Returns
Returns the SVG content results of the render.

◆ notifyProgress

void notifyProgress ( int  percentage)
signal

◆ task()

bool task ( )
overridevirtual
Returns

Implements BlockingTask.

◆ writeResults

void writeResults ( )
slot

Stores the SVG inside the render object.