iPlug2 - C++ Audio Plug-in Framework
Public Member Functions | List of all members
IParam::Shape Struct Referenceabstract

Base struct for parameter shaping. More...

#include <IPlugParameter.h>

Inheritance diagram for IParam::Shape:
[legend]

Public Member Functions

virtual ShapeClone () const =0
 
virtual void Init (const IParam &param)
 Initializes the shape instance. More...
 
virtual EDisplayType GetDisplayType () const =0
 
virtual double NormalizedToValue (double value, const IParam &param) const =0
 Returns the real value from a normalized input, based on an IParam's settings. More...
 
virtual double ValueToNormalized (double value, const IParam &param) const =0
 Returns the normalized value from a real value, based on an IParam's settings. More...
 

Detailed Description

Base struct for parameter shaping.

Definition at line 66 of file IPlugParameter.h.

Member Function Documentation

virtual Shape* IParam::Shape::Clone ( ) const
pure virtual
Returns
A new instance of this Shape struct

Implemented in IParam::ShapeExp, IParam::ShapePowCurve, and IParam::ShapeLinear.

Referenced by IParam::InitDouble().

virtual EDisplayType IParam::Shape::GetDisplayType ( ) const
pure virtual
Returns
EDisplayType, used by AudioUnit plugins to determine the mapping of parameters

Implemented in IParam::ShapeExp, IParam::ShapePowCurve, and IParam::ShapeLinear.

Referenced by IParam::ShapePowCurve::Clone(), and Init().

virtual void IParam::Shape::Init ( const IParam param)
inlinevirtual

Initializes the shape instance.

Parameters
paramThe parent parameter

Reimplemented in IParam::ShapeExp.

Definition at line 75 of file IPlugParameter.h.

References GetDisplayType(), NormalizedToValue(), and ValueToNormalized().

Referenced by IParam::ShapeExp::GetDisplayType().

virtual double IParam::Shape::NormalizedToValue ( double  value,
const IParam param 
) const
pure virtual

Returns the real value from a normalized input, based on an IParam's settings.

Parameters
valueThe normalized value as a double to be converted
paramThe IParam to do the calculation against
Returns
double The real value

Implemented in IParam::ShapeExp, IParam::ShapePowCurve, and IParam::ShapeLinear.

Referenced by IParam::ShapePowCurve::Clone(), IParam::ShapeLinear::GetDisplayType(), IParam::ShapeExp::GetDisplayType(), and Init().

virtual double IParam::Shape::ValueToNormalized ( double  value,
const IParam param 
) const
pure virtual

Returns the normalized value from a real value, based on an IParam's settings.

Parameters
valueThe real value as a double to be converted
paramThe IParam to do the calculation against
Returns
double The normalized value

Implemented in IParam::ShapeExp, IParam::ShapePowCurve, and IParam::ShapeLinear.

Referenced by IParam::ShapePowCurve::Clone(), IParam::ShapeLinear::GetDisplayType(), IParam::ShapeExp::GetDisplayType(), and Init().


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