Seamly2D
Code documentation
global.h File Reference
#include <QtGlobal>
Include dependency graph for global.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

qreal sceneScale (QGraphicsScene *scene)
 
QColor correctColor (const QGraphicsItem *item, const QColor &color)
 
QRectF PointRect (qreal radius)
 
qreal scaledRadius (qreal scale)
 
void scaleCircleSize (QGraphicsEllipseItem *item, qreal scale)
 
void scaleRectSize (QGraphicsRectItem *item, qreal scale)
 
qreal scaleWidth (qreal width, qreal scale)
 
QPainterPath ItemShapeFromPath (const QPainterPath &path, const QPen &pen)
 

Variables

const qreal defPointRadiusPixel
 
const qreal widthMainLine
 
const qreal widthHairLine
 

Function Documentation

◆ correctColor()

◆ ItemShapeFromPath()

QPainterPath ItemShapeFromPath ( const QPainterPath &  path,
const QPen &  pen 
)

◆ PointRect()

◆ scaleCircleSize()

void scaleCircleSize ( QGraphicsEllipseItem *  item,
qreal  scale 
)

Definition at line 114 of file global.cpp.

References PointRect(), scaledRadius(), and SCASSERT.

Referenced by VScaledEllipse::paint().

◆ scaledRadius()

◆ scaleRectSize()

void scaleRectSize ( QGraphicsRectItem *  item,
qreal  scale 
)

Definition at line 122 of file global.cpp.

References PointRect(), scaledRadius(), and SCASSERT.

Referenced by SceneRect::paint().

◆ scaleWidth()

◆ sceneScale()

Variable Documentation

◆ defPointRadiusPixel

◆ widthHairLine

◆ widthMainLine