23 #include <QApplication> 24 #include <QHBoxLayout> 25 #include <itksys/SystemTools.hxx> 42 int main(
int argc,
char *argv[])
44 QApplication qtapplication(argc, argv);
49 stderr,
"Usage: %s [filename1] [filename2] ...\n\n", itksys::SystemTools::GetFilenameName(argv[0]).c_str());
67 for (i = 1; i < argc; ++i)
70 if (strcmp(argv[i],
"-testing") == 0)
85 QWidget toplevelWidget;
89 toplevelWidget.setLayout(&layout);
97 layout.addWidget(&renderWindow);
119 layout.addWidget(&view2);
141 layout.addWidget(&view3);
157 toplevelWidget.show();
159 return qtapplication.exec();
virtual DataNode * GetCurrentWorldPlaneGeometryNode()
Get a DataNode pointing to a data object containing the current 2D-worldgeometry. ...
vtkRenderer * GetVtkRenderer() const
int main(int argc, char *argv[])
Use several views to explore data.
void SetDataStorage(mitk::DataStorage *storage) override
set the datastorage that will be used for rendering
MITKQTWIDGETS_EXPORT void QmitkRegisterClasses()
Tests for type compatibility (dynamic_cast).
MITK implementation of the QVTKWidget.
virtual mitk::VtkPropRenderer * GetRenderer()
void SetMapperID(const MapperSlotId mapperId) override
Set the MapperSlotId to use.
static DataStorage::SetOfObjects::Pointer Load(const std::string &path, DataStorage &storage, const ReaderOptionsFunctorBase *optionsCallback=nullptr)
Load a file into the given DataStorage.