18 #include <QApplication> 19 #include <itksys/SystemTools.hxx> 25 int main(
int argc,
char *argv[])
27 QApplication qtapplication(argc, argv);
31 fprintf(stderr,
"Usage: %s [filename] \n\n", itksys::SystemTools::GetFilenameName(argv[0]).c_str());
66 auto geo = ds->ComputeBoundingGeometry3D(ds->GetAll());
72 if (sliceNaviController)
73 sliceNaviController->GetSlice()->SetPos(0);
79 renderWindow.resize(256, 256);
81 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.
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, const ReaderOptionsFunctorBase *optionsCallback=nullptr)
Load a file into the given DataStorage.