#TBD Sector export: Add declarative refinement regions#13896
Draft
#TBD Sector export: Add declarative refinement regions#13896
Conversation
e0209b4 to
35dc661
Compare
Promote sector-export refinement from inline wizard fields to first-class PDM objects so users can create, edit, and preview refinement regions in the 3D view before opening the export dialog. - Add RimRefinementRegion (IJK bounds + embedded RicRefinementSettings for uniform/non-uniform refinement) and RimRefinementRegionCollection (attached to each RimEclipseView, persists in the project file). - Render each active region as a wireframe box in the 3D view via the new RivRefinementRegionPartMgr, reusing RivBoxGeometryGenerator. - Add RicNewRefinementRegionFeature; context menu on view/collection/region. - Replace the sector-export wizard's Refinement page with a multi-select of regions defined in the tree. The combiner enforces disjoint per-axis projections across selected regions and surfaces a clear error on the wizard page if two regions disagree on a shared I/J/K index.
…change RicRefinementSettings::fieldChangedByUi previously only called updateConnectedEditors(), so changing the refinement mode or any of the non-uniform sub-fields did not refresh the 3D preview. Add an ancestor lookup that schedules a display-model rebuild on the enclosing view when the settings are embedded in a RimRefinementRegion. The lookup returns null in the standalone sector-export wizard, so that flow is unchanged.
updateCellResultColor() called mapper->mapToTextureCoord() directly, so sentinel values clamped to the legend's min/max color instead of the grey undefined color. Match RivDefaultResultToTextureMapper::getTexCoord by short-circuiting HUGE_VAL, NaN, and both signs of infinity to texture coord (0, 1.0), which targets the legend's undefined row.
…n list RicRefinementSettings no longer exposes a None/Uniform/Non-Uniform top-level mode. Deleting the region replaces NONE; LINEAR_EQUAL_SPLIT with all three axes enabled replaces UNIFORM(N,M,P) — the two paths produce identical cumulative fractions via RigNonUniformRefinement. Dropping the enum removes the UNIFORM/NONE branches and the uniform-count fields (RefinementCountI/J/K) entirely. - RefinementMode enum, RefinementModeEnum typedef, refinementMode() and refinement() accessors, and m_refinementMode / m_refinementCountI/J/K fields removed. - effectiveRefinement() always delegates to nonUniformRefinement(). - addToUiOrdering drops the radio and the uniform-count row; the sub-mode dropdown is relabelled "Refinement Mode" and shown unconditionally. - LINEAR_EQUAL_SPLIT moved to the top of the enum (and kept as setDefault) so new regions pick it up both as the default and the first listed item. - m_nonUniformEnableI/J/K default flipped to true so a new region previews a 2x2x2 refinement without extra clicks. - validateSettings drops the NONE early-return and the UNIFORM branch. - RicExportSectorModelUi: set heightHint=100 on the "Regions to Include in Export" tree-selection editor so the dialog box is less oversized. No external callers reference the removed enum or accessors; no project-file migration is needed since the feature has not shipped.
35dc661 to
c1ef3fb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Promote sector-export refinement from inline wizard fields to first-class PDM objects so users can create, edit, and preview refinement regions in the 3D view before opening the export dialog.