|
Oolite
|
#include <OOJoystickProfile.h>
Instance Methods | |
| (id) | - init |
| (void) | - dealloc |
| (id) | - copyWithZone: |
| (int) | - addControl: |
| (NSPoint) | - pointAtIndex: |
| (int) | - countPoints |
| (void) | - removeControl: |
| (void) | - clearControlPoints |
| (void) | - moveControl:point: |
| (double) | - rawValue: |
| (double) | - gradient: |
| (NSArray *) | - controlPoints |
| (BOOL) | - makeSegments [implementation] |
| Instance Methods inherited from OOJoystickAxisProfile | |
| (double) | - value: |
| (double) | - deadzone |
| (void) | - setDeadzone: |
Private Attributes | |
| NSMutableArray * | controlPoints |
| NSArray * | segments |
Definition at line 73 of file OOJoystickProfile.h.
| - (int) addControl: | (NSPoint) | point |
Definition at line 347 of file OOJoystickProfile.m.
References controlPoints, count, int(), makeSegments, and SPLINE_POINT_MIN_SPACING.
Referenced by OOJoystickManager::loadProfileForAxis:, and StickProfileScreen::mouseDown:.
| - (void) clearControlPoints |
Definition at line 470 of file OOJoystickProfile.m.
References clearControlPoints, and makeSegments.
Referenced by clearControlPoints.
| - (NSArray *) controlPoints |
Definition at line 402 of file OOJoystickProfile.m.
| - (id) copyWithZone: | (NSZone*) | zone |
Reimplemented from OOJoystickAxisProfile.
Definition at line 339 of file OOJoystickProfile.m.
| - (int) countPoints |
Definition at line 397 of file OOJoystickProfile.m.
References countPoints, and int().
Referenced by countPoints.
| - (void) dealloc |
Definition at line 331 of file OOJoystickProfile.m.
References dealloc.
Referenced by dealloc.
| - (double) gradient: | (double) | x |
Definition at line 536 of file OOJoystickProfile.m.
References OOJoystickSplineSegment::gradient:, and x.
| - (id) init |
Reimplemented from OOJoystickAxisProfile.
Definition at line 321 of file OOJoystickProfile.m.
References controlPoints, init, makeSegments, nil, and segments.
Referenced by init.
|
implementation |
Provided by category OOJoystickSplineAxisProfile(Private).
Definition at line 408 of file OOJoystickProfile.m.
References count, OOJoystickSplineAxisProfile(Private)::makeSegments, nil, pointAtIndex:, OOJoystickSplineSegment::segmentWithData:right:, OOJoystickSplineSegment::segmentWithData:right:gradientleft:, OOJoystickSplineSegment::segmentWithData:right:gradientleft:gradientright:, and OOJoystickSplineSegment::segmentWithData:right:gradientright:.
Referenced by addControl:, clearControlPoints, init, OOJoystickSplineAxisProfile(Private)::makeSegments, moveControl:point:, and removeControl:.
| - (void) moveControl: | (NSInteger) | index | |
| point: | (NSPoint) | point |
Definition at line 476 of file OOJoystickProfile.m.
References controlPoints, count, makeSegments, OOClamp_0_1_d(), and SPLINE_POINT_MIN_SPACING.
Referenced by StickProfileScreen::mouseDown:.
| - (NSPoint) pointAtIndex: | (NSInteger) | index |
Definition at line 382 of file OOJoystickProfile.m.
References controlPoints, and count.
Referenced by OOJoystickSplineAxisProfile(Private)::makeSegments.
| - (double) rawValue: | (double) | x |
Reimplemented from OOJoystickAxisProfile.
Definition at line 515 of file OOJoystickProfile.m.
References OOClamp_0_1_d(), and x.
| - (void) removeControl: | (NSInteger) | index |
Definition at line 461 of file OOJoystickProfile.m.
References controlPoints, count, and makeSegments.
Referenced by StickProfileScreen::deleteSelected.
|
private |
Definition at line 402 of file OOJoystickProfile.m.
Referenced by addControl:, StickProfileScreen(StickProfileInternal)::graphProfile:at:size:, init, moveControl:point:, pointAtIndex:, removeControl:, and OOJoystickManager::saveProfileForAxis:.
|
private |
Definition at line 76 of file OOJoystickProfile.h.
Referenced by init.