visbrain.objects.VispyObj¶
- class visbrain.objects.VispyObj(name, visual, transform=None, parent=None, verbose=None)[source][source]¶
Take a VisPy visual and turn it into a compatible Visbrain object.
- Parameters:
- namestring
The name of the VisPy object.
- transformVisPy.visuals.transforms | None
VisPy transformation to set to the parent node.
- parentVisPy.parent | None
Hypnogram object parent.
- verbosestring
Verbosity level.
Methods
__init__
(name, visual[, transform, parent, ...])Init.
animate
([step, interval, iterations])Animate the object.
copy
()Get a copy of the object.
Tree description.
preview
([bgcolor, axis, xyz, show, obj, ...])Previsualize the result.
record_animation
(name[, n_pic, bgcolor])Record an animated object and save as a *.gif file.
render
()Render the canvas.
screenshot
(saveas[, print_size, dpi, unit, ...])Take a screeshot of the scene.
set_shortcuts_to_canvas
(canvas)Set shortcuts to a VisbrainCanvas.
to_dict
()Return a dictionary of all colorbar args.
to_kwargs
([addisminmax])Return a dictionary for input arguments.
update
()Fonction to run when an update is needed.
update_from_dict
(kwargs)Update attributes from a dictionary.