6#ifndef imath_CComplexDoubleManip_included
7#define imath_CComplexDoubleManip_included
31 double scaleFactor = 1.0,
34 -std::numeric_limits<double>::max(),
35 std::numeric_limits<double>::max()));
48 virtual QString
GetString(
const double& value)
const;
49 virtual bool GetParsed(
const QString& text,
double& result)
const;
60 int m_scaledPrecision;
86 m_scaleFactor = value;
88 m_scaledPrecision =
GetPrecision() - int(std::log10(m_scaleFactor));
110 m_scaledPrecision =
GetPrecision() - int(std::log10(m_scaleFactor));
virtual qint32 GetInternalValue(double value) const
void SetPrecision(int precision)
double GetScaleFactor() const
const istd::CRange & GetRange() const
void SetRange(const istd::CRange &range)
void SetScaleFactor(double value)
virtual QString GetString(const double &value) const
Get this value as string.
void SetOffset(double value)
CComplexDoubleManip(int precision=1, RoundingType roundingType=RT_NORMAL, double scaleFactor=1.0, double offset=0.0, const istd::CRange &range=istd::CRange(-std::numeric_limits< double >::max(), std::numeric_limits< double >::max()))
CFixedPointManip BaseClass
virtual bool GetParsed(const QString &text, double &result) const
Get value converted from string.
Implementation of imath::IDoubleManip interface for fixed point arithmentic.
@ RT_NORMAL
Normal mathematical rounding to the nearest value.
void SetPrecision(int precision)
Set fixed point precision.
virtual int GetPrecision() const
Get number of digits after point.
Package with mathematical functions and algebraical primitives.