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

kalzium/libscience

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pseTable Class Reference

#include <psetables.h>

Inheritance diagram for pseTable:
Inheritance graph
[legend]

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

pseTable::~pseTable ( )
virtual

Definition at line 80 of file psetables.cpp.

pseTable::pseTable ( )
protected

Definition at line 76 of file psetables.cpp.

Member Function Documentation

QString pseTable::description ( ) const
virtual

Returns a short description of the periodic table in use.

Definition at line 94 of file psetables.cpp.

QPoint pseTable::elementCoords ( int  element) const
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.

QList< int > pseTable::elements ( ) const
virtual

Returns a list with all elements in the actual periodic table.

Definition at line 99 of file psetables.cpp.

int pseTable::firstElement ( ) const
virtual

Returns the first element of the table.

Definition at line 116 of file psetables.cpp.

pseTable * pseTable::init ( )
static

Definition at line 84 of file psetables.cpp.

int pseTable::lastElement ( ) const
virtual

Returns the last element of the table.

Definition at line 121 of file psetables.cpp.

QString pseTable::name ( ) const
virtual

Returns the ID of this table type.

Definition at line 89 of file psetables.cpp.

int pseTable::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.

Definition at line 110 of file psetables.cpp.

int pseTable::numerationAtPos ( int  xPos) const
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.

int pseTable::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.

Definition at line 104 of file psetables.cpp.

QPoint pseTable::tableSize ( ) const
virtual

Returns the maximal size of the periodic table.

Definition at line 140 of file psetables.cpp.

Member Data Documentation

QString pseTable::m_description
protected

Definition at line 178 of file psetables.h.

QList<int> pseTable::m_elementList
protected

Definition at line 183 of file psetables.h.

QString pseTable::m_name
protected

Definition at line 177 of file psetables.h.

QList<int> pseTable::m_posX
protected

Definition at line 180 of file psetables.h.

QList<int> pseTable::m_posY
protected

Definition at line 181 of file psetables.h.

QList<int> pseTable::m_xCoordsNumeration
protected

Definition at line 182 of file psetables.h.


The documentation for this class was generated from the following files:
  • psetables.h
  • psetables.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:31 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kalzium/libscience

Skip menu "kalzium/libscience"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal