Audacity 3.2.0
|
Parameters for the waveform painting. More...
#include <WavePaintParameters.h>
Public Member Functions | |
WavePaintParameters & | SetDisplayParameters (int height, double zoomMin, double zoomMax, bool showClipping) noexcept |
Sets the basic painting parameters. More... | |
WavePaintParameters & | SetDBParameters (double dbRange, bool dbScale) noexcept |
Sets the dB scale parameters. More... | |
WavePaintParameters & | SetBlankColor (graphics::Color color) noexcept |
Sets the blank color. More... | |
WavePaintParameters & | SetZeroLineColor (graphics::Color color) noexcept |
Sets the horizontal zero line color. More... | |
WavePaintParameters & | SetBackgroundColors (graphics::Color normal, graphics::Color selected) noexcept |
Sets the background colors. More... | |
WavePaintParameters & | SetSampleColors (graphics::Color normal, graphics::Color selected) noexcept |
Sets the sample colors. More... | |
WavePaintParameters & | SetRMSColors (graphics::Color normal, graphics::Color selected) noexcept |
Sets the RMS colors. More... | |
WavePaintParameters & | SetClippingColors (graphics::Color normal, graphics::Color selected) noexcept |
Sets the clipping colors. More... | |
WavePaintParameters & | SetEnvelope (const Envelope &envelope) noexcept |
Sets volume envelope. More... | |
WavePaintParameters & | ResetEnvelope () noexcept |
Resets the envelope. More... | |
WavePaintParameters & | SetShowRMS (bool showRMS) noexcept |
Sets the ShowRMS flag. More... | |
Public Attributes | |
const Envelope * | AttachedEnvelope { nullptr } |
Attached volume envelope, if any. More... | |
int | Height { 0 } |
Height of the of clip on screen. More... | |
double | Min { -1.0 } |
Min value used to clip the output. More... | |
double | Max { 1.0 } |
Max value used to clip the output. More... | |
double | DBRange { 60.0 } |
Decibel range. More... | |
bool | DBScale { false } |
True, if we paint in dB scale. More... | |
bool | ShowClipping { false } |
True, if we mark clipped values. More... | |
bool | ShowRMS { false } |
True, if we paint RMS values on top of min and max. More... | |
graphics::Color | BlankColor |
Color outside the waveform area. More... | |
graphics::Color | ZeroLineColor |
ColorPair | BackgroundColors |
Waveform background color. More... | |
ColorPair | SampleColors |
Color of the (min, max) line. More... | |
ColorPair | RMSColors |
Color of the (-rms, +rms) line. More... | |
ColorPair | ClippingColors |
Color for the columns where clipping has occurred. More... | |
Friends | |
WAVE_TRACK_PAINT_API bool | operator== (const WavePaintParameters &lhs, const WavePaintParameters &rhs) noexcept |
WAVE_TRACK_PAINT_API bool | operator!= (const WavePaintParameters &lhs, const WavePaintParameters &rhs) noexcept |
Parameters for the waveform painting.
Definition at line 32 of file WavePaintParameters.h.
|
noexcept |
Resets the envelope.
Definition at line 83 of file WavePaintParameters.cpp.
References AttachedEnvelope.
|
noexcept |
Sets the background colors.
Definition at line 48 of file WavePaintParameters.cpp.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawWaveform().
|
noexcept |
Sets the blank color.
Definition at line 35 of file WavePaintParameters.cpp.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawWaveform().
|
noexcept |
Sets the clipping colors.
Definition at line 69 of file WavePaintParameters.cpp.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawWaveform().
|
noexcept |
Sets the dB scale parameters.
Definition at line 26 of file WavePaintParameters.cpp.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawWaveform().
|
noexcept |
Sets the basic painting parameters.
Audacity: A Digital Audio Editor
Dmitry Vedenko
Definition at line 13 of file WavePaintParameters.cpp.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawWaveform().
|
noexcept |
Sets volume envelope.
Definition at line 77 of file WavePaintParameters.cpp.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawWaveform().
|
noexcept |
Sets the RMS colors.
Definition at line 62 of file WavePaintParameters.cpp.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawWaveform().
|
noexcept |
Sets the sample colors.
Definition at line 55 of file WavePaintParameters.cpp.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawWaveform().
|
noexcept |
Sets the ShowRMS flag.
Definition at line 89 of file WavePaintParameters.cpp.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawWaveform().
|
noexcept |
Sets the horizontal zero line color.
Definition at line 42 of file WavePaintParameters.cpp.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawWaveform().
|
friend |
Definition at line 121 of file WavePaintParameters.cpp.
|
friend |
Definition at line 105 of file WavePaintParameters.cpp.
const Envelope* WavePaintParameters::AttachedEnvelope { nullptr } |
Attached volume envelope, if any.
Definition at line 35 of file WavePaintParameters.h.
Referenced by ResetEnvelope().
ColorPair WavePaintParameters::BackgroundColors |
Waveform background color.
Definition at line 62 of file WavePaintParameters.h.
Referenced by WaveBitmapCache::LookupHelper::PerformLookup().
graphics::Color WavePaintParameters::BlankColor |
Color outside the waveform area.
Definition at line 58 of file WavePaintParameters.h.
Referenced by WaveBitmapCache::InitializeElement(), and WaveBitmapCache::LookupHelper::PerformLookup().
ColorPair WavePaintParameters::ClippingColors |
Color for the columns where clipping has occurred.
Definition at line 68 of file WavePaintParameters.h.
Referenced by WaveBitmapCache::LookupHelper::PerformLookup().
double WavePaintParameters::DBRange { 60.0 } |
Decibel range.
Definition at line 47 of file WavePaintParameters.h.
Referenced by WaveBitmapCache::LookupHelper::PerformLookup().
bool WavePaintParameters::DBScale { false } |
True, if we paint in dB scale.
Definition at line 49 of file WavePaintParameters.h.
Referenced by WaveBitmapCache::LookupHelper::PerformLookup().
int WavePaintParameters::Height { 0 } |
Height of the of clip on screen.
Definition at line 38 of file WavePaintParameters.h.
Referenced by WaveBitmapCache::InitializeElement(), and WaveBitmapCache::LookupHelper::PerformLookup().
double WavePaintParameters::Max { 1.0 } |
Max value used to clip the output.
Definition at line 44 of file WavePaintParameters.h.
Referenced by WaveBitmapCache::LookupHelper::PerformLookup().
double WavePaintParameters::Min { -1.0 } |
Min value used to clip the output.
Definition at line 42 of file WavePaintParameters.h.
Referenced by WaveBitmapCache::LookupHelper::PerformLookup().
ColorPair WavePaintParameters::RMSColors |
Color of the (-rms, +rms) line.
Definition at line 66 of file WavePaintParameters.h.
Referenced by WaveBitmapCache::LookupHelper::PerformLookup().
ColorPair WavePaintParameters::SampleColors |
Color of the (min, max) line.
Definition at line 64 of file WavePaintParameters.h.
Referenced by WaveBitmapCache::LookupHelper::PerformLookup().
bool WavePaintParameters::ShowClipping { false } |
True, if we mark clipped values.
Definition at line 52 of file WavePaintParameters.h.
Referenced by WaveBitmapCache::LookupHelper::PerformLookup().
bool WavePaintParameters::ShowRMS { false } |
True, if we paint RMS values on top of min and max.
Definition at line 55 of file WavePaintParameters.h.
Referenced by WaveBitmapCache::LookupHelper::PerformLookup().
graphics::Color WavePaintParameters::ZeroLineColor |
Definition at line 59 of file WavePaintParameters.h.
Referenced by WaveBitmapCache::LookupHelper::PerformLookup().