Struct pathfinder::Group[][src]

pub struct Group {
    pub settings: Node,
    pub nodes: Vec<Node>,
}

Holds a set of nodes and applies properties to all child nodes when drawn. The group itself has no displayed output and is not visible.

Fields

Methods

impl Group
[src]

Constructs a new Group

Converts a list of tuples (x,y) to a Vector of Groups. Names are assigned from "A" and upwards automatically.

use pathfinder::Group;
let list = [(0,0), (10, 10), (15, 15)];
let groups = Group::from_list(&list);
assert_eq!(groups.len(), 3);

Links together two groups.

use pathfinder::{Group, Square, Coordinate, Location};
let b: Group = Group::new("B", Coordinate::new(100,100));
let mut a: Group = Group::new("A", Coordinate::new(0,0));
a.link(&b);

impl<'a, 'b> Group
[src]

Returns the nodes that exists inside the Group.

Adds a Node dynamically to the Group.

Adds a Node with a static distance from the center of the Group.

Adds a Node with a specific minimum and maximum distance from the center of the Group.

Constructs a new node for the Group and mirrors the properties to it.

Removes all non-essentials from the standard implementation.

Pushes a Node to the Group.

Returns a dynamic radius based on the number of Nodes in the Group.

Generates an image::Rgba based on the color of the Group and the distance from center.

Trait Implementations

impl Clone for Group
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Group
[src]

Formats the value using the given formatter. Read more

impl<'a, 'b> Location for Group
[src]

impl<'a, 'b> Draw for Group
[src]

Draws the Nodes inside that Group. If none the Group is draw as blank.

impl<'a, 'b> Hash for Group
[src]

Auto Trait Implementations

impl Send for Group

impl Sync for Group