18 #ifndef _COLLISION_CONFIG_HH_
19 #define _COLLISION_CONFIG_HH_
46 private slots:
void OnToggleItem(
bool _checked);
78 const msgs::Collision *_collisionMsg =
NULL);
85 ConstCollisionPtr _collisionMsg);
97 public: msgs::Collision *
GetData(
const std::string &_name)
const;
115 private slots:
void OnAddCollision();
119 private slots:
void OnRemoveCollision(
int _id);
122 private: std::map<int, CollisionConfigData *> configs;
125 private:
int counter;
128 private: QSignalMapper *signalMapper;
131 private: std::map<int, QTreeWidgetItem *> collisionItems;
134 private: QVBoxLayout *listLayout;
unsigned int GetCollisionCount() const
Get the number of collisions.
void UpdateCollision(const std::string &_name, ConstCollisionPtr _collisionMsg)
Update a collision widget from a collision msg.
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
void SetGeometry(const std::string &_name, const math::Vector3 &_size, const std::string &_uri="")
Set the geometry data of a collision.
void Reset()
Reset the collision tab.
msgs::Collision * GetData(const std::string &_name) const
Get the msg containing all collision data.
void CollisionRemoved(const std::string &_name)
Qt signal emitted when a collision is removed.
A class of widgets used for configuring collision properties.
Definition: CollisionConfig.hh:40
std::string name
Name of the collision.
Definition: CollisionConfig.hh:52
~CollisionConfig()
Destructor.
QWidget * widget
Widget associated with this data.
Definition: CollisionConfig.hh:58
CollisionConfig()
Constructor.
void AddCollision(const std::string &_name, const msgs::Collision *_collisionMsg=NULL)
Add a collision widget to the tab.
ConfigWidget * configWidget
Config widget for configuring collision properties.
Definition: CollisionConfig.hh:55
#define NULL
Definition: CommonTypes.hh:30
void CollisionAdded(const std::string &_name)
Qt signal emitted when a collision is added.
A tab for configuring collision properties of a link.
Definition: CollisionConfig.hh:63
int id
Unique ID of this collision config.
Definition: CollisionConfig.hh:49