Gin
Public Types | Public Member Functions | List of all members
XYScope Class Reference

Draws an XY Scope. More...

Inherits juce::Component, and juce::Timer.

Public Types

enum  ColourIds { lineColourId = 0x1291e10 , backgroundColourId = 0x1291e11 , traceColourId = 0x1291e12 }
 

Public Member Functions

 XYScope (AudioFifo &)
 Creates a XY scope. More...
 
 ~XYScope () override
 Destructor. More...
 
void setNumSamplesPerPixel (float newNumSamplesPerPixel)
 Sets the number of samples represented by each pixel on the scope. More...
 
void setZoomFactor (float newZoomFactor)
 Sets the vertical zoom factor of the display. More...
 
void paint (juce::Graphics &g) override
 
void timerCallback () override
 

Detailed Description

Draws an XY Scope.

Member Enumeration Documentation

◆ ColourIds

Enumerator
lineColourId 
backgroundColourId 
traceColourId 

Constructor & Destructor Documentation

◆ XYScope()

XYScope::XYScope ( AudioFifo )

Creates a XY scope.

Pass a fifo to read from

◆ ~XYScope()

XYScope::~XYScope ( )
override

Destructor.

Member Function Documentation

◆ setNumSamplesPerPixel()

void XYScope::setNumSamplesPerPixel ( float  newNumSamplesPerPixel)

Sets the number of samples represented by each pixel on the scope.

Setting this to a low number will give a very zoomed in display, a high number zoom out.

◆ setZoomFactor()

void XYScope::setZoomFactor ( float  newZoomFactor)

Sets the vertical zoom factor of the display.

◆ paint()

void XYScope::paint ( juce::Graphics &  g)
override

◆ timerCallback()

void XYScope::timerCallback ( )
override

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