30 #include <QApplication>
31 #include <QHBoxLayout>
32 #include <itksys/SystemTools.hxx>
50 int main(
int argc,
char *argv[])
52 QApplication qtapplication(argc, argv);
57 stderr,
"Usage: %s [filename1] [filename2] ...\n\n", itksys::SystemTools::GetFilenameName(argv[0]).c_str());
75 for (i = 1; i < argc; ++i)
78 if (strcmp(argv[i],
"-testing") == 0)
88 if (dataNodes->empty())
90 fprintf(stderr,
"Could not open file %s \n\n", argv[i]);
100 QWidget toplevelWidget;
102 layout.setSpacing(2);
104 toplevelWidget.setLayout(&layout);
112 layout.addWidget(&renderWindow);
131 layout.addWidget(&view2);
149 layout.addWidget(&view3);
176 pointSetNode->SetData(pointSet);
179 ds->Add(pointSetNode);
184 interactor->LoadStateMachine(
"PointSet.xml");
188 interactor->SetEventConfig(
"PointSetConfig.xml");
192 interactor->SetDataNode(pointSetNode);
201 toplevelWidget.show();
205 if (strcmp(argv[argc - 1],
"-testing") != 0)
206 return qtapplication.exec();
itk::SmartPointer< Self > Pointer
DataNode * GetCurrentWorldGeometry2DNode()
virtual void SetDataStorage(mitk::DataStorage *storage) override
set the datastorage that will be used for rendering
int main(int argc, char *argv[])
Interactively add points.
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