Fix logger and led colors (#906)

This commit is contained in:
Murat Seker
2020-07-27 20:00:36 +02:00
committed by GitHub
parent 773b47bf53
commit d4b4158cb7
9 changed files with 69 additions and 41 deletions

View File

@@ -165,9 +165,9 @@ public:
///
/// @param[out] image The image that buffers the output
///
void toRgb(Image<ColorRgb>& image)
void toRgb(Image<ColorRgb>& image) const
{
_d_ptr->toRgb(*(image.imageData()));
_d_ptr->toRgb(*image._d_ptr);
}
///
@@ -186,12 +186,10 @@ public:
_d_ptr->clear();
}
QSharedDataPointer<ImageData<Pixel_T>> imageData() const
{
return _d_ptr;
}
private:
template<class T>
friend class Image;
///
/// Translate x and y coordinate to index of the underlying vector
///

View File

@@ -134,7 +134,7 @@ public:
return _pixels;
}
void toRgb(ImageData<ColorRgb>& image)
void toRgb(ImageData<ColorRgb>& image) const
{
if (image.width() != _width || image.height() != _height)
image.resize(_width, _height);

View File

@@ -79,7 +79,7 @@ protected:
~Logger();
private:
void write(const Logger::T_LOG_MESSAGE & message) const;
void write(const Logger::T_LOG_MESSAGE & message);
static QMutex MapLock;
static QMap<QString,Logger*> LoggerMap;
@@ -106,7 +106,7 @@ public slots:
void handleNewLogMessage(const Logger::T_LOG_MESSAGE&);
signals:
void newLogMessage(Logger::T_LOG_MESSAGE);
void newLogMessage(const Logger::T_LOG_MESSAGE&);
protected:
LoggerManager();