Public Types | Public Member Functions | Protected Member Functions | List of all members
imath::CComplexDoubleManip Class Reference

#include <CComplexDoubleManip.h>

Inheritance diagram for imath::CComplexDoubleManip:
imath::CFixedPointManip imath::CDoubleManip imath::IDoubleManip imath::TIValueManip< double > istd::IPolymorphic

Public Types

typedef CFixedPointManip BaseClass
 
- Public Types inherited from imath::CFixedPointManip
enum  RoundingType { RT_NORMAL, RT_FLOOR, RT_CEIL, RT_LAST = RT_CEIL + 1 }
 
typedef CDoubleManip BaseClass
 

Public Member Functions

 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 >::min(), std::numeric_limits< double >::max()))
 
const istd::CRangeGetRange () const
 
void SetRange (const istd::CRange &range)
 
double GetScaleFactor () const
 
void SetScaleFactor (double value)
 
double GetOffset () const
 
void SetOffset (double value)
 
void SetPrecision (int precision)
 
virtual QString GetString (const double &value) const
 Get this value as string. More...
 
virtual bool GetParsed (const QString &text, double &result) const
 Get value converted from string. More...
 
- Public Member Functions inherited from imath::CFixedPointManip
 CFixedPointManip (int precision=1, RoundingType roundingType=RT_NORMAL)
 
void SetPrecision (int precision)
 Set fixed point precision. More...
 
RoundingType GetRoundingType () const
 Get type of rounding. More...
 
void SetRoundingType (RoundingType roundingType)
 Set type of rounding. More...
 
virtual int GetPrecision () const
 Get number of digits after point. More...
 
virtual double GetRounded (const double &value) const
 Get the nearest value rounded used this arithmetik. More...
 
virtual bool IsEqual (const double &value1, const double &value2) const
 Compare two values and check, if there are equal. More...
 
virtual bool IsSmaller (const double &value1, const double &value2) const
 Compare two values and check, if first one is smaller as the second. More...
 
virtual bool IsSmallerEqual (const double &value1, const double &value2) const
 Compare two values and check, if first one is smaller or equal as the second. More...
 
virtual double GetSmallerValue (const double &value) const
 Return biggest value smaller that specified one. More...
 
virtual double GetBiggerValue (const double &value) const
 Return smallest value bigger that specified one. More...
 
- Public Member Functions inherited from imath::CDoubleManip
 CDoubleManip ()
 
char GetPointChar () const
 Get point character. More...
 
void SetPointChar (char pointChar)
 Set point character. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Protected Member Functions

virtual qint32 GetInternalValue (double value) const
 
- Protected Member Functions inherited from imath::CFixedPointManip
virtual double GetNormalValue (qint32 intValue) const
 
QString GetString (const double &value, int precision) const
 

Additional Inherited Members

- Protected Types inherited from imath::CFixedPointManip
typedef int(* RoundingFuntionPtr )(qreal value)
 
- Protected Types inherited from imath::CDoubleManip
enum  { PRECISION = 6 }
 

Detailed Description

Definition at line 18 of file CComplexDoubleManip.h.

Member Typedef Documentation

Definition at line 21 of file CComplexDoubleManip.h.

Constructor & Destructor Documentation

imath::CComplexDoubleManip::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 >::min(), std::numeric_limits< double >::max()) 
)

Member Function Documentation

virtual qint32 imath::CComplexDoubleManip::GetInternalValue ( double  value) const
protectedvirtual

Reimplemented from imath::CFixedPointManip.

double imath::CComplexDoubleManip::GetOffset ( ) const
inline

Definition at line 87 of file CComplexDoubleManip.h.

virtual bool imath::CComplexDoubleManip::GetParsed ( const QString &  text,
double &  result 
) const
virtual

Get value converted from string.

Parameters
textinput string.
resultresult value.
Returns
true if success.

Reimplemented from imath::CFixedPointManip.

const istd::CRange & imath::CComplexDoubleManip::GetRange ( ) const
inline

Definition at line 61 of file CComplexDoubleManip.h.

double imath::CComplexDoubleManip::GetScaleFactor ( ) const
inline

Definition at line 73 of file CComplexDoubleManip.h.

virtual QString imath::CComplexDoubleManip::GetString ( const double &  value) const
virtual

Get this value as string.

Parameters
valuevalue will be converted.

Reimplemented from imath::CFixedPointManip.

void imath::CComplexDoubleManip::SetOffset ( double  value)
inline

Definition at line 93 of file CComplexDoubleManip.h.

void imath::CComplexDoubleManip::SetPrecision ( int  precision)
inline
void imath::CComplexDoubleManip::SetRange ( const istd::CRange range)
inline

Definition at line 67 of file CComplexDoubleManip.h.

void imath::CComplexDoubleManip::SetScaleFactor ( double  value)
inline

Definition at line 79 of file CComplexDoubleManip.h.

References imath::CFixedPointManip::GetPrecision().


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy