OEAtomSVGMarkupBase

Attention

PRELIMINARY-IMAGE This is a preliminary API until 2018.Feb and may be improved based on user feedback. It is currently available in C++ and Python.

class OEAtomSVGMarkupBase

OEAtomSVGMarkupBase is an abstract base class. Concrete classes derived from the base class define the markup of the atoms in .svg images that are generated when calling the OERenderMolecule function. Drawing elements representing atoms in the .svg images are grouped together in the following format in which the <group id> and <class name> strings can be defined in the derived concrete classes.

<g id='<group id>' class='<class name>'>
..
list of drawing elements
..
</g>
The following classes derive from this class:

CreateCopy

OEAtomSVGMarkupBase *CreateCopy() const =0

Virtual const constructor which allows copying of concrete derived objects using a reference to this base class.

GetClassName

std::string GetClassName(const OEChem::OEAtomBase &) const =0

Returns the <class name> associated with a specific atom group in the .svg image. This is a virtual method that has to be implemented in the concrete derived classes.

GetGroupId

std::string GetGroupId(const OEChem::OEAtomBase &) const =0

Returns the <group id> associated with a specific atom group in the .svg image. This is a virtual method that has to be implemented in the concrete derived classes.