Scene Components

class yt_idv.scene_components.base_component.SceneComponent(**kwargs)[source]

Bases: traitlets.traitlets.HasTraits

base_quad

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

clear_region

A boolean (True, False) trait.

cmap_log

A boolean (True, False) trait.

cmap_max

A casting version of the float trait.

cmap_min

A casting version of the float trait.

colormap

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

colormap_fragment
colormap_vertex
data

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

display_bounds

An instance of a Python tuple.

draw(scene, program)[source]
fb

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

fragment_shader
geometry_shader
name = 'undefined'
priority

A casting version of the int trait.

property program1
property program2
render_gui(imgui, renderer)[source]
render_method

A trait for unicode strings.

run_program(scene)[source]
scale

A casting version of the float trait.

vertex_shader
visible

A boolean (True, False) trait.

class yt_idv.scene_components.blocks.BlockRendering(**kwargs)[source]

Bases: yt_idv.scene_components.base_component.SceneComponent

A class that renders block data. It may do this in one of several ways, including mesh outline. This allows us to render a single collection of blocks multiple times in a single scene and to separate out the memory handling from the display.

box_width

A casting version of the float trait.

data

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

draw(scene, program)[source]
name = 'block_rendering'
priority = 10
render_gui(imgui, renderer)[source]
tf_log

A boolean (True, False) trait.

tf_max

A casting version of the float trait.

tf_min

A casting version of the float trait.

transfer_function

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

class yt_idv.scene_components.mesh.MeshRendering(**kwargs)[source]

Bases: yt_idv.scene_components.base_component.SceneComponent

data

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

draw(scene, program)[source]
name = 'mesh_rendering'
class yt_idv.scene_components.rgba.RGBADisplay(**kwargs)[source]

Bases: yt_idv.scene_components.base_component.SceneComponent

data

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

draw(scene, program)[source]
name = 'rgba_display'
priority = 20
class yt_idv.scene_components.rgba.RGBALinePlot(**kwargs)[source]

Bases: yt_idv.scene_components.base_component.SceneComponent

data

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

draw(scene, program)[source]
name = 'rgba_line_plot'
priority = 20