Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions | Private Attributes
mapviz::SelectFrameDialog Class Reference

#include <select_frame_dialog.h>

List of all members.

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_

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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.

Definition at line 200 of file select_frame_dialog.cpp.


Member Data Documentation

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.

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.

Definition at line 125 of file select_frame_dialog.h.

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.

Definition at line 118 of file select_frame_dialog.h.


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


mapviz
Author(s): Marc Alban
autogenerated on Thu Jun 6 2019 18:50:58