24 , zoom(pixelsPerSecond)
40 return h + (position - origin) /
zoom;
50 double t = 0.5 + zoom * (projectTime - h) + origin ;
63 return timeRange *
zoom;
93 project->OnSnapToOff();
109 const int64 rightmost(origin + (0.5 + width));
110 assert(origin <= rightmost);
115 if (origin < rightmost)
116 results.push_back(
Interval(rightmost, 0,
false));
117 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 PositionToTime(int64 position, int64 origin=0, bool ignoreFisheye=false) const
void FindIntervals(double rate, 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