24 , zoom(pixelsPerSecond)
40 return h + (position - origin) /
zoom;
50 double t = 0.5 + zoom * (projectTime - h) + origin ;
63 return timeRange *
zoom;
80 return std::floor(0.5 +
h *
zoom + offset);
118 const int64 rightmost(origin + (0.5 + width));
119 assert(origin <= rightmost);
124 if (origin < rightmost)
125 results.push_back(
Interval(rightmost, 0,
false));
126 assert(!results.empty() && results[0].position == origin);
AUDACITY_DLL_API std::weak_ptr< AudacityProject > GetActiveProject()
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
double GetAbsoluteOffset(double offset) const
double PositionToTime(int64 position, int64 origin=0, bool ignoreFisheye=false) const
void FindIntervals(Intervals &results, int64 width, int64 origin=0) const
bool ZoomInAvailable() const
double TimeRangeToPixelWidth(double timeRange) const
std::vector< Interval > Intervals
int64 TimeToPosition(double time, int64 origin=0, bool ignoreFisheye=false) const
STM: Converts a project time to screen x position.
static double GetMaxZoom()
ZoomInfo(double start, double pixelsPerSecond)
bool ZoomOutAvailable() const
static double GetMinZoom()
void SetZoom(double pixelsPerSecond)
void ZoomBy(double multiplier)
static const double gMinZoom
static const double gMaxZoom