Display.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 /* Coin headers */
30 #include <Inventor/actions/SoGLRenderAction.h>
31 #include <Inventor/nodes/SoPerspectiveCamera.h>
32 #include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
33 
34 namespace visionx
35 {
36  class Display : public SoQtExaminerViewer
37  {
38  public:
39  Display(QWidget* widget);
40  ~Display() override;
41  SoSeparator* getRootNode();
42  void cameraViewAll();
43 
44  private:
45  //virtual SbBool processSoEvent(const SoEvent* const event);
46  SoSeparator* sceneRootNode;
47  SoSeparator* contentRootNode;
48  SoPerspectiveCamera* camera;
49  };
50 
51  class DisplayWidget : public QWidget
52  {
53  Q_OBJECT
54 
55  public:
56  explicit DisplayWidget(QWidget* parent = 0);
57  ~DisplayWidget() override;
58 
60 
61  private:
62  Display* display;
63  };
64 }
visionx::Display
Definition: Display.h:36
visionx::Display::Display
Display(QWidget *widget)
Definition: Display.cpp:70
visionx
ArmarX headers.
Definition: OpenPoseStressTest.h:38
visionx::DisplayWidget::DisplayWidget
DisplayWidget(QWidget *parent=0)
Definition: Display.cpp:39
visionx::DisplayWidget
Definition: Display.h:51
visionx::Display::getRootNode
SoSeparator * getRootNode()
Definition: Display.cpp:105
visionx::Display::~Display
~Display() override
Definition: Display.cpp:97
visionx::DisplayWidget::getDisplay
Display * getDisplay()
Definition: Display.cpp:65
visionx::DisplayWidget::~DisplayWidget
~DisplayWidget() override
Definition: Display.cpp:59
visionx::Display::cameraViewAll
void cameraViewAll()
Definition: Display.cpp:110