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

#include <MolDraw2D.h>

Public Member Functions

 StringRect ()
 
 StringRect (const Point2D &in_cds)
 
void calcCorners (Point2D &tl, Point2D &tr, Point2D &br, Point2D &bl) const
 
bool doesItIntersect (const StringRect &other) const
 

Public Attributes

Point2D centre_
 
double width_
 
double height_
 
int clash_score_
 

Detailed Description

Definition at line 65 of file MolDraw2D.h.

Constructor & Destructor Documentation

◆ StringRect() [1/2]

RDKit::StringRect::StringRect ( )
inline

Definition at line 70 of file MolDraw2D.h.

◆ StringRect() [2/2]

RDKit::StringRect::StringRect ( const Point2D in_cds)
inline

Definition at line 72 of file MolDraw2D.h.

Member Function Documentation

◆ calcCorners()

void RDKit::StringRect::calcCorners ( Point2D tl,
Point2D tr,
Point2D br,
Point2D bl 
) const
inline

Definition at line 75 of file MolDraw2D.h.

References centre_, height_, width_, RDGeom::Point2D::x, and RDGeom::Point2D::y.

◆ doesItIntersect()

bool RDKit::StringRect::doesItIntersect ( const StringRect other) const
inline

Definition at line 83 of file MolDraw2D.h.

References centre_, height_, width_, RDGeom::Point2D::x, and RDGeom::Point2D::y.

Member Data Documentation

◆ centre_

Point2D RDKit::StringRect::centre_

Definition at line 66 of file MolDraw2D.h.

Referenced by calcCorners(), and doesItIntersect().

◆ clash_score_

int RDKit::StringRect::clash_score_

Definition at line 68 of file MolDraw2D.h.

◆ height_

double RDKit::StringRect::height_

Definition at line 67 of file MolDraw2D.h.

Referenced by calcCorners(), and doesItIntersect().

◆ width_

double RDKit::StringRect::width_

Definition at line 67 of file MolDraw2D.h.

Referenced by calcCorners(), and doesItIntersect().


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