Commit Graph

906 Commits

Author SHA1 Message Date
Jacob Støren
43082b4952 #2871 Fault visibility toggle now controls fault label visibility in 2D intersection views also. 2018-05-08 16:26:15 +02:00
Gaute Lindkvist
043eaf7db6 Make new vertex creation more robust
* Require that the length of the new segment is shorter than the *current*
  distance to the end of the original segment, rather than the length of the
  complete original segment.
2018-05-08 09:09:36 +02:00
Gaute Lindkvist
0d8a034886 Fix Linux build by replacing a HUGE_VAL with std::numeric_limits::infinity
* This build problem was introduced when fixing a crash issue that came from
  replacing HUGE_VAL with std::numeric_limits::max
2018-05-07 19:34:22 +02:00
Jacob Støren
20a1e52323 #2850 Fix missing fault-label toggle and color setting awareness in 2D intersection view 2018-05-07 18:06:09 +02:00
Gaute Lindkvist
9125619c41 3D Well Log Curves: Fix crash bug due to wrong value used to force invalid values. 2018-05-07 16:07:13 +02:00
Gaute Lindkvist
c7bf6172f3 #2828 Allow setting curve domain range outside the range of the curve values.
* Note that this implementation simply removes vertices that are outside the range.
* It would look far better to insert vertices at the boundary when a segment is heading
   out of range. This is more complicated.
2018-05-07 14:47:24 +02:00
Gaute Lindkvist
57b3ad82a8 #2791 Fix tensor vector colors so principal to has a single color. 2018-05-07 11:17:51 +02:00
Gaute Lindkvist
78326bb19c #2703 An initial implementation of filled drawing style with problems remaining.
* New vertices are successfully created in the intersections between the
  curve and draw surface triangles
* New vertices are also inserted along the bottom edge of the filled curve.
* However, new vertices will still need to be inserted in the lines connecting the
  top of the curve and the bottom where they intersect with the triangles.
* The option for filled curves remain hidden in the GUI. See #2860.

# Please enter the commit message for your changes. Lines starting
2018-05-07 11:14:25 +02:00
Gaute Lindkvist
fba437f595 #2791 Rename misspelled "principalNumber" in TensorResultPartMgr 2018-05-07 10:13:17 +02:00
Jacob Støren
d413df0aeb #2730 Category and Scalarmapper Legend: Improve the preferred size 2018-05-04 13:33:06 +02:00
Gaute Lindkvist
23c90bd6eb #2846 Fix bad curve projection
* Project existing points onto triangles first and make sure we choose the right triangle by
   sorting possible projections by distance.
 * Also allow some tolerance for the inside check.
 * Create the new vertices by projecting the curve segment vector onto each triangle plane
   before looking for intersections with the triangle edges.
2018-05-03 13:39:39 +02:00
Gaute Lindkvist
944baee00e Fix comment in DrawSurfaceGenerator 2018-05-03 13:39:39 +02:00
Gaute Lindkvist
ffccb078e8 #2841 Fix bad result when z-clipping is applied. 2018-05-02 14:01:50 +02:00
Gaute Lindkvist
a37957824a Clean up 3D well log generator code. Renamed Grid -> DrawSurface and fixed spelling. 2018-05-02 12:10:05 +02:00
Gaute Lindkvist
6e3d989b2f #2825 Fix curve stitching issues against 3dwell log curve background. 2018-05-02 11:51:36 +02:00
Gaute Lindkvist
1f44ea1ea3 Make draw plane selection for curves be unrelated to 3d Track (somewhat related to #2825).
* Makes more sense user wise and makes for better code.
* Helps refactor code to relate grids to curves so the curves can have access to the grid
   it is being drawn on.
* This will help fix #2825 by being able to project curve points onto the exact triangle geometry.
2018-05-02 11:51:22 +02:00
Gaute Lindkvist
7307b97466 #2823 Switching curve plane does not work
* The previous drawable and geometry was kept if switching to a result type without
  valid points.
* The drawable is then stuck in position until switching back to a result
  type that has valid points.
* This commit fixes this by clearing the geometry every time you draw.
* TODO: cache values when it is possible to do so.
2018-05-02 10:22:37 +02:00
Magne Sjaastad
a0e4f71138 #2715 Add direct access to RigFemPartCollection from a GeoMechView 2018-04-25 12:45:58 +02:00
Magne Sjaastad
9ac3d806e2 #2663 Rename 2018-04-23 23:06:21 +02:00
Magne Sjaastad
a9b1883dc8 #2663 Zoom All : Check if completions intersects bounding box of model 2018-04-23 22:52:44 +02:00
Gaute Lindkvist
c5e58df751 3d Well Log Curves (#2783): Enable picking with the track background switched off.
* Add part to the model, but set the color mask false, depth test/write off.
* Result is an invisible part that is present for picking.
2018-04-23 11:35:55 +02:00
Jacob Støren
851e68ac31 #2663 Code adjustment to avoid creating a geometry generator when not needed 2018-04-23 10:31:07 +02:00
Gaute Lindkvist
803b6b8179 3D Well Log Curves(#2676): Enable pick selection of the 3D Tracks and curves 2018-04-23 08:01:32 +02:00
Jacob Støren
3957027b4b #2657 Final cleanup and refactoring of legends size system 2018-04-20 16:59:10 +02:00
Jacob Støren
03ec76c20a #2657 Add a preferredSize method to the legends 2018-04-20 16:59:10 +02:00
Jacob Støren
1f8d4437bf Remove the unused, unnecessary "position" from several methods and the overlay layout struct 2018-04-20 16:59:10 +02:00
Magne Sjaastad
9e40ba39c8 #2684 Well CF Visualization: Option to turn off CF visualization on closed connections 2018-04-19 22:28:22 +02:00
Magne Sjaastad
e6781e2de4 #2683 Well CF Visualization: Refactor computation of connection factor location 2018-04-19 21:49:01 +02:00
Magne Sjaastad
f365dae014 #2683 Well CF Visualization: Add missing null pointer test 2018-04-19 20:29:24 +02:00
Magne Sjaastad
7156779e3d Rename 2018-04-19 20:20:57 +02:00
Magne Sjaastad
c16c10e774 #2683 Well CF Visualization: Show connection factors on closed connections 2018-04-19 20:18:15 +02:00
Magne Sjaastad
7676ba4f20 #2683 Refactoring : Use range based for and rename 2018-04-19 16:20:43 +02:00
Magne Sjaastad
39cb9326e4 #2683 Well CF Visualization: Sim Well pipe color should be gray for closed existing connections 2018-04-19 16:13:18 +02:00
Gaute Lindkvist
bf5d95d873 3D Well Log Curves (#2672): Max and min value control for each curve. 2018-04-19 13:43:12 +02:00
Gaute Lindkvist
5d89ad3a6d 3D Well Log Curves (#2674): Show what the value axis direction is 2018-04-19 13:43:12 +02:00
Bjørn Erik Jensen
e468227dfe Fix Linux warning 2018-04-18 14:13:37 +02:00
Gaute Lindkvist
01a1f660e7 3D Well Log Curves (#2746): Handle set scale.
* Transform to display coordinates *before* calculating normals and generating curves.
2018-04-18 11:33:04 +02:00
Gaute Lindkvist
3303350193 Rename member variable in RivWellPathsPartManager to get rid of spelling error. 2018-04-18 11:33:04 +02:00
Magne Sjaastad
3bc85ce794 #2727 Legends : Rename to RimRegularLegendConfig 2018-04-18 10:10:39 +02:00
Gaute Lindkvist
d7204363a0 3D Well Log Curves (#2673): Consolidate the draw plane position control. 2018-04-18 08:38:15 +02:00
Gaute Lindkvist
9da3f09782 3D Well Log Curves (#2668): Implement Draw-plane width control
* Apply a factor between 0.25 and 2.5 times the characteristic cell size
* Make the offset from the pipe scale with the plane width up to a maximum offset.
* Organise the CurveCollection settings into two groups.
2018-04-17 13:44:03 +02:00
Gaute Lindkvist
1180c199b4 3D Well Log Curves (#2669): Implement control of single color.
* Set a cycled default whenever a curve is added to a collection.
2018-04-17 13:44:03 +02:00
Gaute Lindkvist
501e80b1ad 3D Well Log Curves(#2671): Make curve draw plane background optional 2018-04-17 13:44:03 +02:00
Gaute Lindkvist
092624799e 3D Well Log Curves: Renaming of the term normals in curve/grid-generation
* Make it more obvious we are talking about the normals to the 3D well log curve.
2018-04-17 13:44:03 +02:00
Gaute Lindkvist
5e6613d428 3D Well Log Curves (#2671): Apply white background to curve draw plane. 2018-04-17 13:44:02 +02:00
Jacob Støren
5769ba45f1 #2739 Normal intersection box mesh lines now not labled as fault mesh lines 2018-04-17 07:42:41 +02:00
Gaute Lindkvist
fd63ae7531 3D Well path plots: clean up some indentation and remove an unnecessary epsilon 2018-04-13 15:33:37 +02:00
Gaute Lindkvist
b48adbbaa9 3D Well log curves: Use the new generalized interpolation for normals
* Don't have to perform the normal generation again for grid points.
2018-04-13 14:56:19 +02:00
Gaute Lindkvist
e8b006d068 3D Well Log Curves (#2671): Split normals, border and surface into several drawables.
* Also create a closed LINES_LOOP out of the mesh border.
  * This will facilitate using different effects on the different parts.
    i.e. solid border and white surface background.
2018-04-13 14:55:44 +02:00
Gaute Lindkvist
6e0b7e2305 Improve 3D Well path plots
* Always generate in up-direction and rotate to left/right/down
* Generate a "dominant direction" by interrogating the whole curve, not
  just the first and last item.
* Improve maths:
  - Generate a projection plane spanned by UP and the dominant direction.
  - Project the tangent onto this projection plane.
  - Generate normal as the cross product between the projected tangent and
    the normal to the projection plane.
  - Rotate the normal into left/right/down if required.
2018-04-13 14:55:44 +02:00