OEMonomerColorDefault

Attention

This is a preliminary API and may be improved based on user feedback. It is currently available in C++ and Python.

class OEMonomerColorDefault : public OEMonomerColorBase

The OEMonomerColorDefault class is used to assign colors to monomers for depiction.

The following methods are publicly inherited from OEMonomerColorBase:

CreateCopy

operator()

Constructors

OEMonomerColorDefault()

Default constructor.

operator()

OESystem::OEColor operator()(const OEChem::OEMonomerData &) const

Returns the color assigned to a specific monomer (OEMonomerData). Standard amino acids are colored by their properties (containing sulphur, aliphatic, aromatic, acidic, basic, hydroxylic, amidic). OEBlack is returned for all other monomers.

CreateCopy

base_type* CreateCopy() const

Deep copy constructor that returns a copy of the object. The memory for the returned OEMonomerColorDefault object is dynamically allocated and owned by the caller.