rtkprivate.h File Reference
#include <sys/types.h>
Go to the source code of this file.
Defines | |
#define | FALSE 0 |
#define | PRINT_DEBUG(m) |
#define | PRINT_DEBUG1(m, a) |
#define | PRINT_DEBUG2(m, a, b) |
#define | PRINT_DEBUG3(m, a, b, c) |
#define | PRINT_ERR(m) |
#define | PRINT_ERR1(m, a) |
#define | PRINT_ERR2(m, a, b) |
#define | PRINT_MSG(m) printf("stg_rtk msg : %s :\n "m"\n", __FILE__) |
#define | PRINT_MSG1(m, a) printf("stg_rtk msg : %s :\n "m"\n", __FILE__, a) |
#define | PRINT_MSG2(m, a, b) printf("stg_rtk msg : %s :\n "m"\n", __FILE__, a, b) |
#define | PRINT_WARN(m) |
#define | PRINT_WARN1(m, a) |
#define | PRINT_WARN2(m, a, b) |
#define | PRINT_WARN3(m, a, b, c) |
#define | STK_LIST_APPEND(head, item) |
#define | STK_LIST_APPENDX(head, list, item) |
#define | STK_LIST_REMOVE(head, item) |
#define | STK_LIST_REMOVEX(head, list, item) |
#define | TRUE 1 |
Functions | |
void | stg_rtk_canvas_add_fig (stg_rtk_canvas_t *canvas, stg_rtk_fig_t *fig) |
void | stg_rtk_canvas_calc (stg_rtk_canvas_t *canvas) |
void | stg_rtk_canvas_del_fig (stg_rtk_canvas_t *canvas, stg_rtk_fig_t *fig) |
uint16_t * | stg_rtk_canvas_get_image_rgb16 (stg_rtk_canvas_t *canvas, int sizex, int sizey) |
uint8_t * | stg_rtk_canvas_get_image_rgb24 (stg_rtk_canvas_t *canvas) |
void | stg_rtk_fig_calc (stg_rtk_fig_t *fig) |
void | stg_rtk_fig_calc_selection (stg_rtk_fig_t *fig) |
void | stg_rtk_fig_dirty (stg_rtk_fig_t *fig) |
int | stg_rtk_fig_hittest (stg_rtk_fig_t *fig, int dx, int dy) |
void | stg_rtk_fig_on_mouse (stg_rtk_fig_t *fig, int event, int mode) |
void | stg_rtk_fig_render (stg_rtk_fig_t *fig) |
void | stg_rtk_fig_render_xfig (stg_rtk_fig_t *fig) |
Define Documentation
#define FALSE 0 |
Referenced by acetate_event_callback(), audio_create_visibilitygraph(), audio_init(), audio_startup(), background_event_callback(), blobfinder_init(), blobfinder_update(), create_prefsdialog(), fiducial_init(), fiducial_update(), gripper_init(), gripper_paddle_contact(), gui_action_matrixdelta(), gui_add_tree_item(), gui_window_create(), gui_window_menus_create(), indicator_load(), indicator_update(), InterfaceSimulation::InterfaceSimulation(), laser_init(), laser_render_data(), model_event_callback(), pb_pixel_is_set(), position_init(), ranger_init(), stest(), stg_model_add_property_toggles(), stg_model_create(), stg_model_destroy(), stg_model_is_antecedent(), stg_model_is_descendent(), stg_polygons_create(), stg_rtk_app_create(), stg_rtk_canvas_create(), stg_rtk_canvas_render(), stg_rtk_fig_blink_callback(), stg_rtk_fig_destroy_later_callback(), stg_rtk_fig_mouse_over(), stg_rtk_fig_mouse_selected(), stg_rtk_fig_polygon_draw(), stg_rtk_fig_render_selection(), stg_world_create(), stg_world_start(), StgDriver::Update(), wifi_init(), and wifi_update().
#define PRINT_DEBUG | ( | m | ) |
Referenced by blobfinder_render_cfg(), blobfinder_render_data(), blobfinder_shutdown(), blobfinder_startup(), blobfinder_update(), fiducial_startup(), fiducial_update(), gc_ranger_data(), StgTime::GetTime(), StgTime::GetTimeDouble(), gripper_shutdown(), gripper_startup(), gui_action_disable_polygons(), gui_action_exportsequence(), gui_action_geom(), gui_action_grid(), gui_action_matrixdelta(), gui_action_matrixocc(), gui_action_matrixtree(), gui_action_pause(), gui_action_polygons(), gui_action_raytrace(), gui_action_trails(), gui_model_create(), gui_model_destroy(), gui_shutdown(), gui_startup(), gui_window_destroy(), gui_world_create(), gui_world_destroy(), indicator_shutdown(), indicator_startup(), laser_shutdown(), laser_startup(), position_shutdown(), position_startup(), position_update(), InterfacePosition::ProcessMessage(), ptz_render_data(), ptz_shutdown(), ptz_startup(), ptz_update(), ranger_render_data(), ranger_shutdown(), ranger_startup(), speech_shutdown(), speech_startup(), stg_lookup_color(), wifi_shutdown(), and wifi_startup().
#define PRINT_DEBUG1 | ( | m, | |||
a | ) |
#define PRINT_DEBUG2 | ( | m, | |||
a, | |||||
b | ) |
#define PRINT_DEBUG3 | ( | m, | |||
a, | |||||
b, | |||||
c | ) |
#define PRINT_ERR | ( | m | ) |
Value:
printf("\rstg_rtk error : %s %s\n "m"\n", \ __FILE__, __FUNCTION__)
#define PRINT_ERR1 | ( | m, | |||
a | ) |
Value:
printf("\rstg_rtk error : %s %s\n "m"\n", \ __FILE__, __FUNCTION__, a)
Referenced by InterfaceModel::InterfaceModel(), InterfaceSimulation::InterfaceSimulation(), StgDriver::LocateModel(), position_load(), position_update(), stg_lookup_color(), stg_model_create(), stg_model_load(), stg_model_set_property_named(), stg_polygons_from_image_file(), and StgDriver::StgDriver().
#define PRINT_ERR2 | ( | m, | |||
a, | |||||
b | ) |
Value:
printf("\rstg_rtk error : %s %s\n "m"\n", \ __FILE__, __FUNCTION__, a, b)
Referenced by position_load(), position_update(), InterfaceSpeech::ProcessMessage(), InterfacePosition::ProcessMessage(), InterfaceLaser::ProcessMessage(), InterfaceFiducial::ProcessMessage(), and InterfaceAudio::ProcessMessage().
#define PRINT_MSG | ( | m | ) | printf("stg_rtk msg : %s :\n "m"\n", __FILE__) |
Referenced by gui_action_exit(), signal_delete(), and signal_destroy().
#define PRINT_MSG1 | ( | m, | |||
a | ) | printf("stg_rtk msg : %s :\n "m"\n", __FILE__, a) |
Referenced by stg_model_set_property_named().
#define PRINT_MSG2 | ( | m, | |||
a, | |||||
b | ) | printf("stg_rtk msg : %s :\n "m"\n", __FILE__, a, b) |
#define PRINT_WARN | ( | m | ) |
Value:
printf("\rstg_rtk warning : %s %s\n "m"\n", \ __FILE__, __FUNCTION__)
Referenced by laser_load(), and InterfacePosition::Publish().
#define PRINT_WARN1 | ( | m, | |||
a | ) |
Value:
printf("\rstg_rtk warning : %s %s\n "m"\n", \ __FILE__, __FUNCTION__, a)
Referenced by audio_findpoints(), gui_world_destroy(), position_load(), InterfaceSimulation::ProcessMessage(), InterfacePosition::ProcessMessage(), InterfaceGripper::ProcessMessage(), stg_model_load(), stg_model_shutdown(), stg_model_startup(), stg_rtk_app_destroy(), and stg_rtk_canvas_destroy().
#define PRINT_WARN2 | ( | m, | |||
a, | |||||
b | ) |
Value:
printf("\rstg_rtk warning : %s %s\n "m"\n", \ __FILE__, __FUNCTION__, a, b)
Referenced by gc_ranger_data(), InterfaceSpeech::ProcessMessage(), InterfaceSimulation::ProcessMessage(), InterfacePosition::ProcessMessage(), InterfaceLocalize::ProcessMessage(), InterfaceLaser::ProcessMessage(), InterfaceGripper::ProcessMessage(), InterfaceFiducial::ProcessMessage(), InterfaceAudio::ProcessMessage(), and ranger_render_data().
#define PRINT_WARN3 | ( | m, | |||
a, | |||||
b, | |||||
c | ) |
Value:
printf("\rstg_rtk warning : %s %s\n "m"\n", \ __FILE__, __FUNCTION__, a, b, c)
Referenced by StgDriver::ProcessMessage().
#define STK_LIST_APPEND | ( | head, | |||
item | ) |
Value:
item->prev = head;\ item->next = NULL;\ if (head == NULL)\ head = item;\ else\ {\ while (item->prev->next)\ item->prev = item->prev->next;\ item->prev->next = item;\ }
Referenced by stg_rtk_canvas_create(), and stg_rtk_canvas_flash().
#define STK_LIST_APPENDX | ( | head, | |||
list, | |||||
item | ) |
#define STK_LIST_REMOVE | ( | head, | |||
item | ) |
Value:
if (item->prev)\ item->prev->next = item->next;\ if (item->next)\ item->next->prev = item->prev;\ if (item == head)\ head = item->next;
Referenced by stg_rtk_canvas_destroy(), and stg_rtk_canvas_flash_update().
#define STK_LIST_REMOVEX | ( | head, | |||
list, | |||||
item | ) |
#define TRUE 1 |
Referenced by audio_find_dist_multi(), audio_init(), audio_startup(), background_event_callback(), blobfinder_init(), blobfinder_update(), bumper_init(), create_prefsdialog(), fiducial_init(), fiducial_update(), frame_callback(), gc_laser_init(), gc_model_init(), gc_on_motion(), gc_ranger_init(), gripper_init(), gui_action_matrixdelta(), gui_window_create(), gui_window_menus_create(), indicator_update(), InterfaceSimulation::InterfaceSimulation(), laser_init(), laser_render_data(), model_event_callback(), pb_pixel_is_set(), position_init(), ptz_init(), ptz_update(), ranger_init(), signal_delete(), speech_init(), stg_lookup_color(), stg_model_create(), stg_model_is_antecedent(), stg_model_is_descendent(), stg_model_is_related(), stg_polygons_create(), stg_polygons_destroy(), stg_print_err(), stg_rtk_app_main_term(), stg_rtk_canvas_calc(), stg_rtk_canvas_create(), stg_rtk_canvas_render(), stg_rtk_fig_blink_callback(), stg_rtk_fig_create(), stg_rtk_fig_dirty(), stg_rtk_fig_mouse_over(), stg_rtk_fig_mouse_selected(), stg_rtk_fig_polygon_draw(), stg_world_create(), stg_world_stop(), test_callback(), StgDriver::Update(), wifi_init(), wifi_render_cfg(), and wifi_update().
Function Documentation
void stg_rtk_canvas_add_fig | ( | stg_rtk_canvas_t * | canvas, | |
stg_rtk_fig_t * | fig | |||
) |
void stg_rtk_canvas_calc | ( | stg_rtk_canvas_t * | canvas | ) |
References _stg_rtk_canvas_t::bg_dirty, _stg_rtk_canvas_t::fg_dirty, _stg_rtk_canvas_t::fg_dirty_region, _stg_rtk_canvas_t::fig, _stg_rtk_fig_t::sibling_next, _stg_rtk_canvas_t::sizex, _stg_rtk_canvas_t::sizey, stg_rtk_fig_calc(), stg_rtk_region_set_union_rect(), and TRUE.
Referenced by stg_rtk_canvas_layer_show(), stg_rtk_canvas_origin(), stg_rtk_canvas_render(), and stg_rtk_canvas_scale().
void stg_rtk_canvas_del_fig | ( | stg_rtk_canvas_t * | canvas, | |
stg_rtk_fig_t * | fig | |||
) |
uint16_t* stg_rtk_canvas_get_image_rgb16 | ( | stg_rtk_canvas_t * | canvas, | |
int | sizex, | |||
int | sizey | |||
) |
uint8_t* stg_rtk_canvas_get_image_rgb24 | ( | stg_rtk_canvas_t * | canvas | ) |
void stg_rtk_fig_calc | ( | stg_rtk_fig_t * | fig | ) |
References _stg_rtk_stroke_t::calcfn, _stg_rtk_fig_t::canvas, _stg_rtk_fig_t::child, _stg_rtk_fig_t::cos, _stg_rtk_fig_t::dcos, _stg_rtk_fig_t::doa, _stg_rtk_fig_t::dox, _stg_rtk_fig_t::doy, _stg_rtk_fig_t::dsin, _stg_rtk_fig_t::dsx, _stg_rtk_fig_t::dsy, _stg_rtk_canvas_t::fg_dirty_region, _stg_rtk_fig_t::max_x, _stg_rtk_fig_t::max_y, _stg_rtk_fig_t::min_x, _stg_rtk_fig_t::min_y, _stg_rtk_fig_t::oa, _stg_rtk_fig_t::ox, _stg_rtk_fig_t::oy, _stg_rtk_fig_t::parent, _stg_rtk_fig_t::region, _stg_rtk_fig_t::sibling_next, _stg_rtk_fig_t::sin, stg_rtk_fig_calc(), stg_rtk_fig_calc_selection(), stg_rtk_fig_dirty(), stg_rtk_region_set_empty(), stg_rtk_region_set_union(), _stg_rtk_fig_t::stroke_count, _stg_rtk_fig_t::strokes, _stg_rtk_fig_t::sx, and _stg_rtk_fig_t::sy.
Referenced by stg_rtk_canvas_calc(), stg_rtk_fig_calc(), stg_rtk_fig_create(), stg_rtk_fig_origin(), stg_rtk_fig_origin_global(), stg_rtk_fig_scale(), and stg_rtk_fig_show().
void stg_rtk_fig_calc_selection | ( | stg_rtk_fig_t * | fig | ) |
References LTOD, _stg_rtk_fig_t::max_x, _stg_rtk_fig_t::max_y, _stg_rtk_fig_t::min_x, _stg_rtk_fig_t::min_y, _stg_rtk_fig_t::region, stg_rtk_fig_dirty(), and stg_rtk_region_set_union_rect().
Referenced by stg_rtk_fig_calc().
void stg_rtk_fig_dirty | ( | stg_rtk_fig_t * | fig | ) |
References _stg_rtk_canvas_t::bg_dirty, _stg_rtk_fig_t::canvas, _stg_rtk_canvas_t::fg_dirty, _stg_rtk_canvas_t::fg_dirty_region, _stg_rtk_fig_t::layer, _stg_rtk_fig_t::region, stg_rtk_region_set_union(), and TRUE.
Referenced by stg_rtk_fig_calc(), stg_rtk_fig_calc_selection(), stg_rtk_fig_clear(), stg_rtk_fig_image_alloc(), stg_rtk_fig_point_alloc(), stg_rtk_fig_polygon_alloc(), and stg_rtk_fig_text_alloc().
int stg_rtk_fig_hittest | ( | stg_rtk_fig_t * | fig, | |
int | dx, | |||
int | dy | |||
) |
References DX_TO_GX, DY_TO_GY, GX_TO_LX, GY_TO_LY, _stg_rtk_fig_t::max_x, and _stg_rtk_fig_t::max_y.
Referenced by stg_rtk_canvas_pick_fig().
void stg_rtk_fig_on_mouse | ( | stg_rtk_fig_t * | fig, | |
int | event, | |||
int | mode | |||
) |
References _stg_rtk_fig_t::mouse_fn.
void stg_rtk_fig_render | ( | stg_rtk_fig_t * | fig | ) |
References _stg_rtk_canvas_t::bg_pixmap, _stg_rtk_fig_t::canvas, _stg_rtk_stroke_t::color, _stg_rtk_canvas_t::colormap, _stg_rtk_stroke_t::drawfn, _stg_rtk_canvas_t::fg_pixmap, _stg_rtk_canvas_t::gc, _stg_rtk_fig_t::layer, _stg_rtk_stroke_t::linewidth, _stg_rtk_canvas_t::linewidth, _stg_rtk_fig_t::show, stg_rtk_fig_mouse_over(), stg_rtk_fig_mouse_selected(), stg_rtk_fig_render_selection(), _stg_rtk_fig_t::stroke_count, and _stg_rtk_fig_t::strokes.
Referenced by stg_rtk_canvas_render().
void stg_rtk_fig_render_xfig | ( | stg_rtk_fig_t * | fig | ) |
Generated on Wed Jun 3 23:12:29 2009 for Stage by
