Scene Components

class yt_idv.scene_components.base_component.SceneComponent(**kwargs: Any)[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.

display_name

A trait for unicode strings.

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
iso_layers

An instance of a Python list.

iso_layers_alpha

An instance of a Python list.

iso_log

A boolean (True, False) trait.

iso_tol_is_pct

A boolean (True, False) trait.

iso_tolerance

A casting version of the float trait.

name = 'undefined'
priority

A casting version of the int trait.

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

A trait for unicode strings.

run_program(scene)[source]
scale

A casting version of the float trait.

use_db

A boolean (True, False) trait.

vertex_shader
visible

A boolean (True, False) trait.

class yt_idv.scene_components.blocks.BlockRendering(**kwargs: Any)[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, scene)[source]
sample_factor

A casting version of the float trait.

slice_normal

An instance of a Python tuple.

slice_position

An instance of a Python tuple.

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.octree_blocks.OctreeBlockRendering(**kwargs: Any)[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 = 'octree_block_rendering'
priority = 10
render_gui(imgui, renderer, scene)[source]
sample_factor

A casting version of the float trait.

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: Any)[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: Any)[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: Any)[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
class yt_idv.scene_components.curves.CurveRendering(**kwargs: Any)[source]

Bases: yt_idv.scene_components.base_component.SceneComponent

A class that renders user-specified curves.

curve_rgba

An instance of a Python tuple.

data

The curve data.

draw(scene, program)[source]
line_width

A casting version of the float trait.

name = 'curve_rendering'
priority = 10
render_gui(imgui, renderer, scene)[source]
class yt_idv.scene_components.curves.CurveCollectionRendering(**kwargs: Any)[source]

Bases: yt_idv.scene_components.curves.CurveRendering

rendering a collection of curves

curve_collection

An instance of a Python list.

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 = 'multi_curve_rendering'