double window = mSlicerManagers[index]->GetColorWindow();
double level = mSlicerManagers[index]->GetColorLevel();
+ double fusWindow = mSlicerManagers[index]->GetFusionWindow();
+ double fusLevel = mSlicerManagers[index]->GetFusionLevel();
+
+ double overWindow = mSlicerManagers[index]->GetOverlayColorWindow();
+ double overLevel = mSlicerManagers[index]->GetOverlayColorLevel();
+
for (unsigned int i = 0; i < mSlicerManagers.size(); i++) {
if (mSlicerManagers[i] == NULL)
continue;
mSlicerManagers[i]->SetColorWindow(window);
mSlicerManagers[i]->SetColorLevel(level);
mSlicerManagers[i]->SetPreset(WL_USER);
+ mSlicerManagers[i]->SetFusionWindow(fusWindow);
+ mSlicerManagers[i]->SetFusionLevel(fusLevel);
+ mSlicerManagers[i]->SetOverlayColorWindow(overWindow);
+ mSlicerManagers[i]->SetOverlayColorLevel(overLevel);
mSlicerManagers[i]->Render();
}
}
if (disableFusionSignals)
return;
- fusionOpacitySpin->setValue(opacityHorizontalSlider->value());
+ fusionOpacitySpin->setValue(opacityHorizontalSlider->value());
fusionThresSpin->setValue(thresOpacityHorizontalSlider->value());
emit FusionPropertyUpdated(opacityHorizontalSlider->value(), thresOpacityHorizontalSlider->value(), fusionColorMapComboBox->currentIndex(),
//----------------------------------------------------------------------------
void vvSlicer::SetOverlayColorWindow(double window)
{
- mOverlayMapper->SetWindow(window);
+ if(mOverlayMapper)
+ mOverlayMapper->SetWindow(window);
}
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
void vvSlicer::SetOverlayColorLevel(double level)
{
- mOverlayMapper->SetLevel(level);
+ if(mOverlayMapper)
+ mOverlayMapper->SetLevel(level);
}
//----------------------------------------------------------------------------