kwave  18.07.70
Kwave::Zoomable Class Referenceabstract

#include <Zoomable.h>

Inheritance diagram for Kwave::Zoomable:
Inheritance graph
Collaboration diagram for Kwave::Zoomable:
Collaboration graph

Public Member Functions

 Zoomable ()
 
virtual ~Zoomable ()
 
virtual int visibleWidth () const =0
 
virtual sample_index_t visibleSamples () const =0
 
virtual double zoom () const =0
 
virtual void setZoom (double factor)=0
 
virtual void scrollTo (sample_index_t pos)=0
 

Detailed Description

Definition at line 27 of file Zoomable.h.

Constructor & Destructor Documentation

◆ Zoomable()

Kwave::Zoomable::Zoomable ( )
inline

default constructor

Definition at line 32 of file Zoomable.h.

32 {}

◆ ~Zoomable()

virtual Kwave::Zoomable::~Zoomable ( )
inlinevirtual

destructor

Definition at line 35 of file Zoomable.h.

References scrollTo(), setZoom(), visibleSamples(), visibleWidth(), and zoom().

35 {}
Here is the call graph for this function:

Member Function Documentation

◆ scrollTo()

virtual void Kwave::Zoomable::scrollTo ( sample_index_t  pos)
pure virtual

Scrolls the display so that the given position gets visible, centered within the display if possible.

Referenced by Kwave::FileContext::updatePlaybackPos(), and ~Zoomable().

Here is the caller graph for this function:

◆ setZoom()

virtual void Kwave::Zoomable::setZoom ( double  factor)
pure virtual

Set a new zoom factor [samples/pixel]

Parameters
factornew zoom value

Referenced by Kwave::ZoomToolBar::selectZoom(), and ~Zoomable().

Here is the caller graph for this function:

◆ visibleSamples()

virtual sample_index_t Kwave::Zoomable::visibleSamples ( ) const
pure virtual

Returns the width of the current view in samples

Implemented in Kwave::MainWidget.

Referenced by Kwave::ZoomToolBar::setZoomInfo(), and ~Zoomable().

Here is the caller graph for this function:

◆ visibleWidth()

virtual int Kwave::Zoomable::visibleWidth ( ) const
pure virtual

Returns the width of the visible area

Returns
width of visible area in pixels

Implemented in Kwave::MainWidget.

Referenced by Kwave::ZoomToolBar::selectZoom(), and ~Zoomable().

Here is the caller graph for this function:

◆ zoom()

virtual double Kwave::Zoomable::zoom ( ) const
pure virtual

Returns the current zoom factor [samples/pixel]

Implemented in Kwave::MainWidget.

Referenced by Kwave::ZoomToolBar::selectZoom(), and ~Zoomable().

Here is the caller graph for this function:

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