DGtal
1.5.beta
demo-kernel-2.cpp
Go to the documentation of this file.
1
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/Viewer3D.h"
48
50
51
using namespace
std;
52
using namespace
DGtal
;
53
55
56
int
main
(
int
argc,
char
** argv )
57
{
58
QApplication application(argc,argv);
59
typedef
DGtal::SpaceND<3, DGtal::int32_t>
MySpace;
60
typedef
MySpace::Point
MyPoint;
61
typedef
HyperRectDomain<MySpace>
MyDomain;
62
MyPoint p1( 0, 0, 0 );
63
MyPoint p2( 5, 5 ,5 );
64
MyPoint p3( 2, 3, 4 );
65
MyDomain
domain
( p1, p2 );
66
Viewer3D<>
viewer;
// for 3D visualization
67
viewer.
show
();
68
viewer <<
domain
;
69
viewer << p1 << p2 << p3;
70
viewer<< Viewer3D<>::updateDisplay;
71
return
application.exec();
72
}
73
// //
DGtal::HyperRectDomain
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
Definition:
HyperRectDomain.h:100
DGtal::SpaceND
Definition:
SpaceND.h:96
DGtal::Viewer3D
Definition:
Viewer3D.h:132
DGtal::Viewer3D::show
virtual void show()
Overload QWidget method in order to add a call to updateList() method (to ensure that the lists are w...
main
int main(int argc, char **argv)
Definition:
demo-kernel-2.cpp:56
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Point
MyPointD Point
Definition:
testClone2.cpp:383
domain
Domain domain
Definition:
testProjection.cpp:88
examples
io
viewers
demo-kernel-2.cpp
Generated on Fri Dec 20 2024 12:44:17 for DGtal by
1.9.1