int Element::yPos() const
{
-// original
-// return ( y-1 )*ELEMENTSIZE + ELEMENTSIZE;
- int tmp_y = ( y-1 )*ELEMENTSIZE + ELEMENTSIZE;
+ // mind the small gap over rare earth!
+ int tmp_y = ( y-1 )*ELEMENTSIZE + ELEMENTSIZE;
- if ( (m_number > 57 && m_number < 72) || (m_number > 89 && m_number < 104) )
- tmp_y += ELEMENTSIZE/3;
+ // 57=Lanthanum, 72=Hafnium, 89=Actinium & 104=Rutherfordium (i.e., if
+ // n_number is in rare earth's block)
+ if ( (m_number > 57 && m_number < 72) || (m_number > 89 && m_number < 104) )
+ tmp_y += ELEMENTSIZE/3;
- return tmp_y;
+ return tmp_y;
}
QPoint Element::pos() const
typedef QValueList<coordinate> CList;
typedef QValueList<double> doubleList;
+/**
+ * @author Carsten Niehaus
+ * @author Jörg Buchwald
+ *
+ * This class represents an Isotope with all its properties
+ */
class Isotope
{
public:
double decayenergy() const{
return m_decayenergy;
}
+
QString spin() const{
return m_spin;
}
+
double magmoment() const{
return m_magmoment;
}