Commit Graph
21 Commits
Author SHA1 Message Date
Gaute Lindkvist edf23b5265 Remove epsilon guard in setAutomaticRanges for RimLegendConfig. 2018-04-13 15:33:37 +02:00
Gaute Lindkvist 4c5b90f363 Add get methods for drawStyle and coloringStyle for Rim3dWellLogCurve 2018-04-13 15:33:37 +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 1bb1b3004e Generalize the interpolation in RigWellPath
* Make it possible to interpolate any vector along the well path,
  not just the well path points. This way it can be used for normals.
* The interpolation line needs to be a weighted sum of vectors from
  the two closest points rather than the previous point + a segment,
  which only works for points.
* If used for normals, the end result *has to be normalized*
2018-04-13 14:56:18 +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
Gaute Lindkvist 2cc93fb09d 3D Well Log Curves: Command to Delete curve #2667
* Add delete command with explicit delete feature class.
2018-04-10 10:57:04 +02:00
Gaute Lindkvist a73526f85b Remove compile warning for OverlayScalarMapperLegend
* apply explicit unsigned int -> float cast.
2018-04-10 08:36:20 +02:00
Gaute Lindkvist dd38543dd2 Fix Ubuntu build (#2696)
* std::ceil -> cvf::Math::ceil to avoid header issues.
2018-04-10 08:31:03 +02:00
Gaute Lindkvist ab736ab46b #2693. Fix overlap of category legend with other legends.
* CategoryLegend should not use the matchedWidth. They have their own columns.
  * Change shifts to using minimumWidth instead.
2018-04-09 14:30:21 +02:00
Gaute Lindkvist b488d99f81 #2696 Fix ubuntu build after Legend updates.
* Was missing <cmath> to get std::ceil, but cvf::Math also has ceil, so switch
   to that.
2018-04-09 14:19:43 +02:00
Gaute Lindkvist 3116a4a223 Shifted pure virtual updateLegends to RiuViewerToViewInterface 2018-04-09 13:14:19 +02:00
Gaute Lindkvist b6fb60115a Refactored after review 2018-04-09 13:14:19 +02:00
Gaute Lindkvist fe56375be6 Added toggle option for legends. 2018-04-09 13:14:19 +02:00
Gaute Lindkvist e93f79790e Make sure Ternary legends also expand and renamed width method. 2018-04-09 13:14:19 +02:00
Gaute Lindkvist 38aa447dcd Unify the width of all visible legends.
* Calculate the minimum width to fit the content before the render pass.
  * Set the actual width of all the legends to the largest of the minimum widths.
  * This resizes the legends to always be the same size and reduces the size of you remove
     the widest legend.
2018-04-09 13:14:19 +02:00
Gaute Lindkvist 63ffade452 Set background and frame color from the view plus update frame margins. 2018-04-09 13:14:19 +02:00
Gaute Lindkvist 507229f84b Fixed background color setting for legends and refactored Legend class hierarchy
* Added a new cafTitledOverlayFrame as a base-class for all ResInsight legend classes
  * Inherits cvf::OverlayItem
2018-04-09 13:14:19 +02:00
Gaute Lindkvist 054263b94a Apply guard to additional MohrsCirclePlot use 2018-04-04 11:19:59 +02:00
Gaute Lindkvist 8b3f980079 Fix crash on selection when there's no MohrsCirclePlot
* Check if the pointer is valid before dereferencing
2018-04-02 10:17:09 +02:00