Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
ZoomMetric< I > Class Template Reference

#include "stage/model/zoom-metric.hpp"

Description

template<class I>
class stage::model::ZoomMetric< I >

Mix-In to implement the DisplayMetric interface on top of a ZoomWindow component, directly embedded here and thus also accessible downstream.

Remarks
intended to inherit from and implement DisplayMetric

Definition at line 64 of file zoom-metric.hpp.

Public Member Functions

TimeSpan coveredTime () const override
 
int translateTimeToPixels (TimeValue startTimePoint) const override
 
int translateScreenDelta (Offset timeOffset) const override
 
TimeValue applyScreenDelta (Time anchor, double deltaPx) const override
 

Protected Member Functions

 ZoomMetric ()
 

Protected Attributes

ZoomWindow zoomWindow_
 

Constructor & Destructor Documentation

◆ ZoomMetric()

template<class I >
ZoomMetric ( )
inlineprotected

Definition at line 72 of file zoom-metric.hpp.

Member Function Documentation

◆ coveredTime()

template<class I >
TimeSpan coveredTime ( ) const
inlineoverride

Definition at line 81 of file zoom-metric.hpp.

References ZoomWindow::overallSpan(), and ZoomMetric< I >::zoomWindow_.

+ Here is the call graph for this function:

◆ translateTimeToPixels()

template<class I >
int translateTimeToPixels ( TimeValue  startTimePoint) const
inlineoverride

Definition at line 87 of file zoom-metric.hpp.

References ZoomWindow::overallSpan(), ZoomMetric< I >::translateScreenDelta(), and ZoomMetric< I >::zoomWindow_.

+ Here is the call graph for this function:

◆ translateScreenDelta()

template<class I >
int translateScreenDelta ( Offset  timeOffset) const
inlineoverride

Definition at line 93 of file zoom-metric.hpp.

References ZoomWindow::px_per_sec(), and ZoomMetric< I >::zoomWindow_.

Referenced by ZoomMetric< I >::translateTimeToPixels().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ applyScreenDelta()

template<class I >
TimeValue applyScreenDelta ( Time  anchor,
double  deltaPx 
) const
inlineoverride

Definition at line 102 of file zoom-metric.hpp.

References ZoomWindow::px_per_sec(), and ZoomMetric< I >::zoomWindow_.

+ Here is the call graph for this function:

Member Data Documentation

◆ zoomWindow_

+ Inheritance diagram for ZoomMetric< I >:
+ Collaboration diagram for ZoomMetric< I >:

The documentation for this class was generated from the following file: