18 #ifndef _GAZEBO_VISUAL_CONFIG_HH_
19 #define _GAZEBO_VISUAL_CONFIG_HH_
47 private slots:
void OnToggleItem(
bool _checked);
82 public slots:
void RestoreOriginalData();
88 public:
void AddVisual(
const std::string &_name,
89 const msgs::Visual *_visualMsg =
NULL);
94 public:
void UpdateVisual(
const std::string &_name,
95 ConstVisualPtr _visualMsg);
102 public:
unsigned int GetVisualCount()
const;
107 public: msgs::Visual *GetData(
const std::string &_name)
const;
113 public:
void SetGeometry(
const std::string &_name,
120 public:
void Geometry(
const std::string &_name,
121 ignition::math::Vector3d &_size, std::string &_uri);
130 public:
void SetMaterial(
const std::string &_name,
131 const std::string &_materialName,
137 public:
const std::map<int, VisualConfigData *> &ConfigData()
const;
141 Q_SIGNALS:
void VisualRemoved(
const std::string &_name);
145 Q_SIGNALS:
void VisualAdded(
const std::string &_name);
148 Q_SIGNALS:
void Applied();
151 private slots:
void OnAddVisual();
155 private slots:
void OnRemoveVisual(
int _id);
161 private slots:
void OnPoseChanged(
const QString &_name,
162 const ignition::math::Pose3d &_value);
170 private slots:
void OnGeometryChanged(
const std::string &_name,
171 const std::string &_value,
172 const ignition::math::Vector3d &_dimensions,
173 const std::string &_uri);
179 private slots:
void OnColorChanged(
const QString &_name,
186 private slots:
void OnDoubleChanged(
const QString &_name,
187 const double _value);
193 private slots:
void OnStringChanged(
const QString &_name,
194 const std::string &_value);
197 private: std::map<int, VisualConfigData *> configs;
200 private:
int counter;
203 private: QSignalMapper *signalMapper;
206 private: QVBoxLayout *listLayout;
std::string name
Name of the visual.
Definition: VisualConfig.hh:53
int id
Unique ID of this visual config.
Definition: VisualConfig.hh:50
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
A class of widgets used for configuring visual properties.
Definition: VisualConfig.hh:38
ConfigWidget * configWidget
Config widget for configuring visual properties.
Definition: VisualConfig.hh:56
void RestoreOriginalData()
Restore the widget's data to how it was when first opened.
A tab for configuring visual properties of a link.
Definition: VisualConfig.hh:68
msgs::Visual originalDataMsg
Message containing the data which was in the widget when first open.
Definition: VisualConfig.hh:63
QWidget * widget
Widget associated with this data.
Definition: VisualConfig.hh:59
#define NULL
Definition: CommonTypes.hh:31
Defines a color.
Definition: Color.hh:36
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.