| 72 | } |
| 73 | |
| 74 | BOOL LASinventory::add(const LASpoint* point) |
| 75 | { |
| 76 | extended_number_of_point_records++; |
| 77 | if (point->extended_point_type) |
| 78 | { |
| 79 | extended_number_of_points_by_return[point->extended_return_number]++; |
| 80 | } |
| 81 | else |
| 82 | { |
| 83 | extended_number_of_points_by_return[point->return_number]++; |
| 84 | } |
| 85 | if (first) |
| 86 | { |
| 87 | min_X = max_X = point->get_X(); |
| 88 | min_Y = max_Y = point->get_Y(); |
| 89 | min_Z = max_Z = point->get_Z(); |
| 90 | if (point->have_gps_time) { |
| 91 | min_gps_time = max_gps_time = point->get_gps_time(); |
| 92 | } |
| 93 | first = FALSE; |
| 94 | } |
| 95 | else |
| 96 | { |
| 97 | if (point->get_X() < min_X) { min_X = point->get_X(); } |
| 98 | else if (point->get_X() > max_X) { max_X = point->get_X(); } |
| 99 | if (point->get_Y() < min_Y) { min_Y = point->get_Y(); } |
| 100 | else if (point->get_Y() > max_Y) { max_Y = point->get_Y(); } |
| 101 | if (point->get_Z() < min_Z) { min_Z = point->get_Z(); } |
| 102 | else if (point->get_Z() > max_Z) { max_Z = point->get_Z(); } |
| 103 | if (point->have_gps_time) { |
| 104 | if (point->get_gps_time() < min_gps_time) { min_gps_time = point->get_gps_time(); } |
| 105 | else if (point->get_gps_time() > max_gps_time) { max_gps_time = point->get_gps_time(); } |
| 106 | } |
| 107 | } |
| 108 | return TRUE; |
| 109 | } |
| 110 | |
| 111 | BOOL LASinventory::update_header(LASheader* header) const |
| 112 | { |
nothing calls this directly
no test coverage detected