Drag[en]gine Game Engine  1.0
deHeightTerrainNavSpace Class Reference

Height terrain navigation space. More...

#include <deHeightTerrainNavSpace.h>

Public Member Functions

Constructors and Destructors
 deHeightTerrainNavSpace ()
 Create navigation space. More...
 
 ~deHeightTerrainNavSpace ()
 Clean up navigation space. More...
 
Management
deNavigationSpace::eSpaceTypes GetType () const
 Navigation space type. More...
 
void SetType (deNavigationSpace::eSpaceTypes type)
 Set navigation space type. More...
 
int GetLayer () const
 Navigation layer number. More...
 
void SetLayer (int layer)
 Set navigation layer number. More...
 
float GetSnapDistance () const
 Snap distance in meters up to which edges are linked to neighbor spaces. More...
 
void SetSnapDistance (float distance)
 Set snap distance in meters up to which edges are linked to neighbor spaces. More...
 
float GetSnapAngle () const
 Snap angle in radians up to which edges are linked to neighbor spaces. More...
 
void SetSnapAngle (float angle)
 Set snap angle in radians up to which edges are linked to neighbor spaces. More...
 
Corners
int GetCornerCount () const
 Number of corners. More...
 
void SetCornerCount (int count)
 Set number of corners. More...
 
unsigned int GetCornerAt (int index) const
 Corner at index . More...
 
void SetCornerAt (int index, unsigned int corner)
 Set corner at index . More...
 
unsigned int * GetCorners () const
 Pointer to corners. More...
 
Edges
int GetEdgeCount () const
 Number of edges. More...
 
void SetEdgeCount (int count)
 Set number edges. More...
 
deHeightTerrainNavSpaceEdgeGetEdgeAt (int index) const
 Edge at the given position. More...
 
deHeightTerrainNavSpaceEdgeGetEdges () const
 Pointer to the edges. More...
 
Faces
int GetFaceCount () const
 Number of faces. More...
 
void SetFaceCount (int count)
 Set number faces. More...
 
deNavigationSpaceFaceGetFaceAt (int index) const
 Face at the given position. More...
 
deNavigationSpaceFaceGetFaces () const
 Pointer to the faces. More...
 

Detailed Description

Height terrain navigation space.

Navigation space using height terrain points with cost defined per face. Vertices are stored as navigation points derived from the terrain geometry: navpoint = image-dimension * coord.y + coord.x .

Constructor & Destructor Documentation

◆ deHeightTerrainNavSpace()

deHeightTerrainNavSpace::deHeightTerrainNavSpace ( )

Create navigation space.

◆ ~deHeightTerrainNavSpace()

deHeightTerrainNavSpace::~deHeightTerrainNavSpace ( )

Clean up navigation space.

Member Function Documentation

◆ GetCornerAt()

unsigned int deHeightTerrainNavSpace::GetCornerAt ( int  index) const

Corner at index .

Referenced by GetCornerCount().

◆ GetCornerCount()

int deHeightTerrainNavSpace::GetCornerCount ( ) const
inline

Number of corners.

References GetCornerAt(), SetCornerAt(), and SetCornerCount().

◆ GetCorners()

unsigned int* deHeightTerrainNavSpace::GetCorners ( ) const
inline

Pointer to corners.

◆ GetEdgeAt()

deHeightTerrainNavSpaceEdge& deHeightTerrainNavSpace::GetEdgeAt ( int  index) const

Edge at the given position.

Referenced by GetEdgeCount().

◆ GetEdgeCount()

int deHeightTerrainNavSpace::GetEdgeCount ( ) const
inline

Number of edges.

References GetEdgeAt(), and SetEdgeCount().

◆ GetEdges()

deHeightTerrainNavSpaceEdge* deHeightTerrainNavSpace::GetEdges ( ) const
inline

Pointer to the edges.

◆ GetFaceAt()

deNavigationSpaceFace& deHeightTerrainNavSpace::GetFaceAt ( int  index) const

Face at the given position.

Referenced by GetFaceCount().

◆ GetFaceCount()

int deHeightTerrainNavSpace::GetFaceCount ( ) const
inline

Number of faces.

References GetFaceAt(), and SetFaceCount().

◆ GetFaces()

deNavigationSpaceFace* deHeightTerrainNavSpace::GetFaces ( ) const
inline

Pointer to the faces.

◆ GetLayer()

int deHeightTerrainNavSpace::GetLayer ( ) const
inline

Navigation layer number.

References SetLayer().

◆ GetSnapAngle()

float deHeightTerrainNavSpace::GetSnapAngle ( ) const
inline

Snap angle in radians up to which edges are linked to neighbor spaces.

The default snap angle is 180° in radians.

References SetSnapAngle().

◆ GetSnapDistance()

float deHeightTerrainNavSpace::GetSnapDistance ( ) const
inline

Snap distance in meters up to which edges are linked to neighbor spaces.

The default snap distance is 0.001 (1mm).

References SetSnapDistance().

◆ GetType()

deNavigationSpace::eSpaceTypes deHeightTerrainNavSpace::GetType ( ) const
inline

Navigation space type.

References SetType().

◆ SetCornerAt()

void deHeightTerrainNavSpace::SetCornerAt ( int  index,
unsigned int  corner 
)

Set corner at index .

Referenced by GetCornerCount().

◆ SetCornerCount()

void deHeightTerrainNavSpace::SetCornerCount ( int  count)

Set number of corners.

Referenced by GetCornerCount().

◆ SetEdgeCount()

void deHeightTerrainNavSpace::SetEdgeCount ( int  count)

Set number edges.

Referenced by GetEdgeCount().

◆ SetFaceCount()

void deHeightTerrainNavSpace::SetFaceCount ( int  count)

Set number faces.

Referenced by GetFaceCount().

◆ SetLayer()

void deHeightTerrainNavSpace::SetLayer ( int  layer)

Set navigation layer number.

Referenced by GetLayer().

◆ SetSnapAngle()

void deHeightTerrainNavSpace::SetSnapAngle ( float  angle)

Set snap angle in radians up to which edges are linked to neighbor spaces.

The default snap angle is 180° in radians.

Referenced by GetSnapAngle().

◆ SetSnapDistance()

void deHeightTerrainNavSpace::SetSnapDistance ( float  distance)

Set snap distance in meters up to which edges are linked to neighbor spaces.

The default snap distance is 0.001 (1mm).

Referenced by GetSnapDistance().

◆ SetType()

void deHeightTerrainNavSpace::SetType ( deNavigationSpace::eSpaceTypes  type)

Set navigation space type.

Referenced by GetType().


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