17 #ifndef _GAZEBO_GUI_MODELLISTWIDGET_HH_
18 #define _GAZEBO_GUI_MODELLISTWIDGET_HH_
22 #include <QItemDelegate>
32 class QTreeWidgetItem;
38 class ModelListWidgetPrivate;
46 private slots:
void OnModelSelection(QTreeWidgetItem *item,
int column);
47 private slots:
void Update();
48 private slots:
void OnPropertyChanged(
QtProperty *_item);
49 private slots:
void OnCustomContextMenu(
const QPoint &_pt);
50 private slots:
void OnCurrentPropertyChanged(
QtBrowserItem *_item);
51 private:
void OnSetSelectedEntity(
const std::string &_name,
52 const std::string &_mode);
53 private:
void OnResponse(ConstResponsePtr &_msg);
55 private:
void OnModelUpdate(
const msgs::Model &_msg);
59 private:
void OnLightUpdate(
const msgs::Light &_msg);
61 private:
void OnRequest(ConstRequestPtr &_msg);
63 private:
void OnRemoveScene(
const std::string &_name);
64 private:
void OnCreateScene(
const std::string &_name);
66 private:
void AddModelToList(
const msgs::Model &_msg);
69 google::protobuf::Message *_message,
70 const google::protobuf::Reflection *_reflection,
71 const google::protobuf::FieldDescriptor *_field);
74 google::protobuf::Message *_message,
75 const google::protobuf::Descriptor *_descriptor,
78 private:
void FillGeometryMsg(
QtProperty *_item,
79 google::protobuf::Message *_message,
80 const google::protobuf::Descriptor *_descriptor,
84 google::protobuf::Message *_message,
85 const google::protobuf::Descriptor *_descriptor);
87 private:
void FillColorMsg(
QtProperty *_item, msgs::Color *_msg);
89 private:
void FillVector3Msg(
QtProperty *_item, msgs::Vector3d *_msg);
91 private:
QtProperty *PopChildItem(QList<QtProperty*> &_list,
92 const std::string &_name);
94 private:
QtProperty *ParentItemValue(
const std::string &_name);
96 const std::string &_name);
98 private:
QtProperty *ParentItem(
const std::string &_name);
100 const std::string &_name);
102 private:
QtProperty *ChildItemValue(
const std::string &_name);
104 const std::string &_name);
106 private:
QtProperty *ChildItem(
const std::string &_name);
108 const std::string &_name);
112 private:
void RemoveEntity(
const std::string &_name);
114 private: QTreeWidgetItem *ListItem(
const std::string &_name,
115 QTreeWidgetItem *_parent);
117 private:
void FillPropertyTree(
const msgs::Model &_msg,
120 private:
void FillPropertyTree(
const msgs::Link &_msg,
123 private:
void FillPropertyTree(
const msgs::Collision &_msg,
126 private:
void FillPropertyTree(
const msgs::Joint &_msg,
129 private:
void FillPropertyTree(
const msgs::Surface &_msg,
132 private:
void FillPropertyTree(
const msgs::Visual &_msg,
135 private:
void FillPropertyTree(
const msgs::Geometry &_msg,
138 private:
void FillPropertyTree(
const msgs::Scene &_msg,
141 private:
void FillPropertyTree(
const msgs::Physics &_msg,
144 private:
void FillPropertyTree(
const msgs::Light &_msg,
147 private:
void FillVector3dProperty(
const msgs::Vector3d &_msg,
150 private:
void FillPoseProperty(
const msgs::Pose &_msg,
157 private:
void FillPropertyTree(
const msgs::SphericalCoordinates &_msg,
165 private:
void ProcessModelMsgs();
166 private:
void ProcessLightMsgs();
167 private:
void ProcessRemoveEntity();
169 public:
void InitTransport(
const std::string &_name =
"");
170 private:
void ResetTree();
171 private:
void ResetScene();
175 private:
void ModelPropertyChanged(
QtProperty *_item);
179 private:
void ScenePropertyChanged(
QtProperty *_item);
181 private:
void LightPropertyChanged(
QtProperty *_item);
185 private:
void PhysicsPropertyChanged(
QtProperty *_item);
189 private:
void GUIPropertyChanged(
QtProperty *_item);
193 private: std::unique_ptr<ModelListWidgetPrivate> dataPtr;
Definition: qtpropertybrowser.h:311
#define GZ_GUI_VISIBLE
Definition: system.hh:284
Definition: qtpropertybrowser.h:77