SBColorSchemePerChainIllustrate#

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.

Please refer to samson.SBNodeColorScheme.

See also

SAMSON SDK: SBDColorSchemePerChainIllustrate

class samson.SBColorSchemePerChainIllustrate(*args, **kwargs)#

Bases: SBNodeColorScheme

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.SBColorSchemePerChainIllustrate) -> None

Constructs a chain-illustration based color scheme.

  1. __init__(self: samson.SBColorSchemePerChainIllustrate, nodeIndexer: samson.SBNodeIndexer, colorPalette: samson.SBPalette = None) -> None

Construct the color scheme for nodeIndexer with colorPalette.

The colorization is based on the range of chain IDs identified in nodeIndexer.

Parameters:
  • nodeIndexer (samson.SBNodeIndexer) – A indexer of nodes to which the color scheme is applied

  • colorPalette (samson.SBPalette, default=None) –

    A color palette.

    If None, the default color palette associated with this color scheme is used.

getDefaultMaximumValue(self: samson.SBColorSchemePerChainIllustrate) int#

Returns the default maximum value for the attribute bounds determined when constructing the color scheme based on the input node indexer

getDefaultMinimumValue(self: samson.SBColorSchemePerChainIllustrate) int#

Returns the default minimum value for the attribute bounds determined when constructing the color scheme based on the input node indexer

getMaximumValue(self: samson.SBColorSchemePerChainIllustrate) int#

Returns the current maximum value for the attribute bounds used for colorization

getMinimumValue(self: samson.SBColorSchemePerChainIllustrate) int#

Returns the current minimum value for the attribute bounds used for colorization

setMaximumValue(self: samson.SBColorSchemePerChainIllustrate, arg0: SupportsInt | SupportsIndex) None#

Sets the current maximum value for the attribute bounds used for colorization

setMinimumValue(self: samson.SBColorSchemePerChainIllustrate, arg0: SupportsInt | SupportsIndex) None#

Sets the current minimum value for the attribute bounds used for colorization