src
ogre_tile.h
Go to the documentation of this file.
1
/* Copyright 2018-2019 TomTom N.V.
2
3
Licensed under the Apache License, Version 2.0 (the "License");
4
you may not use this file except in compliance with the License.
5
You may obtain a copy of the License at
6
7
http://www.apache.org/licenses/LICENSE-2.0
8
9
Unless required by applicable law or agreed to in writing, software
10
distributed under the License is distributed on an "AS IS" BASIS,
11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
See the License for the specific language governing permissions and
13
limitations under the License. */
14
15
#pragma once
16
17
#include <OGRE/OgreTextureManager.h>
18
#include <QImage>
19
#include <utility>
20
24
class
OgreTile
25
{
26
public
:
27
Ogre::TexturePtr
texture
;
28
29
public
:
30
OgreTile
(QImage image_);
31
32
OgreTile
(
OgreTile
&& other) noexcept
33
{
34
(*this) = std::move(other);
35
}
36
37
OgreTile
&
operator=
(
OgreTile
&& other) noexcept
38
{
39
texture = other.
texture
;
40
other.texture.setNull();
41
42
return
*
this
;
43
}
44
45
~OgreTile
()
46
{
47
if
(!texture.isNull())
48
{
49
Ogre::TextureManager::getSingleton().remove(texture->getName());
50
}
51
}
52
};
OgreTile::OgreTile
OgreTile(OgreTile &&other) noexcept
Definition:
ogre_tile.h:32
OgreTile
Definition:
ogre_tile.h:24
OgreTile::~OgreTile
~OgreTile()
Definition:
ogre_tile.h:45
OgreTile::OgreTile
OgreTile(QImage image_)
Definition:
ogre_tile.cpp:57
OgreTile::texture
Ogre::TexturePtr texture
Definition:
ogre_tile.h:27
OgreTile::operator=
OgreTile & operator=(OgreTile &&other) noexcept
Definition:
ogre_tile.h:37
rviz_satellite
Author(s): Gareth Cross
, Andre Schröder
autogenerated on Thu May 4 2023 02:31:43