Changeset 346
- Timestamp:
- 03/23/07 23:25:47 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/LaserLine_2.0/LaserLine_2.0.xcodeproj/project.pbxproj
r333 r346 46 46 D42887120BAE259300F4F72D /* LZ3DTorus.m in Sources */ = {isa = PBXBuildFile; fileRef = D42887100BAE259300F4F72D /* LZ3DTorus.m */; }; 47 47 D45F3CB80BAA71F80076788A /* QTKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D45F3CB70BAA71F80076788A /* QTKit.framework */; }; 48 D461AECA0BB4C74900EEF5FB /* LZBeamEffect.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = D461AEC80BB4C74900EEF5FB /* LZBeamEffect.h */; }; 49 D461AECB0BB4C74900EEF5FB /* LZBeamEffect.m in Sources */ = {isa = PBXBuildFile; fileRef = D461AEC90BB4C74900EEF5FB /* LZBeamEffect.m */; }; 48 50 D4C76FBF0BA12EBB00418A28 /* LZAnticlock.m in Sources */ = {isa = PBXBuildFile; fileRef = D4C76FBD0BA12EBB00418A28 /* LZAnticlock.m */; }; 49 51 D4D748AD0B9A91C0008E17D1 /* FlashImport.m in Sources */ = {isa = PBXBuildFile; fileRef = D4D748AB0B9A91C0008E17D1 /* FlashImport.m */; }; … … 164 166 A87BE5520BA4B8A8002DEDDF /* LZDisplayDevice.h in CopyFiles */, 165 167 D42887110BAE259300F4F72D /* LZ3DTorus.h in CopyFiles */, 168 D461AECA0BB4C74900EEF5FB /* LZBeamEffect.h in CopyFiles */, 166 169 ); 167 170 runOnlyForDeploymentPostprocessing = 0; … … 215 218 D42887100BAE259300F4F72D /* LZ3DTorus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LZ3DTorus.m; sourceTree = "<group>"; }; 216 219 D45F3CB70BAA71F80076788A /* QTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = /System/Library/Frameworks/QTKit.framework; sourceTree = "<absolute>"; }; 220 D461AEC80BB4C74900EEF5FB /* LZBeamEffect.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LZBeamEffect.h; sourceTree = "<group>"; }; 221 D461AEC90BB4C74900EEF5FB /* LZBeamEffect.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LZBeamEffect.m; sourceTree = "<group>"; }; 217 222 D4C76FBC0BA12EBB00418A28 /* LZAnticlock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LZAnticlock.h; sourceTree = "<group>"; }; 218 223 D4C76FBD0BA12EBB00418A28 /* LZAnticlock.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LZAnticlock.m; sourceTree = "<group>"; }; … … 515 520 D428870F0BAE259300F4F72D /* LZ3DTorus.h */, 516 521 D42887100BAE259300F4F72D /* LZ3DTorus.m */, 522 D461AEC80BB4C74900EEF5FB /* LZBeamEffect.h */, 523 D461AEC90BB4C74900EEF5FB /* LZBeamEffect.m */, 517 524 ); 518 525 path = Generators; … … 724 731 A87BE5510BA4B8A8002DEDDF /* LZDisplayDevice.m in Sources */, 725 732 D42887120BAE259300F4F72D /* LZ3DTorus.m in Sources */, 733 D461AECB0BB4C74900EEF5FB /* LZBeamEffect.m in Sources */, 726 734 ); 727 735 runOnlyForDeploymentPostprocessing = 0; trunk/LaserLine_2.0/Src/MainController.m
r342 r346 8 8 #import "LZAnticlock.h" 9 9 #import "LZ3DTorus.h" 10 #import "LZBeamEffect.h" 10 11 #import "LZSpirograph.h" 11 12 #import "LZSinewave.h" … … 39 40 //[self addAntiClock:self]; 40 41 [self add3DTorus:self]; 42 //[self addBeamEffect:self]; 43 41 44 } 42 45 … … 126 129 } 127 130 131 - (IBAction)addBeamEffect:(id)sender { 132 LZLayer *newLayer = [[LZLayer alloc] initWithDuration:60]; 133 [newLayer insertElement:[[[LZBeamEffect alloc] init] autorelease] inTimeRange:LZMakeTimeRange(0,60)]; 134 [[[timeline tracks] objectAtIndex:0] addLayer:newLayer]; 135 136 [output setupDeviceWithTrack:newLayer frequency:1/24.]; 137 [[output frameNotificationCenter] addObserver:[[[LZDisplayDevice alloc] initWithView:renderView] autorelease]]; 138 } 139 140 128 141 - (IBAction)playButtonPressed:(id)sender 129 142 {
