MCPcopy Create free account

hub / github.com/vispy/vispy / functions

Functions4,580 in github.com/vispy/vispy

↓ 15 callersFunction_as_rgba
Create an RGBA color from a color or a scalar intensity. Examples -------- >>> # Specify the full RGBA color. >>> _as_rgba((0.2, 0.3,
vispy/visuals/filters/mesh.py:225
↓ 15 callersFunctionas_enum
Turn a possibly string enum into an integer enum.
vispy/gloo/glir.py:420
↓ 15 callersFunctionas_vec4
Convert `obj` to 4-element vector (numpy array with shape[-1] == 4) Parameters ---------- obj : array-like Original object.
vispy/visuals/transforms/_util.py:50
↓ 15 callersMethodconnect
(self)
vispy/visuals/line/line.py:216
↓ 15 callersMethoddtype
Describes the format of the elements in the buffer.
vispy/visuals/collections/array_list.py:126
↓ 15 callersMethodflush
Flush all current commands to the GLIR interpreter.
vispy/gloo/glir.py:582
↓ 15 callersMethodglAttachShader
(self, program, shader)
vispy/gloo/gl/_proxy.py:22
↓ 15 callersMethodglBufferData
(self, target, data, usage)
vispy/gloo/gl/_proxy.py:66
↓ 15 callersMethodglCreateShader
(self, type)
vispy/gloo/gl/_proxy.py:122
↓ 15 callersMethodglEnableVertexAttribArray
(self, index)
vispy/gloo/gl/_proxy.py:190
↓ 15 callersMethodglVertexAttribPointer
(self, indx, size, type, normalized, stride, offset)
vispy/gloo/gl/_proxy.py:492
↓ 15 callersMethodscale_and_set_data
Upload new data to the GPU.
vispy/visuals/_scalable_textures.py:211
↓ 15 callersMethodset_clim
Set clim and return if a texture update is needed. In this default implementation, it is assumed changing the color limit never requi
vispy/visuals/_scalable_textures.py:93
↓ 14 callersMethoddisconnect
Disconnect a callback from this emitter. If no callback is specified, then *all* callbacks are removed. If the callback was not alrea
vispy/util/event.py:372
↓ 14 callersMethodglCompileShader
(self, shader)
vispy/gloo/gl/_proxy.py:98
↓ 14 callersMethodunfreeze
Unfreeze the object so that additional properties can be added
vispy/util/frozen.py:23
↓ 14 callersMethodupdate
Call update() on both this widget and the internal canvas.
vispy/app/qt.py:79
↓ 14 callersMethodview
Get the :class:`vispy.visuals.visual.VisualView` for this visual.
vispy/visuals/image.py:400
↓ 13 callersFunction_screenshot
Take a screenshot using glReadPixels. Not sure where to put this yet, so a private function for now. Used in make.py. Parameters --------
vispy/gloo/util.py:10
↓ 13 callersFunctionassert_is
Backport
vispy/testing/_testing.py:122
↓ 13 callersFunctionassert_not_in
Backport
vispy/testing/_testing.py:114
↓ 13 callersMethodclose
Close the canvas Notes ----- This will usually destroy the GL context. For Qt, the context (and widget) will be destr
vispy/app/canvas.py:459
↓ 13 callersFunctioncreate_colorbar
(pos, size, orientation, label='label string here')
vispy/visuals/tests/test_colorbar.py:14
↓ 13 callersMethodroll
Get the camera roll angle in degrees.
vispy/scene/cameras/turntable.py:123
↓ 13 callersMethodset_data
(self, vertices, filled, outline)
examples/demo/gloo/primitive_mesh_viewer_qt.py:284
↓ 12 callersMethodLoadLibrary
(self, fname)
vispy/gloo/gl/tests/test_names.py:20
↓ 12 callersMethod_orientation
Returns +1 if edge[0]->point is clockwise from edge[0]->edge[1], -1 if counterclockwise, and 0 if parallel.
vispy/geometry/triangulation.py:731
↓ 12 callersFunction_safe_rep
Helper for assert_* ports
vispy/testing/_testing.py:35
↓ 12 callersMethod_update_data
(self)
vispy/visuals/filters/mesh.py:533
↓ 12 callersMethodadd_ref
Add a reference for the backend object that gives access to the low level context. Used in vispy.app.canvas.backends. The given name m
vispy/gloo/context.py:221
↓ 12 callersMethodblocker
Return an EventBlocker to be used in 'with' statements. Examples -------- For example, one could do:: with emitt
vispy/util/event.py:525
↓ 12 callersFunctioncalc_sq_distance
(x1, y1, x2, y2)
vispy/geometry/curves.py:78
↓ 12 callersFunctioncalc_sq_distance
(x1, y1, x2, y2)
vispy/util/svg/geometry.py:76
↓ 12 callersFunctionensure_bytes
(x)
vispy/ext/cocoapy.py:340
↓ 12 callersMethodget_transform
Return a transform mapping between any two coordinate systems. Parameters ---------- map_from : str The starting
vispy/visuals/transforms/transform_system.py:312
↓ 12 callersMethodglFinish
(self, )
vispy/gloo/gl/_proxy.py:194
↓ 12 callersMethodglPixelStorei
(self, pname, param)
vispy/gloo/gl/_proxy.py:366
↓ 12 callersMethodglTexImage2D
(self, target, level, internalformat, format, type, pixels)
vispy/gloo/gl/_proxy.py:418
↓ 12 callersMethodglUseProgram
(self, program)
vispy/gloo/gl/_proxy.py:474
↓ 12 callersMethodlink_view
Link this axis to a ViewBox This makes it so that the axis's domain always matches the visible range in the ViewBox. Paramet
vispy/scene/widgets/axis.py:61
↓ 12 callersFunctionread_mesh
Read mesh data from file. Parameters ---------- fname : str File name to read. Format will be inferred from the filename.
vispy/io/mesh.py:14
↓ 12 callersFunctionread_png
Read a PNG file to RGB8 or RGBA8 Requires Pillow. Parameters ---------- filename : str File to read. Returns -------
vispy/io/image.py:99
↓ 12 callersMethodset_data
Set the mesh data Parameters ---------- vertices : array-like | None The vertices. faces : array-like | N
vispy/visuals/mesh.py:155
↓ 11 callersMethod__init__
(self)
vispy/glsl/build_spatial_filters.py:486
↓ 11 callersFunction_normalize
Normalize an array from the range [cmin, cmax] to [0,1], with optional clipping.
vispy/color/colormap.py:54
↓ 11 callersFunctionapiname
Define what name the API uses, the short or the gl version.
codegen/createglapi.py:219
↓ 11 callersMethodglClear
(self, mask)
vispy/gloo/gl/_proxy.py:78
↓ 11 callersMethodglCreateBuffer
(self, )
vispy/gloo/gl/_proxy.py:214
↓ 11 callersMethodglDetachShader
(self, program, shader)
vispy/gloo/gl/_proxy.py:166
↓ 11 callersMethodglEnable
(self, cap)
vispy/gloo/gl/_proxy.py:186
↓ 11 callersMethodglGetError
(self, )
vispy/gloo/gl/_proxy.py:258
↓ 11 callersMethodglTexParameterf
(self, target, pname, param)
vispy/gloo/gl/_proxy.py:422
↓ 11 callersMethodglViewport
(self, x, y, width, height)
vispy/gloo/gl/_proxy.py:496
↓ 11 callersFunctionloaded_vispy_modules
Import the given module in subprocess and return loaded modules Import a certain module in a clean subprocess and return the vispy modules th
vispy/util/tests/test_import.py:21
↓ 11 callersMethodnormalize
Returns a normalized (unit length) version of the quaternion.
vispy/util/quaternion.py:52
↓ 11 callersMethodplot
(self, data, dx=0)
examples/demo/scene/oscilloscope.py:173
↓ 11 callersMethodset_data
(self, pos)
examples/basics/visuals/line_prototype.py:68
↓ 10 callersFunctionSkipTest
Backport for raising SkipTest that gives a better traceback.
vispy/testing/_testing.py:28
↓ 10 callersMethod_modifiers
(self, event)
vispy/app/backends/_qt.py:718
↓ 10 callersFunctionassert_chain_types
(chain, types)
vispy/visuals/transforms/tests/test_transforms.py:22
↓ 10 callersFunctioncreateBufferTexture
createBufferTexture - create an 8-bit texture render target
examples/demo/gloo/jfa/jfa_translation.py:104
↓ 10 callersFunctionget_default_clim_from_data
Compute a reasonable clim from the min and max, taking nans into account. If there are no non-finite values (nan, inf, -inf) this is as fast as i
vispy/visuals/_scalable_textures.py:24
↓ 10 callersFunctionget_default_clim_from_dtype
Get min and max color limits based on the range of the dtype.
vispy/visuals/_scalable_textures.py:12
↓ 10 callersMethodglTexParameteri
(self, target, pname, param)
vispy/gloo/gl/_proxy.py:424
↓ 10 callersMethodmeasure_fps
Measure the current FPS Sets the update window, connects the draw event to update_fps and sets the callback function. Parame
vispy/app/canvas.py:486
↓ 10 callersMethodrotate
Rotate the matrix by some angle about a given axis. The rotation is applied *after* the transformations already present in t
vispy/visuals/transforms/linear.py:447
↓ 10 callersMethodset_data
Set the data used to draw this visual. Parameters ---------- pos : array Array of shape (..., 2) or (..., 3) spec
vispy/visuals/line/line.py:163
↓ 10 callersMethodset_shaders
Set the vertex and fragment shaders. Parameters ---------- vert : str Source code for vertex shader. frag
vispy/gloo/program.py:176
↓ 10 callersMethodsleep
Sleep for the given duration in seconds. This is used to reduce CPU stress when VisPy is run in interactive mode. Parameters
vispy/app/application.py:76
↓ 10 callersMethodunblock
Unblock this emitter. See :func:`event.EventEmitter.block`. Note: Use of ``unblock(None)`` only reverses the effect of ``block(None)`
vispy/util/event.py:508
↓ 10 callersFunctionuse
Set the usage options for vispy Specify what app backend and GL backend to use. Parameters ---------- app : str The app back
vispy/util/wrappers.py:23
↓ 9 callersMethodSkip
(self)
vispy/app/backends/_wx.py:200
↓ 9 callersMethod__init__
(self, ncolors=6, hue_start=0, saturation=1.0, value=1.0, controls=None, interpolation='linea
vispy/color/colormap.py:755
↓ 9 callersMethod_process_backend_kwargs
Simple utility to retrieve kwargs in predetermined order. Also checks whether the values of the backend arguments do not violate the b
vispy/app/base.py:82
↓ 9 callersMethod_vispy_mouse_move
(self, **kwargs)
vispy/app/base.py:196
↓ 9 callersMethodappend
Add a new transform to the end of this chain. Parameters ---------- tr : instance of Transform The trans
vispy/visuals/transforms/chain.py:180
↓ 9 callersMethodassert_result
(self, key=None, **kwargs)
vispy/util/tests/test_emitter_group.py:237
↓ 9 callersMethodattach
Attach this tranform to a canvas Parameters ---------- canvas : instance of Canvas The canvas.
vispy/visuals/transforms/interactive.py:29
↓ 9 callersFunctioncreate_cube
Generate vertices & indices for a filled and outlined cube Returns ------- vertices : array Array of vertices suitable for use as
vispy/geometry/generation.py:16
↓ 9 callersMethodcreate_from_axis_angle
Classmethod to create a quaternion from an axis-angle representation. (angle should be in radians).
vispy/util/quaternion.py:207
↓ 9 callersFunctioncreate_plane
Generate vertices & indices for a filled and outlined plane. Parameters ---------- width : float Plane width. height : float
vispy/geometry/generation.py:92
↓ 9 callersMethodglBindFramebuffer
(self, target, framebuffer)
vispy/gloo/gl/_proxy.py:34
↓ 9 callersMethodglClearColor
(self, red, green, blue, alpha)
vispy/gloo/gl/_proxy.py:82
↓ 9 callersMethodglCreateProgram
(self, )
vispy/gloo/gl/_proxy.py:118
↓ 9 callersMethodorigin
(self, current=None, previous=None)
vispy/util/svg/path.py:24
↓ 9 callersMethodquit
Quit the native GUI event loop.
vispy/app/application.py:176
↓ 9 callersMethodref
A reference (stored internally via a weakref) to an object that the backend system can use to obtain the low-level information of the
vispy/gloo/context.py:242
↓ 9 callersMethodregister
(self)
vispy/ext/cocoapy.py:818
↓ 9 callersMethodrender
Render the scene to an offscreen buffer and return the image array. Parameters ---------- region : tuple | None S
vispy/scene/canvas.py:228
↓ 9 callersMethodreset
(self, rad, radCore, deltaAng, ex1, ex2, sigma, velInner, velOuter)
examples/demo/gloo/galaxy/galaxy_simulation.py:117
↓ 9 callersFunctionrun_subprocess
Run command using subprocess.Popen Run command and wait for command to complete. If the return code was zero then return, otherwise raise Cal
vispy/util/wrappers.py:96
↓ 9 callersMethodwriteLine
Simple writeLine function to write a line of code to the file. The encoding is done here, and a newline character is added.
vispy/io/wavefront.py:256
↓ 8 callersMethod_add_dep
Increment the reference count for *dep*. If this is a new dependency, then connect to its *changed* event.
vispy/visuals/shaders/shader_object.py:111
↓ 8 callersMethod_add_tri
(self, a, b, c)
vispy/geometry/triangulation.py:740
↓ 8 callersMethod_adjacent_tri
Given a triangle formed by edge and i, return the triangle that shares edge. *i* may be either a point or the entire triangle.
vispy/geometry/triangulation.py:457
↓ 8 callersMethod_modifiers
(self, pygletmod=None)
vispy/app/backends/_pyglet.py:439
↓ 8 callersMethod_on_event
(self, event)
vispy/app/backends/_sdl2.py:357
↓ 8 callersMethod_parse_state
Helper to parse event.state into modifier keys. Parameters ---------- e : tk.Event The passed in Event.
vispy/app/backends/_tk.py:477
↓ 8 callersMethodadd_subvisual
Add a subvisual Parameters ---------- visual : instance of Visual The visual to add.
vispy/visuals/visual.py:625
↓ 8 callersMethodas_matrix
(self)
vispy/visuals/transforms/linear.py:217
← previousnext →101–200 of 4,580, ranked by callers