#include <renderthread.h>
 | 
|   | RenderThread (QObject *parent=0) | 
|   | 
|   | ~RenderThread () | 
|   | 
| void  | render (Graph *g, QSize resSize, QPen ePen, QBrush nBrush, QPen nPen, double nRad, bool vEdges=true, bool vNodes=true, bool vDescr=true, bool w=false, bool b=false) | 
|   | 
 | 
| 
Graph *  | graph | 
|   | 
| 
QMutex  | mutex | 
|   | 
| 
QWaitCondition  | condition | 
|   | 
| 
QSize  | resultSize | 
|   | 
| 
bool  | restart | 
|   | 
| 
bool  | abort | 
|   | 
| 
bool  | visibleEdges | 
|   | 
| 
bool  | visibleNodes | 
|   | 
| 
bool  | showDescriptions | 
|   | 
| 
bool  | wrap | 
|   | 
| 
bool  | bundle | 
|   | 
| 
QPen  | edgePen | 
|   | 
| 
QBrush  | nodeBrush | 
|   | 
| 
QPen  | nodePen | 
|   | 
| 
double  | nodeRadius | 
|   | 
RenderThread subclasses QThread to perform the graph rendering in a different thread from the UI. 
This prevents the UI from freezing while the rendering process is going on which is particularly essential for big graphs. 
 
      
        
          | RenderThread::RenderThread  | 
          ( | 
          QObject *  | 
          parent = 0 | ) | 
           | 
        
      
 
 
      
        
          | RenderThread::~RenderThread  | 
          ( | 
           | ) | 
           | 
        
      
 
 
  
  
      
        
          | QPointF RenderThread::getWindowCoordinate  | 
          ( | 
          QPointF  | 
          point | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
convert a normalized graph coordinate to window coordinate 
- Parameters
 - 
  
    | point | QPointF in normalized coordinates  | 
  
   
- Returns
 - the converted coordinate 
 
 
 
  
  
      
        
          | QPolygonF RenderThread::getWindowCoordinates  | 
          ( | 
          QPolygonF  | 
          poly | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
converts normalized graph coordinates to window coordinates for the entire polygon 
- Parameters
 - 
  
    | polygon | QPolygonF containing normalized coordinates  | 
  
   
- Returns
 - polygon with converted coordinates 
 
 
 
      
        
          | void RenderThread::render  | 
          ( | 
          Graph *  | 
          g,  | 
        
        
           | 
           | 
          QSize  | 
          resSize,  | 
        
        
           | 
           | 
          QPen  | 
          ePen,  | 
        
        
           | 
           | 
          QBrush  | 
          nBrush,  | 
        
        
           | 
           | 
          QPen  | 
          nPen,  | 
        
        
           | 
           | 
          double  | 
          nRad,  | 
        
        
           | 
           | 
          bool  | 
          vEdges = true,  | 
        
        
           | 
           | 
          bool  | 
          vNodes = true,  | 
        
        
           | 
           | 
          bool  | 
          vDescr = true,  | 
        
        
           | 
           | 
          bool  | 
          w = false,  | 
        
        
           | 
           | 
          bool  | 
          b = false  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
function call to start the rendering of the thread. The function is passed all the necessary arguments, which it copies to local variables 
- Parameters
 - 
  
    | g | Graph to be rendered  | 
    | resSize | size of the current viewport  | 
    | ePen | QPen containing the properties for edge drawing  | 
    | nBrush | QBrush containing the properties for the node fill  | 
    | nPen | QPen containing the properties for the node outline  | 
    | nRad | QPen containing the properties for the node outline  | 
    | vEdges | bool determining the visibility of the edges  | 
    | vNodes | bool determining the visibility of the nodes  | 
    | w | bool determining whether the edges are allowed to wrap  | 
    | b | bool determining whether the rendering should draw bundled edges  | 
  
   
 
 
  
  
      
        
          | void RenderThread::renderedImage  | 
          ( | 
          const QImage &  | 
          image | ) | 
           | 
         
       
   | 
  
signal   | 
  
 
emits a rendered image when the render thread has finished 
 
 
  
  
      
        
          | void RenderThread::run  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | void RenderThread::setStatus  | 
          ( | 
          QString  | 
          s | ) | 
           | 
         
       
   | 
  
signal   | 
  
 
signal to notify the main window's status bar of the progress of graph generation 
 
 
The documentation for this class was generated from the following files: