InfLineGraphic#

InfLineGraphic#

Constructor#

InfLineGraphic(data[, axis, thickness, ...])

Create a collection of infinite lines.

Properties#

InfLineGraphic.alpha

The opacity of the graphic

InfLineGraphic.alpha_mode

How the alpha is handled by the renderer

InfLineGraphic.axes

InfLineGraphic.axis

the axis the lines are defined along ("x", "y", "z"), or None if set from endpoints

InfLineGraphic.block_events

Used to block events for a graphic and prevent recursion.

InfLineGraphic.block_handlers

Used to block event handlers for a graphic and prevent recursion.

InfLineGraphic.cmap

Get or set the colormap

InfLineGraphic.cmap_range

Get or set the (min, max) of the cmap_transform that is mapped onto the colormap

InfLineGraphic.cmap_transform

InfLineGraphic.colors

Get or set the colors

InfLineGraphic.dash_pattern

Get or set the dash pattern.

InfLineGraphic.data

Get or set the graphic's data.

InfLineGraphic.deleted

used to emit an event after the graphic is deleted

InfLineGraphic.end_is_infinite

Get or set whether the end of each line is extended to infinity

InfLineGraphic.event_handlers

Registered event handlers.

InfLineGraphic.imgui_right_click

The imgui popup that is opened by a right-click on this graphic.

InfLineGraphic.name

Graphic name

InfLineGraphic.offset

[x, y, z]

InfLineGraphic.rotation

Orientation of the graphic as a quaternion

InfLineGraphic.scale

(x, y, z) scaling factor

InfLineGraphic.size_space

The coordinate space in which the size is expressed ('screen', 'world', 'model')

InfLineGraphic.start_is_infinite

Get or set whether the start of each line is extended to infinity

InfLineGraphic.supported_events

events supported by this graphic

InfLineGraphic.thickness

Get or set the line thickness

InfLineGraphic.thin

infinite lines do not support the thin line material

InfLineGraphic.tooltip_format

set a custom tooltip format function which takes a pick_info dict and returns a str to be displayed in the tooltip

InfLineGraphic.visible

Whether the graphic is visible

InfLineGraphic.world_object

Associated pygfx WorldObject.

Methods#

InfLineGraphic.add_axes()

Add axes onto this Graphic

InfLineGraphic.add_event_handler(*args)

Register an event handler.

InfLineGraphic.add_linear_region_selector(...)

Add a LinearRegionSelector.

InfLineGraphic.add_linear_selector(*args, ...)

Adds a LinearSelector.

InfLineGraphic.add_polygon_selector(*args, ...)

Add a PolygonSelector.

InfLineGraphic.add_rectangle_selector(*args, ...)

Add a RectangleSelector.

InfLineGraphic.append_imgui_right_click([gui])

Append imgui elements to the right-click popup of this graphic.

InfLineGraphic.clear_event_handlers()

clear all event handlers added to this graphic

InfLineGraphic.format_pick_info(pick_info)

Takes a pygfx.PointerEvent and returns formatted pick info.

InfLineGraphic.map_model_to_world(position)

map position from model (data) space to world space, basically applies the world affine transform

InfLineGraphic.map_world_to_model(position)

map position from world space to model (data) space, basically applies the inverse world affine transform

InfLineGraphic.remove_event_handler(...)

remove a registered event handler

InfLineGraphic.remove_imgui_right_click()

Remove and return the right-click popup of this graphic

InfLineGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

InfLineGraphic.set_imgui_right_click([...])

Set the imgui popup that is opened by a right-click on this graphic, replaces the popup of the subplot or Figure for this graphic.