![]() |
VR-Forces Developer's Guide
|
F4 ImGui debug section for the fog-signal pipeline.
Renders the "Fog Signal Debug" tree node summarising every active DtFogSignalController, and optionally draws world-space text labels anchored at each controller's buoy position. Mirrors the pattern of DtSoundComponentSystemImGui: a focused helper kept out of the manager itself, connected per-frame through DtRenderer::signal_update.
Lifetime is owned by the manager and bounded by it; the helper holds the manager by reference.
Public Member Functions | |
| DtFogSignalImGui (DtFogSignalManager &manager) | |
| ~DtFogSignalImGui () | |
| DtFogSignalImGui (const DtFogSignalImGui &)=delete | |
| DtFogSignalImGui & | operator= (const DtFogSignalImGui &)=delete |
| void | render () |
Private Member Functions | |
| void | renderTreeNode () |
| void | renderWorldLabels () |
| void | teleportObserverTo (const DtVector &position) |
Static Private Member Functions | |
| static void | buildLabelLines (const DtFogSignalController &controller, bool foggy, const DtVector *observerPos, std::string &outFirstLine, std::string &outBody) |
| static std::string | basename (const std::string &path) |
Private Attributes | |
| DtFogSignalManager & | myManager |
| bool | myShowWorldLabels |
|
explicit |
Construct bound to a manager whose lifetime exceeds this helper.
| manager | The owning DtFogSignalManager. |
| makVrv::DtFogSignalImGui::~DtFogSignalImGui | ( | ) |
Destructor.
|
delete |
Copy operations are deleted.
|
delete |
| void makVrv::DtFogSignalImGui::render | ( | ) |
Draw the panel and optionally the world-space labels.
No-op when the ImGui overlay is off, when DtImguiDrawable is not yet ready, or when there are no active controllers.
|
private |
Draw the "Fog Signal Debug" tree node contents.
|
private |
Iterate channels and draw one floating label per controller per channel.
|
private |
Teleport the current observer to the given world position. Falls back to a warning log when no current observer is available.
|
staticprivate |
Format the multi-line label text for one controller. The first line is returned in outFirstLine (prefixed with "[FOG] " when foggy is true) and the remaining lines are returned, newline-separated, in outBody. When observerPos is non-null, a listener-distance line is appended to the body so authors can tune the audible- distance range against a live number.
|
staticprivate |
Returns the basename of a path (last segment after '/' or '\'). Returns the input unchanged when neither separator is present.
|
private |
Owning manager; reference rather than pointer because the manager creates and outlives this helper.
|
private |
Checkbox state. When true, world-space labels are drawn for every active controller on every channel that can project the position.