18 #ifndef GZ_SIM_GUI_VISUALIZELIDAR_HH_
19 #define GZ_SIM_GUI_VISUALIZELIDAR_HH_
23 #include "gz/msgs/laserscan.pb.h"
25 #include "gz/gui/qt.h"
32 inline namespace GZ_SIM_VERSION_NAMESPACE
34 class VisualizeLidarPrivate;
73 public:
void LoadConfig(const tinyxml2::XMLElement *_pluginElem) override;
76 public:
bool eventFilter(QObject *_obj, QEvent *_event) override;
84 public:
void OnScan(const msgs::LaserScan &_msg);
91 public: Q_INVOKABLE
void UpdateType(
int _type);
95 public: Q_INVOKABLE
void UpdateSize(
int _size);
99 public: Q_INVOKABLE QStringList
TopicList() const;
104 public: Q_INVOKABLE
void SetTopicList(const QStringList &_topicList);
111 public: Q_INVOKABLE
void OnTopic(const QString &_topicName);
132 public: Q_INVOKABLE QString
MaxRange() const;
136 public: Q_INVOKABLE QString
MinRange() const;
140 private:
std::unique_ptr<VisualizeLidarPrivate> dataPtr;