~daggerstab/stellarium/comets-asteroids-importer

« back to all changes in this revision

Viewing changes to plugins/SolarSystemEditor/src/SolarSystemEditor.cpp

  • Committer: Bogdan Marinov
  • Date: 2010-11-15 08:49:39 UTC
  • Revision ID: bogdan.marinov84@gmail.com-20101115084939-pibvdya5a7r65zux
commenting why one orbit function is used and not the other

Show diffs side-by-side

added added

removed removed

Lines of Context:
467
467
        result.insert("section_name", sectionName);
468
468
        result.insert("name", name);
469
469
        result.insert("parent", "Sun");
470
 
        result.insert("coord_func","comet_orbit");
471
470
        result.insert("type", "comet");
 
471
        //"comet_orbit" is used for all cases:
 
472
        //"ell_orbit" interprets distances as kilometers, not AUs
 
473
        result.insert("coord_func","comet_orbit");
472
474
 
473
475
        result.insert("lighting", false);
474
476
        result.insert("color", "1.0, 1.0, 1.0");
642
644
 
643
645
        //After a name has been determined, insert the essential keys
644
646
        result.insert("parent", "Sun");
645
 
        result.insert("coord_func","comet_orbit");
646
647
        result.insert("type", "asteroid");
 
648
        //"comet_orbit" is used for all cases:
 
649
        //"ell_orbit" interprets distances as kilometers, not AUs
 
650
        result.insert("coord_func","comet_orbit");
647
651
 
648
652
        result.insert("lighting", false);
649
653
        result.insert("color", "1.0, 1.0, 1.0");
779
783
                return result;
780
784
        }
781
785
 
782
 
        //Workaround for a possible bug. TODO: Fix this!
783
 
        //if (orbitType == Elliptic)
784
 
        //      result.insert("coord_func", "ell_orbit");
785
 
        //else
786
 
                result.insert("coord_func", "comet_orbit");
 
786
        //"comet_orbit" is used for all cases:
 
787
        //"ell_orbit" interprets distances as kilometers, not AUs
 
788
        result.insert("coord_func", "comet_orbit");
787
789
 
788
790
        //Type detection and name parsing
789
791
        QString objectType;