Hi All (Stephan...)
I have commited a new CDK node which provides some access to the new Depiction API.
I made the following changes:
- Added SVG dependency to the CDK plugin
- Bumped the version number to 1.5.600.qualifier
- Added cdk_depiction test case
- Created org.openscience.cdk.knime.nodes.depiction and Created org.openscience.cdk.knime.nodes.depiction.util packages
- org.openscience.cdk.knime.nodes.depiction has the new Depiction KNIME node
- org.openscience.cdk.knime.nodes.depiction.util has CdkSimpleStreamableNodeModel and NodeSettingCollection
- CdkSimpleStreamableNodeModel is my attempt at making an abastact implementation of the streaming API for CDK nodes. It uses the CDK adapter cell and extends SimpleStreamableFunctionNodeModel. The DepictionNodeModel gives an example implementation of this abstract class.
- I handle the management of node settings differently in the Lhasa nodes. I have adapted this approach for the CDK nodes. I've created a NodeSettingCollection class that implements CDKSettings. This class (example implementation DepictionSettings) handles the saving, loading and validating of settings in a single place
Once the build is working a new Depiction node will be available in the trunk. This node uses the CDK Depiction API to render SVG or PNG images with various settings and can include highlighting when given a single or list of atom and bond numbers. Consecutive nodes should allow for multiple highlighting (wheras the RDKit version allows multiple highlighting from a single node).
If anyone has an issues let me know.
Cheers
Sam