ComponentRegistration

ComponentRegistration#

namedtuple ComponentRegistration(name: str, target: type, component: type, source: str)[source]#

Describe one registered plotter component.

Returned by registered_plotter_components().

Added in version 0.48.0.

Attributes:
namestr

The namespace the component is attached under (e.g. 'scalar_bars').

targettype

The PyVista plotter class (or base class) the component is registered against.

componenttype

The component class itself.

sourcestr

Human-readable origin in the form 'module.qualname' for explicit registrations, or the entry-point value for plugin- discovered ones — useful for debugging which plugin registered a given component.

Fields:
  1.  name (str) – Alias for field number 0

  2.  target (type) – Alias for field number 1

  3.  component (type) – Alias for field number 2

  4.  source (str) – Alias for field number 3