Class
List
Hierarchy
Modules
Common
Events
Math
Messages
Physics
Rendering
Sensors
Transport
Links
Gazebo Website
Wiki
Tutorials
Download
Report Documentation Issues
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
gazebo
rendering
WindowManager.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2012-2014 Open Source Robotics Foundation
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
*/
17
#ifndef _WINDOWMANAGER_HH_
18
#define _WINDOWMANAGER_HH_
19
20
#include <string>
21
#include <vector>
22
23
#include "
gazebo/rendering/RenderTypes.hh
"
24
25
namespace
Ogre
26
{
27
class
RenderWindow;
28
}
29
30
namespace
gazebo
31
{
32
namespace
rendering
33
{
36
39
class
WindowManager
40
{
42
public
:
WindowManager
();
43
45
public
:
virtual
~WindowManager
();
46
48
public
:
void
Fini
();
49
54
public
:
int
CreateWindow
(
const
std::string &_ogreHandle,
55
uint32_t _width,
56
uint32_t _height);
57
61
public
:
void
SetCamera
(
int
_windowId,
CameraPtr
_camera);
62
67
public
:
void
Resize
(uint32_t _id,
int
_width,
int
_height);
68
71
public
:
void
Moved
(uint32_t _id);
72
76
public
:
float
GetAvgFPS
(uint32_t _id);
77
81
public
: uint32_t
GetTriangleCount
(uint32_t _id);
82
86
public
: Ogre::RenderWindow *
GetWindow
(uint32_t _id);
87
89
private
: std::vector<Ogre::RenderWindow *> windows;
90
92
private
:
static
uint32_t windowCounter;
93
};
95
}
96
}
97
#endif
98
99