31 #ifndef MAPVIZ_PLUGINS_FLOAT_PLUGIN_H 32 #define MAPVIZ_PLUGINS_FLOAT_PLUGIN_H 45 #include <QStaticText> 52 #include "ui_float_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);
152 #endif //MAPVIZ_PLUGINS_FLOAT_PLUGIN_H static const char * OFFSET_Y_KEY
static const char * FONT_KEY
void PrintWarning(const std::string &message)
void SetUnits(QString units)
ros::Subscriber float_sub_
void SetOffsetY(int offset)
void SetAnchor(QString anchor)
void LoadConfig(const YAML::Node &node, const std::string &path)
static const char * OFFSET_X_KEY
std::string AnchorToString(Anchor anchor)
TFSIMD_FORCE_INLINE const tfScalar & y() const
void Paint(QPainter *painter, double x, double y, double scale)
static const char * UNITS_KEY
static const char * TOPIC_KEY
std::string UnitsToString(Units units)
static const char * POSTFIX_KEY
void Draw(double x, double y, double scale)
TFSIMD_FORCE_INLINE const tfScalar & x() const
void SetOffsetX(int offset)
static const char * COLOR_KEY
static const char * ANCHOR_KEY
void PaintText(QPainter *painter)
void SaveConfig(YAML::Emitter &emitter, const std::string &path)
void floatCallback(const topic_tools::ShapeShifter::ConstPtr &msg)
bool Initialize(QGLWidget *canvas)
void PrintError(const std::string &message)
void PrintInfo(const std::string &message)
QWidget * GetConfigWidget(QWidget *parent)