Beispiel #1
0
//------------------------------------------------------------------------------
Star::Star(wxString name) :
CelestialBody       (wxT("Star"),name)
{
   objectTypeNames.push_back(wxT("Star"));
   parameterCount = StarParamCount;
   
   bodyType            = Gmat::STAR;
   bodyNumber          = 3;
   referenceBodyNumber = 3;
   rotationSrc         = Gmat::IAU_SIMPLIFIED;  // ??
   
//   // defaults for now ...
//   Rmatrix s(5,5,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0);
//   Rmatrix c(5,5,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0);
//   sij = s;
//   cij = c;

   SaveAllAsDefault();
//   InitializeStar();  // should this be the default?
}
Beispiel #2
0
//------------------------------------------------------------------------------
Asteroid::Asteroid(wxString name, const wxString &cBody) :
CelestialBody     (wxT("Asteroid"),name)
{
//   CelestialBody::InitializeBody(wxT("Asteroid"));
   
   objectTypeNames.push_back(wxT("Asteroid"));
   parameterCount = AsteroidParamCount;

   theCentralBodyName  = cBody; 
   bodyType            = Gmat::ASTEROID;
   bodyNumber          = -1;
   referenceBodyNumber = -1;

   // @todo - add other default values here

   DeterminePotentialFileNameFromStartup();
   SaveAllAsDefault();

}
Beispiel #3
0
//------------------------------------------------------------------------------
Asteroid::Asteroid(wxString name) :
CelestialBody     (wxT("Asteroid"),name)
{
//   CelestialBody::InitializeBody(wxT("Asteroid"));
   
   objectTypeNames.push_back(wxT("Asteroid")); 
   parameterCount = AsteroidParamCount;
   
   theCentralBodyName  = SolarSystem::SUN_NAME; 
   bodyType            = Gmat::ASTEROID;
   bodyNumber          = -1;
   referenceBodyNumber = -1;
   
//   // defaults for now ...
//   Rmatrix s(5,5,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0);
//   Rmatrix c(5,5,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0,
//         0.0, 0.0,             0.0,             0.0,             0.0);
//   sij = s;
//   cij = c;

   
   // @todo - add other default values here

   DeterminePotentialFileNameFromStartup();
   SaveAllAsDefault();

}