forked from computationalpathologygroup/ASAP
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBox.h
29 lines (20 loc) · 937 Bytes
/
Box.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
#ifndef BoxH
#define BoxH
#include <vector>
#include "config/pathology_config.h"
class EXPORT_CORE Box {
private :
std::vector<unsigned long long> _start;
std::vector<unsigned long long> _size;
public :
Box intersection(const Box& r) const;
bool intersects(const Box& r) const;
Box();
Box(const unsigned long long& x, const unsigned long long& y, const unsigned long long& width, const unsigned long long& height);
Box(const unsigned long long& x, const unsigned long long& y, const unsigned long long& z, const unsigned long long& width, const unsigned long long& height, const unsigned long long& depth);
Box(const std::vector<unsigned long long>& size);
Box(const std::vector<unsigned long long>& start, const std::vector<unsigned long long>& size);
const std::vector<unsigned long long>& getSize() const;
const std::vector<unsigned long long>& getStart() const;
};
#endif