DGtal 2.1.0
Loading...
Searching...
No Matches
TestFixture Struct Reference

Static Public Attributes

static const Z3i::Domain domain {Z3i::Point(-1, -2, -1), Z3i::Point(14, 3, 9)}
static const Z3i::Domain expectedDomain {Z3i::Point(-1, -2, -1), Z3i::Point(14, 13, 14)}
static const Z3i::Point testPoints [8]
static const size_t testPointCount = sizeof(testPoints) / sizeof(Z3i::Point)
static const bool testPointsValid [8]
static const Z3i::Point validPoints [5]
static const size_t validPointCount = sizeof(validPoints) / sizeof(Z3i::Point)

Detailed Description

Definition at line 45 of file testDigitalSetByOctree.cpp.

Field Documentation

◆ domain

const Z3i::Domain TestFixture::domain {Z3i::Point(-1, -2, -1), Z3i::Point(14, 3, 9)}
inlinestatic

Definition at line 47 of file testDigitalSetByOctree.cpp.

47{Z3i::Point(-1, -2, -1), Z3i::Point(14, 3, 9)};
Space::Point Point
Definition StdDefs.h:168

◆ expectedDomain

const Z3i::Domain TestFixture::expectedDomain {Z3i::Point(-1, -2, -1), Z3i::Point(14, 13, 14)}
inlinestatic

Definition at line 48 of file testDigitalSetByOctree.cpp.

48{Z3i::Point(-1, -2, -1), Z3i::Point(14, 13, 14)};

◆ testPointCount

const size_t TestFixture::testPointCount = sizeof(testPoints) / sizeof(Z3i::Point)
inlinestatic

Definition at line 62 of file testDigitalSetByOctree.cpp.

◆ testPoints

const Z3i::Point TestFixture::testPoints[8]
inlinestatic
Initial value:
=
{
Z3i::Point(0, 0, 0) , Z3i::Point(2, 1, 4),
Z3i::Point(-1, -1, -1), Z3i::Point(14, 13, 14),
Z3i::Point(8, 7, 4),
Z3i::Point(0, 0, 0), Z3i::Point(8, 7, 4),
Z3i::Point(-5, 152, -123)
}

Definition at line 50 of file testDigitalSetByOctree.cpp.

51 {
52 // Valid points inside the domain
53 Z3i::Point(0, 0, 0) , Z3i::Point(2, 1, 4), // Some points
54 Z3i::Point(-1, -1, -1), Z3i::Point(14, 13, 14), // On the edge
55 Z3i::Point(8, 7, 4), // Outside the original domain, but inside the expected one
56 // We pay for the bigger domain, we might accept those points as well
57 // Duplicates
58 Z3i::Point(0, 0, 0), Z3i::Point(8, 7, 4),
59 // Outside the domain
60 Z3i::Point(-5, 152, -123)
61 };

◆ testPointsValid

const bool TestFixture::testPointsValid[8]
inlinestatic
Initial value:
=
{
true, true,
true, true,
true,
true, true,
false,
}

Definition at line 63 of file testDigitalSetByOctree.cpp.

64 {
65 true, true,
66 true, true,
67 true,
68 true, true,
69 false,
70 };

◆ validPointCount

const size_t TestFixture::validPointCount = sizeof(validPoints) / sizeof(Z3i::Point)
inlinestatic

Definition at line 78 of file testDigitalSetByOctree.cpp.

◆ validPoints

const Z3i::Point TestFixture::validPoints[5]
inlinestatic
Initial value:
=
{
Z3i::Point(-1, -1, -1), Z3i::Point(0, 0, 0),
Z3i::Point(2, 1, 4) , Z3i::Point(8, 7, 4),
Z3i::Point(14, 13, 14)
}

Definition at line 72 of file testDigitalSetByOctree.cpp.

73 {
74 Z3i::Point(-1, -1, -1), Z3i::Point(0, 0, 0),
75 Z3i::Point(2, 1, 4) , Z3i::Point(8, 7, 4),
76 Z3i::Point(14, 13, 14)
77 };

The documentation for this struct was generated from the following file: