Provides buttons for the tape measure tool.  
 More...
#include <TapeMeasure.hh>
|  | 
| double | Distance () | 
|  | Callback in Qt thread to get the distance to display in the gui window. 
 | 
|  | 
| void | OnMeasure () | 
|  | Callback in Qt thread when the new measurement button is clicked. 
 | 
|  | 
| void | OnReset () | 
|  | Callback in Qt thread when the reset button is clicked. 
 | 
|  | 
|  | 
| void | newDistance () | 
|  | Signal fired when a new tape measure distance is set. 
 | 
|  | 
|  | 
|  | TapeMeasure () | 
|  | Constructor. 
 | 
|  | 
|  | ~TapeMeasure () override | 
|  | Destructor. 
 | 
|  | 
| void | DeleteMarker (int _id) | 
|  | Deletes the marker with the provided id within the "tape_measure" namespace. 
 | 
|  | 
| void | DrawLine (int _id, gz::math::Vector3d &_startPoint, gz::math::Vector3d &_endPoint, gz::math::Color &_color) | 
|  | Draws a line marker. Called to display the line between the start and end point of the tape measure. 
 | 
|  | 
| void | DrawPoint (int _id, gz::math::Vector3d &_point, gz::math::Color &_color) | 
|  | Draws a point marker. Called to display the start and end point of the tape measure. 
 | 
|  | 
| void | LoadConfig (const tinyxml2::XMLElement *_pluginElem) override | 
|  | 
| void | Measure () | 
|  | Starts a new measurement. Erases any previous measurement in progress or already made. 
 | 
|  | 
| void | Reset () | 
|  | Resets all of the relevant data for this plugin. Called when the user clicks the reset button and when the user starts a new measurement. 
 | 
|  | 
Provides buttons for the tape measure tool. 
◆ TapeMeasure()
◆ ~TapeMeasure()
◆ DeleteMarker()
      
        
          | void DeleteMarker | ( | int | _id | ) |  | 
      
 
Deletes the marker with the provided id within the "tape_measure" namespace. 
- Parameters
- 
  
    | [in] | _id | The id of the marker |  
 
 
 
◆ Distance
Callback in Qt thread to get the distance to display in the gui window. 
- Returns
- The distance between the start and end point of the measurement 
 
 
◆ DrawLine()
Draws a line marker. Called to display the line between the start and end point of the tape measure. 
- Parameters
- 
  
    | [in] | _id | The id of the marker |  | [in] | _startPoint | The x, y, z coordinates of the line start point |  | [in] | _endPoint | The x, y, z coordinates of the line end point |  | [in] | _color | The rgba color to set the marker |  
 
 
 
◆ DrawPoint()
Draws a point marker. Called to display the start and end point of the tape measure. 
- Parameters
- 
  
    | [in] | _id | The id of the marker |  | [in] | _point | The x, y, z coordinates of where to place the marker |  | [in] | _color | The rgba color to set the marker |  
 
 
 
◆ eventFilter()
◆ LoadConfig()
  
  | 
        
          | void LoadConfig | ( | const tinyxml2::XMLElement * | _pluginElem | ) |  |  | override | 
 
 
◆ Measure()
Starts a new measurement. Erases any previous measurement in progress or already made. 
 
 
◆ newDistance
Signal fired when a new tape measure distance is set. 
 
 
◆ OnMeasure
Callback in Qt thread when the new measurement button is clicked. 
 
 
◆ OnReset
Callback in Qt thread when the reset button is clicked. 
 
 
◆ Reset()
Resets all of the relevant data for this plugin. Called when the user clicks the reset button and when the user starts a new measurement. 
 
 
The documentation for this class was generated from the following file: