James Turner
1515154e12
View::updateData becomes a private helper.
2016-02-17 21:25:39 +00:00
James Turner
5b81333768
View offset/target-offset props are tied
...
- make these View properties work like all the others, i.e
bound and unbound when the view changes.
2016-02-17 21:25:39 +00:00
James Turner
e404ebc38a
Sink more properties into View
2016-02-17 21:25:39 +00:00
James Turner
27d739084a
View-manager binds like a normal subsystem.
...
- no longer need the unusual init-bind order
2016-02-17 21:25:39 +00:00
James Turner
ae1d96cdfb
Move FOV property into View
2016-02-17 21:25:39 +00:00
James Turner
daf8c79705
View-Mgr absolute position is gone.
2016-02-17 21:25:39 +00:00
James Turner
65d5038962
Tie view orientations directly
...
- remove need for cached orientations in view-manager
2016-02-17 21:25:39 +00:00
James Turner
fa4a5e7a64
Better types for eye/target position
2016-02-17 21:25:39 +00:00
James Turner
03d5e55b57
Move data updating into the View class
2016-02-17 21:25:39 +00:00
James Turner
7391b9d76a
ViewManager::copyToCurrent is a no-op
2016-02-17 21:25:39 +00:00
James Turner
655ac851e0
Start moving view-manager logic into View
...
- work in progress, goal is to make copyToCurrent and most of
the bind/unbind logic sink into each specific View, avoiding all the
null pointer checks in view manager.
2016-02-17 21:25:39 +00:00
James Turner
d4d2121641
View can created itself from config properties
...
- use in view manager
- make View constructor private
2016-02-17 21:25:39 +00:00
James Turner
02ff854603
Re-Name FGViewer to flightgear::View
...
- avoids confusion with osgViewer and fgviewer application.
(source files to be renamed in a follow-up commit)
2016-02-17 21:25:39 +00:00
James Turner
e60d9a191e
Viewer: move camera-group to view manager
...
- also devirtualise many methods in FGViewer
2016-02-17 21:25:39 +00:00
Edward d'Auvergne
6c1934fcdf
Singularity avoidance fix for the flightgear Viewer.
...
This was reported at https://sourceforge.net/p/flightgear/codetickets/1740/ and
discussed at http://thread.gmane.org/gmane.games.flightgear.devel/77562 .
The flightgear Viewer no longer causes aircraft to disappear due to the
singularity at the poles resulting in an undefined azimuthal angle.
2015-05-03 20:04:33 +02:00
James Turner
874a923096
Remove legacy reference to draw-otw
2014-02-24 19:43:20 +00:00
ThorstenB
b577ec70fc
Add command to toggle fullscreen mode.
2012-11-17 23:07:00 +01:00
James Turner
4456f42e67
Make the view-manager and sound-manager independent.
...
Use properties to pass current-view information to the sound-manager, so there is no hard-coded dependency between the subsystems.
2012-09-25 09:17:00 +01:00
James Turner
029012b8b9
Kill off some globals.
...
Break some subsystem dependencies, by explicitly using properties to read the primary position, orientation and velocities. (Instead of directly accessing the primary model placement). This means a couple more globals can die.
2012-09-19 18:17:44 +01:00
ThorstenB
89b41395d8
Move viewer-related sources to separate folder.
...
Simple source directory clean-up, so "Main" folder contains fewer stuff
and the list of files in the editors a lot shorter.
2012-04-25 23:28:00 +02:00