DGtal
1.3.0
Loading...
Searching...
No Matches
examples
io
viewers
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
// //
DGtal::Display3D::updateDisplay
@ updateDisplay
Definition:
Display3D.h:249
DGtal::HyperRectDomain< Space >
DGtal::PointVector< dim, Integer >
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...
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition:
ClosedIntegerHalfPlane.h:49
std
STL namespace.
main
int main()
Definition:
testBits.cpp:56
domain
Domain domain
Definition:
testProjection.cpp:88
Generated on Sun Nov 27 2022 15:15:33 for DGtal by
1.9.5