Commit Graph

27 Commits

Author SHA1 Message Date
jonjenssen
bbc659799e
Surfaces: Improve UI and usability for surfaces (#6290)
* Add reload command to surface context menus. Still missing the part that actually reloads the data.

* Add additional check for null ptr to avoid crash

* Surfaces: implements reload command in context menu to reload surface data from its source (i.e. a file).
Rename function names to better show what they are actually doing
Refactor a bit to give all RimSurface subclasses the same interface for reloading data.
Also makes sure new RimGridCaseSurface instances are shown by default in the view(s)

* Fixes by clang-format

* Include offset and slice index in surface name shown in project explorer

* Allow importing the same file multiple times

* Disable lighting for surfaces, as it doesn't look good for now. Fixes #6084

* Surfaces: Remove depth offset setting from view. Add slider to depth offset edit for surface

* Create new surfaces only on collection context menu

* Make sure tree view icon is enabled/disabled when the check box is clicked

* Fix depth offset for grid case surfaces, missing base function call.

* Make public method .. public.

* Add reload command to surface context menus. Still missing the part that actually reloads the data.

* Add additional check for null ptr to avoid crash

* Surfaces: implements reload command in context menu to reload surface data from its source (i.e. a file).
Rename function names to better show what they are actually doing
Refactor a bit to give all RimSurface subclasses the same interface for reloading data.
Also makes sure new RimGridCaseSurface instances are shown by default in the view(s)

* Fixes by clang-format

* Include offset and slice index in surface name shown in project explorer

* Allow importing the same file multiple times

* Disable lighting for surfaces, as it doesn't look good for now. Fixes #6084

* Surfaces: Remove depth offset setting from view. Add slider to depth offset edit for surface

* Create new surfaces only on collection context menu

* Make sure tree view icon is enabled/disabled when the check box is clicked

* Fix depth offset for grid case surfaces, missing base function call.

* Make public method .. public.

* Fixes by clang-format

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-08-11 11:34:34 +02:00
Magne Sjaastad
8cc167568c #6033 Surface Properties : Add legend and adjust update functions 2020-06-11 15:03:08 +02:00
Magne Sjaastad
c92b3e3024 Remove unused code 2020-06-11 15:03:08 +02:00
Magne Sjaastad
04311c64c6 Performance : Move construction of AABB tree out of parallel loop
Crash seen for regression test TestCase_Surfaces
2020-05-21 07:42:22 +02:00
Kristian Bendiksen
2f4ee076de Remove "set-but-unused" variables (generates warnings on gcc 7). 2020-05-20 13:45:59 +02:00
Magne Sjaastad
77734b8b57 #5379 Surface : Add grid case surface 2020-05-04 06:32:37 +02:00
Magne Sjaastad
f131ad77e1 Merge branch 'dev' into feature-analysis-plots-initial 2020-03-06 08:06:48 +01:00
Magne Sjaastad
8c485ab81c Fix several warnings and potentially uninitialized data 2020-03-03 20:22:03 +01:00
Jacob Støren
afea6963b2 Fix linux compile error and warnings 2020-03-03 09:52:53 +01:00
Magne Sjaastad
699a3f9b34 #5380 Surface : Modification of depth 2020-02-20 14:01:12 +01:00
Magne Sjaastad
c82df63e10 #5101 clang-format: Adjusted penalties
Use lower absolute values to improve control of behavior
2020-02-12 13:35:31 +01:00
Magne Sjaastad
10f0abc9b5 #5101 clang-format: Allow short functions on a single line
Use AllowShortFunctionsOnASingleLine: InlineOnly
2020-02-12 13:35:31 +01:00
Jacob Støren
c09cb6e26b #5429 Preallocate surface intersection trianglevertices 2020-01-31 15:08:32 +01:00
Jacob Støren
6e793fddc1 #5429 Parallelized surface intersections. 2020-01-31 15:01:53 +01:00
Jacob Støren
fbf1d12fb4 #5429 Pre-allocate cellCornerWeights array 2020-01-31 15:01:53 +01:00
Jacob Støren
c940472b4c #5429 Move work arrays outside loop to avoid reallocation within the loop 2020-01-31 15:01:53 +01:00
Jacob Støren
35a8a96b97 Increase polygon offset for surfaces to cope with GeoMech models 2020-01-30 12:04:26 +01:00
Jacob Støren
ddb5d0fd30 #5437 Use marching tets instead of marching cubes,
to make the cell border edges consistent
2020-01-30 12:03:35 +01:00
Jacob Støren
f1ab745097 #5418 Add picking on reservoir surfaces.
Added sorting of pick items based on tolerance and polygon offset unit.
2020-01-28 10:21:37 +01:00
Jacob Støren
de31cc3270 #5369 Final solution for surface intersection border : Use polygon offsett 2020-01-24 15:59:18 +01:00
Jacob Støren
896a0f067e #5369 First sensible border geometry.
Still not handling holes returned from clipper.
Int-point size (for clipper) implications not yet understood/investigated
2020-01-24 11:17:04 +01:00
Jacob Støren
27737b51bc #5358, #5317, #5019 Fix several issues regarding separate results definitions 2020-01-21 15:28:26 +01:00
Jacob Støren
d32db574cb #5318 Surface Intersection geometry with results 2020-01-17 13:24:25 +01:00
Jacob Støren
5b1b7e630a #5316 Prototype of results mapping on native surface nodes only 2020-01-17 13:24:24 +01:00
Jacob Støren
cd0edd084d #5285 Fix missing calculation of normals on reservoir surfaces 2020-01-09 08:59:11 +01:00
Jacob Støren
e6d96316d4 #5285 Visualization and update of Surfaces 2020-01-08 12:11:10 +01:00
Jacob Støren
26db8d7351 #5285 Surface import command Items and parsing infrastructure 2020-01-08 12:09:50 +01:00