Changeset 343
- Timestamp:
- 03/19/07 02:14:42 (1 year ago)
- Files:
-
- trunk/LaserLine_2.0/Src/FileImports/ILDAImport.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/LaserLine_2.0/Src/FileImports/ILDAImport.m
r323 r343 36 36 { 37 37 NSPoint pointLoc; 38 NSColor *pointColor;38 float z; 39 39 BOOL isBlanked; 40 40 LZPoint *tmpPoint; 41 41 42 pointLoc.x = sequence.frames[i].points[j].x/32767.; 43 pointLoc.y = sequence.frames[i].points[j].y/32767.; 42 pointLoc.x = sequence.frames[i].points[j].x/32768.; 43 pointLoc.y = sequence.frames[i].points[j].y/32768.; 44 z = sequence.frames[i].points[j].z/32768.; 44 45 45 46 ILDAColor ildaColor = myPalette->colors[ILDAPoint_color_index(&sequence.frames[i].points[j])]; 47 isBlanked = ILDAPoint_blank_bit(&sequence.frames[i].points[j]); 46 48 47 pointColor = [NSColor colorWithCalibratedRed:((float)ildaColor.r/255.) green:((float)ildaColor.g/255.) blue:((float)ildaColor.b)/255. alpha:1]; 48 49 isBlanked = ILDAPoint_blank_bit(&sequence.frames[i].points[j]); 50 51 52 tmpPoint = [[LZPoint alloc] initWithPoint:pointLoc color:pointColor blanked:isBlanked]; 49 if(ILDAPoint_blank_bit(&sequence.frames[i].points[j])) 50 tmpPoint = [[LZPoint alloc] initWithX:pointLoc.x y:pointLoc.y z:z r:0 g:0 b:0]; 51 else 52 tmpPoint = [[LZPoint alloc] initWithX:pointLoc.x y:pointLoc.y z:z r:(ildaColor.r/255.) g:(ildaColor.g/255.) b:(ildaColor.b/255.)]; 53 53 54 54 [polyline addPoint:tmpPoint];
