myViewFrame->RemoveActor( myPreviewActor );
myPreviewActor->Delete();
}
- renderViewFrame( myStudyFrame->getStudy() );
}
//=======================================================================
else // relative -> absolute
pos = minPos * ( 1. - pos ) + maxPos * pos;
}
- PositionSpn->setMinValue( isRelativePos ? 0. : minPos );
- PositionSpn->setMaxValue( isRelativePos ? 1. : maxPos );
+ if ( isRelativePos ) {
+ minPos = 0.;
+ maxPos = 1.;
+ }
+ PositionSpn->setMinValue( minPos );
+ PositionSpn->setMaxValue( maxPos );
+ PositionSpn->setLineStep(( maxPos - minPos ) / 10. );
PositionSpn->setValue( pos );
}
void VisuGUI_Plot3DDlg::accept()
{
+ if ( !VisuGUI::CheckActiveStudyLock() ) {
+ reject();
+ return;
+ }
if (myIsoPane->check() && myScalarPane->check()) {
if ( !isModal() ) {
VISU::Plot3D_i* prs = myIsoPane->GetPrs();