This is HipsImage.h in view mode; [Download] [Up]
#import <appkit/View.h>
#define HIPS_PFBYTE 0
#define HIPS_PFSHORT 1
#define HIPS_PFINT 2
#define HIPS_PFFLOAT 3
#define HIPS_PFCOMPLEX 4
@interface HipsImage:View
{
id hipsWindow; // Window:hipsWindow outlet.
char *path;
char *file;
char *name;
char *orig_name; // Originator of this sequence.
char *seq_name; // The sequence name.
int num_frame; // The number of frames in this sequence.
char *orig_date; // The date the sequence was originated.
int rows; // The number of rows in each image (height).
int cols; // The number of columns in each image (width).
int bits_per_pixel; // The number of significant bits per pixel.
int bit_packing; // Nonzero if the bits were packed such as to
// eliminate any unused bits resulting from a
// bits_per_pixel value which was not an even
// multiple of eight.
int pixel_format; // An indication of the format of each pixel.
char *seq_history; // A description of the sequence of
// transformations leading up to the current
// image.
char *seq_desc; // A free form description of the contents of
// the sequence.
int *data; // The image data.
int *udata; // The previous image data (for undo).
int *odata; // The original image data (for revert).
}
+ open:sender;
- save:sender;
- saveAs:sender;
- saveToTIFF:sender;
- setPath:sender;
- openfile;
- writeheader: (FILE *)fp;
- display;
- undo;
- revert;
- update;
- convolve: (id) mask;
- invert;
- threshold:(int) l :(int) h;
- (id) gethipsWindow;
- (char *) getpath;
- (char *) getfile;
- (char *) getname;
- (char *) getorig_name;
- (char *) getseq_name;
- (int) getnum_frame;
- (char *) getorig_date;
- (int) getrows;
- (int) getcols;
- (int) getbits_per_pixel;
- (int) getbit_packing;
- (int) getpixel_format;
- (char *) getseq_history;
- (char *) getseq_desc;
- (int *) getdata;
- (char *) getcdata;
- (float **) getdata: (int *)theRows :(int *)theCols;
- free;
- errormsg: (char *)msg;
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.