Video display and composing engine for JUCE
Loading...
Searching...
No Matches
ProcessorParameterFloat Class Reference

This is a floating point (double) parameter to configure and automate your VideoProcessors. More...

#include <foleys_ProcessorParameter.h>

+ Inheritance diagram for ProcessorParameterFloat:

Public Member Functions

 ProcessorParameterFloat (const juce::Identifier &paramID, const juce::String &name, juce::NormalisableRange< double > range, double defaultValue, std::function< juce::String(double, int)> valueToText=nullptr, std::function< double(const juce::String &)> textToValue=nullptr)
 
const int getNumSteps () const override
 
double * getRawParameterValue () override
 
double getNormalisedValue () const override
 
double getRealValue () const override
 
double getDefaultValue () const override
 Returns the default value in normalised for the automation to initialise.
 
void setNormalisedValue (double value) override
 
void setRealValue (double value) override
 
double normaliseValue (double unnormalised) const override
 
double unNormaliseValue (double normalised) const override
 
juce::String getText (float normalisedValue, int numDigits=0) const override
 
double getValueForText (const juce::String &text) const override
 
- Public Member Functions inherited from ProcessorParameter
 ProcessorParameter (const juce::Identifier &paramID, const juce::String &name)
 This defines a parameter to be used in Processors like the VideoProcessor.
 
virtual ~ProcessorParameter ()=default
 
const juce::Identifier & getParameterID () const
 
const juce::String & getName () const
 
juce::NamedValueSet & getProperties ()
 
void setParameterIndex (int index)
 
int getParameterIndex () const
 
void beginGesture ()
 
void endGesture ()
 
bool isGestureInProgress () const
 
void addListener (Listener *listener)
 
void removeListener (Listener *listener)
 
void sendUpdateNotification ()
 

Detailed Description

This is a floating point (double) parameter to configure and automate your VideoProcessors.

Constructor & Destructor Documentation

◆ ProcessorParameterFloat()

ProcessorParameterFloat ( const juce::Identifier &  paramID,
const juce::String &  name,
juce::NormalisableRange< double >  range,
double  defaultValue,
std::function< juce::String(double, int)>  valueToText = nullptr,
std::function< double(const juce::String &)>  textToValue = nullptr 
)

Member Function Documentation

◆ getNumSteps()

const int getNumSteps ( ) const
overridevirtual

Implements ProcessorParameter.

◆ getRawParameterValue()

double * getRawParameterValue ( )
overridevirtual

Implements ProcessorParameter.

◆ getNormalisedValue()

double getNormalisedValue ( ) const
overridevirtual

Implements ProcessorParameter.

◆ getRealValue()

double getRealValue ( ) const
overridevirtual

Implements ProcessorParameter.

◆ getDefaultValue()

double getDefaultValue ( ) const
overridevirtual

Returns the default value in normalised for the automation to initialise.

Implements ProcessorParameter.

References ProcessorParameterFloat::normaliseValue().

◆ setNormalisedValue()

void setNormalisedValue ( double  value)
overridevirtual

◆ setRealValue()

void setRealValue ( double  value)
overridevirtual

◆ normaliseValue()

double normaliseValue ( double  unnormalised) const
overridevirtual

◆ unNormaliseValue()

double unNormaliseValue ( double  normalised) const
overridevirtual

◆ getText()

juce::String getText ( float  normalisedValue,
int  numDigits = 0 
) const
overridevirtual

Implements ProcessorParameter.

◆ getValueForText()

double getValueForText ( const juce::String &  text) const
overridevirtual

Implements ProcessorParameter.


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