#include <itksys/SystemTools.hxx>
#include <QApplication>
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);
}
if (image.IsNotNull())
{
tf->InitializeByMitkImage(image);
tf->GetColorTransferFunction()->AddRGBPoint(tf->GetColorTransferFunction()->GetRange()[0], 1.0, 0.0, 0.0);
tf->GetColorTransferFunction()->AddRGBPoint(tf->GetColorTransferFunction()->GetRange()[1], 1.0, 1.0, 0.0);
tf->GetScalarOpacityFunction()->AddPoint(0, 0);
tf->GetScalarOpacityFunction()->AddPoint(tf->GetColorTransferFunction()->GetRange()[1], 1);
}
}
renderWindow.show();
renderWindow.resize(256, 256);
if (strcmp(argv[argc - 1], "-testing") != 0)
return qtapplication.exec();
else
}