pub struct PointDraw {
pub geometry: PointsHandle,
pub transform: Mat4,
pub style: PointStyle,
pub labels: Option<PointLabels>,
pub line_joins: bool,
}Expand description
A point/scatter mark: geometry handle + transform + style (per-point colour is in the geometry).
Fields§
§geometry: PointsHandleShared handle to the point geometry (uploaded once per revision).
transform: Mat4Object→world transform applied to the points.
style: PointStyleMarker size, shape, and size mode shared by every point in the mark.
labels: Option<PointLabels>Per-point text labels / hover tooltips. None = unlabelled. CPU-only
presentation (not uploaded); see PointLabels.
line_joins: boolPresentation hint: these discs exist only to patch the GPU line
pipeline’s butt-cap joins (one disc per polyline vertex, sized to
the line width). Vector backends that draw round joins natively —
the SVG bundle fallback — skip these draws entirely; they are
visually redundant there and dominate output size. false for
real data markers (scatter, chart3d points).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PointDraw
impl RefUnwindSafe for PointDraw
impl Send for PointDraw
impl Sync for PointDraw
impl Unpin for PointDraw
impl UnsafeUnpin for PointDraw
impl UnwindSafe for PointDraw
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,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.