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 Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes | Static Private Attributes | List of all members
MCU::VPotDisplay Class Reference

#include <VPotDisplay.hpp>

Inheritance diagram for MCU::VPotDisplay:
Collaboration diagram for MCU::VPotDisplay:

Public Member Functions

 VPotDisplay (DisplayInterface &display, IVPotRing &vpot, PixelLocation loc, uint16_t radius, uint16_t innerRadius, uint16_t color)
 
void draw () override
 Draw this DisplayElement to the display buffer. More...
 
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 Member Functions

void drawVPotSegment (uint8_t segment)
 

Protected Attributes

DisplayInterfacedisplay
 
DisplayElementnext
 
DisplayElementprevious
 

Static Protected Attributes

static DoublyLinkedList< DisplayElementelements
 

Private Attributes

IVPotRingvpot
 
int16_t x
 
int16_t y
 
uint16_t radius
 
uint16_t innerRadius
 
uint16_t color
 

Static Private Attributes

const static float angleSpacing
 

Detailed Description

Examples
MCU-OLED-SSD1306-x2.ino, and MCU-OLED-SSD1306.ino.

Definition at line 12 of file VPotDisplay.hpp.

Constructor & Destructor Documentation

◆ VPotDisplay()

MCU::VPotDisplay::VPotDisplay ( DisplayInterface display,
IVPotRing vpot,
PixelLocation  loc,
uint16_t  radius,
uint16_t  innerRadius,
uint16_t  color 
)
inline

Definition at line 15 of file VPotDisplay.hpp.

Member Function Documentation

◆ draw()

void MCU::VPotDisplay::draw ( )
inlineoverridevirtual

Draw this DisplayElement to the display buffer.

Implements DisplayElement.

Definition at line 20 of file VPotDisplay.hpp.

◆ drawVPotSegment()

void MCU::VPotDisplay::drawVPotSegment ( uint8_t  segment)
inlineprotected

Definition at line 41 of file VPotDisplay.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

◆ vpot

IVPotRing& MCU::VPotDisplay::vpot
private

Definition at line 33 of file VPotDisplay.hpp.

◆ x

int16_t MCU::VPotDisplay::x
private

Definition at line 35 of file VPotDisplay.hpp.

◆ y

int16_t MCU::VPotDisplay::y
private

Definition at line 35 of file VPotDisplay.hpp.

◆ radius

uint16_t MCU::VPotDisplay::radius
private

Definition at line 36 of file VPotDisplay.hpp.

◆ innerRadius

uint16_t MCU::VPotDisplay::innerRadius
private

Definition at line 36 of file VPotDisplay.hpp.

◆ color

uint16_t MCU::VPotDisplay::color
private

Definition at line 36 of file VPotDisplay.hpp.

◆ angleSpacing

const static float MCU::VPotDisplay::angleSpacing
staticprivate

Definition at line 38 of file VPotDisplay.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: