Oolite
Loading...
Searching...
No Matches
GuiDisplayGen(Internal) Category Reference

Instance Methods

(void) - drawGLDisplay:y:z:alpha:
(void) - drawCrossHairsWithSize:x:y:z:
(void) - drawStarChart:y:z:alpha:compact:
(void) - drawSystemMarkers:atX:andY:andZ:withAlpha:andScale:
(void) - drawSystemMarker:atX:andY:andZ:withAlpha:andScale:
(void) - drawEquipmentList:z:
(void) - drawAdvancedNavArrayAtX:y:z:alpha:usingRoute:optimizedBy:zoom:

Detailed Description

Definition at line 47 of file GuiDisplayGen.m.

Method Documentation

◆ drawAdvancedNavArrayAtX:y:z:alpha:usingRoute:optimizedBy:zoom:

- (void) drawAdvancedNavArrayAtX: (float) x
y: (float) y
z: (float) z
alpha: (float) alpha
usingRoute: (NSDictionary *) route
optimizedBy: (OORouteType) optimizeBy
zoom: (OOScalar) zoom 

Extends class GuiDisplayGen.

Definition at line 2177 of file GuiDisplayGen.m.

2177 :(float)x y:(float)y z:(float)z alpha:(float)alpha usingRoute:(NSDictionary*)routeInfo optimizedBy:(OORouteType)optimizeBy zoom:(OOScalar)zoom
2178{
2179 GLfloat lr, lg, lb, la, lr2, lg2, lb2, la2;
2180 double hscale = size_in_pixels.width / (CHART_WIDTH_AT_MAX_ZOOM * zoom);
2181 double vscale = -1.0 * size_in_pixels.height / (2 * CHART_HEIGHT_AT_MAX_ZOOM * zoom);
2182 NSPoint star = NSZeroPoint,
2183 star2 = NSZeroPoint,
2184 starabs = NSZeroPoint,
2185 star2abs = NSZeroPoint;
2186 OOSystemDescriptionManager* systemManager = [UNIVERSE systemManager];
2187 OOGalaxyID g = [PLAYER galaxyNumber];
2188 OOSystemID planetNumber = [PLAYER systemID];
2189
2190 OOColor* defaultConnectionColor = [self colorFromSetting:kGuiChartConnectionColor defaultValue:[OOColor colorWithWhite:0.25 alpha:1.0]];
2191 OOColor* currentJumpColorStart = [self colorFromSetting:kGuiChartCurrentJumpStartColor defaultValue:[OOColor colorWithWhite:0.25 alpha:0.0]];
2192 OOColor* currentJumpColorEnd = [self colorFromSetting:kGuiChartCurrentJumpEndColor defaultValue:[OOColor colorWithWhite:0.25 alpha:0.0]];
2193
2194 OOColor* thisConnectionColor = nil;
2195 OOColor* thatConnectionColor = nil;
2196
2197 float jumpRange = MAX_JUMP_RANGE * ((optimizeBy == OPTIMIZED_BY_NONE) ? [PLAYER dialFuel] : 1.0);
2198
2199 NSInteger concealment[256];
2200 for (NSUInteger i = 0; i < 256; i++) {
2201 NSDictionary* systemInfo = [systemManager getPropertiesForSystem:i inGalaxy:g];
2202 concealment[i] = [systemInfo oo_intForKey:@"concealment" defaultValue:OO_SYSTEMCONCEALMENT_NONE];
2203 }
2204
2205 OOGLBEGIN(GL_LINES);
2206 for (OOSystemID i = 0; i < 256; i++) {
2207
2208 if (concealment[i] >= OO_SYSTEMCONCEALMENT_NOTHING) {
2209 // system is not known
2210 continue;
2211 }
2212
2213 /* Concealment */
2214 if (optimizeBy == OPTIMIZED_BY_NONE && i != planetNumber) {
2215 continue;
2216 }
2217
2218 starabs = [systemManager getCoordinatesForSystem:i inGalaxy:g];
2219
2220 star.x = (float)(starabs.x * hscale);
2221 star.y = (float)(starabs.y * vscale);
2222
2223 // if in non-route mode, we're always starting from i, so need
2224 // to do <i here too.
2225 OOSystemID loopstart = (optimizeBy == OPTIMIZED_BY_NONE) ? 0 : (i + 1);
2226
2227 for (OOSystemID j = loopstart; j < 256; j++) {
2228 if (i == j) {
2229 continue; // for OPTIMIZED_BY_NONE case
2230 }
2231
2232 if (concealment[j] >= OO_SYSTEMCONCEALMENT_NOTHING) {
2233 // system is not known
2234 continue;
2235 }
2236
2237 star2abs = [systemManager getCoordinatesForSystem:j inGalaxy:g];
2238 double d = distanceBetweenPlanetPositions(starabs.x, starabs.y, star2abs.x, star2abs.y);
2239
2240 if (d <= jumpRange) // another_commander - Default to 7.0 LY.
2241 {
2242 star2.x = (float)(star2abs.x * hscale);
2243 star2.y = (float)(star2abs.y * vscale);
2244 if (optimizeBy == OPTIMIZED_BY_NONE) {
2245 [currentJumpColorStart getRed:&lr green:&lg blue:&lb alpha:&la];
2246 [currentJumpColorEnd getRed:&lr2 green:&lg2 blue:&lb2 alpha:&la2];
2247 OOGL(glColor4f(lr, lg, lb, la * alpha));
2248 glVertex3f(x + star.x, y + star.y, z);
2249
2250 float frac = (d / jumpRange);
2251 OOGL(glColor4f(
2252 OOLerp(lr, lr2, frac),
2253 OOLerp(lg, lg2, frac),
2254 OOLerp(lb, lb2, frac),
2255 OOLerp(la, la2, frac)));
2256 glVertex3f(x + star2.x, y + star2.y, z);
2257
2258 } else {
2259 thisConnectionColor = [OOColor colorWithDescription:[systemManager getProperty:@"link_color" forSystemKey:[NSString stringWithFormat:@"interstellar: %d %ld %ld", g, (long)i, (long)j]]];
2260
2261 if (thisConnectionColor == nil) {
2262 thisConnectionColor = defaultConnectionColor;
2263 }
2264 [thisConnectionColor getRed:&lr green:&lg blue:&lb alpha:&la];
2265 OOGL(glColor4f(lr, lg, lb, la * alpha));
2266
2267 glVertex3f(x + star.x, y + star.y, z);
2268
2269 // and the other colour for the other end
2270 thatConnectionColor = [OOColor colorWithDescription:[systemManager getProperty:@"link_color" forSystemKey:[NSString stringWithFormat:@"interstellar: %d %ld %ld", g, (long)j, (long)i]]];
2271
2272 if (thatConnectionColor == nil) {
2273 thatConnectionColor = thisConnectionColor;
2274 }
2275 [thatConnectionColor getRed:&lr green:&lg blue:&lb alpha:&la];
2276 OOGL(glColor4f(lr, lg, lb, la * alpha));
2277
2278 glVertex3f(x + star2.x, y + star2.y, z);
2279 }
2280 }
2281 }
2282 }
2283 OOGLEND();
2284
2285 if (optimizeBy == OPTIMIZED_BY_NONE) {
2286 return;
2287 }
2288
2289 if (routeInfo) {
2290 NSUInteger i, route_hops = [[routeInfo oo_arrayForKey:@"route"] count] - 1;
2291
2292 if (optimizeBy == OPTIMIZED_BY_JUMPS) {
2293 // route optimised by distance
2294 [self setGLColorFromSetting:kGuiChartRouteShortColor defaultValue:[OOColor yellowColor] alpha:alpha];
2295 } else {
2296 // route optimised by time
2297 [self setGLColorFromSetting:kGuiChartRouteQuickColor defaultValue:[OOColor cyanColor] alpha:alpha];
2298 }
2299 OOSystemID loc;
2300 for (i = 0; i < route_hops; i++) {
2301 loc = [[routeInfo objectForKey:@"route"] oo_intAtIndex:i];
2302 starabs = [systemManager getCoordinatesForSystem:loc inGalaxy:g];
2303 star2abs = [systemManager getCoordinatesForSystem:[[routeInfo objectForKey:@"route"] oo_intAtIndex:i + 1] inGalaxy:g];
2304
2305 star.x = (float)(starabs.x * hscale);
2306 star.y = (float)(starabs.y * vscale);
2307
2308 star2.x = (float)(star2abs.x * hscale);
2309 star2.y = (float)(star2abs.y * vscale);
2310
2311 OOGLBEGIN(GL_LINES);
2312 glVertex3f(x + star.x, y + star.y, z);
2313 glVertex3f(x + star2.x, y + star2.y, z);
2314 OOGLEND();
2315
2316 // Label the route, if not already labelled
2317 if (zoom > CHART_ZOOM_SHOW_LABELS && concealment[loc] < OO_SYSTEMCONCEALMENT_NONAME) {
2318 OODrawString([UNIVERSE systemNameIndex:loc], x + star.x + 2.0, y + star.y, z, NSMakeSize(8, 8));
2319 }
2320 }
2321 // Label the destination, which was not included in the above loop.
2322 if (zoom > CHART_ZOOM_SHOW_LABELS) {
2323 loc = [[routeInfo objectForKey:@"route"] oo_intAtIndex:i];
2324 if (concealment[loc] < OO_SYSTEMCONCEALMENT_NONAME) {
2325 OODrawString([UNIVERSE systemNameIndex:loc], x + star2.x + 2.0, y + star2.y, z, NSMakeSize(10, 10));
2326 }
2327 }
2328 }
2329}
void OODrawString(NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz)
OOINLINE float OOLerp(float v0, float v1, float fraction) INLINE_CONST_FUNC
GLfloat OOScalar
Definition OOMaths.h:49
#define OOGLBEGIN
Definition OOOpenGL.h:269
#define OOGL(statement)
Definition OOOpenGL.h:262
#define OOGLEND
Definition OOOpenGL.h:270
return nil
float y
float x
@ OO_SYSTEMCONCEALMENT_NOTHING
@ OO_SYSTEMCONCEALMENT_NONAME
OORouteType
Definition OOTypes.h:31
@ OPTIMIZED_BY_NONE
Definition OOTypes.h:32
@ OPTIMIZED_BY_JUMPS
Definition OOTypes.h:33
int16_t OOSystemID
Definition OOTypes.h:183
uint8_t OOGalaxyID
Definition OOTypes.h:182
#define CHART_WIDTH_AT_MAX_ZOOM
#define CHART_ZOOM_SHOW_LABELS
#define CHART_HEIGHT_AT_MAX_ZOOM
#define MAX_JUMP_RANGE
Definition ShipEntity.h:109
#define UNIVERSE
Definition Universe.h:827
OOColor * cyanColor()
Definition OOColor.m:274
OOColor * colorWithWhite:alpha:(float white,[alpha] float alpha)
Definition OOColor.m:114
OOColor * colorWithDescription:(id description)
Definition OOColor.m:135
void getRed:green:blue:alpha:(float *red,[green] float *green,[blue] float *blue,[alpha] float *alpha)
Definition OOColor.m:344
OOColor * yellowColor()
Definition OOColor.m:279
NSPoint getCoordinatesForSystem:inGalaxy:(OOSystemID s,[inGalaxy] OOGalaxyID g)
NSDictionary * getPropertiesForSystem:inGalaxy:(OOSystemID s,[inGalaxy] OOGalaxyID g)
id getProperty:forSystemKey:(NSString *property,[forSystemKey] NSString *key)
OOINLINE double distanceBetweenPlanetPositions(int x1, int y1, int x2, int y2) INLINE_CONST_FUNC

References CHART_HEIGHT_AT_MAX_ZOOM, CHART_WIDTH_AT_MAX_ZOOM, CHART_ZOOM_SHOW_LABELS, GuiDisplayGen::colorFromSetting:defaultValue:, OOColor::colorWithDescription:, OOColor::colorWithWhite:alpha:, OOColor::cyanColor, distanceBetweenPlanetPositions(), OOSystemDescriptionManager::getCoordinatesForSystem:inGalaxy:, OOSystemDescriptionManager::getPropertiesForSystem:inGalaxy:, OOSystemDescriptionManager::getProperty:forSystemKey:, OOColor::getRed:green:blue:alpha:, MAX_JUMP_RANGE, nil, OO_SYSTEMCONCEALMENT_NONAME, OO_SYSTEMCONCEALMENT_NOTHING, OODrawString(), OOGL, OOGLBEGIN, OOGLEND, OOLerp(), OPTIMIZED_BY_JUMPS, OPTIMIZED_BY_NONE, GuiDisplayGen::setGLColorFromSetting:defaultValue:alpha:, UNIVERSE, x, y, and OOColor::yellowColor.

Referenced by drawStarChart:y:z:alpha:compact:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawCrossHairsWithSize:x:y:z:

- (void) drawCrossHairsWithSize: (GLfloat) size
x: (GLfloat) x
y: (GLfloat) y
z: (GLfloat) z 

Extends class GuiDisplayGen.

Definition at line 1530 of file GuiDisplayGen.m.

1530 :(GLfloat)size x:(GLfloat)x y:(GLfloat)y z:(GLfloat)z
1531{
1532 OOGLBEGIN(GL_QUADS);
1533 glVertex3f(x - 1, y - size, z);
1534 glVertex3f(x + 1, y - size, z);
1535 glVertex3f(x + 1, y + size, z);
1536 glVertex3f(x - 1, y + size, z);
1537 glVertex3f(x - size, y - 1, z);
1538 glVertex3f(x + size, y - 1, z);
1539 glVertex3f(x + size, y + 1, z);
1540 glVertex3f(x - size, y + 1, z);
1541 OOGLEND();
1542}
voidpf void uLong size
Definition ioapi.h:126

References OOGLBEGIN, OOGLEND, x, and y.

Referenced by drawStarChart:y:z:alpha:compact:.

Here is the caller graph for this function:

◆ drawEquipmentList:z:

- (void) drawEquipmentList: (NSArray *) eqptList
z: (GLfloat) z 

add color selection here

Extends class GuiDisplayGen.

Definition at line 1103 of file GuiDisplayGen.m.

1103 :(NSArray*)eqptList z:(GLfloat)z
1104{
1105 if ([eqptList count] == 0)
1106 return;
1107
1109 NSUInteger maxRows = STATUS_EQUIPMENT_MAX_ROWS;
1110 if ([[PLAYER hud] allowBigGui]) {
1112 }
1113 NSUInteger itemsPerColumn = maxRows;
1114
1115 NSInteger firstY = 40; // firstRow =10 :-> 40 - firstRow=11 -> 24 etc...
1116 NSUInteger eqptCount = [eqptList count];
1117 NSUInteger pageCount = 1;
1118 NSUInteger i;
1119 NSInteger start;
1120 NSArray* info = nil;
1121 NSString* name = nil;
1122 BOOL damaged;
1123
1124 // Paging calculations. Assuming 10 lines we get - one page:20 items per page (ipp)
1125 // two pages: 18 ipp - three+ pages: 1st & last 18pp, middle pages 16ipp
1126
1127 i = itemsPerColumn * 2 + 2;
1128 if (eqptCount > i) // don't fit in one page?
1129 {
1130 [[UNIVERSE gameController] setMouseInteractionModeForUIWithMouseInteraction:YES];
1131
1132 i = itemsPerColumn * 4; // total items in the first and last pages
1133 itemsPerColumn--; // for all the middle pages.
1134 if (eqptCount <= i) // two pages
1135 {
1136 pageCount++;
1137 if (statusPage == 1) {
1138 start = 0;
1139 } else {
1140 statusPage = 2;
1141 start = i / statusPage; // for the for loop
1142 }
1143 } else // three or more
1144 {
1145 pageCount = ceil((float)(eqptCount - i) / (itemsPerColumn * 2)) + 2;
1146 statusPage = (NSInteger)OOClampInteger(statusPage, 1, pageCount);
1147 start = (statusPage == 1) ? 0 : (statusPage - 1) * itemsPerColumn * 2 + 2;
1148 }
1149 } else {
1150 statusPage = pageCount; // one page
1151 start = 0;
1152 // if we have mouse interaction active, it means that we had more than one
1153 // pages earlier, but only one now, as e.g. in the case of a hud that wss
1154 // subsequently hidden, resulting in the equip list fitting in one page,
1155 // so we need to deactivate it
1156 if (OOMouseInteractionModeIsUIScreen([[UNIVERSE gameController] mouseInteractionMode])) {
1157 // clear the gui-more and gui-back key rows first
1158 [self setText:@"" forRow:firstRow];
1159 [self setKey:GUI_KEY_SKIP forRow:firstRow];
1160 [self setText:@"" forRow:firstRow + STATUS_EQUIPMENT_MAX_ROWS];
1161 [self setKey:GUI_KEY_SKIP forRow:firstRow + STATUS_EQUIPMENT_MAX_ROWS];
1162 [self setSelectableRange:NSMakeRange(0, 0)];
1163
1164 [[UNIVERSE gameController] setMouseInteractionModeForUIWithMouseInteraction:NO];
1165 }
1166 }
1167
1168 if (statusPage > 1) {
1169 [self setColor:[self colorFromSetting:kGuiStatusEquipmentScrollColor defaultValue:[OOColor greenColor]] forRow:firstRow];
1170 [self setArray:[NSArray arrayWithObjects:DESC(@"gui-back"), @"", @" <-- ", nil] forRow:firstRow];
1171 [self setKey:GUI_KEY_OK forRow:firstRow];
1172 firstY -= 16; // start 1 row down!
1173 if (statusPage == pageCount) {
1174 [self setSelectableRange:NSMakeRange(firstRow, 1)];
1175 [self setSelectedRow:firstRow];
1176 }
1177 }
1178 if (statusPage < pageCount) {
1179 [self setColor:[self colorFromSetting:kGuiStatusEquipmentScrollColor defaultValue:[OOColor greenColor]] forRow:firstRow + maxRows];
1180 [self setArray:[NSArray arrayWithObjects:DESC(@"gui-more"), @"", @" --> ", nil] forRow:firstRow + maxRows];
1181 [self setKey:GUI_KEY_OK forRow:firstRow + maxRows];
1182 if (statusPage == 1) {
1183 [self setSelectableRange:NSMakeRange(firstRow + maxRows, 1)];
1184 [self setSelectedRow:firstRow + maxRows];
1185 }
1186 }
1187 if (statusPage > 1 && statusPage < pageCount) {
1188 [self setSelectableRange:NSMakeRange(firstRow, MIN(firstRow + maxRows, GUI_DEFAULT_ROWS - firstRow))];
1189 // default selected row to 'More -->' if we are looking at one of the middle pages
1190 if ([self selectedRow] == -1)
1191 [self setSelectedRow:firstRow + maxRows];
1192 }
1193
1194 if (statusPage == 1 || statusPage == pageCount)
1195 itemsPerColumn++;
1196 eqptCount = (NSInteger)OOClampInteger(eqptCount, 1, start + itemsPerColumn * 2);
1197 for (i = start; i < eqptCount; i++) {
1198 info = [eqptList oo_arrayAtIndex:i];
1199 name = [info oo_stringAtIndex:0];
1200 if ([name length] > 42)
1201 name = [[name substringToIndex:40] stringByAppendingString:@"..."];
1202
1203 damaged = ![info oo_boolAtIndex:1];
1204 if (damaged) {
1205 // Damaged items show up orange.
1206 [self setGLColorFromSetting:@"status_equipment_damaged_color" defaultValue:[OOColor orangeColor] alpha:1.0];
1207 } else
1208 {
1209 OOColor* dispCol = [info oo_objectAtIndex:2];
1210 // Normal items in default colour
1211 [self setGLColorFromSetting:@"status_equipment_ok_color" defaultValue:dispCol alpha:1.0];
1212 }
1213
1214 if (i - start < itemsPerColumn) {
1215 OODrawString(name, -220, firstY - 16 * (NSInteger)(i - start), z, NSMakeSize(15, 15));
1216 } else {
1217 OODrawString(name, 50, firstY - 16 * (NSInteger)(i - itemsPerColumn - start), z, NSMakeSize(15, 15));
1218 }
1219 }
1220}
NSInteger OOGUIRow
OOINLINE long long OOClampInteger(long long value, long long minValue, long long maxValue) ALWAYS_INLINE_FUNC
BOOL OOMouseInteractionModeIsUIScreen(OOMouseInteractionMode mode)
unsigned count
@ STATUS_EQUIPMENT_FIRST_ROW
@ STATUS_EQUIPMENT_MAX_ROWS
@ STATUS_EQUIPMENT_BIGGUI_EXTRA_ROWS
#define PLAYER
OOColor * orangeColor()
Definition OOColor.m:289
OOColor * greenColor()
Definition OOColor.m:264

References GuiDisplayGen::colorFromSetting:defaultValue:, count, OOColor::greenColor, nil, OOClampInteger(), OODrawString(), OOMouseInteractionModeIsUIScreen(), OOColor::orangeColor, PLAYER, GuiDisplayGen::setArray:forRow:, GuiDisplayGen::setColor:forRow:, GuiDisplayGen::setGLColorFromSetting:defaultValue:alpha:, GuiDisplayGen::setKey:forRow:, GuiDisplayGen::setSelectableRange:, GuiDisplayGen::setSelectedRow:, GuiDisplayGen::setText:forRow:, STATUS_EQUIPMENT_BIGGUI_EXTRA_ROWS, STATUS_EQUIPMENT_FIRST_ROW, STATUS_EQUIPMENT_MAX_ROWS, and UNIVERSE.

Referenced by GuiDisplayGen::drawGUI:drawCursor:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawGLDisplay:y:z:alpha:

- (void) drawGLDisplay: (GLfloat) x
y: (GLfloat) y
z: (GLfloat) z
alpha: (GLfloat) alpha 

Extends class GuiDisplayGen.

Definition at line 1321 of file GuiDisplayGen.m.

1321 :(GLfloat)x y:(GLfloat)y z:(GLfloat)z alpha:(GLfloat)alpha
1322{
1323 NSSize strsize;
1324 unsigned i;
1325 OOTimeDelta delta_t = [UNIVERSE getTimeDelta];
1326 NSSize characterSize = pixel_text_size;
1327 NSSize titleCharacterSize = pixel_title_size;
1328 float backgroundAlpha = self == [UNIVERSE messageGUI] && ![UNIVERSE permanentMessageLog] ? 0.0f : alpha;
1329 float row_alpha[n_rows];
1330
1331 // calculate fade out time and alpha for each row. Do it before
1332 // applying a potential background because we need the maximum alpha
1333 // of all rows to be the alpha applied to the background color
1334 for (i = 0; i < n_rows; i++) {
1335 row_alpha[i] = alpha;
1336
1337 if (![UNIVERSE autoMessageLogBg] && [PLAYER guiScreen] == GUI_SCREEN_MAIN)
1338 backgroundAlpha = alpha;
1339
1340 if (rowFadeTime[i] > 0.0f && ![UNIVERSE permanentMessageLog]) {
1341 rowFadeTime[i] -= (float)delta_t;
1342 if (rowFadeTime[i] <= 0.0f) {
1343 [rowText replaceObjectAtIndex:i withObject:@""];
1344 rowFadeTime[i] = 0.0f;
1345 continue;
1346 }
1347 if ((rowFadeTime[i] > 0.0f) && (rowFadeTime[i] < 1.0)) {
1348 row_alpha[i] *= rowFadeTime[i];
1349 if (backgroundAlpha < row_alpha[i])
1350 backgroundAlpha = row_alpha[i];
1351 } else {
1352 backgroundAlpha = alpha;
1353 }
1354 }
1355 }
1356
1357 // do backdrop
1358 // don't draw it if docked, unless message_gui is permanent
1359 // don't draw it on the intro screens
1360 if (backgroundColor) {
1361 int playerStatus = [PLAYER status];
1362 if (playerStatus != STATUS_START_GAME && playerStatus != STATUS_DEAD) {
1363 OOGL(glColor4f([backgroundColor redComponent], [backgroundColor greenComponent], [backgroundColor blueComponent], backgroundAlpha * [backgroundColor alphaComponent]));
1364 OOGLBEGIN(GL_QUADS);
1365 glVertex3f(x + 0.0f, y + 0.0f, z);
1366 glVertex3f(x + size_in_pixels.width, y + 0.0f, z);
1367 glVertex3f(x + size_in_pixels.width, y + size_in_pixels.height, z);
1368 glVertex3f(x + 0.0f, y + size_in_pixels.height, z);
1369 OOGLEND();
1370 }
1371 }
1372
1373 // show the 'foreground', aka overlay!
1374
1375 if (foregroundSprite != nil) {
1376 [foregroundSprite blitCentredToX:x + 0.5f * size_in_pixels.width Y:y + 0.5f * size_in_pixels.height Z:z alpha:alpha];
1377 }
1378
1379 if (!RowInRange(selectedRow, selectableRange))
1380 selectedRow = -1; // out of Range;
1381
1383 // drawing operations here
1384
1385 if (title != nil) {
1386 //
1387 // draw the title
1388 //
1389 strsize = OORectFromString(title, 0.0f, 0.0f, titleCharacterSize).size;
1390 [self setGLColorFromSetting:kGuiScreenTitleColor defaultValue:[OOColor redColor] alpha:alpha];
1391
1392 OODrawString(title, x + pixel_row_center - strsize.width / 2.0, y + size_in_pixels.height - pixel_title_size.height, z, titleCharacterSize);
1393
1394 // draw a horizontal divider
1395 //
1396 [self setGLColorFromSetting:kGuiScreenDividerColor defaultValue:[OOColor colorWithWhite:0.75 alpha:1.0] alpha:alpha];
1397
1398 OOGLBEGIN(GL_QUADS);
1399 glVertex3f(x + 0, y + size_in_pixels.height - pixel_title_size.height + 4, z);
1400 glVertex3f(x + size_in_pixels.width, y + size_in_pixels.height - pixel_title_size.height + 4, z);
1401 glVertex3f(x + size_in_pixels.width, y + size_in_pixels.height - pixel_title_size.height + 2, z);
1402 glVertex3f(x + 0, y + size_in_pixels.height - pixel_title_size.height + 2, z);
1403 OOGLEND();
1404 }
1405
1406 // draw each row of text
1407 //
1409 for (i = 0; i < n_rows; i++) {
1410 OOColor* row_color = (OOColor*)[rowColor objectAtIndex:i];
1411 glColor4f([row_color redComponent], [row_color greenComponent], [row_color blueComponent], row_alpha[i]);
1412
1413 if ([[rowText objectAtIndex:i] isKindOfClass:[NSString class]]) {
1414 NSString* text = (NSString*)[rowText objectAtIndex:i];
1415 if (![text isEqual:@""]) {
1416 strsize = OORectFromString(text, 0.0f, 0.0f, characterSize).size;
1417 switch (rowAlignment[i]) {
1418 case GUI_ALIGN_LEFT:
1419 rowPosition[i].x = 0.0f;
1420 break;
1421 case GUI_ALIGN_RIGHT:
1422 rowPosition[i].x = size_in_pixels.width - strsize.width;
1423 break;
1424 case GUI_ALIGN_CENTER:
1425 rowPosition[i].x = (size_in_pixels.width - strsize.width) / 2.0f;
1426 break;
1427 }
1428 if (i == (unsigned)selectedRow) {
1429 NSRect block = OORectFromString(text, x + rowPosition[i].x + 2, y + rowPosition[i].y + 2, characterSize);
1431 [self setGLColorFromSetting:kGuiSelectedRowBackgroundColor defaultValue:[OOColor redColor] alpha:alpha];
1432 OOGLBEGIN(GL_QUADS);
1433 glVertex3f(block.origin.x, block.origin.y, z);
1434 glVertex3f(block.origin.x + block.size.width, block.origin.y, z);
1435 glVertex3f(block.origin.x + block.size.width, block.origin.y + block.size.height, z);
1436 glVertex3f(block.origin.x, block.origin.y + block.size.height, z);
1437 OOGLEND();
1438 [self setGLColorFromSetting:kGuiSelectedRowColor defaultValue:[OOColor blackColor] alpha:alpha];
1440 }
1441 OODrawStringQuadsAligned(text, x + rowPosition[i].x, y + rowPosition[i].y, z, characterSize, NO);
1442
1443 // draw cursor at end of current Row
1444 //
1445 if ((showTextCursor) && (i == (unsigned)currentRow)) {
1446 NSRect tr = OORectFromString(text, 0.0f, 0.0f, characterSize);
1447 NSPoint cu = NSMakePoint(x + rowPosition[i].x + tr.size.width + 0.2f * characterSize.width, y + rowPosition[i].y);
1448 tr.origin = cu;
1449 tr.size.width = 0.5f * characterSize.width;
1450 GLfloat g_alpha = 0.5f * (1.0f + (float)sin(6 * [UNIVERSE getTime]));
1452 [self setGLColorFromSetting:kGuiTextInputCursorColor defaultValue:[OOColor redColor] alpha:row_alpha[i] * g_alpha];
1453 OOGLBEGIN(GL_QUADS);
1454 glVertex3f(tr.origin.x, tr.origin.y, z);
1455 glVertex3f(tr.origin.x + tr.size.width, tr.origin.y, z);
1456 glVertex3f(tr.origin.x + tr.size.width, tr.origin.y + tr.size.height, z);
1457 glVertex3f(tr.origin.x, tr.origin.y + tr.size.height, z);
1458 OOGLEND();
1460 }
1461 }
1462 }
1463 if ([[rowText objectAtIndex:i] isKindOfClass:[NSArray class]]) {
1464 NSArray* array = [rowText oo_arrayAtIndex:i];
1465 NSUInteger j, max_columns = MIN([array count], n_columns);
1466 BOOL isLeftAligned;
1467
1468 for (j = 0; j < max_columns; j++) {
1469 NSString* text = [array oo_stringAtIndex:j];
1470 if ([text length] != 0) {
1471 isLeftAligned = tabStops[j] >= 0;
1472 rowPosition[i].x = llabs(tabStops[j]);
1473
1474 // we don't want to highlight leading space(s) or narrow spaces (\037s)
1475 NSString* hilitedText = [text stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@" \037"]];
1476 NSRange txtRange = [text rangeOfString:hilitedText];
1477 unsigned leadingSpaces = 0;
1478
1479 if (EXPECT_NOT(txtRange.location == NSNotFound)) {
1480 // This never happens!
1481 hilitedText = text;
1482 } else if (txtRange.location > 0) {
1483 // padded string!
1484 NSRange padRange;
1485 padRange.location = 0;
1486 padRange.length = txtRange.location;
1487 NSRect charBlock = OORectFromString([text substringWithRange:padRange], 0, 0, characterSize);
1488 leadingSpaces = (unsigned)charBlock.size.width;
1489
1490 /* // if we're displaying commodity-quantity-none, let's try and be pixel perfect!
1491 NSString *qtyNone = DESC(@"commodity-quantity-none");
1492 txtRange = [hilitedText rangeOfString:qtyNone];
1493
1494 if (txtRange.location == 0) // bingo!
1495 {
1496 rowPosition[i].x += OORectFromString(@"0", 0, 0, characterSize).size.width - OORectFromString(qtyNone, 0, 0, characterSize).size.width;
1497 } */
1498 }
1499
1500 // baseline text rect, needed for correct highlight positioning.
1501 NSRect block = OORectFromString(text, x + rowPosition[i].x + 2, y + rowPosition[i].y + 2, characterSize);
1502
1503 if (!isLeftAligned) {
1504 rowPosition[i].x -= block.size.width + 3;
1505 }
1506 block = OORectFromString(hilitedText, x + rowPosition[i].x + 1 + leadingSpaces, y + rowPosition[i].y + 2, characterSize);
1507 block.size.width += 3;
1508
1509 if (i == (unsigned)selectedRow) {
1511 [self setGLColorFromSetting:kGuiSelectedRowBackgroundColor defaultValue:[OOColor redColor] alpha:alpha];
1512 OOGLBEGIN(GL_QUADS);
1513 glVertex3f(block.origin.x, block.origin.y, z);
1514 glVertex3f(block.origin.x + block.size.width, block.origin.y, z);
1515 glVertex3f(block.origin.x + block.size.width, block.origin.y + block.size.height, z);
1516 glVertex3f(block.origin.x, block.origin.y + block.size.height, z);
1517 OOGLEND();
1518 [self setGLColorFromSetting:kGuiSelectedRowColor defaultValue:[OOColor blackColor] alpha:alpha];
1520 }
1521 OODrawStringQuadsAligned(text, x + rowPosition[i].x, y + rowPosition[i].y, z, characterSize, NO);
1522 }
1523 }
1524 }
1525 }
1528}
@ GUI_ALIGN_RIGHT
@ GUI_ALIGN_LEFT
@ GUI_ALIGN_CENTER
OOINLINE BOOL RowInRange(OOGUIRow row, NSRange range)
void OODrawStringQuadsAligned(NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz, BOOL rightAlign)
void OOStartDrawingStrings(void)
NSRect OORectFromString(NSString *text, GLfloat x, GLfloat y, NSSize siz)
void OOStopDrawingStrings(void)
#define EXPECT_NOT(x)
#define MIN(A, B)
Definition OOMaths.h:91
double OOTimeDelta
Definition OOTypes.h:193
OOColor * redColor()
Definition OOColor.m:259
OOColor * blackColor()
Definition OOColor.m:234
void applyNone()
Definition OOTexture.m:263

References OOTexture::applyNone, OOColor::blackColor, OOColor::colorWithWhite:alpha:, count, EXPECT_NOT, GUI_ALIGN_CENTER, GUI_ALIGN_LEFT, GUI_ALIGN_RIGHT, MIN, nil, OODrawString(), OODrawStringQuadsAligned(), OOGL, OOGLBEGIN, OOGLEND, OORectFromString(), OOStartDrawingStrings(), OOStopDrawingStrings(), PLAYER, OOColor::redColor, RowInRange(), GuiDisplayGen::setGLColorFromSetting:defaultValue:alpha:, UNIVERSE, x, and y.

Referenced by GuiDisplayGen::drawGUI:drawCursor:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawStarChart:y:z:alpha:compact:

- (void) drawStarChart: (GLfloat) x
y: (GLfloat) y
z: (GLfloat) z
alpha: (GLfloat) alpha
compact: (BOOL) compact 

Extends class GuiDisplayGen.

Definition at line 1563 of file GuiDisplayGen.m.

1563 :(GLfloat)x y:(GLfloat)y z:(GLfloat)z alpha:(GLfloat)alpha compact:(BOOL)compact
1564{
1565 PlayerEntity* player = PLAYER;
1566
1567 if (!player)
1568 return;
1569
1570 OOSystemDescriptionManager* systemManager = [UNIVERSE systemManager];
1571
1572 OOScalar zoom = [player chart_zoom];
1573 NSPoint chart_centre_coordinates = [player adjusted_chart_centre];
1574 NSPoint galaxy_coordinates = [player galaxy_coordinates];
1575 NSPoint cursor_coordinates = [player cursor_coordinates];
1576 NSPoint info_system_coordinates = [[UNIVERSE systemManager] getCoordinatesForSystem:[player infoSystemID] inGalaxy:[player galaxyNumber]];
1577 OOLongRangeChartMode chart_mode = [player longRangeChartMode];
1578 OOGalaxyID galaxy_id = [player galaxyNumber];
1579 GLfloat r = 1.0, g = 1.0, b = 1.0;
1580 BOOL noNova;
1581 NSPoint cu;
1582 NSUInteger systemParameter;
1583
1584 double fuel = 35.0 * [player dialFuel];
1585
1586 double hcenter = size_in_pixels.width / 2.0;
1587 double hscale = size_in_pixels.width / (CHART_WIDTH_AT_MAX_ZOOM * zoom);
1588 double vscale = -size_in_pixels.height / (2 * CHART_HEIGHT_AT_MAX_ZOOM * zoom);
1589 double vcenter = CHART_SCREEN_VERTICAL_CENTRE;
1590 double hoffset = hcenter - chart_centre_coordinates.x * hscale;
1591 double voffset = size_in_pixels.height - vcenter - chart_centre_coordinates.y * vscale;
1592
1593 if (compact) {
1594 hscale = size_in_pixels.width / 256.0;
1595 vscale = -1.0 * size_in_pixels.height / 512.0;
1596 hoffset = 0.0f;
1597 voffset = size_in_pixels.height - pixel_title_size.height - 5;
1599 chart_centre_coordinates.x = 128.0;
1600 chart_centre_coordinates.y = 128.0;
1601 zoom = CHART_MAX_ZOOM;
1602 }
1603
1604 int i;
1605 double d, distance = 0.0, time = 0.0;
1606 int jumps = 0;
1607 NSPoint star;
1608 OOScalar pixelRatio;
1609 NSRect clipRect;
1610
1611 OORouteType advancedNavArrayMode = [player ANAMode];
1612 BOOL routeExists = NO;
1613
1614 NSInteger concealment[256];
1615 for (i = 0; i < 256; i++) {
1616 NSDictionary* systemInfo = [systemManager getPropertiesForSystem:i inGalaxy:galaxy_id];
1617 concealment[i] = [systemInfo oo_intForKey:@"concealment" defaultValue:OO_SYSTEMCONCEALMENT_NONE];
1618 }
1619
1620 BOOL* systemsFound = [UNIVERSE systemsFound];
1621 NSSize viewSize = [[UNIVERSE gameView] backingViewSize];
1622 double aspect_ratio = viewSize.width / viewSize.height;
1623
1624 // default colours - match those in HeadUpDisplay:OODrawPlanetInfo
1625 GLfloat govcol[] = { 0.5, 0.0, 0.7,
1626 0.7, 0.5, 0.3,
1627 0.0, 1.0, 0.3,
1628 1.0, 0.8, 0.1,
1629 1.0, 0.0, 0.0,
1630 0.1, 0.5, 1.0,
1631 0.7, 0.7, 0.7,
1632 0.7, 1.0, 1.0 };
1633
1634 if (aspect_ratio > 4.0 / 3.0) {
1635 pixelRatio = viewSize.height / 480.0;
1636 } else {
1637 pixelRatio = viewSize.width / 640.0;
1638 }
1639
1640 NSInteger textRow = compact ? GUI_ROW_CHART_SYSTEM_COMPACT : GUI_ROW_CHART_SYSTEM;
1641
1642 clipRect = NSMakeRect((viewSize.width - size_in_pixels.width * pixelRatio) / 2.0,
1643 (viewSize.height + size_in_pixels.height * pixelRatio) / 2.0 - (pixel_title_size.height + 15 + (textRow - 2) * MAIN_GUI_ROW_HEIGHT) * pixelRatio,
1644 size_in_pixels.width * pixelRatio,
1645 (textRow - 1) * MAIN_GUI_ROW_HEIGHT * pixelRatio);
1646
1647 OOSystemID target = [PLAYER targetSystemID];
1648 double dx, dy;
1649
1650 // get a list of systems marked as contract destinations
1651 NSDictionary* markedDestinations = [player markedDestinations];
1652
1653 // get present location
1654 cu = NSMakePoint((float)(hscale * galaxy_coordinates.x + hoffset), (float)(vscale * galaxy_coordinates.y + voffset));
1655
1656 // enable draw clipping; limit drawing area within the chart area
1657 OOGL(glEnable(GL_SCISSOR_TEST));
1658 OOGL(glScissor(clipRect.origin.x, clipRect.origin.y, clipRect.size.width, clipRect.size.height));
1659
1660 // Cache nearby systems so that [UNIVERSE generateSystemData:] does not get called on every frame
1661 // Caching code submitted by Y A J, 20091022
1662
1663 static OOGalaxyID saved_galaxy_id;
1664 static struct saved_system {
1665 OOSystemID sysid;
1666 int tec, eco, gov;
1667 NSString* p_name;
1668 BOOL nova;
1669 } nearby_systems[256];
1670 static int num_nearby_systems = 0;
1671
1672 if (_refreshStarChart || galaxy_id != saved_galaxy_id) {
1673 // saved systems are stale; recompute
1674 _refreshStarChart = NO;
1675 for (i = 0; i < num_nearby_systems; i++)
1676 [nearby_systems[i].p_name release];
1677
1678 num_nearby_systems = 0;
1679 for (i = 0; i < 256; i++) {
1680
1681 NSDictionary* sys_info = [UNIVERSE generateSystemData:i];
1682 if (EXPECT_NOT([sys_info oo_boolForKey:@"sun_gone_nova"])) {
1683 nearby_systems[num_nearby_systems].gov = -1; // Flag up nova systems!
1684 } else {
1685 nearby_systems[num_nearby_systems].tec = [sys_info oo_intForKey:KEY_TECHLEVEL];
1686 nearby_systems[num_nearby_systems].eco = [sys_info oo_intForKey:KEY_ECONOMY];
1687 nearby_systems[num_nearby_systems].gov = [sys_info oo_intForKey:KEY_GOVERNMENT];
1688 }
1689 nearby_systems[num_nearby_systems].sysid = i;
1690 nearby_systems[num_nearby_systems].p_name = [[sys_info oo_stringForKey:KEY_NAME] retain];
1691 nearby_systems[num_nearby_systems].nova = [[UNIVERSE generateSystemData:i] oo_boolForKey:@"sun_gone_nova"];
1692 num_nearby_systems++;
1693 }
1694 saved_galaxy_id = [player galaxyNumber];
1695 }
1696
1697 static OOSystemID savedPlanetNumber = 0;
1698 static OOSystemID savedDestNumber = 0;
1699 static OORouteType savedArrayMode = OPTIMIZED_BY_NONE;
1700 static NSDictionary* routeInfo = nil;
1701
1702 /* May override current mode for mission screens */
1703 if (backgroundSpecial == GUI_BACKGROUND_SPECIAL_LONG_ANA_SHORTEST || backgroundSpecial == GUI_BACKGROUND_SPECIAL_SHORT_ANA_SHORTEST || backgroundSpecial == GUI_BACKGROUND_SPECIAL_CUSTOM_ANA_SHORTEST) {
1704 advancedNavArrayMode = OPTIMIZED_BY_JUMPS;
1705 } else if (backgroundSpecial == GUI_BACKGROUND_SPECIAL_LONG_ANA_QUICKEST || backgroundSpecial == GUI_BACKGROUND_SPECIAL_SHORT_ANA_QUICKEST || backgroundSpecial == GUI_BACKGROUND_SPECIAL_CUSTOM_ANA_QUICKEST) {
1706 advancedNavArrayMode = OPTIMIZED_BY_TIME;
1707 }
1708
1709 if (advancedNavArrayMode != OPTIMIZED_BY_NONE && [player hasEquipmentItemProviding:@"EQ_ADVANCED_NAVIGATIONAL_ARRAY"]) {
1710 OOSystemID planetNumber = [PLAYER systemID];
1711 OOSystemID destNumber = [PLAYER targetSystemID];
1712 if (routeInfo == nil || planetNumber != savedPlanetNumber || destNumber != savedDestNumber || advancedNavArrayMode != savedArrayMode) {
1713 [routeInfo release];
1714 routeInfo = [[UNIVERSE routeFromSystem:planetNumber toSystem:destNumber optimizedBy:advancedNavArrayMode] retain];
1715 savedPlanetNumber = planetNumber;
1716 savedDestNumber = destNumber;
1717 savedArrayMode = advancedNavArrayMode;
1718 }
1719 target = destNumber;
1720
1721 // if the ANA has been activated and we are in string input mode (i.e. planet search),
1722 // get out of it so that distance and time data can be displayed
1723 // if ([[[UNIVERSE gameView] typedString] length] > 0) [player clearPlanetSearchString];
1724
1725 if (routeInfo)
1726 routeExists = YES;
1727
1728 [self drawAdvancedNavArrayAtX:x + hoffset y:y + voffset z:z alpha:alpha usingRoute:(planetNumber != destNumber ? (id)routeInfo : nil) optimizedBy:advancedNavArrayMode zoom:zoom];
1729
1730 if (routeExists) {
1731 distance = [routeInfo oo_doubleForKey:@"distance"];
1732 time = [routeInfo oo_doubleForKey:@"time"];
1733 jumps = [routeInfo oo_intForKey:@"jumps"];
1734
1735 if (distance == 0.0 && planetNumber != destNumber) {
1736 // zero-distance double fix
1737 distance = 0.1;
1738 time = 0.01;
1739 }
1740 }
1741 } else {
1742 [self drawAdvancedNavArrayAtX:x + hoffset y:y + voffset z:z alpha:alpha usingRoute:nil optimizedBy:OPTIMIZED_BY_NONE zoom:zoom];
1743 }
1744 if (!routeExists) {
1745 NSPoint targetCoordinates = [systemManager getCoordinatesForSystem:target inGalaxy:galaxy_id];
1746
1747 distance = distanceBetweenPlanetPositions(targetCoordinates.x, targetCoordinates.y, galaxy_coordinates.x, galaxy_coordinates.y);
1748 if (distance == 0.0) {
1749 if (target != [PLAYER systemID]) {
1750 // looking at the other half of a zero-distance double
1751 // distance is treated as 0.1 LY
1752 distance = 0.1;
1753 }
1754 }
1755 if ([player hasHyperspaceMotor] && distance <= [player fuel] / 10.0) {
1756 time = distance * distance;
1757 } else {
1758 time = 0.0;
1759 }
1760 }
1761
1762 if ([player hasHyperspaceMotor]) {
1763 // draw fuel range circle
1764 OOGL(GLScaledLineWidth(2.0f));
1765 [self setGLColorFromSetting:kGuiChartRangeColor defaultValue:[OOColor greenColor] alpha:alpha];
1766
1767 GLDrawOval(x + cu.x, y + cu.y, z, NSMakeSize((float)(fuel * hscale), 2 * (float)(fuel * vscale)), 5);
1768 }
1769
1770 // draw crosshairs over current location
1771 //
1772 [self setGLColorFromSetting:kGuiChartCrosshairColor defaultValue:[OOColor greenColor] alpha:alpha];
1773
1774 [self drawCrossHairsWithSize:12 / zoom + 2 x:x + cu.x y:y + cu.y z:z];
1775
1776 // draw crosshairs over cursor
1777 //
1778 [self setGLColorFromSetting:kGuiChartCursorColor defaultValue:[OOColor redColor] alpha:alpha];
1779 cu = NSMakePoint((float)(hscale * cursor_coordinates.x + hoffset), (float)(vscale * cursor_coordinates.y + voffset));
1780 [self drawCrossHairsWithSize:7 / zoom + 2 x:x + cu.x y:y + cu.y z:z];
1781
1782 // draw marks and stars
1783 //
1784 OOGL(GLScaledLineWidth(1.5f));
1785 OOGL(glColor4f(1.0f, 1.0f, 0.75f, alpha)); // pale yellow
1786
1787 for (i = 0; i < num_nearby_systems; i++) {
1788 NSPoint sys_coordinates = [systemManager getCoordinatesForSystem:i inGalaxy:galaxy_id];
1789
1790 dx = fabs(chart_centre_coordinates.x - sys_coordinates.x);
1791 dy = fabs(chart_centre_coordinates.y - sys_coordinates.y);
1792
1793 if ((dx > zoom * (CHART_WIDTH_AT_MAX_ZOOM / 2.0 + CHART_CLIP_BORDER)) || (dy > zoom * (CHART_HEIGHT_AT_MAX_ZOOM + CHART_CLIP_BORDER)))
1794 continue;
1795
1796 if (concealment[i] >= OO_SYSTEMCONCEALMENT_NOTHING) {
1797 // system is not known
1798 continue;
1799 }
1800
1801 NSDictionary* systemInfo = [systemManager getPropertiesForSystem:i inGalaxy:galaxy_id];
1802 float blob_factor = [guiUserSettings oo_floatForKey:kGuiChartCircleScale defaultValue:0.0017];
1803 float blob_size = (1.0f + blob_factor * [systemInfo oo_floatForKey:@"radius"]) / zoom;
1804 if (blob_size < 0.5)
1805 blob_size = 0.5;
1806
1807 star.x = (float)(sys_coordinates.x * hscale + hoffset);
1808 star.y = (float)(sys_coordinates.y * vscale + voffset);
1809
1810 noNova = !nearby_systems[i].nova;
1811 NSAssert1(chart_mode <= OOLRC_MODE_TECHLEVEL, @"Long range chart mode %i out of range", (int)chart_mode);
1812
1813 NSArray* markers = [markedDestinations objectForKey:[NSNumber numberWithInt:i]];
1814 if (markers != nil) // is marked
1815 {
1816 GLfloat base_size = 0.5f * blob_size + 2.5f;
1817 [self drawSystemMarkers:markers atX:x + star.x andY:y + star.y andZ:z withAlpha:alpha andScale:base_size];
1818 }
1819
1820 if (concealment[i] >= OO_SYSTEMCONCEALMENT_NODATA) {
1821 // no system data available
1822 r = g = b = 0.7;
1823 OOGL(glColor4f(r, g, b, alpha));
1824 } else {
1825 switch (chart_mode) {
1826 case OOLRC_MODE_ECONOMY:
1827 if (EXPECT(noNova)) {
1828 systemParameter = nearby_systems[i].eco;
1829 GLfloat ce1 = 1.0f - 0.125f * systemParameter;
1830 [self setGLColorFromSetting:[NSString stringWithFormat:kGuiChartEconomyUColor, systemParameter]
1831 defaultValue:[OOColor colorWithRed:ce1 green:1.0f blue:0.0f alpha:1.0f]
1832 alpha:1.0];
1833 } else {
1834 r = g = b = 0.3;
1835 OOGL(glColor4f(r, g, b, alpha));
1836 }
1837 break;
1838 case OOLRC_MODE_GOVERNMENT:
1839 if (EXPECT(noNova)) {
1840 systemParameter = nearby_systems[i].gov;
1841 [self setGLColorFromSetting:[NSString stringWithFormat:kGuiChartGovernmentUColor, systemParameter]
1842 defaultValue:[OOColor colorWithRed:govcol[systemParameter * 3] green:govcol[1 + (systemParameter * 3)] blue:govcol[2 + (systemParameter * 3)] alpha:1.0f]
1843 alpha:1.0];
1844 } else {
1845 r = g = b = 0.3;
1846 OOGL(glColor4f(r, g, b, alpha));
1847 }
1848 break;
1849 case OOLRC_MODE_TECHLEVEL:
1850 if (EXPECT(noNova)) {
1851 systemParameter = nearby_systems[i].tec;
1852 r = 0.6;
1853 g = b = 0.20 + (0.05 * (GLfloat)systemParameter);
1854 } else {
1855 r = g = b = 0.3;
1856 }
1857 OOGL(glColor4f(r, g, b, alpha));
1858 break;
1859 case OOLRC_MODE_UNKNOWN:
1860 case OOLRC_MODE_SUNCOLOR:
1861 if (EXPECT(noNova)) {
1862 r = g = b = 1.0;
1863 OOColor* sunColor = [OOColor colorWithDescription:[[UNIVERSE systemManager] getProperty:@"sun_color" forSystem:i inGalaxy:galaxy_id]];
1864 if (sunColor != nil) {
1865 [sunColor getRed:&r green:&g blue:&b alpha:&alpha];
1866 alpha = 1.0; // reset
1867 }
1868 } else {
1869 r = 1.0;
1870 g = 0.2;
1871 b = 0.0;
1872 }
1873 OOGL(glColor4f(r, g, b, alpha));
1874 break;
1875 }
1876 }
1877
1878 GLDrawFilledOval(x + star.x, y + star.y, z, NSMakeSize(blob_size, blob_size), 15);
1879 }
1880
1881 // draw found stars and captions
1882 //
1883 GLfloat systemNameScale = [guiUserSettings oo_floatForKey:kGuiChartLabelScale defaultValue:1.0];
1884
1885 OOGL(GLScaledLineWidth(1.5f));
1886 [self setGLColorFromSetting:kGuiChartMatchBoxColor defaultValue:[OOColor greenColor] alpha:alpha];
1887
1888 int n_matches = 0, foundIndex = -1;
1889
1890 for (i = 0; i < 256; i++)
1891 if (systemsFound[i]) {
1892 if (foundSystem == n_matches)
1893 foundIndex = i;
1894 n_matches++;
1895 }
1896
1897 if (n_matches == 0) {
1898 foundSystem = 0;
1899 } else if (backgroundSpecial == GUI_BACKGROUND_SPECIAL_LONG_ANA_SHORTEST || backgroundSpecial == GUI_BACKGROUND_SPECIAL_LONG_ANA_QUICKEST || backgroundSpecial == GUI_BACKGROUND_SPECIAL_LONG) {
1900 // do nothing at this stage
1901 } else {
1902 for (i = 0; i < 256; i++) {
1903 if (concealment[i] >= OO_SYSTEMCONCEALMENT_NONAME) {
1904 continue;
1905 }
1906
1907 BOOL mark = systemsFound[i];
1908 float marker_size = 8.0 / zoom;
1909 NSPoint sys_coordinates = [systemManager getCoordinatesForSystem:i inGalaxy:galaxy_id];
1910
1911 dx = fabs(chart_centre_coordinates.x - sys_coordinates.x);
1912 dy = fabs(chart_centre_coordinates.y - sys_coordinates.y);
1913
1914 if (mark && (dx <= zoom * (CHART_WIDTH_AT_MAX_ZOOM / 2.0 + CHART_CLIP_BORDER)) && (dy <= zoom * (CHART_HEIGHT_AT_MAX_ZOOM + CHART_CLIP_BORDER))) {
1915 star.x = (float)(sys_coordinates.x * hscale + hoffset);
1916 star.y = (float)(sys_coordinates.y * vscale + voffset);
1917 OOGLBEGIN(GL_LINE_LOOP);
1918 glVertex3f(x + star.x - marker_size, y + star.y - marker_size, z);
1919 glVertex3f(x + star.x + marker_size, y + star.y - marker_size, z);
1920 glVertex3f(x + star.x + marker_size, y + star.y + marker_size, z);
1921 glVertex3f(x + star.x - marker_size, y + star.y + marker_size, z);
1922 OOGLEND();
1923 if (i == foundIndex || n_matches == 1) {
1924 if (n_matches == 1)
1925 foundSystem = 0;
1926 if (zoom > CHART_ZOOM_SHOW_LABELS && advancedNavArrayMode == OPTIMIZED_BY_NONE) {
1927 [self setGLColorFromSetting:kGuiChartMatchLabelColor defaultValue:[OOColor cyanColor] alpha:alpha];
1928 OODrawString([UNIVERSE systemNameIndex:i], x + star.x + 2.0, y + star.y - 10.0f, z, NSMakeSize(10 * systemNameScale, 10 * systemNameScale));
1929 [self setGLColorFromSetting:kGuiChartMatchBoxColor defaultValue:[OOColor greenColor] alpha:alpha];
1930 }
1931 } else if (zoom > CHART_ZOOM_SHOW_LABELS) {
1932 OODrawString([UNIVERSE systemNameIndex:i], x + star.x + 2.0, y + star.y - 10.0f, z, NSMakeSize(10 * systemNameScale, 10 * systemNameScale));
1933 }
1934 }
1935 }
1936 }
1937
1938 // draw names
1939 //
1940 // OOGL(glColor4f(1.0f, 1.0f, 0.0f, alpha)); // yellow
1941
1942 int targetIdx = -1;
1943 struct saved_system* sys;
1944 NSSize chSize = NSMakeSize(pixel_row_height * systemNameScale / zoom, pixel_row_height * systemNameScale / zoom);
1945
1946 double jumpRange = MAX_JUMP_RANGE * [PLAYER dialFuel];
1947 for (i = 0; i < num_nearby_systems; i++) {
1948 if (concealment[i] >= OO_SYSTEMCONCEALMENT_NONAME) {
1949 continue;
1950 }
1951
1952 sys = nearby_systems + i;
1953 NSPoint sys_coordinates = [systemManager getCoordinatesForSystem:sys->sysid inGalaxy:galaxy_id];
1954
1955 dx = fabs(chart_centre_coordinates.x - sys_coordinates.x);
1956 dy = fabs(chart_centre_coordinates.y - sys_coordinates.y);
1957
1958 if ((dx > zoom * (CHART_WIDTH_AT_MAX_ZOOM / 2.0 + CHART_CLIP_BORDER)) || (dy > zoom * (CHART_HEIGHT_AT_MAX_ZOOM + CHART_CLIP_BORDER)))
1959 continue;
1960 star.x = (float)(sys_coordinates.x * hscale + hoffset);
1961 star.y = (float)(sys_coordinates.y * vscale + voffset);
1962 if (sys->sysid == target) // not overlapping twin? (example: Divees & Tezabi in galaxy 5)
1963 {
1964 targetIdx = i; // we have a winner!
1965 }
1966
1967 if (zoom < CHART_ZOOM_SHOW_LABELS) {
1968 if (![player showInfoFlag]) // System's name
1969 {
1970
1971 d = distanceBetweenPlanetPositions(galaxy_coordinates.x, galaxy_coordinates.y, sys_coordinates.x, sys_coordinates.y);
1972 if (d <= jumpRange) {
1973 [self setGLColorFromSetting:kGuiChartLabelReachableColor defaultValue:[OOColor yellowColor] alpha:alpha];
1974 } else {
1975 [self setGLColorFromSetting:kGuiChartLabelColor defaultValue:[OOColor yellowColor] alpha:alpha];
1976 }
1977
1978 OODrawString(sys->p_name, x + star.x + 2.0, y + star.y, z, chSize);
1979 } else if (EXPECT(sys->gov >= 0)) // Not a nova? Show the info.
1980 {
1981 if (concealment[i] >= OO_SYSTEMCONCEALMENT_NODATA) {
1982 [self setGLColorFromSetting:kGuiChartLabelColor defaultValue:[OOColor yellowColor] alpha:alpha];
1983 OODrawHilightedString(@"???", x + star.x + 2.0, y + star.y, z, chSize);
1984 } else {
1985 OODrawPlanetInfo(sys->gov, sys->eco, sys->tec, x + star.x + 2.0, y + star.y + 2.0, z, chSize);
1986 }
1987 }
1988 }
1989 }
1990
1991 // highlight the name of the currently selected system
1992 // (needed to get things right in closely-overlapping systems)
1993 if (targetIdx != -1 && zoom <= CHART_ZOOM_SHOW_LABELS) {
1994 if (concealment[targetIdx] < OO_SYSTEMCONCEALMENT_NONAME) {
1995 sys = nearby_systems + targetIdx;
1996 NSPoint sys_coordinates = [systemManager getCoordinatesForSystem:sys->sysid inGalaxy:galaxy_id];
1997
1998 star.x = (float)(sys_coordinates.x * hscale + hoffset);
1999 star.y = (float)(sys_coordinates.y * vscale + voffset);
2000
2001 if (![player showInfoFlag]) {
2002 d = distanceBetweenPlanetPositions(galaxy_coordinates.x, galaxy_coordinates.y, sys_coordinates.x, sys_coordinates.y);
2003 if (d <= jumpRange) {
2004 [self setGLColorFromSetting:kGuiChartLabelReachableColor defaultValue:[OOColor yellowColor] alpha:alpha];
2005 } else {
2006 [self setGLColorFromSetting:kGuiChartLabelColor defaultValue:[OOColor yellowColor] alpha:alpha];
2007 }
2008
2009 OODrawHilightedString(sys->p_name, x + star.x + 2.0, y + star.y, z, chSize);
2010 } else if (sys->gov >= 0) // Not a nova? Show the info.
2011 {
2012 if (concealment[targetIdx] >= OO_SYSTEMCONCEALMENT_NODATA) {
2013 [self setGLColorFromSetting:kGuiChartLabelColor defaultValue:[OOColor yellowColor] alpha:alpha];
2014 OODrawHilightedString(@"???", x + star.x + 2.0, y + star.y, z, chSize);
2015 } else {
2016 OODrawHilightedPlanetInfo(sys->gov, sys->eco, sys->tec, x + star.x + 2.0, y + star.y + 2.0, z, chSize);
2017 }
2018 }
2019 }
2020 }
2021
2022 OOGUITabSettings tab_stops;
2023 tab_stops[0] = 0;
2024 tab_stops[1] = 96;
2025 tab_stops[2] = 288;
2026 [self overrideTabs:tab_stops from:kGuiChartTraveltimeTabs length:3];
2027 [self setTabStops:tab_stops];
2028 NSString* targetName = [[UNIVERSE getSystemName:target] retain];
2029
2030 // distance-f & est-travel-time-f are identical between short & long range charts in standard Oolite, however can be alterered separately via OXPs
2031 NSString* travelDistLine = @"";
2032 if (distance > 0) {
2033 travelDistLine = OOExpandKey(@"long-range-chart-distance", distance);
2034 }
2035 NSString* travelTimeLine = @"";
2036 if (time > 0) {
2037 travelTimeLine = OOExpandKey(@"long-range-chart-est-travel-time", time);
2038 }
2039
2040 if (concealment[target] < OO_SYSTEMCONCEALMENT_NONAME) {
2041 [self setArray:[NSArray arrayWithObjects:targetName, travelDistLine, travelTimeLine, nil] forRow:textRow];
2042 } else {
2043 [self setArray:[NSArray arrayWithObjects:@"", travelDistLine, travelTimeLine, nil] forRow:textRow];
2044 }
2045 if ([PLAYER guiScreen] == GUI_SCREEN_SHORT_RANGE_CHART) {
2046 if (jumps > 0) {
2047 [self setArray:[NSArray arrayWithObjects:@"", OOExpandKey(@"short-range-chart-jumps", jumps), nil] forRow:textRow + 1];
2048 } else {
2049 [self setArray:[NSArray array] forRow:textRow + 1];
2050 }
2051 }
2052 [targetName release];
2053
2054 // draw planet info circle
2055 OOGL(GLScaledLineWidth(2.0f));
2056 [self setGLColorFromSetting:kGuiChartInfoMarkerColor defaultValue:[OOColor blueColor] alpha:alpha];
2057 cu = NSMakePoint((float)(hscale * info_system_coordinates.x + hoffset), (float)(vscale * info_system_coordinates.y + voffset));
2058 GLDrawOval(x + cu.x, y + cu.y, z, NSMakeSize(6.0f / zoom + 2.0f, 6.0f / zoom + 2.0f), 5);
2059
2060 // disable draw clipping
2061 OOGL(glDisable(GL_SCISSOR_TEST));
2062
2063 // Draw bottom divider
2064 [self setGLColorFromSetting:kGuiScreenDividerColor defaultValue:[OOColor colorWithWhite:0.75 alpha:1.0] alpha:alpha];
2065 OOGLBEGIN(GL_QUADS);
2066 glVertex3f(x + 0, (float)(y + size_in_pixels.height - (textRow - 1) * MAIN_GUI_ROW_HEIGHT - pixel_title_size.height), z);
2067 glVertex3f(x + size_in_pixels.width, (GLfloat)(y + size_in_pixels.height - (textRow - 1) * MAIN_GUI_ROW_HEIGHT - pixel_title_size.height), z);
2068 glVertex3f(x + size_in_pixels.width, (GLfloat)(y + size_in_pixels.height - (textRow - 1) * MAIN_GUI_ROW_HEIGHT - pixel_title_size.height - 2), z);
2069 glVertex3f(x + 0, (GLfloat)(y + size_in_pixels.height - (textRow - 1) * MAIN_GUI_ROW_HEIGHT - pixel_title_size.height - 2), z);
2070 OOGLEND();
2071}
@ GUI_BACKGROUND_SPECIAL_CUSTOM_ANA_QUICKEST
@ GUI_BACKGROUND_SPECIAL_SHORT_ANA_SHORTEST
@ GUI_BACKGROUND_SPECIAL_LONG
@ GUI_BACKGROUND_SPECIAL_LONG_ANA_SHORTEST
@ GUI_BACKGROUND_SPECIAL_SHORT_ANA_QUICKEST
@ GUI_BACKGROUND_SPECIAL_LONG_ANA_QUICKEST
@ GUI_BACKGROUND_SPECIAL_CUSTOM_ANA_SHORTEST
OOGUITabStop OOGUITabSettings[GUI_MAX_COLUMNS]
#define MAIN_GUI_ROW_HEIGHT
static BOOL _refreshStarChart
void OODrawHilightedString(NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz)
void OODrawHilightedPlanetInfo(int gov, int eco, int tec, GLfloat x, GLfloat y, GLfloat z, NSSize siz)
void OODrawPlanetInfo(int gov, int eco, int tec, GLfloat x, GLfloat y, GLfloat z, NSSize siz)
#define EXPECT(x)
void GLDrawFilledOval(GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat step)
Definition OOOpenGL.m:158
void GLScaledLineWidth(GLfloat width)
Definition OOOpenGL.m:206
void GLDrawOval(GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat step)
Definition OOOpenGL.m:149
#define OOExpandKey(key,...)
@ OO_SYSTEMCONCEALMENT_NODATA
OOLongRangeChartMode
Definition OOTypes.h:45
@ OPTIMIZED_BY_TIME
Definition OOTypes.h:34
OOINLINE OOScalar distance(Vector v1, Vector v2) INLINE_CONST_FUNC
Definition OOVector.h:280
#define CHART_SCREEN_VERTICAL_CENTRE
#define CHART_SCREEN_VERTICAL_CENTRE_COMPACT
#define CHART_MAX_ZOOM
@ GUI_ROW_CHART_SYSTEM_COMPACT
@ GUI_ROW_CHART_SYSTEM
#define CHART_CLIP_BORDER
OOColor * colorWithRed:green:blue:alpha:(float red,[green] float green,[blue] float blue,[alpha] float alpha)
Definition OOColor.m:107
OOColor * blueColor()
Definition OOColor.m:269
OOLongRangeChartMode longRangeChartMode
OOGalaxyID galaxyNumber()
OORouteType ANAMode()
NSPoint galaxy_coordinates
NSPoint cursor_coordinates
OOScalar chart_zoom
OOSystemID infoSystemID()
NSPoint adjusted_chart_centre()
NSDictionary * markedDestinations()
GLfloat dialFuel()

References _refreshStarChart, PlayerEntity::adjusted_chart_centre, PlayerEntity::ANAMode, OOColor::blueColor, CHART_CLIP_BORDER, CHART_HEIGHT_AT_MAX_ZOOM, CHART_MAX_ZOOM, CHART_SCREEN_VERTICAL_CENTRE, CHART_SCREEN_VERTICAL_CENTRE_COMPACT, CHART_WIDTH_AT_MAX_ZOOM, PlayerEntity::chart_zoom, CHART_ZOOM_SHOW_LABELS, OOColor::colorWithDescription:, OOColor::colorWithRed:green:blue:alpha:, OOColor::colorWithWhite:alpha:, PlayerEntity::cursor_coordinates, OOColor::cyanColor, PlayerEntity::dialFuel, distance(), distanceBetweenPlanetPositions(), GuiDisplayGen::drawAdvancedNavArrayAtX:y:z:alpha:usingRoute:optimizedBy:zoom:, GuiDisplayGen::drawCrossHairsWithSize:x:y:z:, GuiDisplayGen::drawSystemMarkers:atX:andY:andZ:withAlpha:andScale:, EXPECT, EXPECT_NOT, PlayerEntity::galaxy_coordinates, PlayerEntity::galaxyNumber, OOSystemDescriptionManager::getCoordinatesForSystem:inGalaxy:, OOSystemDescriptionManager::getPropertiesForSystem:inGalaxy:, OOColor::getRed:green:blue:alpha:, GLDrawFilledOval(), GLDrawOval(), GLScaledLineWidth(), OOColor::greenColor, GUI_BACKGROUND_SPECIAL_CUSTOM_ANA_QUICKEST, GUI_BACKGROUND_SPECIAL_CUSTOM_ANA_SHORTEST, GUI_BACKGROUND_SPECIAL_LONG, GUI_BACKGROUND_SPECIAL_LONG_ANA_QUICKEST, GUI_BACKGROUND_SPECIAL_LONG_ANA_SHORTEST, GUI_BACKGROUND_SPECIAL_SHORT_ANA_QUICKEST, GUI_BACKGROUND_SPECIAL_SHORT_ANA_SHORTEST, GUI_ROW_CHART_SYSTEM, GUI_ROW_CHART_SYSTEM_COMPACT, PlayerEntity::infoSystemID, PlayerEntity::longRangeChartMode, MAIN_GUI_ROW_HEIGHT, PlayerEntity::markedDestinations, MAX_JUMP_RANGE, nil, OO_SYSTEMCONCEALMENT_NODATA, OO_SYSTEMCONCEALMENT_NONAME, OO_SYSTEMCONCEALMENT_NOTHING, OODrawHilightedPlanetInfo(), OODrawHilightedString(), OODrawPlanetInfo(), OODrawString(), OOExpandKey, OOGL, OOGLBEGIN, OOGLEND, OPTIMIZED_BY_JUMPS, OPTIMIZED_BY_NONE, OPTIMIZED_BY_TIME, GuiDisplayGen::overrideTabs:from:length:, PLAYER, OOColor::redColor, GuiDisplayGen::setArray:forRow:, GuiDisplayGen::setGLColorFromSetting:defaultValue:alpha:, GuiDisplayGen::setTabStops:, UNIVERSE, x, y, and OOColor::yellowColor.

Referenced by GuiDisplayGen::drawGUI:drawCursor:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawSystemMarker:atX:andY:andZ:withAlpha:andScale:

- (void) drawSystemMarker: (NSDictionary *) marker
atX: (GLfloat) x
andY: (GLfloat) y
andZ: (GLfloat) z
withAlpha: (GLfloat) alpha
andScale: (GLfloat) scale 

Extends class GuiDisplayGen.

Definition at line 2081 of file GuiDisplayGen.m.

2081 :(NSDictionary*)marker atX:(GLfloat)x andY:(GLfloat)y andZ:(GLfloat)z withAlpha:(GLfloat)alpha andScale:(GLfloat)scale
2082{
2083 NSString* colorDesc = [marker oo_stringForKey:@"markerColor" defaultValue:@"redColor"];
2084 OORGBAComponents color = [[OOColor colorWithDescription:colorDesc] rgbaComponents];
2085
2086 OOGL(glColor4f(color.r, color.g, color.b, alpha)); // red
2087 GLfloat mark_size = [marker oo_floatForKey:@"markerScale" defaultValue:1.0];
2088 if (mark_size > 2.0) {
2089 mark_size = 2.0;
2090 } else if (mark_size < 0.5) {
2091 mark_size = 0.5;
2092 }
2093 mark_size *= scale;
2094
2095 NSString* shape = [marker oo_stringForKey:@"markerShape" defaultValue:@"MARKER_X"];
2096
2097 OOGLBEGIN(GL_LINES);
2098 if ([shape isEqualToString:@"MARKER_X"]) {
2099 glVertex3f(x - mark_size, y - mark_size, z);
2100 glVertex3f(x + mark_size, y + mark_size, z);
2101 glVertex3f(x - mark_size, y + mark_size, z);
2102 glVertex3f(x + mark_size, y - mark_size, z);
2103 } else if ([shape isEqualToString:@"MARKER_PLUS"]) {
2104 mark_size *= 1.4; // match volumes
2105 glVertex3f(x, y - mark_size, z);
2106 glVertex3f(x, y + mark_size, z);
2107 glVertex3f(x - mark_size, y, z);
2108 glVertex3f(x + mark_size, y, z);
2109 } else if ([shape isEqualToString:@"MARKER_SQUARE"]) {
2110 glVertex3f(x - mark_size, y - mark_size, z);
2111 glVertex3f(x - mark_size, y + mark_size, z);
2112 glVertex3f(x - mark_size, y + mark_size, z);
2113 glVertex3f(x + mark_size, y + mark_size, z);
2114 glVertex3f(x + mark_size, y + mark_size, z);
2115 glVertex3f(x + mark_size, y - mark_size, z);
2116 glVertex3f(x + mark_size, y - mark_size, z);
2117 glVertex3f(x - mark_size, y - mark_size, z);
2118 } else if ([shape isEqualToString:@"MARKER_DIAMOND"]) {
2119 mark_size *= 1.4; // match volumes
2120 glVertex3f(x, y - mark_size, z);
2121 glVertex3f(x - mark_size, y, z);
2122 glVertex3f(x - mark_size, y, z);
2123 glVertex3f(x, y + mark_size, z);
2124 glVertex3f(x, y + mark_size, z);
2125 glVertex3f(x + mark_size, y, z);
2126 glVertex3f(x + mark_size, y, z);
2127 glVertex3f(x, y - mark_size, z);
2128 }
2129 OOGLEND();
2130}
OORGBAComponents rgbaComponents()
Definition OOColor.m:354

References OOColor::colorWithDescription:, OOGL, OOGLBEGIN, OOGLEND, OOColor::rgbaComponents, x, and y.

Referenced by drawSystemMarkers:atX:andY:andZ:withAlpha:andScale:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawSystemMarkers:atX:andY:andZ:withAlpha:andScale:

- (void) drawSystemMarkers: (NSArray *) marker
atX: (GLfloat) x
andY: (GLfloat) y
andZ: (GLfloat) z
withAlpha: (GLfloat) alpha
andScale: (GLfloat) scale 

Extends class GuiDisplayGen.

Definition at line 2073 of file GuiDisplayGen.m.

2073 :(NSArray*)markers atX:(GLfloat)x andY:(GLfloat)y andZ:(GLfloat)z withAlpha:(GLfloat)alpha andScale:(GLfloat)scale
2074{
2075 NSDictionary* marker;
2076 foreach (marker, markers) {
2077 [self drawSystemMarker:marker atX:x andY:y andZ:z withAlpha:alpha andScale:scale];
2078 }
2079}

References GuiDisplayGen::drawSystemMarker:atX:andY:andZ:withAlpha:andScale:.

Referenced by drawStarChart:y:z:alpha:compact:.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this category was generated from the following file: