Torsten Dreyer
441dc41715
Don't untie a property when loading from xml
...
executing the fgcommand loadxml implicitely untied every previously
tied property if a property type was given in the property element.
That made it impossible to autosave aircraft data for tied properties.
This patch should fix this. It adds an inconsitency, though:
if a property with a given type is read in which has been tied to
before and the property types do not match, the property type in the
xml file will be ignored.
2012-02-15 14:54:02 +01:00
Torsten Dreyer
b20a49b018
bump version number to 2.7.0
2012-01-17 08:35:57 +01:00
Torsten Dreyer
5a6b760847
bump version number to 2.6.0
2012-01-17 07:46:13 +01:00
Torsten Dreyer
3d44f1c825
Revert changes to xmlparse.[ch]
...
These files are copies from libexpat and should not be touched.
Thanks to Mathias for pointing this one out.
2011-12-26 11:40:57 +01:00
Torsten Dreyer
306c58e7ed
Some more trivial warning fixes
2011-12-25 20:28:38 +01:00
Torsten Dreyer
82588b0daf
Remove stray ';'
2011-12-25 20:12:48 +01:00
Torsten Dreyer
aef8f13290
Use of copy-constructors
...
explicitly initialize the base class in a copy-constructor instead
of implicitly calling the default constructor.
2011-12-25 20:11:06 +01:00
Torsten Dreyer
4ae7c90d49
Small warning fixes, mostly unused variables
2011-12-25 14:40:07 +01:00
Torsten Dreyer
c6d5cbd52c
Keep VC90 project file working with SGAtomic
2011-10-27 08:18:54 +02:00
Torsten Dreyer
b7173100c8
Merge commit 'refs/merge-requests/11' of git://gitorious.org/fg/simgear into merge-requests/11
2011-09-12 17:26:01 +02:00
Torsten Dreyer
9ef56cbc48
Merge commit 'refs/merge-requests/7' of git://gitorious.org/fg/simgear into merge-requests/7
2011-09-02 12:11:42 +02:00
Torsten Dreyer
db509f4075
Merge branch 'next' of gitorious.org:fg/simgear into next
2011-10-08 20:36:20 +02:00
Torsten Dreyer
eb52f38c47
Stuart Buchanan:
...
A further fix to the cloud placement, to make it more accurate over longer distances.
2011-10-06 16:49:09 +02:00
Torsten Dreyer
c1f51d5be7
Stuart Buchanan:
...
Add additional lighting factors for 3D clouds so you can set the bottom, middle, top, and shade lighting factors.
2011-10-06 16:47:03 +02:00
Torsten Dreyer
08cb2039c5
Merge commit 'refs/merge-requests/12' of git://gitorious.org/fg/simgear into merge-requests/12
2011-10-06 16:42:36 +02:00
Torsten Dreyer
09e610b900
Implement #327 Add condition checking the range of a value
...
New feature for <condition> elements:
An (optional) element <precision> allows for fuzzy equals checks
example:
<condition>
<equals>
<property>/foo</property>
<value type="double">0.0</value>
<precision>0.1</precision>
</equals>
</condition>
This condition evaluates as true if /foo is within [-0.05..0.05]
(both inclusive)
The precision tag works for int, long, float and double propeties.
It has no meaning for bool properties. For string properties,
precision sets the length of the strings to compare.
2011-08-24 21:26:02 +02:00
Torsten Dreyer
669ab640da
Remove (last) reference to obsolete visual_enviro.hxx
2011-08-21 21:13:38 +02:00
Torsten Dreyer
225c2803ac
remove reference to obsolete visual_enviro.hxx
2011-08-20 08:51:39 +02:00
Torsten Dreyer
45f642c4e4
Don't rely on simgear/version.h
...
version.h is generated by the build system for official builds of
FlightGear. To avoid complicating the life of regular developers,
especially on Windows, we set HAVE_VERSION_H if version.h is generated.
If that define is not set, we include this file instead, which provides
placeholder values instead.
2011-07-25 20:22:57 +02:00
Torsten Dreyer
69cbc2feb5
Bump to version 2.5.0
2011-07-17 11:06:45 +02:00
Torsten Dreyer
feb0b83365
Bump version to 2.4.0
2011-07-17 10:46:56 +02:00
Torsten Dreyer
da707f3e40
terrasync: some code cleanup - don't use snprintf
2011-06-28 13:16:08 +02:00
Torsten Dreyer
d36170879c
Terrasync: make whitespace in pathnames work under windows
2011-06-25 00:04:44 +02:00
Torsten Dreyer
6f9a14d6c4
Fix bug #346 : httpd broken
...
Fix bug introduced by myself in
commit b06e38699a
2011-06-22 22:40:23 +02:00
Torsten Dreyer
f8a337fb9f
gcc warning fix: remove unused variable
2011-05-31 15:53:25 +02:00
Torsten Dreyer
c828961327
Merge branch 'next' of gitorious.org:fg/simgear into next
2011-05-28 10:20:03 +02:00
Torsten Dreyer
83a95a0488
(Re)fix bug #285 , textranslate broken
...
Due to fingertrouble, I removed the check for _step == 0 which
this patch re-adds.
Also, make this function look more like a template by not using
0.0 - constants.
2011-05-28 10:17:19 +02:00
Torsten Dreyer
b06e38699a
Make multicast sockets work under windows
...
msdn article 737550 states that "the preferred method is to call the
bind function to associate a socket with a local IP address and then
join the multicast group. Although this order of operations is not
mandatory, it is strongly recommended".
Since binding to the multicast address seems to fail, let's try binding
to INADDR_ANY and joint thereafter.
2011-05-27 21:06:06 +02:00
Torsten Dreyer
3a07e2fe21
ignore cmake generated files
2011-05-25 19:21:08 +02:00
Torsten Dreyer
ca668f8a37
Fix bug #285 textranslate and scroll animation with negative numbers
...
rewrite SGStepExpression::apply_mods so it creates the same step
for negative numbers as it does for positive numbers.
2011-05-25 19:14:09 +02:00
Torsten Dreyer
4e6159aa07
Remove unused class SGEnviro
...
This class and their source files visual_enviro.[h|c]xx were
unused since OSG transition. It's only functionality was to
keep a variable for the enable-state of rendering of precipitation.
This has now been moved to SGPrecipitation.
2011-05-06 14:10:04 +02:00
Torsten Dreyer
6a1d05646c
fix typo
2011-05-06 13:07:21 +02:00
Torsten Dreyer
1cd17e9edd
Improvements to the global 3D clouds system
...
Stuart Buchanan:
Improvements to the global 3D clouds system
- clouds now move with the wind
- bug causing cloud coverage to be less than it should have been fixed
- support for adding 3D clouds with an fg_command.
(https://gitorious.org/fg/flightgear/merge_requests/1554 )
2011-04-23 20:56:28 +02:00
Torsten Dreyer
4ff014d275
Add multicast support for sockets
2011-04-13 18:43:28 +02:00
Torsten Dreyer
83124e0c05
Don't depend on props.hxx
...
There is no reference to anything defined in props.hxx, so remove
the dependency here.
2011-02-27 20:35:44 +01:00
Torsten Dreyer
a079870bca
Add strutils::starts_with and strutils::ends_with
2011-02-20 15:29:06 +01:00
Torsten Dreyer
7479ae521c
Provide easy Tie() for indexed properties
2011-02-14 20:24:41 +01:00
Torsten Dreyer
3a620fe55d
Fix initial value for tied read-only properties
2011-02-12 14:46:58 +01:00
Torsten Dreyer
503310cdb8
Darn! Typo in vc90 project file
2011-02-06 16:37:48 +01:00
Torsten Dreyer
bda8d34c2b
Use tiedpropertylist.hxx in cmake and vc90
2011-02-06 16:35:15 +01:00
Torsten Dreyer
2ee87483f9
Move TiedPropertyList from flightgear to simgear
2011-02-06 15:05:50 +01:00
Torsten Dreyer
6d2646239e
Fix wrong difference calculation in SGExpression
2011-01-25 23:01:14 +01:00
Torsten Dreyer
c955e61ba7
Fix wrong difference calculation in SGExpression
2011-01-25 22:58:50 +01:00
Torsten Dreyer
e988dc0e42
Fix bug in SGMisc<T>:: normalizePeriodic()
...
SGMisc<T>::normalizePeriodic(min,max,value) returned zero for
all values less than min.
Example:
A call of normalizePeriodic(0,twopi(),-pi()) returned zero
where the correct value would be 3*pi().
2011-01-17 19:51:29 +01:00
Torsten Dreyer
58c7edfed6
SGExpression bugfix: allow <sin> within <product>
2011-01-08 13:06:25 +01:00
Torsten Dreyer
122d7f681f
Add <expression> to animations
...
Allow complex animation expressions
Example: translate along the y-axis following a sin
function.
<animation>
<type>translate</type>
<axis>
<y>1</y>
</axis>
<expression>
<sin>
<product>
<property>/some/position-norm</property>
<value>6.28</value>
</product>
</sin>
</expression>
</animation>
2011-01-07 22:43:46 +01:00
Torsten Dreyer
c32ab1b84f
handle NCD (nil clouds detected) in METAR
2010-12-31 13:31:09 +01:00
Torsten Dreyer
6c789f7165
metar: add string constants for cloud coverages
2010-12-12 22:18:10 +01:00
Torsten Dreyer
ab3612517f
Make the max. opacity of a 2d cloud settable
2010-12-09 09:06:40 +01:00
Torsten Dreyer
0909722bb5
Metar: symbolic cloudnames and phenomena exposure
...
- use symbolic names for scattered, broken, overcast, etc. cloud
coverages.
- better approach to expose weather phenomena to the interface
2010-12-04 12:02:38 +01:00
Torsten Dreyer
1cb8f9237c
Expose weather phenomena to the SGMetar interface
2010-11-27 21:04:04 +01:00
Torsten Dreyer
a6138b3445
Make visibility within cloudlayers settable
2010-11-26 19:24:44 +01:00
Torsten Dreyer
9d4f0f5824
A sum without diff is like foo without bar
...
Add a <difference> aka <diff> to SGExpression to compute
differences
2010-11-20 11:05:45 +01:00
Torsten Dreyer
49f038b9d1
Purge some gcc and MSVC warnings
2010-11-18 12:08:16 +01:00
Torsten Dreyer
48c6d3d89a
Provide a little more descriptive error message if TextureBuilder fails
2010-10-12 16:21:38 +02:00
Torsten Dreyer
136676012f
Merge branch 'next' of gitorious.org:fg/simgear into next
2010-10-07 17:43:35 +02:00
Torsten Dreyer
0994ffc195
Don't crash in strutils::trim() with empty strings
2010-10-05 22:39:41 +02:00
Torsten Dreyer
9a28642a4e
tolerate NDV (no directional validation) in METAR
2010-09-27 19:38:15 +02:00
Torsten Dreyer
0b953462f7
Ivan Ngeow: Fix build on FreeBSD
...
FreeBSD 8.0-RELEASE, only a very small patch needed
to be applied to simgear/simgear/compiler.h, to add
so that __FreeBSD_version is defined.
2010-09-23 10:27:06 +02:00
Torsten Dreyer
061eb686c6
Fix wrong movement of 2d cloud layers on N/S courses
2010-09-19 10:53:25 +02:00
Torsten Dreyer
df467b9dba
Let SGCloudLayer handle coverage strings
...
This is currently handled in various places in FlightGear.
2010-08-27 18:20:09 +02:00
Torsten Dreyer
c0e20ad56b
add padding function lpad and rpad to strutils
2010-08-12 13:02:16 +02:00
Torsten Dreyer
49887ff06e
Fix the fix that turned a warning into a bug :-(
2010-08-12 12:16:48 +02:00
Torsten Dreyer
1f6555c9ad
two warning fixes
2010-08-12 11:42:04 +02:00
Torsten Dreyer
7f8efa7cef
use correct parameter types for SGText::UpdateCallback
2010-08-12 11:35:09 +02:00
Torsten Dreyer
fa169d6aa2
Merge branch 'next' of gitorious.org:fg/simgear into next
2010-07-16 18:35:55 +02:00
Torsten Dreyer
d2bcb86e1e
Warning fix: compare signed/unsigned
2010-07-16 18:34:39 +02:00
Torsten Dreyer
ed7361622b
Warning fix: unused variable in TextureBuilder.cxx
2010-07-16 18:19:56 +02:00
Torsten Dreyer
25bb1cc957
Cleanup some nonprinting characters make this file work
2010-05-23 21:02:19 +02:00
Torsten Dreyer
2c6f8299f0
typo in gitignore filename
2010-05-23 19:09:00 +02:00
Torsten Dreyer
6a2773c3ac
ignore generated files
2010-05-23 10:54:23 +02:00
Torsten Dreyer
1eea917121
ignore generated files
2010-05-23 10:45:01 +02:00
Torsten Dreyer
ea1bbbabfa
ignore generated test apps
2010-05-23 10:44:29 +02:00
Torsten Dreyer
399d2bc73c
Fix a gcc warning
2010-05-22 23:40:07 +02:00
Torsten Dreyer
0759dbcdc9
Merge branch 'next' of gitorious.org:fg/simgear into next
2010-05-22 23:36:39 +02:00
Torsten Dreyer
1ae0f9c19d
New pick animation capability from Alex Perry
...
Alex Perry: Adds a new pick animation capability which parallels the existing
"action" for a named object. Specifying "vncaction" and a transform
from model space will enable all mouse clicks on that object to be
delivered directly to the OSG image. Currently, the readers for VNC
and PDF files yield interactive images; more are likely to be added
over time.
2010-05-22 23:35:01 +02:00
torsten
44dd50c0ef
Csaba Halasz:
...
Fix airport signs by reverting to rev 1.22 of apt_sign.cxx. Tweaked a little to handle missing materials better.
2010-01-05 22:11:57 +01:00
torsten
6c14e7127d
add "operator == ()" to SGGeod and SGGeoc
2010-01-03 10:10:32 +01:00
torsten
bcf727cf58
Catch a possible floating point error in SGGeodesy::SGCartToGeod() for cartesian coordinates close to the geocenter region.
2009-09-22 22:44:38 +02:00
torsten
dc2c437a1a
Tatsuhiro Nishioka:
...
Patches for configure.ac and Makefile.am files in FG/SG so Mac developers can build these in a unix way.
These also enables Mac developers to choose either PLIB framework or PLIB static libs.
2009-09-17 12:24:56 +02:00
torsten
78a471f684
Spare one node in the scenegraph if there is no <offsets>
2009-09-02 23:43:13 +02:00
torsten
0c17c5440a
support osgText in models
2009-08-25 09:11:27 +02:00
torsten
c4116da564
support osgText in models. See docs/README.osgtext for details
2009-08-25 09:11:27 +02:00
torsten
d0821953bb
Don't load materials without a name
2009-08-23 21:37:03 +02:00
torsten
e782adef94
Avoid NAN due to floating point rounding errors
2009-08-23 21:37:03 +02:00
torsten
1f3838b155
Alan Teeder: fix incomplete dbg_printf for non-gcc.
2009-08-23 21:37:03 +02:00
torsten
6aa459073e
don't build tabbed_value_test, swap_test, openal_test1 and openal_test2 by default.
2009-08-23 21:37:03 +02:00
torsten
0932c33185
warning fix: unused variables
2009-08-23 21:37:03 +02:00
torsten
5e542aa841
extinguish many warnings (at least for gcc)
2009-08-23 21:37:03 +02:00
torsten
6d53abd5af
warning fix: initializing members in the order they are declared keeps gcc happy
2009-08-23 21:37:03 +02:00
torsten
3ea58bf8db
warning fixes
2009-08-23 21:37:03 +02:00
torsten
71a4c2c3d2
extinguish many warnings (at least for gcc)
2009-08-23 21:37:03 +02:00
torsten
a3e391a523
warning fix: abort program and spit out a message if getNumPrims() is called with unknown mode. (Shouldn't happen anyway)
2009-08-23 21:37:02 +02:00
torsten
9cb15b302c
warning fix: unused variable
2009-08-23 21:37:02 +02:00
torsten
15c1a28d37
warning fix, unused code
2009-08-23 21:37:02 +02:00
torsten
d3a500e54e
don't use uninitialized variables
2009-08-23 21:37:02 +02:00
torsten
a0a5eb8aef
warning fixes
2009-08-23 21:37:02 +02:00
torsten
a92955eade
warning fixes
2009-08-23 21:37:02 +02:00
torsten
f043f3d4f9
warning fixes
2009-08-23 21:37:02 +02:00
torsten
992a057a1b
warning fix (multiline comment)
2009-08-23 21:37:02 +02:00