kblackbox
kbbgraphicsitemray.cpp
Go to the documentation of this file.
51 KBBGraphicsItemRay::KBBGraphicsItemRay(KBBScalableGraphicWidget::itemType itemType, QGraphicsScene* scene, KBBThemeManager* themeManager) : KBBGraphicsItemBorder(0, 1, 1, KBBScalableGraphicWidget::BORDER_SIZE/2), QGraphicsPathItem (0, scene)
78 const int oppositeBorderPosition = ballsOnBoard->oppositeBorderPositionWithPoints(borderPosition, points);
qreal x() const
qreal y() const
void setStyle(Qt::PenStyle style)
qreal width(const KBBScalableGraphicWidget::itemType itemType)
Get the width of the item.
Definition: kbbthememanager.cpp:191
void setSize(int borderPosition, int columns, int rows)
Definition: kbbgraphicsitemborder.cpp:55
Scalable graphic central widget for KBlackBox.
Definition: kbbscalablegraphicwidget.h:62
void setJoinStyle(Qt::PenJoinStyle style)
void moveTo(const QPointF &point)
int zValue(const KBBScalableGraphicWidget::itemType itemType)
Get the relative height of the item.
Definition: kbbthememanager.cpp:197
KBBGraphicsItemRay(KBBScalableGraphicWidget::itemType itemType, QGraphicsScene *scene, KBBThemeManager *themeManager)
Constructor.
Definition: kbbgraphicsitemray.cpp:51
void setCapStyle(Qt::PenCapStyle style)
void draw(KBBBallsOnBoard *ballsOnBoard, const int borderPosition)
Definition: kbbgraphicsitemray.cpp:72
int count(const T &value) const
void centerCoordinate(int borderPosition, float ¢erX, float ¢erY, float offset)
Definition: kbbgraphicsitemborder.cpp:76
void lineTo(const QPointF &endPoint)
void setWidthF(qreal width)
static const int HIT_POSITION
When a laser ray enter the black box, it exits on a defined border position, except if the laser ray ...
Definition: kbbgamedoc.h:65
static int const BORDER_SIZE
Distance between the black box and the widget border.
Definition: kbbscalablegraphicwidget.h:74
void setColor(const QColor &color)
QColor color(const KBBScalableGraphicWidget::itemType itemType)
Get the color of the item.
Definition: kbbthememanager.cpp:75
int oppositeBorderPositionWithPoints(const int borderPosition, QList< int > &points)
Definition: kbbballsonboard.cpp:151
void setPen(const QPen &pen)
void setPath(const QPainterPath &path)
static int const RATIO
Width and height of a single square on the black box.
Definition: kbbscalablegraphicwidget.h:81
Any border element of the scalable graphic widget.
Definition: kbbgraphicsitemborder.h:40
QPainterPath path() const
QPen pen() const
void setZValue(qreal z)
Qt::PenStyle style(const KBBScalableGraphicWidget::itemType itemType)
Get the pen style of the item.
Definition: kbbthememanager.cpp:176
Set of balls (or various objects) with positions on the board.
Definition: kbbballsonboard.h:62
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.