ImageMonitorWidget.h
Go to the documentation of this file.
1/*
2* This file is part of ArmarX.
3*
4* ArmarX is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License version 2 as
6* published by the Free Software Foundation.
7*
8* ArmarX is distributed in the hope that it will be useful, but
9* WITHOUT ANY WARRANTY; without even the implied warranty of
10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11* GNU General Public License for more details.
12*
13* You should have received a copy of the GNU General Public License
14* along with this program. If not, see <http://www.gnu.org/licenses/>.
15*
16* @package ArmarX::
17* @author Kai Welke ( welke at kit dot edu)
18* @date 2012
19* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20* GNU General Public License
21*/
22
23#pragma once
24
25/** ArmarX headers **/
26#include <IceUtil/Time.h>
27
28#include <VisionX/gui-plugins/ImageMonitor/ui_ImageMonitorWidget.h>
29
30#include <Image/ByteImage.h>
31
32namespace visionx
33{
37 class ImageViewerArea;
38
39 class ImageMonitorWidget : public QWidget
40 {
41
42 Q_OBJECT
43
44 public:
46 ~ImageMonitorWidget() override;
47
48 // can be called from outside threads (e.g. controller)
49
51
52 public slots:
53 void drawImages(int numberImages,
54 CByteImage** images,
55 IceUtil::Time imageTimestamp,
56 IceUtil::Time receiveTimestamp);
57 void hideControlWidgets(bool hide = true);
58 // external
59 void setConnected(bool connected);
60 void updateStatistics(const QString& statisticsStr);
61
62 // internal
63 void settingsButtonClicked(bool toggled);
64 void statisticsButtonClicked(bool toggled);
65 void snapshotButtonClicked(bool toggled);
66 void playButtonToggled(bool toggled);
67 void propertiesAccepted();
68 void statisticsAccepted();
69 void bufferImagesToggled(bool toggled);
70 void sliderPositionChanged(int pos);
71 void bufferImagesPaneChanged(bool toggled);
72
73 signals:
74 // pass
75
76 private:
77 Ui::ImageMonitor ui;
78 ImageViewerArea* imageViewer;
80 ImageMonitorPropertiesWidget* imageMonitorPropertiesWidget;
81 ImageMonitorStatisticsWidget* imageMonitorStatisticsWidget;
82 };
83} // namespace visionx
void drawImages(int numberImages, CByteImage **images, IceUtil::Time imageTimestamp, IceUtil::Time receiveTimestamp)
void statisticsButtonClicked(bool toggled)
void settingsButtonClicked(bool toggled)
void snapshotButtonClicked(bool toggled)
ImageViewerArea * getImageViewer() const
void hideControlWidgets(bool hide=true)
void updateStatistics(const QString &statisticsStr)
void bufferImagesPaneChanged(bool toggled)
ImageMonitorWidget(ImageMonitorWidgetController *controller)
ArmarX headers.