-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBiofeedback.h
116 lines (93 loc) · 2.33 KB
/
Biofeedback.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
//
// Biofeedback.h
// Biofeedback
//
// Created by Loren Olson on 9/22/08.
// Copyright 2008 Arizona State University. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PluginManager.h"
#import "BFScenario.h"
@class BFAnalysis;
@class LOMarker;
@class Matrix4f;
@class MulticastServer;
@class Notice;
@class BFAbstract;
@class BFCheckAngles;
@class BFTaskControl;
@class DrawError;
enum biofeedbackEnvironmentId {
kEnvironmentIdPhysicalCupStart = 0,
kEnvironmentIdIntro = 1,
kEnvironmentIdAbstract = 2,
kEnvironmentIdHybrid = 3,
kEnvironmentIdHybrid2 = 4,
kEnvironmentIdPhysicalCupEnd = 5,
kEnvironmentIdDebug = 6
};
enum biofeedbackScenario {
kBiofeedbackIntro,
kBiofeedbackAbstract,
kBiofeedbackAngles,
kBiofeedbackBlack
};
enum calibrationModeEnum {
kCalibrateBaseline,
kCalibrateRestA,
kCalibrateRestB,
kCalibrateAAA,
kCalibrateA1,
kCalibrateA2,
kCalibrateA3,
kCalibrateA4,
kCalibrateBBB,
kCalibrateB1,
kCalibrateB2,
kCalibrateB3,
kCalibrateB4,
kCalibrateAB2,
kCalibrateAB4
};
@interface Biofeedback : NSObject <DashPluginProtocol> {
BOOL isLoaded; // if YES, the biofeedback objects have been created
BFAnalysis * analysis;
BFTaskControl * task;
BFAbstract * abstract;
DrawError * drawError;
BFCheckAngles * checkAngles;
NSMutableDictionary * markers;
Matrix4f * flipMatrix;
MulticastServer * feedbackServer;
BOOL sentParameters;
int sceneNumber;
int calibrationMode;
BOOL showAlternateRange;
NSArray * markerList;
NSMutableArray * markerComponentList;
Notice * lagNotice;
Notice * checkNotice;
Notice * infoNotice;
}
@property(retain) BFAnalysis * analysis;
@property(retain) BFTaskControl * task;
@property(retain) Matrix4f * flipMatrix;
@property(retain) MulticastServer * feedbackServer;
@property(assign) BOOL sentParameters;
@property(assign) int sceneNumber;
@property(assign) int calibrationMode;
@property(assign) BOOL showAlternateRange;
@property(retain) BFAbstract * abstract;
@property(retain) BFCheckAngles * checkAngles;
// class methods
+ (BOOL) initializePlugin:(NSBundle *)bundle;
+ (Biofeedback *) biofeedback;
// instance methods
- (void) updateLagNotice;
- (void) processFrame;
- (void) updateMarkers;
- (void) sendFeedbackParameters:(id<BioVisualArchiver>)sender;
- (void) setupActiveEnvironment;
- (void) showScenario:(int)scenario;
- (void) adjustCameraHeight;
@end