Added SetColor menu option to ObjWidget

git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@367 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
matlabbe
2014-08-03 22:23:02 +00:00
parent 9829b29dd0
commit 970b9e95aa
4 changed files with 51 additions and 16 deletions
+3
View File
@@ -47,6 +47,7 @@ public:
void clearRoiSelection() {mousePressedPos_ = mouseCurrentPos_ = QPoint();update();}
int id() const {return id_;}
const QColor & color() const {return color_;}
const std::vector<cv::KeyPoint> keypoints() const {return keypoints_;}
const QPixmap & pixmap() const {return pixmap_;}
QColor defaultColor() const;
@@ -91,6 +92,7 @@ private:
bool graphicsViewInitialized_;
int alpha_;
QLabel * label_;
QColor color_;
// menu stuff
QString savedFileName_;
@@ -104,6 +106,7 @@ private:
QAction * autoScale_;
QAction * sizedFeatures_;
QAction * setAlpha_;
QAction * setColor_;
// selection stuff
QPoint mousePressedPos_;