18 #include <QApplication> 19 #include <itksys/SystemTools.hxx> 25 int main(
int argc,
char *argv[])
27 QApplication qtapplication(argc, argv);
32 stderr,
"Usage: %s [filename1] [filename2] ...\n\n", itksys::SystemTools::GetFilenameName(argv[0]).c_str());
50 for (i = 1; i < argc; ++i)
53 if (strcmp(argv[i],
"-testing") == 0)
74 auto geo = storage->ComputeBoundingGeometry3D(storage->GetAll());
79 if (sliceNaviController)
80 sliceNaviController->GetSlice()->SetPos(2);
86 renderWindow.resize(256, 256);
88 return qtapplication.exec();
virtual bool InitializeViews(const BaseGeometry *geometry, RequestType type=REQUEST_UPDATE_ALL, bool preserveRoughOrientationInWorldSpace=false)
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, const ReaderOptionsFunctorBase *optionsCallback=nullptr)
Load a file into the given DataStorage.