Changeset 351
- Timestamp:
- 03/29/07 03:34:44 (2 years ago)
- Files:
-
- trunk/LaserLine_2.0/Src/Sequencing/LZFrame.m (modified) (1 diff)
- trunk/LaserLine_2.0/Src/Sequencing/LZPolyline.h (modified) (2 diffs)
- trunk/LaserLine_2.0/Src/Sequencing/LZPolyline.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/LaserLine_2.0/Src/Sequencing/LZFrame.m
r320 r351 48 48 frame.points = malloc(frame.pointCount * sizeof(RawPoint)); 49 49 50 unsigned i; 51 for(i = 0; i < frame.pointCount; i++) 52 frame.points[i] = [[polyline pointAtIndex:i] rawPoint]; 50 LZPoint *point; 51 NSEnumerator enumerator = [[polyline points] objectEnumerator]; 52 while(point = [enumerator nextObject]) 53 frame.points[i] = [point rawPoint]; 53 54 54 55 return frame; trunk/LaserLine_2.0/Src/Sequencing/LZPolyline.h
r198 r351 19 19 20 20 21 - (unsigned)count;22 23 21 - (void)addPoint:(LZPoint *)aPoint; 24 22 … … 27 25 - (void)movePoint:(LZPoint *)point toPoint:(NSPoint)newPoint; 28 26 27 - (unsigned)count; 28 - (NSArray)points; 29 29 - (LZPoint *)pointAtIndex:(unsigned)index; 30 30 trunk/LaserLine_2.0/Src/Sequencing/LZPolyline.m
r198 r351 60 60 - (unsigned)count 61 61 { 62 return [pointArray count]; 62 return [[self points] count]; 63 } 64 65 - (NSArray *)points 66 { 67 return pointArray; 63 68 } 64 69 65 70 - (LZPoint *)pointAtIndex:(unsigned)index 66 71 { 67 return [ pointArrayobjectAtIndex:index];72 return [[self points] objectAtIndex:index]; 68 73 } 69 74
