/*!
* This file is part of CameraPlus.
*
- * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Q_OBJECT
Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged);
+ Q_PROPERTY(bool normalize READ normalize WRITE setNormalize NOTIFY normalizeChanged);
public:
Roi(QtCamDevice *device, QObject *parent = 0);
QList<QRectF> regions();
+ bool normalize() const;
+ void setNormalize(bool normalize);
+
public slots:
void setRegionOfInterest(const QRectF& region);
void resetRegionOfInterest();
signals:
void enabledChanged();
+ void normalizeChanged();
void regionsChanged(const QVariantList& regions, const QVariant& primary,
const QVariantList& rest);
const QList<QRectF>& rest);
private:
- QVariantList variantList(const QList<QRectF>& rects);
-
QtCamRoi *m_roi;
+ bool m_normalize;
};
#endif /* ROI_H */