Completed transformation class and created samples for this class

This commit is contained in:
Klaus Basan
2013-04-20 01:49:50 +02:00
parent f98ec80680
commit 7b0468d300
11 changed files with 161 additions and 83 deletions

View File

@@ -164,7 +164,7 @@ public:
QString valueRoundedWithUnit(const MU &unit, int digits = -1) const;
/*!
* \brief Value a int
* \brief Value as int
* \return
*/
qint32 unitValueToInteger() const
@@ -173,7 +173,7 @@ public:
}
/*!
* \brief Value a double
* \brief Value as double
* \return
*/
double unitValueToDouble() const
@@ -188,24 +188,6 @@ public:
*/
QString unitValueRoundedWithUnit(int digits = -1) const;
/*!
* \brief SI value to integer
* \return
*/
qint32 siBaseUnitValueToInteger() const
{
return CMeasurementUnit::round(this->m_convertedSiUnitValueD, 0);
}
/*!
* \brief SI value to double
* \return
*/
double siBaseUnitValueToDouble() const
{
return this->m_convertedSiUnitValueD;
}
/*!
* \brief Rounded value by n digits
* \param digits
@@ -221,7 +203,7 @@ public:
QString unitValueToQStringRounded(int digits = -1) const;
/*!
* \brief SI value as double
* \brief Conversion SI value as double
* \return
*/
double convertedSiValueToDouble() const
@@ -391,4 +373,4 @@ public:
} // namespace
} // namespace
#endif // BLACKMISC_PQPHYSICALQUANTITY_H
#endif // guard