copasi API  0.1
Public Member Functions | Protected Attributes
CColorScaleSimple Class Reference

#include <CColorScale.h>

Inheritance diagram for CColorScaleSimple:
CColorScale CColorScaleAdvanced CColorScaleAverage

List of all members.

Public Member Functions

 CColorScaleSimple ()
void setMinMax (const C_FLOAT64 &min, const C_FLOAT64 &max)
void setLog (bool l)
void setSymmetric (bool s)
virtual QColor getColor (const C_FLOAT64 &number)
virtual void startAutomaticParameterCalculation ()
virtual void passValue (const C_FLOAT64 &number)
virtual void finishAutomaticParameterCalculation ()

Protected Attributes

C_FLOAT64 mMin
C_FLOAT64 mMax
bool mLog
bool mSym

Detailed Description

This maps a range of numbers to a range of colors. Automatic scaling looks for minimum and maximum of the provided numbers


Constructor & Destructor Documentation

CColorScaleSimple::CColorScaleSimple ( )

Member Function Documentation

void CColorScaleSimple::finishAutomaticParameterCalculation ( ) [virtual]

this finishes the calculation of the scaling parameters.

Reimplemented from CColorScale.

Reimplemented in CColorScaleAverage.

QColor CColorScaleSimple::getColor ( const C_FLOAT64 &  number) [virtual]

this method maps a number to a color.

Implements CColorScale.

Reimplemented in CColorScaleAdvanced.

void CColorScaleSimple::passValue ( const C_FLOAT64 &  ) [virtual]

with this method numbers are passed to the automatic scaling algorithm.

Reimplemented from CColorScale.

Reimplemented in CColorScaleAverage.

void CColorScaleSimple::setLog ( bool  l) [inline]

Log scaling is not yet implemented

void CColorScaleSimple::setMinMax ( const C_FLOAT64 &  min,
const C_FLOAT64 &  max 
) [inline]

Set minimum and maximum of number range

void CColorScaleSimple::setSymmetric ( bool  s) [inline]

If this is true, the number range (if automatically determined) is centered around 0.0.

void CColorScaleSimple::startAutomaticParameterCalculation ( ) [virtual]

this method starts the calculation of the scaling parameters.

Reimplemented from CColorScale.

Reimplemented in CColorScaleAverage.


Member Data Documentation

bool CColorScaleSimple::mLog [protected]
C_FLOAT64 CColorScaleSimple::mMax [protected]
C_FLOAT64 CColorScaleSimple::mMin [protected]
bool CColorScaleSimple::mSym [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines