Classes | Public Member Functions | Friends

sp::tool::PathNode Class Reference
[Pathfinding]

#include <spToolPathFinder.hpp>

Inheritance diagram for sp::tool::PathNode:
sp::BaseObject

List of all members.

Classes

struct  SNeighbor

Public Member Functions

 PathNode ()
 PathNode (const dim::vector3df &Position, void *Data=0)
 ~PathNode ()
void setPosition (const dim::vector3df &Position)
 Sets the position and updates all distances between this node and its neighbors.
std::list< PathNode * > getNeighbors () const
 Returns a list with all neighbors of this node.
dim::vector3df getPosition () const
 Returns the node's position.
const std::list< PathEdge * > & getIncidentEdges () const
 Returns the list of incident edges.

Friends

class PathEdge
class PathGraph

Detailed Description

Node class for a graph.


Constructor & Destructor Documentation

sp::tool::PathNode::PathNode (  ) 
sp::tool::PathNode::PathNode ( const dim::vector3df Position,
void *  Data = 0 
)
sp::tool::PathNode::~PathNode (  ) 

Member Function Documentation

const std::list<PathEdge*>& sp::tool::PathNode::getIncidentEdges (  )  const [inline]

Returns the list of incident edges.

std::list<PathNode*> sp::tool::PathNode::getNeighbors (  )  const

Returns a list with all neighbors of this node.

dim::vector3df sp::tool::PathNode::getPosition (  )  const [inline]

Returns the node's position.

void sp::tool::PathNode::setPosition ( const dim::vector3df Position  ) 

Sets the position and updates all distances between this node and its neighbors.


Friends And Related Function Documentation

friend class PathEdge [friend]
friend class PathGraph [friend]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines