30 #ifndef MAPVIZ_MAPVIZ_H_ 31 #define MAPVIZ_MAPVIZ_H_ 38 #include <boost/shared_ptr.hpp> 41 #include <QtGui/QtGui> 47 #include <QCloseEvent> 48 #include <QListWidgetItem> 49 #include <QModelIndex> 52 #include <QStringList> 53 #include <QMainWindow> 59 #include <yaml-cpp/yaml.h> 60 #include <std_srvs/Empty.h> 63 #include "ui_mapviz.h" 64 #include "ui_pluginselect.h" 67 #include <mapviz/AddMapvizDisplay.h> 81 Mapviz(
bool is_standalone,
int argc,
char** argv, QWidget *parent = 0, Qt::WindowFlags flags = 0);
120 void Hover(
double x,
double y,
double scale);
182 std::map<QListWidgetItem*, MapvizPluginPtr>
plugins_;
186 void Open(
const std::string& filename);
187 void Save(
const std::string& filename);
190 const std::string& name,
191 const std::string& type,
197 AddMapvizDisplay::Request& req,
198 AddMapvizDisplay::Response& resp);
203 virtual void showEvent(QShowEvent* event);
212 #endif // MAPVIZ_MAPVIZ_H_ VideoWriter * vid_writer_
void ToggleShowPlugin(QListWidgetItem *item, bool visible)
void FixedFrameSelected(const QString &text)
void FrameGrabbed(QImage)
void HandleProfileTimer()
QPushButton * stop_button_
void ToggleUseLatestTransforms(bool on)
QPushButton * recenter_button_
void ToggleRecord(bool on)
void ToggleCaptureTools(bool on)
void UpdateImageTransportMenu()
virtual void closeEvent(QCloseEvent *event)
pluginlib::ClassLoader< MapvizPlugin > * loader_
void ToggleEnableAntialiasing(bool on)
MapvizPluginPtr CreateNewDisplay(const std::string &name, const std::string &type, bool visible, bool collapsed, int draw_order=0)
virtual void showEvent(QShowEvent *event)
std::map< QListWidgetItem *, MapvizPluginPtr > plugins_
void ToggleRotate90(bool on)
swri_transform_util::TransformManagerPtr tf_manager_
ros::ServiceServer add_display_srv_
void ImageTransportChanged()
void SetResizable(bool on)
void Save(const std::string &filename)
void ToggleConfigPanel(bool on)
static const std::string IMAGE_TRANSPORT_PARAM
boost::shared_ptr< tf::TransformListener > tf_
void TargetFrameSelected(const QString &text)
std::string capture_directory_
void ToggleFixOrientation(bool on)
Mapviz(bool is_standalone, int argc, char **argv, QWidget *parent=0, Qt::WindowFlags flags=0)
QLabel * lat_lon_pos_label_
void SelectBackgroundColor(const QColor &color)
void Open(const std::string &filename)
static const QString MAPVIZ_CONFIG_FILE
static const QString ROS_WORKSPACE_VAR
QPushButton * rec_button_
bool AddDisplay(AddMapvizDisplay::Request &req, AddMapvizDisplay::Response &resp)
void SetCaptureDirectory()
void Hover(double x, double y, double scale)
void SetImageTransport(QAction *transport_action)
QPushButton * screenshot_button_
std::string save_location_
void ToggleStatusBar(bool on)
QMenu * image_transport_menu_