SBColorSchemeCPKPerChainCarbons#

This class describes a color scheme that sets colors for carbons based on their chain ID and colors from the the Corey-Pauling-Koltun (CPK) color scheme for other atom element types.

Please refer to samson.SBNodeColorScheme.

See also

SAMSON SDK: SBDColorSchemeCPKPerChainCarbons

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

Bases: SBNodeColorScheme

This class describes a color scheme that sets colors for carbons based on their chain IDs and colors from the Corey-Pauling-Koltun (CPK) color scheme for other atom element types.

Overloaded function.

  1. __init__(self: samson.SBColorSchemeCPKPerChainCarbons) -> None

Constructs a color scheme.

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

Constructs the color scheme for nodeIndexer with the given colorPalette.

The colorization is based on the range of chain IDs identified from the 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, then the default color palette associated with this color scheme will be used.

getDefaultMaximumValue(self: samson.SBColorSchemeCPKPerChainCarbons) 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.SBColorSchemeCPKPerChainCarbons) 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.SBColorSchemeCPKPerChainCarbons) int#

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

getMinimumValue(self: samson.SBColorSchemeCPKPerChainCarbons) int#

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

setMaximumValue(self: samson.SBColorSchemeCPKPerChainCarbons, arg0: int) None#

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

setMinimumValue(self: samson.SBColorSchemeCPKPerChainCarbons, arg0: int) None#

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