• 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 | List of all members
Element Class Reference

#include <element.h>

Public Member Functions

 Element ()
 
virtual ~Element ()
 
void addData (const ChemicalDataObject &o)
 
void addData (const QVariant &value, ChemicalDataObject::BlueObelisk type)
 
QList< ChemicalDataObject > data () const
 
QString dataAsString (ChemicalDataObject::BlueObelisk type) const
 
QString dataAsString (ChemicalDataObject::BlueObelisk type, int unit) const
 
QString dataAsStringWithUnit (ChemicalDataObject::BlueObelisk type, int unit) const
 
QVariant dataAsVariant (ChemicalDataObject::BlueObelisk type) const
 
QVariant dataAsVariant (ChemicalDataObject::BlueObelisk type, int unit) const
 

Detailed Description

In this class all information about an element are stored.

This means that both the chemical date and the data about the position are stored in this class. This class is the represention of a chemical element

Author
Carsten Niehaus

Definition at line 41 of file element.h.

Constructor & Destructor Documentation

Element::Element ( )

Definition at line 26 of file element.cpp.

Element::~Element ( )
virtual

Definition at line 74 of file element.cpp.

Member Function Documentation

void Element::addData ( const ChemicalDataObject &  o)

Add the ChemicalDataObject o to this Element.

Parameters
othe ChemicalDataObject to be added

Definition at line 78 of file element.cpp.

void Element::addData ( const QVariant &  value,
ChemicalDataObject::BlueObelisk  type 
)

Add a ChemicalDataObject with value of type to this Element.

Parameters
valuethe QVariant to be added
typethe BlueObelisk type to be added

Definition at line 83 of file element.cpp.

QList<ChemicalDataObject> Element::data ( ) const
inline
Returns
the data of the Element

Definition at line 90 of file element.h.

QString Element::dataAsString ( ChemicalDataObject::BlueObelisk  type) const
Returns
the requested data of the type type as a QString

Definition at line 52 of file element.cpp.

QString Element::dataAsString ( ChemicalDataObject::BlueObelisk  type,
int  unit 
) const
Returns
the requested data of the type type with the given unit unit as a QString

Definition at line 57 of file element.cpp.

QString Element::dataAsStringWithUnit ( ChemicalDataObject::BlueObelisk  type,
int  unit 
) const
Returns
the requested data of the type type with the unit unit as a QString The unit symbol is appended to the value. The value is round to show 4 significant decimals.

Definition at line 62 of file element.cpp.

QVariant Element::dataAsVariant ( ChemicalDataObject::BlueObelisk  type) const
Returns
the requested data of the type type as a QVariant

Definition at line 30 of file element.cpp.

QVariant Element::dataAsVariant ( ChemicalDataObject::BlueObelisk  type,
int  unit 
) const
Returns
the requested data of the type type with the unit unit as a QVariant

Definition at line 39 of file element.cpp.


The documentation for this class was generated from the following files:
  • element.h
  • element.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