source: orbit/iOS/Orbit/Orbit/CorePlotHeaders/CPTRangePlot.h @ a9059a5

RawEEGRaw_EEG_PlotServoTab_Interfacepyramid
Last change on this file since a9059a5 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: 3.5 KB
Line 
1#import "CPTDefinitions.h"
2#import "CPTPlot.h"
3#import <Foundation/Foundation.h>
4
5@class CPTLineStyle;
6@class CPTFill;
7@class CPTRangePlot;
8
9/// @ingroup plotBindingsRangePlot
10/// @{
11extern NSString *const CPTRangePlotBindingXValues;
12extern NSString *const CPTRangePlotBindingYValues;
13extern NSString *const CPTRangePlotBindingHighValues;
14extern NSString *const CPTRangePlotBindingLowValues;
15extern NSString *const CPTRangePlotBindingLeftValues;
16extern NSString *const CPTRangePlotBindingRightValues;
17extern NSString *const CPTRangePlotBindingBarLineStyles;
18/// @}
19
20/**
21 *  @brief Enumeration of range plot data source field types
22 **/
23typedef enum _CPTRangePlotField {
24    CPTRangePlotFieldX,     ///< X values.
25    CPTRangePlotFieldY,     ///< Y values.
26    CPTRangePlotFieldHigh,  ///< relative High values.
27    CPTRangePlotFieldLow,   ///< relative Low values.
28    CPTRangePlotFieldLeft,  ///< relative Left values.
29    CPTRangePlotFieldRight, ///< relative Right values.
30}
31CPTRangePlotField;
32
33#pragma mark -
34
35/**
36 *  @brief A range plot data source.
37 **/
38@protocol CPTRangePlotDataSource<CPTPlotDataSource>
39@optional
40
41/// @name Bar Style
42/// @{
43
44/** @brief @optional Gets a range of bar line styles for the given range plot.
45 *  @param plot The range plot.
46 *  @param indexRange The range of the data indexes of interest.
47 *  @return An array of line styles.
48 **/
49-(NSArray *)barLineStylesForRangePlot:(CPTRangePlot *)plot recordIndexRange:(NSRange)indexRange;
50
51/** @brief @optional Gets a bar line style for the given range plot.
52 *  This method will not be called if
53 *  @link CPTRangePlotDataSource::barLineStylesForRangePlot:recordIndexRange: -barLineStylesForRangePlot:recordIndexRange: @endlink
54 *  is also implemented in the datasource.
55 *  @param plot The range plot.
56 *  @param idx The data index of interest.
57 *  @return The bar line style for the bar with the given index. If the data source returns @nil, the default line style is used.
58 *  If the data source returns an NSNull object, no line is drawn.
59 **/
60-(CPTLineStyle *)barLineStyleForRangePlot:(CPTRangePlot *)plot recordIndex:(NSUInteger)idx;
61
62/// @}
63
64@end
65
66#pragma mark -
67
68/**
69 *  @brief Range plot delegate.
70 **/
71@protocol CPTRangePlotDelegate<CPTPlotDelegate>
72
73@optional
74
75/// @name Point Selection
76/// @{
77
78/** @brief @optional Informs the delegate that a bar was
79 *  @if MacOnly clicked. @endif
80 *  @if iOSOnly touched. @endif
81 *  @param plot The range plot.
82 *  @param idx The index of the
83 *  @if MacOnly clicked bar. @endif
84 *  @if iOSOnly touched bar. @endif
85 **/
86-(void)rangePlot:(CPTRangePlot *)plot rangeWasSelectedAtRecordIndex:(NSUInteger)idx;
87
88/** @brief @optional Informs the delegate that a bar was
89 *  @if MacOnly clicked. @endif
90 *  @if iOSOnly touched. @endif
91 *  @param plot The range plot.
92 *  @param idx The index of the
93 *  @if MacOnly clicked bar. @endif
94 *  @if iOSOnly touched bar. @endif
95 *  @param event The event that triggered the selection.
96 **/
97-(void)rangePlot:(CPTRangePlot *)plot rangeWasSelectedAtRecordIndex:(NSUInteger)idx withEvent:(CPTNativeEvent *)event;
98
99/// @}
100
101@end
102
103#pragma mark -
104
105@interface CPTRangePlot : CPTPlot {
106    CPTLineStyle *barLineStyle;
107    CGFloat barWidth;
108    CGFloat gapHeight;
109    CGFloat gapWidth;
110    CPTFill *areaFill;
111}
112
113/// @name Appearance
114/// @{
115@property (nonatomic, readwrite, copy) CPTLineStyle *barLineStyle;
116@property (nonatomic, readwrite) CGFloat barWidth;
117@property (nonatomic, readwrite) CGFloat gapHeight;
118@property (nonatomic, readwrite) CGFloat gapWidth;
119/// @}
120
121/// @name Drawing
122/// @{
123@property (nonatomic, copy) CPTFill *areaFill;
124/// @}
125
126@end
Note: See TracBrowser for help on using the repository browser.