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 <VisionX/gui-plugins/ImageMonitor/ui_ImageMonitorWidget.h>
27 #include <Image/ByteImage.h>
28 #include <IceUtil/Time.h>
29 namespace visionx
30 {
31  class ImageMonitorWidgetController;
32  class ImageMonitorPropertiesWidget;
33  class ImageMonitorStatisticsWidget;
34  class ImageViewerArea;
35 
37  public QWidget
38  {
39 
40  Q_OBJECT
41 
42  public:
44  ~ImageMonitorWidget() override;
45 
46  // can be called from outside threads (e.g. controller)
47 
49 
50  public slots:
51  void drawImages(int numberImages, CByteImage** images, IceUtil::Time imageTimestamp, IceUtil::Time receiveTimestamp);
52  void hideControlWidgets(bool hide = true);
53  // external
54  void setConnected(bool connected);
55  void updateStatistics(const QString& statisticsStr);
56 
57  // internal
58  void settingsButtonClicked(bool toggled);
59  void statisticsButtonClicked(bool toggled);
60  void snapshotButtonClicked(bool toggled);
61  void playButtonToggled(bool toggled);
62  void propertiesAccepted();
63  void statisticsAccepted();
64  void bufferImagesToggled(bool toggled);
65  void sliderPositionChanged(int pos);
66  void bufferImagesPaneChanged(bool toggled);
67 
68  signals:
69  // pass
70 
71  private:
72  Ui::ImageMonitor ui;
73  ImageViewerArea* imageViewer;
75  ImageMonitorPropertiesWidget* imageMonitorPropertiesWidget;
76  ImageMonitorStatisticsWidget* imageMonitorStatisticsWidget;
77 
78  };
79 }
80 
81 
visionx::ImageMonitorWidget::setConnected
void setConnected(bool connected)
Definition: ImageMonitorWidget.cpp:214
visionx::ImageMonitorWidget::sliderPositionChanged
void sliderPositionChanged(int pos)
Definition: ImageMonitorWidget.cpp:146
visionx
ArmarX headers.
Definition: OpenPoseStressTest.h:38
visionx::ImageMonitorWidget::bufferImagesPaneChanged
void bufferImagesPaneChanged(bool toggled)
Definition: ImageMonitorWidget.cpp:186
visionx::ImageMonitorWidget::~ImageMonitorWidget
~ImageMonitorWidget() override
Definition: ImageMonitorWidget.cpp:75
visionx::ImageMonitorWidget::snapshotButtonClicked
void snapshotButtonClicked(bool toggled)
Definition: ImageMonitorWidget.cpp:203
visionx::ImageViewerArea
Definition: ImageViewerArea.h:38
visionx::ImageMonitorWidgetController
Definition: ImageMonitorWidgetController.h:116
visionx::ImageMonitorWidget::getImageViewer
ImageViewerArea * getImageViewer() const
Definition: ImageMonitorWidget.cpp:198
visionx::ImageMonitorWidget::bufferImagesToggled
void bufferImagesToggled(bool toggled)
Definition: ImageMonitorWidget.cpp:139
controller
Definition: AddOperation.h:39
visionx::ImageMonitorWidget::updateStatistics
void updateStatistics(const QString &statisticsStr)
Definition: ImageMonitorWidget.cpp:228
visionx::ImageMonitorWidget::playButtonToggled
void playButtonToggled(bool toggled)
Definition: ImageMonitorWidget.cpp:208
visionx::ImageMonitorPropertiesWidget
Definition: ImageMonitorPropertiesWidget.h:60
visionx::ImageMonitorWidget::ImageMonitorWidget
ImageMonitorWidget(ImageMonitorWidgetController *controller)
Definition: ImageMonitorWidget.cpp:36
visionx::ImageMonitorWidget::hideControlWidgets
void hideControlWidgets(bool hide=true)
Definition: ImageMonitorWidget.cpp:98
visionx::ImageMonitorWidget::drawImages
void drawImages(int numberImages, CByteImage **images, IceUtil::Time imageTimestamp, IceUtil::Time receiveTimestamp)
Definition: ImageMonitorWidget.cpp:80
visionx::ImageMonitorWidget::statisticsButtonClicked
void statisticsButtonClicked(bool toggled)
Definition: ImageMonitorWidget.cpp:116
visionx::ImageMonitorWidget::propertiesAccepted
void propertiesAccepted()
Definition: ImageMonitorWidget.cpp:127
armarx::armem::Time
armarx::core::time::DateTime Time
Definition: forward_declarations.h:13
visionx::ImageMonitorWidget
Definition: ImageMonitorWidget.h:36
visionx::ImageMonitorStatisticsWidget
Definition: ImageMonitorStatisticsWidget.h:33
visionx::ImageMonitorWidget::settingsButtonClicked
void settingsButtonClicked(bool toggled)
Definition: ImageMonitorWidget.cpp:106
visionx::ImageMonitorWidget::statisticsAccepted
void statisticsAccepted()
Definition: ImageMonitorWidget.cpp:135