22 #include <QApplication>
23 #include <itksys/SystemTools.hxx>
29 int main(
int argc,
char *argv[])
31 QApplication qtapplication(argc, argv);
35 fprintf(stderr,
"Usage: %s [filename] \n\n", itksys::SystemTools::GetFilenameName(argv[0]).c_str());
76 if (sliceNaviController)
77 sliceNaviController->GetSlice()->SetPos(0);
83 renderWindow.resize(256, 256);
87 if (strcmp(argv[argc - 1],
"-testing") != 0)
88 return qtapplication.exec();
virtual bool InitializeViews(const BaseGeometry *geometry, RequestType type=REQUEST_UPDATE_ALL, bool preserveRoughOrientationInWorldSpace=false)
int main(int argc, char *argv[])
Load image (nrrd format) and display it in a 2D view.
virtual void SetDataStorage(mitk::DataStorage *storage) override
set the datastorage that will be used for rendering
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.