-
Notifications
You must be signed in to change notification settings - Fork 24
/
api.h
41 lines (32 loc) · 1.09 KB
/
api.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// Created by Bryn Keller on 11/16/17.
//
#ifndef RIVET_CONSOLE_API_H
#define RIVET_CONSOLE_API_H
#include "dcel/anchor.h"
#include "dcel/arrangement.h"
#include "dcel/barcode_template.h"
#include "dcel/dcel.h"
#include "type_tag.h"
#include <boost/optional.hpp>
#include <boost/serialization/split_member.hpp>
#include <msgpack.hpp>
#include "dcel/msgpack_adapters.h"
#include "computation.h"
#include "dcel/dcel.h"
#include "dcel/arrangement_message.h"
#include <memory>
std::unique_ptr<ComputationResult> from_messages(
const TemplatePointsMessage &templatePointsMessage,
const ArrangementMessage &arrangementMessage);
std::vector<std::unique_ptr<Barcode>> query_barcodes(const ComputationResult &computation,
const std::vector<std::pair<double, double>> &offset_slopes);
std::unique_ptr<ComputationResult> from_istream(std::istream &file);
struct Bounds {
double x_low;
double y_low;
double x_high;
double y_high;
};
Bounds compute_bounds(const ComputationResult &computation_result);
#endif //RIVET_CONSOLE_API_H