Fixed Goto Location dialog for Mac OS X version.

sensor-dev
Chris Laurel 2009-08-05 20:03:40 +00:00
parent f9457d32a6
commit c13040f280
2 changed files with 4 additions and 6 deletions

View File

@ -143,12 +143,11 @@ FrameOfReference getFrame() const;
return [[[CelestiaSelection alloc] initWithSelection:[self simulation]->findObjectFromPath([s stdString], true)] autorelease];
}
/*
-(void)gotoSelection:(NSNumber*)gotoTime up:(CelestiaVector*)up coordinateSystem:(NSString*)csysName
{
[self simulation]->gotoSelection(
[gotoTime doubleValue],
[up vec3f],
[up vector3f],
(ObserverFrame::CoordinateSystem)[[Astro coordinateSystem:csysName] intValue]);
}
@ -158,7 +157,7 @@ FrameOfReference getFrame() const;
[self simulation]->gotoSelection(
[gotoTime doubleValue],
[distance doubleValue],
[up vec3f],
[up vector3f],
(ObserverFrame::CoordinateSystem)[[Astro coordinateSystem:csysName] intValue]);
}
@ -169,9 +168,8 @@ FrameOfReference getFrame() const;
[distance doubleValue],
[longitude floatValue],
[latitude floatValue],
[up vec3f]);
[up vector3f]);
}
*/
-(NSArray*)getSelectionLongLat
{

View File

@ -94,7 +94,7 @@
break;
}
}
distance = [[Astro kilometersToLightYears:[NSNumber numberWithDouble:distance]] doubleValue];
up = [CelestiaVector vectorWithx:[NSNumber numberWithFloat:0.0] y:[NSNumber numberWithFloat:1.0] z:[NSNumber numberWithFloat:0.0]];
if ([[latitudeField stringValue] length] && [[longitudeField stringValue] length])
{