OEAtomSVGAtomIdxMarkup

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 OEAtomSVGAtomIdxMarkup : public OEAtomSVGMarkupBase

This class represents the OEAtomSVGAtomIdxMarkup atom SVG markup functor. If this functor is passed to the OE2DMolDisplayOptions.SetAtomSVGMarkupFunctor method, the atoms will be not marked in the svg image when calling the OERenderMolecule function.

The following methods are publicly inherited from OEAtomSVGMarkupBase:

CreateCopy GetClassName GetGroupId

Constructors

OEAtomSVGAtomIdxMarkup(const std::string prefix="",
                       const std::string classname="atom")

Default constructor.

prefix
The string that will be added at the beginning of each atom group id. By default, no prefix will be added.
classname
The class name that is going to be used to mark atoms.

By default, the svg image for the first atom of a molecule will be marked as follows:

   <g id='idx=0' class='atom'>
   ..
   list of drawing elements
   ..
   <circle ... />
   </g>

The transparent circle is drawn with the atom position
:oe:meth:`OEDepict::OE2DAtomDisplay::GetCoords` center.
This can be used to manipulate the generated :file:`.svg` image
and associate event with the SVG groups.

CreateCopy

OEAtomSVGMarkupBase *CreateCopy() const

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

GetClassName

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

Returns the string that specifies the group id of an atom in an svg image.

GetGroupId

std::string GetGroupId(const OEChem::OEAtomBase &a) const

Returns the string that specifies the class name of an atom in an svg image.