#include <RoadSource.h>
Inheritance diagram for RoadSource:

Public Member Functions | |
| virtual | ~RoadSource () |
| Empty virtual destructor for RoadSource. | |
| virtual bool | getPoints (utils::Time &time, std::vector< utils::Vec3d > &points, bool blocking=1)=0 |
| Get the next set of road points. | |
Static Public Member Functions | |
| const char * | intfName () |
| Get the interface name. | |
| RoadSource * | create (const char *, utils::SymbolTable *globals=(0L)) |
Create interface from string if not in symbol table already, put in symbol table afterwards under intfName(). | |
| RoadSource * | create (utils::ConfigFile &, utils::SymbolTable *globals=(0L)) |
Create interface from file if not in symbol table already, put in symbol table afterwards under intfName(). | |
| RoadSource * | interface (const char *, utils::SymbolTable *globals=(0L)) |
| Create interface from string if not in symbol table already. | |
| RoadSource * | generate (const char *, utils::SymbolTable *globals=(0L)) |
| Create interface from string. | |
| RoadSourceGenerator * | generator (utils::SymbolTable *globals) |
| Get the interface generator. | |
| RoadSource * | getIntf (utils::SymbolTable *globals) |
Get the last result of create. | |
| void | clear (utils::SymbolTable *globals) |
| Clear the interface out of the symbol table. | |
An abstract interface to 3D road information given by an STL vector of 3D points
Definition at line 26 of file RoadSource.h.
|
|
Empty virtual destructor for RoadSource. For C++ syntax reasons, it is a good idea to explicitly define a virtual destructor, even if empty like this one, to any abstract class like this. Definition at line 32 of file RoadSource.h. |
|
||||||||||||||||
|
Get the next set of road points. Returns the latest set of road points along with the time at which they were collected. Normally, the call is blocking, i.e., we block until the next unread set of points is acquired, but it can be polling, i.e., it returns immediately with the most recent set of road points.
Implemented in FakeRoadSource, OutputRoadSource, PlayerRoadSource, and ShmemRoadSource.
Referenced by OutputRoadSource::getPoints(). |
1.3.8