home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / xfitsvew.zip / XFITSview / fitssubs / axisdesc.h < prev    next >
C/C++ Source or Header  |  1998-04-02  |  2KB  |  47 lines

  1. /*  header file for AxisDescriptor class.  */
  2. /*  An axis descriptor  and labeling information for an  axis of of an 
  3.     Image.  AxisDescriptors are elements of an  ImageDescriptor.  */ 
  4. /*-----------------------------------------------------------------------
  5. *  Copyright (C) 1996
  6. *  Associated Universities, Inc. Washington DC, USA.
  7. *  This program is free software; you can redistribute it and/or
  8. *  modify it under the terms of the GNU General Public License as
  9. *  published by the Free Software Foundation; either version 2 of
  10. *  the License, or (at your option) any later version.
  11. *
  12. *  This program is distributed in the hope that it will be useful,
  13. *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. *  GNU General Public License for more details.
  16. *-----------------------------------------------------------------------*/
  17.   
  18. #include "myio.h" 
  19. #include "mydefs.h" 
  20. #include "mystring.h" 
  21. #include <stdlib.h> 
  22. #ifndef AXISDESCRIPTOR_H 
  23. #define AXISDESCRIPTOR_H 
  24.   
  25.   typedef struct AXISDESCRIPTOR { 
  26.     Integer axis_length;      /* Length in pixels of the axis  */ 
  27.     float   axis_ref_pixel;   /* Reference pixel for coordinates  */ 
  28.     double  axis_coord;       /* Coordinate value at reference pixel  */ 
  29.     float   axis_increment;   /* Coordinate increment  */ 
  30.     float   axis_rotation;    /* FITS-like Axis Rotation  */ 
  31.     FStrng  *axis_name;       /* axis name  */ 
  32.     } AxisDescriptor; 
  33.   
  34. /*  constructor  */ 
  35.   AxisDescriptor*  MakeAxisDescriptor(void); 
  36.   
  37. /*  destructor  */ 
  38. void KillAxisDescriptor(AxisDescriptor* ad); 
  39.   
  40. /* compare */ 
  41. Logical AxisDescriptorComp (AxisDescriptor *desc1, AxisDescriptor *desc2); 
  42.   
  43. /* copy desc2 to desc1 */ 
  44. void AxisDescriptorCopy (AxisDescriptor *desc1, AxisDescriptor *desc2); 
  45.   
  46. #endif /* AXISDESCRIPTOR_H */ 
  47.