Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
UpwardMeterValueProvider Class Referencefinal

#include <UpwardMeterValueProvider.h>

Inheritance diagram for UpwardMeterValueProvider:
[legend]
Collaboration diagram for UpwardMeterValueProvider:
[legend]

Public Member Functions

 UpwardMeterValueProvider ()
 
void Update (float value, bool alsoFiveSecondMax) override
 
float GetGlobalMax () const override
 
float GetFiveSecMax () const override
 
float GetCurrentMax () const override
 
Direction GetDirection () const override
 
bool IsInvisible () const override
 
- Public Member Functions inherited from MeterValueProvider
virtual ~MeterValueProvider ()=default
 
virtual void Update (float value, bool alsoFiveSecondMax)=0
 
virtual float GetGlobalMax () const =0
 
virtual float GetFiveSecMax () const =0
 
virtual float GetCurrentMax () const =0
 
virtual Direction GetDirection () const =0
 
virtual bool IsInvisible () const =0
 

Private Attributes

DownwardMeterValueProvider mDownwardProvider
 

Additional Inherited Members

- Public Types inherited from MeterValueProvider
enum class  Direction { Upwards , Downwards }
 
- Static Public Member Functions inherited from MeterValueProvider
static std::unique_ptr< MeterValueProviderCreate (Direction direction)
 

Detailed Description


Audacity: A Digital Audio Editor

UpwardMeterValueProvider.h

Matthieu Hodgkinson

Definition at line 15 of file UpwardMeterValueProvider.h.

Constructor & Destructor Documentation

◆ UpwardMeterValueProvider()

UpwardMeterValueProvider::UpwardMeterValueProvider ( )

Audacity: A Digital Audio Editor

UpwardMeterValueProvider.cpp

Matthieu Hodgkinson

Definition at line 13 of file UpwardMeterValueProvider.cpp.

14 : mDownwardProvider { 80.f }
15{
16}
DownwardMeterValueProvider mDownwardProvider

Member Function Documentation

◆ GetCurrentMax()

float UpwardMeterValueProvider::GetCurrentMax ( ) const
overridevirtual

Implements MeterValueProvider.

Definition at line 33 of file UpwardMeterValueProvider.cpp.

34{
36}

References DownwardMeterValueProvider::GetCurrentMax(), and mDownwardProvider.

Here is the call graph for this function:

◆ GetDirection()

MeterValueProvider::Direction UpwardMeterValueProvider::GetDirection ( ) const
overridevirtual

◆ GetFiveSecMax()

float UpwardMeterValueProvider::GetFiveSecMax ( ) const
overridevirtual

Implements MeterValueProvider.

Definition at line 28 of file UpwardMeterValueProvider.cpp.

29{
31}

References DownwardMeterValueProvider::GetFiveSecMax(), and mDownwardProvider.

Here is the call graph for this function:

◆ GetGlobalMax()

float UpwardMeterValueProvider::GetGlobalMax ( ) const
overridevirtual

Implements MeterValueProvider.

Definition at line 23 of file UpwardMeterValueProvider.cpp.

24{
26}

References DownwardMeterValueProvider::GetGlobalMax(), and mDownwardProvider.

Here is the call graph for this function:

◆ IsInvisible()

bool UpwardMeterValueProvider::IsInvisible ( ) const
overridevirtual

Implements MeterValueProvider.

Definition at line 43 of file UpwardMeterValueProvider.cpp.

44{
46}

References DownwardMeterValueProvider::IsInvisible(), and mDownwardProvider.

Here is the call graph for this function:

◆ Update()

void UpwardMeterValueProvider::Update ( float  value,
bool  alsoFiveSecondMax 
)
overridevirtual

Implements MeterValueProvider.

Definition at line 18 of file UpwardMeterValueProvider.cpp.

19{
20 mDownwardProvider.Update(-value, alsoFiveSecondMax);
21}
void Update(float value, bool alsoFiveSecondMax) override

References mDownwardProvider, and DownwardMeterValueProvider::Update().

Here is the call graph for this function:

Member Data Documentation

◆ mDownwardProvider

DownwardMeterValueProvider UpwardMeterValueProvider::mDownwardProvider
private

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