| 194 | } |
| 195 | |
| 196 | void appendText(const sdk::TextPrimitive& text, ImageAnnotation& annotation) { |
| 197 | if (text.text.empty()) { |
| 198 | return; |
| 199 | } |
| 200 | TextAnnotation out; |
| 201 | out.position = projectPosition(text.pose); |
| 202 | out.font_size = positiveOrDefault(text.font_size, 14.0); |
| 203 | out.color = text.color; |
| 204 | out.text = text.text; |
| 205 | annotation.texts.push_back(std::move(out)); |
| 206 | } |
| 207 | |
| 208 | void appendEntity(const sdk::SceneEntity& entity, ImageAnnotation& annotation) { |
| 209 | for (const auto& arrow : entity.arrows) { |
no test coverage detected