Loading [MathJax]/extensions/TeX/AMSsymbols.js
DGtal
2.0.0
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
x
Variables
a
b
d
e
f
h
i
l
m
n
o
p
s
t
v
w
x
Typedefs
a
b
c
d
e
i
k
l
n
o
p
r
s
u
v
z
Enumerations
Enumerator
a
b
c
d
e
g
h
i
j
n
o
p
s
t
u
z
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
c
d
e
f
h
l
m
n
o
p
r
s
t
u
Enumerator
a
b
c
d
e
f
g
l
m
o
p
r
s
t
u
v
x
y
z
Related Symbols
a
b
c
d
e
f
g
i
k
l
m
o
p
s
t
u
Examples
DGtal
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
demo-kernel-2.cpp
Go to the documentation of this file.
1
16
28
29
36
37
38
40
#include <iostream>
41
42
#include "DGtal/base/Common.h"
43
#include "DGtal/kernel/SpaceND.h"
44
#include "DGtal/helpers/StdDefs.h"
45
#include "DGtal/kernel/domains/HyperRectDomain.h"
46
#include "DGtal/io/boards/Board2D.h"
47
#include "DGtal/io/viewers/PolyscopeViewer.h"
48
50
51
using namespace
std
;
52
using namespace
DGtal
;
53
55
56
int
main
(
int
argc,
char
** argv )
57
{
58
typedef
DGtal::SpaceND<3, DGtal::int32_t>
MySpace;
59
typedef
MySpace::Point
MyPoint
;
60
typedef
HyperRectDomain<MySpace>
MyDomain;
61
MyPoint
p1( 0, 0, 0 );
62
MyPoint
p2( 5, 5 ,5 );
63
MyPoint
p3( 2, 3, 4 );
64
MyDomain
domain
( p1, p2 );
65
PolyscopeViewer<>
viewer;
// for 3D visualization
66
viewer <<
domain
;
67
viewer << p1 << p2 << p3;
68
viewer.
show
();
69
return
0;
70
}
56
int
main
(
int
argc,
char
** argv ) {
…
}
71
// //
DGtal::HyperRectDomain
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
Definition
HyperRectDomain.h:100
DGtal::PolyscopeViewer
Definition
PolyscopeViewer.h:52
DGtal::PolyscopeViewer::show
void show() override
Starts the event loop and display of elements.
Definition
PolyscopeViewer.h:68
DGtal::SpaceND
Definition
SpaceND.h:96
MyPoint
Definition
testClone2.cpp:314
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
std
STL namespace.
main
int main()
Definition
testBits.cpp:56
domain
Domain domain
Definition
testProjection.cpp:88
examples
io
viewers
demo-kernel-2.cpp
Generated on
for DGtal by
1.14.0