-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mask.h
60 lines (51 loc) · 1.46 KB
/
Mask.h
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
56
57
58
59
//
// Mask.h
// iGDDS
//
// Created by Roberto Abraham on Tue Sep 03 2002.
// Copyright (c) 2002 __MyCompanyName__. All rights reserved.
//
#import <AppKit/AppKit.h>
#include "AccessorMacros.h"
@class FITSImageView;
@class Image;
#define NUMPOINTS 4
#define HITDIST 8
@interface Mask : NSObject <NSCoding>
{
NSNotificationCenter *note;
NSPoint points[NUMPOINTS];
NSPoint wcspoints[NUMPOINTS];
NSBezierPath *box;
FITSImageView *view;
NSString *message;
BOOL selfDestruct;
float opacity;
}
- (void) drawMe;
- (void) processMouseClick:(NSNotification *)instruction;
- (int) pointAtPoint:(NSPoint)p;
- (void) setWCSPointsFromPointsUsingView:(FITSImageView *)v;
- (void) setPointsFromWCSPointsUsingView:(FITSImageView *)v;
- (id) initWithSuperview:(FITSImageView *)sv
atX:(float)x
andY:(float)y
withWidth:(float)w
andHeight:(float)h;
- (id)initWithSuperview:(FITSImageView *)sv
atWCSX:(float)x
andWCSY:(float)y
withWCSWidth:(float)w
andWCSHeight:(float)h;
//Special accessor methods
- (void) setPoint:(int)num x:(float)x y:(float)y;
- (void) setWCSPoint:(int)num x:(float)x y:(float)y;
- (NSPoint) getWCSPoint:(int)num;
//Accessor methods
idAccessor_h(note,setNote)
idAccessor_h(box,setBox)
idAccessor_h(view,setView)
idAccessor_h(message,setMessage)
boolAccessor_h(selfDestruct,setSelfDestruct)
floatAccessor_h(opacity,setOpacity)
@end