setAttribute(Qt::WA_DeleteOnClose);
mTree->clear();
mTree->header()->resizeSection(0, 30);
+ mGroupBoxROI->setEnabled(false);
// Temporary disable "Load dicom" button
frame_4->hide();
//------------------------------------------------------------------------------
void vvToolROIManager::SelectedItemChangedInTree() {
-
// Search which roi is selected
QList<QTreeWidgetItem *> l = mTree->selectedItems();
if (l.size() == 0) {
QString values = QString("%1, %2, %3").arg(color.red()).arg(color.green()).arg(color.blue());
mROInameLabel->setStyleSheet("QLabel { background-color: rgb("+values+"); }");
+
+ mGroupBoxROI->setEnabled(true);
// is this needed ?
// actor->Update();
// Final rendering
//------------------------------------------------------------------------------
void vvToolROIManager::ChangeColor() {
+ if (mCurrentROIActor == NULL) return;
QColor color;
color.setRgbF(mCurrentROIActor->GetROI()->GetDisplayColor()[0],
mCurrentROIActor->GetROI()->GetDisplayColor()[1],
//------------------------------------------------------------------------------
void vvToolROIManager::ChangeContourColor() {
+ if (mCurrentROIActor == NULL) return;
QColor color;
color.setRgbF(mCurrentROIActor->GetContourColor()[0],
mCurrentROIActor->GetContourColor()[1],
//------------------------------------------------------------------------------
void vvToolROIManager::ChangeContourWidth(int n) {
+ if (mCurrentROIActor == NULL) return;
mCurrentROIActor->SetContourWidth(n);
mCurrentROIActor->UpdateColor();
mSlicerManager->Render();
//------------------------------------------------------------------------------
void vvToolROIManager::ChangeDepth(int n) {
+ if (mCurrentROIActor == NULL) return;
mCurrentROIActor->SetDepth(n);
mCurrentROIActor->UpdateImage();
mSlicerManager->Render();