]> git.mxchange.org Git - simgear.git/log
simgear.git
11 years agoBase64 and hex helpers for strings
James Turner [Sun, 9 Jun 2013 18:17:37 +0000 (19:17 +0100)]
Base64 and hex helpers for strings

11 years agosimgear::Dir helpers
James Turner [Sun, 9 Jun 2013 18:17:23 +0000 (19:17 +0100)]
simgear::Dir helpers

- remove all children of the dir
- check is the dir has children / is empty

11 years agoHTTP engine tweaks for SVN support.
James Turner [Sun, 9 Jun 2013 18:16:46 +0000 (19:16 +0100)]
HTTP engine tweaks for SVN support.

11 years agoRestructure Canvas/PropertyBasedElement
Thomas Geymayer [Sat, 8 Jun 2013 09:28:49 +0000 (11:28 +0200)]
Restructure Canvas/PropertyBasedElement

Nodes inside the osg scenegraph now hold a strong reference to
the according canvas element. Canvas elements in turn now only
hold a weak reference to the according node. This simplifies
for example the canvas::Group as it does not need to keep a
list of children on its own anymore. This is now stored inside
the scenegraph (as it was already before).

The restructuring will also allow to use a canvas::Group for
the canvas gui inside FlightGear and share for example the
handling of stacking based on z-index.

11 years agoCSSBorder: Do not return unitialized data.
Thomas Geymayer [Fri, 7 Jun 2013 16:54:41 +0000 (18:54 +0200)]
CSSBorder: Do not return unitialized data.

11 years agoCanvas: More helper functions and cleanup.
Thomas Geymayer [Fri, 7 Jun 2013 14:39:03 +0000 (16:39 +0200)]
Canvas: More helper functions and cleanup.

11 years agoCanvasGroup: Fix handling z-index while moving child to front.
Thomas Geymayer [Fri, 7 Jun 2013 14:23:44 +0000 (16:23 +0200)]
CanvasGroup: Fix handling z-index while moving child to front.

11 years agoHelper functions for SGRect and canvas::Element
Thomas Geymayer [Thu, 6 Jun 2013 20:28:00 +0000 (22:28 +0200)]
Helper functions for SGRect and canvas::Element

11 years agoCanvas: clear event listeners on destroy
Thomas Geymayer [Mon, 3 Jun 2013 21:39:11 +0000 (23:39 +0200)]
Canvas: clear event listeners on destroy

Removing all event listeneres on destroying a canvas
prevents circular references due to Nasal event listeners
keeping a reference to the canvas in their closure.

Also fix event handling with direct children of the root
group and add some more helpers to the Canvas.

11 years agoCanvas: set blend function for elements and prevent autoresize
Thomas Geymayer [Sun, 2 Jun 2013 21:32:53 +0000 (23:32 +0200)]
Canvas: set blend function for elements and prevent autoresize

11 years agoMake nasal::Ghost usable with weak_ptr
Thomas Geymayer [Sun, 2 Jun 2013 19:20:47 +0000 (21:20 +0200)]
Make nasal::Ghost usable with weak_ptr

11 years agoMore helper methods for Canvas and PropertyBasedElement.
Thomas Geymayer [Sun, 2 Jun 2013 19:19:37 +0000 (21:19 +0200)]
More helper methods for Canvas and PropertyBasedElement.

11 years agoMove BlendFunc parsing to separate file for easier reuse.
Thomas Geymayer [Sun, 2 Jun 2013 18:38:22 +0000 (20:38 +0200)]
Move BlendFunc parsing to separate file for easier reuse.

11 years agoSupport for parsing basic CSS color keywords.
Thomas Geymayer [Fri, 31 May 2013 17:18:36 +0000 (19:18 +0200)]
Support for parsing basic CSS color keywords.

11 years agoCanvas Image: fix updating while showing nested canvas.
Thomas Geymayer [Fri, 31 May 2013 17:17:30 +0000 (19:17 +0200)]
Canvas Image: fix updating while showing nested canvas.

11 years agoCanvas: add chainable helpers to Path for adding segments.
Thomas Geymayer [Fri, 31 May 2013 17:16:04 +0000 (19:16 +0200)]
Canvas: add chainable helpers to Path for adding segments.

11 years agoCanvas: separate CSSBorder parsing from image.
Thomas Geymayer [Fri, 31 May 2013 17:10:22 +0000 (19:10 +0200)]
Canvas: separate CSSBorder parsing from image.

11 years agoCanvas: bug fixing and add some helpers.
Thomas Geymayer [Fri, 31 May 2013 17:05:29 +0000 (19:05 +0200)]
Canvas: bug fixing and add some helpers.

11 years agoUse square textures for trees, with shrunk UV coordinates.
Stuart Buchanan [Sun, 19 May 2013 20:29:58 +0000 (21:29 +0100)]
Use square textures for trees, with shrunk UV coordinates.

11 years agoCanvas: Add local_pos to mouse event and fix transformation of event positions with...
Thomas Geymayer [Sun, 12 May 2013 22:34:09 +0000 (00:34 +0200)]
Canvas: Add local_pos to mouse event and fix transformation of event positions with multi-level nested canvases.

11 years agoCanvas: proper forwarding of dirty and visible flags within nested canvases.
Thomas Geymayer [Sun, 12 May 2013 22:23:34 +0000 (00:23 +0200)]
Canvas: proper forwarding of dirty and visible flags within nested canvases.

11 years agoAvoid UV bleeding issues on trees by using a strip of textures.
Stuart Buchanan [Fri, 10 May 2013 19:03:48 +0000 (20:03 +0100)]
Avoid UV bleeding issues on trees by using a strip of textures.

11 years agoUse simulation time for spin and timed animations
Thomas Geymayer [Thu, 9 May 2013 23:11:46 +0000 (01:11 +0200)]
Use simulation time for spin and timed animations

11 years agoExtend SGPickCallback to allow passing more information to callbacks
Thomas Geymayer [Thu, 9 May 2013 19:31:27 +0000 (21:31 +0200)]
Extend SGPickCallback to allow passing more information to callbacks

11 years agoAdd (optional) uv coordinates to SGPickCallback
Thomas Geymayer [Thu, 9 May 2013 10:40:59 +0000 (12:40 +0200)]
Add (optional) uv coordinates to SGPickCallback

11 years agoPrevent timer endless loops
Thomas Geymayer [Mon, 6 May 2013 21:26:45 +0000 (23:26 +0200)]
Prevent timer endless loops

11 years agoAllow adding a contition to locked-track animation
Thomas Geymayer [Wed, 1 May 2013 22:47:24 +0000 (00:47 +0200)]
Allow adding a contition to locked-track animation

11 years agoReduce the height of tree UV coordinates to work around mipmap issues.
Stuart Buchanan [Wed, 1 May 2013 21:01:45 +0000 (22:01 +0100)]
Reduce the height of tree UV coordinates to work around mipmap issues.

11 years agoExtend locked-track animation to support a slave element.
Thomas Geymayer [Sun, 28 Apr 2013 21:46:21 +0000 (23:46 +0200)]
Extend locked-track animation to support a slave element.

This allows tracking elements while at the same time changing the
rotation of both animated elements to fill the available distance
to the target element. This allows for example animating gear
scissors or other connected objects like gear doors and their
actuators/arms (possibly connected to the gear strut).

11 years agoMove and rework pow to math/SGMisc
Thomas Geymayer [Sun, 28 Apr 2013 13:43:02 +0000 (15:43 +0200)]
Move and rework pow to math/SGMisc

11 years agoWork around MSVC linker bug with classes derived from i/ofstream
Thomas Geymayer [Sat, 27 Apr 2013 21:44:32 +0000 (23:44 +0200)]
Work around MSVC linker bug with classes derived from i/ofstream

11 years agoFix linker error for test
Thomas Geymayer [Fri, 26 Apr 2013 21:48:25 +0000 (23:48 +0200)]
Fix linker error for test

11 years agoFix animation tests for low precision floating point
Thomas Geymayer [Thu, 25 Apr 2013 22:19:00 +0000 (00:19 +0200)]
Fix animation tests for low precision floating point

11 years agoRemove debug output (and shorten test names)
Thomas Geymayer [Thu, 25 Apr 2013 22:13:35 +0000 (00:13 +0200)]
Remove debug output (and shorten test names)

11 years agoAdd trackTo (locked-track) animation
Thomas Geymayer [Thu, 25 Apr 2013 21:22:04 +0000 (23:22 +0200)]
Add trackTo (locked-track) animation

11 years agoReduce the texture coords for trees.
Stuart Buchanan [Sat, 20 Apr 2013 20:05:55 +0000 (21:05 +0100)]
Reduce the texture coords for trees.

Support winter, summer and snow textures on single texture sheet.

11 years agoCanvas: rework style setter system.
Thomas Geymayer [Fri, 19 Apr 2013 22:22:37 +0000 (00:22 +0200)]
Canvas: rework style setter system.

Style setters are now only setup once for each element type and
not for each element instance as before. A static map holds the
setters for each element type. Also an animation type is stored
which will later allow to animate properties of Canvas elements
without specifying and animation type.

11 years agoCanvaImage: Enable texture repeat for images
Thomas Geymayer [Mon, 15 Apr 2013 19:09:41 +0000 (21:09 +0200)]
CanvaImage: Enable texture repeat for images

11 years agoComparison operators for SGSharedPtr
Thomas Geymayer [Sat, 13 Apr 2013 14:20:50 +0000 (16:20 +0200)]
Comparison operators for SGSharedPtr

11 years agoRestructure to avoid ordering issues.
James Turner [Sat, 13 Apr 2013 13:40:55 +0000 (14:40 +0100)]
Restructure to avoid ordering issues.

Create a pick group for each object, instead of a single one. This
can be optimised in the future but this structure is backwards-
compatible with existing usage, which is more important.

11 years agoNasal: add naVec_removelast. (Thanks to Philosopher)
Thomas Geymayer [Fri, 12 Apr 2013 10:32:03 +0000 (12:32 +0200)]
Nasal: add naVec_removelast. (Thanks to Philosopher)

11 years agoSupport for proxy pick objects.
James Turner [Fri, 5 Apr 2013 08:13:58 +0000 (09:13 +0100)]
Support for proxy pick objects.

Pick, knob and slider animations support additional object-names,
which are always invisible and untransformed (in the case of knobs/
sliders). These objects act to extend the hover/pick area, making small
switches and knobs more usable. (Especially for users with smaller
screens / windows).

11 years agoRemove stray debug.
James Turner [Tue, 2 Apr 2013 17:10:09 +0000 (18:10 +0100)]
Remove stray debug.

11 years agonasal::Ghost tweaking to allow using with osg::oberser_ptr.
Thomas Geymayer [Mon, 1 Apr 2013 11:35:41 +0000 (13:35 +0200)]
nasal::Ghost tweaking to allow using with osg::oberser_ptr.

11 years agoEnsure every scenery model has own SGModelData.
Thomas Geymayer [Mon, 1 Apr 2013 11:22:28 +0000 (13:22 +0200)]
Ensure every scenery model has own SGModelData.

This makes Nasal unload hooks of scenery objects working again.
Previously the same SGModelData instance was used for all objects
which never got destroyed and therefore was not able to call any
unload callback.

11 years agonasal::Ghost tweaking and to_nasal_helper for SGGeod.
Thomas Geymayer [Sat, 23 Mar 2013 11:47:06 +0000 (12:47 +0100)]
nasal::Ghost tweaking and to_nasal_helper for SGGeod.

11 years agoFix uninitialized member.
Thomas Geymayer [Wed, 20 Mar 2013 22:44:26 +0000 (23:44 +0100)]
Fix uninitialized member.

Thanks to Chris for the catch.

11 years agocppbind: add from_nasal_helper to convert Nasal ghosts to C++ shared pointer
Thomas Geymayer [Tue, 19 Mar 2013 17:36:55 +0000 (18:36 +0100)]
cppbind: add from_nasal_helper to convert Nasal ghosts to C++ shared pointer

11 years agoInterpolation system tweaking and add helpers to SGPropertyNode to interpolate its...
Thomas Geymayer [Sun, 17 Mar 2013 22:48:01 +0000 (23:48 +0100)]
Interpolation system tweaking and add helpers to SGPropertyNode to interpolate its value

11 years agoTweak interpolator and allow passing list of interpolation steps
Thomas Geymayer [Sat, 16 Mar 2013 15:36:20 +0000 (16:36 +0100)]
Tweak interpolator and allow passing list of interpolation steps

11 years agoRemove unecessary dependency from libSimGearCore on libSimGearScene.
Thomas Geymayer [Sat, 16 Mar 2013 11:19:23 +0000 (12:19 +0100)]
Remove unecessary dependency from libSimGearCore on libSimGearScene.

11 years agoFix headless build
Thomas Geymayer [Sat, 16 Mar 2013 09:35:30 +0000 (10:35 +0100)]
Fix headless build

11 years agoNew interpolation/animation system.
Thomas Geymayer [Fri, 15 Mar 2013 22:37:17 +0000 (23:37 +0100)]
New interpolation/animation system.

Inspired by jQuery.animate() properties can be interpolated using
different easing functions and specifying an animation duration.
Additionally animations can be chained to get table-based
animations like with the current SGInterpolator, or also create
looped animations or other more complicated curves.

Currently this system is not used yet, but it is intended to
replace SGInterpolator and allow more advanced animations of
eg. also colors, for example, for the canvas.

11 years agoCMake: Create list of libs for testing only once
Thomas Geymayer [Fri, 15 Mar 2013 22:21:38 +0000 (23:21 +0100)]
CMake: Create list of libs for testing only once

11 years agoFix pick-callbacks with no action.
James Turner [Tue, 12 Mar 2013 21:14:31 +0000 (21:14 +0000)]
Fix pick-callbacks with no action.

Ensure pick animations work only to show a tooltip. Thanks to Emilian
for noticing I broke this

11 years agoEnsure canvas is updated before displaying image containing a canvas
Thomas Geymayer [Mon, 11 Mar 2013 20:22:43 +0000 (21:22 +0100)]
Ensure canvas is updated before displaying image containing a canvas

11 years agoStandardise location (in XML) of hovered elements.
James Turner [Mon, 11 Mar 2013 18:07:27 +0000 (18:07 +0000)]
Standardise location (in XML) of hovered elements.

Hovered bindings are always direction children of the pick animation, since having different hovered behaviours per-action makes no sense.

11 years agoCollect properties from expression/condition trees.
James Turner [Mon, 11 Mar 2013 16:53:52 +0000 (16:53 +0000)]
Collect properties from expression/condition trees.

Initial ground-work to support efficient updating of condition/expression results; allow collecting all the dependent property values from the hierarchy, so they can be observed. Also add a very small test-case for this.

11 years agoslider - fix shifted check while dragging
Thomas Geymayer [Sun, 10 Mar 2013 22:10:26 +0000 (23:10 +0100)]
slider - fix shifted check while dragging

11 years agoPart of fixing bug 1055.
James Turner [Sun, 10 Mar 2013 13:38:29 +0000 (13:38 +0000)]
Part of fixing bug 1055.

Add machinery to convert hateful legacy Windows encodings to UTF-8.

11 years agoTweaks for pick callback cursors.
James Turner [Sun, 10 Mar 2013 12:03:09 +0000 (12:03 +0000)]
Tweaks for pick callback cursors.

11 years agoKnob/slider - clean up internals.
James Turner [Fri, 8 Mar 2013 16:31:02 +0000 (16:31 +0000)]
Knob/slider - clean up internals.

Add support for a global sensitivity parameter to scale drag response.

11 years agoWork on knob/slider animations.
James Turner [Thu, 7 Mar 2013 18:40:37 +0000 (18:40 +0000)]
Work on knob/slider animations.

Rename some values, and support mouse-dragging.

11 years agoReplacing strdup with _strdup in MSVC
PlutoniumHeart [Thu, 7 Mar 2013 06:58:38 +0000 (23:58 -0700)]
Replacing strdup with _strdup in MSVC

11 years agoFix some warnings
Thomas Geymayer [Wed, 6 Mar 2013 23:17:45 +0000 (00:17 +0100)]
Fix some warnings

11 years agoadd static_pointer_cast for SGSharedPtr
Thomas Geymayer [Wed, 6 Mar 2013 22:17:02 +0000 (23:17 +0100)]
add static_pointer_cast for SGSharedPtr

11 years agocppbind: allow adding free functions accepting nasal::CallContext and do some cleanup
Thomas Geymayer [Wed, 6 Mar 2013 16:00:38 +0000 (17:00 +0100)]
cppbind: allow adding free functions accepting nasal::CallContext and do some cleanup

11 years agoMay MSVC likes this more...
Thomas Geymayer [Tue, 5 Mar 2013 17:12:17 +0000 (18:12 +0100)]
May MSVC likes this more...

11 years agocppbind: Add some methods to nasal::CallContext
Thomas Geymayer [Tue, 5 Mar 2013 16:27:21 +0000 (17:27 +0100)]
cppbind: Add some methods to nasal::CallContext

11 years agoFix priority of pick animations.
James Turner [Tue, 5 Mar 2013 08:39:44 +0000 (08:39 +0000)]
Fix priority of pick animations.

11 years agoAdd a pick priority lower than the default.
James Turner [Mon, 4 Mar 2013 23:33:21 +0000 (23:33 +0000)]
Add a pick priority lower than the default.

11 years agoSupport motion-tracking in pick callbacks.
James Turner [Mon, 4 Mar 2013 23:11:26 +0000 (23:11 +0000)]
Support motion-tracking in pick callbacks.

11 years agocppbind: Tweak from_nasal error reporting
Thomas Geymayer [Mon, 4 Mar 2013 22:15:00 +0000 (23:15 +0100)]
cppbind: Tweak from_nasal error reporting

11 years agoSilence MSVC
Thomas Geymayer [Mon, 4 Mar 2013 17:03:53 +0000 (18:03 +0100)]
Silence MSVC

11 years agocppbind: tweaking from_nasal/to_nasal.
Thomas Geymayer [Mon, 4 Mar 2013 15:26:28 +0000 (16:26 +0100)]
cppbind: tweaking from_nasal/to_nasal.

11 years agocppbind: faster from_nasal for bool and fix VS warning.
Thomas Geymayer [Sun, 3 Mar 2013 23:30:05 +0000 (00:30 +0100)]
cppbind: faster from_nasal for bool and fix VS warning.

11 years agoMax catalog age configurable per-catalog.
James Turner [Sun, 3 Mar 2013 23:03:09 +0000 (23:03 +0000)]
Max catalog age configurable per-catalog.

Allows for short-validity catalogs for development use.

11 years agocppbind: refactor to_nasal for better name lookup.
Thomas Geymayer [Sun, 3 Mar 2013 22:39:26 +0000 (23:39 +0100)]
cppbind: refactor to_nasal for better name lookup.

Using template parameter dependent name lookup it is
now possible to create to_nasal_helper overloads
for custom types and having them used for automatic
type conversion with binding methods/member on
nasal::Ghost objects.

11 years agoAdd a missing define for minizip, needed on some installations of zlib
Christian Schmitt [Sun, 3 Mar 2013 22:35:43 +0000 (23:35 +0100)]
Add a missing define for minizip, needed on some installations of zlib

11 years agocppbind: Allow getter without from_nasal defined and setter without to_nasal.
Thomas Geymayer [Sun, 3 Mar 2013 19:55:57 +0000 (20:55 +0100)]
cppbind: Allow getter without from_nasal defined and setter without to_nasal.

11 years agoMake old gcc happy
Thomas Geymayer [Sun, 3 Mar 2013 19:16:21 +0000 (20:16 +0100)]
Make old gcc happy

11 years agocppbind: rework to allow binding nearly everything.
Thomas Geymayer [Sun, 3 Mar 2013 18:26:25 +0000 (19:26 +0100)]
cppbind: rework to allow binding nearly everything.

It is now possible to register all types of member function
and free functions as methods for nasal::Ghost objects.
The return value and arguments are converte automatically
to the required types.

Also usage is simplified by removing replacing the old
method and method_func with a single method function
which only needs a name for the method and something
callable.

11 years agoAdd new api to retreive a list of SGBuckets within a bounding rectangle
Peter Sadrozinski [Sun, 3 Mar 2013 16:57:38 +0000 (11:57 -0500)]
Add new api to retreive a list of SGBuckets within a bounding rectangle

11 years agoLook for MSVC 3rdparty deps differently.
James Turner [Sun, 3 Mar 2013 16:06:51 +0000 (16:06 +0000)]
Look for MSVC 3rdparty deps differently.

Check for the 3rdparty dir in the parent of build dir, not the parent of the source dir. For the recommended build layout, this is the same location, but for super-builds using fgmeta it's not (and the source tree should not be touched).

If this causes anyone issues, please let me know, since it's possible more flexibility is needed to set the path explicitly.

11 years agoSimplify CMakeLists now package code is enabled.
James Turner [Sun, 3 Mar 2013 16:01:06 +0000 (16:01 +0000)]
Simplify CMakeLists now package code is enabled.

11 years agoPackage management tweaks.
James Turner [Sun, 3 Mar 2013 15:03:25 +0000 (15:03 +0000)]
Package management tweaks.

11 years agosg_netChat: let getTerminator return const char* for compatiblity with FlightGear
Thomas Geymayer [Sun, 3 Mar 2013 00:19:35 +0000 (01:19 +0100)]
sg_netChat: let getTerminator return const char* for compatiblity with FlightGear

11 years agosg_netChat: Use std::string to prevent crash with old strdup.
Thomas Geymayer [Sun, 3 Mar 2013 00:07:35 +0000 (01:07 +0100)]
sg_netChat: Use std::string to prevent crash with old strdup.

Thanks to Godspeed for noticing this code crashing with MSVC.
Using std::string should fix this.

11 years agopkgutil can show detailed info about a package.
James Turner [Sat, 2 Mar 2013 17:02:08 +0000 (17:02 +0000)]
pkgutil can show detailed info about a package.

11 years agoLots more work on package support.
James Turner [Sat, 2 Mar 2013 16:30:39 +0000 (16:30 +0000)]
Lots more work on package support.

Delegate is hooked up in the demo util, and Install forwards control to the delegate too.

11 years agoLGPL license on package files.
James Turner [Sat, 2 Mar 2013 15:15:52 +0000 (15:15 +0000)]
LGPL license on package files.

11 years agoPackage dependencies.
James Turner [Sat, 2 Mar 2013 15:14:09 +0000 (15:14 +0000)]
Package dependencies.

11 years agoEnable package code by default.
James Turner [Sat, 2 Mar 2013 14:43:19 +0000 (14:43 +0000)]
Enable package code by default.

11 years agocppbind: Prepare for improved bindings.
Thomas Geymayer [Fri, 1 Mar 2013 23:13:06 +0000 (00:13 +0100)]
cppbind: Prepare for improved bindings.

 - Improved Nasal/C++ bindings will follow. For now just test if
   all compilers are happy with intended approach.
 - Add to_nasal overload for std::map<std::string, T>.

11 years agoAdd optional user_data to Nasal C functions.
Thomas Geymayer [Fri, 1 Mar 2013 11:22:51 +0000 (12:22 +0100)]
Add optional user_data to Nasal C functions.

A user_data pointer and another pointer to an optional
deleter function is stored in unused parts of the naPtr
union. The previous behavior of extension functions does
not change. Only one additional boolean comparison is
required upon each function call to check whether user
data is available.

11 years agoVisual Studio fix
Thomas Geymayer [Thu, 28 Feb 2013 23:33:47 +0000 (00:33 +0100)]
Visual Studio fix

11 years agocppbind: Fix SGPath from_nasal_helper
Thomas Geymayer [Thu, 28 Feb 2013 22:46:55 +0000 (23:46 +0100)]
cppbind: Fix SGPath from_nasal_helper

11 years agoNasal cppbind: support more member function types
Thomas Geymayer [Thu, 28 Feb 2013 22:43:42 +0000 (23:43 +0100)]
Nasal cppbind: support more member function types

11 years agoFix boolean conversion
Thomas Geymayer [Thu, 28 Feb 2013 21:23:15 +0000 (22:23 +0100)]
Fix boolean conversion

11 years agoODGauge/Canvas: add option "additive-blend" to use additive alpha blending
Thomas Geymayer [Thu, 28 Feb 2013 21:02:11 +0000 (22:02 +0100)]
ODGauge/Canvas: add option "additive-blend" to use additive alpha blending