forked from varoudis/depthmapX
-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathalllinemap.h
26 lines (23 loc) · 1.03 KB
/
alllinemap.h
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
#pragma once
#include "salalib/axialmap.h"
#include "salalib/axialpolygons.h"
class AllLineMap: public ShapeGraph
{
public:
AllLineMap(Communicator *comm,
std::vector<SpacePixelFile> &drawingLayers,
const Point2f& seed,
const std::string& name = "All-Line Map");
AllLineMap(const std::string& name = "All-Line Map"):
ShapeGraph(name, ShapeMap::ALLLINEMAP) {}
AxialPolygons m_polygons;
std::vector<PolyConnector> m_poly_connections;
std::vector<RadialLine> m_radial_lines;
void setKeyVertexCount(int keyvertexcount) {
m_keyvertexcount = keyvertexcount;
}
std::tuple<std::unique_ptr<ShapeGraph>, std::unique_ptr<ShapeGraph>> extractFewestLineMaps(Communicator *comm);
void makeDivisions(const std::vector<PolyConnector>& polyconnections, const std::vector<RadialLine> &radiallines,
std::map<RadialKey, std::set<int> > &radialdivisions, std::map<int, std::set<int> > &axialdividers,
Communicator *comm);
};