![]() |
HAL
|
#include <standard_graphics_net.h>
Public Member Functions | |
void | appendHLine (const qreal mSmallX, const qreal mBigX, const qreal y) |
void | appendVLine (const qreal x, const qreal mSmallY, const qreal mBigY) |
int | nLines () |
Struct to store all lines of a StandardGraphicsNet.
Definition at line 76 of file standard_graphics_net.h.
void hal::StandardGraphicsNet::Lines::appendHLine | ( | const qreal | mSmallX, |
const qreal | mBigX, | ||
const qreal | y | ||
) |
Adds a horizontal line.
mSmallX | - The x-coordinate of the starting point of the line (lower x-coord) |
mBigX | - The x-coordinate of the end point of the line (higher x-coord) |
y | - The y-coordinate of the horizontal line |
Definition at line 181 of file standard_graphics_net.cpp.
References QGraphicsItem::y().
Referenced by hal::DrawNetThread::run().
void hal::StandardGraphicsNet::Lines::appendVLine | ( | const qreal | x, |
const qreal | mSmallY, | ||
const qreal | mBigY | ||
) |
Adds a vertical line.
x | - The x-coordinate of the vertical line |
mSmallY | - The y-coordinate of the starting point of the line (lower y-coord) |
mBigY | - The y-coordinate of the end point of the line (higher y-coord) |
Definition at line 188 of file standard_graphics_net.cpp.
References QGraphicsItem::x().
Referenced by hal::DrawNetThread::run().
|
inline |
Gets the total amount of lines (includes horizontal AND vertical lines).
Definition at line 101 of file standard_graphics_net.h.