CARLA
GraphGenerator.h
Go to the documentation of this file.
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 
10 
11 namespace MapGen {
12 
13  /// Random DoublyConnectedEdgeList generator.
14  class GraphGenerator : private NonCopyable
15  {
16  public:
17 
18  /// Create a squared DoublyConnectedEdgeList of size @a SizeX times @a SizeY
19  /// and generate random connections inside using fixed @a Seed.
20  static TUniquePtr<DoublyConnectedEdgeList> Generate(uint32 SizeX, uint32 SizeY, int32 Seed);
21  };
22 
23 } // namespace MapGen
Random DoublyConnectedEdgeList generator.
static TUniquePtr< DoublyConnectedEdgeList > Generate(uint32 SizeX, uint32 SizeY, int32 Seed)
Create a squared DoublyConnectedEdgeList of size SizeX times SizeY and generate random connections in...