]> git.mxchange.org Git - simgear.git/log
simgear.git
11 years agohla: Remove obsolete typedefs.
Mathias Froehlich [Sun, 2 Dec 2012 13:49:30 +0000 (14:49 +0100)]
hla: Remove obsolete typedefs.

11 years agoFirst working version of DOM like Canvas event handling
Thomas Geymayer [Sun, 2 Dec 2012 12:19:35 +0000 (13:19 +0100)]
First working version of DOM like Canvas event handling

 - Now it is possible to attach listeners to canvas
   elements and also the canvas itself, which get
   called upon different mouse events (Currently
   only basic mouse events supported. click/dblclick
   etc. are missing)

11 years agoFixed incomplete copy&paste issue.
ThorstenB [Sat, 1 Dec 2012 10:07:10 +0000 (11:07 +0100)]
Fixed incomplete copy&paste issue.

11 years ago#946: some libraries not found on Ubuntu/Debian
ThorstenB [Sat, 1 Dec 2012 09:59:57 +0000 (10:59 +0100)]
#946: some libraries not found on Ubuntu/Debian
Ubuntu/Debian introduced "multiarch" library directories, which is
unsupported by CMake <= 2.8.10. Add manual search paths as a workaround.
Currently it is only needed for libsvn, but it is needed for any lib
which is converted to the new directory standard.

11 years agoLook for Boost 1.52.0 and OpenRTI under Windows
Frederic Bouvier [Sat, 1 Dec 2012 09:59:58 +0000 (10:59 +0100)]
Look for Boost 1.52.0 and OpenRTI under Windows

11 years agohla: Use a different extrapolation method for HLALocation.
Mathias Froehlich [Sat, 1 Dec 2012 06:59:56 +0000 (07:59 +0100)]
hla: Use a different extrapolation method for HLALocation.

11 years agoSharedPtr: Avoid double dereference when calling clear().
Mathias Froehlich [Sat, 1 Dec 2012 06:58:38 +0000 (07:58 +0100)]
SharedPtr: Avoid double dereference when calling clear().

11 years agoAdd method canvas::Group::getElementById
Thomas Geymayer [Thu, 29 Nov 2012 23:06:17 +0000 (00:06 +0100)]
Add method canvas::Group::getElementById

 - canvas::Group: New method to get a (possibly
   nested) child by its id.
 - nasal::Ghost: Also support recursive parent
   hashes.

11 years agoFix some compiler warnings. size_t/int/unsigned conversions and extra ';'
Thomas Geymayer [Thu, 29 Nov 2012 19:20:40 +0000 (20:20 +0100)]
Fix some compiler warnings. size_t/int/unsigned conversions and extra ';'

11 years agoUse better method names and add comments
Thomas Geymayer [Thu, 29 Nov 2012 16:52:52 +0000 (17:52 +0100)]
Use better method names and add comments

11 years agoAdd methods to get arguments passed to function from Nasal
Thomas Geymayer [Thu, 29 Nov 2012 00:23:15 +0000 (01:23 +0100)]
Add methods to get arguments passed to function from Nasal

11 years agoSGThread: compile under MSVC
Christian Schmitt [Wed, 28 Nov 2012 17:29:15 +0000 (18:29 +0100)]
SGThread: compile under MSVC

11 years agoSGThread: Add capability to get current thread id
Peter Sadrozinski [Wed, 28 Nov 2012 00:00:00 +0000 (19:00 -0500)]
SGThread: Add capability to get current thread id

11 years agoSimplify/Make VS happy
Thomas Geymayer [Tue, 27 Nov 2012 14:14:54 +0000 (15:14 +0100)]
Simplify/Make VS happy

11 years agoCanvas: Prepare for DOM Level 2 like event model.
Thomas Geymayer [Tue, 27 Nov 2012 12:46:48 +0000 (13:46 +0100)]
Canvas: Prepare for DOM Level 2 like event model.

11 years agocppbind: Automatic conversion of derived ghosts and some cleanup/fixes
Thomas Geymayer [Tue, 27 Nov 2012 12:01:46 +0000 (13:01 +0100)]
cppbind: Automatic conversion of derived ghosts and some cleanup/fixes

11 years agoMake SGLockingQueue::pop usable.
James Turner [Sun, 25 Nov 2012 22:36:15 +0000 (22:36 +0000)]
Make SGLockingQueue::pop usable.

Since there's no external lock, it was impossible to check the queue was non-empty before a pop, without a race condition. To avoid this, tolerate an empty queue and return a default constructed value.

11 years agohla: For setting data types recurse into array data elements.
Mathias Froehlich [Sun, 25 Nov 2012 21:24:51 +0000 (22:24 +0100)]
hla: For setting data types recurse into array data elements.

11 years agohla: Use an implementation file for SGLocation.
Mathias Froehlich [Sun, 25 Nov 2012 20:08:04 +0000 (21:08 +0100)]
hla: Use an implementation file for SGLocation.

11 years agosphere: Implement sphere inside sphere.
Mathias Froehlich [Sat, 24 Nov 2012 08:54:21 +0000 (09:54 +0100)]
sphere: Implement sphere inside sphere.

11 years agohla: Route failures in message processing into the HLA layer.
Mathias Froehlich [Sat, 24 Nov 2012 08:54:21 +0000 (09:54 +0100)]
hla: Route failures in message processing into the HLA layer.

11 years agohla: Make use of SGLocation.
Mathias Froehlich [Sat, 24 Nov 2012 08:54:21 +0000 (09:54 +0100)]
hla: Make use of SGLocation.

11 years agomath: Implement SGLocation.
Mathias Froehlich [Sat, 24 Nov 2012 08:54:21 +0000 (09:54 +0100)]
math: Implement SGLocation.

New simple class to encapsulate a cartesian position
and orientation pair with few handy methods.

11 years agoChange logging class for tie/untie messages.
ThorstenB [Fri, 23 Nov 2012 19:44:17 +0000 (20:44 +0100)]
Change logging class for tie/untie messages.
It's enough to see them in "general".

11 years agoAdd logging class for navaid systems.
ThorstenB [Fri, 23 Nov 2012 19:41:03 +0000 (20:41 +0100)]
Add logging class for navaid systems.

11 years ago#942 segfault with --log-level=debug when random buildings enabled
ThorstenB [Thu, 22 Nov 2012 20:55:11 +0000 (21:55 +0100)]
#942 segfault with --log-level=debug when random buildings enabled

11 years agoImplement runway guard lights and tweak the hold short lights animation a bit
Christian Schmitt [Thu, 22 Nov 2012 15:42:56 +0000 (16:42 +0100)]
Implement runway guard lights and tweak the hold short lights animation a bit

11 years agoExtend CanvasSystemAdapter to provide access to Nasal gcSave and gcRelease
Thomas Geymayer [Wed, 21 Nov 2012 23:54:44 +0000 (00:54 +0100)]
Extend CanvasSystemAdapter to provide access to Nasal gcSave and gcRelease

11 years agoFix compiler error with disabled sound support.
ThorstenB [Wed, 21 Nov 2012 19:17:58 +0000 (20:17 +0100)]
Fix compiler error with disabled sound support.
("source" is undefined in SGSampleGroup::stop).
Also fixes two related compiler warnings (unused var "sample").

11 years agoAllow canvas::Placements to have own properties
Thomas Geymayer [Wed, 21 Nov 2012 12:05:19 +0000 (13:05 +0100)]
Allow canvas::Placements to have own properties

11 years agoSGPropertyNode::fireCreatedRecursive: don't fire for node itself by default
Thomas Geymayer [Wed, 21 Nov 2012 10:57:53 +0000 (11:57 +0100)]
SGPropertyNode::fireCreatedRecursive: don't fire for node itself by default

11 years agoModernise the mat lib header, remove 'using std'
James Turner [Tue, 20 Nov 2012 17:10:13 +0000 (17:10 +0000)]
Modernise the mat lib header, remove 'using std'

11 years agoWork on ENABLE_SOUND.
James Turner [Tue, 20 Nov 2012 12:20:21 +0000 (12:20 +0000)]
Work on ENABLE_SOUND.

Restructure SGSampleGroup, to make #ifdef-ing the OpenAL calls easier. No functionality change.

11 years agoKeep (deprecated) SGTime::update method for a while
ThorstenB [Mon, 19 Nov 2012 22:42:51 +0000 (23:42 +0100)]
Keep (deprecated) SGTime::update method for a while
allowing dependent projects to adapt.

11 years agoRemove duplicate members in SGSampleQueue.
James Turner [Mon, 19 Nov 2012 15:33:53 +0000 (15:33 +0000)]
Remove duplicate members in SGSampleQueue.

Remove duplicate members shared by SGSoundSample and SGSampleQueue (which inherits from it). Change SGSoundSample to expose some members as protected data for access by the sample-queue, and hence share nearly all the methods. Also remove 'inline' keyword from virtual methods.

11 years agoGet Canvas/PropertyBasedElement by name
Thomas Geymayer [Sun, 18 Nov 2012 15:26:50 +0000 (16:26 +0100)]
Get Canvas/PropertyBasedElement by name

11 years agoFix HTTP test for revised POST semantics.
James Turner [Sat, 17 Nov 2012 19:51:57 +0000 (19:51 +0000)]
Fix HTTP test for revised POST semantics.

11 years agoTweak HTTP handling for POST requests.
James Turner [Sat, 17 Nov 2012 18:08:38 +0000 (18:08 +0000)]
Tweak HTTP handling for POST requests.

Tolerate slightly malformed request URLs (no slash following the host specified), and use a better check when POST-ing to decide the request-body data source.

11 years agoFix for old gcc which got broken by fix for VS
Thomas Geymayer [Fri, 16 Nov 2012 15:49:35 +0000 (16:49 +0100)]
Fix for old gcc which got broken by fix for VS

11 years agoFix for VS bug
Thomas Geymayer [Fri, 16 Nov 2012 14:49:43 +0000 (15:49 +0100)]
Fix for VS bug

11 years agoNasal bindings: Always pass object by reference
Thomas Geymayer [Fri, 16 Nov 2012 11:24:47 +0000 (12:24 +0100)]
Nasal bindings: Always pass object by reference

11 years agoOne more fix for old gcc
Thomas Geymayer [Thu, 15 Nov 2012 22:31:18 +0000 (23:31 +0100)]
One more fix for old gcc

11 years agoFix compile errors for old gcc
Thomas Geymayer [Thu, 15 Nov 2012 21:17:43 +0000 (22:17 +0100)]
Fix compile errors for old gcc

11 years agoCanvas/C++ bindings: automatically detect dynamic type of polymorphic exposed classes
Thomas Geymayer [Thu, 15 Nov 2012 20:17:33 +0000 (21:17 +0100)]
Canvas/C++ bindings: automatically detect dynamic type of polymorphic exposed classes

11 years agoWork around Visual Studio bug
Thomas Geymayer [Tue, 13 Nov 2012 11:35:12 +0000 (12:35 +0100)]
Work around Visual Studio bug

11 years agoC++/Nasal bindings: allow registering free function as member
Thomas Geymayer [Mon, 12 Nov 2012 22:28:00 +0000 (23:28 +0100)]
C++/Nasal bindings: allow registering free function as member

11 years agoMissing include and more doxygen improvements
Thomas Geymayer [Mon, 12 Nov 2012 12:57:10 +0000 (13:57 +0100)]
Missing include and more doxygen improvements

11 years agoFix file headers
Thomas Geymayer [Mon, 12 Nov 2012 11:25:08 +0000 (12:25 +0100)]
Fix file headers

11 years agoAdd nasal::Ghost class for exposing C++ classes to Nasal
Thomas Geymayer [Mon, 12 Nov 2012 11:11:27 +0000 (12:11 +0100)]
Add nasal::Ghost class for exposing C++ classes to Nasal

11 years agohla: Remove HLADataElement::Path based attribute handling.
Mathias Froehlich [Sun, 11 Nov 2012 15:56:22 +0000 (16:56 +0100)]
hla: Remove HLADataElement::Path based attribute handling.

11 years agoGeoff McLane: realpath for Windows using _fullpath.
ThorstenB [Sun, 11 Nov 2012 18:26:51 +0000 (19:26 +0100)]
Geoff McLane: realpath for Windows using _fullpath.
Also switch cygwin to use POSIX call.

11 years agohla: Use HLADataElementIndices for HLAInteractionClass.
Mathias Froehlich [Sun, 11 Nov 2012 15:54:43 +0000 (16:54 +0100)]
hla: Use HLADataElementIndices for HLAInteractionClass.

11 years agohla: Use HLADataElementIndices for HLALocation.
Mathias Froehlich [Sun, 11 Nov 2012 13:26:14 +0000 (14:26 +0100)]
hla: Use HLADataElementIndices for HLALocation.

11 years agohla: Fixes for the data element index implementation.
Mathias Froehlich [Sun, 11 Nov 2012 09:47:09 +0000 (10:47 +0100)]
hla: Fixes for the data element index implementation.

11 years agoAdd from_nasal helper and fix to_nasal for std::vector.
Thomas Geymayer [Sat, 10 Nov 2012 13:18:27 +0000 (14:18 +0100)]
Add from_nasal helper and fix to_nasal for std::vector.

11 years agogz wrapper to write and read "container files".
ThorstenB [Sat, 10 Nov 2012 09:44:19 +0000 (10:44 +0100)]
gz wrapper to write and read "container files".
Packs arbitrary data (strings, property trees, binary blobs, ...) into a
single file.
Use this for storing/loading user-data only, not for distribution files
(scenery, aircraft etc).

11 years agoProper fix for gzfilebuf choking on some files.
ThorstenB [Sat, 10 Nov 2012 09:12:01 +0000 (10:12 +0100)]
Proper fix for gzfilebuf choking on some files.
When reading a new block of data, and the first byte of the new block is
0xff (_signed_ char -1), then this must be converted to _integer_ 0xff
(+255), not -1 - which would indicate an error condition (EOF==-1). All
valid _data_ character must be returned as non-negative, see
streambuf::underflow spec, or compare with
http://www.opensource.apple.com/source/zlib/zlib-12/zlib/contrib/iostream/zfstream.cpp
or
http://www.raspberryginger.com/jbailey/minix/html/zfstream_8cpp-source.html

11 years agogzfilebuf choked when reading large, heavily compressed files.
ThorstenB [Fri, 9 Nov 2012 21:02:34 +0000 (22:02 +0100)]
gzfilebuf choked when reading large, heavily compressed files.
Apparently a 4K buf isn't enough. 64K seem much better ;-).
Real solution may be an adaptive buffer size in gzfilebuf.

11 years agoFor clouds, use a RNG seed that only changes every 10 minutes.
Stuart Buchanan [Fri, 9 Nov 2012 20:25:53 +0000 (20:25 +0000)]
For clouds, use a RNG seed that only changes every 10 minutes.

This allows multi-process deploymentes to keep their clouds in sync.

11 years agoSome basic C++/Nasal binding helpers
Thomas Geymayer [Fri, 9 Nov 2012 18:28:27 +0000 (19:28 +0100)]
Some basic C++/Nasal binding helpers

 - Add nasal::to_nasal for converting different C++ types
   to the according Nasal types.
 - Add nasal::Hash, an OOP wrapper around Nasal hashes.

11 years agoWorkaround for VS10 Bug/Remove superfluous class qualification
Thomas Geymayer [Fri, 9 Nov 2012 09:36:42 +0000 (10:36 +0100)]
Workaround for VS10 Bug/Remove superfluous class qualification

11 years agoCanvas cleanup and restructuring
Thomas Geymayer [Thu, 8 Nov 2012 23:04:50 +0000 (00:04 +0100)]
Canvas cleanup and restructuring

 - Add some methods for easier using the Canvas from C++
 - Add some documentation to Nasal

11 years agohla: Introduce HLADataElementIndex.
Mathias Froehlich [Thu, 8 Nov 2012 20:31:16 +0000 (21:31 +0100)]
hla: Introduce HLADataElementIndex.

11 years agohla: catch exceptions in processMessages()
Mathias Froehlich [Thu, 8 Nov 2012 20:31:16 +0000 (21:31 +0100)]
hla: catch exceptions in processMessages()

11 years agohla: Use raw pointers for HLAFederate::_insert methods.
Mathias Froehlich [Thu, 8 Nov 2012 20:31:16 +0000 (21:31 +0100)]
hla: Use raw pointers for HLAFederate::_insert methods.

11 years agohla: Warn about creating an object class or interactions classes twice.
Mathias Froehlich [Thu, 8 Nov 2012 20:31:16 +0000 (21:31 +0100)]
hla: Warn about creating an object class or interactions classes twice.

11 years agoRemove osg header from non simgearscene file.
Mathias Froehlich [Thu, 8 Nov 2012 20:31:16 +0000 (21:31 +0100)]
Remove osg header from non simgearscene file.

11 years agoDisable build options unsupported for Windows.
ThorstenB [Thu, 8 Nov 2012 19:01:38 +0000 (20:01 +0100)]
Disable build options unsupported for Windows.

11 years agozfstream: use the correct buffer size
ThorstenB [Wed, 7 Nov 2012 23:04:48 +0000 (00:04 +0100)]
zfstream: use the correct buffer size

11 years agosgstream: implement gzipped output file stream (gzofstream)
ThorstenB [Wed, 7 Nov 2012 22:44:44 +0000 (23:44 +0100)]
sgstream: implement gzipped output file stream (gzofstream)
Add missing output implementation for gzfilebuf.

11 years agozfstream: fixed mixed white spaces
ThorstenB [Wed, 7 Nov 2012 22:37:35 +0000 (23:37 +0100)]
zfstream: fixed mixed white spaces
otherwise unchanged

11 years agoTest for, and fix, materials handling in BTG code.
James Turner [Wed, 7 Nov 2012 21:10:00 +0000 (21:10 +0000)]
Test for, and fix, materials handling in BTG code.

It's possible (and happens!) to have less than 2^16 vertices or tex-coords, but more than 2^15 objects (tris) with the same materials. This was breaking our version 7 vs version 10 detection logic. Pete found the issue, I'm simply committing a version of his fix.

11 years agoFix SGPropertyNode tests
Thomas Geymayer [Wed, 7 Nov 2012 08:31:56 +0000 (09:31 +0100)]
Fix SGPropertyNode tests

11 years agoFix property find_last_child/addChild.
ThorstenB [Tue, 6 Nov 2012 23:53:32 +0000 (00:53 +0100)]
Fix property find_last_child/addChild.
Initial "addChild" should have index #0 (not #1).
Also extend test cases.
(Test case shows addChild(append=false) isn't working as expected!?)

11 years agoJenkins has some problems with bind and lambdas. Let's try it with ordinary function...
Thomas Geymayer [Tue, 6 Nov 2012 18:34:23 +0000 (19:34 +0100)]
Jenkins has some problems with bind and lambdas. Let's try it with ordinary function pointers...

11 years agoClean up Canvas element creation
Thomas Geymayer [Tue, 6 Nov 2012 17:48:00 +0000 (18:48 +0100)]
Clean up Canvas element creation

11 years agoSIMGEAR_HEADLESS define is not needed anymore
Thomas Geymayer [Mon, 5 Nov 2012 17:05:24 +0000 (18:05 +0100)]
SIMGEAR_HEADLESS define is not needed anymore

11 years agoMove parseColor to scene/util
Thomas Geymayer [Mon, 5 Nov 2012 16:58:24 +0000 (17:58 +0100)]
Move parseColor to scene/util

parseColor is used to parse a CSS color string into an osg::Vec4
which is only available in SimGearScene. If someone needs the
function also in SimGear headless mode we have to think about
where to better place this function.

11 years agoProper headless build fix
Thomas Geymayer [Mon, 5 Nov 2012 12:35:06 +0000 (13:35 +0100)]
Proper headless build fix

11 years agoFix windows and headless build
Thomas Geymayer [Mon, 5 Nov 2012 11:58:21 +0000 (12:58 +0100)]
Fix windows and headless build

11 years agoNo need to link to ShivaVG anymore
Thomas Geymayer [Sun, 4 Nov 2012 22:48:51 +0000 (23:48 +0100)]
No need to link to ShivaVG anymore

11 years agoInclude ShivaVG into libSimGearScene
Thomas Geymayer [Sun, 4 Nov 2012 19:00:53 +0000 (20:00 +0100)]
Include ShivaVG into libSimGearScene

11 years agoCommited too fast...
Thomas Geymayer [Sun, 4 Nov 2012 18:22:37 +0000 (19:22 +0100)]
Commited too fast...

11 years agoRemove OpenVG dependency from header file
Thomas Geymayer [Sun, 4 Nov 2012 18:21:33 +0000 (19:21 +0100)]
Remove OpenVG dependency from header file

11 years agoFix adding ShivaVG include directory
Thomas Geymayer [Sun, 4 Nov 2012 15:51:07 +0000 (16:51 +0100)]
Fix adding ShivaVG include directory

11 years agoFix signed/unsigned comparison warning
Thomas Geymayer [Sun, 4 Nov 2012 14:26:41 +0000 (15:26 +0100)]
Fix signed/unsigned comparison warning

11 years agoRefactor Canvas and add some helpers.
Thomas Geymayer [Sun, 4 Nov 2012 13:12:05 +0000 (14:12 +0100)]
Refactor Canvas and add some helpers.

 - Refactor Canvas from FlightGear and fix lazy rendering with
   recursive canvases.
 - New classes PropertyBasedElement and PropertyBasedManager for
   creating subsystems controlled by the property tree.
 - New method parseColor to parse CSS 3 conformant color strings
   (only basic color schemes supported)
 - New Rect class representing a rectangle.

11 years agoscenery: put stg loaded models under a common lod node.
Mathias Froehlich [Sat, 27 Oct 2012 06:22:45 +0000 (08:22 +0200)]
scenery: put stg loaded models under a common lod node.

11 years agoAdd VGInitOperation for initializing OpenVG
Thomas Geymayer [Wed, 31 Oct 2012 00:38:59 +0000 (01:38 +0100)]
Add VGInitOperation for initializing OpenVG

11 years agoHelper for property controlled subsystems
Thomas Geymayer [Mon, 29 Oct 2012 15:10:10 +0000 (16:10 +0100)]
Helper for property controlled subsystems

 - Subsystem which manages a list of elements which
   are controlled through the property tree.
 - Fix a ShivaVG compiler warning.
 - Add some helper functions to trigger property removed/add
   events for a whole property tree.

11 years agoNo bzero in MSVC
Frederic Bouvier [Mon, 29 Oct 2012 07:48:55 +0000 (08:48 +0100)]
No bzero in MSVC

11 years agoHTTP enhancements.
James Turner [Wed, 15 Aug 2012 10:42:12 +0000 (11:42 +0100)]
HTTP enhancements.

Support content-encoding and improve pipelining support.

11 years agoLink with ShivaVG
Thomas Geymayer [Wed, 24 Oct 2012 23:00:37 +0000 (01:00 +0200)]
Link with ShivaVG

11 years agoShivaVG: Support for pseudo non-zero fillrule
Thomas Geymayer [Fri, 21 Sep 2012 20:03:44 +0000 (22:03 +0200)]
ShivaVG: Support for pseudo non-zero fillrule

11 years agoFix a Clang warning in Shiva.
James Turner [Wed, 19 Sep 2012 14:55:49 +0000 (15:55 +0100)]
Fix a Clang warning in Shiva.

11 years agoAdd missing glx.h include and fix some warnings.
Thomas Geymayer [Tue, 3 Jul 2012 13:48:11 +0000 (15:48 +0200)]
Add missing glx.h include and fix some warnings.

11 years agoFix OS-X compilation.
James Turner [Sun, 17 Jun 2012 20:12:47 +0000 (21:12 +0100)]
Fix OS-X compilation.

11 years agoAllow filling paths and do some clean up/fixing.
Thomas Geymayer [Wed, 6 Jun 2012 22:11:10 +0000 (00:11 +0200)]
Allow filling paths and do some clean up/fixing.

11 years agoAdd ShivaVG sources
Thomas Geymayer [Wed, 6 Jun 2012 09:32:02 +0000 (11:32 +0200)]
Add ShivaVG sources

11 years agopt_lights: 9 seconds+ break for the ODALS flash sequence is a bit too much. Set it...
Christian Schmitt [Tue, 23 Oct 2012 16:55:46 +0000 (18:55 +0200)]
pt_lights: 9 seconds+ break for the ODALS flash sequence is a bit too much. Set it to 2 seconds.