OEResidueSVGStandardMarkup

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 OEResidueSVGStandardMarkup : public OEResidueSVGMarkupBase

This class represents OEResidueSVGStandardMarkup residue SVG markup functor. If this functor is passed to the OE2DActiveSiteDisplayOptions::SetResidueSVGMarkupFunctor method, the residues will be in svg image when calling the OERenderActiveSite function.

The following methods are publicly inherited from OEResidueSVGMarkupBase:

CreateCopy GetClassName GetGroupId

Constructors

OEResidueSVGStandardMarkup(const std::string prefix="",
                           const std::string classname="residue")

Default constructor.

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

By default, the following will be showed in svg image for marking a Leucine residue with chain id ‘A’ and residue number 715:

<g id='LEU-A-715' class='residue'>
..
list of drawing elements
..
</g>

CreateCopy

OEResidueSVGMarkupBase *CreateCopy() const

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

GetClassName

std::string GetClassName(const OEChem::OEResidue &residue) const

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

GetGroupId

std::string GetGroupId(const OEChem::OEResidue &residue) const

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