Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
find_object::ObjWidget Class Reference

#include <ObjWidget.h>

List of all members.

Signals

void removalTriggered (find_object::ObjWidget *)
void roiChanged (const cv::Rect &)
void selectionChanged ()

Public Member Functions

void addRect (QGraphicsRectItem *rect)
void clearRoiSelection ()
const QColor & color () const
QColor defaultColor () const
QPixmap getSceneAsPixmap ()
int id () const
bool isFeaturesShown () const
bool isImageShown () const
bool isMirrorView () const
bool isSizedFeatures () const
const std::vector< cv::KeyPoint > keypoints () const
 ObjWidget (QWidget *parent=0)
 ObjWidget (int id, const std::vector< cv::KeyPoint > &keypoints, const QImage &image, QWidget *parent=0)
const QPixmap & pixmap () const
void resetKptsColor ()
QList< QGraphicsItem * > selectedItems () const
std::vector< cv::KeyPoint > selectedKeypoints () const
void setAlpha (int alpha)
void setAutoScale (bool autoScale)
void setData (const std::vector< cv::KeyPoint > &keypoints, const QImage &image)
void setDeletable (bool deletable)
void setFeaturesShown (bool shown)
void setGraphicsViewMode (bool on)
void setId (int id)
void setImageShown (bool shown)
void setKptColor (int index, const QColor &color)
void setMirrorView (bool on)
void setSizedFeatures (bool on)
void setTextLabel (const QString &text)
virtual ~ObjWidget ()

Protected Member Functions

virtual void contextMenuEvent (QContextMenuEvent *event)
virtual void mouseMoveEvent (QMouseEvent *event)
virtual void mousePressEvent (QMouseEvent *event)
virtual void mouseReleaseEvent (QMouseEvent *event)
virtual void paintEvent (QPaintEvent *event)
virtual void resizeEvent (QResizeEvent *event)

Private Member Functions

void computeScaleOffsets (float &scale, float &offsetX, float &offsetY)
void drawKeypoints (QPainter *painter=0)
void setupGraphicsView ()
void setupUi ()
void updateItemsShown ()

Private Attributes

int alpha_
QAction * autoScale_
QColor color_
QAction * delete_
QGraphicsView * graphicsView_
bool graphicsViewInitialized_
QAction * graphicsViewMode_
int id_
QList< KeypointItem * > keypointItems_
std::vector< cv::KeyPoint > keypoints_
QVector< QColor > kptColors_
QLabel * label_
QMenu * menu_
QAction * mirrorView_
QPoint mouseCurrentPos_
QPoint mousePressedPos_
QPixmap pixmap_
QList< QGraphicsRectItem * > rectItems_
QString savedFileName_
QAction * saveImage_
QAction * setAlpha_
QAction * setColor_
QAction * showFeatures_
QAction * showImage_
QAction * sizedFeatures_

Detailed Description

Definition at line 50 of file ObjWidget.h.


Constructor & Destructor Documentation

find_object::ObjWidget::ObjWidget ( QWidget *  parent = 0)

Definition at line 58 of file ObjWidget.cpp.

find_object::ObjWidget::ObjWidget ( int  id,
const std::vector< cv::KeyPoint > &  keypoints,
const QImage &  image,
QWidget *  parent = 0 
)

Definition at line 68 of file ObjWidget.cpp.

Definition at line 79 of file ObjWidget.cpp.


Member Function Documentation

void find_object::ObjWidget::addRect ( QGraphicsRectItem *  rect)

Definition at line 323 of file ObjWidget.cpp.

Definition at line 73 of file ObjWidget.h.

const QColor& find_object::ObjWidget::color ( ) const [inline]

Definition at line 76 of file ObjWidget.h.

void find_object::ObjWidget::computeScaleOffsets ( float &  scale,
float &  offsetX,
float &  offsetY 
) [private]

Definition at line 394 of file ObjWidget.cpp.

void find_object::ObjWidget::contextMenuEvent ( QContextMenuEvent *  event) [protected, virtual]

Definition at line 558 of file ObjWidget.cpp.

Definition at line 724 of file ObjWidget.cpp.

void find_object::ObjWidget::drawKeypoints ( QPainter *  painter = 0) [private]

Definition at line 681 of file ObjWidget.cpp.

Definition at line 650 of file ObjWidget.cpp.

int find_object::ObjWidget::id ( ) const [inline]

Definition at line 75 of file ObjWidget.h.

Definition at line 348 of file ObjWidget.cpp.

Definition at line 343 of file ObjWidget.cpp.

Definition at line 358 of file ObjWidget.cpp.

Definition at line 353 of file ObjWidget.cpp.

const std::vector<cv::KeyPoint> find_object::ObjWidget::keypoints ( ) const [inline]

Definition at line 77 of file ObjWidget.h.

void find_object::ObjWidget::mouseMoveEvent ( QMouseEvent *  event) [protected, virtual]

Definition at line 525 of file ObjWidget.cpp.

void find_object::ObjWidget::mousePressEvent ( QMouseEvent *  event) [protected, virtual]

Definition at line 514 of file ObjWidget.cpp.

void find_object::ObjWidget::mouseReleaseEvent ( QMouseEvent *  event) [protected, virtual]

Definition at line 535 of file ObjWidget.cpp.

void find_object::ObjWidget::paintEvent ( QPaintEvent *  event) [protected, virtual]

Definition at line 434 of file ObjWidget.cpp.

const QPixmap& find_object::ObjWidget::pixmap ( ) const [inline]

Definition at line 78 of file ObjWidget.h.

Definition at line 287 of file ObjWidget.cpp.

void find_object::ObjWidget::resizeEvent ( QResizeEvent *  event) [protected, virtual]

Definition at line 505 of file ObjWidget.cpp.

void find_object::ObjWidget::roiChanged ( const cv::Rect &  ) [signal]
QList< QGraphicsItem * > find_object::ObjWidget::selectedItems ( ) const

Definition at line 338 of file ObjWidget.cpp.

std::vector< cv::KeyPoint > find_object::ObjWidget::selectedKeypoints ( ) const

Definition at line 731 of file ObjWidget.cpp.

void find_object::ObjWidget::setAlpha ( int  alpha)

Definition at line 232 of file ObjWidget.cpp.

void find_object::ObjWidget::setAutoScale ( bool  autoScale)

Definition at line 179 of file ObjWidget.cpp.

void find_object::ObjWidget::setData ( const std::vector< cv::KeyPoint > &  keypoints,
const QImage &  image 
)

Definition at line 267 of file ObjWidget.cpp.

void find_object::ObjWidget::setDeletable ( bool  deletable)

Definition at line 363 of file ObjWidget.cpp.

Definition at line 381 of file ObjWidget.cpp.

Definition at line 146 of file ObjWidget.cpp.

Definition at line 136 of file ObjWidget.cpp.

Definition at line 368 of file ObjWidget.cpp.

void find_object::ObjWidget::setKptColor ( int  index,
const QColor &  color 
)

Definition at line 301 of file ObjWidget.cpp.

Definition at line 218 of file ObjWidget.cpp.

Definition at line 196 of file ObjWidget.cpp.

void find_object::ObjWidget::setTextLabel ( const QString &  text)

Definition at line 262 of file ObjWidget.cpp.

Definition at line 748 of file ObjWidget.cpp.

void find_object::ObjWidget::setupUi ( ) [private]

Definition at line 83 of file ObjWidget.cpp.

Definition at line 665 of file ObjWidget.cpp.


Member Data Documentation

Definition at line 119 of file ObjWidget.h.

Definition at line 132 of file ObjWidget.h.

Definition at line 121 of file ObjWidget.h.

QAction* find_object::ObjWidget::delete_ [private]

Definition at line 130 of file ObjWidget.h.

QGraphicsView* find_object::ObjWidget::graphicsView_ [private]

Definition at line 115 of file ObjWidget.h.

Definition at line 118 of file ObjWidget.h.

Definition at line 131 of file ObjWidget.h.

Definition at line 111 of file ObjWidget.h.

Definition at line 114 of file ObjWidget.h.

std::vector<cv::KeyPoint> find_object::ObjWidget::keypoints_ [private]

Definition at line 112 of file ObjWidget.h.

QVector<QColor> find_object::ObjWidget::kptColors_ [private]

Definition at line 116 of file ObjWidget.h.

QLabel* find_object::ObjWidget::label_ [private]

Definition at line 120 of file ObjWidget.h.

Definition at line 125 of file ObjWidget.h.

Definition at line 129 of file ObjWidget.h.

Definition at line 139 of file ObjWidget.h.

Definition at line 138 of file ObjWidget.h.

Definition at line 113 of file ObjWidget.h.

QList<QGraphicsRectItem*> find_object::ObjWidget::rectItems_ [private]

Definition at line 117 of file ObjWidget.h.

Definition at line 124 of file ObjWidget.h.

Definition at line 128 of file ObjWidget.h.

Definition at line 134 of file ObjWidget.h.

Definition at line 135 of file ObjWidget.h.

Definition at line 127 of file ObjWidget.h.

Definition at line 126 of file ObjWidget.h.

Definition at line 133 of file ObjWidget.h.


The documentation for this class was generated from the following files:


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Thu Aug 27 2015 13:00:34