Recast Navigation
Navigation-mesh Toolset for Games
Sample_SoloMesh Class Reference

#include <Sample_SoloMesh.h>

Inheritance diagram for Sample_SoloMesh:
Sample

Public Member Functions

 Sample_SoloMesh ()
 
virtual ~Sample_SoloMesh ()
 
virtual void handleSettings ()
 
virtual void handleTools ()
 
virtual void handleDebugMode ()
 
virtual void handleRender ()
 
virtual void handleRenderOverlay (double *proj, double *model, int *view)
 
virtual void handleMeshChanged (class InputGeom *geom)
 
virtual bool handleBuild ()
 
- 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 handleClick (const float *s, const float *p, bool shift)
 
virtual void handleToggle ()
 
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 Types

enum  DrawMode {
  DRAWMODE_NAVMESH , DRAWMODE_NAVMESH_TRANS , DRAWMODE_NAVMESH_BVTREE , DRAWMODE_NAVMESH_NODES ,
  DRAWMODE_NAVMESH_INVIS , DRAWMODE_MESH , DRAWMODE_VOXELS , DRAWMODE_VOXELS_WALKABLE ,
  DRAWMODE_COMPACT , DRAWMODE_COMPACT_DISTANCE , DRAWMODE_COMPACT_REGIONS , DRAWMODE_REGION_CONNECTIONS ,
  DRAWMODE_RAW_CONTOURS , DRAWMODE_BOTH_CONTOURS , DRAWMODE_CONTOURS , DRAWMODE_POLYMESH ,
  DRAWMODE_POLYMESH_DETAIL , MAX_DRAWMODE
}
 

Protected Member Functions

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

Protected Attributes

bool m_keepInterResults
 
float m_totalBuildTimeMs
 
unsigned char * m_triareas
 
rcHeightfieldm_solid
 
rcCompactHeightfieldm_chf
 
rcContourSetm_cset
 
rcPolyMeshm_pmesh
 
rcConfig m_cfg
 
rcPolyMeshDetailm_dmesh
 
DrawMode m_drawMode
 
- 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
 

Member Enumeration Documentation

◆ DrawMode

enum Sample_SoloMesh::DrawMode
protected
Enumerator
DRAWMODE_NAVMESH 
DRAWMODE_NAVMESH_TRANS 
DRAWMODE_NAVMESH_BVTREE 
DRAWMODE_NAVMESH_NODES 
DRAWMODE_NAVMESH_INVIS 
DRAWMODE_MESH 
DRAWMODE_VOXELS 
DRAWMODE_VOXELS_WALKABLE 
DRAWMODE_COMPACT 
DRAWMODE_COMPACT_DISTANCE 
DRAWMODE_COMPACT_REGIONS 
DRAWMODE_REGION_CONNECTIONS 
DRAWMODE_RAW_CONTOURS 
DRAWMODE_BOTH_CONTOURS 
DRAWMODE_CONTOURS 
DRAWMODE_POLYMESH 
DRAWMODE_POLYMESH_DETAIL 
MAX_DRAWMODE 

Constructor & Destructor Documentation

◆ Sample_SoloMesh()

Sample_SoloMesh::Sample_SoloMesh ( )

◆ ~Sample_SoloMesh()

Sample_SoloMesh::~Sample_SoloMesh ( )
virtual

Member Function Documentation

◆ cleanup()

void Sample_SoloMesh::cleanup ( )
protected

◆ handleBuild()

bool Sample_SoloMesh::handleBuild ( )
virtual

Reimplemented from Sample.

◆ handleDebugMode()

void Sample_SoloMesh::handleDebugMode ( )
virtual

Reimplemented from Sample.

◆ handleMeshChanged()

void Sample_SoloMesh::handleMeshChanged ( class InputGeom geom)
virtual

Reimplemented from Sample.

◆ handleRender()

void Sample_SoloMesh::handleRender ( )
virtual

Reimplemented from Sample.

◆ handleRenderOverlay()

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

Reimplemented from Sample.

◆ handleSettings()

void Sample_SoloMesh::handleSettings ( )
virtual

Reimplemented from Sample.

◆ handleTools()

void Sample_SoloMesh::handleTools ( )
virtual

Reimplemented from Sample.

Member Data Documentation

◆ m_cfg

rcConfig Sample_SoloMesh::m_cfg
protected

◆ m_chf

rcCompactHeightfield* Sample_SoloMesh::m_chf
protected

◆ m_cset

rcContourSet* Sample_SoloMesh::m_cset
protected

◆ m_dmesh

rcPolyMeshDetail* Sample_SoloMesh::m_dmesh
protected

◆ m_drawMode

DrawMode Sample_SoloMesh::m_drawMode
protected

◆ m_keepInterResults

bool Sample_SoloMesh::m_keepInterResults
protected

◆ m_pmesh

rcPolyMesh* Sample_SoloMesh::m_pmesh
protected

◆ m_solid

rcHeightfield* Sample_SoloMesh::m_solid
protected

◆ m_totalBuildTimeMs

float Sample_SoloMesh::m_totalBuildTimeMs
protected

◆ m_triareas

unsigned char* Sample_SoloMesh::m_triareas
protected

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