Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
VertexPathfinderDebugOverlay Class Reference

There are several vertex pathfinders running asynchronously, so their debug output might conflict. More...

#include <VertexPathfinder.h>

Public Member Functions

void SetDebugOverlay (bool enabled)
 
void RenderSubmit (SceneCollector &collector)
 

Protected Member Functions

void DebugRenderGoal (const CSimContext &simContext, const PathGoal &goal)
 
void DebugRenderGraph (const CSimContext &simContext, const std::vector< Vertex > &vertexes, const std::vector< Edge > &edges, const std::vector< Square > &edgeSquares)
 
void DebugRenderEdges (const CSimContext &simContext, bool visible, CFixedVector2D curr, CFixedVector2D npos)
 

Protected Attributes

std::atomic< bool > m_DebugOverlay = false
 
std::vector< SOverlayLinem_DebugOverlayShortPathLines
 
std::vector< SOverlayLinem_DebugOverlayShortPathLinesSubmitted
 

Friends

class VertexPathfinder
 

Detailed Description

There are several vertex pathfinders running asynchronously, so their debug output might conflict.

To remain thread-safe, this single class will handle the debug data. NB: though threadsafe, the way things are setup means you can have a few more graphs and edges than you'd expect showing up in the rendered graph.

Member Function Documentation

◆ DebugRenderEdges()

void VertexPathfinderDebugOverlay::DebugRenderEdges ( const CSimContext simContext,
bool  visible,
CFixedVector2D  curr,
CFixedVector2D  npos 
)
protected

◆ DebugRenderGoal()

void VertexPathfinderDebugOverlay::DebugRenderGoal ( const CSimContext simContext,
const PathGoal goal 
)
protected

◆ DebugRenderGraph()

void VertexPathfinderDebugOverlay::DebugRenderGraph ( const CSimContext simContext,
const std::vector< Vertex > &  vertexes,
const std::vector< Edge > &  edges,
const std::vector< Square > &  edgeSquares 
)
protected

◆ RenderSubmit()

void VertexPathfinderDebugOverlay::RenderSubmit ( SceneCollector collector)

◆ SetDebugOverlay()

void VertexPathfinderDebugOverlay::SetDebugOverlay ( bool  enabled)
inline

Friends And Related Function Documentation

◆ VertexPathfinder

friend class VertexPathfinder
friend

Member Data Documentation

◆ m_DebugOverlay

std::atomic<bool> VertexPathfinderDebugOverlay::m_DebugOverlay = false
protected

◆ m_DebugOverlayShortPathLines

std::vector<SOverlayLine> VertexPathfinderDebugOverlay::m_DebugOverlayShortPathLines
protected

◆ m_DebugOverlayShortPathLinesSubmitted

std::vector<SOverlayLine> VertexPathfinderDebugOverlay::m_DebugOverlayShortPathLinesSubmitted
protected

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