ColorSchemePerChainIllustrate

Please refer to samson.DataModel.DataGraph.ColorScheme.

See also

SAMSON API: SBDColorSchemePerChainIllustrate

class samson.DataModel.Color.ColorSchemePerChainIllustrate(*args, **kwargs)

Bases: samson.DataModel.Color.ColorSchemePerAttribute_int

This class describes an illustrative color scheme based on chain ID. The colorization is done in the way that it resembles the “Molecule of the Month” style by David S. Goodsell.

Overloaded function.

  1. __init__(self: samson.DataModel.Color.ColorSchemePerChainIllustrate) -> None

  2. __init__(self: samson.DataModel.Color.ColorSchemePerChainIllustrate, nodeIndexer: samson.DataModel.DataGraph.NodeIndexer, colorPalette: samson.DataModel.Color.ColorPalette = <samson.DataModel.Color.ColorPalette object at 0x7f87fa1b02b0>) -> None

Constructs color scheme for nodeIndexer.

clone(self: samson.DataModel.DataGraph.ColorScheme) samson.DataModel.DataGraph.ColorScheme

Returns a copy of the color scheme

getColor(self: samson.DataModel.DataGraph.ColorScheme, node: samson.DataModel.DataGraph.Node = None) List[float]

Returns a color given a node

getColorPalette(self: samson.DataModel.Color.ColorSchemePerAttribute_int) samson.DataModel.Color.ColorPalette

Returns the color scheme’s color palette

static getDefaultColorPalette() samson.DataModel.Color.ColorPalette

Returns a pointer to the default color palette for this color scheme

setColorPalette(self: samson.DataModel.Color.ColorSchemePerAttribute_int, colorPalette: samson.DataModel.Color.ColorPalette) None

Sets the color scheme’s color palette

property isSerializable

Returns true when the class is serializable