helios.backends.fury.tools.Uniforms

class helios.backends.fury.tools.Uniforms(uniforms)[source]

Bases: object

Creates an object which store and execute an uniform variable.

Parameters

uniforms (list) – List of Uniform objects.

Examples

uniforms = [
    Uniform(name='edgeWidth', uniform_type='f', value=edgeWidth)...
]
CustomUniforms = Uniforms(markerUniforms)
add_shader_callback(
        sq_actor, CustomUniforms)
sq_actor.CustomUniforms = CustomUniforms
sq_actor.CustomUniforms.edgeWidth = 0.5

Methods

__call__(_caller, _event, calldata=None)[source]

This method should be used as a callback for a vtk Observer

Execute the shader program with the given uniform variables.