IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 22, 2007, 12:23:09 PM (19 years ago)
Author:
eugene
Message:

upgrading to kapa 2.0 API, upgrades to dvo user interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libkapa/include/kapa.h

    r13326 r13479  
    22# define KAPA_H
    33
     4/* linux is happy with this, not solaris */
     5# include <netinet/ip.h>
     6# include <netdb.h>
     7# include <arpa/inet.h>
     8
     9# include <sys/types.h>
     10# include <sys/socket.h>
    411# include <X11/Xlib.h>
    512# include <png.h>
    613# include <dvo.h>
     14
     15typedef struct sockaddr_in KapaSockAddress;
    716
    817typedef struct {
     
    1120  int Nx;
    1221  int Ny;
    13   char *file;
    14   char *name;
    1522} KiiImage;
    1623
    1724typedef struct {
    18   double zero;
    19   double range;
    20   int logflux;
    21 } KiiDisplayMode;
     25  float x;
     26  float y;
     27  float dx;
     28  float dy;
     29  int type;
     30} KiiOverlayBase;
    2231
    2332typedef struct {
     
    7382
    7483typedef struct {
     84  int logflux;
     85  double zero, range;
     86  char name[1024];
     87  char file[1024];
     88} KapaImageData;
     89
     90typedef struct {
    7591  int dx, dy, ascent;
    7692  unsigned char *bits;
     
    98114int KiiSendData (int device, char *data, int Nbytes);
    99115char *KiiRecvData (int device);
     116int KiiWaitAnswer (int device, char *expect);
    100117
    101118/* KiiOpen.c */
     
    105122
    106123/* KiiPicture.c */
    107 int KiiNewPicture1D (int fd, KiiImage *image, KiiDisplayMode *mode, Coords *coords);
    108 int KiiNewPicture2D (int fd, KiiImage *image, KiiDisplayMode *mode, Coords *coords);
     124int KiiNewPicture1D (int fd, KiiImage *image, KapaImageData *data, Coords *coords);
     125int KiiNewPicture2D (int fd, KiiImage *image, KapaImageData *data, Coords *coords);
    109126
    110127/* KiiOverlay.c */
     
    125142int KiiCursorOn (int fd);
    126143int KiiCursorOff (int fd);
    127 int KiiCursorRead (int fd, double *x, double *y, char *key);
     144int KiiCursorRead (int fd, double *x, double *y, double *z, double *r, double *d, char *key);
    128145
    129146/* KapaWindow.c */
     
    131148int KiiCenter (int fd, double x, double y, int zoom);
    132149int KapaBox (int fd, Graphdata *graphdata);
    133 int KapaClear (int fd, int ClearSection);
     150int KapaClearCurrentPlot (int fd);
     151int KapaClearPlots (int fd);
     152int KapaClearSections (int fd);
     153int KapaClearImage (int fd);
    134154int KapaInitGraph (Graphdata *graphdata);
    135155int KapaPrepPlot (int fd, int Npts, Graphdata *graphmode);
    136 int KapaPlotVector (int fd, int Npts, float *values);
     156int KapaPlotVector (int fd, int Npts, float *values, char *type);
    137157int KapaSetFont (int fd, char *name, int size);
    138158int KapaSendLabel (int fd, char *string, int mode);
     
    142162int KapaSelectSection (int fd, char *name);
    143163int KapaGetSection (int fd, char *name);
     164int KapaMoveSection (int fd, char *name, char *direction);
     165int KapaSetGraphData (int fd, Graphdata *graphmode);
     166int KapaGetGraphData (int fd, Graphdata *graphmode);
     167int KapaSetImageData (int fd, KapaImageData *graphmode);
     168int KapaGetImageData (int fd, KapaImageData *graphmode);
    144169
    145170/* KapaColors */
     
    196221int bDrawRotBitmap (int x, int y, int dx, int dy, unsigned char *bitmap, int mode, double angle, double scale);
    197222
     223/* Kapa Socket functions */
     224int KapaOpen (char *kapa_exec, char *kapa_name);
     225int KapaServerInit (KapaSockAddress *Address);
     226int KapaServerWait (int InitSocket, KapaSockAddress *Address);
     227int KapaDefineValidIP (char *ipstring);
     228int KapaClientSocket (char *hostname);
     229
    198230/* define Kapa names for shared functions */
    199 # define KapaOpen(p,n) KiiOpen(p,n)
     231// # define KapaOpen(p,n) KiiOpen(p,n)
    200232# define KapaResize(fd,Nx,Ny) KiiResize(fd,Nx,Ny)
    201233# define KapaCenter(fd,x,y,z) KiiResize(fd,x,y,z)
Note: See TracChangeset for help on using the changeset viewer.