kblackbox
KBBGraphicsItemLaser Class Reference
#include <kbbgraphicsitemlaser.h>
Inheritance diagram for KBBGraphicsItemLaser:
![Inheritance graph](classKBBGraphicsItemLaser__inherit__graph.png)
Public Member Functions | |
KBBGraphicsItemLaser (KBBScalableGraphicWidget *parent, KBBThemeManager *themeManager, const int borderPosition, const int columns, const int rows) | |
int | position () |
![]() | |
KBBGraphicsItemBorder (int borderPosition, int columns, int rows, float offset) | |
void | setSize (int borderPosition, int columns, int rows) |
![]() | |
KBBGraphicsItem (KBBScalableGraphicWidget::itemType itemType, QGraphicsScene *scene, KBBThemeManager *themeManager) | |
![]() | |
virtual | ~KBBItemWithPosition () |
virtual void | cleanDelete () |
virtual void | highlight (bool) |
virtual void | highlightBoth (bool) |
virtual void | setPause (bool state) |
Additional Inherited Members | |
![]() | |
void | centerCoordinate (int borderPosition, float ¢erX, float ¢erY, float offset) |
float | centerX () const |
float | centerY () const |
int | rotationAngle () |
void | setBorderPosition (int borderPosition) |
![]() | |
int | m_borderPosition |
float | m_centerX |
float | m_centerY |
int | m_columns |
float | m_offset |
int | m_rows |
Detailed Description
Laser element of the scalable graphic widget.
The laser is used to shoot a laser ray into the black box.
Note: The laser size should be so defined: width = width of a single box of the black box (RATIO), height = twice the size of single box of the black box (2*RATIO). The laser size is independent of the board border size.
Definition at line 51 of file kbbgraphicsitemlaser.h.
Constructor & Destructor Documentation
KBBGraphicsItemLaser::KBBGraphicsItemLaser | ( | KBBScalableGraphicWidget * | parent, |
KBBThemeManager * | themeManager, | ||
const int | borderPosition, | ||
const int | columns, | ||
const int | rows | ||
) |
Constructor.
- Parameters
-
parent Scalable graphic widget themeManager Theme manager borderPosition Position of the laser around the border. Each laser has a different border position. columns Width of the Black Box rows Height of the Black Box
Definition at line 49 of file kbbgraphicsitemlaser.cpp.
Member Function Documentation
|
virtual |
Get the border position.
Implements KBBItemWithPosition.
Definition at line 71 of file kbbgraphicsitemlaser.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.