50 # pragma warning(disable: 4267 4311) 56 #include <QApplication> 58 #include "VDPMSynthesizerViewerWidget.hh" 66 int main(
int argc,
char **argv)
69 QApplication::setColorSpec( QApplication::CustomColor );
70 QApplication app(argc,argv);
72 #if !defined(__APPLE__) 76 if ( !QGLFormat::hasOpenGL() ) {
77 std::cerr <<
"This system has no OpenGL support.\n";
82 VDPMSynthesizerViewerWidget*
83 w =
new VDPMSynthesizerViewerWidget(0,
"VDPMSynthesizerViewer");
90 w->open_vd_prog_mesh(argv[1]);
93 std::cerr <<
"Usage: vdpmsynthesizer <vdpm-file.spm>\n";
99 <<
"Press Minus : Coarsen mesh\n" 100 <<
" Plus : Refine mesh\n" 101 <<
" Home : Coarsen down to base mesh\n" 102 <<
" End : Refine up to finest mesh\n" 103 <<
" a : Switch off / on adaptive refinement\n"