-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathFractControllerAcuityE.j
More file actions
59 lines (41 loc) · 1.84 KB
/
FractControllerAcuityE.j
File metadata and controls
59 lines (41 loc) · 1.84 KB
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
/*
This file is part of FrACT10, a vision test battery.
© 2021 Michael Bach, bach@uni-freiburg.de, <https://michaelbach.de>
FractControllerAcuityE.j
Created by Bach on 14.08.2017.
*/
@import "FractControllerAcuity.j"
@implementation FractControllerAcuityE: FractControllerAcuity {
}
- (void) modifyThresholderStimulus {
if ([Settings acuityHasEasyTrials]) [self modifyThresholderStimulusWithBonus];
}
- (void) modifyDeviceStimulus {[self acuityModifyDeviceStimulusDIN01_02_04_08];}
- (float) stimDeviceunitsFromThresholderunits: (float) tPest {return [self acuityStimDeviceunitsFromThresholderunits: tPest];}
- (float) stimThresholderunitsFromDeviceunits: (float) d {return [self acuityStimThresholderunitsFromDeviceunits: d];}
- (float) resultValue4Export {return [self acuityResultValue4Export];}
- (CPString) composeExportString {return [self acuityComposeExportString];}
- (void) drawStimulusInRect: (CGRect) dirtyRect forView: (FractView) fractView { //console.info("FractControllerAcuityE>drawStimulusInRect");
trialInfoString = [self acuityComposeTrialInfoString];
[self prepareDrawing];
switch(state) {
case kStateDrawBack: break;
case kStateDrawFore: //console.info("kStateDrawFore");
[optotypes tumblingEWithStrokeInPx: stimStrengthInDeviceunits direction: [alternativesGenerator currentAlternative]];
break;
default: break;
}
[self embedInNoise];
[self drawTouchControls];
CGContextRestoreGState(cgc);
[super drawStimulusInRect: dirtyRect];
}
- (void) runStart { //console.info("FractControllerAcuityE>runStart");
nAlternatives = 4; nTrials = [Settings nTrials04];
[gAppController setCurrentTestResultUnit: "LogMAR"];
[super runStart];
}
- (int) responseNumberFromChar: (CPString) keyChar {
return [self responseNumber4FromChar: keyChar];
}
@end