VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
makVrv::DtFogSignalImGui Class Reference

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.

See Also
DtFogSignalManager, DtFogSignalController

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
 

Constructor & Destructor Documentation

makVrv::DtFogSignalImGui::DtFogSignalImGui ( DtFogSignalManager &  manager)
explicit

Construct bound to a manager whose lifetime exceeds this helper.

Parameters
managerThe owning DtFogSignalManager.
makVrv::DtFogSignalImGui::~DtFogSignalImGui ( )

Destructor.

makVrv::DtFogSignalImGui::DtFogSignalImGui ( const DtFogSignalImGui &  )
delete

Copy operations are deleted.

Member Function Documentation

DtFogSignalImGui& makVrv::DtFogSignalImGui::operator= ( const DtFogSignalImGui &  )
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.

void makVrv::DtFogSignalImGui::renderTreeNode ( )
private

Draw the "Fog Signal Debug" tree node contents.

void makVrv::DtFogSignalImGui::renderWorldLabels ( )
private

Iterate channels and draw one floating label per controller per channel.

void makVrv::DtFogSignalImGui::teleportObserverTo ( const DtVector &  position)
private

Teleport the current observer to the given world position. Falls back to a warning log when no current observer is available.

static void makVrv::DtFogSignalImGui::buildLabelLines ( const DtFogSignalController &  controller,
bool  foggy,
const DtVector *  observerPos,
std::string &  outFirstLine,
std::string &  outBody 
)
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.

static std::string makVrv::DtFogSignalImGui::basename ( const std::string &  path)
staticprivate

Returns the basename of a path (last segment after '/' or '\'). Returns the input unchanged when neither separator is present.

Member Data Documentation

DtFogSignalManager& makVrv::DtFogSignalImGui::myManager
private

Owning manager; reference rather than pointer because the manager creates and outlives this helper.

bool makVrv::DtFogSignalImGui::myShowWorldLabels
private

Checkbox state. When true, world-space labels are drawn for every active controller on every channel that can project the position.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)