improve uvosled support
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
#include <stdint.h>
|
||||
#include <QSettings>
|
||||
#include <opencv2/core/mat.hpp>
|
||||
#include <QTimer>
|
||||
|
||||
#include "profile.h"
|
||||
#include "camera.h"
|
||||
@ -28,10 +29,14 @@ private:
|
||||
LightingSetup lighting_;
|
||||
std::vector<std::shared_ptr<Camera>> cameras_;
|
||||
std::vector<Camera::Image> images_;
|
||||
QTimer ledTimer;
|
||||
|
||||
bool lightFor(const LightingSetup& lighting, double time);
|
||||
|
||||
private slots:
|
||||
void imageRecived(Camera::Image img);
|
||||
void finishAddCamera(std::shared_ptr<Camera> camera);
|
||||
void lightOff();
|
||||
|
||||
signals:
|
||||
void cameraRemoved(std::shared_ptr<Camera> camera);
|
||||
@ -48,13 +53,14 @@ public slots:
|
||||
void setLighting(const LightingSetup& lighting) {lighting_ = lighting;}
|
||||
|
||||
public:
|
||||
Cameras(uvosled* led = nullptr);
|
||||
~Cameras();
|
||||
bool setCameras(const std::vector<cam::Camera::Description>& descriptions);
|
||||
bool addCamera(const cam::Camera::Description& desc);
|
||||
std::vector<cam::Camera::Description> getCameras();
|
||||
std::shared_ptr<Camera> getCamera(size_t id);
|
||||
size_t numCameras(){return cameras_.size();}
|
||||
void clear();
|
||||
Cameras(uvosled* led = nullptr);
|
||||
void load(QSettings& settings);
|
||||
void store(QSettings& settings);
|
||||
void disable(bool disable);
|
||||
|
Reference in New Issue
Block a user