Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

agwsGUIDE_STAR.h

Go to the documentation of this file.
00001 #ifndef agwsGUIDE_STAR_H
00002 #define agwsGUIDE_STAR_H
00003 /*******************************************************************************
00004 * E.S.O. - VLT project
00005 *
00006 * "@(#) $Id: agwsGUIDE_STAR.h,v 1.182 2003/11/12 08:34:12 vltsccm Exp $"
00007 *
00008 * who       when      what
00009 * --------  --------  ----------------------------------------------
00010 * gchiozzi 2001-03-01 Added agwsGS_PROBE_POS enum to define positive/negative probe position
00011 * gchiozzi  12/11/97  Replaced agwsGS_TRY_STATE enum with typedef and defines.
00012 * nfiebig   27/09/96  derive class from fndOBJECT
00013 * nfiebig   14/06/96  inline code move to file agwsGUIDE_STAR.icc
00014 * nfiebig   14/06/96  class renamed to agwsGUIDE_STAR
00015 * nfiebig   02/05/96  created 
00016 */
00017 
00018 
00019 #ifndef __cplusplus
00020 #error This is a C++ include file and cannot be used from plain C
00021 #endif
00022 
00023 #include "agws.h"
00024 #include "fndOBJECT.h"
00025 
00026 /*
00027  * literals for state when trying all guide-stars for useability
00028  */
00029 typedef vltINT32 agwsGS_TRY_STATE;
00030 
00031 /*
00032  * class to model a guide star
00033  */
00034 enum agwsGS_PROBE_POS {
00035   POS = 0,
00036   NEG,
00037   NONE
00038 };
00039 
00040 class agwsGUIDE_STAR : public fndOBJECT
00041 {
00042   public:
00043     agwsGUIDE_STAR();
00044     agwsGUIDE_STAR(vltDOUBLE alpha, vltDOUBLE delta, 
00045        vltDOUBLE magnitude, 
00046        agwsGS_PROBE_POS probePos = NONE,
00047        vltDOUBLE wavelen = 650.0);
00048 
00049     void Reset();
00050 
00051     void Set(vltDOUBLE alpha, vltDOUBLE delta, 
00052        vltDOUBLE magnitude, 
00053        agwsGS_PROBE_POS probePos = NONE,
00054        vltDOUBLE wavelen = 650.0,
00055        agwsGS_PROBE_POS triedPos = NONE);
00056     void SetProbePos(agwsGS_PROBE_POS probePos);
00057     void SetTriedPos(agwsGS_PROBE_POS triedPos);
00058 
00059     vltDOUBLE        Alpha();
00060     vltDOUBLE        Delta();
00061     vltDOUBLE        Magnitude();
00062     agwsGS_PROBE_POS ProbePos();
00063     agwsGS_PROBE_POS TriedPos();
00064     vltDOUBLE        Wavelen();
00065 
00066     void             TryState(agwsGS_TRY_STATE state);
00067     agwsGS_TRY_STATE TryState();
00068 
00069   private:
00070     vltDOUBLE        alpha, delta;      // position
00071     vltDOUBLE        magnitude;         // magnitude
00072     agwsGS_PROBE_POS probePos;          // POS/NEG/NONE
00073     agwsGS_PROBE_POS triedPos;          // POS/NEG/NONE last prcheck probe pos
00074     agwsGS_TRY_STATE tryState;          // try-state
00075     vltDOUBLE        wavelen;           // wavelength in nm
00076 };
00077 
00078 /*
00079  * inline definition of guide star class
00080  */
00081 #include "agwsGUIDE_STAR.icc"
00082 
00083 #endif 

Generated on Wed Dec 3 14:52:06 2003 for ATCS API by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001