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 // //
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...
int main(int argc, char **argv)
DGtal is the top-level namespace which contains all DGtal functions and types.
MyPointD Point
Definition: testClone2.cpp:383
Domain domain