This class represents a thread responsible to draw a given layer. Basically, this class receives draw layer requests and generates a QImage as result.  
 More...
#include <DrawLayerThread.h>
This class represents a thread responsible to draw a given layer. Basically, this class receives draw layer requests and generates a QImage as result. 
Definition at line 55 of file DrawLayerThread.h.
 
      
        
          | te::qt::widgets::DrawLayerThread::DrawLayerThread  | 
          ( | 
          QObject *  | 
          parent = 0 | ) | 
           | 
        
      
 
It constructs a new thread responsible to draw a given layer. 
- Parameters
 - 
  
    | parent | The thread's parent.  | 
  
   
 
 
      
        
          | te::qt::widgets::DrawLayerThread::~DrawLayerThread  | 
          ( | 
           | ) | 
           | 
        
      
 
 
This method is used to request the draw of the given layer. 
- Parameters
 - 
  
    | layer | The layer that will be draw.  | 
    | box | The interest area to draw the layer.  | 
    | srid | The SRS to be used to draw the layer objects. param scale The current scale of display.  | 
    | size | The result size, in pixels; e.g. (800 x 600).  | 
    | index | An optional index that can be provided by the caller to keep the draw order.  | 
  
   
 
 
  
  
      
        
          | void te::qt::widgets::DrawLayerThread::drawLayerFinished  | 
          ( | 
          const int &  | 
          index,  | 
         
        
           | 
           | 
          const QImage &  | 
          image  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
signal   | 
  
 
This signal is emitted when the draw process ends. 
- Parameters
 - 
  
    | index | The thread index.  | 
    | image | The final result of draw process.  | 
  
   
 
 
  
  
      
        
          | void te::qt::widgets::DrawLayerThread::feedback  | 
          ( | 
          const QImage &  | 
          image | ) | 
           | 
         
       
   | 
  
signal   | 
  
 
This signal is emitted during the draw process. 
- Parameters
 - 
  
    | image | The partial result of draw process.  | 
  
   
 
 
      
        
          | bool te::qt::widgets::DrawLayerThread::finishedWithSuccess  | 
          ( | 
           | ) | 
           const | 
        
      
 
This method tells if the thread finished with success. 
 
 
      
        
          | QString te::qt::widgets::DrawLayerThread::getErrorMessage  | 
          ( | 
           | ) | 
           const | 
        
      
 
This method returns an error message if the thread has not finished with success. Otherwise, the error message is empty. 
 
 
      
        
          | QImage te::qt::widgets::DrawLayerThread::getImage  | 
          ( | 
           | ) | 
           const | 
        
      
 
This method returns the image result of the drawn layer. 
 
 
This method returns the layer handled by this thread. 
 
 
  
  
      
        
          | void te::qt::widgets::DrawLayerThread::onFinished  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedslot   | 
  
 
 
  
  
      
        
          | void te::qt::widgets::DrawLayerThread::onStarted  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedslot   | 
  
 
 
  
  
      
        
          | void te::qt::widgets::DrawLayerThread::run  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | void te::qt::widgets::DrawLayerThread::sendFeedback  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedslot   | 
  
 
 
  
  
      
        
          | QString te::qt::widgets::DrawLayerThread::m_errorMessage | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | QTimer te::qt::widgets::DrawLayerThread::m_feedback | 
         
       
   | 
  
protected   | 
  
 
Timer used to send feedback. The feedback will be sent right after timeout() QTimer's signal. 
Definition at line 144 of file DrawLayerThread.h.
 
 
  
  
      
        
          | bool te::qt::widgets::DrawLayerThread::m_finishedWithSuccess | 
         
       
   | 
  
protected   | 
  
 
A flag that indicates if the layer could be drawn. 
Definition at line 146 of file DrawLayerThread.h.
 
 
  
  
      
        
          | QImage te::qt::widgets::DrawLayerThread::m_image | 
         
       
   | 
  
protected   | 
  
 
The image that will be generated during the draw process. 
Definition at line 142 of file DrawLayerThread.h.
 
 
  
  
      
        
          | int te::qt::widgets::DrawLayerThread::m_index | 
         
       
   | 
  
protected   | 
  
 
An optional index that can be provided by the caller to keep the draw order. 
Definition at line 140 of file DrawLayerThread.h.
 
 
  
  
      
        
          | int te::qt::widgets::DrawLayerThread::m_interval | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | QMutex te::qt::widgets::DrawLayerThread::m_mutex | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | double te::qt::widgets::DrawLayerThread::m_scale | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | int te::qt::widgets::DrawLayerThread::m_srid | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/qt/widgets/canvas/DrawLayerThread.h