SBColorSchemePerStructuralModel#

This class describes a color scheme based on the structural model.

Please refer to samson.SBNodeColorScheme.

See also

SAMSON SDK: SBDColorSchemePerStructuralModel

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

Bases: SBNodeColorScheme

This class describes a per structural model color scheme

Overloaded function.

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

  2. __init__(self: samson.SBColorSchemePerStructuralModel, 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.