MCPcopy Create free account

hub / github.com/vispy/vispy / functions

Functions4,580 in github.com/vispy/vispy

↓ 387 callersMethodappend
Append a new function to the end of this chain.
vispy/visuals/shaders/function.py:670
↓ 186 callersFunctionassert_equal
Backport
vispy/testing/_testing.py:98
↓ 182 callersMethodrun
Enter the native GUI event loop. Parameters ---------- allow_interactive : bool Is the application allowed to han
vispy/app/application.py:144
↓ 167 callersMethodrender
Render the canvas to an offscreen buffer and return the image array. Parameters ---------- alpha : bool If True (
vispy/app/canvas.py:560
↓ 165 callersMethodshow
Show or hide the canvas Parameters ---------- visible : bool Make the canvas visible. run : bool
vispy/app/canvas.py:434
↓ 153 callersMethodclear
Pop the whole queue (and associated queues) and return a list of commands.
vispy/gloo/glir.py:556
↓ 150 callersMethodget
Get a transform from the cache that maps along *path*, which must be a list of Transforms to apply in reverse order (last transform is
vispy/visuals/transforms/_util.py:151
↓ 139 callersFunctionassert_raises
Backport
vispy/testing/_testing.py:72
↓ 131 callersFunction_get_gl_func
(name, restype, argtypes)
vispy/gloo/gl/gl2.py:64
↓ 128 callersMethodadd_view
Create a new ViewBox and add it as a child widget. Parameters ---------- row : int The row in which to a
vispy/scene/widgets/grid.py:224
↓ 126 callersMethodset_viewport
(self, *args)
vispy/gloo/context.py:174
↓ 115 callersMethoddraw
(self)
examples/benchmark/scene_test_2.py:92
↓ 94 callersFunctionTestingCanvas
Avoid importing scene until necessary.
vispy/testing/_testing.py:307
↓ 85 callersFunctionassert_image_approved
Check that an image test result matches a pre-approved standard. If the result does not match, then the user can optionally invoke a GUI to c
vispy/testing/image_tester.py:76
↓ 82 callersMethodconnect
Alias for self.events.timeout.connect().
vispy/app/timer.py:168
↓ 81 callersMethodcopy
Create an exact copy of this quaternion.
vispy/util/quaternion.py:28
↓ 76 callersMethodappend
(self, *args, **kwargs)
examples/basics/visuals/line_prototype.py:134
↓ 76 callersMethodupdate
Inform the backend that the Canvas needs to be redrawn Parameters ---------- event : None Not used.
vispy/app/canvas.py:448
↓ 75 callersFunctionrun_tests_if_main
Run tests in a given file if it is run as a script
vispy/testing/_testing.py:364
↓ 69 callersMethodadd
Add one or more EventEmitter instances to this emitter group. Each keyword argument may be specified as either an EventEmitter instanc
vispy/util/event.py:630
↓ 66 callersMethodconnect
Connect this emitter to a new callback. Parameters ---------- callback : function | tuple *callback* may be eithe
vispy/util/event.py:263
↓ 65 callersMethodadd_widget
Add a new widget to this grid. This will cause other widgets in the grid to be resized to make room for the new widget. Can be used t
vispy/scene/widgets/grid.py:91
↓ 61 callersMethodget_transform
Return a transform mapping between any two coordinate systems. Parameters ---------- map_from : str The starting
vispy/visuals/visual.py:184
↓ 58 callersMethodset_state
Set the OpenGL rendering state, optionally using a preset. Parameters ---------- preset : {'opaque', 'translucent', 'additive
vispy/gloo/wrappers.py:447
↓ 57 callersMethodresize
Set the texture size and format Parameters ---------- shape : tuple of integers New texture shape in zyx order. O
vispy/gloo/texture.py:259
↓ 57 callersMethodupdate
Update the Visual
vispy/visuals/visual.py:263
↓ 56 callersMethodcommand
Send a command. See the command spec at: https://github.com/vispy/vispy/wiki/Spec.-GLIR
vispy/gloo/glir.py:543
↓ 52 callersMethodset_data
(self, data, *args, **kwargs)
vispy/visuals/tests/test_scalable_textures.py:20
↓ 50 callersMethodset_gl_state
Define the set of GL state parameters to use when drawing. The arguments are forwarded to :func:`vispy.gloo.wrappers.set_state`. Thi
vispy/visuals/visual.py:347
↓ 48 callersMethodset_range
Set the range of the view region for the camera Parameters ---------- x : tuple | None X range. y : tuple
vispy/scene/cameras/base_camera.py:248
↓ 47 callersMethoddtype
Buffer dtype
vispy/gloo/buffer.py:199
↓ 45 callersMethodbind
Bind a VertexBuffer that has structured data Parameters ---------- data : VertexBuffer The vertex buffer to bind.
vispy/gloo/program.py:281
↓ 45 callersMethodupdate
Update simulation
examples/demo/gloo/galaxy/galaxy_simulation.py:193
↓ 44 callersFunctionrotate
The 4x4 rotation matrix for rotation about a vector. Parameters ---------- angle : float The angle of rotation, in degrees. a
vispy/util/transforms.py:56
↓ 43 callersFunctionassert_in
Backport
vispy/testing/_testing.py:82
↓ 40 callersMethodreplace
Set verbatim code replacement It is strongly recommended to use function['$foo'] = 'bar' where possible because template variables ar
vispy/visuals/shaders/function.py:382
↓ 40 callersFunctiontime
()
vispy/util/ptime.py:14
↓ 39 callersMethodset_current
Make this the active GL canvas Parameters ---------- event : None Not used.
vispy/app/canvas.py:413
↓ 39 callersMethodset_data
(self, n_levels, cmap)
examples/scene/isocurve_for_trisurface_qt.py:138
↓ 38 callersFunctioncreate_visual_node
(subclass: _T)
vispy/scene/visuals.py:109
↓ 38 callersMethodextend
Extend a ColorArray with new colors Parameters ---------- colors : instance of ColorArray The new colors.
vispy/color/color_array.py:211
↓ 38 callersMethodmap
(self, t)
vispy/color/colormap.py:641
↓ 38 callersMethodset_data
Set data in the buffer (deferred operation). This completely resets the size and contents of the buffer. Parameters --------
vispy/gloo/buffer.py:87
↓ 36 callersMethodadd_grid
Create a new Grid and add it as a child widget. Parameters ---------- row : int The row in which to add
vispy/scene/widgets/grid.py:202
↓ 34 callersMethodconfigure
Automatically configure the TransformSystem: * canvas_transform maps from the Canvas logical pixel coordinate system to the framebu
vispy/visuals/transforms/transform_system.py:175
↓ 34 callersFunctionload_data_file
Get a standard vispy demo data file Parameters ---------- fname : str The filename on the remote ``demo-data`` repository to down
vispy/util/fetching.py:22
↓ 33 callersMethodattach
Attach this tranform to a canvas
examples/basics/visuals/line_prototype.py:155
↓ 33 callersMethoddisconnect
Alias for self.events.timeout.disconnect().
vispy/app/timer.py:172
↓ 33 callersFunctionfunc
(x, y)
examples/demo/gloo/imshow.py:17
↓ 33 callersMethodmap
Map coordinates Parameters ---------- coords : array-like Coordinates to map. Returns -------
vispy/visuals/transforms/linear.py:97
↓ 31 callersMethodprocess_events
Process all pending GUI events. If the mainloop is not running, this should be done regularly to keep the visualization interactive an
vispy/app/application.py:69
↓ 31 callersMethodwrite
This classmethod is the entry point for writing mesh data to OBJ. Parameters ---------- fname : string The filena
vispy/io/wavefront.py:220
↓ 29 callersMethodset_clear_color
Set the screen clear color This is a wrapper for gl.glClearColor. Parameters ---------- color : str | tuple | instan
vispy/gloo/wrappers.py:218
↓ 29 callersMethodtranslate
(self)
vispy/visuals/transforms/linear.py:153
↓ 29 callersMethodtriangulate
Triangulates the set of vertices and stores the triangles in faces and the convex hull in convex_hull.
vispy/geometry/polygon.py:106
↓ 28 callersMethodglGetUniformLocation
(self, program, name)
vispy/gloo/gl/_proxy.py:314
↓ 28 callersMethodremove
Remove a function from the chain.
vispy/visuals/shaders/function.py:694
↓ 28 callersMethodrotate
(self, event)
examples/basics/visuals/box.py:42
↓ 26 callersMethodcompile
Compile all code and return a dict {name: code} where the keys are determined by the keyword arguments passed to __init__(). Paramete
vispy/visuals/shaders/compiler.py:45
↓ 26 callersMethoddraw
Draw the attribute arrays in the specified mode. Parameters ---------- mode : str | GL_ENUM 'points', 'lines', 'l
vispy/gloo/program.py:464
↓ 26 callersMethodexp
Returns the exponent of the quaternion. (not tested)
vispy/util/quaternion.py:84
↓ 26 callersMethodget_vertices
Get the vertices Parameters ---------- indexed : str | None If Note, return an array (N,3) of the positions of ve
vispy/geometry/meshdata.py:215
↓ 26 callersMethodstart
(self)
examples/demo/scene/oscilloscope.py:53
↓ 25 callersMethodadd
Add an item to the list unless it is already present. If the item is an expression, then a semicolon will be appended to it in the fi
vispy/visuals/shaders/function.py:760
↓ 25 callersMethodfreeze
Freeze the object so that only existing properties can be set
vispy/util/frozen.py:19
↓ 25 callersMethodglBindBuffer
(self, target, buffer)
vispy/gloo/gl/_proxy.py:30
↓ 25 callersFunctionperspective
Create perspective projection matrix Parameters ---------- fovy : float The field of view along the y axis. aspect : float
vispy/util/transforms.py:159
↓ 25 callersFunctiontranslate
Translate by an offset (x, y, z) . Parameters ---------- offset : array-like, shape (3,) Translation in x, y, z. dtype : dtyp
vispy/util/transforms.py:13
↓ 25 callersMethodupdate
Called to inform any listeners that this transform has changed.
vispy/visuals/transforms/base_transform.py:146
↓ 24 callersFunctionassert_true
Backport
vispy/testing/_testing.py:90
↓ 24 callersFunctione
()
vispy/util/tests/test_event_emitter.py:492
↓ 24 callersMethodnode_transform
Return the transform that maps from the coordinate system of *self* to the local coordinate system of *node*. Note that ther
vispy/scene/node.py:594
↓ 24 callersMethodupdate
Emit an event to inform listeners that properties of this Node have changed. Also request a canvas update.
vispy/scene/node.py:326
↓ 22 callersFunctionassert_state
(a, b)
vispy/util/tests/test_event_emitter.py:557
↓ 22 callersMethodglGetParameter
(self, pname)
vispy/gloo/gl/_proxy.py:302
↓ 22 callersMethodinsert
Insert a new function into the chain at *index*.
vispy/visuals/shaders/function.py:687
↓ 22 callersMethodtime
(self)
vispy/app/canvas.py:679
↓ 22 callersMethodupdate_gl_state
Modify the set of GL state parameters to use when drawing. The arguments are forwarded to :func:`vispy.gloo.wrappers.set_state`. Thi
vispy/visuals/visual.py:371
↓ 21 callersFunctionget_colormap
Obtain a colormap by name. Parameters ---------- name : str | Colormap Colormap name. Can also be a Colormap for pass-through.
vispy/color/colormap.py:1174
↓ 21 callersMethodread
Entry point for reading OBJ files. Parameters ---------- fname : str The name of the file to read.
vispy/io/wavefront.py:53
↓ 21 callersMethodscale
The scale of a gesture_zoom event
vispy/scene/events.py:82
↓ 20 callersMethodassert_result
(self, key=None, **kwargs)
vispy/util/tests/test_event_emitter.py:453
↓ 20 callersMethodglGetAttribLocation
(self, program, name)
vispy/gloo/gl/_proxy.py:246
↓ 19 callersMethoddependencies
Return all dependencies required to use this object. The last item in the list is *self*.
vispy/visuals/shaders/shader_object.py:80
↓ 19 callersMethodget_faces
Array (Nf, 3) of vertex indices, three per triangular face. If faces have not been computed for this mesh, returns None.
vispy/geometry/meshdata.py:162
↓ 19 callersMethodglBindTexture
(self, target, texture)
vispy/gloo/gl/_proxy.py:42
↓ 19 callersFunctionuse_app
Get/create the default Application object It is safe to call this function multiple times, as long as backend_name is None or matches the alr
vispy/app/_default_app.py:13
↓ 18 callersMethodchanged
Inform dependents that this shaderobject has changed.
vispy/visuals/shaders/shader_object.py:137
↓ 18 callersMethodclose
Close the context.
vispy/app/backends/_offscreen_util.py:72
↓ 18 callersMethodformat
The texture format (color channels).
vispy/gloo/texture.py:203
↓ 18 callersMethodview_changed
(self)
vispy/scene/cameras/magnify.py:150
↓ 17 callersMethodactivate
(self)
vispy/gloo/glir.py:1388
↓ 16 callersMethod_update
(self)
vispy/visuals/border.py:129
↓ 16 callersFunctionassert_changed
(*objs)
vispy/visuals/shaders/tests/test_function.py:325
↓ 16 callersFunctioncreate_sphere
Create a sphere Parameters ---------- rows : int Number of rows (for method='latitude' and 'cube'). cols : int Number
vispy/geometry/generation.py:413
↓ 16 callersMethoddraw_visual
Draw a visual and its children to the canvas or currently active framebuffer. Parameters ---------- visual : Visual
vispy/scene/canvas.py:287
↓ 16 callersMethodglShaderSource
(self, shader, source)
vispy/gloo/gl/_proxy.py:390
↓ 16 callersMethodmap
(self, coords)
examples/benchmark/scene_test_1.py:82
↓ 16 callersMethodnorm
Returns the norm of the quaternion norm = w**2 + x**2 + y**2 + z**2
vispy/util/quaternion.py:32
↓ 16 callersMethodstop
Stop the timer.
vispy/app/timer.py:124
next →1–100 of 4,580, ranked by callers