43 void getStringSize(
const std::string &label,
double &label_width,
44 double &label_height)
const;
50 #endif // MOLDRAW2DQT_H virtual int height() const
return the height of the drawing area.
MolDraw2DQt(int width, int height, QPainter &qp, int panelWidth=-1, int panelHeight=-1)
void drawLine(const Point2D &cds1, const Point2D &cds2)
draws a line from cds1 to cds2 using the current drawing style
void setFontSize(double new_size)
virtual int panelHeight() const
return the height of the drawing panels.
void drawPolygon(const std::vector< Point2D > &cds)
draw a polygon
void setColour(const DrawColour &col)
sets the current draw color
void clearDrawing()
clears the contes of the drawingd]
void drawChar(char c, const Point2D &cds)
virtual int width() const
return the width of the drawing area.
virtual int panelWidth() const
return the width of the drawing panels.
MolDraw2D is the base class for doing 2D renderings of molecules.
void getStringSize(const std::string &label, double &label_width, double &label_height) const
boost::tuple< float, float, float > DrawColour