source: orbit/iOS/Orbit/Orbit/CorePlotHeaders/CPTPlotRange.h @ f323fb4

Raw_EEG_Plot
Last change on this file since f323fb4 was a9059a5, checked in by Steve Castellotti <sc@…>, 9 years ago

Arduino:

  • updated to permit custom setting of Throttle, Yaw, and Pitch

Android:

  • Minor tweak to Configuration location

iOS:

  • Property mode set to 100644
File size: 2.0 KB
Line 
1#import "CPTDefinitions.h"
2#import <Foundation/Foundation.h>
3
4/// @file
5
6/**
7 *  @brief Enumeration of possible results of a plot range comparison.
8 **/
9typedef enum _CPTPlotRangeComparisonResult {
10    CPTPlotRangeComparisonResultNumberBelowRange, ///< Number is below the range.
11    CPTPlotRangeComparisonResultNumberInRange,    ///< Number is in the range.
12    CPTPlotRangeComparisonResultNumberAboveRange  ///< Number is above the range.
13}
14CPTPlotRangeComparisonResult;
15
16@interface CPTPlotRange : NSObject<NSCoding, NSCopying, NSMutableCopying> {
17    @private
18    NSDecimal location;
19    NSDecimal length;
20    double locationDouble;
21    double lengthDouble;
22}
23
24/// @name Range Limits
25/// @{
26@property (nonatomic, readonly) NSDecimal location;
27@property (nonatomic, readonly) NSDecimal length;
28@property (nonatomic, readonly) NSDecimal end;
29@property (nonatomic, readonly) double locationDouble;
30@property (nonatomic, readonly) double lengthDouble;
31@property (nonatomic, readonly) double endDouble;
32
33@property (nonatomic, readonly) NSDecimal minLimit;
34@property (nonatomic, readonly) NSDecimal midPoint;
35@property (nonatomic, readonly) NSDecimal maxLimit;
36@property (nonatomic, readonly) double minLimitDouble;
37@property (nonatomic, readonly) double midPointDouble;
38@property (nonatomic, readonly) double maxLimitDouble;
39/// @}
40
41/// @name Factory Methods
42/// @{
43+(id)plotRangeWithLocation:(NSDecimal)loc length:(NSDecimal)len;
44/// @}
45
46/// @name Initialization
47/// @{
48-(id)initWithLocation:(NSDecimal)loc length:(NSDecimal)len;
49/// @}
50
51/// @name Checking Ranges
52/// @{
53-(BOOL)contains:(NSDecimal)number;
54-(BOOL)containsDouble:(double)number;
55-(BOOL)isEqualToRange:(CPTPlotRange *)otherRange;
56-(BOOL)containsRange:(CPTPlotRange *)otherRange;
57-(BOOL)intersectsRange:(CPTPlotRange *)otherRange;
58/// @}
59
60/// @name Range Comparison
61/// @{
62-(CPTPlotRangeComparisonResult)compareToNumber:(NSNumber *)number;
63-(CPTPlotRangeComparisonResult)compareToDecimal:(NSDecimal)number;
64-(CPTPlotRangeComparisonResult)compareToDouble:(double)number;
65/// @}
66
67@end
Note: See TracBrowser for help on using the repository browser.