14#ifndef RDKIT_MOLDRAW2DHELPERS_H
15#define RDKIT_MOLDRAW2DHELPERS_H
23namespace MolDraw2D_detail {
30 double r = 0.0,
g = 0.0,
b = 0.0,
a = 1.0;
52 return {
r / v,
g / v,
b / v,
a / v};
149 bool atomLabelDeuteriumTritium =
151 bool dummiesAreAttachments =
false;
152 bool circleAtoms =
true;
153 bool splitBonds =
false;
157 bool continuousHighlight =
true;
159 bool fillHighlights =
true;
161 double highlightRadius = 0.3;
163 int flagCloseContactsDist = 3;
165 bool includeAtomTags =
168 bool clearBackground =
true;
174 int legendFontSize = 16;
176 double legendFraction =
178 int maxFontSize = 40;
184 double annotationFontScale = 0.5;
186 std::string fontFile =
"";
192 double multipleBondOffset = 0.15;
197 double additionalAtomLabelPadding = 0.0;
209 double bondLineWidth = 2.0;
210 bool scaleBondWidth =
false;
211 bool scaleHighlightBondWidth =
true;
212 int highlightBondWidthMultiplier = 8;
214 bool prepareMolsBeforeDrawing =
true;
227 double fixedBondLength =
237 bool addAtomIndices =
false;
238 bool addBondIndices =
false;
239 bool isotopeLabels =
true;
240 bool dummyIsotopeLabels =
true;
242 bool addStereoAnnotation =
false;
243 bool atomHighlightsAreCircles =
false;
247 MultiColourHighlightStyle::CIRCLEANDLINE;
248 bool centreMoleculesBeforeDrawing =
false;
250 bool explicitMethyl =
false;
251 bool includeRadicals =
254 bool includeMetadata =
257 bool comicMode =
false;
260 int variableBondWidthMultiplier = 16;
262 double variableAtomRadius = 0.4;
266 bool includeChiralFlagLabel =
268 bool simplifiedStereoGroupLabel =
272 bool unspecifiedStereoIsUnknown =
false;
277 bool singleColourWedgeBonds =
281 bool useMolBlockWedging =
false;
284 double scalingFactor = 20.0;
286 double baseFontSize =
290 bool drawMolsSameScale =
true;
293 bool useComplexQueryAtomSymbols =
300 highlightColourPalette.emplace_back(
302 highlightColourPalette.emplace_back(
DrawColour(1., .8, .6));
303 highlightColourPalette.emplace_back(
305 highlightColourPalette.emplace_back(
307 highlightColourPalette.emplace_back(
DrawColour(.87, .63, .87));
308 highlightColourPalette.emplace_back(
310 highlightColourPalette.emplace_back(
312 highlightColourPalette.emplace_back(
DrawColour(.64, .76, .34));
313 highlightColourPalette.emplace_back(
315 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