kalzium
KalziumMassGradientType Class Reference
#include <kalziumgradienttype.h>

Detailed Description
The gradient by atomic mass.
Definition at line 197 of file kalziumgradienttype.h.
Public Member Functions | |
| QByteArray | name () const |
| QString | description () const |
| double | value (int el) const |
| double | minValue () const |
| double | maxValue () const |
| bool | logarithmicGradient () const |
Static Public Member Functions | |
| static KalziumMassGradientType * | instance () |
Member Function Documentation
| KalziumMassGradientType * KalziumMassGradientType::instance | ( | ) | [static] |
Get its instance.
Reimplemented from KalziumGradientType.
Definition at line 234 of file kalziumgradienttype.cpp.
| QByteArray KalziumMassGradientType::name | ( | ) | const [virtual] |
Returns the ID of this gradient.
Mainly used when saving/loading.
Implements KalziumGradientType.
Definition at line 245 of file kalziumgradienttype.cpp.
| QString KalziumMassGradientType::description | ( | ) | const [virtual] |
Returns the description of this gradient.
Used in all the visible places.
Implements KalziumGradientType.
Definition at line 250 of file kalziumgradienttype.cpp.
| double KalziumMassGradientType::value | ( | int | el | ) | const [virtual] |
Return the value, related to the current gradient, of the element with atomic number el.
It will return -1 if the data is not available.
Implements KalziumGradientType.
Definition at line 255 of file kalziumgradienttype.cpp.
| double KalziumMassGradientType::minValue | ( | ) | const [virtual] |
Returns the minimum value of the data this gradient represents.
Implements KalziumGradientType.
Definition at line 262 of file kalziumgradienttype.cpp.
| double KalziumMassGradientType::maxValue | ( | ) | const [virtual] |
Returns the maximum value of the data this gradient represents.
Implements KalziumGradientType.
Definition at line 267 of file kalziumgradienttype.cpp.
| bool KalziumMassGradientType::logarithmicGradient | ( | ) | const [virtual] |
Returns whether to use a logarithmic gradient instead of a linear one.
Implements KalziumGradientType.
Definition at line 272 of file kalziumgradienttype.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference