gui.cpp

changeset 18
a6732098fed8
parent 17
5606eebd0b90
child 19
6c5977e43e73
equal deleted inserted replaced
17:5606eebd0b90 18:a6732098fed8
361 case OBJ_Line: 361 case OBJ_Line:
362 case OBJ_CondLine: 362 case OBJ_CondLine:
363 { 363 {
364 LDLine* line = static_cast<LDLine*> (obj); 364 LDLine* line = static_cast<LDLine*> (obj);
365 zText.format ("%s, %s", 365 zText.format ("%s, %s",
366 line->vaCoords[0].getStringRep ().chars(), 366 line->vaCoords[0].getStringRep (true).chars(),
367 line->vaCoords[1].getStringRep ().chars()); 367 line->vaCoords[1].getStringRep (true).chars());
368 } 368 }
369 break; 369 break;
370 370
371 case OBJ_Triangle: 371 case OBJ_Triangle:
372 { 372 {
373 LDTriangle* triangle = static_cast<LDTriangle*> (obj); 373 LDTriangle* triangle = static_cast<LDTriangle*> (obj);
374 zText.format ("%s, %s, %s", 374 zText.format ("%s, %s, %s",
375 triangle->vaCoords[0].getStringRep ().chars(), 375 triangle->vaCoords[0].getStringRep (true).chars(),
376 triangle->vaCoords[1].getStringRep ().chars(), 376 triangle->vaCoords[1].getStringRep (true).chars(),
377 triangle->vaCoords[2].getStringRep ().chars()); 377 triangle->vaCoords[2].getStringRep (true).chars());
378 } 378 }
379 break; 379 break;
380 380
381 case OBJ_Quad: 381 case OBJ_Quad:
382 { 382 {
383 LDQuad* quad = static_cast<LDQuad*> (obj); 383 LDQuad* quad = static_cast<LDQuad*> (obj);
384 zText.format ("%s, %s, %s, %s", 384 zText.format ("%s, %s, %s, %s",
385 quad->vaCoords[0].getStringRep ().chars(), 385 quad->vaCoords[0].getStringRep (true).chars(),
386 quad->vaCoords[1].getStringRep ().chars(), 386 quad->vaCoords[1].getStringRep (true).chars(),
387 quad->vaCoords[2].getStringRep ().chars(), 387 quad->vaCoords[2].getStringRep (true).chars(),
388 quad->vaCoords[3].getStringRep ().chars()); 388 quad->vaCoords[3].getStringRep (true).chars());
389 } 389 }
390 break; 390 break;
391 391
392 case OBJ_Gibberish: 392 case OBJ_Gibberish:
393 zText.format ("ERROR: %s", 393 zText.format ("ERROR: %s",
394 static_cast<LDGibberish*> (obj)->zContents.chars()); 394 static_cast<LDGibberish*> (obj)->zContents.chars());
395 break; 395 break;
396 396
397 case OBJ_Vector: 397 case OBJ_Vector:
398 zText.format ("%s", static_cast<LDVector*> (obj)->vPos.getStringRep().chars()); 398 zText.format ("%s", static_cast<LDVector*> (obj)->vPos.getStringRep(true).chars());
399 break; 399 break;
400 400
401 case OBJ_Vertex: 401 case OBJ_Vertex:
402 zText.format ("%s", static_cast<LDVertex*> (obj)->vPosition.getStringRep().chars()); 402 zText.format ("%s", static_cast<LDVertex*> (obj)->vPosition.getStringRep(true).chars());
403 break; 403 break;
404 404
405 default: 405 default:
406 zText = g_saObjTypeNames[obj->getType ()]; 406 zText = g_saObjTypeNames[obj->getType ()];
407 break; 407 break;

mercurial