cls_BaseTexture - almarklein/visvis GitHub Wiki

Inherits from Wobject, Colormapable.

Base texture class for visvis 2D and 3D textures.

The BaseTexture class implements the following properties:
interpolate, shader

The BaseTexture class implements the following methods:
Refresh, SetClim, SetData

Properties

Get/Set whether to interpolate the image when zooming in (using linear interpolation).

Get the shader object for the texture. This can be used to add code of your own and customize the vertex and fragment part of the shader.

Methods

Refresh the data. If the numpy array was changed, calling this function will re-upload the data to OpenGl, making the change visible. This can be done efficiently.

Set the contrast limits. Different than the property clim, this re-uploads the texture using different transfer functions. You should use this if your data has a higher contrast resolution than 8 bits. Takes a bit more time than clim though (which basically takes no time at all).

(Re)Set the data to display. If the data has the same shape as the data currently displayed, it can be updated very efficiently.

If the data is an anisotripic array (vv.Aarray) the sampling and origin are (re-)applied.

⚠️ **GitHub.com Fallback** ⚠️