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);
118 void Hover(
double x,
double y,
double scale);
178 std::map<QListWidgetItem*, MapvizPluginPtr>
plugins_;
182 void Open(
const std::string& filename);
183 void Save(
const std::string& filename);
186 const std::string& name,
187 const std::string& type,
193 AddMapvizDisplay::Request& req,
194 AddMapvizDisplay::Response& resp);
199 virtual void showEvent(QShowEvent* event);
208 #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)
TFSIMD_FORCE_INLINE const tfScalar & y() const
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)
ros::ServiceServer add_display_srv_
void ImageTransportChanged()
void SetResizable(bool on)
void Save(const std::string &filename)
void ToggleConfigPanel(bool on)
TFSIMD_FORCE_INLINE const tfScalar & x() const
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)
swri_transform_util::TransformManager tf_manager_
QPushButton * screenshot_button_
void ToggleStatusBar(bool on)
QMenu * image_transport_menu_