17#ifndef GAZEBO_GUI_PLOT_PALETTE_HH_
18#define GAZEBO_GUI_PLOT_PALETTE_HH_
71 const QModelIndex &_srcParent)
const;
79 QModelIndex &_srcParent, QString _word)
const;
86 const QModelIndex &_srcParent)
const;
93 const QString &_word)
const;
104 class PalettePrivate;
120 private:
void FillTopics();
123 private:
void FillModels();
126 private:
void FillSim();
133 private:
void FillFromMsg(google::protobuf::Message *_msg,
134 QStandardItem *_item,
const std::string &_uri);
140 private:
void InsertPoseItem(QStandardItem *_item,
141 const common::URI &_uri,
const std::string &_query);
150 private:
void InsertVector3dItem(QStandardItem *_item,
151 const common::URI &_uri,
const std::string &_query);
157 private:
void InsertQuaterniondItem(QStandardItem *_item,
158 const common::URI &_uri,
const std::string &_query);
164 private:
void InsertAxisItem(QStandardItem *_item,
165 const common::URI &_uri,
const std::string &_query);
169 private slots:
void UpdateSearch(
const QString &_search);
175 private:
void ExpandChildren(QSortFilterProxyModel *_model,
176 QTreeView *_tree,
const QModelIndex &_srcParent)
const;
183 private:
void OnIntrospectionUpdate(
const std::set<std::string> &_items,
189 private:
void OnIntrospectionUpdate(
const gazebo::msgs::Param_V &_msg);
194 const std::set<std::string> &_items);
198 private slots:
void IntrospectionUpdateSlot(
199 const std::set<std::string> &_items);
203 private slots:
void ExpandTree(
const QModelIndex &_index);
207 private: std::unique_ptr<PalettePrivate> dataPtr;
common
Definition FuelModelDatabase.hh:37
gui
Definition KeyEventHandler.hh:29
A complete URI.
Definition URI.hh:177
A palette for the plot window, where plottable items can be dragged from.
Definition Palette.hh:109
Palette(QWidget *_parent)
Constructor.
void IntrospectionUpdateSignal(const std::set< std::string > &_items)
Signal to trigger IntrospectionUpdateSlot.
Customize the proxy model to display search results.
Definition Palette.hh:48
bool hasAcceptedChildren(const int _srcRow, const QModelIndex &_srcParent) const
Check if any of the children is fully accepted.
QString search
Full search string.
Definition Palette.hh:100
void SetSearch(const QString &_search)
Set a new search value.
bool filterAcceptsRowItself(const int _srcRow, const QModelIndex &_srcParent, QString _word) const
Check if row contains the word on itself.
bool hasChildAcceptsItself(const QModelIndex &_srcParent, const QString &_word) const
Check if any of the children accepts a specific word.
bool filterAcceptsRow(const int _srcRow, const QModelIndex &_srcParent) const
Customize so we accept rows where:
Forward declarations for the common classes.
Definition Animation.hh:27
Definition ConfigWidget.hh:34