|
virtual std::string | ClockString () const |
|
void | DrawBoundingBoxTree () |
|
std::string | EnergyString (void) const |
|
Canvas * | GetCanvas (void) const |
|
virtual bool | IsGUI () const |
|
bool | IsTopView () |
|
virtual void | Load (const std::string &filename) |
|
usec_t | RealTimeNow (void) const |
|
virtual Model * | RecentlySelectedModel () const |
|
virtual void | Redraw (void) |
|
virtual void | RemoveChild (Model *mod) |
|
virtual bool | Save (const char *filename) |
|
void | Show () |
|
virtual void | Start () |
|
virtual void | Stop () |
|
virtual void | UnLoad () |
|
virtual bool | Update () |
|
| WorldGui (int W, int H, const char *L=0) |
|
| ~WorldGui () |
|
void | AddModelName (Model *mod, const std::string &name) |
|
void | AddPowerPack (PowerPack *pp) |
|
SuperRegion * | AddSuperRegion (const point_int_t &coord) |
|
void | AddUpdateCallback (world_callback_t cb, void *user) |
|
void | CancelQuit () |
|
void | CancelQuitAll () |
|
void | ClearRays () |
|
void | ConsumeQueue (unsigned int queue_num) |
|
Model * | CreateModel (Model *parent, const std::string &typestr) |
|
SuperRegion * | CreateSuperRegion (point_int_t origin) |
|
void | DestroySuperRegion (SuperRegion *sr) |
|
void | DisableEnergy (Model *m) |
|
void | EnableEnergy (Model *m) |
|
void | Enqueue (unsigned int queue_num, usec_t delay, Model *mod, model_callback_t cb, void *arg) |
|
void | Extend (point3_t pt) |
|
const std::set< Model * > | GetAllModels () const |
|
unsigned int | GetEventQueue (Model *mod) const |
|
const bounds3d_t & | GetExtent () const |
|
Model * | GetGround () |
|
Model * | GetModel (const std::string &name) const |
|
SuperRegion * | GetSuperRegion (const point_int_t &org) |
|
SuperRegion * | GetSuperRegionCreate (const point_int_t &org) |
|
uint64_t | GetUpdateCount () const |
|
Worldfile * | GetWorldFile () |
|
void | LoadBlock (Worldfile *wf, int entity) |
|
void | LoadBlockGroup (Worldfile *wf, int entity) |
|
void | LoadModel (Worldfile *wf, int entity) |
|
void | LoadSensor (Worldfile *wf, int entity) |
|
void | Log (Model *mod) |
|
void | MapPoly (const std::vector< point_int_t > &poly, Block *block, unsigned int layer) |
|
int32_t | MetersToPixels (meters_t x) const |
|
point_int_t | MetersToPixels (const point_t &pt) const |
|
void | NeedRedraw () |
|
bool | PastQuitTime () |
|
bool | Paused () const |
|
void | Quit () |
|
void | QuitAll () |
|
RaytraceResult | Raytrace (const Ray &ray) |
|
RaytraceResult | Raytrace (const Pose &pose, const meters_t range, const ray_test_func_t func, const Model *finder, const void *arg, const bool ztest) |
|
void | Raytrace (const Pose &pose, const meters_t range, const radians_t fov, const ray_test_func_t func, const Model *finder, const void *arg, RaytraceResult *samples, const uint32_t sample_count, const bool ztest) |
|
void | RecordRay (double x1, double y1, double x2, double y2) |
|
void | RegisterOption (Option *opt) |
| Register an Option for pickup by the GUI.
|
|
virtual void | Reload () |
|
virtual void | RemoveModel (Model *mod) |
|
void | RemovePowerPack (PowerPack *pp) |
|
int | RemoveUpdateCallback (world_callback_t cb, void *user) |
|
double | Resolution () const |
|
void | ShowClock (bool enable) |
| Control printing time to stdout.
|
|
usec_t | SimTimeNow (void) const |
|
bool | TestQuit () const |
|
virtual void | TogglePause () |
|
void | TryCharge (PowerPack *pp, const Pose &pose) |
|
uint64_t | UpdateCount () |
|
| World (const std::string &name="MyWorld", double ppm=DEFAULT_PPM) |
|
virtual | ~World () |
|
virtual void | AddChild (Model *mod) |
|
| Ancestor () |
|
void | ForEachDescendant (model_callback_t func, void *arg) |
|
std::vector< Model * > & | GetChildren () |
|
virtual Pose | GetGlobalPose () const |
|
void * | GetProperty (std::string &key) |
|
void | SetProperty (std::string &key, void *value) |
|
virtual void | SetToken (const std::string &str) |
|
const char * | Token () const |
|
const std::string & | TokenStr () const |
|
virtual | ~Ancestor () |
|
Extends World to implement an FLTK / OpenGL graphical user interface.
void WorldGui::Load |
( |
const std::string & |
worldfile_path | ) |
|
|
virtual |
Open the file at the specified location, create a Worldfile
object, read the file and configure the world from the contents, creating models as necessary. The created object persists, and can be retrieved later with World::GetWorldFile().
Reimplemented from Stg::World.