#include <renderwidget.h>
|
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) |
|
|
| 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 () |
|
|
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 |
|
Graph * | graph |
|
RenderThread | thread |
|
QPixmap | pixmap |
|
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.
RenderWidget::RenderWidget |
( |
QWidget * |
parent, |
|
|
Graph * |
g |
|
) |
| |
Renderwidget constructor.
- Parameters
-
parent | pointer to the application window |
g | pointer to the graph |
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
-
lineColor | color of the edges' lines |
lineWidth | width 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
-
radius | nodes' radius |
fillColor | color the node circle is filled with |
lineColor | color of the nodes' outlines |
lineWidth | width 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
-
image | the 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
-
path | Path to the new background image. |
The documentation for this class was generated from the following files: