RDKit
Open-source cheminformatics and machine learning.
|
Classes | |
class | AtomSymbol |
class | DrawAnnotation |
class | DrawMol |
class | DrawMolMCH |
class | DrawMolMCHCircleAndLine |
class | DrawMolMCHLasso |
class | DrawShape |
class | DrawShapeArc |
class | DrawShapeArrow |
class | DrawShapeDashedWedge |
class | DrawShapeEllipse |
class | DrawShapePolyLine |
class | DrawShapeSimpleLine |
class | DrawShapeSolidWedge |
class | DrawShapeWavyLine |
class | DrawText |
class | DrawTextCairo |
class | DrawTextFT |
class | DrawTextFTCairo |
class | DrawTextFTJS |
class | DrawTextFTQt |
class | DrawTextFTSVG |
class | DrawTextJS |
class | DrawTextNotFT |
class | DrawTextQt |
class | DrawTextSVG |
struct | LinePair |
struct | StringRect |
Enumerations | |
enum class | TextDrawType : unsigned char { TextDrawNormal = 0 , TextDrawSuperscript , TextDrawSubscript } |
enum class | OrientType : unsigned char { C = 0 , N , E , S , W } |
enum class | TextAlignType : unsigned char { MIDDLE = 0 , START , END } |
Variables | |
const int | char_widths [] |
Enumerator | |
---|---|
C | |
N | |
E | |
S | |
W |
Definition at line 25 of file MolDraw2DHelpers.h.
Enumerator | |
---|---|
MIDDLE | |
START | |
END |
Definition at line 26 of file MolDraw2DHelpers.h.
Enumerator | |
---|---|
TextDrawNormal | |
TextDrawSuperscript | |
TextDrawSubscript |
Definition at line 34 of file DrawText.h.
|
inline |
add annotations with atom indices.
Definition at line 60 of file MolDraw2DDetails.h.
References RDKit::common_properties::atomNote, RDKit::ROMol::atoms(), RDKit::RDProps::hasProp(), RDKit::rdvalue_is(), and RDKit::RDProps::setProp().
|
inline |
add annotations with bond indices.
Definition at line 78 of file MolDraw2DDetails.h.
References RDKit::common_properties::bondNote, RDKit::ROMol::bonds(), RDKit::RDProps::hasProp(), RDKit::rdvalue_is(), and RDKit::RDProps::setProp().
void RDKit::MolDraw2D_detail::adjustBondEndForString | ( | const Point2D & | end2, |
double | padding, | ||
const std::vector< std::shared_ptr< StringRect > > & | rects, | ||
Point2D & | moveEnd | ||
) |
RDKIT_MOLDRAW2D_EXPORT void RDKit::MolDraw2D_detail::adjustLineEndForEllipse | ( | const Point2D & | centre, |
double | xradius, | ||
double | yradius, | ||
Point2D | p1, | ||
Point2D & | p2 | ||
) |
RDKIT_MOLDRAW2D_EXPORT void RDKit::MolDraw2D_detail::arcPoints | ( | const Point2D & | cds1, |
const Point2D & | cds2, | ||
std::vector< Point2D > & | res, | ||
float | startAng = 0 , |
||
float | extent = 360 |
||
) |
bool RDKit::MolDraw2D_detail::areBondsParallel | ( | const Point2D & | at1, |
const Point2D & | at2, | ||
const Point2D & | at3, | ||
const Point2D & | at4, | ||
double | tol = 1.0e-4 |
||
) |
bool RDKit::MolDraw2D_detail::areBondsTrans | ( | const Point2D & | at1, |
const Point2D & | at2, | ||
const Point2D & | at3, | ||
const Point2D & | at4 | ||
) |
std::vector< std::string > RDKit::MolDraw2D_detail::atomLabelToPieces | ( | const std::string & | label, |
OrientType | orient | ||
) |
RDKIT_MOLDRAW2D_EXPORT void RDKit::MolDraw2D_detail::calcArrowHead | ( | Point2D & | arrowEnd, |
Point2D & | arrow1, | ||
Point2D & | arrow2, | ||
const Point2D & | arrowBegin, | ||
bool | asPolygon, | ||
double | frac, | ||
double | angle | ||
) |
Point2D RDKit::MolDraw2D_detail::calcInnerPerpendicular | ( | const Point2D & | cds1, |
const Point2D & | cds2, | ||
const Point2D & | cds3 | ||
) |
int RDKit::MolDraw2D_detail::conicToFunction | ( | const FT_Vector * | control, |
const FT_Vector * | to, | ||
void * | user | ||
) |
int RDKit::MolDraw2D_detail::cubicToFunction | ( | const FT_Vector * | controlOne, |
const FT_Vector * | controlTwo, | ||
const FT_Vector * | to, | ||
void * | user | ||
) |
RDKIT_MOLDRAW2D_EXPORT bool RDKit::MolDraw2D_detail::doesLineIntersect | ( | const StringRect & | rect, |
const Point2D & | end1, | ||
const Point2D & | end2, | ||
double | padding | ||
) |
RDKIT_MOLDRAW2D_EXPORT bool RDKit::MolDraw2D_detail::doesLineIntersectArc | ( | const Point2D & | centre, |
double | xradius, | ||
double | yradius, | ||
double | start_ang, | ||
double | stop_ang, | ||
double | padding, | ||
const Point2D & | end1, | ||
const Point2D & | end2 | ||
) |
RDKIT_MOLDRAW2D_EXPORT bool RDKit::MolDraw2D_detail::doesLineIntersectEllipse | ( | const Point2D & | centre, |
double | xradius, | ||
double | yradius, | ||
double | padding, | ||
const Point2D & | end1, | ||
const Point2D & | end2 | ||
) |
RDKIT_MOLDRAW2D_EXPORT bool RDKit::MolDraw2D_detail::doesTriangleIntersect | ( | const StringRect & | rect, |
const Point2D & | pt1, | ||
const Point2D & | pt2, | ||
const Point2D & | pt3, | ||
double | padding | ||
) |
RDKIT_MOLDRAW2D_EXPORT bool RDKit::MolDraw2D_detail::doLinesIntersect | ( | const Point2D & | l1s, |
const Point2D & | l1f, | ||
const Point2D & | l2s, | ||
const Point2D & | l2f, | ||
Point2D * | ip | ||
) |
void RDKit::MolDraw2D_detail::findRadicalExtremes | ( | const std::vector< std::tuple< StringRect, OrientType, int > > & | radicals, |
double & | xmin, | ||
double & | xmax, | ||
double & | ymin, | ||
double & | ymax | ||
) |
void RDKit::MolDraw2D_detail::findRectExtremes | ( | const StringRect & | rect, |
const TextAlignType & | align, | ||
double & | xmin, | ||
double & | xmax, | ||
double & | ymin, | ||
double & | ymax | ||
) |
|
inline |
Definition at line 105 of file MolDraw2DDetails.h.
void RDKit::MolDraw2D_detail::getBondHighlightsForAtoms | ( | const ROMol & | mol, |
const std::vector< int > & | highlight_atoms, | ||
std::vector< int > & | highlight_bonds | ||
) |
RDKIT_MOLDRAW2D_EXPORT std::vector< Point2D > RDKit::MolDraw2D_detail::getBracketPoints | ( | const Point2D & | p1, |
const Point2D & | p2, | ||
const Point2D & | refPt, | ||
const std::vector< std::pair< Point2D, Point2D > > & | bondSegments, | ||
double | bracketFrac = 0.1 |
||
) |
DrawColour RDKit::MolDraw2D_detail::getColourByAtomicNum | ( | int | atomicNum, |
const MolDrawOptions & | drawOptions | ||
) |
DrawColour RDKit::MolDraw2D_detail::getHighlightBondColour | ( | const Bond * | bond, |
const MolDrawOptions & | drawOptions, | ||
const std::vector< int > & | highlightBonds, | ||
const std::map< int, DrawColour > & | highlightBondMap, | ||
const std::vector< int > & | highlightAtoms, | ||
const std::map< int, DrawColour > & | highlightAtomMap | ||
) |
double RDKit::MolDraw2D_detail::getHighlightBondWidth | ( | const MolDrawOptions & | drawOptions, |
int | bond_idx, | ||
const std::map< int, int > * | highlight_linewidth_multipliers | ||
) |
RDKIT_MOLDRAW2D_EXPORT std::vector< std::tuple< Point2D, Point2D, Point2D, Point2D > > RDKit::MolDraw2D_detail::getWavyLineSegments | ( | const Point2D & | p1, |
const Point2D & | p2, | ||
unsigned int | nSegments, | ||
double | vertOffset | ||
) |
RDKIT_MOLDRAW2D_EXPORT std::vector< Point2D > RDKit::MolDraw2D_detail::handdrawnLine | ( | Point2D | cds1, |
Point2D | cds2, | ||
double | scale, | ||
bool | shiftBegin = false , |
||
bool | shiftEnd = false , |
||
unsigned | nSteps = 4 , |
||
double | deviation = 0.03 , |
||
double | endShift = 0.5 |
||
) |
bool RDKit::MolDraw2D_detail::isLinearAtom | ( | const Atom & | atom, |
const std::vector< Point2D > & | atCds | ||
) |
RDKIT_MOLDRAW2D_EXPORT bool RDKit::MolDraw2D_detail::isPointInTriangle | ( | const Point2D & | pt, |
const Point2D & | t1, | ||
const Point2D & | t2, | ||
const Point2D & | t3 | ||
) |
std::ostream & RDKit::MolDraw2D_detail::operator<< | ( | std::ostream & | oss, |
const OrientType & | o | ||
) |
std::ostream & RDKit::MolDraw2D_detail::operator<< | ( | std::ostream & | oss, |
const TextAlignType & | tat | ||
) |
std::ostream & RDKit::MolDraw2D_detail::operator<< | ( | std::ostream & | oss, |
const TextDrawType & | tdt | ||
) |
const Atom * RDKit::MolDraw2D_detail::otherNeighbor | ( | const Atom * | firstAtom, |
const Atom * | secondAtom, | ||
int | nborNum, | ||
const ROMol & | mol | ||
) |
RDKIT_MOLDRAW2D_EXPORT bool RDKit::MolDraw2D_detail::setStringDrawMode | ( | const std::string & | instring, |
TextDrawType & | draw_mode, | ||
size_t & | i | ||
) |
establishes whether to put string draw mode into super- or sub-script mode based on contents of instring from i onwards. Increments i appropriately
Definition at line 33 of file MolDraw2DDetails.h.