pixled-lib  1.0
Public Member Functions | List of all members
pixled::mapping::LedPanel Class Reference

#include <mapping.h>

Inheritance diagram for pixled::mapping::LedPanel:
Inheritance graph
[legend]
Collaboration diagram for pixled::mapping::LedPanel:
Collaboration graph
[legend]

Public Member Functions

 LedPanel (index_t width, index_t height, PANEL_LINKING linking)
 
index_t width () const
 
index_t height () const
 
- Public Member Functions inherited from pixled::mapping::TurtleMapping
point position () const
 
angle orientation () const
 
index_t ledIndex () const
 
void forward (coordinate distance, index_t num_led=0)
 
void turnLeft (angle angle)
 
void turnRight (angle angle)
 
void jump (point p)
 
- Public Member Functions inherited from pixled::Mapping
const std::vector< led > & leds () const
 
void push (const led &led)
 
box boundingBox () const
 

Detailed Description

A mapping representing a 2D led panel.

Examples
pixled/animation/blink.cpp, pixled/animation/blooming.cpp, pixled/animation/linear_unit_wave.cpp, pixled/animation/radial_unit_wave.cpp, pixled/animation/rainbow.cpp, pixled/animation/sequence.cpp, pixled/conditional/conditional.cpp, pixled/geometry/index.cpp, pixled/random/normal.cpp, pixled/random/uniform.cpp, pixled/signal/sawtooth.cpp, pixled/signal/sine.cpp, pixled/signal/square.cpp, and pixled/signal/triangle.cpp.

Constructor & Destructor Documentation

◆ LedPanel()

pixled::mapping::LedPanel::LedPanel ( index_t  width,
index_t  height,
PANEL_LINKING  linking 
)

LedPanel constructor.

Parameters
widthpanel width (led count)
heightpanel height (led count)
linkingpanel linking

Member Function Documentation

◆ width()

index_t pixled::mapping::LedPanel::width ( ) const
inline

Panel width (led count).

◆ height()

index_t pixled::mapping::LedPanel::height ( ) const
inline

Panel height (led count).


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