#include <image_cropper.h>
Public Member Functions | |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
ImageCropper () | |
virtual void | initPlugin (qt_gui_cpp::PluginContext &context) |
virtual void | restoreSettings (const qt_gui_cpp::Settings &plugin_settings, const qt_gui_cpp::Settings &instance_settings) |
virtual void | saveSettings (qt_gui_cpp::Settings &plugin_settings, qt_gui_cpp::Settings &instance_settings) const |
virtual void | shutdownPlugin () |
Protected Slots | |
virtual void | onDynamicRange (bool checked) |
virtual void | onInTopicChanged (int index) |
virtual void | onOutTopicChanged () |
virtual void | onRemoveSelection () |
virtual void | onSelectionFinished (QPoint p1, QPoint p2) |
virtual void | onSelectionInProgress (QPoint p1, QPoint p2) |
virtual void | updateTopicList () |
Protected Member Functions | |
virtual void | callbackImage (const sensor_msgs::Image::ConstPtr &msg, const sensor_msgs::CameraInfoConstPtr &ci) |
virtual void | enforceSelectionConstraints (QPoint &p) |
virtual QList< QString > | getTopicList (const QSet< QString > &message_types, const QList< QString > &transports) |
virtual void | publishCrop () |
virtual void | selectTopic (const QString &topic) |
Protected Attributes | |
sensor_msgs::CameraInfoConstPtr | camera_info_ |
cv::Mat | conversion_mat_ |
double | image_max_value_ |
double | image_min_value_ |
image_transport::CameraPublisher | publisher_ |
QImage | qimage_ |
QMutex | qimage_mutex_ |
bool | selected_ |
QImage | selected_region_ |
QRectF | selection_ |
QSizeF | selection_size_ |
QSizeF | selection_size_rect_ |
QPointF | selection_top_left_ |
QPointF | selection_top_left_rect_ |
sensor_msgs::Image::ConstPtr | sens_msg_image_ |
image_transport::CameraSubscriber | subscriber_ |
Ui::ImageCropperWidget | ui_ |
QWidget * | widget_ |
Definition at line 56 of file image_cropper.h.
Definition at line 50 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::callbackImage | ( | const sensor_msgs::Image::ConstPtr & | msg, |
const sensor_msgs::CameraInfoConstPtr & | ci | ||
) | [protected, virtual] |
Definition at line 378 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::enforceSelectionConstraints | ( | QPoint & | p | ) | [protected, virtual] |
Definition at line 361 of file image_cropper.cpp.
bool rqt_image_cropping::ImageCropper::eventFilter | ( | QObject * | watched, |
QEvent * | event | ||
) | [virtual] |
Definition at line 90 of file image_cropper.cpp.
QList< QString > rqt_image_cropping::ImageCropper::getTopicList | ( | const QSet< QString > & | message_types, |
const QList< QString > & | transports | ||
) | [protected, virtual] |
Definition at line 198 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::initPlugin | ( | qt_gui_cpp::PluginContext & | context | ) | [virtual] |
Reimplemented from qt_gui_cpp::Plugin.
Definition at line 58 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::onDynamicRange | ( | bool | checked | ) | [protected, virtual, slot] |
Definition at line 373 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::onInTopicChanged | ( | int | index | ) | [protected, virtual, slot] |
Definition at line 245 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::onOutTopicChanged | ( | ) | [protected, virtual, slot] |
Definition at line 272 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::onRemoveSelection | ( | ) | [protected, virtual, slot] |
Definition at line 355 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::onSelectionFinished | ( | QPoint | p1, |
QPoint | p2 | ||
) | [protected, virtual, slot] |
Definition at line 308 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::onSelectionInProgress | ( | QPoint | p1, |
QPoint | p2 | ||
) | [protected, virtual, slot] |
Definition at line 292 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::publishCrop | ( | ) | [protected, virtual] |
Definition at line 444 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::restoreSettings | ( | const qt_gui_cpp::Settings & | plugin_settings, |
const qt_gui_cpp::Settings & | instance_settings | ||
) | [virtual] |
Reimplemented from qt_gui_cpp::Plugin.
Definition at line 144 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::saveSettings | ( | qt_gui_cpp::Settings & | plugin_settings, |
qt_gui_cpp::Settings & | instance_settings | ||
) | const [virtual] |
Reimplemented from qt_gui_cpp::Plugin.
Definition at line 135 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::selectTopic | ( | const QString & | topic | ) | [protected, virtual] |
Definition at line 235 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::shutdownPlugin | ( | ) | [virtual] |
Reimplemented from rqt_gui_cpp::Plugin.
Definition at line 129 of file image_cropper.cpp.
void rqt_image_cropping::ImageCropper::updateTopicList | ( | ) | [protected, virtual, slot] |
Definition at line 157 of file image_cropper.cpp.
sensor_msgs::CameraInfoConstPtr rqt_image_cropping::ImageCropper::camera_info_ [protected] |
Definition at line 118 of file image_cropper.h.
cv::Mat rqt_image_cropping::ImageCropper::conversion_mat_ [protected] |
Definition at line 127 of file image_cropper.h.
double rqt_image_cropping::ImageCropper::image_max_value_ [protected] |
Definition at line 121 of file image_cropper.h.
double rqt_image_cropping::ImageCropper::image_min_value_ [protected] |
Definition at line 120 of file image_cropper.h.
Definition at line 115 of file image_cropper.h.
QImage rqt_image_cropping::ImageCropper::qimage_ [protected] |
Definition at line 123 of file image_cropper.h.
QMutex rqt_image_cropping::ImageCropper::qimage_mutex_ [protected] |
Definition at line 125 of file image_cropper.h.
bool rqt_image_cropping::ImageCropper::selected_ [protected] |
Definition at line 136 of file image_cropper.h.
QImage rqt_image_cropping::ImageCropper::selected_region_ [protected] |
Definition at line 124 of file image_cropper.h.
QRectF rqt_image_cropping::ImageCropper::selection_ [protected] |
Definition at line 129 of file image_cropper.h.
QSizeF rqt_image_cropping::ImageCropper::selection_size_ [protected] |
Definition at line 133 of file image_cropper.h.
QSizeF rqt_image_cropping::ImageCropper::selection_size_rect_ [protected] |
Definition at line 134 of file image_cropper.h.
QPointF rqt_image_cropping::ImageCropper::selection_top_left_ [protected] |
Definition at line 131 of file image_cropper.h.
QPointF rqt_image_cropping::ImageCropper::selection_top_left_rect_ [protected] |
Definition at line 132 of file image_cropper.h.
sensor_msgs::Image::ConstPtr rqt_image_cropping::ImageCropper::sens_msg_image_ [protected] |
Definition at line 117 of file image_cropper.h.
Definition at line 114 of file image_cropper.h.
Ui::ImageCropperWidget rqt_image_cropping::ImageCropper::ui_ [protected] |
Definition at line 110 of file image_cropper.h.
QWidget* rqt_image_cropping::ImageCropper::widget_ [protected] |
Definition at line 112 of file image_cropper.h.