DGtal 1.3.0
Loading...
Searching...
No Matches
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
51using namespace std;
52using namespace DGtal;
53
55
56int main( int argc, char** argv )
57{
58 QApplication application(argc,argv);
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// //
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
virtual void show()
Overload QWidget method in order to add a call to updateList() method (to ensure that the lists are w...
DGtal is the top-level namespace which contains all DGtal functions and types.
STL namespace.
int main()
Definition: testBits.cpp:56
Domain domain