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

Function cameraModelToString

pj_scene3D/widgets/src/Scene3DDockWidget.cpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78};
79
80QString cameraModelToString(int combo_index) {
81 const auto model = static_cast<SceneViewWidget::CameraModel>(combo_index);
82 for (const auto& entry : kCameraModelNames) {
83 if (entry.model == model) {
84 return QString::fromLatin1(entry.id);
85 }
86 }
87 return QStringLiteral("orbit");
88}
89
90// Combo index for a persisted model name, or -1 when missing / unknown (→ keep
91// the default).

Callers 1

xmlSaveStateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected