source: orbit/iOS/Orbit/Orbit/CorePlotHeaders/CPTNumericData.h @ cef53d8

ServoTab_Interfacepyramid
Last change on this file since cef53d8 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: 3.3 KB
Line 
1#import "CPTNumericDataType.h"
2#import <Foundation/Foundation.h>
3
4@interface CPTNumericData : NSObject<NSCopying, NSMutableCopying, NSCoding> {
5    @protected
6    NSData *data;
7    CPTNumericDataType dataType;
8    NSArray *shape; // array of dimension shapes (NSNumber<unsigned>)
9    CPTDataOrder dataOrder;
10}
11
12/// @name Data Buffer
13/// @{
14@property (copy, readonly) NSData *data;
15@property (readonly) const void *bytes;
16@property (readonly) NSUInteger length;
17/// @}
18
19/// @name Data Format
20/// @{
21@property (assign, readonly) CPTNumericDataType dataType;
22@property (readonly) CPTDataTypeFormat dataTypeFormat;
23@property (readonly) size_t sampleBytes;
24@property (readonly) CFByteOrder byteOrder;
25/// @}
26
27/// @name Dimensions
28/// @{
29@property (copy, readonly) NSArray *shape;
30@property (readonly) NSUInteger numberOfDimensions;
31@property (readonly) NSUInteger numberOfSamples;
32@property (readonly) CPTDataOrder dataOrder;
33/// @}
34
35/// @name Factory Methods
36/// @{
37+(id)numericDataWithData:(NSData *)newData dataType:(CPTNumericDataType)newDataType shape:(NSArray *)shapeArray;
38+(id)numericDataWithData:(NSData *)newData dataTypeString:(NSString *)newDataTypeString shape:(NSArray *)shapeArray;
39+(id)numericDataWithArray:(NSArray *)newData dataType:(CPTNumericDataType)newDataType shape:(NSArray *)shapeArray;
40+(id)numericDataWithArray:(NSArray *)newData dataTypeString:(NSString *)newDataTypeString shape:(NSArray *)shapeArray;
41
42+(id)numericDataWithData:(NSData *)newData dataType:(CPTNumericDataType)newDataType shape:(NSArray *)shapeArray dataOrder:(CPTDataOrder)order;
43+(id)numericDataWithData:(NSData *)newData dataTypeString:(NSString *)newDataTypeString shape:(NSArray *)shapeArray dataOrder:(CPTDataOrder)order;
44+(id)numericDataWithArray:(NSArray *)newData dataType:(CPTNumericDataType)newDataType shape:(NSArray *)shapeArray dataOrder:(CPTDataOrder)order;
45+(id)numericDataWithArray:(NSArray *)newData dataTypeString:(NSString *)newDataTypeString shape:(NSArray *)shapeArray dataOrder:(CPTDataOrder)order;
46/// @}
47
48/// @name Initialization
49/// @{
50-(id)initWithData:(NSData *)newData dataType:(CPTNumericDataType)newDataType shape:(NSArray *)shapeArray;
51-(id)initWithData:(NSData *)newData dataTypeString:(NSString *)newDataTypeString shape:(NSArray *)shapeArray;
52-(id)initWithArray:(NSArray *)newData dataType:(CPTNumericDataType)newDataType shape:(NSArray *)shapeArray;
53-(id)initWithArray:(NSArray *)newData dataTypeString:(NSString *)newDataTypeString shape:(NSArray *)shapeArray;
54
55-(id)initWithData:(NSData *)newData dataType:(CPTNumericDataType)newDataType shape:(NSArray *)shapeArray dataOrder:(CPTDataOrder)order;
56-(id)initWithData:(NSData *)newData dataTypeString:(NSString *)newDataTypeString shape:(NSArray *)shapeArray dataOrder:(CPTDataOrder)order;
57-(id)initWithArray:(NSArray *)newData dataType:(CPTNumericDataType)newDataType shape:(NSArray *)shapeArray dataOrder:(CPTDataOrder)order;
58-(id)initWithArray:(NSArray *)newData dataTypeString:(NSString *)newDataTypeString shape:(NSArray *)shapeArray dataOrder:(CPTDataOrder)order;
59/// @}
60
61/// @name Samples
62/// @{
63-(NSUInteger)sampleIndex:(NSUInteger)idx, ...;
64-(void *)samplePointer:(NSUInteger)sample;
65-(void *)samplePointerAtIndex:(NSUInteger)idx, ...;
66-(NSNumber *)sampleValue:(NSUInteger)sample;
67-(NSNumber *)sampleValueAtIndex:(NSUInteger)idx, ...;
68-(NSArray *)sampleArray;
69/// @}
70
71@end
Note: See TracBrowser for help on using the repository browser.