There are about three different generators which have separate parameters -
the depiction generator is intended to hide this, here the withParam is
really an expert mode... I should give a better error message though. The
depiction generator uses the StandardGenerator and and BasicSceneGenerator
so you can only use parameters from their.

Regards,
John W May
john.wilkinson...@gmail.com

On 26 January 2016 at 14:36, Tim Dudgeon <tdudgeon...@gmail.com> wrote:

> When I try to use the low level DepictionGenerator.withParam(Class<T>, U)
> method to set a parameter depiction blows up.
> e.g. I try:
>
> withParam(BasicAtomGenerator.ShowExplicitHydrogens.class, true)
>
> and then try to depict I get:
>
> java.lang.IllegalAccessError: You requested the active parameter of type
> org.openscience.cdk.renderer.generators.BasicAtomGenerator$ShowExplicitHydrogens,
> but it has not been registered yet. Did you make sure the
> IGeneratorParameter is registered, by registring the appropriate
> IGenerator? Alternatively, you can use getDefault() to query the default
> value for any parameter on the classpath.
>
>     at
> org.openscience.cdk.renderer.RendererModel.getParameter(RendererModel.java:209)
>     at
> org.openscience.cdk.renderer.RendererModel.set(RendererModel.java:249)
>     at
> org.openscience.cdk.depict.DepictionGenerator.getModel(DepictionGenerator.java:284)
>     at
> org.openscience.cdk.depict.DepictionGenerator.depict(DepictionGenerator.java:348)
>     at
> org.openscience.cdk.depict.DepictionGenerator.depict(DepictionGenerator.java:296)
>
>
> How is it supposed to register these?
>
> Tim
>
>
>
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Cdk-user mailing list
> Cdk-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cdk-user
>
>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to