source: orbit/iOS/Orbit/Orbit/CorePlotHeaders/CPTPlotSymbol.h @ e5b8e57

ServoTab_Interfacepyramid
Last change on this file since e5b8e57 was a9059a5, checked in by Steve Castellotti <sc@…>, 10 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.5 KB
Line 
1#import <Foundation/Foundation.h>
2#import <QuartzCore/QuartzCore.h>
3
4/// @file
5
6@class CPTLineStyle;
7@class CPTFill;
8@class CPTShadow;
9
10/**
11 *  @brief Plot symbol types.
12 **/
13typedef enum _CPTPlotSymbolType {
14    CPTPlotSymbolTypeNone,      ///< No symbol.
15    CPTPlotSymbolTypeRectangle, ///< Rectangle symbol.
16    CPTPlotSymbolTypeEllipse,   ///< Elliptical symbol.
17    CPTPlotSymbolTypeDiamond,   ///< Diamond symbol.
18    CPTPlotSymbolTypeTriangle,  ///< Triangle symbol.
19    CPTPlotSymbolTypeStar,      ///< 5-point star symbol.
20    CPTPlotSymbolTypePentagon,  ///< Pentagon symbol.
21    CPTPlotSymbolTypeHexagon,   ///< Hexagon symbol.
22    CPTPlotSymbolTypeCross,     ///< X symbol.
23    CPTPlotSymbolTypePlus,      ///< Plus symbol.
24    CPTPlotSymbolTypeDash,      ///< Dash symbol.
25    CPTPlotSymbolTypeSnow,      ///< Snowflake symbol.
26    CPTPlotSymbolTypeCustom     ///< Custom symbol.
27}
28CPTPlotSymbolType;
29
30@interface CPTPlotSymbol : NSObject<NSCoding, NSCopying> {
31    @private
32    CGPoint anchorPoint;
33    CGSize size;
34    CPTPlotSymbolType symbolType;
35    CPTLineStyle *lineStyle;
36    CPTFill *fill;
37    CGPathRef cachedSymbolPath;
38    CGPathRef customSymbolPath;
39    BOOL usesEvenOddClipRule;
40    CGLayerRef cachedLayer;
41    CPTShadow *shadow;
42}
43
44@property (nonatomic, readwrite, assign) CGPoint anchorPoint;
45@property (nonatomic, readwrite, assign) CGSize size;
46@property (nonatomic, readwrite, assign) CPTPlotSymbolType symbolType;
47@property (nonatomic, readwrite, retain) CPTLineStyle *lineStyle;
48@property (nonatomic, readwrite, retain) CPTFill *fill;
49@property (nonatomic, readwrite, copy) CPTShadow *shadow;
50@property (nonatomic, readwrite, assign) CGPathRef customSymbolPath;
51@property (nonatomic, readwrite, assign) BOOL usesEvenOddClipRule;
52
53/// @name Factory Methods
54/// @{
55+(CPTPlotSymbol *)plotSymbol;
56+(CPTPlotSymbol *)crossPlotSymbol;
57+(CPTPlotSymbol *)ellipsePlotSymbol;
58+(CPTPlotSymbol *)rectanglePlotSymbol;
59+(CPTPlotSymbol *)plusPlotSymbol;
60+(CPTPlotSymbol *)starPlotSymbol;
61+(CPTPlotSymbol *)diamondPlotSymbol;
62+(CPTPlotSymbol *)trianglePlotSymbol;
63+(CPTPlotSymbol *)pentagonPlotSymbol;
64+(CPTPlotSymbol *)hexagonPlotSymbol;
65+(CPTPlotSymbol *)dashPlotSymbol;
66+(CPTPlotSymbol *)snowPlotSymbol;
67+(CPTPlotSymbol *)customPlotSymbolWithPath:(CGPathRef)aPath;
68/// @}
69
70/// @name Drawing
71/// @{
72-(void)renderInContext:(CGContextRef)context atPoint:(CGPoint)center scale:(CGFloat)scale alignToPixels:(BOOL)alignToPixels;
73-(void)renderAsVectorInContext:(CGContextRef)context atPoint:(CGPoint)center scale:(CGFloat)scale;
74/// @}
75
76@end
Note: See TracBrowser for help on using the repository browser.