32#include "DGtal/base/Common.h"
33#include "DGtal/io/viewers/PolyscopeViewer.h"
34#include "DGtal/io/Color.h"
35#include "DGtal/helpers/StdDefs.h"
36#include "DGtal/shapes/Shapes.h"
51int main(
int argc,
char** argv )
55 trace.beginBlock (
"Testing class for PolyscopeViewer" );
57 Point p1( 14, 14, 14 );
58 Point p2( 27, 27, 27 );
62 viewer <<
Color(20, 20, 20, 50);
67 viewer <<
Color(250, 200,0, 50);
72 viewer << shape_set2 ;
76 viewer <<
Color(220, 20,20, 250);
77 viewer << shape_set3 ;
79 Point pp1( -1, -1, -2 );
82 Domain domain2( pp1, pp2 );
84 Point pp4( 2, -1, 5 );
85 Point pp5( -1, 2, 3 );
90 viewer << pp1 << pp2 << pp3;
93 viewer <<
Color(250, 0,0);
94 viewer << pp4 << pp5 ;
95 viewer <<
Color(250, 0,0, 100);
97 viewer <<
Color(250, 200,0, 20);
103 trace.emphase() <<
"Passed." << endl;
51int main(
int argc,
char** argv ) {
…}
Structure representing an RGB triple with alpha component.
void drawAsGrid(bool toggle=true)
void show() override
Starts the event loop and display of elements.
static void addNorm1Ball(TDigitalSet &aSet, const Point &aCenter, UnsignedInteger aRadius)
static void addNorm2Ball(TDigitalSet &aSet, const Point &aCenter, UnsignedInteger aRadius)
Z3i this namespace gathers the standard of types for 3D imagery.
DigitalSetSelector< Domain, BIG_DS+HIGH_BEL_DS >::Type DigitalSet
DGtal is the top-level namespace which contains all DGtal functions and types.