Audacity 3.2.0
GeneratedUpdater.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 GeneratedUpdater.h
6
7 Dominic Mazzoni
8 Michael Papadopoulos split from Ruler.h
9
10**********************************************************************/
11
12#ifndef __AUDACITY_GENERATED_UPDATER__
13#define __AUDACITY_GENERATED_UPDATER__
14
15#include "RulerUpdater.h"
16
18public:
20 virtual ~GeneratedUpdater() override = 0;
21
22protected:
23 bool Tick(wxDC& dc,
24 int pos, double d, const TickSizes& tickSizes, wxFont font,
25 TickOutputs outputs,
26 const RulerStruct& context
27 ) const;
28
29 double ComputeWarpedLength(const Envelope& env, double t0, double t1) const
30 {
31 return env.IntegralOfInverse(t0, t1);
32 }
33};
34
35#endif
Piecewise linear or piecewise exponential function from double to double.
Definition: Envelope.h:72
double IntegralOfInverse(double t0, double t1) const
Definition: Envelope.cpp:1287
double ComputeWarpedLength(const Envelope &env, double t0, double t1) const
bool Tick(wxDC &dc, int pos, double d, const TickSizes &tickSizes, wxFont font, TickOutputs outputs, const RulerStruct &context) const
virtual ~GeneratedUpdater() override=0
Used to update a Ruler.
Definition: RulerUpdater.h:58