Loading...
Searching...
No Matches
MolDraw2DHelpers.h
Go to the documentation of this file.
//
// Copyright (C) 2014-2021 David Cosgrove and other RDKit contributors
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
// Original author: David Cosgrove (CozChemIx Limited)
//
// A load of helper classes used by MolDraw2D.
#ifndef RDKIT_MOLDRAW2DHELPERS_H
#define RDKIT_MOLDRAW2DHELPERS_H
#include <Geometry/point.h>
#include <RDGeneral/BetterEnums.h>
using RDGeom::Point2D;
namespace RDKit {
namespace MolDraw2D_detail {
// for aligning the drawing of text to the passed in coords.
enum class OrientType : unsigned char {
C = 0,
N,
E,
S,
W
};
enum class TextAlignType : unsigned char {
MIDDLE = 0,
START,
END
};
} // namespace MolDraw2D_detail
struct DrawColour {
double r = 0.0, g = 0.0, b = 0.0, a = 1.0;
DrawColour() = default;
DrawColour(double r, double g, double b, double a = 1.0)
: r(r), g(g), b(b), a(a) {}
bool operator==(const DrawColour &other) const {
return r == other.r && g == other.g && b == other.b && a == other.a;
}
bool operator!=(const DrawColour &other) const { return !(*this == other); }
bool feq(const DrawColour &other, double tol = 0.001,
bool ignoreAlpha = true) const {
return fabs(r - other.r) <= tol && fabs(g - other.g) <= tol &&
fabs(b - other.b) <= tol &&
(ignoreAlpha || fabs(a - other.a) <= tol);
}
DrawColour operator+(const DrawColour &other) const {
return {r + other.r, g + other.g, b + other.b, a + other.a};
}
DrawColour operator-(const DrawColour &other) const {
return {r - other.r, g - other.g, b - other.b, a - other.a};
}
DrawColour operator/(double v) const {
PRECONDITION(v != 0.0, "divide by zero");
return {r / v, g / v, b / v, a / v};
}
DrawColour operator*(double v) const { return {r * v, g * v, b * v, a * v}; }
};
typedef std::map<int, DrawColour> ColourPalette;
typedef std::vector<double> DashPattern;
// This is used to convert the line width into something that SVG and
// Cairo use. It was picked by eye, and was formerly hidden in
// MolDraw2D::getDrawLineWidth().
static const double lineWidthScaleFactor = 0.02;
//! use the RDKit's default palette r
// 201 is for hydrogens when atom symbols are not being drawn.
inline void assignDefaultPalette(ColourPalette &palette) {
palette.clear();
palette[-1] = DrawColour(0, 0, 0);
palette[0] = DrawColour(0.1, 0.1, 0.1);
palette[1] = palette[6] = DrawColour(0.0, 0.0, 0.0);
palette[7] = DrawColour(0.0, 0.0, 1.0);
palette[8] = DrawColour(1.0, 0.0, 0.0);
palette[9] = DrawColour(0.2, 0.8, 0.8);
palette[15] = DrawColour(1.0, 0.5, 0.0);
palette[16] = DrawColour(0.8, 0.8, 0.0);
palette[17] = DrawColour(0.0, 0.802, 0.0);
palette[35] = DrawColour(0.5, 0.3, 0.1);
palette[53] = DrawColour(0.63, 0.12, 0.94);
palette[201] = DrawColour(0.68, 0.85, 0.90);
};
//! use the color palette from the Avalon renderer
// 201 is for hydrogens when atom symbols are not being drawn.
inline void assignAvalonPalette(ColourPalette &palette) {
palette.clear();
palette[-1] = DrawColour(0, 0, 0);
palette[0] = DrawColour(0.1, 0.1, 0.1);
palette[1] = palette[6] = DrawColour(0.0, 0.0, 0.0);
palette[7] = DrawColour(0.0, 0.0, 1.0);
palette[8] = DrawColour(1.0, 0.0, 0.0);
palette[9] = DrawColour(0.0, 0.498, 0.0);
palette[15] = DrawColour(0.498, 0.0, 0.498);
palette[16] = DrawColour(0.498, 0.247, 0.0);
palette[17] = DrawColour(0.0, 0.498, 0.0);
palette[35] = DrawColour(0.0, 0.498, 0.0);
palette[53] = DrawColour(0.247, 0.0, 0.498);
palette[201] = DrawColour(0.68, 0.85, 0.90);
};
//! use (part of) the CDK color palette
/*!
data source:
https://github.com/cdk/cdk/blob/master/display/render/src/main/java/org/openscience/cdk/renderer/color/CDK2DAtomColors.java
*/
// 201 is for hydrogens when atom symbols are not being drawn.
inline void assignCDKPalette(ColourPalette &palette) {
palette.clear();
palette[-1] = DrawColour(0, 0, 0);
palette[0] = DrawColour(0.1, 0.1, 0.1);
palette[1] = palette[6] = DrawColour(0.0, 0.0, 0.0);
palette[7] = DrawColour(0.188, 0.314, 0.972);
palette[8] = DrawColour(1.0, 0.051, 0.051);
palette[9] = DrawColour(0.565, 0.878, 0.314);
palette[15] = DrawColour(1.0, 0.5, 0.0);
palette[16] = DrawColour(0.776, 0.776, 0.173);
palette[17] = DrawColour(0.122, 0.498, 0.122);
palette[35] = DrawColour(0.651, 0.161, 0.161);
palette[53] = DrawColour(0.580, 0.0, 0.580);
palette[5] = DrawColour(1.000, 0.710, 0.710);
palette[201] = DrawColour(0.68, 0.85, 0.90);
};
// 201 is for hydrogens when atom symbols are not being drawn.
inline void assignDarkModePalette(ColourPalette &palette) {
palette.clear();
palette[-1] = DrawColour(0.8, 0.8, 0.8);
palette[0] = DrawColour(0.9, 0.9, 0.9);
palette[1] = palette[6] = DrawColour(0.9, 0.9, 0.9);
palette[7] = DrawColour(0.33, 0.41, 0.92);
palette[8] = DrawColour(1.0, 0.2, 0.2);
palette[9] = DrawColour(0.2, 0.8, 0.8);
palette[15] = DrawColour(1.0, 0.5, 0.0);
palette[16] = DrawColour(0.8, 0.8, 0.0);
palette[17] = DrawColour(0.0, 0.802, 0.0);
palette[35] = DrawColour(0.71, 0.4, 0.07);
palette[53] = DrawColour(0.89, 0.004, 1);
palette[201] = DrawColour(0.68, 0.85, 0.90);
};
inline void assignBWPalette(ColourPalette &palette) {
palette.clear();
palette[-1] = DrawColour(0, 0, 0);
};
enum class MultiColourHighlightStyle {
CIRCLEANDLINE,
LASSO
};
BETTER_ENUM(DrawElement, uint32_t, // clang-format off
NONE = 0,
PRESHAPES = 1 << 0,
BONDS = 1 << 1,
ATOMLABELS = 1 << 2,
HIGHLIGHTS = 1 << 3,
ANNOTATIONS = 1 << 4,
RADICALS = 1 << 5,
POSTSHAPES = 1 << 6,
ALL = 0x7fffffff
);
struct RDKIT_MOLDRAW2D_EXPORT MolDrawOptions {
bool atomLabelDeuteriumTritium =
false; // toggles replacing 2H with D and 3H with T
bool dummiesAreAttachments = false; // draws "breaks" at dummy atoms
bool circleAtoms = true; // draws circles under highlighted atoms
bool splitBonds = false; // split bonds into per atom segments
// most useful for dynamic manipulation of drawing
// especially for svg
DrawColour highlightColour{1.0, 0.5, 0.5, 1.0}; // default highlight color
bool continuousHighlight = true; // highlight by drawing an outline
// *underneath* the molecule
bool fillHighlights = true; // fill the areas used to highlight atoms and
// atom regions
double highlightRadius = 0.3; // default if nothing given for a particular
// atom. units are "Angstrom"
int flagCloseContactsDist = 3; // if positive, this will be used as a cutoff
// (in pixels) for highlighting close contacts
bool includeAtomTags =
false; // toggles inclusion of atom tags in the output. does
// not make sense for all renderers.
bool clearBackground = true; // toggles clearing the background before
// drawing a molecule
DrawColour backgroundColour{
1.0, 1.0, 1.0, 1.0}; // color to be used while clearing the background
DrawColour queryColour{0.5, 0.5, 0.5,
1.0}; // color to be used for query bonds
int legendFontSize = 16; // font size (in pixels) to be used for the legend
// (if present)
double legendFraction =
0.1; // fraction of the draw panel to be used for the legend if present
int maxFontSize = 40; // maximum size in pixels for font in drawn molecule.
// -1 means no max.
int minFontSize = 6; // likewise for -1.
int fixedFontSize =
-1; // font size to use, in pixels. Default -1 means not fixed. If set,
// always used irrespective of scale, minFontSize and maxFontSize.
double annotationFontScale = 0.5; // scales font relative to atom labels for
// atom and bond annotation.
std::string fontFile = ""; // name of font file for freetype rendering. If
// given, over-rides default
// (BuiltinTelexRegular). Can also be
// BuiltinRobotoRegular.
DrawColour legendColour{0, 0,
0}; // color to be used for the legend (if present)
//! Legend position relative to the molecule (only Bottom supported in
//! drawMolecules grid; all four work for single-molecule drawing).
enum class LegendPosition { Bottom, Top, Left, Right };
LegendPosition legendPosition = LegendPosition::Bottom;
//! When legend is Left or Right, draw text vertically (one character per
//! line). Ignored for Top/Bottom.
bool legendVerticalText = true;
double multipleBondOffset = 0.15; // offset for the extra lines
// in a multiple bond as a fraction of
// mean bond length
double padding =
0.05; // fraction of empty space to leave around the molecule
double componentPadding = 0.0; // fraction of empty space to leave around
// each component in a reaction drawing
double additionalAtomLabelPadding = 0.0; // additional padding to leave
// around atom labels. Expressed as
// a fraction of the font size.
std::map<int, std::string> atomLabels; // replacement labels for atoms
bool noAtomLabels =
false; // disables inclusion of atom labels in the rendering
std::vector<std::vector<int>> atomRegions; // regions
DrawColour symbolColour{
0.0, 0.0, 0.0,
1.0}; // color to be used for the symbols and arrows in reactions
DrawColour annotationColour{0.0, 0.0, 0.0,
1.0}; // color to be used for annotations
DrawColour atomNoteColour{
0.0, 0.0, 0.0, 1.0}; // color to be used for atom indices and notes
DrawColour bondNoteColour{
0.5, 0.5, 1.0, 1.0}; // color to be used for bond indices and notes
double bondLineWidth = 2.0; // default line width when drawing bonds
bool scaleBondWidth = false; // whether to apply scale() to the bond width
bool scaleHighlightBondWidth = true; // likewise with bond highlights.
int highlightBondWidthMultiplier = 8; // what to multiply standard bond width
// by for highlighting.
bool prepareMolsBeforeDrawing = true; // call prepareMolForDrawing() on each
// molecule passed to drawMolecules()
std::vector<DrawColour> highlightColourPalette; // defining 10 default colors
// for highlighting atoms and bonds
// or reactants in a reactions
ColourPalette atomColourPalette; // the palette used to assign
// colors to atoms based on
// atomic number.
double fixedScale =
-1.0; // fixes scale to this fraction of draw window width, so
// an average bond is this fraction of the width. If
// scale comes out smaller than this, reduces scale, but
// won't make it larger. The default of -1.0 means no fix.
double fixedBondLength =
-1.0; // fixes the bond length (and hence the scale) to
// always be this number of pixels. Assuming a bond
// length in coordinates is 1, as is normal. If
// scale comes out smaller than this, reduces scale,
// but won't make it larger. The default -1.0 means no
// fix. If both fixedScale and fixedBondLength are >
// 0.0, fixedScale wins.
double rotate = 0.0; // angle in degrees to rotate coords by about centre
// before drawing.
bool addAtomIndices = false; // adds atom indices to drawings.
bool addBondIndices = false; // adds bond indices to drawings.
bool isotopeLabels = true; // adds isotope to non-dummy atoms.
bool dummyIsotopeLabels = true; // adds isotope labels to dummy atoms.
bool addStereoAnnotation = false; // adds E/Z and R/S to drawings.
bool showAllCIPCodes = false; // show CIP codes for 'or' & 'and'
// StereoGroups that are normally hidden
bool atomHighlightsAreCircles = false; // forces atom highlights always to be
// circles. Default (false) is to put
// ellipses round longer labels.
MultiColourHighlightStyle multiColourHighlightStyle =
MultiColourHighlightStyle::CIRCLEANDLINE;
bool centreMoleculesBeforeDrawing = false; // moves the centre of the drawn
// molecule to (0,0)
std::uint32_t drawingExtentsInclude =
DrawElement::ALL; // which elements should be included
// when computing drawing extents
bool explicitMethyl = false; // draw terminal methyl and related as CH3
bool includeRadicals =
true; // include radicals in the drawing (it can be useful to turn this
// off for reactions and queries)
bool includeMetadata =
true; // when possible include metadata about molecules and reactions in
// the output to allow them to be reconstructed
bool comicMode = false; // simulate hand-drawn lines for bonds. When combined
// with a font like Comic-Sans or Comic-Neue, this
// gives xkcd-like drawings.
int variableBondWidthMultiplier = 16; // what to multiply standard bond width
// by for variable attachment points.
double variableAtomRadius = 0.4; // radius value to use for atoms involved in
// variable attachment points.
DrawColour variableAttachmentColour = {
0.8, 0.8, 0.8, 1.0}; // colour to use for variable attachment points
bool includeChiralFlagLabel =
false; // add a molecule annotation with "ABS" if the chiral flag is set
bool simplifiedStereoGroupLabel =
false; // if all specified stereocenters are in a single StereoGroup,
// show a molecule-level annotation instead of the individual
// labels
std::string stereoGroupAndLabel = "and"; // String to use for enhanced stereo 'AND' groups
std::string stereoGroupOrLabel = "or"; // String to use for enhanced stereo 'OR' groups
std::string stereoGroupAbsLabel = "abs"; // String to use for enhanced stereo 'ABS' groups
bool addStereoGroupAnnotation = true; // Whether to add the enhanced stereo labels.
bool unspecifiedStereoIsUnknown = false; // if true, double bonds with
// unspecified stereo are drawn
// crossed, potential stereocenters
// with unspecified stereo are drawn
// with a wavy bond.
bool singleColourWedgeBonds =
false; // if true wedged and dashed bonds are drawn
// using symbolColour rather than inheriting
// their colour from the atoms
bool singleColourBonds = false; // if true all bonds are drawn using
// symbolColour rather than inheriting their
// colour from the atoms
bool useMolBlockWedging = false; // If the molecule came from a MolBlock,
// prefer the wedging information that
// provides. If false, use RDKit rules.
double scalingFactor = 20.0; // scaling factor used for pixels->angstrom
// when auto scaling is being used
double baseFontSize =
-1.0; // when > 0 this is used to set the baseFontSize used for text
// drawing. As a reference point: the default value for
// DrawText::baseFontSize is 0.6
bool drawMolsSameScale = true; // when drawing multiple molecules with
// DrawMolecules, forces them to use the same
// scale. Default is true.
bool useComplexQueryAtomSymbols =
true; // replace any atom, any hetero, any halo queries
// with complex query symbols A, Q, X, M, optionally followed
// by H if hydrogen is included (except for AH, which stays *).
// Default is true.
bool bracketsAroundAtomLists = true; // If true, puts brackets round atom
// lists in query atoms.
bool standardColoursForHighlightedAtoms =
false; // If true, highlighted hetero atoms are drawn in standard colours
// rather than black.
MolDrawOptions() {
highlightColourPalette.emplace_back(
DrawColour(1., 1., .67)); // popcorn yellow
highlightColourPalette.emplace_back(DrawColour(1., .8, .6)); // sand
highlightColourPalette.emplace_back(
DrawColour(1., .71, .76)); // light pink
highlightColourPalette.emplace_back(
DrawColour(.8, 1., .8)); // offwhitegreen
highlightColourPalette.emplace_back(DrawColour(.87, .63, .87)); // plum
highlightColourPalette.emplace_back(
DrawColour(.76, .94, .96)); // pastel blue
highlightColourPalette.emplace_back(
DrawColour(.67, .67, 1.)); // periwinkle
highlightColourPalette.emplace_back(DrawColour(.64, .76, .34)); // avocado
highlightColourPalette.emplace_back(
DrawColour(.56, .93, .56)); // light green
highlightColourPalette.emplace_back(DrawColour(.20, .63, .79)); // peacock
assignDefaultPalette(atomColourPalette);
}
};
} // namespace RDKit
#endif // RDKIT_MOLDRAW2DHELPERS_H
BetterEnums.h
BETTER_ENUM
#define BETTER_ENUM(Enum, Underlying,...)
Definition BetterEnums.h:17
PRECONDITION
#define PRECONDITION(expr, mess)
Definition Invariant.h:108
RDGeom::Point2D
Definition point.h:284
RDKIT_MOLDRAW2D_EXPORT
#define RDKIT_MOLDRAW2D_EXPORT
Definition export.h:321
RDKit::MolDraw2D_detail
Definition AtomSymbol.h:30
RDKit::MolDraw2D_detail::OrientType
OrientType
Definition MolDraw2DHelpers.h:26
RDKit::MolDraw2D_detail::OrientType::C
@ C
Definition MolDraw2DHelpers.h:27
RDKit::MolDraw2D_detail::OrientType::E
@ E
Definition MolDraw2DHelpers.h:29
RDKit::MolDraw2D_detail::OrientType::S
@ S
Definition MolDraw2DHelpers.h:30
RDKit::MolDraw2D_detail::OrientType::W
@ W
Definition MolDraw2DHelpers.h:31
RDKit::MolDraw2D_detail::OrientType::N
@ N
Definition MolDraw2DHelpers.h:28
RDKit::MolDraw2D_detail::TextAlignType
TextAlignType
Definition MolDraw2DHelpers.h:33
RDKit::MolDraw2D_detail::TextAlignType::MIDDLE
@ MIDDLE
Definition MolDraw2DHelpers.h:34
RDKit::MolDraw2D_detail::TextAlignType::START
@ START
Definition MolDraw2DHelpers.h:35
RDKit::MolDraw2D_detail::TextAlignType::END
@ END
Definition MolDraw2DHelpers.h:36
RDKit
Std stuff.
Definition Abbreviations.h:19
RDKit::DashPattern
std::vector< double > DashPattern
Definition MolDraw2DHelpers.h:69
RDKit::lineWidthScaleFactor
static const double lineWidthScaleFactor
Definition MolDraw2DHelpers.h:74
RDKit::MultiColourHighlightStyle
MultiColourHighlightStyle
Definition MolDraw2DHelpers.h:157
RDKit::MultiColourHighlightStyle::LASSO
@ LASSO
Definition MolDraw2DHelpers.h:159
RDKit::MultiColourHighlightStyle::CIRCLEANDLINE
@ CIRCLEANDLINE
Definition MolDraw2DHelpers.h:158
RDKit::assignDefaultPalette
void assignDefaultPalette(ColourPalette &palette)
use the RDKit's default palette r
Definition MolDraw2DHelpers.h:78
RDKit::SubsetMethod::BONDS
@ BONDS
Definition Subset.h:32
RDKit::assignAvalonPalette
void assignAvalonPalette(ColourPalette &palette)
use the color palette from the Avalon renderer
Definition MolDraw2DHelpers.h:96
RDKit::assignDarkModePalette
void assignDarkModePalette(ColourPalette &palette)
Definition MolDraw2DHelpers.h:136
RDKit::ColourPalette
std::map< int, DrawColour > ColourPalette
Definition MolDraw2DHelpers.h:68
RDKit::assignBWPalette
void assignBWPalette(ColourPalette &palette)
Definition MolDraw2DHelpers.h:152
RDKit::assignCDKPalette
void assignCDKPalette(ColourPalette &palette)
use (part of) the CDK color palette
Definition MolDraw2DHelpers.h:118
point.h
RDKit::DrawColour
Definition MolDraw2DHelpers.h:40
RDKit::DrawColour::feq
bool feq(const DrawColour &other, double tol=0.001, bool ignoreAlpha=true) const
Definition MolDraw2DHelpers.h:49
RDKit::DrawColour::a
double a
Definition MolDraw2DHelpers.h:41
RDKit::DrawColour::b
double b
Definition MolDraw2DHelpers.h:41
RDKit::DrawColour::DrawColour
DrawColour()=default
RDKit::DrawColour::operator+
DrawColour operator+(const DrawColour &other) const
Definition MolDraw2DHelpers.h:55
RDKit::DrawColour::operator/
DrawColour operator/(double v) const
Definition MolDraw2DHelpers.h:61
RDKit::DrawColour::r
double r
Definition MolDraw2DHelpers.h:41
RDKit::DrawColour::g
double g
Definition MolDraw2DHelpers.h:41
RDKit::DrawColour::operator*
DrawColour operator*(double v) const
Definition MolDraw2DHelpers.h:65
RDKit::DrawColour::DrawColour
DrawColour(double r, double g, double b, double a=1.0)
Definition MolDraw2DHelpers.h:43
RDKit::DrawColour::operator!=
bool operator!=(const DrawColour &other) const
Definition MolDraw2DHelpers.h:48
RDKit::DrawColour::operator-
DrawColour operator-(const DrawColour &other) const
Definition MolDraw2DHelpers.h:58
RDKit::DrawColour::operator==
bool operator==(const DrawColour &other) const
Definition MolDraw2DHelpers.h:45
RDKit::MolDrawOptions::legendFontSize
int legendFontSize
Definition MolDraw2DHelpers.h:200
RDKit::MolDrawOptions::includeAtomTags
bool includeAtomTags
Definition MolDraw2DHelpers.h:191
RDKit::MolDrawOptions::scaleBondWidth
bool scaleBondWidth
Definition MolDraw2DHelpers.h:249
RDKit::MolDrawOptions::continuousHighlight
bool continuousHighlight
Definition MolDraw2DHelpers.h:183
RDKit::MolDrawOptions::highlightRadius
double highlightRadius
Definition MolDraw2DHelpers.h:187
RDKit::MolDrawOptions::multipleBondOffset
double multipleBondOffset
Definition MolDraw2DHelpers.h:225
RDKit::MolDrawOptions::isotopeLabels
bool isotopeLabels
Definition MolDraw2DHelpers.h:278
RDKit::MolDrawOptions::fontFile
std::string fontFile
Definition MolDraw2DHelpers.h:212
RDKit::MolDrawOptions::atomRegions
std::vector< std::vector< int > > atomRegions
Definition MolDraw2DHelpers.h:238
RDKit::MolDrawOptions::minFontSize
int minFontSize
Definition MolDraw2DHelpers.h:206
RDKit::MolDrawOptions::fillHighlights
bool fillHighlights
Definition MolDraw2DHelpers.h:185
RDKit::MolDrawOptions::addStereoGroupAnnotation
bool addStereoGroupAnnotation
Definition MolDraw2DHelpers.h:319
RDKit::MolDrawOptions::stereoGroupAndLabel
std::string stereoGroupAndLabel
Definition MolDraw2DHelpers.h:316
RDKit::MolDrawOptions::bondLineWidth
double bondLineWidth
Definition MolDraw2DHelpers.h:248
RDKit::MolDrawOptions::prepareMolsBeforeDrawing
bool prepareMolsBeforeDrawing
Definition MolDraw2DHelpers.h:253
RDKit::MolDrawOptions::bondNoteColour
DrawColour bondNoteColour
Definition MolDraw2DHelpers.h:246
RDKit::MolDrawOptions::addBondIndices
bool addBondIndices
Definition MolDraw2DHelpers.h:277
RDKit::MolDrawOptions::rotate
double rotate
Definition MolDraw2DHelpers.h:274
RDKit::MolDrawOptions::dummiesAreAttachments
bool dummiesAreAttachments
Definition MolDraw2DHelpers.h:177
RDKit::MolDrawOptions::MolDrawOptions
MolDrawOptions()
Definition MolDraw2DHelpers.h:355
RDKit::MolDrawOptions::legendVerticalText
bool legendVerticalText
Definition MolDraw2DHelpers.h:224
RDKit::MolDrawOptions::circleAtoms
bool circleAtoms
Definition MolDraw2DHelpers.h:178
RDKit::MolDrawOptions::includeChiralFlagLabel
bool includeChiralFlagLabel
Definition MolDraw2DHelpers.h:310
RDKit::MolDrawOptions::scaleHighlightBondWidth
bool scaleHighlightBondWidth
Definition MolDraw2DHelpers.h:250
RDKit::MolDrawOptions::variableAttachmentColour
DrawColour variableAttachmentColour
Definition MolDraw2DHelpers.h:308
RDKit::MolDrawOptions::stereoGroupAbsLabel
std::string stereoGroupAbsLabel
Definition MolDraw2DHelpers.h:318
RDKit::MolDrawOptions::centreMoleculesBeforeDrawing
bool centreMoleculesBeforeDrawing
Definition MolDraw2DHelpers.h:289
RDKit::MolDrawOptions::splitBonds
bool splitBonds
Definition MolDraw2DHelpers.h:179
RDKit::MolDrawOptions::annotationFontScale
double annotationFontScale
Definition MolDraw2DHelpers.h:210
RDKit::MolDrawOptions::noAtomLabels
bool noAtomLabels
Definition MolDraw2DHelpers.h:236
RDKit::MolDrawOptions::drawingExtentsInclude
std::uint32_t drawingExtentsInclude
Definition MolDraw2DHelpers.h:291
RDKit::MolDrawOptions::highlightColour
DrawColour highlightColour
Definition MolDraw2DHelpers.h:182
RDKit::MolDrawOptions::flagCloseContactsDist
int flagCloseContactsDist
Definition MolDraw2DHelpers.h:189
RDKit::MolDrawOptions::symbolColour
DrawColour symbolColour
Definition MolDraw2DHelpers.h:239
RDKit::MolDrawOptions::singleColourBonds
bool singleColourBonds
Definition MolDraw2DHelpers.h:329
RDKit::MolDrawOptions::LegendPosition
LegendPosition
Definition MolDraw2DHelpers.h:220
RDKit::MolDrawOptions::LegendPosition::Bottom
@ Bottom
Definition MolDraw2DHelpers.h:220
RDKit::MolDrawOptions::bracketsAroundAtomLists
bool bracketsAroundAtomLists
Definition MolDraw2DHelpers.h:349
RDKit::MolDrawOptions::queryColour
DrawColour queryColour
Definition MolDraw2DHelpers.h:198
RDKit::MolDrawOptions::padding
double padding
Definition MolDraw2DHelpers.h:228
RDKit::MolDrawOptions::fixedScale
double fixedScale
Definition MolDraw2DHelpers.h:261
RDKit::MolDrawOptions::explicitMethyl
bool explicitMethyl
Definition MolDraw2DHelpers.h:294
RDKit::MolDrawOptions::useMolBlockWedging
bool useMolBlockWedging
Definition MolDraw2DHelpers.h:332
RDKit::MolDrawOptions::addStereoAnnotation
bool addStereoAnnotation
Definition MolDraw2DHelpers.h:281
RDKit::MolDrawOptions::atomLabelDeuteriumTritium
bool atomLabelDeuteriumTritium
Definition MolDraw2DHelpers.h:175
RDKit::MolDrawOptions::variableBondWidthMultiplier
int variableBondWidthMultiplier
Definition MolDraw2DHelpers.h:304
RDKit::MolDrawOptions::legendFraction
double legendFraction
Definition MolDraw2DHelpers.h:202
RDKit::MolDrawOptions::atomHighlightsAreCircles
bool atomHighlightsAreCircles
Definition MolDraw2DHelpers.h:284
RDKit::MolDrawOptions::simplifiedStereoGroupLabel
bool simplifiedStereoGroupLabel
Definition MolDraw2DHelpers.h:312
RDKit::MolDrawOptions::componentPadding
double componentPadding
Definition MolDraw2DHelpers.h:230
RDKit::MolDrawOptions::atomLabels
std::map< int, std::string > atomLabels
Definition MolDraw2DHelpers.h:235
RDKit::MolDrawOptions::atomNoteColour
DrawColour atomNoteColour
Definition MolDraw2DHelpers.h:244
RDKit::MolDrawOptions::atomColourPalette
ColourPalette atomColourPalette
Definition MolDraw2DHelpers.h:258
RDKit::MolDrawOptions::additionalAtomLabelPadding
double additionalAtomLabelPadding
Definition MolDraw2DHelpers.h:232
RDKit::MolDrawOptions::legendColour
DrawColour legendColour
Definition MolDraw2DHelpers.h:216
RDKit::MolDrawOptions::stereoGroupOrLabel
std::string stereoGroupOrLabel
Definition MolDraw2DHelpers.h:317
RDKit::MolDrawOptions::variableAtomRadius
double variableAtomRadius
Definition MolDraw2DHelpers.h:306
RDKit::MolDrawOptions::fixedBondLength
double fixedBondLength
Definition MolDraw2DHelpers.h:266
RDKit::MolDrawOptions::drawMolsSameScale
bool drawMolsSameScale
Definition MolDraw2DHelpers.h:341
RDKit::MolDrawOptions::backgroundColour
DrawColour backgroundColour
Definition MolDraw2DHelpers.h:196
RDKit::MolDrawOptions::dummyIsotopeLabels
bool dummyIsotopeLabels
Definition MolDraw2DHelpers.h:279
RDKit::MolDrawOptions::legendPosition
LegendPosition legendPosition
Definition MolDraw2DHelpers.h:221
RDKit::MolDrawOptions::multiColourHighlightStyle
MultiColourHighlightStyle multiColourHighlightStyle
Definition MolDraw2DHelpers.h:287
RDKit::MolDrawOptions::annotationColour
DrawColour annotationColour
Definition MolDraw2DHelpers.h:242
RDKit::MolDrawOptions::maxFontSize
int maxFontSize
Definition MolDraw2DHelpers.h:204
RDKit::MolDrawOptions::comicMode
bool comicMode
Definition MolDraw2DHelpers.h:301
RDKit::MolDrawOptions::baseFontSize
double baseFontSize
Definition MolDraw2DHelpers.h:337
RDKit::MolDrawOptions::singleColourWedgeBonds
bool singleColourWedgeBonds
Definition MolDraw2DHelpers.h:325
RDKit::MolDrawOptions::unspecifiedStereoIsUnknown
bool unspecifiedStereoIsUnknown
Definition MolDraw2DHelpers.h:320
RDKit::MolDrawOptions::includeRadicals
bool includeRadicals
Definition MolDraw2DHelpers.h:295
RDKit::MolDrawOptions::standardColoursForHighlightedAtoms
bool standardColoursForHighlightedAtoms
Definition MolDraw2DHelpers.h:351
RDKit::MolDrawOptions::clearBackground
bool clearBackground
Definition MolDraw2DHelpers.h:194
RDKit::MolDrawOptions::useComplexQueryAtomSymbols
bool useComplexQueryAtomSymbols
Definition MolDraw2DHelpers.h:344
RDKit::MolDrawOptions::scalingFactor
double scalingFactor
Definition MolDraw2DHelpers.h:335
RDKit::MolDrawOptions::fixedFontSize
int fixedFontSize
Definition MolDraw2DHelpers.h:207
RDKit::MolDrawOptions::includeMetadata
bool includeMetadata
Definition MolDraw2DHelpers.h:298
RDKit::MolDrawOptions::highlightBondWidthMultiplier
int highlightBondWidthMultiplier
Definition MolDraw2DHelpers.h:251
RDKit::MolDrawOptions::addAtomIndices
bool addAtomIndices
Definition MolDraw2DHelpers.h:276
RDKit::MolDrawOptions::highlightColourPalette
std::vector< DrawColour > highlightColourPalette
Definition MolDraw2DHelpers.h:255
RDKit::MolDrawOptions::showAllCIPCodes
bool showAllCIPCodes
Definition MolDraw2DHelpers.h:282