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

kalzium

IsotopeItem Class Reference

#include <nuclideboard.h>

Inheritance diagram for IsotopeItem:

Inheritance graph
[legend]

List of all members.


Detailed Description

The class represtens the items which is drawn on the QGraphicsScene.

Each such item represents on Isotope.

Author:
Carsten Niehaus

Definition at line 65 of file nuclideboard.h.


Public Types

enum  { Type = UserType + 1 }
enum  IsotopeType {
  alpha, ec, multiple, bplus,
  bminus, stable
}

Public Member Functions

QRectF boundingRect () const
Isotope * isotope () const
 IsotopeItem (Isotope *isotope, qreal x, qreal y, qreal width, qreal height, QGraphicsItem *parent=0)
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
int type () const

Protected Member Functions

void mousePressEvent (QGraphicsSceneMouseEvent *event)

Member Enumeration Documentation

anonymous enum

Enumerator:
Type 

Definition at line 73 of file nuclideboard.h.

enum IsotopeItem::IsotopeType

there are several types of decay for an isotope.

Enumerator:
alpha 
ec 
multiple 
bplus 
bminus 
stable 

Definition at line 71 of file nuclideboard.h.


Constructor & Destructor Documentation

IsotopeItem::IsotopeItem ( Isotope *  isotope,
qreal  x,
qreal  y,
qreal  width,
qreal  height,
QGraphicsItem *  parent = 0 
)

Parameters:
isotope The Isotope represented

Definition at line 110 of file nuclideboard.cpp.


Member Function Documentation

QRectF IsotopeItem::boundingRect (  )  const [inline]

Definition at line 87 of file nuclideboard.h.

Isotope* IsotopeItem::isotope (  )  const [inline]

Returns:
the Isotope the item represents

Definition at line 83 of file nuclideboard.h.

void IsotopeItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event  )  [protected]

Definition at line 184 of file nuclideboard.cpp.

void IsotopeItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)

Definition at line 148 of file nuclideboard.cpp.

int IsotopeItem::type (  )  const [inline]

Returns:
the Type of the item

Definition at line 94 of file nuclideboard.h.


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

kalzium

Skip menu "kalzium"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu 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