![]() |
Audacity 3.2.0
|
#include "TrackArt.h"#include "AColor.h"#include "AllThemeResources.h"#include "SelectedRegion.h"#include "SyncLock.h"#include "Theme.h"#include "TimeAndPitchInterface.h"#include "Track.h"#include "TrackArtist.h"#include "TrackPanelDrawingContext.h"#include "ZoomInfo.h"#include "TimeDisplayMode.h"#include "ProjectTimeRuler.h"#include "ProjectTimeSignature.h"#include "widgets/BeatsFormat.h"#include <wx/app.h>#include <wx/dc.h>#include <cassert>#include <cstdint>#include <cmath>#include <utility>Go to the source code of this file.
Classes | |
| struct | anonymous_namespace{TrackArt.cpp}::BeatsGridlinePainter |
Namespaces | |
| namespace | anonymous_namespace{TrackArt.cpp} |
Functions | |
| wxRect | anonymous_namespace{TrackArt.cpp}::GetAffordanceTitleRect (const wxRect &rect) |
| wxString | anonymous_namespace{TrackArt.cpp}::GetTruncatedTitle (wxDC &dc, const wxString &title, const wxRect &affordanceRect) |
| int | GetWaveYPos (float value, float min, float max, int height, bool dB, bool outer, float dBr, bool clip) |
| float | FromDB (float value, double dBRange) |
| float | ValueOfPixel (int yy, int height, bool offset, bool dB, double dBRange, float zoomMin, float zoomMax) |
| wxRect | anonymous_namespace{TrackArt.cpp}::GetClipAffordanceRect (wxDC &dc, const wxRect &clipRect, std::optional< wxRect > &clippedClipRect) |
| wxRect | anonymous_namespace{TrackArt.cpp}::GetClipTruncatedTitleRect (wxDC &dc, const wxRect &affordanceRect, const wxString &title) |
| const AudacityProject & | anonymous_namespace{TrackArt.cpp}::GetProject (const Track &track) |
Variables | |
| static constexpr int | ClipSelectionStrokeSize { 1 } |
| constexpr double | anonymous_namespace{TrackArt.cpp}::minSubdivisionWidth = 12.0 |
| float FromDB | ( | float | value, |
| double | dBRange | ||
| ) |
Definition at line 113 of file TrackArt.cpp.
References DB_TO_LINEAR.
Referenced by ValueOfPixel().
| int GetWaveYPos | ( | float | value, |
| float | min, | ||
| float | max, | ||
| int | height, | ||
| bool | dB, | ||
| bool | outer, | ||
| float | dBr, | ||
| bool | clip | ||
| ) |
Takes a value between min and max and returns a value between height and 0
Definition at line 66 of file TrackArt.cpp.
References LINEAR_TO_DB, min(), and outer.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawEnvelope(), anonymous_namespace{WaveformView.cpp}::DrawIndividualSamples(), EnvelopeEditor::DrawPoints(), anonymous_namespace{WaveformView.cpp}::DrawWaveformBackground(), EnvelopeEditor::HandleMouseButtonDown(), EnvelopeHandle::HitEnvelope(), and SampleHandle::HitTest().
| float ValueOfPixel | ( | int | yy, |
| int | height, | ||
| bool | offset, | ||
| bool | dB, | ||
| double | dBRange, | ||
| float | zoomMin, | ||
| float | zoomMax | ||
| ) |
Definition at line 122 of file TrackArt.cpp.
References FromDB().
Referenced by SampleHandle::FindSampleEditingLevel().
|
staticconstexpr |
Definition at line 38 of file TrackArt.cpp.
Referenced by TrackArt::DrawClipAffordance(), TrackArt::DrawClipEdges(), and anonymous_namespace{TrackArt.cpp}::GetAffordanceTitleRect().