| 1409 | } |
| 1410 | |
| 1411 | void LASreaderMerged::clean() |
| 1412 | { |
| 1413 | if (lasreader) |
| 1414 | { |
| 1415 | delete lasreader; |
| 1416 | lasreader = 0; |
| 1417 | lasreaderlas = 0; |
| 1418 | lasreaderbin = 0; |
| 1419 | lasreadershp = 0; |
| 1420 | lasreaderasc = 0; |
| 1421 | lasreaderbil = 0; |
| 1422 | lasreaderdtm = 0; |
| 1423 | lasreaderply = 0; |
| 1424 | lasreaderqfit = 0; |
| 1425 | lasreadertxt = 0; |
| 1426 | } |
| 1427 | point_type_change = FALSE; |
| 1428 | point_size_change = FALSE; |
| 1429 | additional_attribute_change = FALSE; |
| 1430 | rescale = FALSE; |
| 1431 | reoffset = FALSE; |
| 1432 | if (scale_factor) |
| 1433 | { |
| 1434 | delete[] scale_factor; |
| 1435 | scale_factor = 0; |
| 1436 | } |
| 1437 | if (offset) |
| 1438 | { |
| 1439 | delete[] offset; |
| 1440 | offset = 0; |
| 1441 | } |
| 1442 | if (parse_string) |
| 1443 | { |
| 1444 | free(parse_string); |
| 1445 | parse_string = 0; |
| 1446 | } |
| 1447 | skip_lines = 0; |
| 1448 | translate_intensity = 0.0f; |
| 1449 | scale_intensity = 1.0f; |
| 1450 | translate_scan_angle = 0.0f; |
| 1451 | scale_scan_angle = 1.0f; |
| 1452 | populate_header = FALSE; |
| 1453 | keep_lastiling = FALSE; |
| 1454 | |
| 1455 | if (file_names) |
| 1456 | { |
| 1457 | U32 i; |
| 1458 | for (i = 0; i < file_name_number; i++) |
| 1459 | { |
| 1460 | free(file_names[i]); |
| 1461 | } |
| 1462 | free(file_names); |
| 1463 | file_names = 0; |
| 1464 | if (file_names_ID) |
| 1465 | { |
| 1466 | free(file_names_ID); |
| 1467 | file_names_ID = 0; |
| 1468 | } |