31 #ifndef MAPVIZ_PLUGINS_STRING_PLUGIN_H 32 #define MAPVIZ_PLUGINS_STRING_PLUGIN_H 45 #include <QStaticText> 49 #include <std_msgs/String.h> 52 #include "ui_string_config.h" 84 void Draw(
double x,
double y,
double scale);
85 void Paint(QPainter* painter,
double x,
double y,
double scale);
89 void LoadConfig(
const YAML::Node& node,
const std::string& path);
90 void SaveConfig(YAML::Emitter& emitter,
const std::string& path);
102 void PrintInfo(
const std::string& message);
149 #endif //MAPVIZ_PLUGINS_STRING_PLUGIN_H
QWidget * GetConfigWidget(QWidget *parent)
void PrintInfo(const std::string &message)
void PrintError(const std::string &message)
static const char * COLOR_KEY
std::string AnchorToString(Anchor anchor)
bool Initialize(QGLWidget *canvas)
ros::Subscriber string_sub_
void SaveConfig(YAML::Emitter &emitter, const std::string &path)
TFSIMD_FORCE_INLINE const tfScalar & y() const
static const char * ANCHOR_KEY
static const char * TOPIC_KEY
void PaintText(QPainter *painter)
void SetOffsetY(int offset)
TFSIMD_FORCE_INLINE const tfScalar & x() const
void SetUnits(QString units)
void Paint(QPainter *painter, double x, double y, double scale)
static const char * FONT_KEY
static const char * UNITS_KEY
static const char * OFFSET_Y_KEY
void stringCallback(const std_msgs::StringConstPtr &str)
void Draw(double x, double y, double scale)
void LoadConfig(const YAML::Node &node, const std::string &path)
std::string UnitsToString(Units units)
static const char * OFFSET_X_KEY
void SetAnchor(QString anchor)
void PrintWarning(const std::string &message)
void SetOffsetX(int offset)