Skip to content

glyph_object

GlyphObject

Bases: PolydataObject, PropertyMixin

Class representing the glyph as a 3D object.

Parameters:

Name Type Description Default
source vtkPolyDataAlgorithm

Algorithm that generates vtkPolyData which will be copied at each point

required

actors property

Return all actors added to object.

glyph = vtkGlyph3D() instance-attribute

input_data property writable

Returns the vtkPolyData object before applying a glyph filter.

labels = None instance-attribute

mapper_input_connection = self.glyph.GetOutputPort() instance-attribute

picked_point_ids = [] instance-attribute

scale_factor property writable

scale_scalar_name property writable

scale_vector_name property writable

silhouette_object = None instance-attribute

source = source instance-attribute

__init__(source)

catch_event(picked_point_id, renderer=None, event=None, key=None, **kwargs)

Catch mouse button events.

Parameters:

Name Type Description Default
picked_point_id int

Picked point ID

required
renderer vtkRenderer

Renderer on which event catched

None
event str

Mouse event name

None
key str

Currently pressed key name

None
**kwargs dict

Additional kwargs, for compability

{}

Returns:

Name Type Description
list list

Actors to represent selected object

extract_input_point_ids()

Extract coordinates of the individual glyphs and point IDs from its surface points.

select_glyph(point_id, renderer)

select_mapper_input_data(input_point_ids)

Select glyphs.

Parameters:

Name Type Description Default
input_point_ids list

List of point IDs for selection

required

Returns:

Name Type Description
vtkPolyData vtkPolyData

Polydata for corresponding points

stop_glyph_selection(renderer)