RigsofRods
Soft-body Physics Simulation
SurveyMapEntity.h
Go to the documentation of this file.
1 /*
2  This source file is part of Rigs of Rods
3  Copyright 2005-2012 Pierre-Michel Ricordel
4  Copyright 2007-2012 Thomas Fischer
5  Copyright 2013-2023 Petr Ohlidal
6 
7  For more information, see http://www.rigsofrods.org/
8 
9  Rigs of Rods is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License version 3, as
11  published by the Free Software Foundation.
12 
13  Rigs of Rods is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
23 
24 #pragma once
25 
26 #include <Ogre.h>
27 #include <string>
28 #include <vector>
29 
30 namespace RoR {
31 
34 
36  {
38  {}
39 
40  SurveyMapEntity(const std::string& _type, const std::string& _caption, const std::string& _filename, const std::string& _rg, Ogre::Vector3 _pos, Ogre::Radian _rot, int _id)
41  :type(_type), caption(_caption), filename(_filename), resource_group(_rg), pos(_pos), rot_angle(_rot), id(_id)
42  {}
43 
44  std::string type;
45  std::string caption;
46  std::string filename;
47  std::string resource_group;
48  Ogre::Vector3 pos;
49  Ogre::Radian rot_angle;
50  int id = -1;
51  Ogre::TexturePtr cached_icon;
52  bool draw_caption = false;
53  Ogre::ColourValue caption_color = Ogre::ColourValue::White;
54  };
55 
56  typedef std::vector<SurveyMapEntity> SurveyMapEntityVec;
57 
59 
60 } // namespace RoR
RoR::SurveyMapEntity::rot_angle
Ogre::Radian rot_angle
world yaw in radians
Definition: SurveyMapEntity.h:49
RoR::SurveyMapEntity::caption
std::string caption
display caption
Definition: SurveyMapEntity.h:45
RoR::SurveyMapEntity::filename
std::string filename
Requested icon, cached may be out of date.
Definition: SurveyMapEntity.h:46
RoR::SurveyMapEntity::SurveyMapEntity
SurveyMapEntity()
Definition: SurveyMapEntity.h:37
RoR::SurveyMapEntityVec
std::vector< SurveyMapEntity > SurveyMapEntityVec
Definition: SurveyMapEntity.h:56
RoR::SurveyMapEntity::id
int id
race ID (>=0), or -1 if not a race icon. You can use larger negative numbers for custom IDs.
Definition: SurveyMapEntity.h:50
RoR::SurveyMapEntity::resource_group
std::string resource_group
if empty, defaults to TexturesRG
Definition: SurveyMapEntity.h:47
RoR::SurveyMapEntity::draw_caption
bool draw_caption
By default, don't draw caption under icon, use the mouse tooltip.
Definition: SurveyMapEntity.h:52
RoR::SurveyMapEntity::type
std::string type
informational
Definition: SurveyMapEntity.h:44
RoR::SurveyMapEntity::cached_icon
Ogre::TexturePtr cached_icon
Definition: SurveyMapEntity.h:51
RoR::SurveyMapEntity::SurveyMapEntity
SurveyMapEntity(const std::string &_type, const std::string &_caption, const std::string &_filename, const std::string &_rg, Ogre::Vector3 _pos, Ogre::Radian _rot, int _id)
Definition: SurveyMapEntity.h:40
RoR::SurveyMapEntity::pos
Ogre::Vector3 pos
world pos in meters
Definition: SurveyMapEntity.h:48
RoR::SurveyMapEntity
Definition: SurveyMapEntity.h:35
RoR
Definition: AppContext.h:36
RoR::SurveyMapEntity::caption_color
Ogre::ColourValue caption_color
Definition: SurveyMapEntity.h:53