Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
mapviz::SelectFrameDialog Class Reference

#include <select_frame_dialog.h>

Inheritance diagram for mapviz::SelectFrameDialog:
Inheritance graph
[legend]

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::TransformListenertf_
 

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

◆ SelectFrameDialog()

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

◆ allowMultipleFrames()

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.

◆ closeEvent()

void mapviz::SelectFrameDialog::closeEvent ( QCloseEvent *  event)
private

Definition at line 122 of file select_frame_dialog.cpp.

◆ fetchFrames

void mapviz::SelectFrameDialog::fetchFrames ( )
privateslot

Definition at line 171 of file select_frame_dialog.cpp.

◆ filterFrames()

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.

◆ selectedFrame()

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.

◆ selectedFrames()

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.

◆ selectFrame()

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.

◆ selectFrames()

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.

◆ timerEvent()

void mapviz::SelectFrameDialog::timerEvent ( QTimerEvent *  event)
private

Definition at line 115 of file select_frame_dialog.cpp.

◆ updateDisplayedFrames

void mapviz::SelectFrameDialog::updateDisplayedFrames ( )
privateslot

Definition at line 200 of file select_frame_dialog.cpp.

Member Data Documentation

◆ cancel_button_

QPushButton* mapviz::SelectFrameDialog::cancel_button_
private

Definition at line 124 of file select_frame_dialog.h.

◆ displayed_frames_

std::vector<std::string> mapviz::SelectFrameDialog::displayed_frames_
private

Definition at line 120 of file select_frame_dialog.h.

◆ fetch_frames_timer_id_

int mapviz::SelectFrameDialog::fetch_frames_timer_id_
private

Definition at line 121 of file select_frame_dialog.h.

◆ known_frames_

std::vector<std::string> mapviz::SelectFrameDialog::known_frames_
private

Definition at line 119 of file select_frame_dialog.h.

◆ list_widget_

QListWidget* mapviz::SelectFrameDialog::list_widget_
private

Definition at line 125 of file select_frame_dialog.h.

◆ name_filter_

QLineEdit* mapviz::SelectFrameDialog::name_filter_
private

Definition at line 126 of file select_frame_dialog.h.

◆ ok_button_

QPushButton* mapviz::SelectFrameDialog::ok_button_
private

Definition at line 123 of file select_frame_dialog.h.

◆ tf_

boost::shared_ptr<tf::TransformListener> mapviz::SelectFrameDialog::tf_
private

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 Sun Sep 8 2024 02:27:09