struct CCL::IParamCurve

Overview

Non-linear parameter curve. More…

#include <iparameter.h>

struct IParamCurve: public CCL::IUnknown
{
    // methods

    virtual double CCL_API displayToNormalized (double displayValue) const = 0;
    virtual double CCL_API normalizedToDisplay (double normalized) const = 0;

    virtual double CCL_API getRelativeValue (
        double startValue,
        double endValue,
        double linearValue
    ) const = 0;

    virtual CStringPtr CCL_API getFactoryName () const = 0;
};

Inherited Members

public:
    // methods

    virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0;
    virtual unsigned int CCL_API retain () = 0;
    virtual unsigned int CCL_API release () = 0;

Detailed Documentation

Non-linear parameter curve.

Methods

virtual double CCL_API displayToNormalized (double displayValue) const = 0

Get value modified by parameter curve (non-linear), i.e.

from display domain to internal.

virtual double CCL_API normalizedToDisplay (double normalized) const = 0

Get inverse value from parameter curve (linear), i.e.

to display domain.

virtual double CCL_API getRelativeValue (
    double startValue,
    double endValue,
    double linearValue
) const = 0

Calculate value for relative parameter editing (in/out values are linear).

virtual CStringPtr CCL_API getFactoryName () const = 0

Get name of factory which created this instance.