30 #ifndef MAPVIZ_PLUGINS_MEASURING_PLUGIN_H_ 31 #define MAPVIZ_PLUGINS_MEASURING_PLUGIN_H_ 42 #include "ui_measuring_config.h" 58 void Paint(QPainter* painter,
double x,
double y,
double scale);
59 void Draw(
double x,
double y,
double scale);
62 void LoadConfig(
const YAML::Node& node,
const std::string& path);
63 void SaveConfig(YAML::Emitter& emitter,
const std::string& path);
70 void PrintInfo(
const std::string& message);
92 Ui::measuring_config
ui_;
119 #endif // MAPVIZ_PLUGINS_MEASURING_PLUGIN_H_ bool eventFilter(QObject *object, QEvent *event)
void MeasurementsToggled(bool)
bool Initialize(QGLWidget *canvas)
void PrintWarning(const std::string &message)
void Paint(QPainter *painter, double x, double y, double scale)
bool handleMouseRelease(QMouseEvent *)
void FontSizeChanged(int)
mapviz::MapCanvas * map_canvas_
TFSIMD_FORCE_INLINE const tfScalar & y() const
std::vector< double > measurements_
bool handleMousePress(QMouseEvent *)
QWidget * GetConfigWidget(QWidget *parent)
void BkgndColorToggled(bool)
void DistanceCalculation()
std::vector< tf::Vector3 > vertices_
tf::Vector3 last_position_
void AlphaChanged(double)
TFSIMD_FORCE_INLINE const tfScalar & x() const
void PrintError(const std::string &message)
virtual ~MeasuringPlugin()
bool handleMouseMove(QMouseEvent *)
void Draw(double x, double y, double scale)
void LoadConfig(const YAML::Node &node, const std::string &path)
std::vector< tf::Vector3 > transformed_vertices_
void PrintInfo(const std::string &message)
void SaveConfig(YAML::Emitter &emitter, const std::string &path)