libgpac
Documentation of the core library of GPAC
svg_geometry.c File Reference
#include "visual_manager.h"
#include "nodes_stacks.h"
+ Include dependency graph for svg_geometry.c:

Functions

Bool svg_drawable_is_over (Drawable *drawable, Fixed x, Fixed y, DrawAspect2D *asp, GF_TraverseState *tr_state, GF_Rect *glyph_rc)
 
void svg_clone_use_stack (GF_Compositor *compositor, GF_TraverseState *tr_state)
 
void svg_drawable_3d_pick (Drawable *drawable, GF_TraverseState *tr_state, DrawAspect2D *asp)
 
void svg_drawable_pick (GF_Node *node, Drawable *drawable, GF_TraverseState *tr_state)
 
static void svg_drawable_traverse (GF_Node *node, void *rs, Bool is_destroy, void(*rebuild_path)(GF_Node *, Drawable *, SVGAllAttributes *), Bool is_svg_rect, Bool is_svg_path)
 
static GF_Err svg_rect_add_arc (GF_Path *gp, Fixed end_x, Fixed end_y, Fixed cx, Fixed cy, Fixed rx, Fixed ry)
 
static void svg_rect_rebuild (GF_Node *node, Drawable *stack, SVGAllAttributes *atts)
 
static void svg_traverse_rect (GF_Node *node, void *rs, Bool is_destroy)
 
void compositor_init_svg_rect (GF_Compositor *compositor, GF_Node *node)
 
static void svg_circle_rebuild (GF_Node *node, Drawable *stack, SVGAllAttributes *atts)
 
static void svg_traverse_circle (GF_Node *node, void *rs, Bool is_destroy)
 
void compositor_init_svg_circle (GF_Compositor *compositor, GF_Node *node)
 
static void svg_ellipse_rebuild (GF_Node *node, Drawable *stack, SVGAllAttributes *atts)
 
static void svg_traverse_ellipse (GF_Node *node, void *rs, Bool is_destroy)
 
void compositor_init_svg_ellipse (GF_Compositor *compositor, GF_Node *node)
 
static void svg_line_rebuild (GF_Node *node, Drawable *stack, SVGAllAttributes *atts)
 
static void svg_traverse_line (GF_Node *node, void *rs, Bool is_destroy)
 
void compositor_init_svg_line (GF_Compositor *compositor, GF_Node *node)
 
static void svg_polyline_rebuild (GF_Node *node, Drawable *stack, SVGAllAttributes *atts)
 
static void svg_traverse_polyline (GF_Node *node, void *rs, Bool is_destroy)
 
void compositor_init_svg_polyline (GF_Compositor *compositor, GF_Node *node)
 
static void svg_polygon_rebuild (GF_Node *node, Drawable *stack, SVGAllAttributes *atts)
 
static void svg_traverse_polygon (GF_Node *node, void *rs, Bool is_destroy)
 
void compositor_init_svg_polygon (GF_Compositor *compositor, GF_Node *node)
 
static void svg_path_rebuild (GF_Node *node, Drawable *stack, SVGAllAttributes *atts)
 
static void svg_traverse_path (GF_Node *node, void *rs, Bool is_destroy)
 
void compositor_init_svg_path (GF_Compositor *compositor, GF_Node *node)
 

Function Documentation

◆ svg_drawable_is_over()

Bool svg_drawable_is_over ( Drawable *  drawable,
Fixed  x,
Fixed  y,
DrawAspect2D *  asp,
GF_TraverseState *  tr_state,
GF_Rect glyph_rc 
)

!watchout!! asp2D.width is 0 if stroke not visible due to painting properties - we must override this for picking

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_clone_use_stack()

void svg_clone_use_stack ( GF_Compositor *  compositor,
GF_TraverseState *  tr_state 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_drawable_3d_pick()

void svg_drawable_3d_pick ( Drawable *  drawable,
GF_TraverseState *  tr_state,
DrawAspect2D *  asp 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_drawable_pick()

void svg_drawable_pick ( GF_Node node,
Drawable *  drawable,
GF_TraverseState *  tr_state 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_drawable_traverse()

static void svg_drawable_traverse ( GF_Node node,
void *  rs,
Bool  is_destroy,
void(*)(GF_Node *, Drawable *, SVGAllAttributes *)  rebuild_path,
Bool  is_svg_rect,
Bool  is_svg_path 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_rect_add_arc()

static GF_Err svg_rect_add_arc ( GF_Path gp,
Fixed  end_x,
Fixed  end_y,
Fixed  cx,
Fixed  cy,
Fixed  rx,
Fixed  ry 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_rect_rebuild()

static void svg_rect_rebuild ( GF_Node node,
Drawable *  stack,
SVGAllAttributes atts 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_traverse_rect()

static void svg_traverse_rect ( GF_Node node,
void *  rs,
Bool  is_destroy 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compositor_init_svg_rect()

void compositor_init_svg_rect ( GF_Compositor *  compositor,
GF_Node node 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_circle_rebuild()

static void svg_circle_rebuild ( GF_Node node,
Drawable *  stack,
SVGAllAttributes atts 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_traverse_circle()

static void svg_traverse_circle ( GF_Node node,
void *  rs,
Bool  is_destroy 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compositor_init_svg_circle()

void compositor_init_svg_circle ( GF_Compositor *  compositor,
GF_Node node 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_ellipse_rebuild()

static void svg_ellipse_rebuild ( GF_Node node,
Drawable *  stack,
SVGAllAttributes atts 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_traverse_ellipse()

static void svg_traverse_ellipse ( GF_Node node,
void *  rs,
Bool  is_destroy 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compositor_init_svg_ellipse()

void compositor_init_svg_ellipse ( GF_Compositor *  compositor,
GF_Node node 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_line_rebuild()

static void svg_line_rebuild ( GF_Node node,
Drawable *  stack,
SVGAllAttributes atts 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_traverse_line()

static void svg_traverse_line ( GF_Node node,
void *  rs,
Bool  is_destroy 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compositor_init_svg_line()

void compositor_init_svg_line ( GF_Compositor *  compositor,
GF_Node node 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_polyline_rebuild()

static void svg_polyline_rebuild ( GF_Node node,
Drawable *  stack,
SVGAllAttributes atts 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_traverse_polyline()

static void svg_traverse_polyline ( GF_Node node,
void *  rs,
Bool  is_destroy 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compositor_init_svg_polyline()

void compositor_init_svg_polyline ( GF_Compositor *  compositor,
GF_Node node 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_polygon_rebuild()

static void svg_polygon_rebuild ( GF_Node node,
Drawable *  stack,
SVGAllAttributes atts 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_traverse_polygon()

static void svg_traverse_polygon ( GF_Node node,
void *  rs,
Bool  is_destroy 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compositor_init_svg_polygon()

void compositor_init_svg_polygon ( GF_Compositor *  compositor,
GF_Node node 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_path_rebuild()

static void svg_path_rebuild ( GF_Node node,
Drawable *  stack,
SVGAllAttributes atts 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svg_traverse_path()

static void svg_traverse_path ( GF_Node node,
void *  rs,
Bool  is_destroy 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compositor_init_svg_path()

void compositor_init_svg_path ( GF_Compositor *  compositor,
GF_Node node 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: