pyrocko.gui.sparrow.state

Classes

Background(**kwargs)

Undocumented.

BackgroundGradient(**kwargs)

Undocumented.

FocalPointChoice(...)

Any str out of ['center', 'target'].

LightingChoice(...)

Any str out of ['workbench', 'desk', 'interrogation', 'morning', 'forenoon', 'afternoon', 'evening', 'warm', 'tilda', 'disco'].

ShadingChoice(...)

Any str out of ['flat', 'gouraud', 'phong', 'pbr'].

ViewerGuiState(**kwargs)

Undocumented.

ViewerState(**kwargs)

Undocumented.

class FocalPointChoice(...) str[source]

Bases: StringChoice

Any str out of ['center', 'target'].

Variables:
  • choices – Allowed choices (list of str).

  • ignore_case – Whether to behave case-insensitive (bool, default: False).

class ShadingChoice(...) str[source]

Bases: StringChoice

Any str out of ['flat', 'gouraud', 'phong', 'pbr'].

Variables:
  • choices – Allowed choices (list of str).

  • ignore_case – Whether to behave case-insensitive (bool, default: False).

class LightingChoice(...) str[source]

Bases: StringChoice

Any str out of ['workbench', 'desk', 'interrogation', 'morning', 'forenoon', 'afternoon', 'evening', 'warm', 'tilda', 'disco'].

Variables:
  • choices – Allowed choices (list of str).

  • ignore_case – Whether to behave case-insensitive (bool, default: False).

class ViewerGuiState(**kwargs)[source]

Bases: TalkieRoot

Undocumented.

panels_visible

bool, default: True

size

tuple of 2 float objects, default: (100.0, 100.0)

fixed_size

tuple of 2 float objects, optional

focal_point

str (FocalPointChoice), default: 'center'

detached

bool, default: False

tcursor

pyrocko.util.get_time_float (pyrocko.guts.Timestamp), optional

class Background(**kwargs)[source]

Bases: Object

Undocumented.

color

pyrocko.color.Color, default: Color('black')

class BackgroundGradient(**kwargs)[source]

Bases: Background

Undocumented.

color_top

pyrocko.color.Color, default: Color('skyblue1')

color_bottom

pyrocko.color.Color, default: Color('white')

class ViewerState(**kwargs)[source]

Bases: TalkieRoot

Undocumented.

lat

float, default: 0.0

lon

float, default: 0.0

depth

float, default: 0.0

strike

float, default: 90.0

dip

float, default: 0.0

distance

float, default: 3.0

elements

list of pyrocko.gui.talkie.Talkie objects, default: []

tmin

pyrocko.util.get_time_float (pyrocko.guts.Timestamp), optional

tmax

pyrocko.util.get_time_float (pyrocko.guts.Timestamp), optional

tduration

float (pyrocko.guts.Duration), optional

tposition

float, default: 0.0

lighting

str (LightingChoice), default: 'workbench'

background

Background, default: Background(color=<pyrocko.color.Color object at 0x7f3caee3d250>)