kalzium/libscience
#include <psetables.h>
Public Member Functions | |
virtual | ~pseTable () |
virtual QString | description () const |
virtual QPoint | elementCoords (int element) const |
virtual QList< int > | elements () const |
virtual int | firstElement () const |
virtual int | lastElement () const |
virtual QString | name () const |
virtual int | nextOf (int element) const |
virtual int | numerationAtPos (int xPos) const |
virtual int | previousOf (int element) const |
virtual QPoint | tableSize () const |
Static Public Member Functions | |
static pseTable * | init () |
Protected Member Functions | |
pseTable () | |
Protected Attributes | |
QString | m_description |
QList< int > | m_elementList |
QString | m_name |
QList< int > | m_posX |
QList< int > | m_posY |
QList< int > | m_xCoordsNumeration |
Detailed Description
defines a Periodic Table.
Holds the position (x,y) and all the displaed elements
Definition at line 104 of file psetables.h.
Constructor & Destructor Documentation
|
virtual |
Definition at line 80 of file psetables.cpp.
|
protected |
Definition at line 76 of file psetables.cpp.
Member Function Documentation
|
virtual |
Returns a short description of the periodic table in use.
Definition at line 94 of file psetables.cpp.
|
virtual |
Returns the coordinates of an element element
in the periodic system.
If the element is not in the periodic system QPoint(-1,-1) is returned.
Definition at line 126 of file psetables.cpp.
|
virtual |
Returns a list with all elements in the actual periodic table.
Definition at line 99 of file psetables.cpp.
|
virtual |
Returns the first element of the table.
Definition at line 116 of file psetables.cpp.
|
static |
Definition at line 84 of file psetables.cpp.
|
virtual |
Returns the last element of the table.
Definition at line 121 of file psetables.cpp.
|
virtual |
Returns the ID of this table type.
Definition at line 89 of file psetables.cpp.
|
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.
Definition at line 110 of file psetables.cpp.
|
virtual |
Returns the Numeration for the current Table according to the position in the Table.
Coordinatates beginning wiht 0. Returns -1 if none is found.
Definition at line 154 of file psetables.cpp.
|
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.
Definition at line 104 of file psetables.cpp.
|
virtual |
Returns the maximal size of the periodic table.
Definition at line 140 of file psetables.cpp.
Member Data Documentation
|
protected |
Definition at line 178 of file psetables.h.
|
protected |
Definition at line 183 of file psetables.h.
|
protected |
Definition at line 177 of file psetables.h.
|
protected |
Definition at line 180 of file psetables.h.
|
protected |
Definition at line 181 of file psetables.h.
|
protected |
Definition at line 182 of file psetables.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.