Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

SolarSystem Class Reference

#include <solarsys.h>

Collaboration diagram for SolarSystem:

Collaboration graph
List of all members.

Public Member Functions

Point3f getCenter () const
PlanetarySystemgetPlanets () const
StargetStar () const
 SolarSystem (Star *)

Private Attributes

PlanetarySystemplanets
Starstar

Constructor & Destructor Documentation

SolarSystem::SolarSystem Star  ) 
 

Definition at line 616 of file solarsys.cpp.

References planets.

00616                                     : star(_star)
00617 {
00618     planets = new PlanetarySystem(_star);
00619 }


Member Function Documentation

Point3f SolarSystem::getCenter  )  const
 

Definition at line 627 of file solarsys.cpp.

References Star::getPosition(), and star.

00628 {
00629     // TODO: This is a very simple method at the moment, but it will get
00630     // more complex when planets around multistar systems are supported
00631     // where the planets may orbit the center of mass of two stars.
00632     return star->getPosition();
00633 }

PlanetarySystem * SolarSystem::getPlanets  )  const
 

Definition at line 635 of file solarsys.cpp.

References planets.

Referenced by EclipseFinder::CalculateEclipses(), createBody(), displayStarInfo(), Universe::findChildObject(), Universe::findObjectInContext(), Universe::getCompletion(), Universe::getCompletionPath(), SelectionPopup::getSelectionFromId(), handlePopupMenu(), SelectionPopup::insert(), loadNearestStarSystem(), LoadSolarSystemObjects(), menuContext(), object_getchildren(), Renderer::render(), Simulation::selectPlanet(), CelestialBrowser::slotRefresh(), and SolarSystemBrowserProc().

00636 {
00637     return planets;
00638 }

Star * SolarSystem::getStar  )  const
 

Definition at line 622 of file solarsys.cpp.

References star.

Referenced by EclipseFinder::CalculateEclipses(), Simulation::findObject(), Simulation::findObjectFromPath(), Simulation::getObjectCompletion(), loadNearestStarSystem(), and SolarSystemBrowserProc().

00623 {
00624     return star;
00625 }


Member Data Documentation

PlanetarySystem* SolarSystem::planets [private]
 

Definition at line 30 of file solarsys.h.

Referenced by getPlanets(), and SolarSystem().

Star* SolarSystem::star [private]
 

Definition at line 31 of file solarsys.h.

Referenced by getCenter(), and getStar().


The documentation for this class was generated from the following files:
Generated on Sat Jan 14 22:33:36 2006 for Celestia by  doxygen 1.4.1