forked from kronihias/DarwiinRemoteOSC
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGraphView.h
More file actions
30 lines (25 loc) · 704 Bytes
/
Copy pathGraphView.h
File metadata and controls
30 lines (25 loc) · 704 Bytes
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
/* GraphView */
#import <Cocoa/Cocoa.h>
#define SAMPLETIME 10.0
@interface GraphView : NSOpenGLView
{
NSMutableArray* datax;
NSMutableArray* datay;
NSMutableArray* dataz;
NSTimer* animTimer;
NSLock* lock;
float _x;
float _y;
BOOL _freshGrid;
IBOutlet NSTextField* scaleField; //enables scaling of live window
}
- (void)setIRPointX:(float)x Y:(float)y;
- (id) initWithFrame:(NSRect)frame;
- (void)setData:(float)x y:(float)y z:(float)z;
- (float)timeDif:(struct timeval)timeVal1 subtract:(struct timeval)timeVal2;
- (BOOL)shouldDraw:(struct timeval)tval now:(struct timeval)now;
- (void) drawAnimation: (NSTimer*)timer;
- (void) startTimer;
- (void) stopTimer;
- (void) drawGrid;
@end