Example #1
0
//------------------------------------------------------------------------------
std::string ConsoleMessageReceiver::GetLogFileName()
{
   FileManager *fm = FileManager::Instance();
   std::string fname;
   try
   {
      if (logFileName == "")
      {
         fname = fm->GetFullPathname("LOG_FILE");
      }
      else
      {
         std::string outputPath = fm->GetPathname(FileManager::LOG_FILE);
         
         // add output path if there is no path
         if (logFileName.find("/") == logFileName.npos &&
             logFileName.find("\\") == logFileName.npos)
         {
            fname = outputPath + logFileName;
         }
      }
   }
   catch (BaseException &e)
   {
      ShowMessage
         ("**** ERROR **** " + e.GetFullMessage() + 
          "So setting log file name to GmatLog.txt");
      
      fname = "GmatLog.txt";
   }
   
   return fname;
}
Example #2
0
//------------------------------------------------------------------------------
VisualModelPanel::VisualModelPanel(GmatPanel *scPanel, wxWindow *parent,
                       Spacecraft *spacecraft, SolarSystem *solarsystem)
   : wxPanel(parent)
{
   // initalize data members
   theScPanel = scPanel;
   theGuiManager = GuiItemManager::GetInstance();
   currentSpacecraft = spacecraft;
   theSolarSystem = solarsystem;

   //LoadPOV(new ModelObject(), wxT("C:/Programs/DevelGMAT/files/models/DMSPWithTextures/DMSP-WithTextures-POVRayFormat.pov"));

   FileManager *fm = FileManager::Instance();
   modelPath = fm->GetPathname(wxT("MODEL_PATH")).c_str();

   Create();
}