18 #ifndef _GAZEBO_GUI_BUILDING_MEASUREITEM_HH_
19 #define _GAZEBO_GUI_BUILDING_MEASUREITEM_HH_
22 #include <ignition/math/Vector2.hh>
34 class MeasureItemPrivate;
49 public:
MeasureItem(
const ignition::math::Vector2d &_start,
50 const ignition::math::Vector2d &_end);
56 private:
virtual void paint(QPainter *_painter,
57 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
61 public:
double Distance()
const;
65 public:
void SetValue(
double _value);
69 private: std::unique_ptr<MeasureItemPrivate> dataPtr;
Measurement lines and values.
Definition: MeasureItem.hh:41
2D line segment.
Definition: SegmentItem.hh:45