Signals | Public Member Functions | List of all members
gazebo::gui::ConfigWidget Class Reference

A widget generated from a google protobuf message. More...

#include <ConfigWidget.hh>

Inheritance diagram for gazebo::gui::ConfigWidget:
Inheritance graph
[legend]

Signals

void EnumValueChanged (const QString &_name, const QString &_value)
 Signal that an enum config widget's enum value has changed. More...
 

Public Member Functions

 ConfigWidget ()
 Constructor. More...
 
 ~ConfigWidget ()
 Destructor. More...
 
bool GetBoolWidgetValue (const std::string &_name) const
 Get a bool value from a child widget. More...
 
common::Color GetColorWidgetValue (const std::string &_name) const
 Get a color value from a child widget. More...
 
double GetDoubleWidgetValue (const std::string &_name) const
 Get a double value from a child widget. More...
 
std::string GetEnumWidgetValue (const std::string &_name) const
 Get an enum value from a child widget. More...
 
std::string GetGeometryWidgetValue (const std::string &_name, math::Vector3 &_dimensions, std::string &_uri) const
 Get a geometry value from a child widget. More...
 
std::string GetHumanReadableKey (const std::string &_key)
 Create a human readable key, capitalizing the first letter and removing characters like "_". More...
 
int GetIntWidgetValue (const std::string &_name) const
 Get an integer value from a child widget. More...
 
google::protobuf::Message * GetMsg ()
 Get the updated message. More...
 
math::Pose GetPoseWidgetValue (const std::string &_name) const
 Get a pose value from a child widget. More...
 
void GetRangeFromKey (const std::string &_key, double &_min, double &_max)
 Returns the range for a given key. For example, the key. More...
 
std::string GetStringWidgetValue (const std::string &_name) const
 Get a string value from a child widget. More...
 
unsigned int GetUIntWidgetValue (const std::string &_name) const
 Get an unsigned integer value from a child widget. More...
 
std::string GetUnitFromKey (const std::string &_key, const std::string &_jointType="")
 Returns the unit for a given key. More...
 
math::Vector3 GetVector3WidgetValue (const std::string &_name) const
 Get a vector3 value from a child widget. More...
 
bool GetWidgetReadOnly (const std::string &_name) const
 Get whether a child widget is read-only. More...
 
bool GetWidgetVisible (const std::string &_name) const
 Get whether a child widget is visible. More...
 
void Load (const google::protobuf::Message *_msg)
 Load from a google protobuf message. More...
 
bool SetBoolWidgetValue (const std::string &_name, bool _value)
 Set a bool value to a child widget. More...
 
bool SetColorWidgetValue (const std::string &_name, const common::Color &_value)
 Set a color value to a child widget. More...
 
bool SetDoubleWidgetValue (const std::string &_name, double _value)
 Set a double value to a child widget. More...
 
bool SetEnumWidgetValue (const std::string &_name, const std::string &_value)
 Set an enum value to a child widget. More...
 
bool SetGeometryWidgetValue (const std::string &_name, const std::string &_value, const math::Vector3 &_dimensions, const std::string &_uri="")
 Set a geometry value to a child widget. More...
 
bool SetIntWidgetValue (const std::string &_name, int _value)
 Set an integer value to a child widget. More...
 
bool SetPoseWidgetValue (const std::string &_name, const math::Pose &_value)
 Set a pose value to a child widget. More...
 
bool SetStringWidgetValue (const std::string &_name, const std::string &_value)
 Set a string value to a child widget. More...
 
bool SetUIntWidgetValue (const std::string &_name, unsigned int _value)
 Set an unsigned integer value to a child widget. More...
 
bool SetVector3WidgetValue (const std::string &_name, const math::Vector3 &_value)
 Set a vector3 value to a child widget. More...
 
void SetWidgetReadOnly (const std::string &_name, bool _readOnly)
 Set whether a child widget should be read-only. More...
 
void SetWidgetVisible (const std::string &_name, bool _visible)
 Set whether a child widget should be visible. More...
 
void UpdateFromMsg (const google::protobuf::Message *_msg)
 Update the widgets from a message. More...
 

Detailed Description

A widget generated from a google protobuf message.


The documentation for this class was generated from the following file: