32 #include <Qt/qapplication.h>
33 #include <Inventor/nodes/SoCube.h>
34 #include "DGtal/io/viewers/DGtalInventor.h"
35 #include "DGtal/io/viewers/IVViewer.h"
36 #include "DGtal/base/Common.h"
37 #include "DGtal/helpers/StdDefs.h"
38 #include "DGtal/shapes/Shapes.h"
42 using namespace DGtal;
52 bool testIVViewerSimpleWdw(
int argc,
char** argv )
54 unsigned int nbok = 0;
62 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
63 <<
"true == true" << std::endl;
73 bool testIVViewer(
int argc,
char** argv )
75 unsigned int nbok = 0;
79 string s =
"testIVViewer";
80 for (
int i = 1; i < argc; ++i )
81 s +=
" " +
string( argv[ i ] );
86 ivv.setCamera( 30.0, 25.0 );
88 ivv.setTitle( s.c_str() );
99 Point p1( -4, -4, -4 );
100 Point p2( 17, 17, 17 );
107 it != shape_set.end();
110 const Point & p = *it;
111 if ( ( p[ 0 ] < 0 ) || ( p[ 1 ] < 0 ) ||( p[ 2 ] < 0 ) )
120 nbok +=
true ? 1 : 0;
122 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
123 <<
"true == true" << std::endl;
132 int main(
int argc,
char** argv )
134 QApplication app( argc, argv );
137 for (
int i = 0; i < argc; ++i )
143 testIVViewer( argc, argv );
144 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;