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

◆ ObjWidget() [1/2]

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

Definition at line 57 of file ObjWidget.cpp.

◆ ObjWidget() [2/2]

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.

◆ ~ObjWidget()

find_object::ObjWidget::~ObjWidget ( )
virtual

Definition at line 79 of file ObjWidget.cpp.

Member Function Documentation

◆ addRect()

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

Definition at line 377 of file ObjWidget.cpp.

◆ clearRoiSelection()

void find_object::ObjWidget::clearRoiSelection ( )
inline

Definition at line 77 of file ObjWidget.h.

◆ color()

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

Definition at line 80 of file ObjWidget.h.

◆ computeScaleOffsets()

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

Definition at line 448 of file ObjWidget.cpp.

◆ contextMenuEvent()

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

Definition at line 612 of file ObjWidget.cpp.

◆ defaultColor()

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

Definition at line 774 of file ObjWidget.cpp.

◆ drawKeypoints()

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

Definition at line 735 of file ObjWidget.cpp.

◆ getSceneAsPixmap()

QPixmap find_object::ObjWidget::getSceneAsPixmap ( )

Definition at line 704 of file ObjWidget.cpp.

◆ id()

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

Definition at line 79 of file ObjWidget.h.

◆ isFeaturesShown()

bool find_object::ObjWidget::isFeaturesShown ( ) const

Definition at line 402 of file ObjWidget.cpp.

◆ isImageShown()

bool find_object::ObjWidget::isImageShown ( ) const

Definition at line 397 of file ObjWidget.cpp.

◆ isMirrorView()

bool find_object::ObjWidget::isMirrorView ( ) const

Definition at line 412 of file ObjWidget.cpp.

◆ isSizedFeatures()

bool find_object::ObjWidget::isSizedFeatures ( ) const

Definition at line 407 of file ObjWidget.cpp.

◆ keypoints()

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

Definition at line 81 of file ObjWidget.h.

◆ mouseMoveEvent()

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

Definition at line 579 of file ObjWidget.cpp.

◆ mousePressEvent()

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

Definition at line 568 of file ObjWidget.cpp.

◆ mouseReleaseEvent()

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

Definition at line 589 of file ObjWidget.cpp.

◆ paintEvent()

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

Definition at line 488 of file ObjWidget.cpp.

◆ pixmap()

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

Definition at line 83 of file ObjWidget.h.

◆ removalTriggered

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

◆ resetKptsColor()

void find_object::ObjWidget::resetKptsColor ( )

Definition at line 319 of file ObjWidget.cpp.

◆ resetKptsWordID()

void find_object::ObjWidget::resetKptsWordID ( )

Definition at line 337 of file ObjWidget.cpp.

◆ resizeEvent()

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

Definition at line 559 of file ObjWidget.cpp.

◆ roiChanged

void find_object::ObjWidget::roiChanged ( const cv::Rect &  )
signal

◆ selectedItems()

QList< QGraphicsItem * > find_object::ObjWidget::selectedItems ( ) const

Definition at line 392 of file ObjWidget.cpp.

◆ selectedKeypoints()

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

Definition at line 781 of file ObjWidget.cpp.

◆ selectionChanged

void find_object::ObjWidget::selectionChanged ( )
signal

◆ setAlpha()

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

Definition at line 232 of file ObjWidget.cpp.

◆ setAutoScale()

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

Definition at line 179 of file ObjWidget.cpp.

◆ setDeletable()

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

Definition at line 417 of file ObjWidget.cpp.

◆ setFeaturesShown()

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

Definition at line 435 of file ObjWidget.cpp.

◆ setGraphicsViewMode()

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

Definition at line 146 of file ObjWidget.cpp.

◆ setId()

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

Definition at line 136 of file ObjWidget.cpp.

◆ setImageShown()

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

Definition at line 422 of file ObjWidget.cpp.

◆ setKptColor()

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

Definition at line 346 of file ObjWidget.cpp.

◆ setKptWordID()

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

Definition at line 368 of file ObjWidget.cpp.

◆ setMirrorView()

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

Definition at line 218 of file ObjWidget.cpp.

◆ setSizedFeatures()

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

Definition at line 196 of file ObjWidget.cpp.

◆ setTextLabel()

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

Definition at line 262 of file ObjWidget.cpp.

◆ setupGraphicsView()

void find_object::ObjWidget::setupGraphicsView ( )
private

Definition at line 798 of file ObjWidget.cpp.

◆ setupUi()

void find_object::ObjWidget::setupUi ( )
private

Definition at line 83 of file ObjWidget.cpp.

◆ updateData()

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

Definition at line 278 of file ObjWidget.cpp.

◆ updateImage()

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

Definition at line 267 of file ObjWidget.cpp.

◆ updateItemsShown()

void find_object::ObjWidget::updateItemsShown ( )
private

Definition at line 719 of file ObjWidget.cpp.

◆ updateWords()

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

Definition at line 301 of file ObjWidget.cpp.

◆ words()

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

Definition at line 82 of file ObjWidget.h.

Member Data Documentation

◆ alpha_

int find_object::ObjWidget::alpha_
private

Definition at line 126 of file ObjWidget.h.

◆ autoScale_

QAction* find_object::ObjWidget::autoScale_
private

Definition at line 139 of file ObjWidget.h.

◆ color_

QColor find_object::ObjWidget::color_
private

Definition at line 128 of file ObjWidget.h.

◆ delete_

QAction* find_object::ObjWidget::delete_
private

Definition at line 137 of file ObjWidget.h.

◆ graphicsView_

QGraphicsView* find_object::ObjWidget::graphicsView_
private

Definition at line 122 of file ObjWidget.h.

◆ graphicsViewInitialized_

bool find_object::ObjWidget::graphicsViewInitialized_
private

Definition at line 125 of file ObjWidget.h.

◆ graphicsViewMode_

QAction* find_object::ObjWidget::graphicsViewMode_
private

Definition at line 138 of file ObjWidget.h.

◆ id_

int find_object::ObjWidget::id_
private

Definition at line 116 of file ObjWidget.h.

◆ keypointItems_

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

Definition at line 121 of file ObjWidget.h.

◆ keypoints_

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

Definition at line 117 of file ObjWidget.h.

◆ kptColors_

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

Definition at line 123 of file ObjWidget.h.

◆ label_

QLabel* find_object::ObjWidget::label_
private

Definition at line 127 of file ObjWidget.h.

◆ menu_

QMenu* find_object::ObjWidget::menu_
private

Definition at line 132 of file ObjWidget.h.

◆ mirrorView_

QAction* find_object::ObjWidget::mirrorView_
private

Definition at line 136 of file ObjWidget.h.

◆ mouseCurrentPos_

QPoint find_object::ObjWidget::mouseCurrentPos_
private

Definition at line 146 of file ObjWidget.h.

◆ mousePressedPos_

QPoint find_object::ObjWidget::mousePressedPos_
private

Definition at line 145 of file ObjWidget.h.

◆ pixmap_

QPixmap find_object::ObjWidget::pixmap_
private

Definition at line 119 of file ObjWidget.h.

◆ rect_

QRect find_object::ObjWidget::rect_
private

Definition at line 120 of file ObjWidget.h.

◆ rectItems_

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

Definition at line 124 of file ObjWidget.h.

◆ savedFileName_

QString find_object::ObjWidget::savedFileName_
private

Definition at line 131 of file ObjWidget.h.

◆ saveImage_

QAction* find_object::ObjWidget::saveImage_
private

Definition at line 135 of file ObjWidget.h.

◆ setAlpha_

QAction* find_object::ObjWidget::setAlpha_
private

Definition at line 141 of file ObjWidget.h.

◆ setColor_

QAction* find_object::ObjWidget::setColor_
private

Definition at line 142 of file ObjWidget.h.

◆ showFeatures_

QAction* find_object::ObjWidget::showFeatures_
private

Definition at line 134 of file ObjWidget.h.

◆ showImage_

QAction* find_object::ObjWidget::showImage_
private

Definition at line 133 of file ObjWidget.h.

◆ sizedFeatures_

QAction* find_object::ObjWidget::sizedFeatures_
private

Definition at line 140 of file ObjWidget.h.

◆ words_

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 Dec 12 2022 03:20:10