A tab for configuring visual properties of a link.  
 More...
#include <VisualConfig.hh>
Inherits QWidget.
 | 
| void  | Applied () | 
|   | Qt signal emitted to indicate that changes should be applied.  More...
  | 
|   | 
| void  | VisualAdded (const std::string &_name) | 
|   | Qt signal emitted when a visual is added.  More...
  | 
|   | 
| void  | VisualRemoved (const std::string &_name) | 
|   | Qt signal emitted when a visual is removed.  More...
  | 
|   | 
 | 
|   | VisualConfig () | 
|   | Constructor.  More...
  | 
|   | 
|   | ~VisualConfig () | 
|   | Destructor.  More...
  | 
|   | 
| void  | AddVisual (const std::string &_name, const msgs::Visual *_visualMsg=NULL) | 
|   | Add a visual widget to the tab.  More...
  | 
|   | 
| const std::map< int, VisualConfigData * > &  | ConfigData () const | 
|   | Get visual config data.  More...
  | 
|   | 
| void  | Geometry (const std::string &_name, ignition::math::Vector3d &_size, std::string &_uri) | 
|   | Get the geometry data of a visual.  More...
  | 
|   | 
| msgs::Visual *  | GetData (const std::string &_name) const | 
|   | Get the msg containing all visual data.  More...
  | 
|   | 
| unsigned int  | GetVisualCount () const | 
|   | Get the number of visuals.  More...
  | 
|   | 
| void  | Init () | 
|   | Initialize widget.  More...
  | 
|   | 
| void  | Reset () | 
|   | Reset the visual tab.  More...
  | 
|   | 
| void  | SetGeometry (const std::string &_name, const math::Vector3 &_size, const std::string &_uri="") | 
|   | Set the geometry data of a visual.  More...
  | 
|   | 
| 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.  More...
  | 
|   | 
| void  | UpdateVisual (const std::string &_name, ConstVisualPtr _visualMsg) | 
|   | Update a visual widget from a visual msg.  More...
  | 
|   | 
A tab for configuring visual properties of a link. 
 
§ VisualConfig()
§ ~VisualConfig()
§ AddVisual()
      
        
          | void AddVisual  | 
          ( | 
          const std::string &  | 
          _name,  | 
        
        
           | 
           | 
          const msgs::Visual *  | 
          _visualMsg = NULL  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Add a visual widget to the tab. 
- Parameters
 - 
  
    | [in] | _name | Name of visual added.  | 
    | [in] | _visualMsg | Msg containing information of the visual to be added.  | 
  
   
 
 
§ Applied
Qt signal emitted to indicate that changes should be applied. 
 
 
§ ConfigData()
Get visual config data. 
- Returns
 - Config data for the visuals 
 
 
 
§ Geometry()
      
        
          | void Geometry  | 
          ( | 
          const std::string &  | 
          _name,  | 
        
        
           | 
           | 
          ignition::math::Vector3d &  | 
          _size,  | 
        
        
           | 
           | 
          std::string &  | 
          _uri  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Get the geometry data of a visual. 
- Parameters
 - 
  
    | [in] | _name | Name of visual.  | 
    | [in] | _size | Size of the geometry.  | 
    | [in] | _uri | URI of the geometry.  | 
  
   
 
 
§ GetData()
      
        
          | msgs::Visual* GetData  | 
          ( | 
          const std::string &  | 
          _name | ) | 
           const | 
        
      
 
Get the msg containing all visual data. 
- Parameters
 - 
  
  
 
- Returns
 - Visual msg. 
 
 
 
§ GetVisualCount()
      
        
          | unsigned int GetVisualCount  | 
          ( | 
           | ) | 
           const | 
        
      
 
Get the number of visuals. 
- Returns
 - Number of visuals. 
 
 
 
§ Init()
§ Reset()
§ RestoreOriginalData
  
  
      
        
          | void RestoreOriginalData  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Restore the widget's data to how it was when first opened. 
 
 
§ SetGeometry()
      
        
          | void SetGeometry  | 
          ( | 
          const std::string &  | 
          _name,  | 
        
        
           | 
           | 
          const math::Vector3 &  | 
          _size,  | 
        
        
           | 
           | 
          const std::string &  | 
          _uri = ""  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Set the geometry data of a visual. 
- Parameters
 - 
  
    | [in] | _name | Name of visual.  | 
    | [in] | _size | Size of the geometry.  | 
    | [in] | _uri | URI of the geometry.  | 
  
   
 
 
§ SetMaterial()
Set the material of a visual. 
- Parameters
 - 
  
    | [in] | _name | Name of visual.  | 
    | [in] | _materialName | Name of material.  | 
    | [in] | _ambient | Ambient color of visual.  | 
    | [in] | _diffuse | Diffuse color of visual.  | 
    | [in] | _specular | Specular color of visual.  | 
    | [in] | _emissive | Emissive color of visual.  | 
  
   
 
 
§ UpdateVisual()
      
        
          | void UpdateVisual  | 
          ( | 
          const std::string &  | 
          _name,  | 
        
        
           | 
           | 
          ConstVisualPtr  | 
          _visualMsg  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Update a visual widget from a visual msg. 
- Parameters
 - 
  
    | [in] | _name | Name of visual to be updated.  | 
    | [in] | _visualMsg | Msg used to update the visual widget values.  | 
  
   
 
 
§ VisualAdded
  
  
      
        
          | void VisualAdded  | 
          ( | 
          const std::string &  | 
          _name | ) | 
           | 
         
       
   | 
  
signal   | 
  
 
Qt signal emitted when a visual is added. 
- Parameters
 - 
  
    | [in] | _name | Name of visual added.  | 
  
   
 
 
§ VisualRemoved
  
  
      
        
          | void VisualRemoved  | 
          ( | 
          const std::string &  | 
          _name | ) | 
           | 
         
       
   | 
  
signal   | 
  
 
Qt signal emitted when a visual is removed. 
- Parameters
 - 
  
    | [in] | _name | Name of visual removed.  | 
  
   
 
 
The documentation for this class was generated from the following file: