Commit Graph

607 Commits

Author SHA1 Message Date
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
b6fb60115a Refactored after review 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
Magne Sjaastad
4377ac2a6b AppFwk : Remove sub menu action if sub menu is empty 2018-04-09 11:36:01 +02:00
Jacob Støren
3b724e07bd #2436 Add cube face tracking through the clipping methods used for intersection calculations 2018-04-05 07:41:29 +02:00
Magne Sjaastad
bffc50b826 Fix typo when generating light NNC colors 2018-03-24 14:44:08 +01:00
Bjørn Erik Jensen
1e8f1bb95e #2589 intersections. Show extrusion line fix 2018-03-12 15:14:22 +01:00
Magne Sjaastad
716bb3184b System : Replace tab with four spaces 2018-03-12 11:12:39 +01:00
Bjørn Erik Jensen
6ae619cc10 Fix Linux build by adding missing include (II) 2018-03-09 08:50:16 +01:00
Jacob Støren
0bdde36aa3 Merge #51 Legend background and #2478 Edge axis top into dev 2018-03-08 16:22:13 +01:00
Jacob Støren
7a9e53bdb1 #51 Avoid that legend background misses frame line on the right 2018-03-08 16:12:40 +01:00
Jacob Støren
7bd08067a9 #52 Add background to category legend 2018-03-08 11:38:51 +01:00
Jacob Støren
c258528dc5 #51 Add background to standard legends. Needed a separate legend implementation, now in caf. Cleaned up CategoryLegend to make it ready for the new background. 2018-03-08 11:20:27 +01:00
Magne Sjaastad
2e122d2ab3 #2554 Regression Test : Move serialization code into RiaRegressionTest 2018-03-07 09:30:15 +01:00
Jacob Støren
b13422d28b Guard against stepsize < 0 in tickMarkGenerator 2018-03-06 16:31:12 +01:00
Magne Sjaastad
ca0087eb55 #2536 Build System VizFwk : Use target_* and remove includes 2018-02-28 07:42:19 +01:00
Magne Sjaastad
233df05f68 #2536 Build System : Remove obsolete includes and update depending includes 2018-02-27 20:00:56 +01:00
Magne Sjaastad
3fbce58fa5 #2536 Build System AppFwk : Several updates
Simplified automoc
Use target_include_directories and target_link_libraries
Use CMake 2.8.12
2018-02-27 18:37:11 +01:00
Magne Sjaastad
65c3d6ff12 #2536 Build System AppFwk : Use target_include_directories 2018-02-27 17:19:23 +01:00
Magne Sjaastad
70faea56df AppFwk : Add missing initialization of variables and handling of switch statements 2018-02-23 21:29:54 +01:00
Magne Sjaastad
671818d72e AppFwk : Reorder initialization to match declaration 2018-02-23 19:57:09 +01:00
Magne Sjaastad
8bc3f06acd AppFwk : Add missing default handling in switch statements 2018-02-23 19:56:38 +01:00
Magne Sjaastad
309b1f0749 AppFwk Clang : Reorder initialization order to match declaration order 2018-02-23 19:43:48 +01:00
Magne Sjaastad
f9de64c538 AppFwk : Use freopen_s instead of freopen 2018-02-23 19:34:43 +01:00
Magne Sjaastad
cfb75ecc34 AppFwk (clang-tidy) : modernize-use-nullptr 2018-02-18 18:17:50 +01:00
Magne Sjaastad
3239c66f54 AppFwk (clang-tidy) : modernize-use-nullptr 2018-02-18 18:05:08 +01:00
Magne Sjaastad
950617af96 AppFwk : Fix assignment of float value 2018-02-18 17:42:28 +01:00
Magne Sjaastad
9184ef14ca AppFwk : Use 'g' instead of 'f' to create text from double values 2018-02-16 10:14:08 +01:00
Magne Sjaastad
2ff5842f28 Clang : Avoid special template helper on Windows 2018-02-12 20:12:04 +01:00
Jacob Støren
e76f8cfbcc #2337 Add an improved tick mark generator 2018-02-09 14:08:55 +01:00
Jacob Støren
bb53b926bf #2345 Add + and * operators to the tensor class, to make averaging possible. 2018-02-07 13:10:36 +01:00
Jacob Støren
0db32df1c4 Add comment to describe usage of the weighted blended transparency system 2018-02-03 19:33:27 +01:00
Magne Sjaastad
22c49ebe37 #2414 AppFwk : Cleaned up includes 2018-01-26 15:08:40 +01:00
Magne Sjaastad
7c7a54f5aa #2414 AppFwk : Do not overwrite field double value with UI text representation 2018-01-26 15:08:40 +01:00
Magne Sjaastad
1419865b89 #2411 AppFwk : Increase precision when writing real numbers to XML 2018-01-26 15:08:40 +01:00
Jacob Støren
5640f91b68 #2412 2D Navigation only for Intersectino Views 2018-01-26 14:33:32 +01:00
Jacob Støren
369afcfbbb Caf: Set point of interes when doing "Zoom All" 2018-01-26 11:43:43 +01:00
Jacob Støren
c7185649ce Caf: Guard against crash when point of interest is not set correctly 2018-01-26 11:43:27 +01:00
Magne Sjaastad
76b84cbb17 #2361 AppFwk : Make sure field of FilePath supports space, add more tests 2018-01-17 14:32:47 +01:00
Magne Sjaastad
c0d9ef67fa #2361 AppFwk : Make sure identical strings are separated by semicolon 2018-01-17 14:32:47 +01:00
Magne Sjaastad
bf1b755dc8 #2361 AppFwk : Improve robustness of load and save of FilePath 2018-01-12 14:56:05 +01:00
Jacob Støren
57b521c6d9 AppFwk: Add a guarded interface pointer class 2018-01-12 12:01:04 +01:00
Magne Sjaastad
e99cc66325 #2361 AppFwk : Test application adjustments to allow save and load of project 2018-01-11 13:50:26 +01:00
Magne Sjaastad
97822cbd2c #2361 AppFwk : Template specialization of stream operator for vector of FilePath 2018-01-11 13:50:26 +01:00