MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / appendText

Function appendText

pj_scene2D/core/src/scene_entities_2d_decoder.cpp:196–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void 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
208void appendEntity(const sdk::SceneEntity& entity, ImageAnnotation& annotation) {
209 for (const auto& arrow : entity.arrows) {

Callers 1

appendEntityFunction · 0.85

Calls 3

projectPositionFunction · 0.85
positiveOrDefaultFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected