CSCI 3081 - Drone Delivery System
Public Member Functions | List of all members
entity_project::IGraph Class Referenceabstract

Represents a read only graph object. More...

#include <graph.h>

Public Member Functions

virtual ~IGraph ()
 Destructor.
 
virtual const IGraphNodeGetNode (const std::string &name) const =0
 Gets a node in the graph by name.
 
virtual const std::vector< IGraphNode * > & GetNodes () const =0
 Gets all nodes in the graph.
 
virtual const std::vector< std::vector< float > > GetPath (std::vector< float > src, std::vector< float > dest) const =0
 Returns a vector of float vectors that represent a path from src to dest. More...
 

Detailed Description

Represents a read only graph object.

Member Function Documentation

◆ GetPath()

virtual const std::vector< std::vector<float> > entity_project::IGraph::GetPath ( std::vector< float >  src,
std::vector< float >  dest 
) const
pure virtual

Returns a vector of float vectors that represent a path from src to dest.

Given a source and destination in the form of 3-element x,y,z vectors, this function will return a list of positions to traverse in-order, which avoids the geometry of the scene. The returned path includes the source and destination points.


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