Commit Graph

63 Commits

Author SHA1 Message Date
Magne Sjaastad
11de63a5ef Fix Linux build 2018-11-21 10:55:57 +01:00
Gaute Lindkvist
9145e6011d #3697 Fix zoom issues with ortographic views 2018-11-20 13:49:19 +01:00
Magne Sjaastad
b584ab905c AppFwk : Activate more warnings 2018-09-27 21:36:52 +02: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
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
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
cfb75ecc34 AppFwk (clang-tidy) : modernize-use-nullptr 2018-02-18 18:17:50 +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
Arne Morten Kvarving
ab4619bf74 fixed: add missing cmath include statements
highlighted by building with gcc6
2017-09-29 18:24:28 +02:00
Bjørnar Grip Fjær
76f55c211f #1031 Fix parallel projection for linked Eclipse and GeoMech cases 2017-04-26 15:18:14 +02:00
Magne Sjaastad
b2e9d3fe11 #1292 Fixed CppCheck Issues in AppFwk viewer/vizExtensions/CommonCode 2017-03-06 19:22:32 +01:00
Magne Sjaastad
cae5c42f68 #279 Bind offscreen frame buffer before reading pixel data 2016-11-01 10:12:11 +01:00
Magne Sjaastad
5f484abc2d #279 Create QImage from offscreen frame buffer object 2016-11-01 09:34:51 +01:00
Jacob Støren
78b29fc3a0 Fixed zoom all bounding box issue related to 1209c908e5
Used explicit mainRendering instead of renderSequence->firstRendering()
2016-09-07 15:54:12 +02:00
Jacob Støren
1209c908e5 Fixed clip plane related assert on linux. Hopefully the final fix of trouble related to : ca6e650a72 and 80985785 and 0128baddff
The fundamental problem was that the quad rendering was included in the boundingbox.
2016-09-07 12:52:40 +02:00
Jacob Støren
fcace2a92b Merge Formation Names coloring work and FlowDiagnostics integration 2016-09-06 14:17:50 +02:00
Magne Sjaastad
f2f6cfd77c #279 Access single quad rendering as member of caf::Viewer 2016-09-05 13:43:10 +02:00
Jacob Støren
ca6e650a72 #279 Fixed paralell projection nearplane bug introduced by 8098578545 2016-09-05 11:53:56 +02:00
Magne Sjaastad
8098578545 #279 Workaround for invalid near plane location detected on Linux 2016-09-01 13:02:33 +02:00
Magne Sjaastad
0128baddff #279 Use frame buffer objects for snapshots when available, otherwise use grabFrameBuffer() 2016-08-31 17:34:31 +02:00
Jacob Støren
c1f5ec5bdf #168 Finalized. Zoom along ray is now updated to cope with parallel projection. The code in the different navigations are cleaned up a bit, and alligned 2016-08-17 10:54:15 +02:00
Jacob Støren
0f3fe3ac1b Linux compile warning 2016-08-17 08:52:22 +02:00
Jacob Støren
d13d0775b4 #168 Fixed zoom along ray problem making the camera end up with the scene behind it. 2016-08-16 13:41:10 +02:00
Jacob Støren
0eace5579a #168 Fixed shader based light in parallel projection
Added the light position as a uniform in the standard light model shader snippet in the effect generator.
Set the uniform default value on the shader program where ever it is used.
Added an override global uniform set on the viewer to control the light position, and to set it far behind camera when in parallel projection.
2016-08-16 10:58:07 +02:00
Jacob Støren
a3499152a5 #168 Improved the front and back clipping plane calculation in relation to parallel projection.
Added a margin of 20% to account for inaccuracies. Not new for far-plane, but became missing in the first commit regarding parallel projection.
2016-08-15 16:11:38 +02:00
Jacob Støren
c529e18351 #168 Switch to directional Fixed Function light when in parallel mode 2016-08-15 14:27:46 +02:00
Jacob Støren
79a025e06f #168 Zoom All improved to handle parallel projection 2016-08-15 08:57:22 +02:00
Jacob Støren
5cdf307d4e WIP: Improved support for parallel projection. #168
Near plane negative to show everything
ZoomAlongRay now works for parallel projection (only implemented in
ceetron Plus)
2016-08-15 08:55:28 +02:00
Magne Sjaastad
d5050e96b8 AppFwk : Early exit if no scene is present 2016-07-06 16:59:13 +02:00
Magne Sjaastad
e8cf78c2af (#710) Clamp currentFrameIndex to available frame indices 2015-12-17 14:40:01 +01:00
Jacob Støren
6db74465b6 Removed debug output 2015-12-14 09:53:59 +01:00
Jacob Støren
1d9481f09b (#695) Unintentional picking fixed.
Fixed in viewer, keeping the concept of the navigation policies to not flag the
the events as handled.
Made this clearer by adding an interface to turn event consumption on or off on the
navigation policies.
2015-12-10 09:39:55 +01:00
Jacob Støren
f1574bc774 (#168) Consolidated zoom along ray to prepare for handling ortho view 2015-12-10 09:39:49 +01:00
Jacob Støren
f3eb304d66 Caf: Added constructors/destructors to navigation policies 2015-12-10 09:39:35 +01:00
Jacob Støren
8f92dfd0c0 Caf: WIP: Created a base class with trackball related navigation stuff.
Refactored cad and ceetron plus nav to use the common base
2015-12-10 09:39:28 +01:00
Jacob Støren
afe84ce75e (#168) Parallel walk navigation working. Still things to fix 2015-12-10 09:39:06 +01:00
Jacob Støren
bbb0a5e993 (#168) Wip: Parallel projection. Basics in place 2015-12-10 09:33:58 +01:00
Magne Sjaastad
a2bfc12c57 (#674) Clicking on items in 3D view selects corresponding item in tree view/property panel
Clicking on 3D Info box and legends for cell result, separate fault
result and cell edge selects corresponding items in tree view
2015-12-07 09:59:19 +01:00
Magne Sjaastad
469ffdf920 Fwk : Fixed typo 2015-11-23 13:31:28 +01:00
Jacob Støren
c4aed9c487 (#166) Geomech cross sections in place. Refactor of frame/scene/model usage on top level. 2015-11-23 11:25:47 +01:00
Jacob Støren
4d0c1d17b4 cafViewer: Add static model(s) to mainScene as well. 2015-11-23 11:21:58 +01:00
Magne Sjaastad
98bdb6ea6e (#266) Move far clipping plane further away 2015-11-17 13:19:32 +01:00
Magne Sjaastad
c6454300d8 (#266) Added static model interface 2015-11-17 13:19:15 +01:00
Magne Sjaastad
6e56ee28c2 (#266) Functions to be called from a constructor cannot be virtual
Improved immediate mode to be applied on all renderings
2015-11-17 13:18:30 +01:00
Magne Sjaastad
121ee80295 (#266) Cleaned up access to boundingBox 2015-11-17 13:18:27 +01:00