7 G_DEFINE_TYPE (
GooLaserData, goo_laser_data, GOO_TYPE_CANVAS_ITEM_SIMPLE)
53 goo_canvas_item_add_child (parent, item, -1);
54 g_object_unref (item);
73 simple->bounds.x1 = gld->
bb_min[0] - padding;
74 simple->bounds.y1 = gld->
bb_min[1] - padding;
75 simple->bounds.x2 = gld->
bb_max[0] + padding;
76 simple->bounds.y2 = gld->
bb_max[1] + padding;
89 const GooCanvasBounds *bounds)
104 cairo_set_antialias( cr, CAIRO_ANTIALIAS_NONE );
107 cairo_set_source_rgb(cr, 0.3, 0, 1.0);
108 cairo_arc(cr, 0,0, 0.4, 0.0, 2*
M_PI);
123 gboolean is_pointer_event)
140 GooCanvasItemSimpleClass *simple_class = (GooCanvasItemSimpleClass*) klass;
static gboolean goo_laser_data_is_item_at(GooCanvasItemSimple *simple, gdouble x, gdouble y, cairo_t *cr, gboolean is_pointer_event)
static void goo_laser_data_update(GooCanvasItemSimple *simple, cairo_t *cr)
static void goo_laser_data_paint(GooCanvasItemSimple *simple, cairo_t *cr, const GooCanvasBounds *bounds)
void ld_get_oriented_bbox(LDP ld, double horizon, oriented_bbox *obbox)
void cr_ld_draw(cairo_t *cr, LDP ld, ld_style *p)
GType goo_laser_data_get_type(void) G_GNUC_CONST
static void goo_laser_data_init(GooLaserData *gld)
void oplus_d(const double x1[3], const double x2[3], double res[3])
static void goo_laser_data_class_init(GooLaserDataClass *klass)
int ld_get_bounding_box(LDP ld, double bb_min[2], double bb_max[2], double pose[3], double horizon)
GooCanvasItem * goo_laser_data_new(GooCanvasItem *parent, viewer_params *p, LDP ld)