pub enum RoiInteractionMode {
ArcThreePoint,
ArcPolar,
ArcTranslation,
BandBounded,
BandUnbounded,
}Expand description
A named way to edit a region of interest with handles (silx
RoiInteractionMode, items/_roi_base.py:132). Only the shape kinds that
mix in silx’s InteractionModeMixIn — Roi::Arc and Roi::Band —
offer more than one mode; every other kind has a single fixed edit
behaviour and no interaction mode (see Roi::available_interaction_modes).
Variants§
ArcThreePoint
Arc edited by three points on its main-radius circle (silx
ArcROI.ThreePointMode; the silx default for an arc).
ArcPolar
Arc edited by polar anchors — mid / weight / start / end (silx
ArcROI.PolarMode).
ArcTranslation
Arc anchors only translate the whole ROI (silx ArcROI.MoveMode).
BandBounded
Band drawn bounded on both sides as a four-corner polygon (silx
BandROI.BoundedMode; the silx default for a band).
BandUnbounded
Band drawn unbounded as three parallel infinite lines (silx
BandROI.UnboundedMode).
Implementations§
Trait Implementations§
Source§impl Clone for RoiInteractionMode
impl Clone for RoiInteractionMode
Source§fn clone(&self) -> RoiInteractionMode
fn clone(&self) -> RoiInteractionMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RoiInteractionMode
Source§impl Debug for RoiInteractionMode
impl Debug for RoiInteractionMode
impl Eq for RoiInteractionMode
Source§impl Hash for RoiInteractionMode
impl Hash for RoiInteractionMode
Source§impl PartialEq for RoiInteractionMode
impl PartialEq for RoiInteractionMode
Source§fn eq(&self, other: &RoiInteractionMode) -> bool
fn eq(&self, other: &RoiInteractionMode) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RoiInteractionMode
Auto Trait Implementations§
impl Freeze for RoiInteractionMode
impl RefUnwindSafe for RoiInteractionMode
impl Send for RoiInteractionMode
impl Sync for RoiInteractionMode
impl Unpin for RoiInteractionMode
impl UnsafeUnpin for RoiInteractionMode
impl UnwindSafe for RoiInteractionMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.