OSDN Git Service

first commit
[eliscolors/main.git] / ElisKeyframe.h
1 //
2 //  ElisKeyframe.h
3 //  Elis Colors
4 //
5 //  Created by 柳 on 09/09/15.
6 //  Copyright 2009 __MyCompanyName__. All rights reserved.
7 //
8
9 // Cでパフォーマンス重視な実装からCocoaで手抜き実装へチェンジ。
10 // パフォーマンスが悪くなったらたぶんここが原因。
11
12 #import <Cocoa/Cocoa.h>
13 #import "ElisBase.h"
14
15 @interface ElisKeyframe : NSObject {
16 //    NSMutableArray *times;
17 //    NSMutableArray* values;
18 //    int index;
19     NSMutableDictionary* timesAndValues; // ハッシュが1つで管理できるじゃん...!
20     NSArray* sortedTimes; // と思ったらできなかった...!
21     
22     float cacheTime;
23     float cacheValue;
24 }
25
26 - (float)getValueForTime:(QTTime)time;
27 - (void)setValueForTime:(float)value time:(QTTime)time;
28
29 @end