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

Triggered Scope that it can be set to start on a rising or falling signal. More...

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

Public Types

enum  ColourIds { lineColourId = 0x1231e10 , backgroundColourId = 0x1231e11 , traceColourId = 0x1231e12 , envelopeColourId = 0x1231f13 }
 
enum  TriggerMode { None = 0 , Up , Down }
 The enum to use when setting the trace trigger mode. More...
 

Public Member Functions

 TriggeredScope (AudioFifo &)
 Creates a Triggered scope. More...
 
 ~TriggeredScope () override
 Destructor. More...
 
void setNumChannels (int num)
 
void setNumSamplesPerPixel (float newNumSamplesPerPixel)
 Sets the number of samples represented by each pixel on the scope. More...
 
void setVerticalZoomFactor (float newVerticalZoomFactor)
 Sets the vertical zoom factor of the display. More...
 
void setVerticalZoomOffset (float newVerticalZoomOffset, int ch)
 Sets the vertical zoom offset of the display. More...
 
void setSingleTrigger (bool singleTrigger_)
 Freeze scope once triggered. More...
 
void resetTrigger ()
 Start running again once triggered. More...
 
void setTriggerMode (TriggerMode newTriggerMode)
 Sets the type of change that will trigger a trace. More...
 
void setTriggerChannel (int ch)
 Set channel to trigger on, -1 ave of all channels. More...
 
void setTriggerLevel (float l)
 Set level to trigger on. More...
 
void setTriggerPos (float l)
 
void setDrawTriggerPos (bool d)
 
void paint (juce::Graphics &g) override
 
void timerCallback () override
 

Detailed Description

Triggered Scope that it can be set to start on a rising or falling signal.

This makes it extremely useful for very zoomed-in waveform viewing.

Member Enumeration Documentation

◆ ColourIds

Enumerator
lineColourId 
backgroundColourId 
traceColourId 
envelopeColourId 

◆ TriggerMode

The enum to use when setting the trace trigger mode.

Enumerator
None 
Up 
Down 

Constructor & Destructor Documentation

◆ TriggeredScope()

TriggeredScope::TriggeredScope ( AudioFifo )

Creates a Triggered scope.

Pass a fifo to read from

◆ ~TriggeredScope()

TriggeredScope::~TriggeredScope ( )
override

Destructor.

Member Function Documentation

◆ setNumChannels()

void TriggeredScope::setNumChannels ( int  num)

◆ setNumSamplesPerPixel()

void TriggeredScope::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.

◆ setVerticalZoomFactor()

void TriggeredScope::setVerticalZoomFactor ( float  newVerticalZoomFactor)

Sets the vertical zoom factor of the display.

◆ setVerticalZoomOffset()

void TriggeredScope::setVerticalZoomOffset ( float  newVerticalZoomOffset,
int  ch 
)

Sets the vertical zoom offset of the display.

◆ setSingleTrigger()

void TriggeredScope::setSingleTrigger ( bool  singleTrigger_)

Freeze scope once triggered.

◆ resetTrigger()

void TriggeredScope::resetTrigger ( )

Start running again once triggered.

◆ setTriggerMode()

void TriggeredScope::setTriggerMode ( TriggerMode  newTriggerMode)

Sets the type of change that will trigger a trace.

◆ setTriggerChannel()

void TriggeredScope::setTriggerChannel ( int  ch)

Set channel to trigger on, -1 ave of all channels.

◆ setTriggerLevel()

void TriggeredScope::setTriggerLevel ( float  l)

Set level to trigger on.

◆ setTriggerPos()

void TriggeredScope::setTriggerPos ( float  l)

◆ setDrawTriggerPos()

void TriggeredScope::setDrawTriggerPos ( bool  d)

◆ paint()

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

◆ timerCallback()

void TriggeredScope::timerCallback ( )
override

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