Changeset 346

Show
Ignore:
Timestamp:
03/23/07 23:25:47 (2 years ago)
Author:
hagedorn
Message:

Added LaserLine2.0 random Beam Effect, of which there is a great photograph

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/LaserLine_2.0/LaserLine_2.0.xcodeproj/project.pbxproj

    r333 r346  
    4646                D42887120BAE259300F4F72D /* LZ3DTorus.m in Sources */ = {isa = PBXBuildFile; fileRef = D42887100BAE259300F4F72D /* LZ3DTorus.m */; }; 
    4747                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 */; }; 
    4850                D4C76FBF0BA12EBB00418A28 /* LZAnticlock.m in Sources */ = {isa = PBXBuildFile; fileRef = D4C76FBD0BA12EBB00418A28 /* LZAnticlock.m */; }; 
    4951                D4D748AD0B9A91C0008E17D1 /* FlashImport.m in Sources */ = {isa = PBXBuildFile; fileRef = D4D748AB0B9A91C0008E17D1 /* FlashImport.m */; }; 
     
    164166                                A87BE5520BA4B8A8002DEDDF /* LZDisplayDevice.h in CopyFiles */, 
    165167                                D42887110BAE259300F4F72D /* LZ3DTorus.h in CopyFiles */, 
     168                                D461AECA0BB4C74900EEF5FB /* LZBeamEffect.h in CopyFiles */, 
    166169                        ); 
    167170                        runOnlyForDeploymentPostprocessing = 0; 
     
    215218                D42887100BAE259300F4F72D /* LZ3DTorus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LZ3DTorus.m; sourceTree = "<group>"; }; 
    216219                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>"; }; 
    217222                D4C76FBC0BA12EBB00418A28 /* LZAnticlock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LZAnticlock.h; sourceTree = "<group>"; }; 
    218223                D4C76FBD0BA12EBB00418A28 /* LZAnticlock.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LZAnticlock.m; sourceTree = "<group>"; }; 
     
    515520                                D428870F0BAE259300F4F72D /* LZ3DTorus.h */, 
    516521                                D42887100BAE259300F4F72D /* LZ3DTorus.m */, 
     522                                D461AEC80BB4C74900EEF5FB /* LZBeamEffect.h */, 
     523                                D461AEC90BB4C74900EEF5FB /* LZBeamEffect.m */, 
    517524                        ); 
    518525                        path = Generators; 
     
    724731                                A87BE5510BA4B8A8002DEDDF /* LZDisplayDevice.m in Sources */, 
    725732                                D42887120BAE259300F4F72D /* LZ3DTorus.m in Sources */, 
     733                                D461AECB0BB4C74900EEF5FB /* LZBeamEffect.m in Sources */, 
    726734                        ); 
    727735                        runOnlyForDeploymentPostprocessing = 0; 
  • trunk/LaserLine_2.0/Src/MainController.m

    r342 r346  
    88#import "LZAnticlock.h" 
    99#import "LZ3DTorus.h" 
     10#import "LZBeamEffect.h" 
    1011#import "LZSpirograph.h" 
    1112#import "LZSinewave.h" 
     
    3940        //[self addAntiClock:self]; 
    4041        [self add3DTorus:self]; 
     42        //[self addBeamEffect:self]; 
     43 
    4144} 
    4245 
     
    126129} 
    127130 
     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 
    128141- (IBAction)playButtonPressed:(id)sender 
    129142{