Changeset 387

Show
Ignore:
Timestamp:
04/14/07 16:44:37 (1 year ago)
Author:
kcathey2
Message:

Fixed LaserTools intermediate build for the user kev

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/LaserTools/FlashInspector/FlashInspector.xcodeproj/project.pbxproj

    r380 r387  
    1717/* End PBXBuildFile section */ 
    1818 
     19/* Begin PBXBuildStyle section */ 
     20                DEBB6BC40BD180D2004DAE1B /* Development */ = { 
     21                        isa = PBXBuildStyle; 
     22                        buildSettings = { 
     23                                COPY_PHASE_STRIP = NO; 
     24                        }; 
     25                        name = Development; 
     26                }; 
     27                DEBB6BC50BD180D2004DAE1B /* Deployment */ = { 
     28                        isa = PBXBuildStyle; 
     29                        buildSettings = { 
     30                                COPY_PHASE_STRIP = YES; 
     31                        }; 
     32                        name = Deployment; 
     33                }; 
     34/* End PBXBuildStyle section */ 
     35 
    1936/* Begin PBXContainerItemProxy section */ 
    2037                D45A5EAC0BCCA05600368A33 /* PBXContainerItemProxy */ = { 
     
    2239                        containerPortal = D45A5EA80BCCA05600368A33 /* LaserTools.xcodeproj */; 
    2340                        proxyType = 2; 
    24                         remoteGlobalIDString = 8DC2EF5B0486A6940098B216 /* LaserTools.framework */
     41                        remoteGlobalIDString = 8DC2EF5B0486A6940098B216
    2542                        remoteInfo = LaserTools; 
    2643                }; 
     
    186203                        isa = PBXProject; 
    187204                        buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "FlashInspector" */; 
     205                        buildSettings = { 
     206                        }; 
     207                        buildStyles = ( 
     208                                DEBB6BC40BD180D2004DAE1B /* Development */, 
     209                                DEBB6BC50BD180D2004DAE1B /* Deployment */, 
     210                        ); 
    188211                        hasScannedForEncodings = 1; 
    189212                        mainGroup = 29B97314FDCFA39411CA2CEA /* FlashInspector */; 
     
    260283                        buildSettings = { 
    261284                                ARCHS = "$(NATIVE_ARCH)"; 
     285                                CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)"; 
    262286                                COPY_PHASE_STRIP = NO; 
    263287                                FRAMEWORK_SEARCH_PATHS = ( 
     
    274298                                INFOPLIST_FILE = Info.plist; 
    275299                                INSTALL_PATH = "$(HOME)/Applications"; 
     300                                OBJROOT = ../../Build; 
    276301                                PRODUCT_NAME = FlashInspector; 
    277302                                SYMROOT = ../../Build; 
  • trunk/LaserTools/LaserTools.xcodeproj/project.pbxproj

    r349 r387  
    8888                DEEECF790B940A010051C017 /* LTBufferedRenderer.m in Sources */ = {isa = PBXBuildFile; fileRef = DEEECF770B940A010051C017 /* LTBufferedRenderer.m */; }; 
    8989/* End PBXBuildFile section */ 
     90 
     91/* Begin PBXBuildStyle section */ 
     92                DEBB6BC90BD180D2004DAE1B /* Development */ = { 
     93                        isa = PBXBuildStyle; 
     94                        buildSettings = { 
     95                                COPY_PHASE_STRIP = NO; 
     96                        }; 
     97                        name = Development; 
     98                }; 
     99                DEBB6BCA0BD180D2004DAE1B /* Deployment */ = { 
     100                        isa = PBXBuildStyle; 
     101                        buildSettings = { 
     102                                COPY_PHASE_STRIP = YES; 
     103                        }; 
     104                        name = Deployment; 
     105                }; 
     106/* End PBXBuildStyle section */ 
    90107 
    91108/* Begin PBXFileReference section */ 
     
    455472                        isa = PBXProject; 
    456473                        buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "LaserTools" */; 
     474                        buildSettings = { 
     475                        }; 
     476                        buildStyles = ( 
     477                                DEBB6BC90BD180D2004DAE1B /* Development */, 
     478                                DEBB6BCA0BD180D2004DAE1B /* Deployment */, 
     479                        ); 
    457480                        hasScannedForEncodings = 1; 
    458481                        mainGroup = 0867D691FE84028FC02AAC07 /* LaserTools */; 
  • trunk/LaserTools/_DataStructures/LTPoint.h

    r224 r387  
    2626 
    2727- (id)init; 
     28- (id)initWithNSPoint:(NSPoint)point color:(LTColor *)color; 
    2829- (void)dealloc; 
    2930 
  • trunk/LaserTools/_DataStructures/LTPoint.m

    r224 r387  
    1212@implementation LTPoint 
    1313 
    14 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     14// -------------------------------------------------------------------------- // 
    1515//              Core 
    16 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     16// -------------------------------------------------------------------------- // 
    1717+ (LTPoint *)point 
    1818{ 
     
    2929+ (LTPoint *)pointFromNSPoint:(NSPoint)point 
    3030{ 
    31         LTPoint *newPoint = [LTPoint point]; 
     31        /*LTPoint *newPoint = [LTPoint point]; 
    3232        [newPoint setX:point.x]; 
    33         [newPoint setY:point.y]; 
     33        [newPoint setY:point.y];*/ 
     34        LTPoint *newPoint = [[[LTPoint alloc] initWithNSPoint:point color:nil] autorelease]; 
    3435        return newPoint; 
    3536} 
     
    3839- (id)init 
    3940{ 
     41        return [self initWithNSPoint:NSZeroPoint color:nil]; 
     42} 
     43 
     44- (id)initWithNSPoint:(NSPoint)point color:(LTColor *)color 
     45{ 
    4046        if (self = [super init])        // as long as super class initialization goes to plan 
    4147        { 
    42                 [self setX:0.0F]; 
    43                 [self setY:0.0F]; 
    44                 [self setColor:nil]; 
     48                [self setX:point.x]; 
     49                [self setY:point.y]; 
     50                [self setColor:color]; 
    4551        } 
    4652         
     
    5460} 
    5561 
    56 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     62// -------------------------------------------------------------------------- // 
    5763//              Class Properties 
    58 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     64// -------------------------------------------------------------------------- // 
    5965- (float)x 
    6066{ 
     
    101107} 
    102108 
    103 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     109// -------------------------------------------------------------------------- // 
    104110//              Working with the point 
    105 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     111// -------------------------------------------------------------------------- // 
    106112// OK, this totally doesn't make sense, the SWF coordinate space is positive down 
    107113// and then right is positive. Who does that? So, to get a regular point, we 
     
    168174} 
    169175 
    170 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     176// -------------------------------------------------------------------------- // 
    171177//              Misc 
    172 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     178// -------------------------------------------------------------------------- // 
    173179- (NSString *)description 
    174180{ 
  • trunk/LaserTools/_DataStructures/LTShapeWithStyle.m

    r287 r387  
    488488                                LTStraightEdgeRecord *shapeRecord = (LTStraightEdgeRecord *)retrievedShapeRecord; 
    489489                                 
    490                                 // determine the new absolute x and y 
     490                                // OK, so because the laser needs to have multiple points, even 
     491                                // for a straight line, we are going to figure out how many 
     492                                // points to use, and then create all those points, and then 
     493                                // add the end point. 
    491494                                absoluteX = absoluteX + [shapeRecord delta].x; 
    492495                                absoluteY = absoluteY + [shapeRecord delta].y; 
    493496                                 
     497                                // Copy the color into the palette, and then using that and the 
     498                                // start and end points we just computed, subdivide the line 
     499                                // segments up 
     500                                LTColor *copiedColor = [palette addAndCopyColor:[previousPoint color]]; 
     501                                NSArray *subdividedPoints = 
     502                                        [LTBufferedRenderer subdivideLineBetweenPoints:[previousPoint nsPoint] 
     503                                                end:NSMakePoint(absoluteX, absoluteY) color:copiedColor]; 
     504                                 
    494505                                // create the point relative to the previous point 
    495                                 LTPoint *newPoint = [LTPoint point]; 
     506                                /*LTPoint *newPoint = [LTPoint point]; 
    496507                                [newPoint setX:absoluteX]; 
    497508                                [newPoint setY:absoluteY]; 
    498                                 [newPoint setColor:[palette addAndCopyColor:[previousPoint color]]]; 
     509                                [newPoint setColor:[palette addAndCopyColor:[previousPoint color]]];*/ 
    499510                                 
    500511                                // add the point save the point as the previous point 
    501                                 [points addObject:newPoint]; 
    502                                 previousPoint = newPoint; 
     512                                //[points addObject:newPoint]; 
     513                                NSLog(@"here"); 
     514                                [points addObjectsFromArray:subdividedPoints]; 
     515                                previousPoint = [subdividedPoints lastObject]; 
    503516                        } 
    504517                        else 
  • trunk/LaserTools/_Importer/LTFlashImporter.m

    r245 r387  
    1212@implementation LTFlashImporter 
    1313 
    14 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
    15 //              Core 
    16 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     14// -------------------------------------------------------------------------- // 
     15#pragma mark - 
     16#pragma mark    Core 
     17#pragma mark - 
     18// -------------------------------------------------------------------------- // 
    1719- (id)init 
    1820{ 
     
    3032} 
    3133 
    32 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
    33 //              Main Import Calls 
    34 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     34// -------------------------------------------------------------------------- // 
     35#pragma mark - 
     36#pragma mark    Main Import Calls 
     37#pragma mark - 
     38// -------------------------------------------------------------------------- // 
    3539/* 
    3640 *      This is pretty much the top level importer method. It will get the file data (after 
     
    369373} 
    370374 
    371 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
    372 //              Header Calls 
    373 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     375// -------------------------------------------------------------------------- // 
     376#pragma mark - 
     377#pragma mark    Header Calls 
     378#pragma mark - 
     379// -------------------------------------------------------------------------- // 
    374380 
    375381/* 
     
    482488} 
    483489 
    484 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
    485 //              Tag Calls 
    486 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     490// -------------------------------------------------------------------------- // 
     491#pragma mark - 
     492#pragma mark    Tag Calls 
     493#pragma mark - 
     494// -------------------------------------------------------------------------- // 
    487495 
    488496/* 
  • trunk/LaserTools/_Runtime/LTBufferedRenderer.h

    r297 r387  
    2222 
    2323#define LTCurveLinearizationQuality     6.0F 
     24#define LTPointsPerUnitLength           50.0F 
    2425 
    2526NSPoint LTDivideLineSegment(float t, NSPoint a, NSPoint b); 
     
    2930} 
    3031 
    31 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     32// -------------------------------------------------------------------------- // 
    3233//              Core 
    33 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     34// -------------------------------------------------------------------------- // 
    3435+ (LTBufferedRenderer *)renderer; 
    3536 
     
    3738- (void)dealloc; 
    3839 
    39 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     40// -------------------------------------------------------------------------- // 
    4041//              Rendering movie frames 
    41 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     42// -------------------------------------------------------------------------- // 
    4243+ (NSArray *)renderFrame:(uint16_t)frame inMovie:(LTFlashMovie *)movie; 
    4344+ (NSArray *)renderFrameInstance:(LTFrameInstance *)instance inMovie:(LTFlashMovie *)movie; 
    44 + (NSArray *)renderObjectInstance:(LTObjectInstance *)instance withContext:(LTRenderedContext)context inFrameInstance:(LTFrameInstance *)frameInstance withBounds:(NSRect)bounds; 
     45+ (NSArray *)renderObjectInstance:(LTObjectInstance *)instance 
     46        withContext:(LTRenderedContext)context 
     47        inFrameInstance:(LTFrameInstance *)frameInstance 
     48        withBounds:(NSRect)bounds; 
    4549 
    46 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     50// -------------------------------------------------------------------------- // 
    4751//              Curve and point manipulation 
    48 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- // 
     52// -------------------------------------------------------------------------- // 
    4953+ (NSArray *)linearizeCurve:(LTCurvedEdgeRecord *)curve fromAnchor:(NSPoint)anchor; 
    5054+ (NSArray *)linearizeCurve:(LTCurvedEdgeRecord *)curve fromAnchor:(NSPoint)anchor quality:(float)quality; 
    5155 
     56+ (NSArray *)subdivideLineBetweenPoints:(NSPoint)start end:(NSPoint)end color:(LTColor *)color; 
     57 
    5258@end 
  • trunk/LaserTools/_Runtime/LTBufferedRenderer.m

    r244 r387  
    304304} 
    305305 
     306/* 
     307 *      Subdivides a line segment into multiple segments. Then it puts LTPoints 
     308 *      into an autoreleased array and returns it. 
     309 */ 
     310+ (NSArray *)subdivideLineBetweenPoints:(NSPoint)start end:(NSPoint)end 
     311        color:(LTColor *)color 
     312{ 
     313        // First, find the change 
     314        float deltaX = end.x - start.x; 
     315        float deltaY = end.y - start.y; 
     316        float lineDistance = sqrt(pow(deltaX, 2) + pow(deltaY, 2)); 
     317         
     318        // Get the number of points by dividing the line distance by the points per 
     319        // unit length. We floor it so that we do not add the last point. This is 
     320        // done by the user. 
     321        // So for example, if we have two points: 
     322        //      .                                       . 
     323        // we floor it so that we can do this: 
     324        //      .  .  .  .  .  .  . . 
     325        // instead of: 
     326        //      .  .  .  .  .  .  .  . (which is off!) 
     327        signed numberOfPoints = floor(lineDistance/LTPointsPerUnitLength); 
     328        float deltaXPerPoint = deltaX / numberOfPoints; 
     329        float deltaYPerPoint = deltaY / numberOfPoints; 
     330         
     331        // Now, create an array of points to add to. 
     332        NSMutableArray *points = [NSMutableArray arrayWithCapacity:numberOfPoints + 1]; 
     333         
     334        // For every point, we just multiply by the deltaXPerPoint and deltaYPerPoint 
     335        // to get the next point 
     336        int i; 
     337        for (i = 0; i < numberOfPoints; i++) 
     338        { 
     339                // Compute the next point, convert it to an LTPoint using the passed 
     340                // color, and then add the point to the array of points 
     341                NSPoint next = NSMakePoint(start.x + deltaXPerPoint * (float)i, 
     342                        start.y + deltaYPerPoint * (float)i); 
     343                LTPoint *point = [[LTPoint alloc] initWithNSPoint:next color:color]; 
     344                [points addObject:point]; 
     345        } 
     346         
     347        // Now make the last point and add it to the array 
     348        LTPoint *lastPoint = [LTPoint pointFromNSPoint:end]; 
     349        NSLog([lastPoint description]); 
     350        [lastPoint setColor:color]; 
     351        [points addObject:lastPoint]; 
     352         
     353        return points; 
     354} 
     355 
    306356@end