32#include "DGtal/base/Common.h"
33#include "DGtal/io/viewers/Viewer3D.h"
34#include "DGtal/io/DrawWithDisplay3DModifier.h"
35#include "DGtal/io/Color.h"
36#include "DGtal/helpers/StdDefs.h"
37#include "DGtal/shapes/Shapes.h"
52int main(
int argc,
char** argv )
55 QApplication application(argc,argv);
57 viewer.setWindowTitle(
"simpleViewer");
64 Point p1( 14, 14, 14 );
65 Point p2( 27, 27, 27 );
79 viewer << shape_set2 ;
84 viewer << shape_set3 ;
89 Point pp1( -1, -1, -2 );
93 Domain domain2( pp1, pp2 );
95 Point pp4( 2, -1, 5 );
96 Point pp5( -1, 2, 3 );
102 viewer << pp1 << pp2 << pp3;
107 viewer << pp4 << pp5 ;
116 viewer << domain2 << Display3D<Space, KSpace>::updateDisplay;
119 bool res = application.exec();
120 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
Structure representing an RGB triple with alpha component.
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
std::string className() const
std::string className() const
static void addNorm1Ball(TDigitalSet &aSet, const Point &aCenter, UnsignedInteger aRadius)
static void addNorm2Ball(TDigitalSet &aSet, const Point &aCenter, UnsignedInteger aRadius)
void beginBlock(const std::string &keyword="")
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.
Modifier class in a Display3D stream. Useful to choose your own mode for a given class....