Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
find_object::ObjWidget Class Reference

#include <ObjWidget.h>

Inheritance diagram for find_object::ObjWidget:
Inheritance graph
[legend]

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 (int id) 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 QMultiMap< int, int > &words, const QImage &image, QWidget *parent=0)
 
const QPixmap & pixmap () const
 
void resetKptsColor ()
 
void resetKptsWordID ()
 
QList< QGraphicsItem * > selectedItems () const
 
std::vector< cv::KeyPoint > selectedKeypoints () const
 
void setAlpha (int alpha)
 
void setAutoScale (bool autoScale)
 
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 setKptWordID (int index, int wordId)
 
void setMirrorView (bool on)
 
void setSizedFeatures (bool on)
 
void setTextLabel (const QString &text)
 
void updateData (const std::vector< cv::KeyPoint > &keypoints, const QMultiMap< int, int > &words=QMultiMap< int, int >())
 
void updateImage (const QImage &image)
 
void updateWords (const QMultiMap< int, int > &words)
 
const QMap< int, int > & words () const
 
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_
 
QRect rect_
 
QList< QGraphicsRectItem * > rectItems_
 
QString savedFileName_
 
QAction * saveImage_
 
QAction * setAlpha_
 
QAction * setColor_
 
QAction * showFeatures_
 
QAction * showImage_
 
QAction * sizedFeatures_
 
QMap< int, int > words_
 

Detailed Description

Definition at line 50 of file ObjWidget.h.

Constructor & Destructor Documentation

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

Definition at line 57 of file ObjWidget.cpp.

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

Definition at line 67 of file ObjWidget.cpp.

find_object::ObjWidget::~ObjWidget ( )
virtual

Definition at line 79 of file ObjWidget.cpp.

Member Function Documentation

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

Definition at line 372 of file ObjWidget.cpp.

void find_object::ObjWidget::clearRoiSelection ( )
inline

Definition at line 77 of file ObjWidget.h.

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

Definition at line 80 of file ObjWidget.h.

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

Definition at line 443 of file ObjWidget.cpp.

void find_object::ObjWidget::contextMenuEvent ( QContextMenuEvent *  event)
protectedvirtual

Definition at line 607 of file ObjWidget.cpp.

QColor find_object::ObjWidget::defaultColor ( int  id) const

Definition at line 769 of file ObjWidget.cpp.

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

Definition at line 730 of file ObjWidget.cpp.

QPixmap find_object::ObjWidget::getSceneAsPixmap ( )

Definition at line 699 of file ObjWidget.cpp.

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

Definition at line 79 of file ObjWidget.h.

bool find_object::ObjWidget::isFeaturesShown ( ) const

Definition at line 397 of file ObjWidget.cpp.

bool find_object::ObjWidget::isImageShown ( ) const

Definition at line 392 of file ObjWidget.cpp.

bool find_object::ObjWidget::isMirrorView ( ) const

Definition at line 407 of file ObjWidget.cpp.

bool find_object::ObjWidget::isSizedFeatures ( ) const

Definition at line 402 of file ObjWidget.cpp.

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

Definition at line 81 of file ObjWidget.h.

void find_object::ObjWidget::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 574 of file ObjWidget.cpp.

void find_object::ObjWidget::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 563 of file ObjWidget.cpp.

void find_object::ObjWidget::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 584 of file ObjWidget.cpp.

void find_object::ObjWidget::paintEvent ( QPaintEvent *  event)
protectedvirtual

Definition at line 483 of file ObjWidget.cpp.

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

Definition at line 83 of file ObjWidget.h.

void find_object::ObjWidget::removalTriggered ( find_object::ObjWidget )
signal
void find_object::ObjWidget::resetKptsColor ( )

Definition at line 314 of file ObjWidget.cpp.

void find_object::ObjWidget::resetKptsWordID ( )

Definition at line 332 of file ObjWidget.cpp.

void find_object::ObjWidget::resizeEvent ( QResizeEvent *  event)
protectedvirtual

Definition at line 554 of file ObjWidget.cpp.

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

Definition at line 387 of file ObjWidget.cpp.

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

Definition at line 776 of file ObjWidget.cpp.

void find_object::ObjWidget::selectionChanged ( )
signal
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::setDeletable ( bool  deletable)

Definition at line 412 of file ObjWidget.cpp.

void find_object::ObjWidget::setFeaturesShown ( bool  shown)

Definition at line 430 of file ObjWidget.cpp.

void find_object::ObjWidget::setGraphicsViewMode ( bool  on)

Definition at line 146 of file ObjWidget.cpp.

void find_object::ObjWidget::setId ( int  id)

Definition at line 136 of file ObjWidget.cpp.

void find_object::ObjWidget::setImageShown ( bool  shown)

Definition at line 417 of file ObjWidget.cpp.

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

Definition at line 341 of file ObjWidget.cpp.

void find_object::ObjWidget::setKptWordID ( int  index,
int  wordId 
)

Definition at line 363 of file ObjWidget.cpp.

void find_object::ObjWidget::setMirrorView ( bool  on)

Definition at line 218 of file ObjWidget.cpp.

void find_object::ObjWidget::setSizedFeatures ( bool  on)

Definition at line 196 of file ObjWidget.cpp.

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

Definition at line 262 of file ObjWidget.cpp.

void find_object::ObjWidget::setupGraphicsView ( )
private

Definition at line 793 of file ObjWidget.cpp.

void find_object::ObjWidget::setupUi ( )
private

Definition at line 83 of file ObjWidget.cpp.

void find_object::ObjWidget::updateData ( const std::vector< cv::KeyPoint > &  keypoints,
const QMultiMap< int, int > &  words = QMultiMap<int, int>() 
)

Definition at line 273 of file ObjWidget.cpp.

void find_object::ObjWidget::updateImage ( const QImage &  image)

Definition at line 267 of file ObjWidget.cpp.

void find_object::ObjWidget::updateItemsShown ( )
private

Definition at line 714 of file ObjWidget.cpp.

void find_object::ObjWidget::updateWords ( const QMultiMap< int, int > &  words)

Definition at line 296 of file ObjWidget.cpp.

const QMap<int,int>& find_object::ObjWidget::words ( ) const
inline

Definition at line 82 of file ObjWidget.h.

Member Data Documentation

int find_object::ObjWidget::alpha_
private

Definition at line 126 of file ObjWidget.h.

QAction* find_object::ObjWidget::autoScale_
private

Definition at line 139 of file ObjWidget.h.

QColor find_object::ObjWidget::color_
private

Definition at line 128 of file ObjWidget.h.

QAction* find_object::ObjWidget::delete_
private

Definition at line 137 of file ObjWidget.h.

QGraphicsView* find_object::ObjWidget::graphicsView_
private

Definition at line 122 of file ObjWidget.h.

bool find_object::ObjWidget::graphicsViewInitialized_
private

Definition at line 125 of file ObjWidget.h.

QAction* find_object::ObjWidget::graphicsViewMode_
private

Definition at line 138 of file ObjWidget.h.

int find_object::ObjWidget::id_
private

Definition at line 116 of file ObjWidget.h.

QList<KeypointItem*> find_object::ObjWidget::keypointItems_
private

Definition at line 121 of file ObjWidget.h.

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

Definition at line 117 of file ObjWidget.h.

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

Definition at line 123 of file ObjWidget.h.

QLabel* find_object::ObjWidget::label_
private

Definition at line 127 of file ObjWidget.h.

QMenu* find_object::ObjWidget::menu_
private

Definition at line 132 of file ObjWidget.h.

QAction* find_object::ObjWidget::mirrorView_
private

Definition at line 136 of file ObjWidget.h.

QPoint find_object::ObjWidget::mouseCurrentPos_
private

Definition at line 146 of file ObjWidget.h.

QPoint find_object::ObjWidget::mousePressedPos_
private

Definition at line 145 of file ObjWidget.h.

QPixmap find_object::ObjWidget::pixmap_
private

Definition at line 119 of file ObjWidget.h.

QRect find_object::ObjWidget::rect_
private

Definition at line 120 of file ObjWidget.h.

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

Definition at line 124 of file ObjWidget.h.

QString find_object::ObjWidget::savedFileName_
private

Definition at line 131 of file ObjWidget.h.

QAction* find_object::ObjWidget::saveImage_
private

Definition at line 135 of file ObjWidget.h.

QAction* find_object::ObjWidget::setAlpha_
private

Definition at line 141 of file ObjWidget.h.

QAction* find_object::ObjWidget::setColor_
private

Definition at line 142 of file ObjWidget.h.

QAction* find_object::ObjWidget::showFeatures_
private

Definition at line 134 of file ObjWidget.h.

QAction* find_object::ObjWidget::showImage_
private

Definition at line 133 of file ObjWidget.h.

QAction* find_object::ObjWidget::sizedFeatures_
private

Definition at line 140 of file ObjWidget.h.

QMap<int,int> find_object::ObjWidget::words_
private

Definition at line 118 of file ObjWidget.h.


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


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Mon Jun 10 2019 13:21:32