OEGetLabelPosition¶
Returns the position used to add a label to an image or molecule display.
Link |
Description |
---|---|
getting label position related to atoms of a match |
|
getting label position related to set of atoms |
|
getting label position related to atoms specified by a predicate |
Note
When adding label associated with atoms it is recommended to use the
OEAddLabel
along with the OEAddHighlighting
function for visual clarity.
OE2DPoint OEGetLabelPosition(const OE2DMolDisplay &disp,const OEHighlightLabel &label,
const OEChem::OEAtomBondSet &abset);
- disp
The
OE2DMolDisplay
object on which the label is going to be positioned.- label
The
OEHighlightLabel
object that stores properties that determine the styles of the label along with the text of the label itself.- abset
The label is positioned based on the atoms stored in the
OEAtomBondSet
object.
OE2DPoint OEGetLabelPosition(const OE2DMolDisplay &disp,const OEHighlightLabel &label,
const OEChem::OEMatchBase &match);
Adds label to atoms of an OEMatchBase
object that can be
initialized by substructure search or maximum common substructure search.
disp The
OE2DMolDisplay
object on which the label is going to be positioned.
- label
The
OEHighlightLabel
object that stores properties that determine the styles of the label along with the text of the label itself.- match
The label is positioned based on the target atoms of the
OEMatchBase
object.
OE2DPoint OEGetLabelPosition(const OE2DMolDisplay &disp,const OEHighlightLabel &label,
const OESystem::OEUnaryPredicate<OEChem::OEAtomBase> &atompred);
- disp
The
OE2DMolDisplay
object on which the label is going to be positioned.- label
The
OEHighlightLabel
object that stores properties that determine the styles of the label along with the text of the label itself.- atompred
The label is positioned based on the atoms for which the given atom predicate returns true.