frohlich
0f7b65a921
Provide a thread safe SGWeakPtr implementation.
...
Extend SGAtomic with atomic exchange and add.
Import updates from the original implementation of that in OpenFDM.
Modified Files:
Makefile.am SGAtomic.cxx SGAtomic.hxx SGReferenced.hxx
SGSharedPtr.hxx
Added Files:
SGWeakPtr.hxx SGWeakReferenced.hxx
2009-06-25 10:13:03 +02:00
fredb
33f7903aeb
Update MSVC 7.1 projects
2009-06-25 10:13:02 +02:00
fredb
f3c2740917
Win32 fix
2009-06-25 10:13:02 +02:00
frohlich
09a57c7a52
No observed_ptr needed.
...
Modified Files:
simgear/scene/model/ModelRegistry.cxx
2009-06-25 10:13:02 +02:00
frohlich
9068f0606e
Remove unused headers.
...
Modified Files:
simgear/scene/tgdb/TileEntry.cxx
2009-06-25 10:13:02 +02:00
frohlich
c577b7e369
Propagate the lanel loader through the options.
...
Modified Files:
simgear/scene/model/SGReaderWriterXML.cxx
2009-06-25 10:13:02 +02:00
frohlich
5850464ba7
Move the carrier interactive geometry configuration into the model files.
...
Modified Files:
Makefile.am animation.cxx
Added Files:
SGInteractionAnimation.hxx SGInteractionAnimation.cxx
2009-06-23 10:42:42 +02:00
ehofman
50e240d5e4
Move the texture code to FlightGear/utils/Modeller
2009-06-23 10:42:42 +02:00
frohlich
75c2a45b25
Add some trailing spaces ...
...
Modified Files:
./simgear/math/SGIntersect.hxx
2009-06-23 10:42:42 +02:00
jmt
c958d63897
Fix a warning from GCC - 'ALIAS' was unhandled in the switch stmt.
2009-06-23 10:42:42 +02:00
Tim Moore
b633b8d0d3
change MAX_PATH to max_path to avoid Windows compilation problems
2009-06-17 11:37:21 +02:00
Tim Moore
76948416a9
overhaul sg_throwable to behave like a proper exception
...
Make sg_throwable inherit from std::exception.
change exception objects to contain C strings: exception objects should not
include objects, like std::string, whose copy constructor could throw.
2009-06-16 11:11:13 +02:00
fredb
f4a527c57c
Add a simple class to subdivide Bezier curves
2009-06-15 10:23:22 +02:00
fredb
c491baff0e
Remove unused variable
2009-06-15 10:23:21 +02:00
frohlich
6d05fc6f57
Finally get rid of that member in the SGModelData callback.
...
Move call of SGModelData::modelLoaded directly into the xml reader.
Modified Files:
simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/modellib.hxx
simgear/scene/model/modellib.cxx
simgear/scene/model/SGReaderWriterXML.cxx
2009-06-15 10:23:21 +02:00
frohlich
ca53add820
Mark static transforms as static.
...
Modified Files:
simgear/scene/tgdb/TileEntry.cxx
2009-06-15 10:23:21 +02:00
frohlich
6fe3099ab4
Revert a change from 2009/06/07.
...
Should make the Nasal code for some xml models work again.
Modified Files:
simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/SGReaderWriterXML.cxx
simgear/scene/model/modellib.cxx
simgear/scene/model/modellib.hxx
2009-06-15 10:23:21 +02:00
frohlich
a34eceb327
Also handle PagedLOD nodes frame count in the update visitor.
...
Modified Files:
simgear/scene/util/SGUpdateVisitor.hxx
2009-06-11 15:55:12 +02:00
frohlich
c9042c3186
Also test against bounds when updating the scene.
...
Modified Files:
simgear/scene/util/SGUpdateVisitor.hxx
2009-06-11 15:55:12 +02:00
jmt
b46fe0d51c
Fix waypoint test, thanks Martin.
2009-06-11 15:55:12 +02:00
jmt
6d1d3173fe
Extend SGWaypoint with track and speed data, and compute tracks with the
...
distance in SGRoute.
2009-06-11 15:55:12 +02:00
fredb
030d044d03
Win32 fix
2009-06-11 15:55:12 +02:00
jmt
29fb8e0f74
Fix bad interaction between CourseAndDistance overloads and use of implicit
...
SGWaypoint construction from SGGeod.
2009-06-11 15:55:11 +02:00
jmt
6e326976d5
Update route/waypoint tests for revised API
2009-06-11 15:55:11 +02:00
jmt
03a7d72a62
Change SGWaypoint to use SGGeod internally. Remove some unused code, to
...
support cartesian waypoints and compute distance off a cartesian route.
Add a helper to access the total route distance.
Should not cause any visible functionality change.
2009-06-11 15:55:11 +02:00
frohlich
f913febd71
More cleanup.
...
Modified Files:
simgear/scene/model/SGReaderWriterXML.cxx
2009-06-11 15:55:11 +02:00
frohlich
daa0fbdc6b
Do not modify danymically generated textures.
...
Modified Files:
simgear/scene/model/ModelRegistry.cxx
2009-06-11 15:55:11 +02:00
frohlich
d4c52b599d
Provide something more sensible for the properties root
...
for the modelLoaded call. MAy be this needs to be revisited, but in any
case better than constant zero.
Modified Files:
simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/modellib.cxx
2009-06-11 15:55:11 +02:00
frohlich
ec88373eb7
Cleanup.
...
Modified Files:
simgear/scene/model/SGReaderWriterXML.cxx
2009-06-11 15:55:11 +02:00
frohlich
4286cafdeb
Doing the compilers job: constant propagation.
...
This variable is nowhere set except to zero.
Modified Files:
model/SGPagedLOD.cxx model/SGReaderWriterXML.cxx
model/modellib.cxx model/modellib.hxx
2009-06-11 15:55:11 +02:00
frohlich
3880d8e2f2
Slight cleanup.
...
Remive last reference to plibs file utility library.
Modified Files:
simgear/scene/model/SGReaderWriterXML.cxx
2009-06-11 15:55:11 +02:00
frohlich
671c84ad44
Remove unused header.
...
Modified Files:
simgear/scene/tgdb/TileEntry.cxx
2009-06-11 15:55:11 +02:00
frohlich
a0d687bb24
Use osgDB::FileUtils instead of plib file utils.
...
Modified Files:
simgear/scene/material/mat.cxx
2009-06-11 15:55:10 +02:00
frohlich
704385ff0a
Replace SGPlacementTrans usage with osg::PositionAttitueTransform.
...
Remove SGPlacementTrans.
Update build system.
Modified Files:
SimGear.dsp projects/VC7.1/SimGear.vcproj
projects/VC8/SimGear.vcproj simgear/scene/model/Makefile.am
simgear/scene/model/placement.cxx
simgear/scene/model/placement.hxx
simgear/scene/tgdb/TileEntry.cxx
simgear/scene/tgdb/TileEntry.hxx
Removed Files:
simgear/scene/model/placementtrans.cxx
simgear/scene/model/placementtrans.hxx
2009-06-11 15:55:10 +02:00
frohlich
81a657edec
Use osg's builtin mechanisms to traverse only in range nodes with the
...
update visitor.
Modified Files:
simgear/scene/util/SGUpdateVisitor.hxx
simgear/scene/tgdb/TileEntry.cxx
simgear/scene/model/placementtrans.cxx
2009-06-11 15:55:10 +02:00
frohlich
9d0bad29c0
Invent a property root if not given in the options struct.
...
Modified Files:
simgear/scene/model/SGReaderWriterXML.cxx
2009-06-03 23:43:45 +02:00
ehofman
2fb8e32104
test for addChild also
2009-06-03 00:08:05 +02:00
ehofman
c522e499b2
find the last index instead of the last pos for addChild
2009-06-03 00:08:05 +02:00
frohlich
4700955480
Avoid empty search path extensions for the case that only the bucket index
...
number is given.
Modified Files:
scene/tgdb/TileEntry.cxx
2009-06-03 00:08:05 +02:00
frohlich
2c66081fa4
When loading stg files honour the original path if given.
...
Modified Files:
simgear/scene/tgdb/ReaderWriterSTG.cxx
simgear/scene/tgdb/TileEntry.cxx
simgear/scene/tgdb/TileEntry.hxx
2009-06-03 00:08:05 +02:00
frohlich
855e88da43
Enable stg loading by filename.
...
Modified Files:
simgear/scene/tgdb/ReaderWriterSTG.cxx
2009-06-03 00:08:05 +02:00
mfranz
ad302db9a8
segfault--
2009-06-03 00:08:04 +02:00
frohlich
bfa5fff500
Cleanup.
...
Additional null pointer checks.
Simplify redundant interface arguments.
Modified Files:
simgear/scene/material/mat.cxx simgear/scene/material/mat.hxx
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx
simgear/scene/tgdb/ReaderWriterSTG.cxx
simgear/scene/tgdb/SGReaderWriterBTG.cxx
simgear/scene/tgdb/SGReaderWriterBTGOptions.hxx
simgear/scene/tgdb/TileEntry.cxx
simgear/scene/tgdb/TileEntry.hxx simgear/scene/tgdb/obj.cxx
2009-06-03 00:08:04 +02:00
frohlich
01c64fd554
Give the models properties as an argument to the init callback.
...
Modified Files:
SGPagedLOD.cxx
2009-06-03 00:08:04 +02:00
mfranz
13a2b92a32
remove duplicated header entry
2009-05-19 23:53:25 +02:00
frohlich
29e79f8f61
Also note the btg reader header in the build system.
...
Modified Files:
scene/tgdb/Makefile.am
2009-05-19 23:53:24 +02:00
frohlich
8f7527ede0
Restore the special capability of the btg reader to read compressed files.
...
Modified Files:
scene/tgdb/SGReaderWriterBTG.cxx
scene/tgdb/SGReaderWriterBTG.hxx
2009-05-19 23:53:24 +02:00
frohlich
7cd149a4d8
Implement current osgDB::ReaderWriters supportsExtension interface instead
...
of the previous one.
Modified Files:
model/SGReaderWriterXML.cxx model/SGReaderWriterXML.hxx
tgdb/ReaderWriterSTG.cxx tgdb/ReaderWriterSTG.hxx
tgdb/SGReaderWriterBTG.cxx tgdb/SGReaderWriterBTG.hxx
2009-05-19 23:53:24 +02:00
frohlich
e45912fd8a
Attach the ModelData to the options instead of the userdata field.
...
Modified Files:
simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/SGReaderWriterXML.cxx
2009-05-19 23:53:24 +02:00
ehofman
56c4ba67c6
* Add a function to create a node after the laste node with the same name
...
(this frees the xml property loader from keeping track of the number of
nodes with the same name that have already been added to the property
tree).
* make some small code cleanups at the core of the property tree.
2009-05-18 00:36:46 +02:00