fringes.hpp
1 #pragma once
2 
3 #include "../_cexports/c_sample_database.h"
4 
5 #include "../global.hpp"
6 
7 namespace Cvb
8 {
9 CVB_BEGIN_INLINE_NS
10 
12 
16 namespace SampleDatabase
17 {
18 
20 
22 class Fringes
23 {
24 public:
25  Fringes () noexcept
26  : left_(0), top_(0), right_(0), bottom_(0)
27  {}
28 
29  Fringes (int left, int top, int right, int bottom) noexcept
30  : left_(left), top_(top), right_(right), bottom_(bottom)
31  {}
32 
33 public:
35 
39  int Left() const noexcept
40  {
41  return left_;
42  }
43 
45 
49  int Top() const noexcept
50  {
51  return top_;
52  }
53 
55 
59  int Right() const noexcept
60  {
61  return right_;
62  }
63 
65 
69  int Bottom() const noexcept
70  {
71  return bottom_;
72  }
73 
74 private:
75  int left_;
76  int top_;
77  int right_;
78  int bottom_;
79 };
80 
81 
82 
83 } /* namespace SampleDatabase */
84 CVB_END_INLINE_NS
85 } /* namespace Cvb */
int Top() const noexcept
Gets the fringe at the top edge.
Definition: fringes.hpp:49
Root namespace for the Image Manager interface.
Definition: version.hpp:11
int Bottom() const noexcept
Gets the fringe at the bottom edge.
Definition: fringes.hpp:69
int Left() const noexcept
Gets the fringe at the left edge.
Definition: fringes.hpp:39
int Right() const noexcept
Gets the fringe at the right edge.
Definition: fringes.hpp:59
Object describing the fringes that are available around images in a sample image list.
Definition: fringes.hpp:22