Recast Navigation
Navigation-mesh Toolset for Games
Sample_Debug Class Reference

Sample used for random debugging. More...

#include <Sample_Debug.h>

Inheritance diagram for Sample_Debug:
Sample

Public Member Functions

 Sample_Debug ()
 
virtual ~Sample_Debug ()
 
virtual void handleSettings ()
 
virtual void handleTools ()
 
virtual void handleDebugMode ()
 
virtual void handleClick (const float *s, const float *p, bool shift)
 
virtual void handleToggle ()
 
virtual void handleRender ()
 
virtual void handleRenderOverlay (double *proj, double *model, int *view)
 
virtual void handleMeshChanged (class InputGeom *geom)
 
virtual bool handleBuild ()
 
virtual const float * getBoundsMin ()
 
virtual const float * getBoundsMax ()
 
- Public Member Functions inherited from Sample
 Sample ()
 
virtual ~Sample ()
 
void setContext (BuildContext *ctx)
 
void setTool (SampleTool *tool)
 
SampleToolStategetToolState (int type)
 
void setToolState (int type, SampleToolState *s)
 
SampleDebugDrawgetDebugDraw ()
 
virtual void handleStep ()
 
virtual void handleUpdate (const float dt)
 
virtual void collectSettings (struct BuildSettings &settings)
 
virtual class InputGeomgetInputGeom ()
 
virtual class dtNavMeshgetNavMesh ()
 
virtual class dtNavMeshQuerygetNavMeshQuery ()
 
virtual class dtCrowdgetCrowd ()
 
virtual float getAgentRadius ()
 
virtual float getAgentHeight ()
 
virtual float getAgentClimb ()
 
unsigned char getNavMeshDrawFlags () const
 
void setNavMeshDrawFlags (unsigned char flags)
 
void updateToolStates (const float dt)
 
void initToolStates (Sample *sample)
 
void resetToolStates ()
 
void renderToolStates ()
 
void renderOverlayToolStates (double *proj, double *model, int *view)
 
void resetCommonSettings ()
 
void handleCommonSettings ()
 

Protected Attributes

rcCompactHeightfieldm_chf
 
rcContourSetm_cset
 
rcPolyMeshm_pmesh
 
float m_halfExtents [3]
 
float m_center [3]
 
float m_bmin [3]
 
float m_bmax [3]
 
dtPolyRef m_ref
 
- Protected Attributes inherited from Sample
class InputGeomm_geom
 
class dtNavMeshm_navMesh
 
class dtNavMeshQuerym_navQuery
 
class dtCrowdm_crowd
 
unsigned char m_navMeshDrawFlags
 
float m_cellSize
 
float m_cellHeight
 
float m_agentHeight
 
float m_agentRadius
 
float m_agentMaxClimb
 
float m_agentMaxSlope
 
float m_regionMinSize
 
float m_regionMergeSize
 
float m_edgeMaxLen
 
float m_edgeMaxError
 
float m_vertsPerPoly
 
float m_detailSampleDist
 
float m_detailSampleMaxError
 
int m_partitionType
 
bool m_filterLowHangingObstacles
 
bool m_filterLedgeSpans
 
bool m_filterWalkableLowHeightSpans
 
SampleToolm_tool
 
SampleToolStatem_toolStates [MAX_TOOLS]
 
BuildContextm_ctx
 
SampleDebugDraw m_dd
 

Additional Inherited Members

- Protected Member Functions inherited from Sample
dtNavMeshloadAll (const char *path)
 
void saveAll (const char *path, const dtNavMesh *mesh)
 

Description

Sample used for random debugging.

Constructor & Destructor Documentation

◆ Sample_Debug()

Sample_Debug::Sample_Debug ( )

◆ ~Sample_Debug()

Sample_Debug::~Sample_Debug ( )
virtual

Member Function Documentation

◆ getBoundsMax()

const float * Sample_Debug::getBoundsMax ( )
virtual

◆ getBoundsMin()

const float * Sample_Debug::getBoundsMin ( )
virtual

◆ handleBuild()

bool Sample_Debug::handleBuild ( )
virtual

Reimplemented from Sample.

◆ handleClick()

void Sample_Debug::handleClick ( const float *  s,
const float *  p,
bool  shift 
)
virtual

Reimplemented from Sample.

◆ handleDebugMode()

void Sample_Debug::handleDebugMode ( )
virtual

Reimplemented from Sample.

◆ handleMeshChanged()

void Sample_Debug::handleMeshChanged ( class InputGeom geom)
virtual

Reimplemented from Sample.

◆ handleRender()

void Sample_Debug::handleRender ( )
virtual

Reimplemented from Sample.

◆ handleRenderOverlay()

void Sample_Debug::handleRenderOverlay ( double *  proj,
double *  model,
int *  view 
)
virtual

Reimplemented from Sample.

◆ handleSettings()

void Sample_Debug::handleSettings ( )
virtual

Reimplemented from Sample.

◆ handleToggle()

void Sample_Debug::handleToggle ( )
virtual

Reimplemented from Sample.

◆ handleTools()

void Sample_Debug::handleTools ( )
virtual

Reimplemented from Sample.

Member Data Documentation

◆ m_bmax

float Sample_Debug::m_bmax[3]
protected

◆ m_bmin

float Sample_Debug::m_bmin[3]
protected

◆ m_center

float Sample_Debug::m_center[3]
protected

◆ m_chf

rcCompactHeightfield* Sample_Debug::m_chf
protected

◆ m_cset

rcContourSet* Sample_Debug::m_cset
protected

◆ m_halfExtents

float Sample_Debug::m_halfExtents[3]
protected

◆ m_pmesh

rcPolyMesh* Sample_Debug::m_pmesh
protected

◆ m_ref

dtPolyRef Sample_Debug::m_ref
protected

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