This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes | List of all members
MCU::AnalogVUDisplay Class Reference

#include <VUDisplay.hpp>

Inheritance diagram for MCU::AnalogVUDisplay:
Collaboration diagram for MCU::AnalogVUDisplay:

Public Member Functions

 AnalogVUDisplay (DisplayInterface &display, IVU &vu, PixelLocation loc, uint16_t radius, float theta_min, float theta_diff, uint16_t color)
 
void draw () override
 Draw this DisplayElement to the display buffer. More...
 
void drawNeedle (float angle)
 
DisplayInterfacegetDisplay ()
 Get a reference to the display that this element draws to. More...
 
const DisplayInterfacegetDisplay () const
 Get a const reference to the display that this element draws to. More...
 

Static Public Member Functions

static DoublyLinkedList< DisplayElement > & getAll ()
 Get the list of all DisplayElement instances. More...
 

Protected Attributes

DisplayInterfacedisplay
 
DisplayElementnext
 
DisplayElementprevious
 

Static Protected Attributes

static DoublyLinkedList< DisplayElementelements
 

Private Attributes

IVUvu
 
int16_t x
 
int16_t y
 
uint16_t r_sq
 
float theta_min
 
float theta_diff
 
uint16_t color
 

Detailed Description

Examples
2.VU-Meter-OLED-USB-DAC.ino.

Definition at line 93 of file VUDisplay.hpp.

Constructor & Destructor Documentation

◆ AnalogVUDisplay()

MCU::AnalogVUDisplay::AnalogVUDisplay ( DisplayInterface display,
IVU vu,
PixelLocation  loc,
uint16_t  radius,
float  theta_min,
float  theta_diff,
uint16_t  color 
)
inline

Definition at line 95 of file VUDisplay.hpp.

Member Function Documentation

◆ draw()

void MCU::AnalogVUDisplay::draw ( )
inlineoverridevirtual

Draw this DisplayElement to the display buffer.

Implements DisplayElement.

Definition at line 102 of file VUDisplay.hpp.

◆ drawNeedle()

void MCU::AnalogVUDisplay::drawNeedle ( float  angle)
inline

Definition at line 107 of file VUDisplay.hpp.

◆ getDisplay() [1/2]

DisplayInterface& DisplayElement::getDisplay ( )
inlineinherited

Get a reference to the display that this element draws to.

Definition at line 36 of file DisplayElement.hpp.

◆ getDisplay() [2/2]

const DisplayInterface& DisplayElement::getDisplay ( ) const
inlineinherited

Get a const reference to the display that this element draws to.

Definition at line 38 of file DisplayElement.hpp.

◆ getAll()

static DoublyLinkedList<DisplayElement>& DisplayElement::getAll ( )
inlinestaticinherited

Get the list of all DisplayElement instances.

Definition at line 41 of file DisplayElement.hpp.

Member Data Documentation

◆ vu

IVU& MCU::AnalogVUDisplay::vu
private

Definition at line 117 of file VUDisplay.hpp.

◆ x

int16_t MCU::AnalogVUDisplay::x
private

Definition at line 119 of file VUDisplay.hpp.

◆ y

int16_t MCU::AnalogVUDisplay::y
private

Definition at line 120 of file VUDisplay.hpp.

◆ r_sq

uint16_t MCU::AnalogVUDisplay::r_sq
private

Definition at line 121 of file VUDisplay.hpp.

◆ theta_min

float MCU::AnalogVUDisplay::theta_min
private

Definition at line 122 of file VUDisplay.hpp.

◆ theta_diff

float MCU::AnalogVUDisplay::theta_diff
private

Definition at line 123 of file VUDisplay.hpp.

◆ color

uint16_t MCU::AnalogVUDisplay::color
private

Definition at line 124 of file VUDisplay.hpp.

◆ display

DisplayInterface& DisplayElement::display
protectedinherited

Definition at line 44 of file DisplayElement.hpp.

◆ elements

DoublyLinkedList< DisplayElement > DisplayElement::elements
staticprotectedinherited

Definition at line 46 of file DisplayElement.hpp.

◆ next

DisplayElement * DoublyLinkable< DisplayElement >::next
protectedinherited

Definition at line 301 of file LinkedList.hpp.

◆ previous

DisplayElement * DoublyLinkable< DisplayElement >::previous
protectedinherited

Definition at line 302 of file LinkedList.hpp.


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