24 #include <QMessageBox>
29 m_Controls.setupUi(
this);
30 m_Controls.m_InformationWidget->hide();
33 assert(m_ToolManager);
40 m_Controls.m_cbSurfaceNodeSelector->SetPredicate(m_SurfacePredicate);
42 connect(m_Controls.m_pbStamp, SIGNAL(clicked()),
this, SLOT(
OnStamp()));
43 connect(m_Controls.m_cbShowInformation, SIGNAL(toggled(
bool)),
this, SLOT(
OnShowInformation(
bool)));
44 m_Controls.m_InformationWidget->hide();
53 m_DataStorage = storage;
54 m_Controls.m_cbSurfaceNodeSelector->SetDataStorage(m_DataStorage);
59 mitk::DataNode *surfaceNode = m_Controls.m_cbSurfaceNodeSelector->GetSelectedNode();
63 QMessageBox::information(
this,
"Surface Stamp",
"Please load and select a surface before starting some action.");
68 assert(m_ToolManager);
74 QMessageBox::information(
this,
"Surface Stamp",
"Please load and select a surface before starting some action.");
82 QMessageBox::information(
83 this,
"Surface Stamp",
"Please load and select a segmentation before starting some action.");
91 QMessageBox::information(
92 this,
"Surface Stamp",
"Please load and select a segmentation before starting some action.");
96 QApplication::setOverrideCursor(QCursor(Qt::BusyCursor));
104 QApplication::restoreOverrideCursor();
105 MITK_ERROR <<
"Exception caught: " << e.GetDescription();
106 QMessageBox::information(
107 this,
"Surface Stamp",
"Could not stamp the selected surface.\n See error log for details.\n");
111 QApplication::restoreOverrideCursor();
119 m_Controls.m_InformationWidget->show();
121 m_Controls.m_InformationWidget->hide();
Class for storing surfaces (vtkPolyData).
Data management class that handles 'was created by' relations.
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
mitk::DataStorage::Pointer m_DataStorage
An object of this class represents an exception of MITK. Please don't instantiate exceptions manually...
static RenderingManager * GetInstance()
static Pointer New(const mitk::NodePredicateBase *_arg)
static Pointer New(const char *_arg)
static Pointer New(const char *_arg)
LabelSetImage class for handling labels and layers in a segmentation session.
void RequestUpdateAll(RequestType type=REQUEST_UPDATE_ALL)
Class for nodes of the DataTree.