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

#include <CColorScale.h>

Inheritance diagram for CColorScaleAverage:
CColorScaleSimple CColorScale

List of all members.

Public Member Functions

 CColorScaleAverage ()
void setFactor (C_FLOAT64 f)
virtual void startAutomaticParameterCalculation ()
virtual void passValue (const C_FLOAT64 &number)
virtual void finishAutomaticParameterCalculation ()

Protected Attributes

C_FLOAT64 mFactor
C_FLOAT64 mFloat
C_INT32 mInt

Detailed Description

the same mapping as in the base class. However the automatic scaling is done using the average of the absolute values of the provided numbers. The average of the absolute values is multiplied by the factor to give the range.


Constructor & Destructor Documentation

CColorScaleAverage::CColorScaleAverage ( )

Member Function Documentation

void CColorScaleAverage::finishAutomaticParameterCalculation ( ) [virtual]

this finishes the calculation of the scaling parameters.

Reimplemented from CColorScaleSimple.

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

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

Reimplemented from CColorScaleSimple.

void CColorScaleAverage::setFactor ( C_FLOAT64  f) [inline]
void CColorScaleAverage::startAutomaticParameterCalculation ( ) [virtual]

this method starts the calculation of the scaling parameters.

Reimplemented from CColorScaleSimple.


Member Data Documentation

C_FLOAT64 CColorScaleAverage::mFactor [protected]
C_FLOAT64 CColorScaleAverage::mFloat [protected]
C_INT32 CColorScaleAverage::mInt [protected]

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