RDKit
Open-source cheminformatics and machine learning.
RDKit::MolDrawOptions Struct Reference

#include <MolDraw2DHelpers.h>

Public Member Functions

 MolDrawOptions ()
 

Public Attributes

bool atomLabelDeuteriumTritium
 
bool dummiesAreAttachments = false
 
bool circleAtoms = true
 
bool splitBonds = false
 
DrawColour highlightColour {1, 0.5, 0.5, 1.0}
 
bool continuousHighlight = true
 
bool fillHighlights = true
 
double highlightRadius = 0.3
 
int flagCloseContactsDist = 3
 
bool includeAtomTags
 
bool clearBackground = true
 
DrawColour backgroundColour
 
int legendFontSize = 16
 
double legendFraction
 
int maxFontSize = 40
 
int minFontSize = 6
 
int fixedFontSize
 
double annotationFontScale = 0.5
 
std::string fontFile = ""
 
DrawColour legendColour
 
double multipleBondOffset = 0.15
 
double padding
 
double additionalAtomLabelPadding = 0.0
 
std::map< int, std::string > atomLabels
 
bool noAtomLabels
 
std::vector< std::vector< int > > atomRegions
 
DrawColour symbolColour
 
DrawColour annotationColour {0, 0, 0, 1}
 
int bondLineWidth = 2
 
bool scaleBondWidth = false
 
bool scaleHighlightBondWidth = true
 
int highlightBondWidthMultiplier = 8
 
bool prepareMolsBeforeDrawing = true
 
std::vector< DrawColourhighlightColourPalette
 
ColourPalette atomColourPalette
 
double fixedScale
 
double fixedBondLength
 
double rotate = 0.0
 
bool addAtomIndices = false
 
bool addBondIndices = false
 
bool isotopeLabels = true
 
bool dummyIsotopeLabels = true
 
bool addStereoAnnotation = false
 
bool atomHighlightsAreCircles = false
 
bool centreMoleculesBeforeDrawing = false
 
bool explicitMethyl = false
 
bool includeRadicals
 
bool includeMetadata
 
bool comicMode = false
 
int variableBondWidthMultiplier = 16
 
double variableAtomRadius = 0.4
 
DrawColour variableAttachmentColour
 
bool includeChiralFlagLabel
 
bool simplifiedStereoGroupLabel
 
bool singleColourWedgeBonds
 
double scalingFactor = 20.0
 
double baseFontSize
 
bool drawMolsSameScale = true
 

Detailed Description

Definition at line 132 of file MolDraw2DHelpers.h.

Constructor & Destructor Documentation

◆ MolDrawOptions()

RDKit::MolDrawOptions::MolDrawOptions ( )
inline

Definition at line 261 of file MolDraw2DHelpers.h.

References RDKit::assignDefaultPalette().

Member Data Documentation

◆ addAtomIndices

bool RDKit::MolDrawOptions::addAtomIndices = false

Definition at line 214 of file MolDraw2DHelpers.h.

◆ addBondIndices

bool RDKit::MolDrawOptions::addBondIndices = false

Definition at line 215 of file MolDraw2DHelpers.h.

◆ additionalAtomLabelPadding

double RDKit::MolDrawOptions::additionalAtomLabelPadding = 0.0

Definition at line 176 of file MolDraw2DHelpers.h.

◆ addStereoAnnotation

bool RDKit::MolDrawOptions::addStereoAnnotation = false

Definition at line 219 of file MolDraw2DHelpers.h.

◆ annotationColour

DrawColour RDKit::MolDrawOptions::annotationColour {0, 0, 0, 1}

Definition at line 185 of file MolDraw2DHelpers.h.

Referenced by RDKit::setDarkMode(), and RDKit::setMonochromeMode().

◆ annotationFontScale

double RDKit::MolDrawOptions::annotationFontScale = 0.5

Definition at line 166 of file MolDraw2DHelpers.h.

◆ atomColourPalette

ColourPalette RDKit::MolDrawOptions::atomColourPalette

Definition at line 196 of file MolDraw2DHelpers.h.

Referenced by RDKit::setDarkMode(), and RDKit::setMonochromeMode().

◆ atomHighlightsAreCircles

bool RDKit::MolDrawOptions::atomHighlightsAreCircles = false

Definition at line 220 of file MolDraw2DHelpers.h.

◆ atomLabelDeuteriumTritium

bool RDKit::MolDrawOptions::atomLabelDeuteriumTritium
Initial value:
=
false

Definition at line 133 of file MolDraw2DHelpers.h.

◆ atomLabels

std::map<int, std::string> RDKit::MolDrawOptions::atomLabels

Definition at line 179 of file MolDraw2DHelpers.h.

◆ atomRegions

std::vector<std::vector<int> > RDKit::MolDrawOptions::atomRegions

Definition at line 182 of file MolDraw2DHelpers.h.

◆ backgroundColour

DrawColour RDKit::MolDrawOptions::backgroundColour
Initial value:
{
1, 1, 1, 1}

Definition at line 154 of file MolDraw2DHelpers.h.

Referenced by RDKit::setDarkMode(), and RDKit::setMonochromeMode().

◆ baseFontSize

double RDKit::MolDrawOptions::baseFontSize
Initial value:
=
-1.0

Definition at line 253 of file MolDraw2DHelpers.h.

◆ bondLineWidth

int RDKit::MolDrawOptions::bondLineWidth = 2

Definition at line 186 of file MolDraw2DHelpers.h.

◆ centreMoleculesBeforeDrawing

bool RDKit::MolDrawOptions::centreMoleculesBeforeDrawing = false

Definition at line 223 of file MolDraw2DHelpers.h.

◆ circleAtoms

bool RDKit::MolDrawOptions::circleAtoms = true

Definition at line 136 of file MolDraw2DHelpers.h.

◆ clearBackground

bool RDKit::MolDrawOptions::clearBackground = true

Definition at line 152 of file MolDraw2DHelpers.h.

◆ comicMode

bool RDKit::MolDrawOptions::comicMode = false

Definition at line 232 of file MolDraw2DHelpers.h.

◆ continuousHighlight

bool RDKit::MolDrawOptions::continuousHighlight = true

Definition at line 141 of file MolDraw2DHelpers.h.

◆ drawMolsSameScale

bool RDKit::MolDrawOptions::drawMolsSameScale = true

Definition at line 257 of file MolDraw2DHelpers.h.

◆ dummiesAreAttachments

bool RDKit::MolDrawOptions::dummiesAreAttachments = false

Definition at line 135 of file MolDraw2DHelpers.h.

◆ dummyIsotopeLabels

bool RDKit::MolDrawOptions::dummyIsotopeLabels = true

Definition at line 217 of file MolDraw2DHelpers.h.

◆ explicitMethyl

bool RDKit::MolDrawOptions::explicitMethyl = false

Definition at line 225 of file MolDraw2DHelpers.h.

◆ fillHighlights

bool RDKit::MolDrawOptions::fillHighlights = true

Definition at line 143 of file MolDraw2DHelpers.h.

◆ fixedBondLength

double RDKit::MolDrawOptions::fixedBondLength
Initial value:
=
-1.0

Definition at line 204 of file MolDraw2DHelpers.h.

◆ fixedFontSize

int RDKit::MolDrawOptions::fixedFontSize
Initial value:
=
-1

Definition at line 163 of file MolDraw2DHelpers.h.

◆ fixedScale

double RDKit::MolDrawOptions::fixedScale
Initial value:
=
-1.0

Definition at line 199 of file MolDraw2DHelpers.h.

◆ flagCloseContactsDist

int RDKit::MolDrawOptions::flagCloseContactsDist = 3

Definition at line 147 of file MolDraw2DHelpers.h.

◆ fontFile

std::string RDKit::MolDrawOptions::fontFile = ""

Definition at line 168 of file MolDraw2DHelpers.h.

◆ highlightBondWidthMultiplier

int RDKit::MolDrawOptions::highlightBondWidthMultiplier = 8

Definition at line 189 of file MolDraw2DHelpers.h.

◆ highlightColour

DrawColour RDKit::MolDrawOptions::highlightColour {1, 0.5, 0.5, 1.0}

Definition at line 140 of file MolDraw2DHelpers.h.

◆ highlightColourPalette

std::vector<DrawColour> RDKit::MolDrawOptions::highlightColourPalette

Definition at line 193 of file MolDraw2DHelpers.h.

◆ highlightRadius

double RDKit::MolDrawOptions::highlightRadius = 0.3

Definition at line 145 of file MolDraw2DHelpers.h.

◆ includeAtomTags

bool RDKit::MolDrawOptions::includeAtomTags
Initial value:
=
false

Definition at line 149 of file MolDraw2DHelpers.h.

◆ includeChiralFlagLabel

bool RDKit::MolDrawOptions::includeChiralFlagLabel
Initial value:
=
false

Definition at line 241 of file MolDraw2DHelpers.h.

◆ includeMetadata

bool RDKit::MolDrawOptions::includeMetadata
Initial value:
=
true

Definition at line 229 of file MolDraw2DHelpers.h.

◆ includeRadicals

bool RDKit::MolDrawOptions::includeRadicals
Initial value:
=
true

Definition at line 226 of file MolDraw2DHelpers.h.

◆ isotopeLabels

bool RDKit::MolDrawOptions::isotopeLabels = true

Definition at line 216 of file MolDraw2DHelpers.h.

◆ legendColour

DrawColour RDKit::MolDrawOptions::legendColour
Initial value:
{0, 0,
0}

Definition at line 170 of file MolDraw2DHelpers.h.

Referenced by RDKit::setDarkMode(), and RDKit::setMonochromeMode().

◆ legendFontSize

int RDKit::MolDrawOptions::legendFontSize = 16

Definition at line 156 of file MolDraw2DHelpers.h.

◆ legendFraction

double RDKit::MolDrawOptions::legendFraction
Initial value:
=
0.1

Definition at line 158 of file MolDraw2DHelpers.h.

◆ maxFontSize

int RDKit::MolDrawOptions::maxFontSize = 40

Definition at line 160 of file MolDraw2DHelpers.h.

◆ minFontSize

int RDKit::MolDrawOptions::minFontSize = 6

Definition at line 162 of file MolDraw2DHelpers.h.

◆ multipleBondOffset

double RDKit::MolDrawOptions::multipleBondOffset = 0.15

Definition at line 172 of file MolDraw2DHelpers.h.

◆ noAtomLabels

bool RDKit::MolDrawOptions::noAtomLabels
Initial value:
=
false

Definition at line 180 of file MolDraw2DHelpers.h.

◆ padding

double RDKit::MolDrawOptions::padding
Initial value:
=
0.05

Definition at line 174 of file MolDraw2DHelpers.h.

◆ prepareMolsBeforeDrawing

bool RDKit::MolDrawOptions::prepareMolsBeforeDrawing = true

Definition at line 191 of file MolDraw2DHelpers.h.

◆ rotate

double RDKit::MolDrawOptions::rotate = 0.0

Definition at line 212 of file MolDraw2DHelpers.h.

◆ scaleBondWidth

bool RDKit::MolDrawOptions::scaleBondWidth = false

Definition at line 187 of file MolDraw2DHelpers.h.

◆ scaleHighlightBondWidth

bool RDKit::MolDrawOptions::scaleHighlightBondWidth = true

Definition at line 188 of file MolDraw2DHelpers.h.

◆ scalingFactor

double RDKit::MolDrawOptions::scalingFactor = 20.0

Definition at line 251 of file MolDraw2DHelpers.h.

◆ simplifiedStereoGroupLabel

bool RDKit::MolDrawOptions::simplifiedStereoGroupLabel
Initial value:
=
false

Definition at line 243 of file MolDraw2DHelpers.h.

◆ singleColourWedgeBonds

bool RDKit::MolDrawOptions::singleColourWedgeBonds
Initial value:
=
false

Definition at line 247 of file MolDraw2DHelpers.h.

◆ splitBonds

bool RDKit::MolDrawOptions::splitBonds = false

Definition at line 137 of file MolDraw2DHelpers.h.

◆ symbolColour

DrawColour RDKit::MolDrawOptions::symbolColour
Initial value:
{
0, 0, 0, 1}

Definition at line 183 of file MolDraw2DHelpers.h.

Referenced by RDKit::setDarkMode(), and RDKit::setMonochromeMode().

◆ variableAtomRadius

double RDKit::MolDrawOptions::variableAtomRadius = 0.4

Definition at line 237 of file MolDraw2DHelpers.h.

◆ variableAttachmentColour

DrawColour RDKit::MolDrawOptions::variableAttachmentColour
Initial value:
= {
0.8, 0.8, 0.8, 1.0}

Definition at line 239 of file MolDraw2DHelpers.h.

Referenced by RDKit::setDarkMode(), and RDKit::setMonochromeMode().

◆ variableBondWidthMultiplier

int RDKit::MolDrawOptions::variableBondWidthMultiplier = 16

Definition at line 235 of file MolDraw2DHelpers.h.


The documentation for this struct was generated from the following file: