18 #ifndef _VISUAL_CONFIG_HH_
19 #define _VISUAL_CONFIG_HH_
46 private slots:
void OnToggleItem(
bool _checked);
77 public:
void AddVisual(
const std::string &_name,
78 const msgs::Visual *_visualMsg =
NULL);
84 ConstVisualPtr _visualMsg);
96 public: msgs::Visual *
GetData(
const std::string &_name)
const;
113 const std::string &_materialName,
123 Q_SIGNALS:
void VisualAdded(
const std::string &_name);
126 private slots:
void OnAddVisual();
130 private slots:
void OnRemoveVisual(
int _id);
133 private: std::map<int, VisualConfigData *> configs;
136 private:
int counter;
139 private: QSignalMapper *signalMapper;
142 private: QVBoxLayout *listLayout;
msgs::Visual * GetData(const std::string &_name) const
Get the msg containing all visual data.
void VisualAdded(const std::string &_name)
Qt signal emitted when a visual is added.
int id
Unique ID of this visual config.
Definition: VisualConfig.hh:49
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:40
VisualConfig()
Constructor.
unsigned int GetVisualCount() const
Get the number of visuals.
A tab for configuring visual properties of a link.
Definition: VisualConfig.hh:63
std::string name
Name of the visual.
Definition: VisualConfig.hh:52
void SetMaterial(const std::string &_name, const std::string &_materialName, const common::Color &_ambient, const common::Color &_diffuse, const common::Color &_specular, const common::Color &_emissive)
Set the material of a visual.
ConfigWidget * configWidget
Config widget for configuring visual properties.
Definition: VisualConfig.hh:55
void VisualRemoved(const std::string &_name)
Qt signal emitted when a visual is removed.
void Reset()
Reset the visual tab.
QWidget * widget
Widget associated with this data.
Definition: VisualConfig.hh:58
~VisualConfig()
Destructor.
void AddVisual(const std::string &_name, const msgs::Visual *_visualMsg=NULL)
Add a visual widget to the tab.
#define NULL
Definition: CommonTypes.hh:30
Defines a color.
Definition: Color.hh:36
void UpdateVisual(const std::string &_name, ConstVisualPtr _visualMsg)
Update a visual widget from a visual msg.
void SetGeometry(const std::string &_name, const math::Vector3 &_size, const std::string &_uri="")
Set the geometry data of a visual.