Hleb Valoshka
b082d5f47f
Automatically convert to c++11 using clan-tidy
...
+ manual cleanups
2018-09-22 23:42:02 +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
5705194ae7
Removed SkyPlane frame: unclear this corresponds to sky plane frame as actually used in astronomical publications.
2010-07-25 18:38:48 +00:00
Andrew Tribick
98183dc2e3
Add SkyPlane reference frame.
2010-02-04 22:31:36 +00:00
Chris Laurel
1ae7019dd7
Redefined orientation of location objects so that they inherit the orientation
...
of their parent bodies. Fixes unexpected behavior that occurred when a user
would sync orbit a location.
2009-08-21 02:53:25 +00:00
Chris Laurel
abeb350f5b
Eigen conversion:
...
- Eigenized locations and some cube map code in texture.cpp
- Removed eigenport.h include from completely converted modules
2009-07-24 23:02:23 +00:00
Chris Laurel
80d0e02d3b
Eigenized all rotation model code.
2009-07-23 21:09:12 +00:00
Chris Laurel
5a241fe28c
Eigenized reference frames.
2009-07-17 02:36:11 +00:00
Chris Laurel
86d1808519
Eigenized Body and Selection classes; adapted dependent code. Removed some
...
miscellaneous compile warnings in other modules.
2009-07-16 23:37:48 +00:00
Chris Laurel
8895e95a88
Corrected reversed conditional logic in BodyMeanEquatorFrame. This caused the equatorial frames for bodies with changing equatorial planes to not work properly.
2008-03-10 02:44:12 +00:00
Chris Laurel
709bff05a9
Fixed bug in BodyMeanEquator frame; only the rotation model body (and not its frame) was considered when determining the frame axes. This bug was in 1.5.0 but hadn't appeared because BodyMeanEquator is rarely used in ssc files.
2008-02-27 22:31:22 +00:00
Chris Laurel
637604111a
Added missing virtual modifier to RotationModel::getAngularVelocity so that subclass methods get called. Fixed bug in calculation of angular velocity via quaternion differentiation.
2008-02-26 05:08:47 +00:00
Chris Laurel
eba1b9940c
- Implemented framework for Orbit and RotationModel subclasses to implement their own velocity and angular velocity methods to use instead of numerical differentation. Actual implementation of velocity methods will wait until further discussion on the developers list.
...
- Implemented Timelines for solar system bodies. A timeline allows a body to have different reference frames, orbits, and rotation models over time.
2008-02-21 02:25:48 +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
4c8281e197
Fixed circular reference check for frames.
2007-10-23 12:34:22 +00:00
Chris Laurel
fe576db4b0
Added code to catch and report circular reference frames in ssc definitions.
2007-10-23 01:40:32 +00:00
Chris Laurel
48e2d1ddf6
Fixed signs in two-vector reference frames.
2007-02-26 17:29:31 +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
Chris Laurel
664a4ddc38
Code cleanup:
...
- Removed remaining references to OrbitReferencePlane
- Replaced instances of constant for J2000 obliquity with astro::J2000Obliquity
2006-11-06 06:18:09 +00:00
Chris Laurel
3b102bf665
Fixed bugs in two-vector frames:
...
- Right-handed coordinate systems were not always generated
- Sign of axes was incorrect in some cases
2006-11-05 05:51:29 +00:00
Chris Laurel
5e90194423
- Added reference counting for ReferenceFrame objects
...
- Implemented constant vectors for two-vector frames
2006-11-01 18:20:05 +00:00
Chris Laurel
7f98056063
- Consider reference frame center when determining whether to use star-orbiter units (AU, days) or planet-orbiter units (km, hours)
...
- Eliminated OrbitReferencePlane from ssc parser
2006-10-31 07:40:39 +00:00
Chris Laurel
ccaa247570
Added missing degrees to radians conversion for J2000 equator frame. Oops.
2006-10-31 06:31:29 +00:00
Chris Laurel
c39751b4a1
Two-vector reference frame fixes:
...
- Permute axes to match Celestia's non-standard coordinate system
- Add caching reference frame class to reduce redunant calculations
- Fixed sign errors for some axis assignments
2006-10-30 07:46:07 +00:00
Chris Laurel
fb577a44fa
Implemented two-vector reference frames.
2006-10-30 03:13:54 +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
Chris Laurel
ae0645af4f
Corrected bad calculation in reference frame coordinate conversion.
2006-10-25 07:49:34 +00:00
Chris Laurel
3d4700a824
Added new reference frame class hierarchy.
2006-10-24 05:09:44 +00:00
Chris Laurel
9f8005ebad
Purged RotationElements class from code and replaced it with RotationModel.
2006-10-21 20:21:12 +00:00
Harald Schmidt
9417ed78ac
Handle Chase and Lock better when using stars, nebulae etc. as ref
2005-03-24 10:21:33 +00:00
Chris Laurel
252182a102
Implemented phase lock and sync follow modes for stars.
2004-11-09 07:18:46 +00:00
Chris Laurel
001ab3dc52
Made locations selectable.
2003-06-29 16:26: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
12c3883934
Separated the very useful FrameOfReference class into it's own module; converted toUniversal and fromUniversal functions to be methods of FrameOfReference.
2003-02-10 08:22:18 +00:00