Hleb Valoshka
73638c116d
Remove basictypes.h and use standard c++11 types
2018-09-22 23:42:03 +03:00
Hleb Valoshka
b082d5f47f
Automatically convert to c++11 using clan-tidy
...
+ manual cleanups
2018-09-22 23:42:02 +03:00
Hleb Valoshka
5a5b06481f
Fix the most serious fixes found by coverity
...
… resource leaks, null pointers dereference
2018-09-22 23:41:58 +03:00
Hleb Valoshka
f34c7568c4
fix (some) compiler warnings
...
# Conflicts:
# src/celengine/observer.cpp
2018-09-22 23:41:57 +03:00
Hleb Valoshka
882e4ecf28
fix whitespaces and indents
...
trailing spaces are removed
tabs are replaced with 4 spaces
# Conflicts:
# src/celengine/cmdparser.cpp
# src/celengine/command.cpp
# src/celestia/celestiacore.cpp
# src/celestia/celestiacore.h
# src/celestia/qt/qtappwin.cpp
# src/celestia/qt/qtglwidget.cpp
# src/celestia/win32/winmain.cpp
2018-09-22 23:41:57 +03:00
Andrew Tribick
207823b1d8
Patch to fix valgrind errors and gcc warnings from Daniel K.O.
...
Use #ifdef FOO instead of #if FOO
Unused function parameter names
Uninitialised member in FrameTree
Memory read after deallocation in ReferenceFrame
Unmatched new[]/delete[] in StarDatabase
Uninitialised temperature in StarDatabase
Uninitialised member of RenderListEntry: isOpaque
Fix for convoluted code in renderer
2012-04-26 19:50:22 +00:00
Andrew Tribick
a2191a3650
Added units support to parser and tokenizer. Units are specified inside angle brackets after the property name.
2009-12-16 19:23:51 +00:00
Chris Laurel
1c89b0568f
Cleaned up include files used by modules in celengine:
...
- Include files in order from most specialized to most general
- Use C++ versions of headers (e.g. cmath instead of math.h)
2009-10-04 14:12:59 +00:00
Chris Laurel
f9457d32a6
Fixed bugs in goto dialog. The latitude was not getting initialized correctly, and the distance was in the wrong units.
2009-08-05 17:58:53 +00:00
Chris Laurel
9cca6b8c27
Eigenized Observer and Simulation classes. Fixed star picking bug.
2009-07-22 04:53:15 +00:00
Chris Laurel
5a241fe28c
Eigenized reference frames.
2009-07-17 02:36:11 +00:00
Chris Laurel
53e9049aa7
Fixed issues with Eigen on Windows:
...
- Define NOMINMAX before any file that includes windows.h to prevent Windows' min and max macros from interfering with the STL template functions of the same name.
- Renamed Celestia's Quaternion class to Quat so that it's name doesn't interfere with the Eigen structure during the port to Eigen (g++ doesn't seem to care...)
2009-07-15 19:54:20 +00:00
Chris Laurel
9d55c56382
Committed Julien's patch to fix the animation rate of the selection cursor
...
when recording movies.
2008-10-10 22:43:02 +00:00
Chris Laurel
a6c8fef769
Fix for bug 1938559, "Goto Object menu longitude is wrong by 180 deg", part two. Removed the now unnecessary 180 degree adjustment in getSelectionLongLat.
2008-04-10 22:24:47 +00:00
Chris Laurel
cfa8300ff1
Fixed bug 1938559: Goto Object menu longitude is wrong by 180 deg
...
When the observer reference frames were rewritten in terms of ssc reference frames, an extra 180 rotation was eliminated from the BodyFixed (formerly 'planetographic') frame. I'd forgotten to remove a now unncessary correction in gotoSelectionLongLat. Simply getting rid of the extra -PI fixes the bug.
2008-04-10 03:37:43 +00:00
Chris Laurel
1033c3a7e4
Fixed bug 1923254 "invisible planet crashes Celestia". The code to pick the preferred distance from a reference point wasn't checking for the case when the point had no child objects. A simple check for NULL fixed the problem.
2008-03-23 19:57:26 +00:00
Chris Laurel
dcc1d75b99
Improved goto distance for reference points. When the user goes to the reference point, the default view distance will be large enough so that all objects with orbits centered on the point will fit in the view.
2008-03-19 05:08:33 +00:00
Chris Laurel
d4e6d97ede
Promoted observer angular velocity to double precision.
2008-02-28 19:48:58 +00:00
Chris Laurel
748c2d5408
Fixed bug 1900307 "Tracked objects don't stay centered." The fix was simple: the track orientation for the observer needed to be calculated *after* the universal position and orientation were updated.
2008-02-23 22:23:01 +00:00
Chris Laurel
6538111e75
Added constructor for ObserverFrame that takes a generic ReferenceFrame.
2008-02-22 23:28:51 +00:00
Chris Laurel
8a3ea6a78e
Added missing assignment operator and constructor for the observer class. Fixes a crash when using multiple views.
2008-02-10 01:29:26 +00:00
Chris Laurel
6670fe3a1c
Added missing updateUniversal() in Observer::simTime(). Fixes problem with eclipse finder where initial camera location is wrong.
2008-02-09 21:09:15 +00:00
Chris Laurel
a6cc486542
Rewrote observer class to use 1.5.0 reference frames. The FrameOfReference
...
class is replaced by the new ObserverFrame class, which is a wrapper for
ReferenceFrame. Small changes to a lot of file were necessary, in many cases
simply because the CoordinateSystem enum was moved from astro to
ObserverFrame. This change was primarily a refactoring to make future
development easier and improve performance be eliminating redundant
frame -> universal conversions of the observer position. The one change that
will be apparent to users is the redefinition of the chase and phase lock
frames. Previously, these used the spin axis of the reference object to define
the secondary frame axis. Now, the secondary axis is the position vector in
chase mode, and the velocity vector in phase lock mode.
2008-02-08 21:46:02 +00:00
Chris Laurel
15d44865df
- Added child list for stars
...
- Added tracking of shared vs unshared StarDetails objects
- Changed goto distance for stellar barycenters so that all child stars fit in the view
(uses star child lists)
2008-01-14 20:36:33 +00:00
Vincent Giangiulio
2f3a2aeaf3
Clamped simulation time to +/- 2 billion years.
2008-01-07 20:25:24 +00:00
Chris Laurel
419ea39ae0
Added check so that goto object commands with zero duration are handled properly.
2006-12-05 10:06:18 +00:00
Chris Laurel
8c070a5ba4
Modified Frame and Observer classes to use new, more robust rotation matrix to quaternion function.
2006-11-30 03:51:37 +00:00
Toti
4885a13c48
Fixed signed to unsigned implicit cast warnings
2006-11-27 19:11:55 +00:00
Chris Laurel
6a77a18a0b
Set a minimum velocity threshold so that observer velocity can actually reach zero rather than just asymptotically approach it.
2006-11-27 17:59:33 +00:00
Chris Laurel
5a8df922c0
Set a minimum velocity threshold so that observer velocity can actually reach zero rather than just asymptotically approach it.
2006-11-27 17:55:27 +00:00
Chris Laurel
a76affa1c3
Modified center orbit to use vecToVec rotation method of quaternion class.
2006-11-06 05:56:26 +00:00
Chris Laurel
e1d926725e
More work on reference frames:
...
- Changed *geographic* function names to more appropriate *BodyFixed*
- Implemented parsing of BodyFixed and MeanEquator frames
- Added freeze epoch for MeanEquator frame
- Added a correction so that x-axis of body-fixed frames goes through prime meridian
2006-10-27 17:13:45 +00:00
Toti
df13211959
Removed unused parameters
2006-09-16 15:14:23 +00:00
Chris Laurel
252182a102
Implemented phase lock and sync follow modes for stars.
2004-11-09 07:18:46 +00:00
Chris Laurel
8b76a76da5
Changed the default goto distance for barycenters to 1au.
2004-10-10 21:12:48 +00:00
Harald Schmidt
74c29506ac
Fix wrong handling of PhaseLock during goto by resetting to Ecliptical
2004-08-08 00:48:47 +00:00
Harald Schmidt
120b547b82
Fixed problems when using goto while still travelling.
2004-03-04 15:15:02 +00:00
Harald Schmidt
bc06375f17
Added gotoJourney(), useful for scripting.
2004-01-25 03:48:53 +00:00
Harald Schmidt
5d0af8799a
Fixed setFrame to change journey-params.
2004-01-18 16:02:16 +00:00
Chris Laurel
0105d1a439
Improved the center/orbit command so that the selection always ends up exactly in the center of the view.
2003-09-15 17:11:12 +00:00
Chris Laurel
3e4faed28d
Christophe's orbit-center command: bring the selection to the center while keeping the reference object in view.
2003-09-10 16:22:51 +00:00
Chris Laurel
7c958eb91b
Attempt to maintain height above planet surface when going to a location.
2003-08-11 10:13:47 +00:00
Chris Laurel
5dcded2080
Added goto methods that use a great circle trajectory. This is useful when moving the camera between surface locations, as it keeps the camera from going through the middle of a planet. Also did some cleanup on a few of the goto functions--still more required however.
2003-08-07 16:51:24 +00:00
Chris Laurel
ab72c4f4a8
Cleaned up some leftover references to selection.body
2003-06-25 18:06:08 +00:00
Chris Laurel
d7b3afc866
Redo the selection class to use a single pointer and a type field.
2003-06-25 17:40:24 +00:00
Chris Laurel
54e1a96864
Added a location filter mask.
2003-06-23 14:03:29 +00:00
Chris Laurel
6e4d02e324
Added support for alternate surface textures for planets/moons/etc.
2003-06-09 03:57:43 +00:00
Christophe Teyssier
1723e24332
Travel patch, added start and end of direction interpolation period as parameters.
2003-05-06 22:19:54 +00:00
Fridger Schrempp
3d8b37862a
fix 'lookback' command
2003-05-01 16:33:52 +00:00
Chris Laurel
1cc1c5a5a1
Made time a property of the observer instead of the simulation. Added get/setSyncTime method to Simulation. By default, it's on, so time changes are broadcast to all observers. Currently, there's no UI support for disabling sync time.
2003-02-22 06:49:37 +00:00