Gin
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
XYScope Class Reference

Draws an XY Scope with history-based fading. More...

#include <gin_xyscope.h>

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.
 
 ~XYScope () override
 Destructor.
 
void setZoomFactor (float newZoomFactor)
 Sets the zoom factor of the display.
 
void setHistorySize (int numFrames)
 Sets the number of history frames to display with fading.
 
void setBlockSize (int size)
 Sets the number of points per frame.
 
void paint (juce::Graphics &g) override
 
void timerCallback () override
 

Detailed Description

Draws an XY Scope with history-based fading.

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

◆ setZoomFactor()

void XYScope::setZoomFactor ( float  newZoomFactor)

Sets the zoom factor of the display.

◆ setHistorySize()

void XYScope::setHistorySize ( int  numFrames)

Sets the number of history frames to display with fading.

◆ setBlockSize()

void XYScope::setBlockSize ( int  size)

Sets the number of points per frame.

◆ paint()

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

◆ timerCallback()

void XYScope::timerCallback ( )
override

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