-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmapconverter.hpp
37 lines (31 loc) · 1.94 KB
/
mapconverter.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// SPDX-FileCopyrightText: 2000-2010 University College London, Alasdair Turner
// SPDX-FileCopyrightText: 2011-2012 Tasos Varoudis
// SPDX-FileCopyrightText: 2017-2024 Petros Koutsolampros
//
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include "shapegraph.hpp"
#include "shapemap.hpp"
#include "genlib/comm.hpp"
namespace MapConverter {
std::unique_ptr<ShapeGraph> convertDrawingToAxial(
Communicator *comm, const std::string &name,
const std::vector<std::pair<std::reference_wrapper<const ShapeMap>, int>> &drawingMaps);
std::unique_ptr<ShapeGraph> convertDataToAxial(Communicator *comm, const std::string &name,
ShapeMap &shapemap, bool copydata = false);
std::unique_ptr<ShapeGraph> convertDrawingToConvex(
Communicator *, const std::string &name,
const std::vector<std::pair<std::reference_wrapper<const ShapeMap>, int>> &drawingMaps);
std::unique_ptr<ShapeGraph> convertDataToConvex(Communicator *, const std::string &name,
ShapeMap &shapemap, bool copydata = false);
std::unique_ptr<ShapeGraph> convertDrawingToSegment(
Communicator *comm, const std::string &name,
const std::vector<std::pair<std::reference_wrapper<const ShapeMap>, int>> &drawingMaps);
std::unique_ptr<ShapeGraph> convertDataToSegment(Communicator *comm, const std::string &name,
ShapeMap &shapemap, bool copydata = false);
std::unique_ptr<ShapeGraph> convertAxialToSegment(Communicator *, ShapeGraph &axialMap,
const std::string &name,
bool keeporiginal = true,
bool pushvalues = false,
double stubremoval = 0.0);
} // namespace MapConverter