adjustable image2led mode for grabbers (#341)

* implement most points for a adjustable image2leds mapping

* implement new adjustable led mapping type
This commit is contained in:
redPanther
2016-12-19 23:59:50 +01:00
committed by GitHub
parent 53924c4fca
commit c5e0299c55
21 changed files with 258 additions and 47 deletions

View File

@@ -93,7 +93,7 @@ public:
///
unsigned getLedCount() const;
QSize getLedGridSize() const { return _ledGridSize; }
QSize getLedGridSize() const { return _ledGridSize; };
///
/// Returns the current priority
@@ -273,6 +273,9 @@ public slots:
/// @param timeout The timeout of the effect (after the timout, the effect will be cleared)
int setEffect(const QString & effectName, const QJsonObject & args, int priority, int timeout = -1, QString pythonScript = "");
/// sets the methode how image is maped to leds
void setLedMappingType(int mappingType);
public:
static Hyperion *_hyperion;
@@ -312,6 +315,7 @@ signals:
void componentStateChanged(const hyperion::Components component, bool enabled);
void imageToLedsMappingChanged(int mappingType);
void emitImage(int priority, const Image<ColorRgb> & image, const int timeout_ms);
private slots: