18 #ifndef _GAZEBO_MODEL_EDITOR_PALETTE_HH_
19 #define _GAZEBO_MODEL_EDITOR_PALETTE_HH_
62 public:
void AddItem(QWidget *_item,
63 const std::string &_category =
"Other");
67 public:
void CreateJoint(
const std::string &_type);
81 private:
void OnSetSelectedEntity(
const std::string &_name,
82 const std::string &_mode);
88 private:
void OnSetSelectedLink(
const std::string &_name,
bool _selected);
94 private:
void OnSetSelectedJoint(
const std::string &_name,
99 private:
void DeselectType(
const std::string &_type);
102 private slots:
void OnCylinder();
105 private slots:
void OnSphere();
108 private slots:
void OnBox();
111 private slots:
void OnCustom();
114 private slots:
void OnLinkAdded();
117 private slots:
void OnStatic();
120 private slots:
void OnAutoDisable();
124 private slots:
void OnNameChanged(
const QString &_name);
129 private slots:
void OnItemDoubleClicked(QTreeWidgetItem *_item,
135 private slots:
void OnItemClicked(QTreeWidgetItem *_item,
int _column);
138 private slots:
void OnItemSelectionChanged();
143 private slots:
void OnCustomContextMenu(
const QPoint &_pt);
147 private:
void OnLinkInserted(
const std::string &_linkName);
154 private:
void OnJointInserted(
const std::string &_jointId,
155 const std::string &_jointName,
const std::string &_parentName,
156 const std::string &_childName);
160 private:
void OnLinkRemoved(
const std::string &_linkId);
164 private:
void OnJointRemoved(
const std::string &_jointId);
167 private:
void ClearModelTree();
172 private:
void OnJointNameChanged(
const std::string &_jointId,
173 const std::string &_newJointName);
178 private:
void OnSaveModel(
const std::string &_saveName);
181 private:
void OnNewModel();
188 private:
void OnModelPropertiesChanged(
bool _static,
bool _autoDisable,
189 const math::Pose &_pose,
const std::string &_name);
192 private: std::vector<event::ConnectionPtr> connections;
195 private: QButtonGroup *linkButtonGroup;
201 private: QCheckBox *staticCheck;
205 private: QCheckBox *autoDisableCheck;
208 private: std::string modelDefaultName;
211 private: QLineEdit *modelNameEdit;
214 private: QTreeWidget *modelTreeWidget;
217 private: QTreeWidgetItem *linksItem;
220 private: QTreeWidgetItem *jointsItem;
223 private: std::recursive_mutex updateMutex;
226 private: QList<QTreeWidgetItem *> selected;
229 private: QVBoxLayout *otherItemsLayout;
232 private: std::map<std::string, QGridLayout *> categories;
Encapsulates a position and rotation in three space.
Definition: Pose.hh:37
A palette of model items which can be added to the editor.
Definition: ModelEditorPalette.hh:48
Generic description of a keyboard event.
Definition: KeyEvent.hh:32
Create and manage 3D visuals of a model with links and joints.
Definition: ModelCreator.hh:60
#define GZ_GUI_MODEL_VISIBLE
Definition: system.hh:418