27 #include <QApplication>
28 #include <QHBoxLayout>
29 #include <itksys/SystemTools.hxx>
46 int main(
int argc,
char *argv[])
48 QApplication qtapplication(argc, argv);
53 stderr,
"Usage: %s [filename1] [filename2] ...\n\n", itksys::SystemTools::GetFilenameName(argv[0]).c_str());
71 for (i = 1; i < argc; ++i)
74 if (strcmp(argv[i],
"-testing") == 0)
89 QWidget toplevelWidget;
93 toplevelWidget.setLayout(&layout);
101 layout.addWidget(&renderWindow);
123 layout.addWidget(&view2);
145 layout.addWidget(&view3);
161 toplevelWidget.show();
165 if (strcmp(argv[argc - 1],
"-testing") != 0)
166 return qtapplication.exec();
DataNode * GetCurrentWorldGeometry2DNode()
int main(int argc, char *argv[])
Use several views to explore data.
virtual 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).
itk::SmartPointer< const Self > ConstPointer
MITK implementation of the QVTKWidget.
virtual mitk::VtkPropRenderer * GetRenderer()
virtual void SetMapperID(const MapperSlotId mapperId) override
Set the MapperSlotId to use.
static DataStorage::SetOfObjects::Pointer Load(const std::string &path, DataStorage &storage)
Load a file into the given DataStorage.
vtkRenderer * GetVtkRenderer() const