DGtal  1.5.beta
viewer3D-1-points.cpp
1 
38 #include <iostream>
39 
40 #include "DGtal/base/Common.h"
41 #include "DGtal/helpers/StdDefs.h"
42 #include "DGtal/io/viewers/Viewer3D.h"
44 
45 using namespace std;
46 using namespace DGtal;
47 using namespace Z3i;
48 
49 
51 // Standard services - public :
52 
53 int main( int argc, char** argv )
54 {
55 
56  QApplication application(argc,argv);
57 
58  Point p1( 0, 0, 0 );
59  Point p2( 5, 5 ,5 );
60  Point p3( 2, 3, 4 );
61  Domain domain( p1, p2 );
62 
63  typedef Viewer3D<> MyViewer;
64  MyViewer viewer;
65  viewer.show();
66  viewer << domain;
67  viewer << p1 << p2 << p3;
68 
69  viewer<< MyViewer::updateDisplay;
70  return application.exec();
71 }
72 // //
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.
int main(int argc, char **argv)
Domain domain