Commit Graph

144 Commits (14af83a3912c2c1d35faf06d82880f1d15f93f25)

Author SHA1 Message Date
Hleb Valoshka 14af83a391 Implement Logger to replace raw cerr/cout and DPRINTF usage 2021-12-20 17:54:50 +03:00
Andrew Tribick f79b21e7d3 Use existing tokenizer to parse ASCII cmod files 2021-11-15 18:28:06 +01:00
Hleb Valoshka 42790d9013 Replace deprecated fmt::fprintf calls 2021-10-19 19:35:23 +03:00
Joseph C Wang 05cb7196b5 make it compile with fmt v8 2021-06-27 20:52:35 +03:00
Hleb Valoshka f16c355d11 Add a new body parameter "reflectivity" complementing albedos 2021-03-10 17:51:10 +03:00
Levin Li 0d4cda24ed Add missing log level in DPRINTF 2020-08-02 19:32:21 +08:00
Hleb Valoshka 686d82e6c1 Replace fmt::fprintf with DPRINTF in albedo warning
Will restore in 1.8
2020-07-25 09:41:21 +03:00
Hleb Valoshka 3fc58d3c55 Allow OrbitColor overriding for reference points
Closes: #805
2020-07-21 14:39:20 +03:00
Hleb Valoshka 0811e7c350 Remove make_shared and make_unique to keep single style 2020-07-07 08:15:18 +03:00
Hleb Valoshka 1c668d3d7f Fix warnings reported by clang/gcc 2020-06-20 10:11:09 +03:00
SevenSpheres 8efb8a2204 Add newlines in solarsys.cpp 2020-03-07 11:04:35 +03:00
Hleb Valoshka fb4bede3d1 Allow building without NLS 2020-02-15 00:20:13 +03:00
Hleb Valoshka 4a38917e08 Split parser.* into hash.*, value.* and parser.* 2020-02-07 23:15:43 +03:00
Hleb Valoshka bb1f3aefe5 Add support for body mass units (Closes: #513) 2019-12-05 11:37:45 +03:00
Li Linfeng 9c371c891c define macros for print levels and avoid direct use of fmt::printf 2019-08-31 13:32:44 +08:00
Hleb Valoshka b6b543438d Port to filesystem API 2019-08-16 18:11:24 +03:00
pirogronian c3567d820c Replace refcounted objects with std::shared_ptr 2019-08-16 12:45:57 +03:00
Hleb Valoshka c17493885f Fix memory leaks 2019-06-20 13:02:27 +03:00
Hleb Valoshka f3a73dae71 Move math code into celmath namespace 2019-05-20 10:48:04 +03:00
Luke McCrone a363fc772b Issue #216: Allow changing colors for comet tails 2019-03-11 21:24:21 +03:00
Hleb Valoshka c80a1520ac Use config.h on all platforms 2019-02-09 00:21:00 +03:00
pirogronian 8c032924c7 Make dispositions general and use it in loadCategory. 2019-01-03 20:00:30 +01:00
pirogronian de2a2a892e I18n support for user defined categories via Lua and catalog files. 2018-12-30 17:23:48 +01:00
Hleb Valoshka c710412ba7 New planet parameters, core 2018-12-22 23:22:49 +03:00
pirogronian 7f23b726c4 Core mechanism. 2018-12-19 17:31:30 +01:00
Hleb Valoshka eab70c96cb Fix more coverity issues
Mostly uninitialized variables plus one memory leak
2018-10-30 23:52:19 +03:00
Hleb Valoshka fa5ab79304 Cleanup code related to non-GLSL render paths 2018-10-28 22:00:27 +03:00
Hleb Valoshka 363abc40f3 Use libfmt instead of C-style & iostream workflow
TODO: check StarDatabase::getStarName
2018-10-17 22:19: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 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
Dmitry Brant a25d26720c Adapt code to Eigen 3.3
No functional changes, just adapting to API changes in Eigen.
2018-09-22 17:08:07 +03:00
Chris Laurel dcf48155a8 Fixed bug that made a solar system object invalid when Modify was used to
override properties of an object with a multiphase Timeline.
2010-05-17 16:56:04 +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 9cf68b5169 Eigenized parser and app core code. 2009-07-25 22:18:51 +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 db1ce7d79a Eigenized atmosphere code. 2009-07-23 03:11:40 +00:00
Chris Laurel c4aa846945 Eigenized 3ds and cmod mesh code. 2009-07-23 02:58:10 +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 78202393aa Eigenized star code. 2009-07-16 03:27:11 +00:00
Pat Suwalski 97447e6cf3 Removing CRLF line endings which somehow existed on some but not all
lines.
2008-10-30 07:02:31 +00:00
Chris Laurel b9f98db57f Added property for atmosphere to control cloud shadow depth; currently any value greater than 0 is treated as 1 (full cloud shadows.) 2008-09-29 21:07: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 251aae9233 SSC parser changes to make it easier to place objects on planet surfaces:
- Extended FixedPosition to support planetocentric and planetographic
  coordinates.
- Added FixedAttitude rotation model, with more intuitive parameters for
  orientation.
- Added Topocentric frame
- Added new SurfaceObject type for ssc files; like an ordinary body except
  that the OrbitFrame defaults to BodyFixed of parent, and BodyFrame defaults
  to Topocentric.
2008-08-29 23:33:15 +00:00
Chris Laurel 0f3574c2da Added LabelColor property for locations. 2008-07-25 23:08:52 +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 e7645a774f Introduced support for multiple names for solar system objects. As with
stars and DSOs, names are separated by colons.
2008-07-19 21:41:30 +00:00
Chris Laurel 38075ecc01 Simplified frame specification in ssc files with default centers; this
eliminates the need to provide centers for body frames, and can also simply
some orbit frame definitions.
2008-06-17 02:18:38 +00:00
Chris Laurel 7e117ee0fd Added diffuse and minormoon classes. 2008-04-14 18:48:13 +00:00