Automatic generation produced by ISE Eiffel
class EG_FORCE_DIRECTED_LAYOUT General cluster: view description: "EG_FORCE_DIRECTED_LAYOUT is a force directed layout using a spring particle system and a Barnes and Hut solver. The complexity is therfore O(n log n) where n is the number of linkables. Links between nodes behave as if they where springs. The higher stiffness the stronger the springs. All nodes are repulsing each other from each other as if they where magnets with same polarity. The higher electrical_repulsion the stronger the repulsion. All nodes fall into the center. The position of the center is (center_x, center_y) and the higher center_attraction the faster the nodes fall into the center. theta is the error variable for Barnes and Hut where 0 is low error and slow calculation and 100 is high error and fast calculation. " create: make_with_world Ancestors EG_LAYOUT* EV_MODEL_DOUBLE_MATH Action sequences stop_actions: EV_NOTIFY_ACTION_SEQUENCE Queries arc_cosine (v: REAL_64): REAL_64 arc_sine (v: REAL_64): REAL_64 arc_tangent (v: REAL_64): REAL_64 between (n, a, b: REAL_64): BOOLEAN ceiling (v: REAL_64): REAL_64 center_attraction: INTEGER_32 center_x: INTEGER_32 center_y: INTEGER_32 cosine (v: REAL_64): REAL_64 dabs (v: REAL_64): REAL_64 delta_x (angle, length: REAL_64): REAL_64 delta_y (angle, length: REAL_64): REAL_64 distance (x1, y1, x2, y2: REAL_64): REAL_64 distance_from_line (x, y, x1, y1, x2, y2: REAL_64): REAL_64 electrical_repulsion: INTEGER_32 Euler: REAL_64 exp (x: REAL_64): REAL_64 floor (v: REAL_64): REAL_64 is_stopped: BOOLEAN last_theta_average: REAL_64 line_angle (x1, y1, x2, y2: REAL_64): REAL_64 log (v: REAL_64): REAL_64 log10 (v: REAL_64): REAL_64 log_2 (v: REAL_64): REAL_64 modulo (a, b: REAL_64): REAL_64 move_threshold: REAL_64 Pi: REAL_64 Pi_2: REAL_64 Pi_4: REAL_64 point_on_ellipse (x, y, xc, yc, r1, r2: REAL_64): BOOLEAN point_on_ellipse_boundary (x, y, xc, yc, r1, r2, width: REAL_64): BOOLEAN point_on_line (x, y, x1, y1, x2, y2, width: REAL_64): BOOLEAN point_on_polygon (x, y: REAL_64; points: SPECIAL [EV_COORDINATE]): BOOLEAN point_on_rectangle (x, y, x1, y1, x2, y2: REAL_64): BOOLEAN point_on_rotated_ellipse (x, y, xc, yc, r1, r2, angle: REAL_64): BOOLEAN point_on_rotated_ellipse_boundary (x, y, xc, yc, r1, r2, angle, width: REAL_64): BOOLEAN point_on_segment (x, y, x1, y1, x2, y2, width: REAL_64): BOOLEAN sine (v: REAL_64): REAL_64 sqrt (v: REAL_64): REAL_64 Sqrt2: REAL_64 stiffness: INTEGER_32 tangent (v: REAL_64): REAL_64 theta: INTEGER_32 world: EG_FIGURE_WORLD Commands layout layout_cluster (cluster: EG_CLUSTER_FIGURE; level: INTEGER_32) layout_cluster_only (cluster: EG_CLUSTER_FIGURE) preset (a_level: INTEGER_32) reset set_center (ax, ay: INTEGER_32) set_center_attraction (a_value: INTEGER_32) set_electrical_repulsion (a_value: INTEGER_32) set_move_threshold (d: INTEGER_32) set_stiffness (a_value: INTEGER_32) set_theta (a_theta: INTEGER_32) set_world (a_world: [like world] EG_FIGURE_WORLD) stop -- Generated by Eiffel Studio --
For more details: eiffel.org