IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25034


Ignore:
Timestamp:
Aug 10, 2009, 3:45:16 AM (17 years ago)
Author:
eugene
Message:

adding function to relocate kapa window

Location:
branches/eam_branches/20090715/Ohana/src
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/Ohana/src/kapa2/Makefile

    r16270 r25034  
    4848$(SRC)/Layout.$(ARCH).o                   $(SRC)/Sections.$(ARCH).o           \
    4949$(SRC)/Graphs.$(ARCH).o                   $(SRC)/SetGraphSize.$(ARCH).o       \
    50 $(SRC)/Resize.$(ARCH).o                   $(SRC)/ErasePlots.$(ARCH).o         \
     50$(SRC)/Resize.$(ARCH).o                   $(SRC)/Relocate.$(ARCH).o                   $(SRC)/ErasePlots.$(ARCH).o         \
    5151$(SRC)/EraseImage.$(ARCH).o               $(SRC)/SetToolbox.$(ARCH).o         \
    5252$(SRC)/EraseCurrentPlot.$(ARCH).o         $(SRC)/EraseSections.$(ARCH).o      \
  • branches/eam_branches/20090715/Ohana/src/kapa2/include/prototypes.h

    r21153 r25034  
    5555int           LoadTextlines       PROTO((int sock));
    5656int           Resize              PROTO((int sock));
     57int           Relocate            PROTO((int sock));
    5758int           GetLimits           PROTO((int sock));
    5859int           SetLimits           PROTO((int sock));
  • branches/eam_branches/20090715/Ohana/src/kapa2/src/CheckPipe.c

    r21060 r25034  
    131131  }
    132132
     133  if (!strcmp (word, "MOVE")) {
     134    status = Relocate (sock);
     135    KiiSendCommand (sock, 4, "DONE");
     136    FINISHED (status);
     137  }
     138
    133139  if (!strcmp (word, "GLIM")) {
    134140    GetLimits (sock);
  • branches/eam_branches/20090715/Ohana/src/libkapa/include/kapa.h

    r21153 r25034  
    154154/* KapaWindow.c */
    155155int KiiResize (int fd, int Nx, int Ny);
     156int KiiRelocate (int fd, int x, int y);
    156157int KiiCenter (int fd, double x, double y, int zoom);
    157158int KiiParity (int fd, int xflip, int yflip);
  • branches/eam_branches/20090715/Ohana/src/libkapa/src/KapaWindow.c

    r21060 r25034  
    2323  KiiSendCommand (fd, 4, "RSIZ");
    2424  KiiSendMessage (fd, "%d %d", Nx, Ny);
     25  KiiWaitAnswer (fd, "DONE");
     26  return (TRUE);
     27}
     28
     29int KiiRelocate (int fd, int x, int y) {
     30
     31  KiiSendCommand (fd, 4, "MOVE");
     32  KiiSendMessage (fd, "%d %d", x, y);
    2533  KiiWaitAnswer (fd, "DONE");
    2634  return (TRUE);
  • branches/eam_branches/20090715/Ohana/src/opihi/cmd.data/init.c

    r24992 r25034  
    8585int rebin            PROTO((int, char **));
    8686int resize           PROTO((int, char **));
     87int relocate         PROTO((int, char **));
    8788int roll             PROTO((int, char **));
    8889int rotate           PROTO((int, char **));
     
    220221  {1, "rebin",        rebin,            "rebin image data by factor of N"},
    221222  {1, "resize",       resize,           "set graphics/image window size"},
     223  {1, "relocate",     relocate,         "set graphics/image window position"},
    222224  {1, "roll",         roll,             "roll image to new start point"},
    223225  {1, "rotate",       rotate,           "rotate image"},
Note: See TracChangeset for help on using the changeset viewer.