DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
viewer3D-1-points.cpp
1 
30 
31 #include <iostream>
32 #include <QtGui/qapplication.h>
33 #include "DGtal/io/viewers/Viewer3D.h"
34 #include "DGtal/base/Common.h"
35 #include "DGtal/helpers/StdDefs.h"
36 
38 
39 using namespace std;
40 using namespace DGtal;
41 using namespace Z3i;
42 
43 
45 // Standard services - public :
46 
47 int main( int argc, char** argv )
48 {
49 
50  QApplication application(argc,argv);
51 
52  Point p1( 0, 0, 0 );
53  Point p2( 5, 5 ,5 );
54  Point p3( 2, 3, 4 );
55  Domain domain( p1, p2 );
56 
57  Viewer3D viewer;
58  viewer.show();
59  viewer << domain;
60  viewer << p1 << p2 << p3;
61 
62  viewer<< Viewer3D::updateDisplay;
63  return application.exec();
64 }
65 // //
67 
68 
69 
70