panorama

package
v0.0.0-...-6c475a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Panorama

type Panorama struct {
	// contains filtered or unexported fields
}

Panorama controller

func New

func New(width core.Px, frequencyRange core.FrequencyRange, vfoFrequency core.Frequency) *Panorama

New returns a new instance of panorama.

func NewFullSpectrum

func NewFullSpectrum(width core.Px, frequencyRange core.FrequencyRange, vfoFrequency core.Frequency) *Panorama

NewFullSpectrum returns a new instance of panorama in full-range mode.

func (Panorama) Bandwidth

func (p Panorama) Bandwidth() core.Frequency

Bandwidth in Hz

func (*Panorama) CoarserDynamicRange

func (p *Panorama) CoarserDynamicRange()

func (Panorama) Data

func (p Panorama) Data() core.Panorama

Data to draw the current panorama.

func (*Panorama) FinerDynamicRange

func (p *Panorama) FinerDynamicRange()

func (Panorama) FrequencyRange

func (p Panorama) FrequencyRange() core.FrequencyRange

FrequencyRange of the panorama

func (Panorama) From

func (p Panorama) From() core.Frequency

From in Hz

func (*Panorama) ResetZoom

func (p *Panorama) ResetZoom()

ResetZoom to the default of the current view mode

func (*Panorama) SetDynamicRange

func (p *Panorama) SetDynamicRange(dbRange core.DBRange)

func (*Panorama) SetFFT

func (p *Panorama) SetFFT(fft core.FFT)

SetFFT data

func (*Panorama) SetSize

func (p *Panorama) SetSize(width, height core.Px)

SetSize in pixels

func (*Panorama) SetVFO

func (p *Panorama) SetVFO(vfo core.VFO)

SetVFO in Hz

func (*Panorama) ShiftDynamicRange

func (p *Panorama) ShiftDynamicRange(ratio core.Frct)

func (*Panorama) ShiftFrequencyRange

func (p *Panorama) ShiftFrequencyRange(ratio core.Frct)

ShiftFrequencyRange shifts the panorama horizontally by the given ratio of the total width.

func (*Panorama) SignalDetectionActive

func (p *Panorama) SignalDetectionActive() bool

SignalDetectionActive indicates if the signal detection is active or not.

func (Panorama) To

func (p Panorama) To() core.Frequency

To in Hz

func (*Panorama) ToggleSignalDetection

func (p *Panorama) ToggleSignalDetection()

ToggleSignalDetection switches the signal detection on and off.

func (*Panorama) ToggleViewMode

func (p *Panorama) ToggleViewMode()

ToggleViewMode switches to the other view mode.

func (Panorama) VFO

func (p Panorama) VFO() (vfo core.VFO, band bandplan.Band)

VFO frequency in Hz

func (*Panorama) ViewMode

func (p *Panorama) ViewMode() core.ViewMode

ViewMode returns the currently active view mode (centered or fixed).

func (*Panorama) ZoomIn

func (p *Panorama) ZoomIn()

ZoomIn one step

func (*Panorama) ZoomOut

func (p *Panorama) ZoomOut()

ZoomOut one step

func (*Panorama) ZoomToBand

func (p *Panorama) ZoomToBand()

ZoomToBand of the current VFO frequency and switch to fixed view mode.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL