#include <select_frame_dialog.h>
Public Member Functions | |
void | allowMultipleFrames (bool allow) |
std::string | selectedFrame () const |
std::vector< std::string > | selectedFrames () const |
SelectFrameDialog (boost::shared_ptr< tf::TransformListener > tf_listener, QWidget *parent=0) | |
Static Public Member Functions | |
static std::string | selectFrame (boost::shared_ptr< tf::TransformListener > tf_listener, QWidget *parent=0) |
static std::vector< std::string > | selectFrames (boost::shared_ptr< tf::TransformListener > tf_listener, QWidget *parent=0) |
Private Slots | |
void | fetchFrames () |
void | updateDisplayedFrames () |
Private Member Functions | |
void | closeEvent (QCloseEvent *) |
std::vector< std::string > | filterFrames (const std::vector< std::string > &) const |
void | timerEvent (QTimerEvent *) |
Private Attributes | |
QPushButton * | cancel_button_ |
std::vector< std::string > | displayed_frames_ |
int | fetch_frames_timer_id_ |
std::vector< std::string > | known_frames_ |
QListWidget * | list_widget_ |
QLineEdit * | name_filter_ |
QPushButton * | ok_button_ |
boost::shared_ptr < tf::TransformListener > | tf_ |
Provides a dialog for the user to select one or more TF frames. Several static functions are provided that can be used instead of instantiating the class directly.
Definition at line 56 of file select_frame_dialog.h.
mapviz::SelectFrameDialog::SelectFrameDialog | ( | boost::shared_ptr< tf::TransformListener > | tf_listener, |
QWidget * | parent = 0 |
||
) |
Constructor for the SelectFrameDialog.
Definition at line 72 of file select_frame_dialog.cpp.
void mapviz::SelectFrameDialog::allowMultipleFrames | ( | bool | allow | ) |
Choose whether the user can select one (allow=false) or multiple (allow=true) frames. The default is false.
Definition at line 129 of file select_frame_dialog.cpp.
void mapviz::SelectFrameDialog::closeEvent | ( | QCloseEvent * | event | ) | [private] |
Definition at line 122 of file select_frame_dialog.cpp.
void mapviz::SelectFrameDialog::fetchFrames | ( | ) | [private, slot] |
Definition at line 171 of file select_frame_dialog.cpp.
std::vector< std::string > mapviz::SelectFrameDialog::filterFrames | ( | const std::vector< std::string > & | frames | ) | const [private] |
Definition at line 181 of file select_frame_dialog.cpp.
std::string mapviz::SelectFrameDialog::selectedFrame | ( | ) | const |
Returns the currently selected frame. If multiple frames are allowed, this will only return the first selected element. If there is no selection, the returned info will have an empty frame name and datatype.
Definition at line 139 of file select_frame_dialog.cpp.
std::vector< std::string > mapviz::SelectFrameDialog::selectedFrames | ( | ) | const |
Returns the currently selected frames. If there is no selection, the returned vector will be empty.
Definition at line 149 of file select_frame_dialog.cpp.
std::string mapviz::SelectFrameDialog::selectFrame | ( | boost::shared_ptr< tf::TransformListener > | tf_listener, |
QWidget * | parent = 0 |
||
) | [static] |
Present the user with a dialog to select a single frame.
If the user cancels the selection or doesn't make a valid selection, the returned string be empty.
Definition at line 46 of file select_frame_dialog.cpp.
std::vector< std::string > mapviz::SelectFrameDialog::selectFrames | ( | boost::shared_ptr< tf::TransformListener > | tf_listener, |
QWidget * | parent = 0 |
||
) | [static] |
Present the user with a dialog to select a multiple TF frames.
If the user cancels the selection or doesn't make a valid selection, the returned vector will be empty.
Definition at line 59 of file select_frame_dialog.cpp.
void mapviz::SelectFrameDialog::timerEvent | ( | QTimerEvent * | event | ) | [private] |
Definition at line 115 of file select_frame_dialog.cpp.
void mapviz::SelectFrameDialog::updateDisplayedFrames | ( | ) | [private, slot] |
Definition at line 200 of file select_frame_dialog.cpp.
QPushButton* mapviz::SelectFrameDialog::cancel_button_ [private] |
Definition at line 124 of file select_frame_dialog.h.
std::vector<std::string> mapviz::SelectFrameDialog::displayed_frames_ [private] |
Definition at line 120 of file select_frame_dialog.h.
int mapviz::SelectFrameDialog::fetch_frames_timer_id_ [private] |
Definition at line 121 of file select_frame_dialog.h.
std::vector<std::string> mapviz::SelectFrameDialog::known_frames_ [private] |
Definition at line 119 of file select_frame_dialog.h.
QListWidget* mapviz::SelectFrameDialog::list_widget_ [private] |
Definition at line 125 of file select_frame_dialog.h.
QLineEdit* mapviz::SelectFrameDialog::name_filter_ [private] |
Definition at line 126 of file select_frame_dialog.h.
QPushButton* mapviz::SelectFrameDialog::ok_button_ [private] |
Definition at line 123 of file select_frame_dialog.h.
boost::shared_ptr<tf::TransformListener> mapviz::SelectFrameDialog::tf_ [private] |
Definition at line 118 of file select_frame_dialog.h.