Hi,
Could someone provide an example of changing default properties of
DepictionGenerator, please? Is it really possible in 1.5.13 version of cdk?
Here is a a description of the problem I'm trying to solve.
I created an atom container from SMILES string
"[H][C@]1(C[C@]2([H])CC[C@]([H])(C1)N2C)OC(c1ccccc1)c1ccccc1"?.
Then I created an instance of DepictionGenerator:
DepictionGenerator generator = new DepictionGenerator(font);
And finally created "depiction":
Depiction depiction = generator.depict(atomContainer);
With this approach after serialization to .png or .svg, I see molecule without
CH3 group, which is, I guess, due to default setting of
SymbolVisibility.iupacRecommendationsWithoutTerminalCarbon().
I'd like to use SymbolVisibility.iupacRecommendations(), but it is not
currently possible with DepictionGenerator because of the reasons described in
this thread:
https://sourceforge.net/p/cdk/mailman/message/34796852/
I found a workaround by using AtomContainerRenderer, but in this case I don't
know how to autoscale the resulting image.
Yours sincerely,
Nikita
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user