kalzium
KalziumDTableType Class Reference
#include <kalziumtabletype.h>

Detailed Description
The class representing the d-Block of the periodic table, and its metrics.
Definition at line 223 of file kalziumtabletype.h.
Public Member Functions | |
| QString | description () const |
| int | elementAtCoords (const QPoint &coords) const |
| QRect | elementRect (const int numelem) const |
| int | firstElement () const |
| QByteArray | name () const |
| int | nextOf (int element) const |
| int | previousOf (int element) const |
| QSize | size () const |
Static Public Member Functions | |
| static KalziumDTableType * | instance () |
Member Function Documentation
| QString KalziumDTableType::description | ( | ) | const [virtual] |
Returns the description of this table type.
Used in all the visible places.
Implements KalziumTableType.
Definition at line 445 of file kalziumtabletype.cpp.
| int KalziumDTableType::elementAtCoords | ( | const QPoint & | coords | ) | const [virtual] |
- Returns:
- the number of the element at the coordinates
coords.
If there is no element it will return 0. For example, for Carbon "6" will be returned
Implements KalziumTableType.
Definition at line 462 of file kalziumtabletype.cpp.
| QRect KalziumDTableType::elementRect | ( | const int | numelem | ) | const [virtual] |
Returns the rect for the element with atomic number numelem.
Implements KalziumTableType.
Definition at line 513 of file kalziumtabletype.cpp.
| int KalziumDTableType::firstElement | ( | ) | const [virtual] |
Returns the first element of the table.
The default implementation returns 1.
Reimplemented from KalziumTableType.
Definition at line 450 of file kalziumtabletype.cpp.
| KalziumDTableType * KalziumDTableType::instance | ( | ) | [static] |
Get its instance.
Reimplemented from KalziumTableType.
Definition at line 414 of file kalziumtabletype.cpp.
| QByteArray KalziumDTableType::name | ( | ) | const [virtual] |
Returns the ID of this table type.
Mainly used when saving/loading.
Implements KalziumTableType.
Definition at line 440 of file kalziumtabletype.cpp.
| int KalziumDTableType::nextOf | ( | int | element | ) | const [virtual] |
Returns the element that comes right after the specified element.
-1 means that element is the last in this table type.
The default implementation returns element + 1 if element is not the latest element, else -1.
Reimplemented from KalziumTableType.
Definition at line 539 of file kalziumtabletype.cpp.
| int KalziumDTableType::previousOf | ( | int | element | ) | const [virtual] |
Returns the element that comes right before the specified element.
-1 means that element is the first in this table type.
The default implementation returns element - 1 if element is not 1, else -1.
Reimplemented from KalziumTableType.
Definition at line 533 of file kalziumtabletype.cpp.
| QSize KalziumDTableType::size | ( | ) | const [virtual] |
Returns the size of this table type.
Implements KalziumTableType.
Definition at line 457 of file kalziumtabletype.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference