36 #include <QApplication> 57 : is_moving_(false), shift_pressing_(false),
rviz::
Tool()
64 if (event->type() == QEvent::KeyPress &&
event->key() == 16777248) {
67 else if (event->type() == QEvent::KeyRelease &&
event->key() == 16777248) {
76 if (event.
left() &&
event.leftDown()) {
92 if (isPropertyType<rviz::DisplayGroup>(property)) {
94 for (
int i = 0; i < group_property->
numChildren(); i++) {
101 if (startMovement<OverlayTextDisplay>(property, event,
"overlay_text_display")) {
104 else if (startMovement<Plotter2DDisplay>(property, event,
"plotter_2d_display")) {
107 else if (startMovement<PieChartDisplay>(property, event,
"pie_chart_display")) {
110 else if (startMovement<OverlayImageDisplay>(property, event,
"overlay_image_display")) {
113 else if (startMovement<OverlayDiagnosticDisplay>(property, event,
"overlay_diagnostic_display")) {
116 else if (startMovement<OverlayMenuDisplay>(property, event,
"overlay_menu_display")) {
142 movePosition<OverlayTextDisplay>(event);
145 movePosition<Plotter2DDisplay>(event);
148 movePosition<PieChartDisplay>(event);
151 movePosition<OverlayImageDisplay>(event);
154 movePosition<OverlayDiagnosticDisplay>(event);
157 movePosition<OverlayMenuDisplay>(event);
169 setPosition<OverlayTextDisplay>(event);
172 setPosition<Plotter2DDisplay>(event);
175 setPosition<PieChartDisplay>(event);
178 setPosition<OverlayImageDisplay>(event);
181 setPosition<OverlayDiagnosticDisplay>(event);
184 setPosition<OverlayMenuDisplay>(event);
PLUGINLIB_EXPORT_CLASS(jsk_rviz_plugins::PictogramArrayDisplay, rviz::Display)
virtual DisplayGroup * getRootDisplayGroup() const =0
virtual int numChildren() const
Property * childAt(int index) const