SBColorSchemeCPKPerStructuralModelCarbons#
This class describes a color scheme that sets colors for carbons based on their structural model 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: SBDColorSchemeCPKPerStructuralModelCarbons
- class samson.SBColorSchemeCPKPerStructuralModelCarbons(*args, **kwargs)#
Bases:
SBColorSchemePerStructuralModel
This class describes a color scheme that sets colors for carbons based on their structural model and colors from the Corey-Pauling-Koltun (CPK) color scheme for other atom element types.
Overloaded function.
__init__(self: samson.SBColorSchemeCPKPerStructuralModelCarbons) -> None
Constructs a color scheme.
__init__(self: samson.SBColorSchemeCPKPerStructuralModelCarbons, 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 structural models identified from the nodeIndexer, including parent structural models.
- 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.