33 #include <QHBoxLayout>
36 #include <QPushButton>
37 #include <QPushButton>
38 #include <QVBoxLayout>
42 Step6::Step6(
int argc,
char *argv[], QWidget *parent) : QWidget(parent)
57 QWidget *controlsParent =
new QWidget(
this);
58 this->layout()->addWidget(controlsParent);
60 QHBoxLayout *hlayout =
new QHBoxLayout(controlsParent);
61 hlayout->setSpacing(2);
63 QLabel *labelThresholdMin =
new QLabel(
"Lower Threshold:", controlsParent);
64 hlayout->addWidget(labelThresholdMin);
69 QLabel *labelThresholdMax =
new QLabel(
"Upper Threshold:", controlsParent);
70 hlayout->addWidget(labelThresholdMax);
77 QPushButton *startButton =
new QPushButton(
"start region growing", controlsParent);
78 hlayout->addWidget(startButton);
82 startButton->setEnabled(
false);
95 interactor->LoadStateMachine(
"PointSet.xml");
96 interactor->SetEventConfig(
"PointSetConfig.xml");
97 interactor->SetDataNode(pointSetNode);
129 for (i = 1; i < argc; ++i)
132 if (strcmp(argv[i],
"-testing") == 0)
138 if (dataNodes->empty())
140 fprintf(stderr,
"Could not open file %s \n\n", argv[i]);
157 QVBoxLayout *vlayout =
new QVBoxLayout(
this);
158 vlayout->setMargin(0);
159 vlayout->setSpacing(2);
162 QWidget *viewParent =
new QWidget(
this);
163 vlayout->addWidget(viewParent);
165 QHBoxLayout *hlayout =
new QHBoxLayout(viewParent);
166 hlayout->setMargin(0);
167 hlayout->setSpacing(2);
175 hlayout->addWidget(renderWindow);
193 hlayout->addWidget(view2);
212 hlayout->addWidget(view3);
itk::SmartPointer< Self > Pointer
DataNode * GetCurrentWorldGeometry2DNode()
Step6(int argc, char *argv[], QWidget *parent=nullptr)
Start region-grower at interactively added points.
virtual void SetDataStorage(mitk::DataStorage *storage) override
set the datastorage that will be used for rendering
virtual int GetThresholdMin()
virtual void StartRegionGrowing()
void Load(int argc, char *argv[])
mitk::Image::Pointer m_FirstImage
#define AccessByItk_1(mitkImage, itkImageTypeFunction, arg1)
itk::SmartPointer< const Self > ConstPointer
friend void RegionGrowing(itk::Image< TPixel, VImageDimension > *itkImage, Step6 *step6)
static RenderingManager * GetInstance()
Image class for storing images.
MITK implementation of the QVTKWidget.
virtual mitk::VtkPropRenderer * GetRenderer()
virtual int GetThresholdMax()
QLineEdit * m_LineEditThresholdMin
virtual void SetupWidgets()
mitk::PointSet::Pointer m_Seeds
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.
virtual void Initialize()
vtkRenderer * GetVtkRenderer() const
void RequestUpdateAll(RequestType type=REQUEST_UPDATE_ALL)
mitk::StandaloneDataStorage::Pointer m_DataStorage
QLineEdit * m_LineEditThresholdMax