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
virtual int panelWidth() const
return the width of the drawing panels.
void setFontSize(double new_size)
void drawPolygon(const std::vector< Point2D > &cds)
draw a polygon
void setColour(const DrawColour &col)
sets the current draw color
virtual int panelHeight() const
return the height of the drawing panels.
void clearDrawing()
clears the contes of the drawingd]
void drawChar(char c, const Point2D &cds)
void getStringSize(const std::string &label, double &label_width, double &label_height) const
MolDraw2D is the base class for doing 2D renderings of molecules.
virtual int width() const
return the width of the drawing area.
boost::tuple< float, float, float > DrawColour