OrientedGlyphs

class m3sh.vis.OrientedGlyphs(points, vectors, source, src_xform)[source]

Bases: Prop, PropertyMixin, MapperMixin, GlyphMixin

Glyph base class.

Base class for all simple oriented glyphs. Displays a scaled and oriented source shape at all point locations.

Parameters:
  • points (array_like) – Point coordinates.

  • vectors (array_like) – Orientation defining vectors.

  • source – Source object.

  • src_xform (vtkTransform) – Source transformation.

Note

If array_like parameters are of type ndarray their data buffer is shared with VTK’s data objects (use copies to decouple storage).

Attributes

actor

Actor instance.

bounds

Axis aligned bounding box.

color

Color property.

name

Prop name.

opacity

Opacity property.

pickable

Pickable property.

prop

Wrapped VTK instance.

size

Size property.

visible

Visibility property.

Methods

colorize(scalars)

lookuptable([range, gradient, logscale, size])

Modify lookup table properties.

modified()

Update notification.

scale(values)

Scale glyph geometry.