73int main(
int argc,
char** argv )
78 QApplication application(argc,argv);
80 viewer.setWindowTitle(
"simpleViewer");
85 Point p2( 125, 188, 0 );
86 Point p3( 30, 30, 30 );
88 std::string filename = testPath +
"samples/church-small.pgm";
89 std::string filename3 = testPath +
"samples/color64.ppm";
97 viewer << DGtal::AddTextureImage2DWithFunctor<imageNG, hueFct , Z3i::Space, Z3i::KSpace>(image2, huefct,
Viewer3D<>::RGBMode );
99 viewer << DGtal::AddTextureImage2DWithFunctor<imageCol, functors::Identity, Z3i::Space, Z3i::KSpace>(image3, defaultfunctor,
Viewer3D<>::RGBMode );
103 viewer <<
SetMode3D( image.domain().className(),
"BoundingBox" );
104 viewer << image.domain();
106 for(
unsigned int i= 0; i< 10; i++){
108 viewer <<
SetMode3D( image.className(),
"" );
110 viewer <<
SetMode3D( image.className(),
"BoundingBox" );
112 viewer <<
SetMode3D( image.className(),
"Grid" );
114 viewer <<
SetMode3D( image.className(),
"InterGrid" );
117 viewer << DGtal::UpdateImageData<imageNG>(i+3, image, i*50, i*50, i*50);
121 viewer << p1 << p2 << p3;
122 viewer << Viewer3D<>::updateDisplay;
125 bool res = application.exec();
126 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;