22 #include <QApplication>
23 #include <itksys/SystemTools.hxx>
29 int main(
int argc,
char *argv[])
31 QApplication qtapplication(argc, argv);
36 stderr,
"Usage: %s [filename1] [filename2] ...\n\n", itksys::SystemTools::GetFilenameName(argv[0]).c_str());
54 for (i = 1; i < argc; ++i)
57 if (strcmp(argv[i],
"-testing") == 0)
83 if (sliceNaviController)
84 sliceNaviController->GetSlice()->SetPos(2);
90 renderWindow.resize(256, 256);
94 if (strcmp(argv[argc - 1],
"-testing") != 0)
95 return qtapplication.exec();
virtual bool InitializeViews(const BaseGeometry *geometry, RequestType type=REQUEST_UPDATE_ALL, bool preserveRoughOrientationInWorldSpace=false)
virtual void SetDataStorage(mitk::DataStorage *storage) override
set the datastorage that will be used for rendering
int main(int argc, char *argv[])
Load one or more data sets (many image, surface and other formats) and display it in a 2D view...
MITKQTWIDGETS_EXPORT void QmitkRegisterClasses()
static RenderingManager * GetInstance()
MITK implementation of the QVTKWidget.
virtual mitk::VtkPropRenderer * GetRenderer()
virtual mitk::SliceNavigationController * GetSliceNavigationController()
static DataStorage::SetOfObjects::Pointer Load(const std::string &path, DataStorage &storage)
Load a file into the given DataStorage.