Commit 92c14e2f authored by cyrush's avatar cyrush

recreated gray out logic for SR poly threshold spin box

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@4691 18c085ea-50e0-402c-830e-de6fd14e8384
parent ccce8fa8
......@@ -776,17 +776,25 @@ QvisRenderingWindow::UpdateOptions(bool doAll)
// Programmer: Jeremy Meredith
// Creation: August 29, 2007
//
// Modifications:
// Cyrus Harrison, Mon Jul 28 15:23:05 PDT 2008
// I added code to enable/disable the scalable auto threshold spin box based
// on the scalable rendering mode.
//
// ****************************************************************************
void
QvisRenderingWindow::UpdateWindowSensitivity()
{
bool scalableAlways =
renderAtts->GetScalableActivationMode() == RenderingAttributes::Always;
bool scalableAuto =
renderAtts->GetScalableActivationMode() == RenderingAttributes::Auto;
bool shadowOn = renderAtts->GetDoShadowing();
bool depthCueingOn = renderAtts->GetDoDepthCueing();
bool stereoOn = renderAtts->GetStereoRendering();
bool specularOn = renderAtts->GetSpecularFlag();
scalrenAutoThreshold->setEnabled(scalableAuto);
shadowToggle->setEnabled(scalableAlways);
shadowStrengthSlider->setEnabled(scalableAlways && shadowOn);
shadowStrengthLabel->setEnabled(scalableAlways && shadowOn);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment