stage.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <errno.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <assert.h>
#include <unistd.h>
#include <math.h>
#include <glib.h>
#include <locale.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "replace.h"
#include "stage_internal.h"
#include "config.h"
Functions | |
guchar * | pb_get_pixel (GdkPixbuf *pb, int x, int y) |
gboolean | pb_pixel_is_set (GdkPixbuf *pb, int x, int y, int threshold) |
void | pb_set_pixel (GdkPixbuf *pb, int x, int y, uint8_t val) |
void | pb_set_rect (GdkPixbuf *pb, int x, int y, int width, int height, uint8_t val) |
int | stg_init (int argc, char **argv) |
void | stg_lines_normalize (stg_line_t *lines, int num) |
void | stg_lines_scale (stg_line_t *lines, int num, double xscale, double yscale) |
void | stg_lines_translate (stg_line_t *lines, int num, double xtrans, double ytrans) |
stg_color_t | stg_lookup_color (const char *name) |
stg_point_t * | stg_points_create (size_t count) |
void | stg_points_destroy (stg_point_t *pts) |
void | stg_polygon_append_points (stg_polygon_t *poly, stg_point_t *pts, size_t count) |
void | stg_polygon_print (stg_polygon_t *poly) |
void | stg_polygon_set_points (stg_polygon_t *poly, stg_point_t *pts, size_t count) |
stg_polygon_t * | stg_polygons_create (int count) |
void | stg_polygons_destroy (stg_polygon_t *p, size_t count) |
stg_polygon_t * | stg_polygons_from_image_file (const char *filename, size_t *count) |
stg_polygon_t * | stg_polygons_from_rotrects (stg_rotrect_t *rects, size_t count, double width, double height) |
void | stg_polygons_normalize (stg_polygon_t *polys, int num, double width, double height) |
void | stg_polygons_print (stg_polygon_t *polys, unsigned int count) |
stg_polyline_t * | stg_polylines_from_image_file (const char *filename, size_t *num) |
void | stg_pose_sum (stg_pose_t *result, stg_pose_t *p1, stg_pose_t *p2) |
void | stg_print_err (const char *err) |
void | stg_print_geom (stg_geom_t *geom) |
void | stg_print_pose (stg_pose_t *pose) |
void | stg_print_velocity (stg_velocity_t *vel) |
void | stg_quit_cancel (void) |
void | stg_quit_request (void) |
int | stg_quit_test (void) |
int | stg_rotrects_from_image_file (const char *filename, stg_rotrect_t **rects, int *rect_count, int *widthp, int *heightp) |
void | stg_rotrects_normalize (stg_rotrect_t *rects, int num) |
stg_line_t * | stg_rotrects_to_lines (stg_rotrect_t *rects, int num_rects) |
stg_msec_t | stg_timenow (void) |
stg_polygon_t * | stg_unit_polygon_create (void) |
const char * | stg_version_string (void) |
Variables | |
int | _stg_disable_gui = FALSE |
int | _stg_quit = FALSE |
Function Documentation
guchar* pb_get_pixel | ( | GdkPixbuf * | pb, | |
int | x, | |||
int | y | |||
) |
Referenced by pb_pixel_is_set(), pb_set_pixel(), and pb_set_rect().
gboolean pb_pixel_is_set | ( | GdkPixbuf * | pb, | |
int | x, | |||
int | y, | |||
int | threshold | |||
) |
void pb_set_pixel | ( | GdkPixbuf * | pb, | |
int | x, | |||
int | y, | |||
uint8_t | val | |||
) |
References pb_get_pixel(), and PRINT_WARN4.
void pb_set_rect | ( | GdkPixbuf * | pb, | |
int | x, | |||
int | y, | |||
int | width, | |||
int | height, | |||
uint8_t | val | |||
) |
void stg_lines_normalize | ( | stg_line_t * | lines, | |
int | num | |||
) |
References BILLION, stg_line_t::x1, stg_line_t::x2, stg_line_t::y1, and stg_line_t::y2.
void stg_lines_scale | ( | stg_line_t * | lines, | |
int | num, | |||
double | xscale, | |||
double | yscale | |||
) |
References stg_line_t::x1, stg_line_t::x2, stg_line_t::y1, and stg_line_t::y2.
void stg_lines_translate | ( | stg_line_t * | lines, | |
int | num, | |||
double | xtrans, | |||
double | ytrans | |||
) |
References stg_line_t::x1, stg_line_t::x2, stg_line_t::y1, and stg_line_t::y2.
stg_polyline_t* stg_polylines_from_image_file | ( | const char * | filename, | |
size_t * | num | |||
) |
void stg_quit_cancel | ( | void | ) |
References _stg_quit.
stg_line_t* stg_rotrects_to_lines | ( | stg_rotrect_t * | rects, | |
int | num_rects | |||
) |
Variable Documentation
int _stg_disable_gui = FALSE |
int _stg_quit = FALSE |
Referenced by stg_print_err(), stg_quit_cancel(), stg_quit_request(), stg_quit_test(), and stg_world_update().
Generated on Wed Jun 3 23:12:29 2009 for Stage by
