1 #include <QApplication> 3 #include <Visualization/ShapeWorksStudioApp.h> 8 int main(
int argc,
char** argv) {
11 std::cerr <<
"ShapeWorksStudio initializing...\n";
13 QApplication app(argc, argv);
15 QSharedPointer<ShapeWorksStudioApp> studio_app =
17 QResource::registerResource(RSCS_FILE);
18 studio_app->setWindowIcon(QIcon(ICON_FILE));
22 studio_app->initialize_vtk();
27 studio_app->open_project(QString(argv[1]));
30 }
catch (itk::ExceptionObject & excep) {
31 std::cerr << excep << std::endl;
32 }
catch (std::exception e) {
33 std::cerr <<
"Exception caught!" << std::endl;
34 std::cerr << e.what() <<
"\n";
Main ShapeWorksStudio window.