Commit Graph

80 Commits (73638c116d90226181af195a747958e00ee51588)

Author SHA1 Message Date
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 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
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 69d44fa03a Removed obsolete files 3dsmesh.cpp and 3dsmesh.h. 2009-07-25 23:48:03 +00:00
Chris Laurel 9cca6b8c27 Eigenized Observer and Simulation classes. Fixed star picking bug. 2009-07-22 04:53:15 +00:00
Chris Laurel 5a31a08df9 Eigenized galaxy rendering and more of the core renderer. 2009-07-21 03:14:29 +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 37a46a4eff Eigenized portions of the renderer that draw stars and DSOs. 2009-07-16 05:32:55 +00:00
Chris Laurel 78202393aa Eigenized star code. 2009-07-16 03:27:11 +00:00
Chris Laurel f73aad83f3 Eigenized picking code. Added new conversion methods to UniversalCoord that
abstract Celestia's internal units.
2009-07-16 02:28:00 +00:00
Chris Laurel 7272945657 First round of Eigen-izing the core Celestia code. 2009-07-15 03:06:30 +00:00
Chris Laurel 58a634722c Implemented NormalizeMesh property for solar system bodies. This property makes it easier to build assemblies from several bodies with mesh geometry. 2008-09-22 21:03:43 +00:00
Chris Laurel 8dac3c6931 Added the Clickable property for deep sky objects. 2008-09-09 20:48:28 +00:00
Chris Laurel 41efec9e08 - Added abstract class Geometry; this will permit geometry other than
static models to be used for objects.
- Replace body, star, and DSO instances of Model with Geometry
- Renamed ModelManager to GeometryManager
- Fixed a GeometryManager bug that was triggered by multiple uses of a mesh
  file with different MeshCenters.
2008-07-23 21:54:53 +00:00
Chris Laurel f9975120d9 Location fixes:
- Added symbols for locations.
- Fixed visibility calculation for locations on ellipsoidal, non-spherical
bodies.
- Allow location labels to be occluded by foreground objects.
- Added new location types: eruptive center, insula (islands), and
tholus (domical hills and mountains)
2008-05-22 20:30:45 +00:00
Chris Laurel b1057d803e Fixed a picking bug that occurred when an object's frame parent was defined with respect to a different star system than it's namespace parent. This was a problem when planets were defined in a frame centered on the solar system barycenter. The picking code had never been updated to use the frame hierarchy; this change corrects the oversight. 2008-03-26 00:49:04 +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 ed9b33dab0 Implemented depth sorting for markers, with option to specify non-occludable
markers.
2008-02-13 21:49:53 +00:00
Chris Laurel 0cda718f63 Added new ssc object flags for visibility, orbit color, and orbit visibility. Added ssc properties for visibility and orbit color, celx methods for all new flags. 2008-02-04 00:17:35 +00:00
Chris Laurel b1982a520d Updated Body class to allow all three ellipsoid axes to be specified independently via SemiAxes property. 2008-02-01 01:37:49 +00:00
Chris Laurel 4a5b66a62c Added a Clickable property for ssc objects, similar to request in feature
tracker item 1704255.
2008-01-31 20:04:01 +00:00
Chris Laurel baae4530f7 Fixed a bug in Universe::getNearestSolarSystem() that would miss finding
a solar system if there was a closer star without a solar system (which was
possible in some multiple star systems.)
2008-01-15 00:13:01 +00:00
Vincent Giangiulio 839f745485 Changed from marker 'name' to marker 'label'. 2008-01-03 23:10:12 +00:00
Vincent Giangiulio 612f9fd596 Added name to markers 2008-01-02 23:52:31 +00:00
Toti 38c2fda556 Removed redundant normalization 2007-11-25 01:28:02 +00:00
Vincent Giangiulio ba404d39d1 Made StarPicker systematically pick the barycenter of a stellar system when the resolution is too low to make a distinction between the barycenter and the orbiting stars. 2007-10-27 16:00:58 +00:00
Toti f55ed1dd3c Clarified variable names 2007-01-08 00:03:07 +00:00
Toti 11b26cdf45 Corrected metric for DSO pickingdeepskyobj.cpp 2007-01-05 20:29:32 +00:00
Toti b667cc4cae Made several changes to DSO picking code:
- picking is now delegated to subclasses
- ray-ellipsoid intersection test used for galaxies
- made picking of overlapping DSOs possible
2006-12-08 19:19:29 +00:00
Toti afd7199bd8 Made object picking aware of renderflags 2006-12-05 17:38:14 +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 a263f0c7e9 Changed Universe find methods to be const. 2006-10-25 07:19:58 +00:00
Toti 2db5e4ab81 Removed unused parameters 2006-09-16 16:14:34 +00:00
Toti 1cce187e70 Fixed initialization order warnings 2006-09-12 14:24:55 +00:00
Christophe Teyssier db661b5160 Fixed bug in completion code when using UTF-8 characters 2006-03-06 10:21:38 +00:00
Chris Laurel 974213f905 Integrated changes from Fridger and Toti's Celestia FT 1.2 2005-11-18 09:00:39 +00:00
Christophe Teyssier 2318e423a3 Adding support for i18n with gettext. 2005-07-19 21:31:04 +00:00
Chris Laurel 55b070d1a4 Fixed bugs for planets in multiple star systems:
- Moons of planets that orbited barycenters were not getting rendered
- Picking was broken in solar systems with moving origins
2004-10-20 07:55:50 +00:00
Chris Laurel d3170086f2 Improved picking at telescopic magnifications for stars with orbits. 2004-10-17 01:40:09 +00:00
Chris Laurel 304c984e62 Implemented complex star systems:
- Barycenters may be defined in .stc files; star orbits may be defined with respect to a fixed or moving barycenter
- Eliminated BarycenterIsOrigin flag; barycenters are a more general solution
- Previously, just the closest solar system was rendered; changed renderer to show planets for all solar systems visible
- Added automatic star catalog number generation, so stars can be defined with just a name.  Some futher work required to make these stars work correctly in cel:// URLS.
2004-10-02 10:44:49 +00:00
Chris Laurel bda33fa9b3 More work on star orbits:
- Check for orbit spheres which straddle nodes when inserting stars into the octree.
- Make picking work for orbiting stars (mostly)
- StarDetails::getOrbitalRadius() was always returning zero.  Oops.
2004-09-28 06:34:55 +00:00
Chris Laurel bb998862f0 Fixed a completion bug: location names were not being displayed in the completion box for objects without any satellites. 2004-06-07 05:24:58 +00:00
Chris Laurel f505488d7b Fixed crashing bug in name completion code that occurred when location labels were enabled and the name of an object with no locations was entered. 2004-06-06 21:49:45 +00:00
Chris Laurel df98cc39cd Improved mesh support:
- Use more efficient and flexible internal representation
- Added code to convert 3DS meshes to new structure
- Support new Celestia mesh format (ASCII-only right now)
2004-02-17 09:58:52 +00:00
Chris Laurel 2ef0b461bb Fixed crashing that occurred in name completion when the currently selected body had no locations. 2004-01-29 10:05:26 +00:00
Christophe Teyssier ed0a3aa3dd Added support for UTF-8 keyboard entry and completion of location labels. 2004-01-11 17:15:26 +00:00
Chris Laurel d518743c59 Make pick functions ignore bodies that aren't extant at the current simulation time. 2003-12-12 05:53:37 +00:00
Chris Laurel 738b8faba4 Generalized 'paths' for the find and completion methods so that they can be any selection. This permits locations to be entered without specifying the parent body when either the parent body or a sibling location is selected already. 2003-08-11 08:51:50 +00:00
Chris Laurel c0aa8a669a Fixed a bug that made findPath fail to find locations on bodies without satellites. Cleaned up find code with addition of helper method findChildObject. 2003-08-11 08:12:28 +00:00