Force Directed Edge Bundling
 All Classes Functions Pages
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
RenderWidget Class Reference

#include <renderwidget.h>

Inheritance diagram for RenderWidget:

Public Slots

void useBackground (bool set)
 
void drawNodes (bool draw)
 
void drawEdges (bool draw)
 
void showDescriptions (bool show)
 
void wrapEdges (bool w)
 
void bundleEdges (bool b)
 
void setNodeProperties (double radius, QColor fillColor, QColor lineColor, double lineWidth)
 
void setEdgeProperties (QColor lineColor, double lineWidth)
 

Public Member Functions

 RenderWidget (QWidget *parent, Graph *g)
 
void useBackgroundImage (QString path)
 
void useBackgroundColor (QColor color)
 
bool getBackgroundActive (void)
 
bool getNodesVisible (void)
 
bool getEdgesVisible (void)
 
bool getDescriptionsVisible (void)
 
bool getWrap (void)
 
void refresh (void)
 
void clearWidget ()
 

Protected Slots

void updatePixmap (const QImage &image)
 

Protected Member Functions

void paintEvent (QPaintEvent *event)
 
void resizeEvent (QResizeEvent *event)
 

Protected Attributes

QString backgroundImagePath
 
bool visibleBackgroundImage
 
QPixmap backgroundImage
 
QBrush backgroundSolid
 
bool visibleNodes
 
QBrush nodeBrush
 
QPen nodePen
 
double nodeRadius
 
bool visibleDescriptions
 
bool visibleEdges
 
QPen edgePen
 
bool wrap
 
bool bundle
 
bool clear
 
Graphgraph
 
RenderThread thread
 
QPixmap pixmap
 

Detailed Description

Renderwidget is a QWidget containing all the necessary UI properties for starting the render thread and displaying the render thread's results in the application window.

Constructor & Destructor Documentation

RenderWidget::RenderWidget ( QWidget *  parent,
Graph g 
)

Renderwidget constructor.

Parameters
parentpointer to the application window
gpointer to the graph

Member Function Documentation

void RenderWidget::paintEvent ( QPaintEvent *  event)
protected

Reimplementation of Qt's UI paint event.

void RenderWidget::resizeEvent ( QResizeEvent *  event)
protected

Reimplementation of Qt's UI resize event.

void RenderWidget::setEdgeProperties ( QColor  lineColor,
double  lineWidth 
)
slot

Setter for the visual properties of the graph's edges

Parameters
lineColorcolor of the edges' lines
lineWidthwidth of the edges' lines
void RenderWidget::setNodeProperties ( double  radius,
QColor  fillColor,
QColor  lineColor,
double  lineWidth 
)
slot

Setter for the visual properties of the graph's nodes

Parameters
radiusnodes' radius
fillColorcolor the node circle is filled with
lineColorcolor of the nodes' outlines
lineWidthwidth of the nodes' outlines
void RenderWidget::updatePixmap ( const QImage &  image)
protectedslot

Slot that is called from the RenderThread when it has finished the render process and is ready to deliver a result image.

Parameters
imagethe updated rendered image
void RenderWidget::useBackgroundImage ( QString  path)

Sets the background image to a new image specified by the image path. Implementation allows for .png, .jpg and .svg.

Parameters
pathPath to the new background image.

The documentation for this class was generated from the following files: