model_indicator.c File Reference
#include <sys/time.h>
#include <math.h>
#include "gui.h"
#include "stage_internal.h"
Defines | |
#define | STG_DEFAULT_INDICATOR_SIZEX 0.15 |
#define | STG_DEFAULT_INDICATOR_SIZEY 0.15 |
#define | STG_INDICATOR_WATTS 10 |
Functions | |
stg_polygon_t * | indicator_copy_polygons (stg_polygon_t *source, size_t count) |
int | indicator_init (stg_model_t *mod) |
void | indicator_load (stg_model_t *mod) |
int | indicator_render_data (stg_model_t *mod, void *userp) |
int | indicator_shutdown (stg_model_t *mod) |
int | indicator_startup (stg_model_t *mod) |
int | indicator_unrender_data (stg_model_t *mod, void *userp) |
int | indicator_update (stg_model_t *mod) |
void | stg_indicator_config_print (stg_indicator_config_t *slc) |
Define Documentation
#define STG_DEFAULT_INDICATOR_SIZEX 0.15 |
Referenced by indicator_init().
#define STG_DEFAULT_INDICATOR_SIZEY 0.15 |
Referenced by indicator_init().
#define STG_INDICATOR_WATTS 10 |
Referenced by indicator_startup().
Function Documentation
stg_polygon_t* indicator_copy_polygons | ( | stg_polygon_t * | source, | |
size_t | count | |||
) |
References stg_polygon_t::bbox, stg_polygon_t::color, stg_polygon_t::points, stg_polygons_create(), and stg_polygon_t::unfilled.
Referenced by indicator_load(), and indicator_update().
int indicator_init | ( | stg_model_t * | mod | ) |
References stg_pose_t::a, stg_dio_cmd_t::count, stg_dio_cmd_t::digout, indicator_load(), indicator_shutdown(), indicator_startup(), stg_geom_t::pose, stg_geom_t::size, STG_DEFAULT_INDICATOR_SIZEX, STG_DEFAULT_INDICATOR_SIZEY, stg_model_set_cfg(), stg_model_set_cmd(), stg_model_set_color(), stg_model_set_data(), stg_model_set_geom(), stg_model_set_polygons(), stg_unit_polygon_create(), stg_size_t::x, stg_pose_t::x, stg_size_t::y, and stg_pose_t::y.
void indicator_load | ( | stg_model_t * | mod | ) |
References FALSE, indicator_copy_polygons(), model_change(), stg_model_set_data(), and stg_model_set_polygons().
Referenced by indicator_init().
int indicator_render_data | ( | stg_model_t * | mod, | |
void * | userp | |||
) |
int indicator_shutdown | ( | stg_model_t * | mod | ) |
References stg_indicator_data_t::numPolys, stg_indicator_data_t::polys, PRINT_DEBUG, stg_model_get_data(), stg_model_set_data(), stg_model_set_watts(), and stg_polygons_destroy().
Referenced by indicator_init().
int indicator_startup | ( | stg_model_t * | mod | ) |
References indicator_update(), PRINT_DEBUG, STG_INDICATOR_WATTS, and stg_model_set_watts().
Referenced by indicator_init().
int indicator_unrender_data | ( | stg_model_t * | mod, | |
void * | userp | |||
) |
int indicator_update | ( | stg_model_t * | mod | ) |
References stg_dio_cmd_t::digout, FALSE, indicator_copy_polygons(), PRINT_DEBUG2, stg_model_get_data(), stg_model_set_polygons(), and TRUE.
Referenced by indicator_startup().
void stg_indicator_config_print | ( | stg_indicator_config_t * | slc | ) |
Generated on Wed Jun 3 23:12:29 2009 for Stage by
