Re: [Rdkit-discuss] draw molecule without rescaling or translating

2020-07-26 Thread Jason Biggs
Thanks David, that was the missing piece! I will reach out to you if I find there is something I want to do that doesn't work with the API for this class. Best, Jason On Sun, Jul 26, 2020 at 3:48 PM David Cosgrove wrote: > Hi Jason, > The original design was set up to make it relatively

Re: [Rdkit-discuss] draw molecule without rescaling or translating

2020-07-26 Thread David Cosgrove
Hi Jason, The original design was set up to make it relatively straightforward to make your own drawing class, so it's disappointing you aren't finding it so. I guess we've become focussed on getting Cairo and SVG pictures to work, and have forgotten to keep this in mind. A good place to start

[Rdkit-discuss] draw molecule without rescaling or translating

2020-07-26 Thread Jason Biggs
I'm trying to use the MolDraw2D class in C++ to generate all the graphics primitives for a molecule, which I then pass into my own graphics engine to make an image. I'm doing this by making a new class that is a subclass of MolDraw2D, similar to MolDraw2DSVG, and overriding the drawXXX methods.