26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_DRAWLAYERTHREAD_H 
   27 #define __TERRALIB_QT_WIDGETS_INTERNAL_DRAWLAYERTHREAD_H 
   30 #include "../../../geometry/Envelope.h" 
   31 #include "../Config.h" 
   34 #include <QtCore/QMutex> 
   35 #include <QtCore/QString> 
   36 #include <QtCore/QTimer> 
   37 #include <QtCore/QThread> 
   38 #include <QtGui/QImage> 
   43   namespace map { 
class AbstractLayer; }
 
   90           bool finishedWithSuccess() 
const;
 
   93           QString getErrorMessage() 
const;
 
  121           void feedback(
const QImage& image);
 
  129           void drawLayerFinished(
const int& index, 
const QImage& image);
 
  149 #endif  // __TERRALIB_QT_WIDGETS_INTERNAL_DRAWLAYERTHREAD_H 
QImage m_image
The image that will be generated during the draw process. 
 
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
This class represents a thread responsible to draw a given layer. Basically, this class receives draw...
 
QTimer m_feedback
Timer used to send feedback. The feedback will be sent right after timeout() QTimer's signal...
 
This is the base class for layers. 
 
int m_index
An optional index that can be provided by the caller to keep the draw order. 
 
int m_srid
The SRS to be used to draw the layer objects. 
 
int m_interval
Interval used to send feedbacks. 
 
QString m_errorMessage
A string that contains an error message. 
 
te::gm::Envelope m_env
The interest area to draw the layer. 
 
bool m_finishedWithSuccess
A flag that indicates if the layer could be drawn. 
 
te::map::AbstractLayer * m_layer
The layer that will be drawn. 
 
An Envelope defines a 2D rectangular region. 
 
QMutex m_mutex
Controls the serialization between threads.