RobotViewerWidget.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2011-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5  *
6  * ArmarX is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * ArmarX is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * @package
19  * @author
20  * @date
21  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22  * GNU General Public License
23  */
24 #pragma once
25 
26 /* Qt headers */
27 #include <QWidget>
28 
29 #include "RobotViewer.h"
30 
31 #include <memory>
32 
33 using RobotViewerPtr = std::shared_ptr<armarx::RobotViewer>;
34 
35 namespace armarx
36 {
37  class RobotViewerWidget : public QWidget
38  {
39  Q_OBJECT
40 
41  public:
42  /**
43  * Constructor.
44  * Constructs a robot viewer widget.
45  * Expects a controller::ControllerPtr.
46  *
47  * @param control shared pointer to controller::controller
48  * @param parent parent widget
49  *
50  */
51  explicit RobotViewerWidget(QWidget* parent = 0);
52 
53  /**
54  * Destructor.
55  *
56  */
57  ~RobotViewerWidget() override;
58 
60 
61  private:
62  RobotViewerPtr viewer;
63  };
64 }
65 
armarx::RobotViewerWidget::RobotViewerWidget
RobotViewerWidget(QWidget *parent=0)
Constructor.
Definition: RobotViewerWidget.cpp:28
armarx::RobotViewerWidget::getRobotViewer
RobotViewerPtr getRobotViewer()
Definition: RobotViewerWidget.cpp:53
armarx::RobotViewerWidget
Definition: RobotViewerWidget.h:37
RobotViewer.h
armarx::RobotViewerWidget::~RobotViewerWidget
~RobotViewerWidget() override
Destructor.
Definition: RobotViewerWidget.cpp:48
RobotViewerPtr
std::shared_ptr< armarx::RobotViewer > RobotViewerPtr
Definition: RobotViewerWidget.h:33
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28