#include <QApplication>
#include <QHBoxLayout>
#include <itksys/SystemTools.hxx>
int main(
int argc,
char *argv[])
{
QApplication qtapplication(argc, argv);
if (argc < 2)
{
fprintf(
stderr, "Usage: %s [filename1] [filename2] ...\n\n", itksys::SystemTools::GetFilenameName(argv[0]).c_str());
return 1;
}
int i;
for (i = 1; i < argc; ++i)
{
if (strcmp(argv[i], "-testing") == 0)
continue;
if (dataNodes->empty())
{
fprintf(stderr, "Could not open file %s \n\n", argv[i]);
exit(2);
}
}
QWidget toplevelWidget;
QHBoxLayout layout;
layout.setSpacing(2);
layout.setMargin(0);
toplevelWidget.setLayout(&layout);
layout.addWidget(&renderWindow);
layout.addWidget(&view2);
layout.addWidget(&view3);
pointSetNode->SetData(pointSet);
ds->Add(pointSetNode);
interactor->LoadStateMachine("PointSet.xml");
interactor->SetEventConfig("PointSetConfig.xml");
interactor->SetDataNode(pointSetNode);
toplevelWidget.show();
if (strcmp(argv[argc - 1], "-testing") != 0)
return qtapplication.exec();
else
}