Trait SelectSettings

Source
pub trait SelectSettings<P: Sub>
where P::Output: InnerSpace,
{ // Required method fn grab_distance(&self) -> <P::Output as VectorSpace>::Scalar; // Provided methods fn connect(&mut self, _points: &[P], _index: usize, _selected: &[usize]) { ... } fn special(&mut self, _points: &[P], _index: usize, _selected: &[usize]) { ... } }
Expand description

A trait for configuring selection settings for point objects.

The SelectSettings trait is generic over the point type P.

Required Methods§

Source

fn grab_distance(&self) -> <P::Output as VectorSpace>::Scalar

Returns the grab distance for selecting points.

§Returns

The grab distance as the scalar type of the point’s vector space.

Provided Methods§

Source

fn connect(&mut self, _points: &[P], _index: usize, _selected: &[usize])

Connects points during selection.

§Parameters
  • points: A slice of points of type P.
  • index: The index of the currently selected point.
  • selected: A slice of selected point indices.
Source

fn special(&mut self, _points: &[P], _index: usize, _selected: &[usize])

Performs special selection behavior.

§Parameters
  • points: A slice of points of type P.
  • index: The index of the currently selected point.
  • selected: A slice of selected point indices.

Implementors§