14#ifndef RDKIT_MOLDRAW2DHELPERS_H
15#define RDKIT_MOLDRAW2DHELPERS_H
23namespace MolDraw2D_detail {
40 double r = 0.0,
g = 0.0,
b = 0.0,
a = 1.0;
62 return {
r / v,
g / v,
b / v,
a / v};
162 bool atomLabelDeuteriumTritium =
164 bool dummiesAreAttachments =
false;
165 bool circleAtoms =
true;
166 bool splitBonds =
false;
170 bool continuousHighlight =
true;
172 bool fillHighlights =
true;
174 double highlightRadius = 0.3;
176 int flagCloseContactsDist = 3;
178 bool includeAtomTags =
181 bool clearBackground =
true;
187 int legendFontSize = 16;
189 double legendFraction =
191 int maxFontSize = 40;
197 double annotationFontScale = 0.5;
199 std::string fontFile =
"";
205 double multipleBondOffset = 0.15;
210 double additionalAtomLabelPadding = 0.0;
222 double bondLineWidth = 2.0;
223 bool scaleBondWidth =
false;
224 bool scaleHighlightBondWidth =
true;
225 int highlightBondWidthMultiplier = 8;
227 bool prepareMolsBeforeDrawing =
true;
240 double fixedBondLength =
250 bool addAtomIndices =
false;
251 bool addBondIndices =
false;
252 bool isotopeLabels =
true;
253 bool dummyIsotopeLabels =
true;
255 bool addStereoAnnotation =
false;
256 bool atomHighlightsAreCircles =
false;
260 MultiColourHighlightStyle::CIRCLEANDLINE;
261 bool centreMoleculesBeforeDrawing =
false;
263 bool explicitMethyl =
false;
264 bool includeRadicals =
267 bool includeMetadata =
270 bool comicMode =
false;
273 int variableBondWidthMultiplier = 16;
275 double variableAtomRadius = 0.4;
279 bool includeChiralFlagLabel =
281 bool simplifiedStereoGroupLabel =
285 bool unspecifiedStereoIsUnknown =
false;
290 bool singleColourWedgeBonds =
294 bool useMolBlockWedging =
false;
297 double scalingFactor = 20.0;
299 double baseFontSize =
303 bool drawMolsSameScale =
true;
306 bool useComplexQueryAtomSymbols =
311 bool bracketsAroundAtomLists =
true;
315 highlightColourPalette.emplace_back(
317 highlightColourPalette.emplace_back(
DrawColour(1., .8, .6));
318 highlightColourPalette.emplace_back(
320 highlightColourPalette.emplace_back(
322 highlightColourPalette.emplace_back(
DrawColour(.87, .63, .87));
323 highlightColourPalette.emplace_back(
325 highlightColourPalette.emplace_back(
327 highlightColourPalette.emplace_back(
DrawColour(.64, .76, .34));
328 highlightColourPalette.emplace_back(
330 highlightColourPalette.emplace_back(
DrawColour(.20, .63, .79));
#define PRECONDITION(expr, mess)
#define RDKIT_MOLDRAW2D_EXPORT
std::vector< double > DashPattern
bool rdvalue_is(const RDValue_cast_t)
static const double lineWidthScaleFactor
MultiColourHighlightStyle
void assignDefaultPalette(ColourPalette &palette)
use the RDKit's default palette r
void assignAvalonPalette(ColourPalette &palette)
use the color palette from the Avalon renderer
void assignDarkModePalette(ColourPalette &palette)
std::map< int, DrawColour > ColourPalette
void assignBWPalette(ColourPalette &palette)
void assignCDKPalette(ColourPalette &palette)
use (part of) the CDK color palette
bool feq(const DrawColour &other, double tol=0.001, bool ignoreAlpha=true) const
DrawColour operator+(const DrawColour &other) const
DrawColour operator/(double v) const
DrawColour operator*(double v) const
DrawColour(double r, double g, double b, double a=1.0)
bool operator!=(const DrawColour &other) const
DrawColour operator-(const DrawColour &other) const
bool operator==(const DrawColour &other) const
std::vector< std::vector< int > > atomRegions
std::map< int, std::string > atomLabels
ColourPalette atomColourPalette
std::vector< DrawColour > highlightColourPalette