Use sliders to manipulate surface plane extent

This commit is contained in:
Magne Sjaastad
2024-08-22 18:55:59 +02:00
parent 0518e594ce
commit a89fe80de3
3 changed files with 43 additions and 7 deletions

View File

@@ -54,9 +54,7 @@ void RicNewDepthSurfaceFeature::onActionTriggered( bool isChecked )
bb.expand( 0.1 * bb.extent().z() );
auto lowerDepthLimit = -bb.max().z();
auto upperDepthLimit = -bb.min().z();
surface->setDepthSliderLimits( lowerDepthLimit, upperDepthLimit );
surface->setAreaOfInterest( bb.min(), bb.max() );
}
surface->loadDataIfRequired();