Refactor depth property handling for regular surfaces

- Introduce RimRegularFileSurface::propertyName() as canonical property key for file-based surfaces.
- Change RimRegularSurface::setPropertyAsDepth() to void and remove existence check; error handling is now in updateSurfaceData().
- Update all usages to match new setPropertyAsDepth() behavior.
- Log and handle missing depth property in updateSurfaceData().
- Update tests to reflect new error handling approach.
- Minor includes and logging improvements.
This commit is contained in:
Magne Sjaastad committed 2026-01-20 18:21:56 +01:00
1 parent a6ce2b3a65
commit 4b9f94efb8
7 files changed
+25 -16

No files matched your search

@@ -151,6 +151,7 @@ RimSurface* RimSurfaceCollection::createSurfaceFromFile( const QString& fileName
{
auto regularFileSurface = new RimRegularFileSurface;
regularFileSurface->setFilePath( fileName );
regularFileSurface->setPropertyAsDepth( RimRegularFileSurface::propertyName() );
newSurface = regularFileSurface;
}
else