CARLA
载入中...
搜索中...
未找到
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
MapGen
CityAreaDescription.h
浏览该文件的文档.
1
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2
// de Barcelona (UAB).
3
//
4
// This work is licensed under the terms of the MIT license.
5
// For a copy, see <https://opensource.org/licenses/MIT>.
6
7
#pragma once
8
9
#include "
GraphTypes.h
"
10
11
#include <vector>
12
13
namespace
MapGen
{
14
15
class
CARLA_API
CityAreaDescription
:
private
NonCopyable
16
{
17
public
:
18
19
explicit
CityAreaDescription
(
const
GraphFace
&Face) : _face(&Face) {}
20
21
void
Add
(
const
GraphNode
&Node) {
22
_nodes.emplace_back(&Node);
23
}
24
25
const
GraphFace
&
GetFace
()
const
{
26
return
*_face;
27
}
28
29
const
GraphNode
&
GetNodeAt
(
size_t
i)
const
{
30
return
*_nodes[i];
31
}
32
33
size_t
NodeCount
()
const
{
34
return
_nodes.size();
35
}
36
37
private
:
38
39
const
GraphFace
*
_face
;
40
41
std::vector<const GraphNode *>
_nodes
;
42
};
43
44
}
// namespace MapGen
GraphTypes.h
GraphFace
GraphNode
MapGen::CityAreaDescription
Definition
CityAreaDescription.h:16
MapGen::CityAreaDescription::GetNodeAt
const GraphNode & GetNodeAt(size_t i) const
Definition
CityAreaDescription.h:29
MapGen::CityAreaDescription::_nodes
std::vector< const GraphNode * > _nodes
Definition
CityAreaDescription.h:41
MapGen::CityAreaDescription::NodeCount
size_t NodeCount() const
Definition
CityAreaDescription.h:33
MapGen::CityAreaDescription::CityAreaDescription
CityAreaDescription(const GraphFace &Face)
Definition
CityAreaDescription.h:19
MapGen::CityAreaDescription::Add
void Add(const GraphNode &Node)
Definition
CityAreaDescription.h:21
MapGen::CityAreaDescription::GetFace
const GraphFace & GetFace() const
Definition
CityAreaDescription.h:25
MapGen::CityAreaDescription::_face
const GraphFace * _face
Definition
CityAreaDescription.h:39
NonCopyable
Definition
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Util/NonCopyable.h:3
MapGen
Definition
CityAreaDescription.h:13
制作者
1.10.0