Main Page   Namespace List   Compound List   File List   Compound Members   File Members  

astro::SolarSystem Class Reference

position of various solarsystem entities. More...

#include <SolarSystem.h>

List of all members.

Public Types

enum  Body { Sun = 8, Moon = 9 }
 index of body that corresponds to the define's in SolSystem. More...


Public Methods

 SolarSystem ()
 SolarSystem (Body body, JulianDate date)
 simple constructor that initializes. More...

 ~SolarSystem ()
SkyDir direction (Body body, JulianDate date)
 set the body and date; retun the SkyDir. More...

 operator SkyDir () const
 conversion operator that returns the SkyDir. More...


Private Attributes

SkyDir m_dir
SolSystemm_ss


Detailed Description

position of various solarsystem entities.

Author:
G. Tosti original code , T. Burnett convert to class
Id:
SolarSystem.h,v 1.1.1.1 2002/08/13 00:20:45 burnett Exp

This is a thin wrapper to code in the class SolSystem

Definition at line 23 of file SolarSystem.h.


Member Enumeration Documentation

enum astro::SolarSystem::Body
 

index of body that corresponds to the define's in SolSystem.

Enumeration values:
Sun 
Moon 

Definition at line 29 of file SolarSystem.h.

00029              { 
00030         //VENUS=1, MARS=2, JUPITER=3,SATURN=4, 
00031         //URANUS=5,NEPTUNE=6, PLUTO=7, 
00032             Sun=8, Moon=9 };


Constructor & Destructor Documentation

astro::SolarSystem::SolarSystem  
 

Definition at line 8 of file SolarSystem.cxx.

00008 : m_ss(new SolSystem){}

astro::SolarSystem::SolarSystem Body    body,
JulianDate    jd
 

simple constructor that initializes.

Parameters:
body  Body index
date  Julian date for given position

Definition at line 10 of file SolarSystem.cxx.

00011 : m_ss(new SolSystem)
00012 {
00013     direction(body, jd);
00014 
00015 }

astro::SolarSystem::~SolarSystem  
 

Definition at line 28 of file SolarSystem.cxx.

00028 { delete m_ss;}


Member Function Documentation

SkyDir astro::SolarSystem::direction Body    body,
JulianDate    jd
 

set the body and date; retun the SkyDir.

Definition at line 18 of file SolarSystem.cxx.

Referenced by SolarSystem().

00019 {
00020     m_ss->SetObj(body);
00021     m_ss->CalculatePos(jd);
00022     m_dir = SkyDir(m_ss->Ra*180/M_PI, m_ss->Dec*180/M_PI);
00023 
00024     return m_dir;
00025 }

astro::SolarSystem::operator SkyDir   const [inline]
 

conversion operator that returns the SkyDir.

Definition at line 50 of file SolarSystem.h.

00050 { return m_dir; }


Member Data Documentation

SkyDir astro::SolarSystem::m_dir [private]
 

Definition at line 53 of file SolarSystem.h.

SolSystem* astro::SolarSystem::m_ss [private]
 

Definition at line 54 of file SolarSystem.h.


The documentation for this class was generated from the following files:
Generated on Wed Aug 14 10:09:36 2002 for astro by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001