Main Page
+
Namespaces
Namespace List
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
~
+
Functions
a
d
e
f
h
i
m
o
p
r
s
t
u
~
+
Variables
a
b
c
d
f
i
l
m
o
p
s
t
Typedefs
Enumerations
Enumerator
+
Files
File List
include
radial_menu_rviz
horizontal_display.hpp
Go to the documentation of this file.
1
#ifndef RADIAL_MENU_RVIZ_HORIZONTAL_DISPLAY_HPP
2
#define RADIAL_MENU_RVIZ_HORIZONTAL_DISPLAY_HPP
3
4
#include <
radial_menu_rviz/display_base.hpp
>
5
#include <
radial_menu_rviz/horizontal_image_drawer.hpp
>
6
#include <
radial_menu_rviz/horizontal_property_control.hpp
>
7
#include <
radial_menu_rviz/properties.hpp
>
8
9
#include <QObject>
10
11
namespace
radial_menu_rviz
{
12
13
class
HorizontalDisplay
:
public
DisplayBase
< HorizontalDrawingProperty, HorizontalPropertyControl,
14
HorizontalImageDrawer > {
15
Q_OBJECT
16
17
private
:
18
typedef
DisplayBase< HorizontalDrawingProperty, HorizontalPropertyControl, HorizontalImageDrawer >
19
Base
;
20
21
public
:
22
HorizontalDisplay
() {}
23
24
virtual
~HorizontalDisplay
() {}
25
26
protected
:
27
// called once on initialization
28
virtual
void
onInitialize
() {
29
Base::onInitialize
();
30
31
// origin in the position property indicates top-left position
32
overlay_
->setAlignment(Qt::AlignLeft | Qt::AlignTop);
33
34
// slots on properties changed
35
connect(
prop_ctl_
.get(), &
HorizontalPropertyControl::descriptionPropertyChanged
,
this
,
36
&
HorizontalDisplay::updateDescription
);
37
connect(
prop_ctl_
.get(), &
HorizontalPropertyControl::subscriptionPropertyChanged
,
this
,
38
&
HorizontalDisplay::updateSubscription
);
39
connect(
prop_ctl_
.get(), &
HorizontalPropertyControl::drawingPropertyChanged
,
this
,
40
&
HorizontalDisplay::updateImage
);
41
connect(
prop_ctl_
.get(), &
HorizontalPropertyControl::positionPropertyChanged
,
this
,
42
&
HorizontalDisplay::updatePosition
);
43
}
44
45
protected
Q_SLOTS:
46
void
updateDescription
(
const
DescriptionProperty
&prop) {
Base::updateDescription
(prop); }
47
48
void
updateSubscription
(
const
SubscriptionProperty
&prop) {
Base::updateSubscription
(prop); }
49
50
void
updateImage
(
const
HorizontalDrawingProperty
&prop) {
Base::updateImage
(prop); }
51
52
void
updatePosition
(
const
PositionProperty
&prop) {
Base::updatePosition
(prop); }
53
};
54
}
// namespace radial_menu_rviz
55
56
#endif
radial_menu_rviz::HorizontalDisplay
Definition:
horizontal_display.hpp:13
radial_menu_rviz::DisplayBase
Definition:
display_base.hpp:20
radial_menu_rviz::DisplayBase< HorizontalDrawingProperty, HorizontalPropertyControl, HorizontalImageDrawer >::updateDescription
void updateDescription(const DescriptionProperty &prop)
Definition:
display_base.hpp:54
radial_menu_rviz::HorizontalPropertyControl::descriptionPropertyChanged
void descriptionPropertyChanged(const DescriptionProperty &prop)
radial_menu_rviz::PositionProperty
Definition:
properties.hpp:50
radial_menu_rviz::HorizontalDisplay::HorizontalDisplay
HorizontalDisplay()
Definition:
horizontal_display.hpp:22
radial_menu_rviz::HorizontalPropertyControl::drawingPropertyChanged
void drawingPropertyChanged(const HorizontalDrawingProperty &prop)
radial_menu_rviz::HorizontalDisplay::updatePosition
void updatePosition(const PositionProperty &prop)
Definition:
horizontal_display.hpp:52
radial_menu_rviz::DisplayBase< HorizontalDrawingProperty, HorizontalPropertyControl, HorizontalImageDrawer >::onInitialize
virtual void onInitialize()
Definition:
display_base.hpp:28
radial_menu_rviz::HorizontalDrawingProperty
Definition:
properties.hpp:36
radial_menu_rviz::HorizontalDisplay::updateDescription
void updateDescription(const DescriptionProperty &prop)
Definition:
horizontal_display.hpp:46
horizontal_image_drawer.hpp
radial_menu_rviz::HorizontalDisplay::Base
DisplayBase< HorizontalDrawingProperty, HorizontalPropertyControl, HorizontalImageDrawer > Base
Definition:
horizontal_display.hpp:19
properties.hpp
radial_menu_rviz::DisplayBase< HorizontalDrawingProperty, HorizontalPropertyControl, HorizontalImageDrawer >::updatePosition
void updatePosition(const PositionProperty &prop)
Definition:
display_base.hpp:106
radial_menu_rviz::HorizontalPropertyControl::subscriptionPropertyChanged
void subscriptionPropertyChanged(const SubscriptionProperty &prop)
display_base.hpp
radial_menu_rviz::DisplayBase< HorizontalDrawingProperty, HorizontalPropertyControl, HorizontalImageDrawer >::updateSubscription
void updateSubscription(const SubscriptionProperty &prop)
Definition:
display_base.hpp:62
radial_menu_rviz::SubscriptionProperty
Definition:
properties.hpp:15
radial_menu_rviz::HorizontalDisplay::~HorizontalDisplay
virtual ~HorizontalDisplay()
Definition:
horizontal_display.hpp:24
radial_menu_rviz::HorizontalDisplay::updateImage
void updateImage(const HorizontalDrawingProperty &prop)
Definition:
horizontal_display.hpp:50
horizontal_property_control.hpp
radial_menu_rviz::DisplayBase< HorizontalDrawingProperty, HorizontalPropertyControl, HorizontalImageDrawer >::updateImage
void updateImage()
Definition:
display_base.hpp:84
radial_menu_rviz::HorizontalDisplay::onInitialize
virtual void onInitialize()
Definition:
horizontal_display.hpp:28
radial_menu_rviz::DescriptionProperty
Definition:
properties.hpp:11
radial_menu_rviz::HorizontalDisplay::updateSubscription
void updateSubscription(const SubscriptionProperty &prop)
Definition:
horizontal_display.hpp:48
radial_menu_rviz::DisplayBase< HorizontalDrawingProperty, HorizontalPropertyControl, HorizontalImageDrawer >::prop_ctl_
std::unique_ptr< HorizontalPropertyControl > prop_ctl_
Definition:
display_base.hpp:113
radial_menu_rviz
Definition:
display_base.hpp:15
radial_menu_rviz::HorizontalPropertyControl::positionPropertyChanged
void positionPropertyChanged(const PositionProperty &prop)
radial_menu_rviz::DisplayBase< HorizontalDrawingProperty, HorizontalPropertyControl, HorizontalImageDrawer >::overlay_
std::unique_ptr< ImageOverlay > overlay_
Definition:
display_base.hpp:122
radial_menu_rviz
Author(s):
autogenerated on Mon Feb 28 2022 23:22:04