Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
mapviz::Mapviz Class Reference

#include <mapviz.h>

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

Public Slots

void AutoSave ()
 
void CaptureVideoFrame ()
 
void ClearConfig ()
 
void ClearHistory ()
 
void FixedFrameSelected (const QString &text)
 
void Force480p (bool on)
 
void Force720p (bool on)
 
void HandleProfileTimer ()
 
void Hover (double x, double y, double scale)
 
void OpenConfig ()
 
void Recenter ()
 
void RemoveDisplay ()
 
void RemoveDisplay (QListWidgetItem *item)
 
void ReorderDisplays ()
 
void SaveConfig ()
 
void SaveConfigAs ()
 
void Screenshot ()
 
void SelectBackgroundColor (const QColor &color)
 
void SelectNewDisplay ()
 
void SetCaptureDirectory ()
 
void SetImageTransport (QAction *transport_action)
 
void SetResizable (bool on)
 
void SpinOnce ()
 
void StopRecord ()
 
void TargetFrameSelected (const QString &text)
 
void ToggleCaptureTools (bool on)
 
void ToggleConfigPanel (bool on)
 
void ToggleEnableAntialiasing (bool on)
 
void ToggleFixOrientation (bool on)
 
void ToggleRecord (bool on)
 
void ToggleRotate90 (bool on)
 
void ToggleShowPlugin (QListWidgetItem *item, bool visible)
 
void ToggleStatusBar (bool on)
 
void ToggleUseLatestTransforms (bool on)
 
void UpdateFrames ()
 
void UpdateImageTransportMenu ()
 
void UpdateSizeHints ()
 

Signals

void FrameGrabbed (QImage)
 
void ImageTransportChanged ()
 

Public Member Functions

void Initialize ()
 
 Mapviz (bool is_standalone, int argc, char **argv, QWidget *parent=0, Qt::WindowFlags flags=0)
 
 ~Mapviz ()
 

Protected Member Functions

bool AddDisplay (AddMapvizDisplay::Request &req, AddMapvizDisplay::Response &resp)
 
void AdjustWindowSize ()
 
void ClearDisplays ()
 
virtual void closeEvent (QCloseEvent *event)
 
MapvizPluginPtr CreateNewDisplay (const std::string &name, const std::string &type, bool visible, bool collapsed, int draw_order=0)
 
void Open (const std::string &filename)
 
void Save (const std::string &filename)
 
virtual void showEvent (QShowEvent *event)
 

Protected Attributes

ros::ServiceServer add_display_srv_
 
int argc_
 
char ** argv_
 
QColor background_
 
MapCanvascanvas_
 
std::string capture_directory_
 
bool force_480p_
 
bool force_720p_
 
QTimer frame_timer_
 
QMenu * image_transport_menu_
 
bool initialized_
 
bool is_standalone_
 
QLabel * lat_lon_pos_label_
 
pluginlib::ClassLoader< MapvizPlugin > * loader_
 
Stopwatch meas_spin_
 
ros::NodeHandlenode_
 
std::map< QListWidgetItem *, MapvizPluginPtrplugins_
 
QTimer profile_timer_
 
QPushButton * rec_button_
 
QPushButton * recenter_button_
 
QTimer record_timer_
 
bool resizable_
 
std::string save_location_
 
QTimer save_timer_
 
QPushButton * screenshot_button_
 
QWidget * spacer1_
 
QWidget * spacer2_
 
QWidget * spacer3_
 
QTimer spin_timer_
 
QPushButton * stop_button_
 
boost::shared_ptr< tf::TransformListenertf_
 
swri_transform_util::TransformManagerPtr tf_manager_
 
Ui::mapviz ui_
 
bool updating_frames_
 
VideoWritervid_writer_
 
QThread video_thread_
 
QLabel * xy_pos_label_
 

Static Protected Attributes

static const std::string IMAGE_TRANSPORT_PARAM = "image_transport"
 
static const QString MAPVIZ_CONFIG_FILE = "/.mapviz_config"
 
static const QString ROS_WORKSPACE_VAR = "ROS_WORKSPACE"
 

Detailed Description

Definition at line 76 of file mapviz.h.

Constructor & Destructor Documentation

◆ Mapviz()

mapviz::Mapviz::Mapviz ( bool  is_standalone,
int  argc,
char **  argv,
QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)

Definition at line 87 of file mapviz.cpp.

◆ ~Mapviz()

mapviz::Mapviz::~Mapviz ( )

Definition at line 206 of file mapviz.cpp.

Member Function Documentation

◆ AddDisplay()

bool mapviz::Mapviz::AddDisplay ( AddMapvizDisplay::Request &  req,
AddMapvizDisplay::Response &  resp 
)
protected

Definition at line 989 of file mapviz.cpp.

◆ AdjustWindowSize()

void mapviz::Mapviz::AdjustWindowSize ( )
protected

Definition at line 479 of file mapviz.cpp.

◆ AutoSave

void mapviz::Mapviz::AutoSave ( )
slot

Definition at line 841 of file mapviz.cpp.

◆ CaptureVideoFrame

void mapviz::Mapviz::CaptureVideoFrame ( )
slot

Definition at line 1397 of file mapviz.cpp.

◆ ClearConfig

void mapviz::Mapviz::ClearConfig ( )
slot

Definition at line 892 of file mapviz.cpp.

◆ ClearDisplays()

void mapviz::Mapviz::ClearDisplays ( )
protected

Definition at line 1502 of file mapviz.cpp.

◆ ClearHistory

void mapviz::Mapviz::ClearHistory ( )
slot

Definition at line 941 of file mapviz.cpp.

◆ closeEvent()

void mapviz::Mapviz::closeEvent ( QCloseEvent *  event)
protectedvirtual

Definition at line 218 of file mapviz.cpp.

◆ CreateNewDisplay()

MapvizPluginPtr mapviz::Mapviz::CreateNewDisplay ( const std::string &  name,
const std::string &  type,
bool  visible,
bool  collapsed,
int  draw_order = 0 
)
protected

Definition at line 1137 of file mapviz.cpp.

◆ FixedFrameSelected

void mapviz::Mapviz::FixedFrameSelected ( const QString &  text)
slot

Definition at line 1244 of file mapviz.cpp.

◆ Force480p

void mapviz::Mapviz::Force480p ( bool  on)
slot

Definition at line 447 of file mapviz.cpp.

◆ Force720p

void mapviz::Mapviz::Force720p ( bool  on)
slot

Definition at line 431 of file mapviz.cpp.

◆ FrameGrabbed

void mapviz::Mapviz::FrameGrabbed ( QImage  )
signal

Emitted every time a frame is grabbed when Mapviz is in video recording mode, typically at a rate of 30 FPS. Note that the QImage emitted says its format is ARGB, but its pixel order is actually BGRA.

◆ HandleProfileTimer

void mapviz::Mapviz::HandleProfileTimer ( )
slot

Definition at line 1546 of file mapviz.cpp.

◆ Hover

void mapviz::Mapviz::Hover ( double  x,
double  y,
double  scale 
)
slot

Definition at line 1058 of file mapviz.cpp.

◆ ImageTransportChanged

void mapviz::Mapviz::ImageTransportChanged ( )
signal

◆ Initialize()

void mapviz::Mapviz::Initialize ( )

Definition at line 231 of file mapviz.cpp.

◆ Open()

void mapviz::Mapviz::Open ( const std::string &  filename)
protected

Definition at line 524 of file mapviz.cpp.

◆ OpenConfig

void mapviz::Mapviz::OpenConfig ( )
slot

Definition at line 875 of file mapviz.cpp.

◆ Recenter

void mapviz::Mapviz::Recenter ( )
slot

Definition at line 1416 of file mapviz.cpp.

◆ RemoveDisplay [1/2]

void mapviz::Mapviz::RemoveDisplay ( )
slot

Definition at line 1483 of file mapviz.cpp.

◆ RemoveDisplay [2/2]

void mapviz::Mapviz::RemoveDisplay ( QListWidgetItem *  item)
slot

Definition at line 1489 of file mapviz.cpp.

◆ ReorderDisplays

void mapviz::Mapviz::ReorderDisplays ( )
slot

Definition at line 1517 of file mapviz.cpp.

◆ Save()

void mapviz::Mapviz::Save ( const std::string &  filename)
protected

Definition at line 764 of file mapviz.cpp.

◆ SaveConfig

void mapviz::Mapviz::SaveConfig ( )
slot

Definition at line 897 of file mapviz.cpp.

◆ SaveConfigAs

void mapviz::Mapviz::SaveConfigAs ( )
slot

Definition at line 908 of file mapviz.cpp.

◆ Screenshot

void mapviz::Mapviz::Screenshot ( )
slot

Definition at line 1439 of file mapviz.cpp.

◆ SelectBackgroundColor

void mapviz::Mapviz::SelectBackgroundColor ( const QColor &  color)
slot

Definition at line 1527 of file mapviz.cpp.

◆ SelectNewDisplay

void mapviz::Mapviz::SelectNewDisplay ( )
slot

Definition at line 950 of file mapviz.cpp.

◆ SetCaptureDirectory

void mapviz::Mapviz::SetCaptureDirectory ( )
slot

Definition at line 1533 of file mapviz.cpp.

◆ SetImageTransport

void mapviz::Mapviz::SetImageTransport ( QAction *  transport_action)
slot

Definition at line 1369 of file mapviz.cpp.

◆ SetResizable

void mapviz::Mapviz::SetResizable ( bool  on)
slot

Definition at line 463 of file mapviz.cpp.

◆ showEvent()

void mapviz::Mapviz::showEvent ( QShowEvent *  event)
protectedvirtual

Definition at line 213 of file mapviz.cpp.

◆ SpinOnce

void mapviz::Mapviz::SpinOnce ( )
slot

Definition at line 339 of file mapviz.cpp.

◆ StopRecord

void mapviz::Mapviz::StopRecord ( )
slot

Definition at line 1421 of file mapviz.cpp.

◆ TargetFrameSelected

void mapviz::Mapviz::TargetFrameSelected ( const QString &  text)
slot

Definition at line 1256 of file mapviz.cpp.

◆ ToggleCaptureTools

void mapviz::Mapviz::ToggleCaptureTools ( bool  on)
slot

Definition at line 1310 of file mapviz.cpp.

◆ ToggleConfigPanel

void mapviz::Mapviz::ToggleConfigPanel ( bool  on)
slot

Definition at line 1289 of file mapviz.cpp.

◆ ToggleEnableAntialiasing

void mapviz::Mapviz::ToggleEnableAntialiasing ( bool  on)
slot

Definition at line 1284 of file mapviz.cpp.

◆ ToggleFixOrientation

void mapviz::Mapviz::ToggleFixOrientation ( bool  on)
slot

Definition at line 1274 of file mapviz.cpp.

◆ ToggleRecord

void mapviz::Mapviz::ToggleRecord ( bool  on)
slot

Definition at line 1325 of file mapviz.cpp.

◆ ToggleRotate90

void mapviz::Mapviz::ToggleRotate90 ( bool  on)
slot

Definition at line 1279 of file mapviz.cpp.

◆ ToggleShowPlugin

void mapviz::Mapviz::ToggleShowPlugin ( QListWidgetItem *  item,
bool  visible 
)
slot

Definition at line 1233 of file mapviz.cpp.

◆ ToggleStatusBar

void mapviz::Mapviz::ToggleStatusBar ( bool  on)
slot

Definition at line 1303 of file mapviz.cpp.

◆ ToggleUseLatestTransforms

void mapviz::Mapviz::ToggleUseLatestTransforms ( bool  on)
slot

Definition at line 1269 of file mapviz.cpp.

◆ UpdateFrames

void mapviz::Mapviz::UpdateFrames ( )
slot

Definition at line 353 of file mapviz.cpp.

◆ UpdateImageTransportMenu

void mapviz::Mapviz::UpdateImageTransportMenu ( )
slot

Definition at line 1378 of file mapviz.cpp.

◆ UpdateSizeHints

void mapviz::Mapviz::UpdateSizeHints ( )
slot

Definition at line 1468 of file mapviz.cpp.

Member Data Documentation

◆ add_display_srv_

ros::ServiceServer mapviz::Mapviz::add_display_srv_
protected

Definition at line 176 of file mapviz.h.

◆ argc_

int mapviz::Mapviz::argc_
protected

Definition at line 157 of file mapviz.h.

◆ argv_

char** mapviz::Mapviz::argv_
protected

Definition at line 158 of file mapviz.h.

◆ background_

QColor mapviz::Mapviz::background_
protected

Definition at line 165 of file mapviz.h.

◆ canvas_

MapCanvas* mapviz::Mapviz::canvas_
protected

Definition at line 181 of file mapviz.h.

◆ capture_directory_

std::string mapviz::Mapviz::capture_directory_
protected

Definition at line 169 of file mapviz.h.

◆ force_480p_

bool mapviz::Mapviz::force_480p_
protected

Definition at line 163 of file mapviz.h.

◆ force_720p_

bool mapviz::Mapviz::force_720p_
protected

Definition at line 162 of file mapviz.h.

◆ frame_timer_

QTimer mapviz::Mapviz::frame_timer_
protected

Definition at line 140 of file mapviz.h.

◆ image_transport_menu_

QMenu* mapviz::Mapviz::image_transport_menu_
protected

Definition at line 138 of file mapviz.h.

◆ IMAGE_TRANSPORT_PARAM

const std::string mapviz::Mapviz::IMAGE_TRANSPORT_PARAM = "image_transport"
staticprotected

Definition at line 208 of file mapviz.h.

◆ initialized_

bool mapviz::Mapviz::initialized_
protected

Definition at line 161 of file mapviz.h.

◆ is_standalone_

bool mapviz::Mapviz::is_standalone_
protected

Definition at line 160 of file mapviz.h.

◆ lat_lon_pos_label_

QLabel* mapviz::Mapviz::lat_lon_pos_label_
protected

Definition at line 147 of file mapviz.h.

◆ loader_

pluginlib::ClassLoader<MapvizPlugin>* mapviz::Mapviz::loader_
protected

Definition at line 180 of file mapviz.h.

◆ MAPVIZ_CONFIG_FILE

const QString mapviz::Mapviz::MAPVIZ_CONFIG_FILE = "/.mapviz_config"
staticprotected

Definition at line 207 of file mapviz.h.

◆ meas_spin_

Stopwatch mapviz::Mapviz::meas_spin_
protected

Definition at line 184 of file mapviz.h.

◆ node_

ros::NodeHandle* mapviz::Mapviz::node_
protected

Definition at line 175 of file mapviz.h.

◆ plugins_

std::map<QListWidgetItem*, MapvizPluginPtr> mapviz::Mapviz::plugins_
protected

Definition at line 182 of file mapviz.h.

◆ profile_timer_

QTimer mapviz::Mapviz::profile_timer_
protected

Definition at line 144 of file mapviz.h.

◆ rec_button_

QPushButton* mapviz::Mapviz::rec_button_
protected

Definition at line 153 of file mapviz.h.

◆ recenter_button_

QPushButton* mapviz::Mapviz::recenter_button_
protected

Definition at line 152 of file mapviz.h.

◆ record_timer_

QTimer mapviz::Mapviz::record_timer_
protected

Definition at line 143 of file mapviz.h.

◆ resizable_

bool mapviz::Mapviz::resizable_
protected

Definition at line 164 of file mapviz.h.

◆ ROS_WORKSPACE_VAR

const QString mapviz::Mapviz::ROS_WORKSPACE_VAR = "ROS_WORKSPACE"
staticprotected

Definition at line 206 of file mapviz.h.

◆ save_location_

std::string mapviz::Mapviz::save_location_
protected

Definition at line 167 of file mapviz.h.

◆ save_timer_

QTimer mapviz::Mapviz::save_timer_
protected

Definition at line 142 of file mapviz.h.

◆ screenshot_button_

QPushButton* mapviz::Mapviz::screenshot_button_
protected

Definition at line 155 of file mapviz.h.

◆ spacer1_

QWidget* mapviz::Mapviz::spacer1_
protected

Definition at line 149 of file mapviz.h.

◆ spacer2_

QWidget* mapviz::Mapviz::spacer2_
protected

Definition at line 150 of file mapviz.h.

◆ spacer3_

QWidget* mapviz::Mapviz::spacer3_
protected

Definition at line 151 of file mapviz.h.

◆ spin_timer_

QTimer mapviz::Mapviz::spin_timer_
protected

Definition at line 141 of file mapviz.h.

◆ stop_button_

QPushButton* mapviz::Mapviz::stop_button_
protected

Definition at line 154 of file mapviz.h.

◆ tf_

boost::shared_ptr<tf::TransformListener> mapviz::Mapviz::tf_
protected

Definition at line 177 of file mapviz.h.

◆ tf_manager_

swri_transform_util::TransformManagerPtr mapviz::Mapviz::tf_manager_
protected

Definition at line 178 of file mapviz.h.

◆ ui_

Ui::mapviz mapviz::Mapviz::ui_
protected

Definition at line 136 of file mapviz.h.

◆ updating_frames_

bool mapviz::Mapviz::updating_frames_
protected

Definition at line 173 of file mapviz.h.

◆ vid_writer_

VideoWriter* mapviz::Mapviz::vid_writer_
protected

Definition at line 171 of file mapviz.h.

◆ video_thread_

QThread mapviz::Mapviz::video_thread_
protected

Definition at line 170 of file mapviz.h.

◆ xy_pos_label_

QLabel* mapviz::Mapviz::xy_pos_label_
protected

Definition at line 146 of file mapviz.h.


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


mapviz
Author(s): Marc Alban
autogenerated on Fri Dec 16 2022 03:59:30