• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kblackbox

KBBGraphicsItemRayResult Class Reference

#include <kbbgraphicsitemrayresult.h>

Inheritance diagram for KBBGraphicsItemRayResult:

Inheritance graph
[legend]

List of all members.


Detailed Description

Result of a laser ray shoot in the black box.

There 3 kinds of ray results:

  • HIT: if the laser ray hits a ball in the black box by entering at the considered position.
  • REFLECTION: if the laser ray exits the black box at the entrance point.
  • A number to display both positions where the laser ray entered and exited the black box. Both positions are opposite positions of each other and belong together.

Definition at line 55 of file kbbgraphicsitemrayresult.h.


Public Member Functions

void cleanDelete ()
void highlight (bool state)
void highlightBoth (bool state)
 KBBGraphicsItemRayResult (KBBScalableGraphicWidget *parent, KBBThemeManager *themeManager, QGraphicsScene *scene, const int borderPosition, const int columns, const int rows, const int rayNumber)
const int position ()
void setOpposite (KBBGraphicsItemRayResult *opposite)
void setPause (bool state)

Constructor & Destructor Documentation

KBBGraphicsItemRayResult::KBBGraphicsItemRayResult ( KBBScalableGraphicWidget *  parent,
KBBThemeManager *  themeManager,
QGraphicsScene *  scene,
const int  borderPosition,
const int  columns,
const int  rows,
const int  rayNumber 
)

Definition at line 50 of file kbbgraphicsitemrayresult.cpp.


Member Function Documentation

void KBBGraphicsItemRayResult::cleanDelete (  )  [virtual]

Destructor of the class and dependent object Call this methode to destroy simultaneously this QGraphicsItem and all other dependent QGraphicsItems: The number or the sign.

Reimplemented from KBBItemWithPosition.

Definition at line 106 of file kbbgraphicsitemrayresult.cpp.

void KBBGraphicsItemRayResult::highlight ( bool  state  )  [virtual]

Highlight the item.

Usually used when the mouse goes over the item or over the opposite item.

Reimplemented from KBBItemWithPosition.

Definition at line 114 of file kbbgraphicsitemrayresult.cpp.

void KBBGraphicsItemRayResult::highlightBoth ( bool  state  )  [virtual]

Highlight the item and the opposite one.

Reimplemented from KBBItemWithPosition.

Definition at line 123 of file kbbgraphicsitemrayresult.cpp.

const int KBBGraphicsItemRayResult::position (  )  [virtual]

Get the border position.

Implements KBBItemWithPosition.

Definition at line 130 of file kbbgraphicsitemrayresult.cpp.

void KBBGraphicsItemRayResult::setOpposite ( KBBGraphicsItemRayResult *  opposite  ) 

Define the opposite "ray result" item.

Used if the result is not a HIT and not a REFLECTION. In the other case, the opoosite is the item itself and this method doesn't need to be called.

Parameters:
opposite Correspondent item with the same "number".

Definition at line 136 of file kbbgraphicsitemrayresult.cpp.

void KBBGraphicsItemRayResult::setPause ( bool  state  )  [virtual]

Set the pause state.

Reimplemented from KBBItemWithPosition.

Definition at line 142 of file kbbgraphicsitemrayresult.cpp.


The documentation for this class was generated from the following files:
  • kbbgraphicsitemrayresult.h
  • kbbgraphicsitemrayresult.cpp

kblackbox

Skip menu "kblackbox"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal