Changeset 385
- Timestamp:
- 04/14/07 02:57:11 (1 year ago)
- Files:
-
- trunk/LaserLine_2.0/LaserLine_2.0.xcodeproj/project.pbxproj (modified) (5 diffs)
- trunk/LaserLine_2.0/Src/Sequencing/LZFrame.h (modified) (2 diffs)
- trunk/LaserLine_2.0/Src/Sequencing/LZFrame.m (modified) (3 diffs)
- trunk/LaserLine_2.0/Src/Sequencing/LZFrameObject.h (modified) (1 diff)
- trunk/LaserLine_2.0/Src/Sequencing/LZFrameObject.m (modified) (1 diff)
- trunk/LaserLine_2.0/Src/Sequencing/LZPoint.h (modified) (2 diffs)
- trunk/LaserLine_2.0/Src/Sequencing/LZPoint.m (modified) (2 diffs)
- trunk/LaserLine_2.0/Src/Sequencing/LZPolyline.m (modified) (3 diffs)
- trunk/LaserLine_2.0/Src/Sequencing/LZRect.h (added)
- trunk/LaserLine_2.0/Src/Sequencing/LZRect.m (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/LaserLine_2.0/LaserLine_2.0.xcodeproj/project.pbxproj
r370 r385 24 24 A87BE5510BA4B8A8002DEDDF /* LZDisplayDevice.m in Sources */ = {isa = PBXBuildFile; fileRef = A87BE54F0BA4B8A8002DEDDF /* LZDisplayDevice.m */; }; 25 25 A87BE5520BA4B8A8002DEDDF /* LZDisplayDevice.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = A87BE5500BA4B8A8002DEDDF /* LZDisplayDevice.h */; }; 26 A8B721760BD0C07B004603BE /* LZRect.m in Sources */ = {isa = PBXBuildFile; fileRef = A8B721740BD0C07B004603BE /* LZRect.m */; }; 27 A8B721770BD0C07B004603BE /* LZRect.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = A8B721750BD0C07B004603BE /* LZRect.h */; }; 26 28 A8F4873F0B9A12AF00A1380A /* LaserLineDoc.icns in Resources */ = {isa = PBXBuildFile; fileRef = A8F4873D0B9A12AF00A1380A /* LaserLineDoc.icns */; }; 27 29 A8F487400B9A12AF00A1380A /* LaserLineApp.icns in Resources */ = {isa = PBXBuildFile; fileRef = A8F4873E0B9A12AF00A1380A /* LaserLineApp.icns */; }; … … 150 152 D461AECA0BB4C74900EEF5FB /* LZBeamEffect.h in CopyFiles */, 151 153 A83D1CF20BAA1EA800E8271A /* LZFrameObject.h in CopyFiles */, 154 A8B721770BD0C07B004603BE /* LZRect.h in CopyFiles */, 152 155 ); 153 156 runOnlyForDeploymentPostprocessing = 0; … … 177 180 A87BE54F0BA4B8A8002DEDDF /* LZDisplayDevice.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = LZDisplayDevice.m; sourceTree = "<group>"; }; 178 181 A87BE5500BA4B8A8002DEDDF /* LZDisplayDevice.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = LZDisplayDevice.h; sourceTree = "<group>"; }; 182 A8B721740BD0C07B004603BE /* LZRect.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = LZRect.m; sourceTree = "<group>"; }; 183 A8B721750BD0C07B004603BE /* LZRect.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = LZRect.h; sourceTree = "<group>"; }; 179 184 A8F4873D0B9A12AF00A1380A /* LaserLineDoc.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = LaserLineDoc.icns; path = pictures/LaserLineDoc.icns; sourceTree = "<group>"; }; 180 185 A8F4873E0B9A12AF00A1380A /* LaserLineApp.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = LaserLineApp.icns; path = pictures/LaserLineApp.icns; sourceTree = "<group>"; }; … … 439 444 F8835F1F0B9A3CFE00BDC3C1 /* LZPolyline.m */, 440 445 F8835F160B9A3CFE00BDC3C1 /* LZFilter.h */, 446 A8B721740BD0C07B004603BE /* LZRect.m */, 447 A8B721750BD0C07B004603BE /* LZRect.h */, 441 448 F8835F170B9A3CFE00BDC3C1 /* LZFilter.m */, 442 449 F8835F260B9A3CFE00BDC3C1 /* LZTimeRange.h */, … … 689 696 D461AECB0BB4C74900EEF5FB /* LZBeamEffect.m in Sources */, 690 697 A83D1CF30BAA1EA800E8271A /* LZFrameObject.m in Sources */, 698 A8B721760BD0C07B004603BE /* LZRect.m in Sources */, 691 699 ); 692 700 runOnlyForDeploymentPostprocessing = 0; trunk/LaserLine_2.0/Src/Sequencing/LZFrame.h
r360 r385 1 // 2 // LZFrame.h 3 // LaserLine_2.0 4 // 5 // Created by Chad Weider on 3/2/07. 6 // Copyright 2007 Chad Weider. All rights reserved. 7 // 8 1 9 #import <Cocoa/Cocoa.h> 2 10 #import "RawTypes.h" … … 11 19 } 12 20 13 - ( id)init;14 - ( id)initWithPoints:(NSArray *)points;21 - (LZFrame *)init; 22 - (LZFrame *)initWithPoints:(NSArray *)points; 15 23 - (void)dealloc; 16 24 trunk/LaserLine_2.0/Src/Sequencing/LZFrame.m
r360 r385 1 // 2 // LZFrame.m 3 // LaserLine_2.0 4 // 5 // Created by Chad Weider on 3/2/07. 6 // Copyright 2007 Chad Weider. All rights reserved. 7 // 8 1 9 #import "LZFrame.h" 2 10 3 11 4 12 @implementation LZFrame 5 - ( id)init13 - (LZFrame *)init 6 14 { 7 15 self = [super init]; … … 13 21 } 14 22 15 - ( id)initWithPoints:(NSArray *)points23 - (LZFrame *)initWithPoints:(NSArray *)points 16 24 { 17 25 self = [super init]; … … 50 58 while(object = [enumerator nextObject]) 51 59 { 52 frame.pointCount += [ objectcount];60 frame.pointCount += [[object points] count]; 53 61 } 54 62 frame.points = malloc(frame.pointCount * sizeof(RawPoint)); trunk/LaserLine_2.0/Src/Sequencing/LZFrameObject.h
r361 r385 15 15 } 16 16 17 - (unsigned)count; 17 18 18 - (NSArray *)points; 19 19 trunk/LaserLine_2.0/Src/Sequencing/LZFrameObject.m
r361 r385 12 12 @implementation LZFrameObject 13 13 14 - (unsigned)count15 {16 return 0;17 }18 14 19 15 - (NSArray *)points trunk/LaserLine_2.0/Src/Sequencing/LZPoint.h
r328 r385 4 4 // 5 5 // Created by Chad Weider on 3/2/07. 6 // Copyright 2007 __MyCompanyName__. All rights reserved. 6 // Copyright 2007 Chad Weider 7 // Some rights reserved: <http://creativecommons.org/licenses/by/2.5/> 7 8 // 8 9 … … 18 19 } 19 20 20 - (id)initWithPoint:(NSPoint)aPoint color:(NSColor *)aColor; 21 - (id)initWithPoint:(NSPoint)aPoint color:(NSColor *)aColor blanked:(BOOL)isBlanked; 22 - (id)initWithX:(float)xVal y:(float)yVal z:(float)zVal r:(float)rVal g:(float)gVal b:(float)bVal; 21 + (LZPoint *)pointWithPoint:(NSPoint)aPoint color:(NSColor *)aColor; 22 23 - (LZPoint *)initWithPoint:(NSPoint)aPoint color:(NSColor *)aColor; 24 - (LZPoint *)initWithPoint:(NSPoint)aPoint color:(NSColor *)aColor blanked:(BOOL)isBlanked; 25 - (LZPoint *)initWithX:(float)xVal y:(float)yVal z:(float)zVal r:(float)rVal g:(float)gVal b:(float)bVal; 23 26 24 27 - (void)translateByX:(float)xValue y:(float)yValue; trunk/LaserLine_2.0/Src/Sequencing/LZPoint.m
r345 r385 12 12 @implementation LZPoint 13 13 14 + (LZPoint *)pointWithPoint:(NSPoint)aPoint color:(NSColor *)aColor 15 { 16 return [[[LZPoint alloc] initWithPoint:aPoint color:aColor blanked:NO] autorelease]; 17 } 14 18 15 - ( id)init19 - (LZPoint *)init 16 20 { 17 21 return [self initWithPoint:NSZeroPoint color:nil]; 18 22 } 19 23 20 - ( id)initWithPoint:(NSPoint)aPoint color:(NSColor *)aColor24 - (LZPoint *)initWithPoint:(NSPoint)aPoint color:(NSColor *)aColor 21 25 { 22 26 return [self initWithPoint:aPoint color:aColor blanked:NO]; 23 27 } 24 28 25 - ( id)initWithPoint:(NSPoint)aPoint color:(NSColor *)aColor blanked:(BOOL)isBlanked29 - (LZPoint *)initWithPoint:(NSPoint)aPoint color:(NSColor *)aColor blanked:(BOOL)isBlanked 26 30 { 27 31 self = [super init]; … … 37 41 38 42 39 - ( id)initWithX:(float)xVal y:(float)yVal z:(float)zVal r:(float)rVal g:(float)gVal b:(float)bVal43 - (LZPoint *)initWithX:(float)xVal y:(float)yVal z:(float)zVal r:(float)rVal g:(float)gVal b:(float)bVal 40 44 { 41 45 self = [super init]; trunk/LaserLine_2.0/Src/Sequencing/LZPolyline.m
r384 r385 4 4 // 5 5 // Created by Chad Weider on 3/2/07. 6 // Copyright 2007 __MyCompanyName__. All rights reserved.6 // Copyright 2007 Chad Weider. All rights reserved. 7 7 // 8 8 … … 12 12 @implementation LZPolyline 13 13 14 - ( id)init14 - (LZPolyline *)init 15 15 { 16 16 return [self initWithPoints:nil]; 17 17 } 18 18 19 - ( id)initWithPoints:(NSArray *)points19 - (LZPolyline *)initWithPoints:(NSArray *)points 20 20 { 21 21 self = [super init]; … … 30 30 } 31 31 32 - (void)dealloc 33 { 34 [pointArray release]; 35 [super dealloc]; 36 } 32 37 33 38 #pragma mark FrameObject methods
