/usr/include/rtd/ImageZoom.h is in skycat 3.1.2+starlink1~b-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | // -*-c++-*-
#ifndef _ImageZoom_h_
#define _ImageZoom_h_
/*
* E.S.O. - VLT project
* "@(#) $Id: ImageZoom.h,v 1.1.1.1 2009/03/31 14:11:52 cguirao Exp $"
*
* ImageZoom.h - class definitions for RtdImage Zoom Window
*
* See the man page for a complete description.
*
* who when what
* -------------- -------- ----------------------------------------
* Allan Brighton 05/10/95 Created
*/
#include <tk.h>
/*
* Class ImageZoom
*
* This class implements the Zoom window for the RtdImage class
*/
class ImageZoom {
protected:
Tk_Window tkwin_; // zoom window
GC gc_; // graphics context for copying pixels
GC rect_gc_; // graphics context for drawing box aroung center pixels
int width_; // width of displayed image
int height_; // height of displayed image
int zoomFactor_; // zoom factor (1...n)
int zoomStep_; // value used to calculate zoom = width/factor
ImageDisplay *xImage_; // class object for zoom window's X image
int status_; // return value from constructor
public:
// constructor: initialize the zoom window
ImageZoom(Tk_Window tkwin, GC copyGC, int width, int height, int factor,
int usingXShm, int verbose);
// destructor: clean up resources
~ImageZoom();
// called for motion events in the image to do the zooming
void zoom(unsigned char* data, int x, int y, int w, int h,
int xs, int ys, unsigned long color0);
// return status after constructor for error checking
int status() {return status_;}
};
#endif /* _ImageZoom_h_ */
|