OEMonomerColorMonochrome
Attention
This is a preliminary API and may be improved based on user feedback. It is currently available in C++ and Python.
class OEMonomerColorMonochrome : public OEMonomerColorBase
The OEMonomerColorMonochrome class is used
to assign the same color to every monomer.
The following methods are publicly inherited from OEMonomerColorBase:
Constructors
OEMonomerColorMonochrome()
Default constructor that sets the color to OEBlack.
OEMonomerColorMonochrome(const OESystem::OEColor& color)
Constructor with the given color (OEColor).
operator()
OESystem::OEColor operator()(const OEChem::OEMonomerData &) const
Returns the color that the functor was initialized with for each monomer input.
CreateCopy
base_type* CreateCopy() const
Deep copy constructor that returns a copy of the object.
The memory for the returned OEMonomerColorMonochrome
object is dynamically allocated and owned by the caller.